diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-05-05 22:32:12 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-07-25 11:20:40 +1000 |
commit | f941f5caa0e947f4ed060a751ca4a3bf552af625 (patch) | |
tree | f6811757e568e74307abd39534b1d7e7813c8d0f /arch/m68k/include/asm/entry_no.h | |
parent | 10f939ff3ab80514da3bd96357bb54a8a59b9225 (diff) |
m68k: merge MMU and non MMU versions of system.h
The non-MMU m68k targets can use the same asm/system.h as the MMU
targets. So switch the current system_mm.h to be system.h and remove
system_no.h.
The assembly support code for the non-MMU resume functions needs to
be modified to match the now common switch_to() macro. Specifically
this means correctly saving and restoring the status flags in the case
of the ColdFire resume, and some reordering of the code to not use
registers before they are saved or after they are restored.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include/asm/entry_no.h')
-rw-r--r-- | arch/m68k/include/asm/entry_no.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/m68k/include/asm/entry_no.h b/arch/m68k/include/asm/entry_no.h index 627d69bacc5..68611e3dbb1 100644 --- a/arch/m68k/include/asm/entry_no.h +++ b/arch/m68k/include/asm/entry_no.h @@ -96,11 +96,11 @@ .endm .macro RDUSP - movel sw_usp,%a2 + movel sw_usp,%a3 .endm .macro WRUSP - movel %a0,sw_usp + movel %a3,sw_usp .endm #else /* !CONFIG_COLDFIRE_SW_A7 */ @@ -127,13 +127,13 @@ .endm .macro RDUSP - /*move %usp,%a2*/ - .word 0x4e6a + /*move %usp,%a3*/ + .word 0x4e6b .endm .macro WRUSP - /*move %a0,%usp*/ - .word 0x4e60 + /*move %a3,%usp*/ + .word 0x4e63 .endm #endif /* !CONFIG_COLDFIRE_SW_A7 */ |