From owner-cvs-all Sat Jan 6 11:55:46 2001 From owner-cvs-all@FreeBSD.ORG Sat Jan 6 11:55:43 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4DF9937B400; Sat, 6 Jan 2001 11:55:43 -0800 (PST) Received: (from jake@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f06Jth936476; Sat, 6 Jan 2001 11:55:43 -0800 (PST) (envelope-from jake) Message-Id: <200101061955.f06Jth936476@freefall.freebsd.org> From: Jake Burkholder Date: Sat, 6 Jan 2001 11:55:43 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/include globals.h src/sys/i386/include globaldata.h globals.h src/sys/ia64/include globals.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jake 2001/01/06 11:55:43 PST Modified files: sys/alpha/include globals.h sys/i386/include globaldata.h globals.h sys/ia64/include globals.h Log: Implement accessors for per-cpu variables which don't depend on the symbols in globals.s. PCPU_GET(name) returns the value of the per-cpu variable PCPU_PTR(name) returns a pointer to the per-cpu variable PCPU_SET(name, val) sets the value of the per-cpu variable In general these are not yet used, compatibility macros remain. Unifdef SMP struct globaldata, this makes variables such as cpuid available for UP as well. Rebuilding modules is probably a good idea, but I believe old modules will still work, as most of the old infrastructure remains. Revision Changes Path 1.5 +2 -1 src/sys/alpha/include/globals.h 1.17 +3 -4 src/sys/i386/include/globaldata.h 1.15 +45 -149 src/sys/i386/include/globals.h 1.4 +2 -1 src/sys/ia64/include/globals.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message