https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f144ba8d8b1a35d962921…
commit f144ba8d8b1a35d9629215beb1fbcafa7fab63d0
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sun Jun 20 15:49:55 2021 +0200
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Fri Jun 25 10:33:28 2021 +0200
[CSRSS] Do not give IOPL to the Client/Server native process if ran on a AMD64 system
ProcessUserModeIOPL is strictly implemented for 32-bit architecture so it doesn't make any sense for CSRSS to gather user mode I/O privilege when that won't work anyway.
---
subsystems/win32/csrss/csrss.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/subsystems/win32/csrss/csrss.c b/subsystems/win32/csrss/csrss.c
index 10f916ccf3c..7862d8f7a4d 100644
--- a/subsystems/win32/csrss/csrss.c
+++ b/subsystems/win32/csrss/csrss.c
@@ -52,6 +52,7 @@ _main(int argc,
&BasePriority,
sizeof(KPRIORITY));
+#if defined (_X86_)
/* Give us IOPL so that we can access the VGA registers */
Status = NtSetInformationProcess(NtCurrentProcess(),
ProcessUserModeIOPL,
@@ -70,6 +71,7 @@ _main(int argc,
&Response);
#endif
}
+#endif
/* Initialize CSR through CSRSRV */
Status = CsrServerInitialization(argc, argv);