x86: rename stack_pointer to kernel_trap_sp
[deliverable/linux.git] / include / asm-x86 / ptrace.h
index 79d5b8fcd7b15d2e0419c6748f21704cda1b67b2..d9e04b46a44069a56565729085fc11b67399696d 100644 (file)
@@ -182,7 +182,13 @@ static inline int v8086_mode(struct pt_regs *regs)
 #endif
 }
 
-static inline unsigned long stack_pointer(struct pt_regs *regs)
+/*
+ * X86_32 CPUs don't save ss and esp if the CPU is already in kernel mode
+ * when it traps.  So regs will be the current sp.
+ *
+ * This is valid only for kernel mode traps.
+ */
+static inline unsigned long kernel_trap_sp(struct pt_regs *regs)
 {
 #ifdef CONFIG_X86_32
        return (unsigned long)regs;
This page took 0.025697 seconds and 5 git commands to generate.