File Index
Files and directories
Sign in
FILE

sys_hwprobe.S

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S GAS
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/* Copyright (C) 2023 Rivos, Inc */
 3
 4.text
 5.global riscv_hwprobe
 6riscv_hwprobe:
 7	# Put __NR_riscv_hwprobe in the syscall number register, then just shim
 8	# back the kernel's return.  This doesn't do any sort of errno
 9	# handling, the caller can deal with it.
10	li a7, 258
11	ecall
12	ret
~/ Read-only file preview.