getcpu.S 353 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2017 SiFive
  4. */
  5. #include <linux/linkage.h>
  6. #include <asm/unistd.h>
  7. .text
  8. /* int __vdso_getcpu(unsigned *cpu, unsigned *node, void *unused); */
  9. ENTRY(__vdso_getcpu)
  10. .cfi_startproc
  11. /* For now, just do the syscall. */
  12. li a7, __NR_getcpu
  13. ecall
  14. ret
  15. .cfi_endproc
  16. ENDPROC(__vdso_getcpu)