diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-01-30 07:33:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:12 -0500 |
commit | 37cd9cf3dafed82f7cf905785883300f6ff7c818 (patch) | |
tree | f1ec07a057955f71729d99318792e134f98f9264 | |
parent | f13bd3e7935f7020f7c622bf3f8cae8eee757a53 (diff) |
x86: common x86_32|64 naming
Rename convert_rip_to_linear to convert_ip_to_linear for shared
X86_32|64 use.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/step.c | 4 | ||||
-rw-r--r-- | arch/x86/mm/fault_32.c | 2 | ||||
-rw-r--r-- | arch/x86/mm/fault_64.c | 2 | ||||
-rw-r--r-- | include/asm-x86/ptrace.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/step.c b/arch/x86/kernel/step.c index b801e76cebf7..80b37181a42b 100644 --- a/arch/x86/kernel/step.c +++ b/arch/x86/kernel/step.c | |||
@@ -89,7 +89,7 @@ unsigned long get_segment_eip(struct pt_regs *regs, | |||
89 | #ifdef CONFIG_X86_32 | 89 | #ifdef CONFIG_X86_32 |
90 | static | 90 | static |
91 | #endif | 91 | #endif |
92 | unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs) | 92 | unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs) |
93 | { | 93 | { |
94 | unsigned long addr, seg; | 94 | unsigned long addr, seg; |
95 | 95 | ||
@@ -136,7 +136,7 @@ static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs) | |||
136 | { | 136 | { |
137 | int i, copied; | 137 | int i, copied; |
138 | unsigned char opcode[15]; | 138 | unsigned char opcode[15]; |
139 | unsigned long addr = convert_rip_to_linear(child, regs); | 139 | unsigned long addr = convert_ip_to_linear(child, regs); |
140 | 140 | ||
141 | copied = access_process_vm(child, addr, opcode, sizeof(opcode), 0); | 141 | copied = access_process_vm(child, addr, opcode, sizeof(opcode), 0); |
142 | for (i = 0; i < copied; i++) { | 142 | for (i = 0; i < copied; i++) { |
diff --git a/arch/x86/mm/fault_32.c b/arch/x86/mm/fault_32.c index b92922a1d65f..b4d19c2d4f05 100644 --- a/arch/x86/mm/fault_32.c +++ b/arch/x86/mm/fault_32.c | |||
@@ -95,7 +95,7 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr, | |||
95 | /* If it was a exec fault ignore */ | 95 | /* If it was a exec fault ignore */ |
96 | if (error_code & PF_INSTR) | 96 | if (error_code & PF_INSTR) |
97 | return 0; | 97 | return 0; |
98 | instr = (unsigned char __user *)convert_rip_to_linear(current, regs); | 98 | instr = (unsigned char __user *)convert_ip_to_linear(current, regs); |
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | max_instr = instr + 15; | 101 | max_instr = instr + 15; |
diff --git a/arch/x86/mm/fault_64.c b/arch/x86/mm/fault_64.c index cf7e99895b91..d519b41f1962 100644 --- a/arch/x86/mm/fault_64.c +++ b/arch/x86/mm/fault_64.c | |||
@@ -98,7 +98,7 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr, | |||
98 | /* If it was a exec fault ignore */ | 98 | /* If it was a exec fault ignore */ |
99 | if (error_code & PF_INSTR) | 99 | if (error_code & PF_INSTR) |
100 | return 0; | 100 | return 0; |
101 | instr = (unsigned char __user *)convert_rip_to_linear(current, regs); | 101 | instr = (unsigned char __user *)convert_ip_to_linear(current, regs); |
102 | #endif | 102 | #endif |
103 | 103 | ||
104 | max_instr = instr + 15; | 104 | max_instr = instr + 15; |
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index cc4456667d89..35c103714906 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -177,7 +177,7 @@ void signal_fault(struct pt_regs *regs, void __user *frame, char *where); | |||
177 | struct task_struct; | 177 | struct task_struct; |
178 | 178 | ||
179 | extern unsigned long | 179 | extern unsigned long |
180 | convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs); | 180 | convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs); |
181 | 181 | ||
182 | #endif /* __KERNEL__ */ | 182 | #endif /* __KERNEL__ */ |
183 | #endif /* !__i386__ */ | 183 | #endif /* !__i386__ */ |