aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorRobert Nordier <rnordier@FreeBSD.org>1998-10-04 21:15:45 +0000
committerRobert Nordier <rnordier@FreeBSD.org>1998-10-04 21:15:45 +0000
commit731a4a01dbc8e98507b83c3887df4ba66467946b (patch)
tree09c2b3db59a518ca62d3f7f7cced70586e1b603d /sys/boot
parent18577050a0b2d7b12d411c1c023c94d76cbc3e13 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/btx/lib/btxcsu.s9
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 daff6cfc91fb7..9b3e4c24e19c2 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()
#