tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S

Source file repositories/reference/linux-study-clean/tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S
Extension
.S
Size
322 bytes
Lines
13
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

.text
.global riscv_hwprobe
riscv_hwprobe:
	# Put __NR_riscv_hwprobe in the syscall number register, then just shim
	# back the kernel's return.  This doesn't do any sort of errno
	# handling, the caller can deal with it.
	li a7, 258
	ecall
	ret

Annotation

Implementation Notes