diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 863bed7918fe..d2a9430aba77 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 #include #include +#include #include #include @@ -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 863bed7918fe..d2a9430aba77 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 #include #include +#include #include #include @@ -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); + } }