xref: /kernel/linux/linux-6.6/tools/testing/selftests/riscv/hwprobe/sys_hwprobe.S
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/testing/selftests/riscv/hwprobe/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* Copyright (C) 2023 Rivos, Inc */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci.text
562306a36Sopenharmony_ci.global riscv_hwprobe
662306a36Sopenharmony_ciriscv_hwprobe:
762306a36Sopenharmony_ci	# Put __NR_riscv_hwprobe in the syscall number register, then just shim
862306a36Sopenharmony_ci	# back the kernel's return.  This doesn't do any sort of errno
962306a36Sopenharmony_ci	# handling, the caller can deal with it.
1062306a36Sopenharmony_ci	li a7, 258
1162306a36Sopenharmony_ci	ecall
1262306a36Sopenharmony_ci	ret
13

Indexes created Thu Nov 07 10:32:03 CST 2024