Date: Mon, 20 Aug 2001 03:20:01 -0700 (PDT) From: Peter Pentchev <roam@ringlet.net> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/29882: stable 4.3 kernel compile fails for multi-processor Message-ID: <200108201020.f7KAK1411257@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/29882; it has been noted by GNATS. From: Peter Pentchev <roam@ringlet.net> To: Greg Satz <satz@iranger.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108201020.f7KAK1411257>