projects/linux·blob master · refs

22 lines · 431 B

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); */
12SYM_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
20SYM_FUNC_END(__vdso_getcpu)
21
22emit_riscv_feature_1_and