mirror of https://github.com/acidanthera/audk.git
roll back changing on save and restore interrupt status, it needn't doing.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10060 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dc8f418d71
commit
b6d539c869
|
@ -70,8 +70,6 @@ HandOffToDxeCore (
|
|||
VOID *TemplateBase;
|
||||
EFI_PHYSICAL_ADDRESS VectorAddress;
|
||||
UINT32 Index;
|
||||
BOOLEAN InterruptState;
|
||||
|
||||
|
||||
Status = PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (STACK_SIZE), &BaseOfStack);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
@ -144,18 +142,8 @@ HandOffToDxeCore (
|
|||
|
||||
gLidtDescriptor.Base = (UINTN) IdtTable;
|
||||
|
||||
//
|
||||
// Disable interrupts and save the current interrupt state
|
||||
//
|
||||
InterruptState = SaveAndDisableInterrupts ();
|
||||
|
||||
AsmWriteIdtr (&gLidtDescriptor);
|
||||
|
||||
//
|
||||
// Restore the interrupt state
|
||||
//
|
||||
SetInterruptState (InterruptState);
|
||||
|
||||
//
|
||||
// Go to Long Mode and transfer control to DxeCore.
|
||||
// Interrupts will not get turned on until the CPU AP is loaded.
|
||||
|
|
Loading…
Reference in New Issue