From e9ef63e19d8f9993950f1f06299aee1eb18ded9f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 1 Jul 2010 08:45:53 +1000 Subject: [PATCH] Revert "Remove call to iopl(). It's not portable and isn't necessary." https://bugzilla.redhat.com/show_bug.cgi?id=604660 For details, see: https://bugzilla.novell.com/show_bug.cgi?id=604966 This reverts commit bcdec3d0cd4434770cd841c33c030e0d7203881f. --- tools/vmmouse_detect.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tools/vmmouse_detect.c b/tools/vmmouse_detect.c index ac238b4..cfb92e1 100644 --- a/tools/vmmouse_detect.c +++ b/tools/vmmouse_detect.c @@ -53,6 +53,11 @@ main(void) signal(SIGSEGV, segvCB); #if defined __i386__ || defined __x86_64__ + /* + * To access i/o ports above 0x3ff, we need to be in iopl(3). + */ + + iopl(3); if (VMMouseClient_Enable()) { VMMouseClient_Disable(); return 0; -- 1.7.1