VOID *TemplateBase;\r
EFI_PHYSICAL_ADDRESS VectorAddress;\r
UINT32 Index;\r
- BOOLEAN InterruptState;\r
-\r
\r
Status = PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (STACK_SIZE), &BaseOfStack);\r
ASSERT_EFI_ERROR (Status);\r
\r
gLidtDescriptor.Base = (UINTN) IdtTable;\r
\r
- //\r
- // Disable interrupts and save the current interrupt state\r
- //\r
- InterruptState = SaveAndDisableInterrupts ();\r
-\r
AsmWriteIdtr (&gLidtDescriptor);\r
\r
- //\r
- // Restore the interrupt state\r
- //\r
- SetInterruptState (InterruptState);\r
-\r
//\r
// Go to Long Mode and transfer control to DxeCore.\r
// Interrupts will not get turned on until the CPU AP is loaded.\r