mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
Initial experimental support for AMD64 builds on Solaris 10 x86. Improved
support for 64-bit SPARC builds on Solaris as well.
This commit is contained in:
parent
ef4401ff8a
commit
a8a61bbe22
10 changed files with 339 additions and 26 deletions
|
|
@ -23,7 +23,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifdef i386
|
||||
#if defined(i386) || defined(__x86)
|
||||
#define _NEED_SYSI86
|
||||
#endif
|
||||
#include "xf86.h"
|
||||
|
|
@ -143,14 +143,14 @@ xf86UnMapVidMem(int ScreenNum, pointer Base, unsigned long Size)
|
|||
/* I/O Permissions section */
|
||||
/***************************************************************************/
|
||||
|
||||
#ifdef i386
|
||||
#if defined(i386) || defined(__x86)
|
||||
static Bool ExtendedEnabled = FALSE;
|
||||
#endif
|
||||
|
||||
Bool
|
||||
xf86EnableIO(void)
|
||||
{
|
||||
#ifdef i386
|
||||
#if defined(i386) || defined(__x86)
|
||||
if (ExtendedEnabled)
|
||||
return TRUE;
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ xf86EnableIO(void)
|
|||
void
|
||||
xf86DisableIO(void)
|
||||
{
|
||||
#ifdef i386
|
||||
#if defined(i386) || defined(__x86)
|
||||
if(!ExtendedEnabled)
|
||||
return;
|
||||
|
||||
|
|
@ -183,7 +183,7 @@ xf86DisableIO(void)
|
|||
|
||||
Bool xf86DisableInterrupts(void)
|
||||
{
|
||||
#ifdef i386
|
||||
#if defined(i386) || defined(__x86)
|
||||
if (!ExtendedEnabled && (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) < 0))
|
||||
return FALSE;
|
||||
|
||||
|
|
@ -202,7 +202,7 @@ Bool xf86DisableInterrupts(void)
|
|||
|
||||
void xf86EnableInterrupts(void)
|
||||
{
|
||||
#ifdef i386
|
||||
#if defined(i386) || defined(__x86)
|
||||
if (!ExtendedEnabled && (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) < 0))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue