Browse Source

* fixed program exitcode after change of operatingsystem_result from
word to longint

git-svn-id: trunk@7473 -

Jonas Maebe 18 years ago
parent
commit
cc03eacd2a
3 changed files with 0 additions and 9 deletions
  1. 0 3
      rtl/linux/sparc/cprt0.as
  2. 0 3
      rtl/linux/sparc/gprt0.as
  3. 0 3
      rtl/linux/sparc/prt0.as

+ 0 - 3
rtl/linux/sparc/cprt0.as

@@ -66,9 +66,6 @@ _start:
         .type   _haltproc,@function
         .type   _haltproc,@function
         _haltproc:
         _haltproc:
        	mov	1, %g1			/* "exit" system call */
        	mov	1, %g1			/* "exit" system call */
-       	sethi	%hi(operatingsystem_result),%o0
-       	or	%o0,%lo(operatingsystem_result),%o0
-       	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 */
        	/* Die very horribly if exit returns.  */
        	/* Die very horribly if exit returns.  */

+ 0 - 3
rtl/linux/sparc/gprt0.as

@@ -87,9 +87,6 @@ _start:
         .type   _haltproc,@function
         .type   _haltproc,@function
   _haltproc:
   _haltproc:
         mov	1, %g1			/* "exit" system call */
         mov	1, %g1			/* "exit" system call */
-        sethi	%hi(operatingsystem_result),%o0
-        or	%o0,%lo(operatingsystem_result),%o0
-        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 */
         /* Die very horribly if exit returns.  */
         /* Die very horribly if exit returns.  */

+ 0 - 3
rtl/linux/sparc/prt0.as

@@ -62,9 +62,6 @@ _start:
 .type   _haltproc,@function
 .type   _haltproc,@function
 _haltproc:
 _haltproc:
 	mov	1, %g1			/* "exit" system call */
 	mov	1, %g1			/* "exit" system call */
-	sethi	%hi(operatingsystem_result),%o0
-	or	%o0,%lo(operatingsystem_result),%o0
-	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 */
 	/* Die very horribly if exit returns.  */
 	/* Die very horribly if exit returns.  */