diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-01-30 13:33:16 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:16 +0100 |
commit | f6e8e28410c017adb273983057023a17a8791ad3 (patch) | |
tree | 35dbd728a9838158d74947112b09c2530e331aeb /include | |
parent | dbe3533b7f687402651e893d5b3a7b66f22d6487 (diff) | |
download | kernel_samsung_aries-f6e8e28410c017adb273983057023a17a8791ad3.zip kernel_samsung_aries-f6e8e28410c017adb273983057023a17a8791ad3.tar.gz kernel_samsung_aries-f6e8e28410c017adb273983057023a17a8791ad3.tar.bz2 |
x86: rename stack_pointer to kernel_trap_sp
Choose a less generic name for such a special case. Add
a comment explaining the odd use in X86_32.
Change the one user of stack_pointer.
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/ptrace.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index 79d5b8f..d9e04b4 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h @@ -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; |