JustOS/linux-6.13/tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S
justuser 02e73b8cd9 up
2025-01-24 17:00:19 +03:00

13 lines
322 B
ArmAsm

/* 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