diff options
author | Alexander van Heukelum <heukelum@fastmail.fm> | 2008-10-04 23:12:42 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-13 10:33:41 +0200 |
commit | 3a18512db00e0eedca86e3db4d2e81f8fe0b1774 (patch) | |
tree | e452f21a8ad3001318ee75381b29280e519f09ed /arch/x86/kernel/dumpstack_64.c | |
parent | 161827903bdc124655f4cd976b9f0a5ac6ebf21c (diff) | |
download | op-kernel-dev-3a18512db00e0eedca86e3db4d2e81f8fe0b1774.zip op-kernel-dev-3a18512db00e0eedca86e3db4d2e81f8fe0b1774.tar.gz |
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 563554c..361afa8 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, addr = *stack; if (__kernel_text_address(addr)) { - if ((unsigned long) stack == bp + 8) { + if ((unsigned long) stack == bp + sizeof(long)) { ops->address(data, addr, 1); frame = frame->next_frame; bp = (unsigned long) frame; |