diff options
author | phk <phk@FreeBSD.org> | 1994-11-26 09:37:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-11-26 09:37:57 +0000 |
commit | 64c7beace913c657eeea8dc6fc757cb0d35efbdc (patch) | |
tree | 8b8c3f5abd7fff207bc26e3dd7e69e887aab9a59 /sys | |
parent | 7459447c2ef8f890f1e3edeaab81e3815f9dd17e (diff) | |
download | FreeBSD-src-64c7beace913c657eeea8dc6fc757cb0d35efbdc.zip FreeBSD-src-64c7beace913c657eeea8dc6fc757cb0d35efbdc.tar.gz |
Set the bootverbose if so desired.
if (bootverbose)
Print the geometries the bios passes to us (through the bootblocks).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 14 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 14 |
2 files changed, 24 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 863bed7..d2a9430 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.92 1994/11/15 14:12:55 bde Exp $ + * $Id: machdep.c,v 1.93 1994/11/16 00:41:06 davidg Exp $ */ #include "npx.h" @@ -94,6 +94,7 @@ extern vm_offset_t avail_start, avail_end; #include <machine/sysarch.h> #include <machine/cons.h> #include <machine/devconf.h> +#include <machine/bootinfo.h> #include <i386/isa/isa.h> #include <i386/isa/isa_device.h> @@ -143,7 +144,7 @@ int _udatasel, _ucodesel; /* * Machine-dependent startup code */ -int boothowto = 0, Maxmem = 0, badpages = 0, physmem = 0; +int boothowto = 0, bootverbose = 0, Maxmem = 0, badpages = 0, physmem = 0; long dumplo; extern int bootdev; int biosmem; @@ -173,6 +174,9 @@ cpu_startup() vm_offset_t minaddr; #endif /* BOUNCE_BUFFERS */ + if (boothowto & RB_VERBOSE) + bootverbose++; + /* * Initialize error message buffer (at end of core). */ @@ -371,6 +375,12 @@ again: * Configure the system. */ configure(); + if (bootverbose) { + printf("BIOS Geometries:", + for (i=0; i < N_BIOS_GEOM; i++) + printf(" %x:%x\n", i, bootinfo.bios_geom[i]); + printf(" %d accounted for\n",bootinfo.n_bios_used); + } } diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 863bed7..d2a9430 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.92 1994/11/15 14:12:55 bde Exp $ + * $Id: machdep.c,v 1.93 1994/11/16 00:41:06 davidg Exp $ */ #include "npx.h" @@ -94,6 +94,7 @@ extern vm_offset_t avail_start, avail_end; #include <machine/sysarch.h> #include <machine/cons.h> #include <machine/devconf.h> +#include <machine/bootinfo.h> #include <i386/isa/isa.h> #include <i386/isa/isa_device.h> @@ -143,7 +144,7 @@ int _udatasel, _ucodesel; /* * Machine-dependent startup code */ -int boothowto = 0, Maxmem = 0, badpages = 0, physmem = 0; +int boothowto = 0, bootverbose = 0, Maxmem = 0, badpages = 0, physmem = 0; long dumplo; extern int bootdev; int biosmem; @@ -173,6 +174,9 @@ cpu_startup() vm_offset_t minaddr; #endif /* BOUNCE_BUFFERS */ + if (boothowto & RB_VERBOSE) + bootverbose++; + /* * Initialize error message buffer (at end of core). */ @@ -371,6 +375,12 @@ again: * Configure the system. */ configure(); + if (bootverbose) { + printf("BIOS Geometries:", + for (i=0; i < N_BIOS_GEOM; i++) + printf(" %x:%x\n", i, bootinfo.bios_geom[i]); + printf(" %d accounted for\n",bootinfo.n_bios_used); + } } |