diff options
Diffstat (limited to 'sys/arch/i386/stand/libsa/biosdev.c')
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index f90c03379ca..a822266e795 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.60 2003/08/11 06:23:09 deraadt Exp $ */ +/* $OpenBSD: biosdev.c,v 1.61 2003/09/11 17:39:35 deraadt Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -140,6 +140,13 @@ bios_getdiskinfo(int dev, bios_diskinfo_t *pdi) pdi->bios_edd = (bm & 0xffff) | ((rv & 0xff) << 16); else pdi->bios_edd = -1; + + /* + * If extended disk access functions are not supported + * there is not much point on doing EDD. + */ + if (!(pdi->bios_edd & 1)) + pdi->bios_edd = -1; } else pdi->bios_edd = -1; |