diff options
author | Alexander van Heukelum <heukelum@fastmail.fm> | 2008-10-04 17:12:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-13 04:33:41 -0400 |
commit | 3a18512db00e0eedca86e3db4d2e81f8fe0b1774 (patch) | |
tree | e452f21a8ad3001318ee75381b29280e519f09ed /arch/x86/kernel/dumpstack_64.c | |
parent | 161827903bdc124655f4cd976b9f0a5ac6ebf21c (diff) |
dumpstack: x86: add "end" parameter to valid_stack_ptr and print_context_stack
- Add "end" parameter to valid_stack_ptr and print_context_stack
- use sizeof(long) as the size of a word on the stack
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/dumpstack_64.c')
-rw-r--r-- | arch/x86/kernel/dumpstack_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c index 563554c90686..361afa8864b4 100644 --- a/arch/x86/kernel/dumpstack_64.c +++ b/arch/x86/kernel/dumpstack_64.c | |||
@@ -141,7 +141,7 @@ print_context_stack(struct thread_info *tinfo, | |||
141 | 141 | ||
142 | addr = *stack; | 142 | addr = *stack; |
143 | if (__kernel_text_address(addr)) { | 143 | if (__kernel_text_address(addr)) { |
144 | if ((unsigned long) stack == bp + 8) { | 144 | if ((unsigned long) stack == bp + sizeof(long)) { |
145 | ops->address(data, addr, 1); | 145 | ops->address(data, addr, 1); |
146 | frame = frame->next_frame; | 146 | frame = frame->next_frame; |
147 | bp = (unsigned long) frame; | 147 | bp = (unsigned long) frame; |