diff options
author | rnordier <rnordier@FreeBSD.org> | 1998-10-04 21:15:45 +0000 |
---|---|---|
committer | rnordier <rnordier@FreeBSD.org> | 1998-10-04 21:15:45 +0000 |
commit | dd5f9d7739b2450016e1b3d8026927a8364417da (patch) | |
tree | fd4e70dd3b76374c8b37f832db8871be10ab60bc /sys/boot/i386/btx | |
parent | 93bf58f69cccfb0b70b641765674617b644892d0 (diff) | |
download | FreeBSD-src-dd5f9d7739b2450016e1b3d8026927a8364417da.zip FreeBSD-src-dd5f9d7739b2450016e1b3d8026927a8364417da.tar.gz |
Adjust setting of argument pointer for BTX 0.87.
Diffstat (limited to 'sys/boot/i386/btx')
-rw-r--r-- | sys/boot/i386/btx/lib/btxcsu.s | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/boot/i386/btx/lib/btxcsu.s b/sys/boot/i386/btx/lib/btxcsu.s index daff6cf..9b3e4c2 100644 --- a/sys/boot/i386/btx/lib/btxcsu.s +++ b/sys/boot/i386/btx/lib/btxcsu.s @@ -13,7 +13,7 @@ # purpose. # -# $Id:$ +# $Id: btxcsu.s,v 1.1 1998/09/14 10:37:00 rnordier Exp $ # # BTX C startup code (ELF). @@ -26,13 +26,14 @@ # # Constants. # - .set ARGSIZ,0x60 # Size of arguments + .set ARGADJ,0xfa0 # Argument adjustment # # Client entry point. # _start: movl %eax,__base # Set base address - subl $ARGSIZ,%esp # Set argument - movl %esp,__args # pointer + movl %esp,%eax # Set + addl $ARGADJ,%eax # argument + movl %eax,__args # pointer call main # Invoke client main() call exit # Invoke client exit() # |