xref: /linux/tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
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
13