From owner-freebsd-bugs Mon Aug 20 3:20: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B6F3837B416 for ; Mon, 20 Aug 2001 03:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7KAK1411257; Mon, 20 Aug 2001 03:20:01 -0700 (PDT) (envelope-from gnats) Date: Mon, 20 Aug 2001 03:20:01 -0700 (PDT) Message-Id: <200108201020.f7KAK1411257@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: i386/29882: stable 4.3 kernel compile fails for multi-processor Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/29882; it has been noted by GNATS. From: Peter Pentchev To: Greg Satz Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: i386/29882: stable 4.3 kernel compile fails for multi-processor Date: Mon, 20 Aug 2001 13:12:57 +0300 On Sun, Aug 19, 2001 at 08:10:50PM -0700, Greg Satz wrote: > > >Number: 29882 > >Category: i386 > >Synopsis: stable 4.3 kernel compile fails for multi-processor > >Originator: Greg Satz > >Release: 4.3 stable > >Organization: > >Environment: > >Description: > fnu# make > linking kernel > mp_machdep.o: In function `ap_init': > mp_machdep.o(.text+0x219c): undefined reference to `enable_sse' > *** Error code 1 I can reproduce this when the config file includes 'options SMP', yet does not include 'cpu I686_CPU'. Can you try the attached patch, it works here? The patch is against -stable, but applies cleanly to -current with an offset. G'luck, Peter -- When you are not looking at it, this sentence is in Spanish. Index: src/sys/i386/i386/mp_machdep.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/mp_machdep.c,v retrieving revision 1.115.2.9 diff -u -r1.115.2.9 mp_machdep.c --- src/sys/i386/i386/mp_machdep.c 2001/08/15 01:23:50 1.115.2.9 +++ src/sys/i386/i386/mp_machdep.c 2001/08/20 10:11:06 @@ -2420,8 +2420,10 @@ /* set up FPU state on the AP */ npxinit(__INITIAL_NPXCW__); +#if defined(I686_CPU) /* set up SSE registers */ enable_sse(); +#endif /* A quick check from sanity claus */ apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message