Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 2004 19:46:17 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        cvs-all@FreeBSD.org, cvs-src@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern subr_smp.c src/sys/sys pcpu.h
Message-ID:  <20040308194228.A50350@root.org>
In-Reply-To: <20040309033724.2569A16A55A@hub.freebsd.org>
References:  <20040309033724.2569A16A55A@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 8 Mar 2004, Nate Lawson wrote:
>   Modified files:
>     sys/kern             subr_smp.c
>     sys/sys              pcpu.h
>   Log:
>   Hook CPUs up to newbus.  CPUs will ultimately be a bus driver so that
>   multiple CPU-specific drivers can attach.  This is a work in progress
>   so children aren't supported yet.
>
>   Help from:      jhb
>
>   Revision  Changes    Path
>   1.183     +67 -0     src/sys/kern/subr_smp.c
>   1.12      +1 -0      src/sys/sys/pcpu.h

I tested this also with npx0 as a child of cpu0 since that's where it
really belongs.  But I'm not sure about the ramifications so someone with
an SMP board that wants to implement this should email me.  The changes
are extremely minor.

Also, I'm unsure in what cases device_identify is called multiple times
but I still guarded for it.  Advice on what ivars to add would be helpful.
I'll probably at least have cpuid results available as an ivar so that
child CPU devices can get it directly from the parent.  The goal is to
have drivers like longrun, p4tcc, etc. using a minimum of direct CPU
probing and use ivars for the commonly-used data.

-Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040308194228.A50350>