Browse Source

aros: startup code tweaks for i386, to keep libbase untouched in eax

git-svn-id: trunk@34418 -
Károly Balogh 9 years ago
parent
commit
d5d62b7675
1 changed files with 4 additions and 8 deletions
  1. 4 8
      rtl/aros/i386/prt0.as

+ 4 - 8
rtl/aros/i386/prt0.as

@@ -42,8 +42,7 @@ start:
     movl     _ExecBase,%eax
     movl     _ExecBase,%eax
     pushl    %eax
     pushl    %eax
     pushl    $0
     pushl    $0
-    movl     -196(%eax),%eax    /* FindTask(nil) */
-    call     *%eax
+    call     *-196(%eax)        /* FindTask(nil) */
     addl     $8,%esp
     addl     $8,%esp
 
 
     movl     64(%eax),%ecx      /* SPUpper */
     movl     64(%eax),%ecx      /* SPUpper */
@@ -73,8 +72,7 @@ _allocStack:
     pushl    %eax
     pushl    %eax
     pushl    $0                 /* MEMF_ANY */
     pushl    $0                 /* MEMF_ANY */
     pushl    __stklen
     pushl    __stklen
-    movl     -456(%eax),%eax    /* AllocVec() */
-    call     *%eax
+    call     *-456(%eax)        /* AllocVec() */
     addl     $12,%esp
     addl     $12,%esp
 
 
     testl    %eax,%eax
     testl    %eax,%eax
@@ -94,8 +92,7 @@ _allocStack:
     lea      _initProc,%ebx
     lea      _initProc,%ebx
     pushl    %ebx
     pushl    %ebx
     pushl    %ecx
     pushl    %ecx
-    movl     -536(%eax),%eax        /* NewStackSwap() */
-    call     *%eax
+    call     *-536(%eax)            /* NewStackSwap() */
     addl     $16,%esp
     addl     $16,%esp
     jmp      _afterMain
     jmp      _afterMain
 
 
@@ -113,8 +110,7 @@ _freeStack:
     movl     _ExecBase,%eax
     movl     _ExecBase,%eax
     pushl    %eax
     pushl    %eax
     pushl    StackAreaPtr
     pushl    StackAreaPtr
-    movl     -460(%eax),%eax        /* FreeVec() */
-    call     *%eax
+    call     *-460(%eax)            /* FreeVec() */
     addl     $8,%esp
     addl     $8,%esp
 
 
 __exit:
 __exit: