summaryrefslogtreecommitdiffstats
path: root/arch/csky/kernel/signal.c
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-01-04 04:37:07 +0100
committerGuo Ren <guoren@linux.alibaba.com>2021-01-12 02:52:41 +0100
commit87f3248cdb9aeac35129cb4337ce541a945cb35c (patch)
treee5bf46123eb160c318adaad9bdb9e490e714a109 /arch/csky/kernel/signal.c
parentcsky: mm: abort uaccess retries upon fatal signal (diff)
downloadlinux-87f3248cdb9aeac35129cb4337ce541a945cb35c.tar.xz
linux-87f3248cdb9aeac35129cb4337ce541a945cb35c.zip
csky: Reconstruct VDSO framework
Reconstruct vdso framework to support future vsyscall, vgettimeofday features. These are very important features to reduce system calls into the kernel for performance improvement. The patch is reference RISC-V's Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/csky/kernel/signal.c')
-rw-r--r--arch/csky/kernel/signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/csky/kernel/signal.c b/arch/csky/kernel/signal.c
index 37ea64ed3c12..312f046d452d 100644
--- a/arch/csky/kernel/signal.c
+++ b/arch/csky/kernel/signal.c
@@ -134,7 +134,6 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
{
struct rt_sigframe *frame;
int err = 0;
- struct csky_vdso *vdso = current->mm->context.vdso;
frame = get_sigframe(ksig, regs, sizeof(*frame));
if (!access_ok(frame, sizeof(*frame)))
@@ -152,7 +151,8 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
return -EFAULT;
/* Set up to return from userspace. */
- regs->lr = (unsigned long)(vdso->rt_signal_retcode);
+ regs->lr = (unsigned long)VDSO_SYMBOL(
+ current->mm->context.vdso, rt_sigreturn);
/*
* Set up registers for signal handler.