diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-02-21 15:38:07 -0800 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2019-02-25 15:48:03 +0000 |
commit | 12769c516d9356bd92f90e2f53a4853dbfdc4aed (patch) | |
tree | 05bd0197479f707e642cef0c61fe01cdc474b7c2 /hw/xfree86 | |
parent | ea1527a8a662dcc5ac3ed49135740aa5f24f74bc (diff) |
os-support/solaris: Set IOPL for input thread too
Since the Solaris kernel tracks IOPL per thread, and doesn't inherit
raised IOPL levels when creating a new thread, we need to turn it on
in the input thread for input drivers like vmmouse that need register
access to work correctly.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'hw/xfree86')
-rw-r--r-- | hw/xfree86/os-support/solaris/sun_vid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/solaris/sun_vid.c b/hw/xfree86/os-support/solaris/sun_vid.c index 553010cc1..edb0a1172 100644 --- a/hw/xfree86/os-support/solaris/sun_vid.c +++ b/hw/xfree86/os-support/solaris/sun_vid.c @@ -76,7 +76,11 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem) void xf86OSInputThreadInit() { - return; + /* + * Need to enable in input thread as well, as Solaris kernel tracks + * IOPL per-thread and doesn't inherit when creating a new thread. + */ + xf86EnableIO(); } Bool |