diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-07 08:56:20 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-07 08:56:20 +0000 |
commit | 36366d3e530e60882724c4d01a4a51db3a274182 (patch) | |
tree | f034641ea18045d377c98aef33000b8dbd8228ca /sys/arch/i386/stand/libsa/biosdev.c | |
parent | 1d20611f5f37c0591fd170d9c4ec00dc8f9da9f2 (diff) |
better fix for floppy boot
Diffstat (limited to 'sys/arch/i386/stand/libsa/biosdev.c')
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index 2601755c950..193a4755780 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.35 1997/09/24 22:42:59 mickey Exp $ */ +/* $OpenBSD: biosdev.c,v 1.36 1997/10/07 08:56:19 mickey Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -229,13 +229,13 @@ biosopen(struct open_file *f, ...) return ENXIO; } - BIOS_vars.bios_dev = bd->biosdev; bd->dinfo = biosdinfo(bd->biosdev); if (!bd->dinfo) bd->dinfo = 0x01014f12; /* fake geometry */ /* pass c: geometry for floppy */ BIOS_vars.bios_geometry = (bd->biosdev & 0x80)? bd->dinfo : biosdinfo(0x80); + BIOS_vars.bios_dev = (bd->biosdev & 0x80)? bd->biosdev : 0x80; /* maj is fixed later w/ disklabel read */ bootdev = bd->bsddev = MAKEBOOTDEV(maj, 0, 0, unit, part); |