summaryrefslogtreecommitdiffstats
path: root/c/src/lib/start/m68k/start.s
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-21 13:59:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-21 13:59:12 +0000
commit92fc5a5db7ac6e2a9512ccd4582b19687c69a63e (patch)
treeb2c7cc19918c73c2cf22bd0d03141a334511b271 /c/src/lib/start/m68k/start.s
parentChanged so we could test interrupts on port 3. (diff)
downloadrtems-92fc5a5db7ac6e2a9512ccd4582b19687c69a63e.tar.bz2
Fix from Chris Johns <ccj@acm.org>. Comments:
Mask interrupts and save the current USP and MSP for all 68000 processor variants.
Diffstat (limited to '')
-rw-r--r--c/src/lib/start/m68k/start.s11
1 files changed, 3 insertions, 8 deletions
diff --git a/c/src/lib/start/m68k/start.s b/c/src/lib/start/m68k/start.s
index c4e7f62a61..f81b0c0949 100644
--- a/c/src/lib/start/m68k/start.s
+++ b/c/src/lib/start/m68k/start.s
@@ -51,19 +51,14 @@ SYM (hiintstack):
PUBLIC (start_around)
SYM (start_around):
move.w sr, SYM (initial_sr)
+ oriw #0x3700,sr | SUPV MODE,INTS OFF!!!
#if ( M68K_HAS_SEPARATE_STACKS == 1 )
movec isp,a0
move.l a0, SYM (initial_isp)
- movec usp,a0
+#endif
+ move usp,a0
move.l a0, SYM (initial_usp)
- movec msp,a0
- move.l a0, SYM (initial_msp)
-#else
move.l a7, SYM (initial_msp)
-#endif
- oriw #0x0700,sr | INTERRUPTS OFF!!!
-
-
|
| zero out uninitialized data area