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>
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
#ifndef __ASM_CSKY_REGDEF_H
|
||||
#define __ASM_CSKY_REGDEF_H
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
#define syscallid r7
|
||||
#else
|
||||
#define syscallid "r7"
|
||||
#endif
|
||||
|
||||
#define regs_syscallid(regs) regs->regs[3]
|
||||
#define regs_fp(regs) regs->regs[4]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user