Subject: port-i386/13639: i386 PNPBIOS code sometime prints false/incorrect info.
To: None <>
From: Paul Shupak <>
List: netbsd-bugs
Date: 08/06/2001 00:44:16
>Number:         13639
>Category:       port-i386
>Synopsis:       Incorrect values of the PNP node's index may be printed.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 06 00:41:00 PDT 2001
>Originator:     Paul Shupak
>Release:        Mon Aug  6 00:31:27 PDT 2001
System: NetBSD new-cobalt 1.5X NetBSD 1.5X (ATHALON-$Revision: 1.7 $) #107: Fri Aug 3 19:03:59 PDT 2001 paul@new-cobalt:/usr/src/sys/arch/i386/compile/ATHALON i386
Architecture: i386
Machine: i386
When the PNPBIOS nodes' indices are not sequential OR don't begin at zero
(e.g.  many BIOS's start at index "1" and/or skip intermediate indicies),
the incorrect value is printed AND is then used for further function calls.
	configure the "PNPBIOS" option into a kernel an boot on any of
several Taiwanese motherboard (e.g. at least my several ASUS, and some
ABITs and Tyans )
Index: pnpbios.c
RCS file: /cvsroot/syssrc/sys/arch/i386/pnpbios/pnpbios.c,v
retrieving revision 1.23
diff -r1.23 pnpbios.c
< 		if (dn->dn_handle != node)
> 		if (dn->dn_handle != node) {
> 			node = dn->dn_handle;
> 		}
< 		if (dn->dn_handle != node)
> 		if (dn->dn_handle != node) {
> 			node = dn->dn_handle;
> 		}