arch/riscv/kernel/vdso/sys_hwprobe.S
raw| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* Copyright (C) 2023 Rivos, Inc */ |
| 3 | |
| 4 | #include <linux/linkage.h> |
| 5 | #include <asm/unistd.h> |
| 6 | #include <asm/assembler.h> |
| 7 | |
| 8 | .text |
| 9 | SYM_FUNC_START(riscv_hwprobe) |
| 10 | .cfi_startproc |
| 11 | vdso_lpad |
| 12 | li a7, __NR_riscv_hwprobe |
| 13 | ecall |
| 14 | ret |
| 15 | |
| 16 | .cfi_endproc |
| 17 | SYM_FUNC_END(riscv_hwprobe) |
| 18 | |
| 19 | emit_riscv_feature_1_and |