Make bootblocks fit into 7168 limit

This commit is contained in:
Andrey A. Chernov 1994-05-30 05:23:53 +00:00
parent f21bfa8ee5
commit 03afa5ecd8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1632
4 changed files with 14 additions and 16 deletions

View file

@ -20,7 +20,7 @@
# the rights to redistribute these changes.
#
# from: Mach, Revision 2.2 92/04/04 11:33:46 rpd
# $Id: Makefile,v 1.4 1993/11/16 02:02:05 ache Exp $
# $Id: Makefile,v 1.5 1993/12/11 20:35:15 ats Exp $
#
wd0:
@ -32,7 +32,7 @@ wd0:
NOPROG= noprog
NOMAN= noman
CFLAGS = -O -DDO_BAD144 -I${.CURDIR}
CFLAGS = -O2 -DDO_BAD144 -I${.CURDIR}
LIBS= -lc
INC= -I${.CURDIR}/../..

View file

@ -20,7 +20,7 @@
# the rights to redistribute these changes.
#
# from: Mach, Revision 2.2 92/04/04 11:33:46 rpd
# $Id: Makefile,v 1.4 1993/11/16 02:02:05 ache Exp $
# $Id: Makefile,v 1.5 1993/12/11 20:35:15 ats Exp $
#
wd0:
@ -32,7 +32,7 @@ wd0:
NOPROG= noprog
NOMAN= noman
CFLAGS = -O -DDO_BAD144 -I${.CURDIR}
CFLAGS = -O2 -DDO_BAD144 -I${.CURDIR}
LIBS= -lc
INC= -I${.CURDIR}/../..

View file

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, [92/04/03 16:51:14 rvb]
* $Id: boot.c,v 1.10 1994/04/20 22:06:24 phk Exp $
* $Id: boot.c,v 1.11 1994/05/01 03:53:29 martin Exp $
*/
@ -60,8 +60,7 @@ struct exec head;
int argv[10], esym;
char *name;
char *names[] = {
"/386bsd", "/o386bsd", "/386bsd.old",
"/vmunix", "/ovmunix", "/vmunix.old"
"/386bsd", "/o386bsd", "/386bsd.old"
};
#define NUMNAMES (sizeof(names)/sizeof(char *))
@ -76,7 +75,7 @@ int drive;
ouraddr,
argv[7] = memsize(0),
argv[8] = memsize(1),
"$Revision: 1.10 $");
"$Revision: 1.11 $");
printf("use hd(1,a)/386bsd to boot sd0 when wd0 is also installed\n");
gateA20();
loadstart:
@ -143,8 +142,8 @@ loadprog(howto)
}
if((addr + head.a_text + head.a_data + head.a_bss) > 0xa0000)
{
printf("kernel too big, won't fit in 640K with bss\n");
printf("Only hope is to link the kernel for > 1MB\n");
printf("kernel won't fit in 640K with bss\n");
printf("only hope is to link it for > 1MB\n");
return;
}
}

View file

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, [92/04/03 16:51:14 rvb]
* $Id: boot.c,v 1.10 1994/04/20 22:06:24 phk Exp $
* $Id: boot.c,v 1.11 1994/05/01 03:53:29 martin Exp $
*/
@ -60,8 +60,7 @@ struct exec head;
int argv[10], esym;
char *name;
char *names[] = {
"/386bsd", "/o386bsd", "/386bsd.old",
"/vmunix", "/ovmunix", "/vmunix.old"
"/386bsd", "/o386bsd", "/386bsd.old"
};
#define NUMNAMES (sizeof(names)/sizeof(char *))
@ -76,7 +75,7 @@ int drive;
ouraddr,
argv[7] = memsize(0),
argv[8] = memsize(1),
"$Revision: 1.10 $");
"$Revision: 1.11 $");
printf("use hd(1,a)/386bsd to boot sd0 when wd0 is also installed\n");
gateA20();
loadstart:
@ -143,8 +142,8 @@ loadprog(howto)
}
if((addr + head.a_text + head.a_data + head.a_bss) > 0xa0000)
{
printf("kernel too big, won't fit in 640K with bss\n");
printf("Only hope is to link the kernel for > 1MB\n");
printf("kernel won't fit in 640K with bss\n");
printf("only hope is to link it for > 1MB\n");
return;
}
}