Date: Mon, 1 Dec 2003 19:58:12 -0800 From: "David O'Brien" <obrien@freebsd.org> To: Adriaan de Groot <adridg@cs.kun.nl> Cc: freebsd-amd64@freebsd.org Subject: Re: 5.2-beta panics after copyright Message-ID: <20031202035812.GA14209@dragon.nuxi.com> In-Reply-To: <200312012353.37979.adridg@cs.kun.nl> References: <20031201045433.GA42765@dragon.nuxi.com> <20031201102129.GA2093@dragon.nuxi.com> <200312011928.20170.adridg@cs.kun.nl> <200312012353.37979.adridg@cs.kun.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 01, 2003 at 11:53:37PM +0100, Adriaan de Groot wrote: > On Yaum al-Ithnain 06 Shawwal 1424 19:28, Adriaan de Groot wrote: > > Let's see what an even newer cvsup yields (dec 1 18:30 UTC) .. > > OK, with sources from this evening I have: > > 1) with "option SMP" it panics right after the copyright message. I compiled > with the kernel debugger and all the debugging stuff this time, it tells me: > mtx_lock of spin mux (null) at uma_core.c:1388 > (paraphrased as usual, the numbers are exact). Verified on my Solo9. This patch fixes it: Index: amd64/amd64/mp_machdep.c =================================================================== RCS file: /home/ncvs/src/sys/amd64/amd64/mp_machdep.c,v retrieving revision 1.229 diff -u -r1.229 mp_machdep.c --- amd64/amd64/mp_machdep.c 30 Nov 2003 22:20:40 -0000 1.229 +++ amd64/amd64/mp_machdep.c 2 Dec 2003 01:53:08 -0000 @@ -199,7 +199,7 @@ KASSERT(mp_maxid == 0, ("%s: mp_ncpus is zero, but mp_maxid is not", __func__)); else if (mp_ncpus == 1) - mp_maxid = 0; + mp_maxid = 1; else KASSERT(mp_maxid >= mp_ncpus - 1, ("%s: counters out of sync: max %d, count %d", __func__, @@ -232,7 +232,7 @@ * One CPU was found, so this must be a UP system with * an I/O APIC. */ - mp_maxid = 0; + mp_maxid = 1; return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031202035812.GA14209>