linux-mips
[Top] [All Lists]

[PATCH] MIPS: Add microMIPS vdso support.

To: linux-mips@linux-mips.org
Subject: [PATCH] MIPS: Add microMIPS vdso support.
From: "Steven J. Hill" <sjhill@mips.com>
Date: Tue, 24 Jul 2012 16:40:12 -0500
Cc: Douglas Leung <douglas@mips.com>, ralf@linux-mips.org, "Steven J. Hill" <sjhill@mips.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
From: Douglas Leung <douglas@mips.com>

Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
 arch/mips/kernel/signal.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index f2c09cf..51d13c1 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"
 
@@ -518,7 +519,12 @@ 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 = (void *)
+               ((unsigned int)current->mm->context.vdso | MIPS_ISA_MODE);
+#else
        void *vdso = current->mm->context.vdso;
+#endif
 
        if (regs->regs[0]) {
                switch(regs->regs[2]) {
-- 
1.7.11.1


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: Add microMIPS vdso support., Steven J. Hill <=