Răsfoiți Sursa

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

David McCullough 24 ani în urmă
părinte
comite
35cb31213e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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