diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-22 20:13:45 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-22 20:13:45 +0000 |
commit | 98100e95950a0ee3f62ac533d1d945a5e50cbe79 (patch) | |
tree | 58af5ff237a7793f0c25950298635a7edc5b78ef /sys/arch/i386/stand/libsa/biosdev.c | |
parent | 89697efdd4d2c2f615145d8dd494d2359b531201 (diff) |
put values into BIOS_vars so kernel will get 'em soon
Diffstat (limited to 'sys/arch/i386/stand/libsa/biosdev.c')
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index 143f2293bd8..abf52a4ccd6 100644 --- a/sys/arch/i386/stand/libsa/biosdev.c +++ b/sys/arch/i386/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.25 1997/08/21 20:36:15 mickey Exp $ */ +/* $OpenBSD: biosdev.c,v 1.26 1997/08/22 20:13:42 mickey Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -254,10 +254,15 @@ biosopen(struct open_file *f, ...) return ENXIO; } - bd->edd_flags = EDDcheck((dev_t)bd->biosdev); - bootdev_geometry = bd->dinfo = biosdinfo((dev_t)bd->biosdev); + BIOS_vars.bios_dev = bd->biosdev; + bd->dinfo = biosdinfo((dev_t)bd->biosdev); + /* pass c: geometry for floppy */ + BIOS_vars.bios_geometry = (bd->biosdev & 0x80)? bd->dinfo + : biosdinfo(0x80); + /* maj is fixed later w/ disklabel read */ bootdev = bd->bsddev = MAKEBOOTDEV(maj, 0, 0, unit, part); + bd->edd_flags = EDDcheck((dev_t)bd->biosdev); #ifdef BIOS_DEBUG if (debug) { |