cvs commit: src/sys/kern subr_smp.c src/sys/sys pcpu.h
nate at root.org
Mon Mar 8 19:46:16 PST 2004
On Mon, 8 Mar 2004, Nate Lawson wrote:
> Modified files:
> sys/kern subr_smp.c
> sys/sys pcpu.h
> 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.
More information about the cvs-all