arch/riscv/kernel/tests/module_test/test_set32.S

Source file repositories/reference/linux-study-clean/arch/riscv/kernel/tests/module_test/test_set32.S

File Facts

System
Linux kernel
Corpus path
arch/riscv/kernel/tests/module_test/test_set32.S
Extension
.S
Size
286 bytes
Lines
21
Domain
Architecture Layer
Bucket
arch/riscv
Inferred role
Architecture Layer: arch/riscv
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

.text
.global test_set32
test_set32:
	lw	a0, set32
	la	t0, set32
#ifndef CONFIG_32BIT
	slli	t0, t0, 32
	srli	t0, t0, 32
#endif
	sub	a0, a0, t0
	ret
.data
set32:
	.reloc set32, R_RISCV_SET32, set32
	.word 0

Annotation

Implementation Notes