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