diff options
author | bde <bde@FreeBSD.org> | 1996-12-18 15:03:10 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-12-18 15:03:10 +0000 |
commit | ebe93c01ac8710663b4d032e06a344b033a84315 (patch) | |
tree | b9d40af59433d775fe2f02c2a67bb8c5dd81e9f4 /sys | |
parent | 3ea3e23b8d98c51ea5ff58f6c20249cc4d44f047 (diff) | |
download | FreeBSD-src-ebe93c01ac8710663b4d032e06a344b033a84315.zip FreeBSD-src-ebe93c01ac8710663b4d032e06a344b033a84315.tar.gz |
Moved the printing of the BIOS geometries from cpu_startup() into
configure() where it always belonged. It was originally slightly
misplaced after configure(). Rev.138 left it completely misplaced
before the DEVFS, DRIVERS and CONFIGURE sysinits by not moving it
together with configure().
Restored the printing of bootinfo.bi_n_bios_used now that it can
be nonzero.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/autoconf.c | 37 | ||||
-rw-r--r-- | sys/amd64/amd64/machdep.c | 33 | ||||
-rw-r--r-- | sys/i386/i386/autoconf.c | 37 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 33 |
4 files changed, 72 insertions, 68 deletions
diff --git a/sys/amd64/amd64/autoconf.c b/sys/amd64/amd64/autoconf.c index 3905ec3..ff09b33 100644 --- a/sys/amd64/amd64/autoconf.c +++ b/sys/amd64/amd64/autoconf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91 - * $Id: autoconf.c,v 1.55 1996/06/08 09:37:35 bde Exp $ + * $Id: autoconf.c,v 1.56 1996/07/30 20:30:49 bde Exp $ */ /* @@ -55,6 +55,7 @@ #include <sys/mount.h> #include <sys/sysctl.h> +#include <machine/bootinfo.h> #include <machine/cons.h> #include <machine/md_var.h> #include <i386/isa/icu.h> /* For interrupts */ @@ -167,6 +168,7 @@ static void configure(dummy) void *dummy; { + int i; configure_start(); @@ -198,8 +200,39 @@ configure(dummy) cninit_finish(); - if (bootverbose) + if (bootverbose) { + /* + * Print out the BIOS's idea of the disk geometries. + */ + printf("BIOS Geometries:\n"); + for (i = 0; i < N_BIOS_GEOM; i++) { + unsigned long bios_geom; + int max_cylinder, max_head, max_sector; + + bios_geom = bootinfo.bi_bios_geom[i]; + + /* + * XXX the bootstrap punts a 1200K floppy geometry + * when the get-disk-geometry interrupt fails. Skip + * drives that have this geometry. + */ + if (bios_geom == 0x4f010f) + continue; + + printf(" %x:%08lx ", i, bios_geom); + max_cylinder = bios_geom >> 16; + max_head = (bios_geom >> 8) & 0xff; + max_sector = bios_geom & 0xff; + printf( + "0..%d=%d cylinders, 0..%d=%d heads, 1..%d=%d sectors\n", + max_cylinder, max_cylinder + 1, + max_head, max_head + 1, + max_sector, max_sector); + } + printf(" %d accounted for\n", bootinfo.bi_n_bios_used); + printf("Device configuration finished.\n"); + } #ifdef CD9660 if ((boothowto & RB_CDROM) && !mountroot) { diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index b65c5bb..042a0b8 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.220 1996/12/14 22:18:38 jkh Exp $ + * $Id: machdep.c,v 1.221 1996/12/17 04:19:41 davidg Exp $ */ #include "npx.h" @@ -389,37 +389,6 @@ again: */ bufinit(); vm_pager_bufferinit(); - - /* - * In verbose mode, print out the BIOS's idea of the disk geometries. - */ - if (bootverbose) { - printf("BIOS Geometries:\n"); - for (i = 0; i < N_BIOS_GEOM; i++) { - unsigned long bios_geom; - int max_cylinder, max_head, max_sector; - - bios_geom = bootinfo.bi_bios_geom[i]; - - /* - * XXX the bootstrap punts a 1200K floppy geometry - * when the get-disk-geometry interrupt fails. Skip - * drives that have this geometry. - */ - if (bios_geom == 0x4f010f) - continue; - - printf(" %x:%08lx ", i, bios_geom); - max_cylinder = bios_geom >> 16; - max_head = (bios_geom >> 8) & 0xff; - max_sector = bios_geom & 0xff; - printf( - "0..%d=%d cylinders, 0..%d=%d heads, 1..%d=%d sectors\n", - max_cylinder, max_cylinder + 1, - max_head, max_head + 1, - max_sector, max_sector); - } - } } int diff --git a/sys/i386/i386/autoconf.c b/sys/i386/i386/autoconf.c index 3905ec3..ff09b33 100644 --- a/sys/i386/i386/autoconf.c +++ b/sys/i386/i386/autoconf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91 - * $Id: autoconf.c,v 1.55 1996/06/08 09:37:35 bde Exp $ + * $Id: autoconf.c,v 1.56 1996/07/30 20:30:49 bde Exp $ */ /* @@ -55,6 +55,7 @@ #include <sys/mount.h> #include <sys/sysctl.h> +#include <machine/bootinfo.h> #include <machine/cons.h> #include <machine/md_var.h> #include <i386/isa/icu.h> /* For interrupts */ @@ -167,6 +168,7 @@ static void configure(dummy) void *dummy; { + int i; configure_start(); @@ -198,8 +200,39 @@ configure(dummy) cninit_finish(); - if (bootverbose) + if (bootverbose) { + /* + * Print out the BIOS's idea of the disk geometries. + */ + printf("BIOS Geometries:\n"); + for (i = 0; i < N_BIOS_GEOM; i++) { + unsigned long bios_geom; + int max_cylinder, max_head, max_sector; + + bios_geom = bootinfo.bi_bios_geom[i]; + + /* + * XXX the bootstrap punts a 1200K floppy geometry + * when the get-disk-geometry interrupt fails. Skip + * drives that have this geometry. + */ + if (bios_geom == 0x4f010f) + continue; + + printf(" %x:%08lx ", i, bios_geom); + max_cylinder = bios_geom >> 16; + max_head = (bios_geom >> 8) & 0xff; + max_sector = bios_geom & 0xff; + printf( + "0..%d=%d cylinders, 0..%d=%d heads, 1..%d=%d sectors\n", + max_cylinder, max_cylinder + 1, + max_head, max_head + 1, + max_sector, max_sector); + } + printf(" %d accounted for\n", bootinfo.bi_n_bios_used); + printf("Device configuration finished.\n"); + } #ifdef CD9660 if ((boothowto & RB_CDROM) && !mountroot) { diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index b65c5bb..042a0b8 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.220 1996/12/14 22:18:38 jkh Exp $ + * $Id: machdep.c,v 1.221 1996/12/17 04:19:41 davidg Exp $ */ #include "npx.h" @@ -389,37 +389,6 @@ again: */ bufinit(); vm_pager_bufferinit(); - - /* - * In verbose mode, print out the BIOS's idea of the disk geometries. - */ - if (bootverbose) { - printf("BIOS Geometries:\n"); - for (i = 0; i < N_BIOS_GEOM; i++) { - unsigned long bios_geom; - int max_cylinder, max_head, max_sector; - - bios_geom = bootinfo.bi_bios_geom[i]; - - /* - * XXX the bootstrap punts a 1200K floppy geometry - * when the get-disk-geometry interrupt fails. Skip - * drives that have this geometry. - */ - if (bios_geom == 0x4f010f) - continue; - - printf(" %x:%08lx ", i, bios_geom); - max_cylinder = bios_geom >> 16; - max_head = (bios_geom >> 8) & 0xff; - max_sector = bios_geom & 0xff; - printf( - "0..%d=%d cylinders, 0..%d=%d heads, 1..%d=%d sectors\n", - max_cylinder, max_cylinder + 1, - max_head, max_head + 1, - max_sector, max_sector); - } - } } int |