diff options
author | Douglas Leung <Douglas.Leung@imgtec.com> | 2013-03-25 13:21:11 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-09 17:55:19 +0200 |
commit | 01be057b33f52f094bff3a79a93d9ca99e27483d (patch) | |
tree | 2ada7518d6c7ffe47b25ff291a31e8a223d36fa1 /arch | |
parent | 34c2f668d0f6b2ca1c076d8170d6cd4f2235a9d4 (diff) | |
download | linux-stable-01be057b33f52f094bff3a79a93d9ca99e27483d.tar.gz linux-stable-01be057b33f52f094bff3a79a93d9ca99e27483d.tar.bz2 linux-stable-01be057b33f52f094bff3a79a93d9ca99e27483d.zip |
MIPS: microMIPS: Add vdso support.
Support vdso in microMIPS mode.
Signed-off-by: Douglas Leung <Douglas.Leung@imgtec.com>
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/signal.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c index b5e88fd83277..fd3ef2c2afbc 100644 --- a/arch/mips/kernel/signal.c +++ b/arch/mips/kernel/signal.c @@ -35,6 +35,7 @@ #include <asm/war.h> #include <asm/vdso.h> #include <asm/dsp.h> +#include <asm/inst.h> #include "signal-common.h" @@ -480,7 +481,15 @@ static void handle_signal(unsigned long sig, siginfo_t *info, sigset_t *oldset = sigmask_to_save(); int ret; struct mips_abi *abi = current->thread.abi; +#ifdef CONFIG_CPU_MICROMIPS + void *vdso; + unsigned int tmp = (unsigned int)current->mm->context.vdso; + + set_isa16_mode(tmp); + vdso = (void *)tmp; +#else void *vdso = current->mm->context.vdso; +#endif if (regs->regs[0]) { switch(regs->regs[2]) { |