1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Changed the "Insert filesystem floppy" prompt to give the user a choice in

which drive he wants the root file system (A or B).
This commit is contained in:
Christoph Robitschko 1993-10-09 08:31:39 +00:00
parent b5d3f86c3f
commit 950d93597c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=560
2 changed files with 40 additions and 6 deletions

View File

@ -29,6 +29,12 @@
/* /*
* HISTORY * HISTORY
* $Log: boot.c,v $ * $Log: boot.c,v $
* Revision 1.4 1993/10/08 20:19:23 rgrimes
* Remove the ``loader overlaps bss, kernel must bzero'' printf since that
* is so often reported as an error condition when it is not. We print the
* size of things so for those who want to know if this happened they can
* figure it out from the size information that is printed.
*
* Revision 1.3 1993/07/16 13:06:08 rgrimes * Revision 1.3 1993/07/16 13:06:08 rgrimes
* Changed header from 386BSD BOOT to FreeBSD BOOT. * Changed header from 386BSD BOOT to FreeBSD BOOT.
* *
@ -137,7 +143,7 @@ int drive;
ouraddr, ouraddr,
argv[7] = memsize(0), argv[7] = memsize(0),
argv[8] = memsize(1), argv[8] = memsize(1),
"$Revision: 1.3 $"); "$Revision: 1.4 $");
printf("use options hd(1,...... to boot sd0 when wd0 is also installed\n"); printf("use options hd(1,...... to boot sd0 when wd0 is also installed\n");
gateA20(); gateA20();
loadstart: loadstart:
@ -304,8 +310,19 @@ loadprog(howto)
switch(maj) switch(maj)
{ {
case 2: case 2:
printf("\n\nInsert file system floppy \n"); printf("\n\nInsert file system floppy in drive A or B\n");
getchar(); printf("Press 'A', 'B' or any other key for the default ");
printf("%c: ", unit+'A');
i = getchar();
switch (i) {
case '0': case 'A': case 'a':
unit = 0;
break;
case '1': case 'B': case 'b':
unit = 1;
break;
}
printf("\n");
break; break;
case 4: case 4:
break; break;

View File

@ -29,6 +29,12 @@
/* /*
* HISTORY * HISTORY
* $Log: boot.c,v $ * $Log: boot.c,v $
* Revision 1.4 1993/10/08 20:19:23 rgrimes
* Remove the ``loader overlaps bss, kernel must bzero'' printf since that
* is so often reported as an error condition when it is not. We print the
* size of things so for those who want to know if this happened they can
* figure it out from the size information that is printed.
*
* Revision 1.3 1993/07/16 13:06:08 rgrimes * Revision 1.3 1993/07/16 13:06:08 rgrimes
* Changed header from 386BSD BOOT to FreeBSD BOOT. * Changed header from 386BSD BOOT to FreeBSD BOOT.
* *
@ -137,7 +143,7 @@ int drive;
ouraddr, ouraddr,
argv[7] = memsize(0), argv[7] = memsize(0),
argv[8] = memsize(1), argv[8] = memsize(1),
"$Revision: 1.3 $"); "$Revision: 1.4 $");
printf("use options hd(1,...... to boot sd0 when wd0 is also installed\n"); printf("use options hd(1,...... to boot sd0 when wd0 is also installed\n");
gateA20(); gateA20();
loadstart: loadstart:
@ -304,8 +310,19 @@ loadprog(howto)
switch(maj) switch(maj)
{ {
case 2: case 2:
printf("\n\nInsert file system floppy \n"); printf("\n\nInsert file system floppy in drive A or B\n");
getchar(); printf("Press 'A', 'B' or any other key for the default ");
printf("%c: ", unit+'A');
i = getchar();
switch (i) {
case '0': case 'A': case 'a':
unit = 0;
break;
case '1': case 'B': case 'b':
unit = 1;
break;
}
printf("\n");
break; break;
case 4: case 4:
break; break;