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