mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
Remove xf86{En,Dis}ableInterrupts entirely
This commit is contained in:
parent
c7680befe5
commit
47478aa10a
13 changed files with 0 additions and 292 deletions
|
|
@ -263,46 +263,3 @@ xf86DisableIO(void)
|
|||
ExtendedEnabled = FALSE;
|
||||
#endif /* i386 */
|
||||
}
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
/* Interrupt Handling section */
|
||||
/***************************************************************************/
|
||||
|
||||
_X_EXPORT Bool
|
||||
xf86DisableInterrupts(void)
|
||||
{
|
||||
#if defined(__i386__) || defined(__i386) || defined(__x86)
|
||||
if (!ExtendedEnabled && (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) < 0))
|
||||
return FALSE;
|
||||
|
||||
#ifdef __GNUC__
|
||||
__asm__ __volatile__("cli");
|
||||
#else
|
||||
asm("cli");
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
if (!ExtendedEnabled)
|
||||
sysi86(SI86V86, V86SC_IOPL, 0);
|
||||
#endif /* i386 */
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
_X_EXPORT void
|
||||
xf86EnableInterrupts(void)
|
||||
{
|
||||
#if defined(__i386__) || defined(__i386) || defined(__x86)
|
||||
if (!ExtendedEnabled && (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) < 0))
|
||||
return;
|
||||
|
||||
#ifdef __GNUC__
|
||||
__asm__ __volatile__("sti");
|
||||
#else
|
||||
asm("sti");
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
if (!ExtendedEnabled)
|
||||
sysi86(SI86V86, V86SC_IOPL, 0);
|
||||
#endif /* i386 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue