From: Ben Gras Date: Wed, 30 May 2007 16:13:52 +0000 (+0000) Subject: Assume bios parameters are wrong/missing if any of the parameters are 0. X-Git-Tag: v3.1.4~377 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/man.7.txt?a=commitdiff_plain;h=ad93329236ee4421856dab6da193c50609ba7d31;p=minix.git Assume bios parameters are wrong/missing if any of the parameters are 0. --- diff --git a/drivers/at_wini/at_wini.c b/drivers/at_wini/at_wini.c index 5258a97ca..7c3f9ced1 100644 --- a/drivers/at_wini/at_wini.c +++ b/drivers/at_wini/at_wini.c @@ -1026,7 +1026,7 @@ PRIVATE int w_identify() #endif } - if (wn->lcylinders == 0) { + if (wn->lcylinders == 0 || wn->lheads == 0 || wn->lsectors == 0) { /* No BIOS parameters? Then make some up. */ wn->lcylinders = wn->pcylinders; wn->lheads = wn->pheads;