|
@@ -29,6 +29,7 @@
|
|
|
#include <linux/kdebug.h>
|
|
|
#include <asm/processor.h>
|
|
|
#include <asm/insn.h>
|
|
|
+#include <asm/mmu_context.h>
|
|
|
|
|
|
/* Post-execution fixups. */
|
|
|
|
|
@@ -312,11 +313,6 @@ static int uprobe_init_insn(struct arch_uprobe *auprobe, struct insn *insn, bool
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_X86_64
|
|
|
-static inline bool is_64bit_mm(struct mm_struct *mm)
|
|
|
-{
|
|
|
- return !config_enabled(CONFIG_IA32_EMULATION) ||
|
|
|
- !(mm->context.ia32_compat == TIF_IA32);
|
|
|
-}
|
|
|
/*
|
|
|
* If arch_uprobe->insn doesn't use rip-relative addressing, return
|
|
|
* immediately. Otherwise, rewrite the instruction so that it accesses
|
|
@@ -497,10 +493,6 @@ static void riprel_post_xol(struct arch_uprobe *auprobe, struct pt_regs *regs)
|
|
|
}
|
|
|
}
|
|
|
#else /* 32-bit: */
|
|
|
-static inline bool is_64bit_mm(struct mm_struct *mm)
|
|
|
-{
|
|
|
- return false;
|
|
|
-}
|
|
|
/*
|
|
|
* No RIP-relative addressing on 32-bit
|
|
|
*/
|