Date: Sat, 20 Nov 1999 23:52:08 -0500 From: "Jason Craig" <nemesys@home.com> To: "Matthew N. Dodd" <winter@jurai.net> Cc: "FreeBSD Hackers" <freebsd-hackers@FreeBSD.ORG> Subject: Re: Compile new kernel with MCA support Message-ID: <008d01bf33dc$2a9fca40$d3b17018@wlfdle1.on.wave.home.com> References: <Pine.BSF.4.20.9911201627570.7305-100000@sasami.jurai.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I applied the patch, and it patched successfully. I did the usual /usr/sbin/config KERNEL, then make depend, and then make. During the make it bombed out and gave this message: cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmis sing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -a nsi -nostdinc -I- -I. -I../.. -I/usr/include -DKERNEL -include opt_global.h -elf ../../i386/i386/mp_machdep.c In file included from ../../i386/i386/mp_machdep.c:68: machine/mpapic.h:57: syntax error before `4' ../../i386/i386/mp_machdep.c:690: `MCA' undeclared here (not in a function) ../../i386/i386/mp_machdep.c:690: initializer element for `bus_type_table[3].type' is not constant ../../i386/i386/mp_machdep.c:693: `MCA' undeclared here (not in a function) ../../i386/i386/mp_machdep.c:693: initializer element for `bus_type_table[6].type' is not constant ../../i386/i386/mp_machdep.c:714: `MCA' undeclared here (not in a function) ../../i386/i386/mp_machdep.c:714: initializer element for `default_data[3][2]' is not constant ../../i386/i386/mp_machdep.c:717: `MCA' undeclared here (not in a function) ../../i386/i386/mp_machdep.c:717: initializer element for `default_data[6][2]' is not constant *** Error code 1 Stop in /usr/src/sys/compile/SMP.KERNEL.11201999. I think I found the problem though. In the mca_mp.patch file the line + MCA 4, I think it should read + MCA = 4,. ... Index: include/mpapic.h =================================================================== RCS file: /cvs/src/sys/i386/include/mpapic.h,v retrieving revision 1.12 diff -u -8 -r1.12 mpapic.h --- mpapic.h 1999/08/28 00:44:19 1.12 +++ mpapic.h 1999/11/20 21:26:18 @@ -49,16 +49,17 @@ */ #define NAPICID 16 /* these don't really belong in here... */ enum busTypes { CBUS = 1, CBUSII = 2, EISA = 3, + MCA 4, ISA = 6, PCI = 13, XPRESS = 18, MAX_BUSTYPE = 18, UNKNOWN_BUSTYPE = 0xff }; ... I changed the mpapic.h manually, and it compiled the rest of the kernel. However I have one more problem, probably not related to MCA now, but rather SMP in general. Copyright (c) 1992-1999 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-19991113-CURRENT #0: Sat Nov 20 18:25:10 EST 1999 root@cr717730-d.wlfdle1.on.wave.home.com:/usr/src/sys/compile/SMP.KERNEL.112 01999 Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P54C (89.96-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x525 Stepping = 5 Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC> real memory = 67108864 (65536K bytes) avail memory = 62029824 (60576K bytes) Programming 16 pins in IOAPIC #0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00030010, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00030010, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x000f0010, at 0xfec00000 MicroChannel Architecture System detected. Preloaded elf kernel "kernel" at 0xc02f3000. Intel Pentium detected, installing workaround for F00F bug ... ... <cut stuff that is probably not important> ... ppc0 at port 0x378-0x37f irq 7 flags 0x40 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode plip0: <PLIP network interface> on ppbus 0 lpt0: <generic printer> on ppbus 0 lpt0: Interrupt-driven port ppi0: <generic parallel i/o> on ppbus 0 panic: APIC RTC != 8 mp_lock = 00000002; cpuid = 0; lapic.id = 00000000 syncing disks... done Automatic reboot in 15 seconds - press a key on the console to abort Any ideas on this problem? Thanks, Jason ----- Original Message ----- From: Matthew N. Dodd <winter@jurai.net> To: Jason Craig <nemesys@home.com> Cc: FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG> Sent: Saturday, November 20, 1999 4:29 PM Subject: Re: Compile new kernel with MCA support > On Sat, 20 Nov 1999, Jason Craig wrote: > > panic: unknown bus type: 'MCA' > > mp_lock = 00000004; cpuid = 0; lapic.id = 00000000 > > Apply this patch: > > ftp://ftp.jurai.net/users/winter/patches/mca_mp.patch > > And let me know what happens. > > Thanks. > > -- > | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | > | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | > | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008d01bf33dc$2a9fca40$d3b17018>