Add NOX2APIC boot parameter to bypass hardware detection
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in -59m32s
Builds / ExectOS (amd64, release) (push) Successful in 31s
Builds / ExectOS (i686, debug) (push) Successful in -59m31s
Builds / ExectOS (i686, release) (push) Successful in 37s

This commit is contained in:
2026-05-15 12:00:50 +02:00
parent 6bbeb657ea
commit 8ee97ac0ae
2 changed files with 11 additions and 0 deletions

View File

@@ -102,6 +102,14 @@ BOOLEAN
HL::Pic::CheckX2ApicSupport(VOID)
{
PKPROCESSOR_CONTROL_BLOCK Prcb;
PCWSTR KernelParameter;
/* Check if the user forced xAPIC via boot parameters */
if(KE::BootInformation::GetKernelParameter(L"NOX2APIC", &KernelParameter) == STATUS_SUCCESS)
{
/* The NOX2APIC flag is present, explicitly disable x2APIC support */
return FALSE;
}
/* Get current processor control block */
Prcb = KE::Processor::GetCurrentProcessorControlBlock();