From owner-cvs-src@FreeBSD.ORG Mon Mar 8 19:46:16 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C3B016A4CE for ; Mon, 8 Mar 2004 19:46:16 -0800 (PST) Received: from root.org (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id CF74E43D2F for ; Mon, 8 Mar 2004 19:46:15 -0800 (PST) (envelope-from nate@root.org) Received: (qmail 50380 invoked by uid 1000); 9 Mar 2004 03:46:17 -0000 Date: Mon, 8 Mar 2004 19:46:17 -0800 (PST) From: Nate Lawson To: cvs-all@FreeBSD.org, cvs-src@FreeBSD.org, src-committers@FreeBSD.org In-Reply-To: <20040309033724.2569A16A55A@hub.freebsd.org> Message-ID: <20040308194228.A50350@root.org> References: <20040309033724.2569A16A55A@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: cvs commit: src/sys/kern subr_smp.c src/sys/sys pcpu.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 03:46:16 -0000 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