From: Douglas Leung Date: Mon, 25 Mar 2013 18:21:11 +0000 (-0500) Subject: MIPS: microMIPS: Add vdso support. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=01be057b33f52f094bff3a79a93d9ca99e27483d;p=openwrt%2Fstaging%2Fblogic.git MIPS: microMIPS: Add vdso support. Support vdso in microMIPS mode. Signed-off-by: Douglas Leung Signed-off-by: Steven J. Hill --- 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 #include #include +#include #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]) {