diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-21 13:59:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-21 13:59:12 +0000 |
commit | 92fc5a5db7ac6e2a9512ccd4582b19687c69a63e (patch) | |
tree | b2c7cc19918c73c2cf22bd0d03141a334511b271 /c/src/lib/start/m68k/start.s | |
parent | Changed so we could test interrupts on port 3. (diff) | |
download | rtems-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.s | 11 |
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 |