NetBSD Problem Report #8262
Received: (qmail 15514 invoked from network); 24 Aug 1999 11:18:17 -0000
Message-Id: <199908241118.EAA09891@nooksack.ldc.cs.wwu.edu>
Date: Tue, 24 Aug 1999 04:18:15 -0700 (PDT)
From: bjh21@cam.ac.uk
Reply-To: bjh21@cam.ac.uk
To: gnats-bugs@gnats.netbsd.org
Subject: locore.s gives link errors if npx support is left out
X-Send-Pr-Version: www-1.0
>Number: 8262
>Category: port-i386
>Synopsis: locore.s gives link errors if npx support is left out
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-i386-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 24 04:20:01 +0000 1999
>Closed-Date: Wed Sep 08 09:17:47 +0000 1999
>Last-Modified: Wed Sep 08 09:18:30 +0000 1999
>Originator: Ben Harris
>Release: 1.4K (current as of about 1999-08-22)
>Organization:
>Environment:
>Description:
If you try to build a kernel without the "npx" device (eg for a 386
without a 387), the link fails because locore.s references
npx_intrs_while_probing and npx_traps_while_probing, which are defined
in npx.c, and hence not in my kernel.
>How-To-Repeat:
Probably just try to build a GENERIC kernel with the "npx0 at isa?" line
commented out, though mine was a rather more minimal kernel than that.
>Fix:
It looks like this bug was introduced in locore.s 1.206, where some code
was moved in from npx.c without protecting it with "#if NNPX > 0".
I tried just #iffing out the "incl" lines, and this produced a bootable
kernel, but I suspect that the whole of the last three subroutines in
locore.s should be conditionalised.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: kleink
State-Changed-When: Wed Sep 8 02:17:47 PDT 1999
State-Changed-Why:
Fixed, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.