From owner-freebsd-smp Mon Nov 25 06:47:32 1996 Return-Path: owner-smp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA21877 for smp-outgoing; Mon, 25 Nov 1996 06:47:32 -0800 (PST) Received: from dyson.iquest.net ([198.70.144.127]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA21852 for ; Mon, 25 Nov 1996 06:47:16 -0800 (PST) Received: (from root@localhost) by dyson.iquest.net (8.8.2/8.6.9) id JAA01865; Mon, 25 Nov 1996 09:46:36 -0500 (EST) From: John Dyson Message-Id: <199611251446.JAA01865@dyson.iquest.net> Subject: Re: cvs commit: sys/i386/i386 locore.s swtch.s sys/i386/include pmap.h To: peter@spinner.dialix.com (Peter Wemm) Date: Mon, 25 Nov 1996 09:46:36 -0500 (EST) Cc: phk@critter.tfs.com, freebsd-smp@freebsd.org In-Reply-To: <199611251442.WAA01604@spinner.DIALix.COM> from "Peter Wemm" at Nov 25, 96 10:42:02 pm Reply-To: dyson@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Naturally.. Since this is from interrupt context, we don't have a lot of > choice about what we have to save... The hardware saves some guff for > us, the rest we must do.. > > > It just so happens that pdirs never move once created. Could > > you possibly do a pushfl;cli;invltlb;popfl though? That will > > keep interrupts away, and also will make pdirs movable eventually. > > (just kind of curious more than anything why/if cli/sti won't work > > in the context that you are describing.) > In the lowest level interrupt context, doesn't the machine turn interrupts off anyway? If you can bypass some of the default processing, the code can be mega simple. > > cli > invltlb > lock inc counter > hit EOI in APIC > restore registers > reti > John