WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: [PATCH] MIPS: Add microMIPS vdso support.

[PATCH] MIPS: Add microMIPS vdso support.

by Steven J. Hill-3 :: Rate this Message:

| View in Thread

From: Douglas Leung <douglas@...>

Signed-off-by: Steven J. Hill <sjhill@...>
---
 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


 « Return to Thread: [PATCH] MIPS: Add microMIPS vdso support.