From 14cbd63b01982d3070570dbf68a59f19eaf99e61 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Thu, 14 May 2026 21:52:42 +0200 Subject: [PATCH] Remove premature SetRunLevel call from InitializeProcessor before APIC initialization --- xtoskrnl/ar/amd64/procsup.cc | 3 --- xtoskrnl/ar/i686/procsup.cc | 3 --- 2 files changed, 6 deletions(-) diff --git a/xtoskrnl/ar/amd64/procsup.cc b/xtoskrnl/ar/amd64/procsup.cc index 63ad4f4..7f103dd 100644 --- a/xtoskrnl/ar/amd64/procsup.cc +++ b/xtoskrnl/ar/amd64/procsup.cc @@ -405,9 +405,6 @@ AR::ProcSup::InitializeProcessor(IN PVOID ProcessorStructures) AR::CpuFunc::LoadInterruptDescriptorTable(&IdtDescriptor.Limit); AR::CpuFunc::LoadTaskRegister((UINT)KGDT_SYS_TSS); - /* Enter passive IRQ level */ - HL::RunLevel::SetRunLevel(PASSIVE_LEVEL); - /* Initialize segment registers */ InitializeSegments(); diff --git a/xtoskrnl/ar/i686/procsup.cc b/xtoskrnl/ar/i686/procsup.cc index bf049c0..8940e95 100644 --- a/xtoskrnl/ar/i686/procsup.cc +++ b/xtoskrnl/ar/i686/procsup.cc @@ -401,9 +401,6 @@ AR::ProcSup::InitializeProcessor(IN PVOID ProcessorStructures) AR::CpuFunc::LoadInterruptDescriptorTable(&IdtDescriptor.Limit); AR::CpuFunc::LoadTaskRegister((UINT)KGDT_SYS_TSS); - /* Enter passive IRQ level */ - HL::RunLevel::SetRunLevel(PASSIVE_LEVEL); - /* Initialize segment registers */ InitializeSegments();