diff --git a/patches/Exagear/0001-ntdll-Implement-emulation-of-SIDT-instruction-when-u.patch b/patches/Exagear/0001-ntdll-Implement-emulation-of-SIDT-instruction-when-u.patch index c97e8a9a..f30d5f7f 100644 --- a/patches/Exagear/0001-ntdll-Implement-emulation-of-SIDT-instruction-when-u.patch +++ b/patches/Exagear/0001-ntdll-Implement-emulation-of-SIDT-instruction-when-u.patch @@ -1,4 +1,4 @@ -From 45108b71fd1db7fe4911885314f229cb0089041e Mon Sep 17 00:00:00 2001 +From 7cb209e122fc503190dcad411483147ebc6d6cb4 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Tue, 11 Nov 2014 03:11:33 +0100 Subject: ntdll: Implement emulation of SIDT instruction when using Exagear. @@ -35,7 +35,7 @@ index 92d78a2..c88a139 100644 dnl Check for -li386 for NetBSD and OpenBSD diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c -index 13df4bb..e24f75e 100644 +index 13df4bb..edf5ea8 100644 --- a/dlls/ntdll/signal_i386.c +++ b/dlls/ntdll/signal_i386.c @@ -96,6 +96,14 @@ typedef struct @@ -243,7 +243,7 @@ index 13df4bb..e24f75e 100644 + struct idtr ret; + BYTE *addr; + -+ if ((instr[2] & 7) == 3) return FALSE; /* loading to register not allowed */ ++ if ((instr[2] >> 6) == 3) return FALSE; /* loading to register not allowed */ + addr = INSTR_GetOperandAddr( context, instr + 2, long_addr, 0, &len ); + + /* fake IDT structure */