sys_hwprobe.S 322 B

123456789101112
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (C) 2023 Rivos, Inc */
  3. .text
  4. .global riscv_hwprobe
  5. riscv_hwprobe:
  6. # Put __NR_riscv_hwprobe in the syscall number register, then just shim
  7. # back the kernel's return. This doesn't do any sort of errno
  8. # handling, the caller can deal with it.
  9. li a7, 258
  10. ecall
  11. ret