Browse Source

* use ldsh to load exitcode

peter 21 years ago
parent
commit
6b5f84117b
1 changed files with 5 additions and 2 deletions
  1. 5 2
      rtl/linux/sparc/prt0.as

+ 5 - 2
rtl/linux/sparc/prt0.as

@@ -59,7 +59,7 @@ _haltproc:
 	mov	1, %g1			/* "exit" system call */
 	mov	1, %g1			/* "exit" system call */
   sethi	%hi(U_SYSTEM_EXITCODE),%o0
   sethi	%hi(U_SYSTEM_EXITCODE),%o0
 	or	%o0,%lo(U_SYSTEM_EXITCODE),%o0
 	or	%o0,%lo(U_SYSTEM_EXITCODE),%o0
-	ld	[%o0], %o0			/* give exit status to parent process*/
+	ldsh	[%o0], %o0			/* give exit status to parent process*/
 	ta	0x10			/* dot the system call */
 	ta	0x10			/* dot the system call */
   nop				/* delay slot */
   nop				/* delay slot */
 /* and what if it goes wrong? just retry! */
 /* and what if it goes wrong? just retry! */
@@ -71,7 +71,10 @@ _haltproc:
 	.size _start, .-_start
 	.size _start, .-_start
 
 
 # $Log$
 # $Log$
-# Revision 1.5  2004-03-16 10:19:11  mazen
+# Revision 1.6  2004-05-17 20:56:56  peter
+#   * use ldsh to load exitcode
+#
+# Revision 1.5  2004/03/16 10:19:11  mazen
 # + _haltproc definition for linux/sparc
 # + _haltproc definition for linux/sparc
 #
 #
 # Revision 1.4  2003/06/02 22:03:37  mazen
 # Revision 1.4  2003/06/02 22:03:37  mazen