diff options
-rw-r--r-- | arch/x86/include/asm/kprobes.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/kprobes.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kprobes.h b/arch/x86/include/asm/kprobes.h index 4fe681de1e76..eaec8ea7bf18 100644 --- a/arch/x86/include/asm/kprobes.h +++ b/arch/x86/include/asm/kprobes.h | |||
@@ -32,7 +32,7 @@ struct kprobe; | |||
32 | 32 | ||
33 | typedef u8 kprobe_opcode_t; | 33 | typedef u8 kprobe_opcode_t; |
34 | #define BREAKPOINT_INSTRUCTION 0xcc | 34 | #define BREAKPOINT_INSTRUCTION 0xcc |
35 | #define RELATIVEJUMP_INSTRUCTION 0xe9 | 35 | #define RELATIVEJUMP_OPCODE 0xe9 |
36 | #define MAX_INSN_SIZE 16 | 36 | #define MAX_INSN_SIZE 16 |
37 | #define MAX_STACK_SIZE 64 | 37 | #define MAX_STACK_SIZE 64 |
38 | #define MIN_STACK_SIZE(ADDR) \ | 38 | #define MIN_STACK_SIZE(ADDR) \ |
diff --git a/arch/x86/kernel/kprobes.c b/arch/x86/kernel/kprobes.c index 5de9f4a9c3fd..15177cdfdd00 100644 --- a/arch/x86/kernel/kprobes.c +++ b/arch/x86/kernel/kprobes.c | |||
@@ -115,7 +115,7 @@ static void __kprobes set_jmp_op(void *from, void *to) | |||
115 | } __attribute__((packed)) * jop; | 115 | } __attribute__((packed)) * jop; |
116 | jop = (struct __arch_jmp_op *)from; | 116 | jop = (struct __arch_jmp_op *)from; |
117 | jop->raddr = (s32)((long)(to) - ((long)(from) + 5)); | 117 | jop->raddr = (s32)((long)(to) - ((long)(from) + 5)); |
118 | jop->op = RELATIVEJUMP_INSTRUCTION; | 118 | jop->op = RELATIVEJUMP_OPCODE; |
119 | } | 119 | } |
120 | 120 | ||
121 | /* | 121 | /* |