This change courtesy of Charles Hannum <root@ihack.net>. This
addresses the problems seen by Jason Thorpe <thorpej@netbsd.org> and Erik Berls <cyber@netbsd.org> necessitating rev 1.20 of biosboot/main.c. Move BOOTSEG from 0x100 to 0x1000. Move heap from 0x10000 to 0x20000. XXXXXXXX This is a Kluge From Hell to allow boot blocks to grow a little larger without diskbuf[] crossing a 64k boundary.
This commit is contained in:
parent
56cb02c358
commit
07a3d660c5
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.29 2000/05/13 19:58:02 jdolecek Exp $
|
||||
# $NetBSD: Makefile,v 1.30 2000/05/21 16:29:14 jhawk Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../../
|
||||
|
||||
@ -57,7 +57,7 @@ CPPFLAGS+= -DPASS_BIOSGEOM
|
||||
#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
|
||||
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
|
||||
|
||||
SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x40000
|
||||
SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x40000
|
||||
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no
|
||||
|
||||
.if (${BASE} == "biosboot")
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: start_bootsect.S,v 1.17 2000/05/07 22:58:58 fvdl Exp $ */
|
||||
/* $NetBSD: start_bootsect.S,v 1.18 2000/05/21 16:29:15 jhawk Exp $ */
|
||||
|
||||
/*
|
||||
* BIOS bootsector startup
|
||||
@ -64,7 +64,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
#include "bbinfo.h"
|
||||
|
||||
BOOTSEG = 0x0100 # boot will be loaded here (below 640K)
|
||||
BOOTSEG = 0x01000 # boot will be loaded here (below 640K)
|
||||
BOOTSTACK = 0xfffc # boot stack
|
||||
LOADSZ = PRIM_LOADSZ # size of first loaded chunk
|
||||
|
||||
@ -306,7 +306,7 @@ found:
|
||||
data32
|
||||
pushl %eax /* so we get address 0 in BOOTSEG */
|
||||
data32
|
||||
pushl $0x10+LOADSZ*0x10000
|
||||
pushl $0x10+LOADSZ*0x20000
|
||||
movl %esp, %esi
|
||||
movb $0x42, %ah
|
||||
int $0x13
|
||||
|
Loading…
Reference in New Issue
Block a user