Messages in this thread | | | Subject | Re: I386 cli | Date | Tue, 22 Oct 2002 13:55:49 -0700 | From | erich@uruk ... |
| |
Vojtech Pavlik <vojtech@suse.cz> wrote:
... > > I'm sure there is no definition because "cli" is the native assembler > > instruction on x86. > > Wrong reason. Furthermore, cli(), meaning 'global interrupt disable, > across all processors', is not doable with a single instruction anyway. > It's not defined, because it should not be used - usually the usage of > cli() means a bug.
Yeah, I noticed I made a thinko here by not looking at the file itself, and assuming it was just a direct assembler hack... essentially the C-level variant of what is called in most OSes "splhi/spllo" rather than "cli/sti", probably because that was how it was originally used.
Good that it's finally getting purged.
-- Erich Stefan Boleyn <erich@uruk.org> http://www.uruk.org/ "Reality is truly stranger than fiction; Probably why fiction is so popular" - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |