diff options
author | 1997-09-03 04:59:58 +0000 | |
---|---|---|
committer | 1997-09-03 04:59:58 +0000 | |
commit | a60e4adf78cb7013ef5e7fb6d6f17a35c8ec0682 (patch) | |
tree | 56f04202e55f0117c4bf929fc1a46e53d240d0aa /sys | |
parent | 2nd part of pretty "machine diskinfo" (diff) | |
download | wireguard-openbsd-a60e4adf78cb7013ef5e7fb6d6f17a35c8ec0682.tar.xz wireguard-openbsd-a60e4adf78cb7013ef5e7fb6d6f17a35c8ec0682.zip |
Fix fake geo
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 6 |
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); |