Adam Jackson, le Wed 17 Mar 2010 17:44:34 -0400, a écrit : > On Sat, 2010-03-13 at 02:26 +0100, Samuel Thibault wrote: > > - ioperm(0x40,4,0); /* trap access to the timer chip */ > > - ioperm(0x60,4,0); /* trap access to the keyboard controller */ > > I'm not sold on this. You really do not want to be bashing these ports > directly if the kernel also is.
Sure. The issue is that some VESA BIOS do need it. > If this _is_ right, then it almost certainly needs to be done for all > platforms. Well, actually only Linux and Hurd used to do it. Since Linux also set iopl to 3 to be able to access to ports >= 0x400, the I/O bitmask set by ioperm() is just completely ignored, and the same two lines in the Linux code don't have any effect. > Do you have a link to a bug that this is solving? http://lists.gnu.org/archive/html/bug-hurd/2010-03/msg00037.html Samuel _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
