summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>1997-09-03 04:59:59 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>1997-09-03 04:59:59 +0000
commit1bc08f4d7a40a5f565e5e5408144282e954a17c9 (patch)
tree20545cd41367e18cb8e11cae0085a9031257d817 /sys
parent536ce900d7d9dc2e0adc1593609bd61dbdfeaeaf (diff)
Fix fake geo
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/stand/libsa/biosdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c
index 83d8b38c543..611f7e0c350 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.31 1997/09/03 04:32:43 weingart Exp $ */
+/* $OpenBSD: biosdev.c,v 1.32 1997/09/03 04:59:58 weingart Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -44,7 +44,7 @@
extern int debug;
struct biosdisk {
- u_int dinfo;
+ u_int32_t dinfo;
dev_t bsddev;
int biosdev;
int edd_flags;
@@ -232,7 +232,7 @@ biosopen(struct open_file *f, ...)
BIOS_vars.bios_dev = bd->biosdev;
bd->dinfo = biosdinfo(bd->biosdev);
if (!bd->dinfo)
- bd->dinfo = 0x0118; /* fake geometry */
+ bd->dinfo = 0x01014f11; /* fake geometry */
/* pass c: geometry for floppy */
BIOS_vars.bios_geometry = (bd->biosdev & 0x80)? bd->dinfo
: biosdinfo(0x80);