[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.
This commit is contained in:
George Bișoc 2021-06-20 15:49:55 +02:00
parent 2791ecd303
commit f144ba8d8b
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -52,6 +52,7 @@ _main(int argc,
&BasePriority, &BasePriority,
sizeof(KPRIORITY)); sizeof(KPRIORITY));
#if defined (_X86_)
/* Give us IOPL so that we can access the VGA registers */ /* Give us IOPL so that we can access the VGA registers */
Status = NtSetInformationProcess(NtCurrentProcess(), Status = NtSetInformationProcess(NtCurrentProcess(),
ProcessUserModeIOPL, ProcessUserModeIOPL,
@ -70,6 +71,7 @@ _main(int argc,
&Response); &Response);
#endif #endif
} }
#endif
/* Initialize CSR through CSRSRV */ /* Initialize CSR through CSRSRV */
Status = CsrServerInitialization(argc, argv); Status = CsrServerInitialization(argc, argv);