Browse Source

Fix a delay slot problem, this gets some apps working on SH, a good number
are still seg-faulting.

David McCullough 23 years ago
parent
commit
35cb31213e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libc/sysdeps/linux/sh/crt0.S

+ 3 - 1
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