diff options
author | Nick Clifton <nickc@redhat.com> | 2002-11-18 16:30:55 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-11-18 16:30:55 +0000 |
commit | 1f176167c5b0da07128b6654bb1ccd181684b66a (patch) | |
tree | 2900e90bfb98553c6ee8b276293d41f90027ad12 | |
parent | 28ecb2f58e61e875b2bc502a269a30d58191df52 (diff) | |
download | newlib-1f176167c5b0da07128b6654bb1ccd181684b66a.zip newlib-1f176167c5b0da07128b6654bb1ccd181684b66a.tar.gz newlib-1f176167c5b0da07128b6654bb1ccd181684b66a.tar.bz2 |
Fix bugs in previous delta
-rw-r--r-- | newlib/libc/sys/arm/crt0.S | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S index 581da12..3ebb5f7 100644 --- a/newlib/libc/sys/arm/crt0.S +++ b/newlib/libc/sys/arm/crt0.S @@ -95,6 +95,12 @@ __change_mode: #endif /* Parse string at r1 */ mov r0, #0 /* count of arguments so far */ + /* Push a NULL argument onto the end of the list. */ +#ifdef __thumb__ + push {r0} +#else + stmfd sp!, {r0} +#endif .LC10: /* Skip leading blanks */ #ifdef __thumb__ @@ -180,14 +186,6 @@ __change_mode: strhi r4, [r3], #4 bhi .LC13 #endif - - /* Push a NULL argument onto the end of the list. */ - mov r2, #0 -#ifdef __thumb__ - push {r2} -#else - stmfd sp!, {r1} -#endif #endif #ifdef __USES_INITFINI__ |