Browse Source

use operatingsystem_result on m68k-amiga to pass returncode to OS

git-svn-id: trunk@23166 -
Károly Balogh 12 years ago
parent
commit
39755ba888
1 changed files with 1 additions and 7 deletions
  1. 1 7
      rtl/amiga/m68k/prt0.as

+ 1 - 7
rtl/amiga/m68k/prt0.as

@@ -49,7 +49,6 @@ start:
 
    .globl _haltproc 
 _haltproc:
-   move.l   d0,returnValue
 
    | Swapping the stack back
    move.l   _ExecBase,a6
@@ -62,7 +61,7 @@ _haltproc:
 
 __exit:
    movem.l  (sp)+,d0-d7/a0-a6
-   move.l   returnValue,d0
+   move.l   operatingsystem_result,d0
    rts
 
    .data
@@ -74,11 +73,6 @@ SysBase:
 _ExecBase:
    .long 0
 
-   .globl returnValue
-   .align 4
-returnValue:
-   .long 0
-
    .globl stackArea
    .align 4
 stackArea: