mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Due to lack of iopl(3), mach64 driver crashes when ior(BUS_CNTL) is called. Since BUS_CNTL is out of the range 0x0000-0x03ff, ioperm(0, 1024, 1) is not sufficient and the ior() causes access violation. This patch reintroduce iopl(3) call in the function hwEnableIO(). Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110521 Fixes:a0f738a673("Fixed ioperm calls in hwEnableIO") Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2052> (cherry picked from commit3b39aebf98)