summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S
blob: a4773c88d2675ab40741e434345b575e2d7a6844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2023 Rivos, Inc */

.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