2 * Copyright 2001,2005 by Kean Johnston <jkj@sco.com>
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name Kean Johnston not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. Kean Johnston makes no
11 * representations about the suitability of this software for any purpose.
12 * It is provided "as is" without express or implied warranty.
14 * KEAN JOHNSTON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL KEAN JOHNSTON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
18 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
31 #include "xf86OSpriv.h"
32 #include "xf86_OSlib.h"
35 /***************************************************************************/
36 /* I/O Permissions section */
37 /***************************************************************************/
39 static Bool IOEnabled
= FALSE
;
47 if (sysi86(SI86IOPL
, 3) < 0)
48 FatalError("Failed to set IOPL for extended I/O\n");
63 /***************************************************************************/
64 /* Interrupt Handling section */
65 /***************************************************************************/
68 xf86DisableInterrupts(void)
71 if (sysi86(SI86IOPL
, 3) < 0)
76 __asm__
__volatile__("cli");
89 xf86EnableInterrupts(void)
92 if (sysi86(SI86IOPL
, 3) < 0)
97 __asm__
__volatile__("sti");
100 #endif /* __GNUC__ */