m68k: set register a2 to current if MMU enabled on ColdFire
authorGreg Ungerer <gerg@uclinux.org>
Fri, 14 Oct 2011 05:41:56 +0000 (15:41 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Fri, 30 Dec 2011 00:20:24 +0000 (10:20 +1000)
commitbbc6f1ba509cf9cda42ce63bbd40afe577ab028e
tree281010e3d781b995e429efaacd7c99d0947c2bdf
parent88be3515934004d271398129ba7145635e95127e
m68k: set register a2 to current if MMU enabled on ColdFire

Virtual memory m68k systems build with register a2 dedicated to being the
current proc pointer (non-MMU don't do this). Add code to the ColdFire
interrupt and exception processing to set this on entry, and at context
switch time. We use the same GET_CURRENT() macro that MMU enabled code
uses - modifying it so that the assembler is ColdFire clean.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Matt Waddel <mwaddel@yahoo.com>
Acked-by: Kurt Mahan <kmahan@xmission.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/entry.h
arch/m68k/kernel/entry_no.S
arch/m68k/platform/coldfire/entry.S