Skip to contentSkip to conversation

x86: common x86_32|64 naming

PATCH New Harvey Harrison 1 participant 1 message Jan 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: common x86_32|64 naming

Rename convert_rip_to_linear to convert_ip_to_linear for shared X86_32|64 use.

---
 arch/x86/kernel/step.c   |    4 ++--
 arch/x86/mm/fault_32.c   |    2 +-
 arch/x86/mm/fault_64.c   |    2 +-
 include/asm-x86/ptrace.h |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
arch/x86/kernel/step.c +2 -2
index 5884dd4..923aee6 100644
@@ -89,7 +89,7 @@ unsigned long get_segment_eip(struct pt_regs *regs,
 #ifdef CONFIG_X86_32
 static
 #endif
-unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs)
+unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs)
 {
 	unsigned long addr, seg;
 
@@ -136,7 +136,7 @@ static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs)
 {
 	int i, copied;
 	unsigned char opcode[15];
-	unsigned long addr = convert_rip_to_linear(child, regs);
+	unsigned long addr = convert_ip_to_linear(child, regs);
 
 	copied = access_process_vm(child, addr, opcode, sizeof(opcode), 0);
 	for (i = 0; i < copied; i++) {
arch/x86/mm/fault_32.c +1 -1
index f8fc240..f0bbcab 100644
@@ -95,7 +95,7 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr,
 	/* If it was a exec fault ignore */
 	if (error_code & PF_INSTR)
 		return 0;
-	instr = (unsigned char __user *)convert_rip_to_linear(current, regs);
+	instr = (unsigned char __user *)convert_ip_to_linear(current, regs);
 #endif
 
 	max_instr = instr + 15;
arch/x86/mm/fault_64.c +1 -1
index 11e9398..7dedb6b 100644
@@ -98,7 +98,7 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr,
 	/* If it was a exec fault ignore */
 	if (error_code & PF_INSTR)
 		return 0;
-	instr = (unsigned char __user *)convert_rip_to_linear(current, regs);
+	instr = (unsigned char __user *)convert_ip_to_linear(current, regs);
 #endif
 
 	max_instr = instr + 15;
include/asm-x86/ptrace.h +1 -1
index cc44566..35c1037 100644
@@ -177,7 +177,7 @@ void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
 struct task_struct;
 
 extern unsigned long
-convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs);
+convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
 
 #endif /* __KERNEL__ */
 #endif /* !__i386__ */
Signature · 1 line
1.5.4.rc2.1164.g6451