| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * 2017 SiFive |
| 4 | */ |
| 5 | |
| 6 | #include <linux/linkage.h> |
| 7 | #include <asm/unistd.h> |
| 8 | #include <asm/assembler.h> |
| 9 | |
| 10 | .text |
| 11 | /* int ; */ |
| 12 | |
| 13 | .cfi_startproc |
| 14 | vdso_lpad |
| 15 | /* For now, just do the syscall. */ |
| 16 | li a7, __NR_getcpu |
| 17 | ecall |
| 18 | ret |
| 19 | .cfi_endproc |
| 20 | |
| 21 | |
| 22 | emit_riscv_feature_1_and |