summaryrefslogtreecommitdiffstats
path: root/c/src/lib/start/m68k/start.s
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-13 14:28:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-13 14:28:22 +0000
commit98984259211ce5003e9779b4c8f551aa36c3b49b (patch)
treee8c0d5f33b08adf5e1aad6800ae131673a3324ba /c/src/lib/start/m68k/start.s
parentPatch from Chris Johns <ccj@acm.org>. Comments follow: (diff)
downloadrtems-98984259211ce5003e9779b4c8f551aa36c3b49b.tar.bz2
Patch from Chris Johns <ccj@acm.org> to change the way in which the initial
stack pointers are saved.
Diffstat (limited to '')
-rw-r--r--c/src/lib/start/m68k/start.s7
1 files changed, 5 insertions, 2 deletions
diff --git a/c/src/lib/start/m68k/start.s b/c/src/lib/start/m68k/start.s
index 874ea82b5b..e7a58e997b 100644
--- a/c/src/lib/start/m68k/start.s
+++ b/c/src/lib/start/m68k/start.s
@@ -57,10 +57,13 @@ SYM (start_around):
#if ( M68K_HAS_SEPARATE_STACKS == 1 )
movec isp,a0
move.l a0, SYM (initial_isp)
-#endif
- move usp,a0
+ movec 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
|
| zero out uninitialized data area