X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/blobdiff_plain/409cbc03988e13da34fc5a2bac7c6f627922391e..04144d623ef98e6e25df53113625e94fe7994269:/sys/boot/i386/btx/btx/btx.S diff --git a/sys/boot/i386/btx/btx/btx.S b/sys/boot/i386/btx/btx/btx.S index cd17e9cf9a..017623b4b0 100644 --- a/sys/boot/i386/btx/btx/btx.S +++ b/sys/boot/i386/btx/btx/btx.S @@ -13,7 +13,7 @@ * purpose. * * $FreeBSD: src/sys/boot/i386/btx/btx/btx.s,v 1.32 2002/10/08 18:19:02 jhb Exp $ - * $DragonFly: src/sys/boot/i386/btx/btx/Attic/btx.S,v 1.5 2004/07/18 23:40:04 dillon Exp $ + * $DragonFly: src/sys/boot/i386/btx/btx/Attic/btx.S,v 1.6 2004/07/19 01:25:00 dillon Exp $ */ #include "../../bootasm.h" @@ -217,10 +217,14 @@ init.8: xorl %ecx,%ecx # Zero */ movb $SEL_TSS,%cl # Set task ltr %cx # register + /* + * XXX We should NOT use BDA_MEM here. Use a fixed location + * instead. + */ movl $MEM_BTX_USR,%edx # User base address movzwl %ss:BDA_MEM,%eax # Get free memory shll $0xa,%eax # To bytes - subl $0x1000,%eax # Less arg space + subl $USR_ARGSPACE,%eax # Less arg space subl %edx,%eax # Less base movb $SEL_UDATA,%cl # User data selector pushl %ecx # Set SS