Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01be057b authored by Douglas Leung's avatar Douglas Leung Committed by Ralf Baechle
Browse files

MIPS: microMIPS: Add vdso support.



Support vdso in microMIPS mode.

Signed-off-by: default avatarDouglas Leung <Douglas.Leung@imgtec.com>
Signed-off-by: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
parent 34c2f668
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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]) {