Subject: Re: question about x86 spllower()
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Charles M. Hannum <abuse@spamalicious.com>
List: port-i386
Date: 12/16/2004 23:25:57
On Thursday 16 December 2004 23:08, Manuel Bouyer wrote:
> From the commit message, this was to avoid deadlock issues on IPIs.
> I can't see why what could change in the interrupt flag here between
> the read_psl() and write_psl(), disable_intr() only does a cli().
> And if Xspllower() is called, we won't restore the interrupt flags we saved

You really don't get how this works, do you?  CLI/STI are special instructions 
to change the interrupt flag in the PSL without whacking the whole register.