xfree86: permit access to io port 0xffff on the hurd

This commit is contained in:
Samuel Thibault 2007-12-16 01:21:45 +01:00 committed by Julien Cristau
parent b4ef8885e1
commit 58c2898b62

View File

@ -126,7 +126,7 @@ extern int ioperm(unsigned long __from, unsigned long __num, int __turn_on);
Bool Bool
xf86EnableIO() xf86EnableIO()
{ {
if (ioperm(0, 0xffff, 1)) { if (ioperm(0, 0x10000, 1)) {
FatalError("xf86EnableIO: ioperm() failed (%s)\n", strerror(errno)); FatalError("xf86EnableIO: ioperm() failed (%s)\n", strerror(errno));
return FALSE; return FALSE;
} }
@ -138,7 +138,7 @@ xf86EnableIO()
void void
xf86DisableIO() xf86DisableIO()
{ {
ioperm(0,0xffff,0); ioperm(0,0x10000,0);
return; return;
} }