NetBSD Problem Report #14364
Received: (qmail 20756 invoked from network); 26 Oct 2001 16:08:13 -0000
Message-Id: <200110261610.f9QGAST06599@grinder.warthog.com>
Date: Fri, 26 Oct 2001 11:10:28 -0500 (CDT)
From: windsor@warthog.com
Reply-To: windsor@warthog.com
To: gnats-bugs@gnats.netbsd.org
Subject: recent NACPI additions to mainbus.c breaks non-PCI kernels (including some required for "make release")
X-Send-Pr-Version: 3.95
>Number: 14364
>Category: port-i386
>Synopsis: recent NACPI additions to mainbus.c breaks non-PCI kernels (including some required for "make release")
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-i386-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 26 16:09:01 +0000 2001
>Closed-Date: Fri Oct 26 17:10:34 +0000 2001
>Last-Modified: Fri Oct 26 17:10:34 +0000 2001
>Originator: Rob Windsor
>Release: NetBSD 1.5Y 20011025
>Organization:
Nose-Pickers Anonymous
>Environment:
System: NetBSD grinder 1.5Y NetBSD 1.5Y (GRINDER) #9: Thu Oct 25 19:50:50 CDT 2001 windsor@grinder:/usr/src/sys/arch/i386/compile/GRINDER i386
sys/arch/i386/i386/mainbus.c:
$NetBSD: mainbus.c,v 1.34 2001/10/24 15:53:04 soren Exp $
Architecture: i386
Machine: i386
>Description:
all non-PCI kernels listed in sys/arch/i386/conf blow up with:
ld -Ttext c0100000 -e start -T ../../../../arch/i386/conf/kern.ldscript -X -o netbsd ${SYSTEM_OBJ} vers.o
mainbus.o: In function `mainbus_attach':
mainbus.o(.text+0x26): undefined reference to `pci_mode_detect'
mainbus.o(.text+0x2b): undefined reference to `pci_mode'
*** Error code 1
Stop.
make: stopped in /usr/src/sys/arch/i386/compile/GENERIC_PS2TINY
>How-To-Repeat:
build GENERIC_PS2TINY or GENERIC_TINY or INSTALL_TINY or INSTALL_PS2
>Fix:
apply following patch:
--- sys/arch/i386/i386/mainbus.c.FCS Fri Oct 26 11:02:49 2001
+++ sys/arch/i386/i386/mainbus.c Fri Oct 26 11:04:00 2001
@@ -140,10 +140,12 @@
printf("\n");
+#if NPCI > 0
/*
* ACPI needs to be able to access PCI configuration space.
*/
pci_mode = pci_mode_detect();
+#endif
#if NACPI > 0
if (acpi_probe()) {
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Fri Oct 26 10:07:51 PDT 2001
State-Changed-Why:
Patch applied, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.