summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/installboot
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-21 23:16:00 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-21 23:16:00 +0000
commit1146570f59c021e58a0a835b59754978d34c9744 (patch)
tree1be0924bce7012271c8dc2cc6c336daec18db545 /sys/arch/i386/stand/installboot
parentaacb0efbe26f88d3ed1b7f3da3cc54fc30c41dc7 (diff)
machdep.bios
Diffstat (limited to 'sys/arch/i386/stand/installboot')
-rw-r--r--sys/arch/i386/stand/installboot/installboot.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c
index 3ac046e23f8..fc8377c20ab 100644
--- a/sys/arch/i386/stand/installboot/installboot.c
+++ b/sys/arch/i386/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.11 1997/09/14 01:15:23 mickey Exp $ */
+/* $OpenBSD: installboot.c,v 1.12 1997/09/21 23:15:59 mickey Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -73,7 +73,7 @@ u_int8_t *block_count_p; /* block count var. in prototype image */
u_int8_t *block_table_p; /* block number array in prototype image */
int maxblocknum; /* size of this array */
-#ifdef CPU_BIOSDEV
+#ifdef CPU_BIOS
int biosdev;
#endif
@@ -137,12 +137,13 @@ main(argc, argv)
proto = argv[optind + 1];
realdev = dev = argv[optind + 2];
-#ifdef CPU_BIOSDEV
+#ifdef CPU_BIOS
if (heads == -1 || nsectors == -1) {
int mib[3], size;
mib[0] = CTL_MACHDEP;
- mib[1] = CPU_BIOSDEV;
+ mib[1] = CPU_BIOS;
+ mib[2] = BIOS_DEV;
size = sizeof(int);
if (sysctl(mib, 2, &biosdev, &size, NULL, 0) == -1)
@@ -151,7 +152,7 @@ main(argc, argv)
if (biosdev & 0x80) {
int geo;
- mib[1] = CPU_BIOSGEOMETRY;
+ mib[2] = BIOS_GEOMETRY;
size = sizeof(int);
if (sysctl(mib, 2, &geo, &size, NULL, 0) == -1)