Debian Codegraph @

arch/riscv/kernel/vdso/getcpu.S

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2017 SiFive
4 */
5
6 #include <linux/linkage.h>
7 #include <asm/unistd.h>
8 #include <asm/assembler.h>
9
10 .text
11 /* int __vdso_getcpu(unsigned *cpu, unsigned *node, void *unused); */
12 SYM_FUNC_START(__vdso_getcpu)
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 SYM_FUNC_END(__vdso_getcpu)
21
22 emit_riscv_feature_1_and