summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-08-27 06:28:30 +0000
committerDavid McCullough <davidm@snapgear.com>2002-08-27 06:28:30 +0000
commit35cb31213eb23278be9aa95dd9e552aac7d3b83a (patch)
treece6fd64719f4f05fa18fe5be20516b8badd4ead6 /libc
parent6d3a9e72c17910c33ce4331cd0c9b761dfa06f75 (diff)
Fix a delay slot problem, this gets some apps working on SH, a good number
are still seg-faulting.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/sh/crt0.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/sh/crt0.S b/libc/sysdeps/linux/sh/crt0.S
index d7b54299f..d342f36ac 100644
--- a/libc/sysdeps/linux/sh/crt0.S
+++ b/libc/sysdeps/linux/sh/crt0.S
@@ -66,11 +66,13 @@ _start:
/* call main */
mov.l L_main, r0
jsr @r0
+ nop /* delay slot */
/* We should not get here. */
mov.l L_abort, r0
jsr @r0
- nop
+ nop /* delay slot */
+
_start_end:
.align 2