MN10300: Save frame pointer in thread_info struct rather than global var
authorDavid Howells <dhowells@redhat.com>
Wed, 27 Oct 2010 16:29:01 +0000 (17:29 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 27 Oct 2010 16:29:01 +0000 (17:29 +0100)
commit7c7fcf762e405eb040ee10d22d656a791f616122
tree2ec4f320fe2d348ffbdab6aebc9a36bcbf13da34
parenta5e03ca2fd57a5823b759981bff8d19b46ddad4d
MN10300: Save frame pointer in thread_info struct rather than global var

Save the current exception frame pointer in the thread_info struct rather than
in a global variable as the latter makes SMP tricky, especially when preemption
is also enabled.

This also replaces __frame with current_frame() and rearranges header file
inclusions to make it all compile.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
15 files changed:
arch/mn10300/include/asm/frame.inc
arch/mn10300/include/asm/irq_regs.h
arch/mn10300/include/asm/pgalloc.h
arch/mn10300/include/asm/processor.h
arch/mn10300/include/asm/ptrace.h
arch/mn10300/include/asm/smp.h
arch/mn10300/include/asm/thread_info.h
arch/mn10300/include/asm/uaccess.h
arch/mn10300/kernel/asm-offsets.c
arch/mn10300/kernel/mn10300-watchdog.c
arch/mn10300/kernel/process.c
arch/mn10300/kernel/signal.c
arch/mn10300/kernel/switch_to.S
arch/mn10300/kernel/traps.c
mm/maccess.c