summaryrefslogtreecommitdiffstats
path: root/arch/csky/abiv1/inc
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-01-17 23:38:18 +0800
committerGuo Ren <guoren@linux.alibaba.com>2021-02-27 16:35:09 +0800
commit0d3b051adbb72ed81956447d0d1e54d5943ee6f5 (patch)
tree433b4210fd30da045a8a7f8709740a8787d85ac0 /arch/csky/abiv1/inc
parent8dcbc611f0fcbcc196dc96e0f833181df0d80242 (diff)
downloadlinux-stable-0d3b051adbb72ed81956447d0d1e54d5943ee6f5.tar.gz
linux-stable-0d3b051adbb72ed81956447d0d1e54d5943ee6f5.tar.bz2
linux-stable-0d3b051adbb72ed81956447d0d1e54d5943ee6f5.zip
csky: Add VDSO with GENERIC_GETTIMEOFDAY, GENERIC_TIME_VSYSCALL, HAVE_GENERIC_VDSO
It could help to reduce the latency of the time-related functions in user space. We have referenced arm's and riscv's implementation for the patch. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Vincent Chen <vincent.chen@sifive.com> Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/abiv1/inc')
-rw-r--r--arch/csky/abiv1/inc/abi/regdef.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/csky/abiv1/inc/abi/regdef.h b/arch/csky/abiv1/inc/abi/regdef.h
index 104707fbdcc1..d555b6c440dd 100644
--- a/arch/csky/abiv1/inc/abi/regdef.h
+++ b/arch/csky/abiv1/inc/abi/regdef.h
@@ -4,7 +4,12 @@
#ifndef __ASM_CSKY_REGDEF_H
#define __ASM_CSKY_REGDEF_H
+#ifdef __ASSEMBLY__
#define syscallid r1
+#else
+#define syscallid "r1"
+#endif
+
#define regs_syscallid(regs) regs->regs[9]
#define regs_fp(regs) regs->regs[2]