From owner-cvs-all Wed Dec 13 1:23:59 2000 From owner-cvs-all@FreeBSD.ORG Wed Dec 13 01:23:55 2000 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 9975737B400; Wed, 13 Dec 2000 01:23:54 -0800 (PST) Received: (from jake@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBD9NsY26689; Wed, 13 Dec 2000 01:23:54 -0800 (PST) (envelope-from jake) Message-Id: <200012130923.eBD9NsY26689@freefall.freebsd.org> From: Jake Burkholder Date: Wed, 13 Dec 2000 01:23:54 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 exception.s simplelock.s support.s swtch.s vm86bios.s src/sys/i386/include asmacros.h src/sys/i386/isa apic_vector.s icu_vector.s ipl.s X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jake 2000/12/13 01:23:54 PST Modified files: sys/i386/i386 exception.s simplelock.s support.s swtch.s vm86bios.s sys/i386/include asmacros.h sys/i386/isa apic_vector.s icu_vector.s ipl.s Log: Introduce a new potientially cleaner interface for accessing per-cpu variables from i386 assembly language. The syntax is PCPU(member) where member is the capitalized name of the per-cpu variable, without the gd_ prefix. Example: movl %eax,PCPU(CURPROC). The capitalization is due to using the offsets generated by genassym rather than the symbols provided by linking with globals.o. asmacros.h is the wrong place for this but it seemed as good a place as any for now. The old implementation in asnames.h has not been removed because it is still used to de-mangle the symbols used by the C variables for the UP case. Revision Changes Path 1.74 +11 -11 src/sys/i386/i386/exception.s 1.13 +13 -11 src/sys/i386/i386/simplelock.s 1.76 +38 -38 src/sys/i386/i386/support.s 1.102 +20 -20 src/sys/i386/i386/swtch.s 1.21 +9 -9 src/sys/i386/i386/vm86bios.s 1.19 +7 -1 src/sys/i386/include/asmacros.h 1.60 +17 -16 src/sys/i386/isa/apic_vector.s 1.24 +3 -3 src/sys/i386/isa/icu_vector.s 1.42 +5 -5 src/sys/i386/isa/ipl.s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message