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@10059 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2010-02-24 08:29:53 +00:00
parent 12fbc893e4
commit dc8f418d71
1 changed files with 0 additions and 11 deletions

View File

@ -1011,7 +1011,6 @@ InitInterruptDescriptorTable (
IA32_DESCRIPTOR *IdtPtr;
UINTN Index;
UINTN CurrentHandler;
BOOLEAN InterruptState;
SetMem (ExternalVectorTable, sizeof(ExternalVectorTable), 0);
@ -1039,18 +1038,8 @@ InitInterruptDescriptorTable (
IdtPtr->Base = (UINT32)(((UINTN)(VOID*) gIdtTable) & (BASE_4GB-1));
IdtPtr->Limit = sizeof (gIdtTable) - 1;
//
// Disable interrupts and save the current interrupt state
//
InterruptState = SaveAndDisableInterrupts ();
AsmWriteIdtr (IdtPtr);
//
// Restore the interrupt state
//
SetInterruptState (InterruptState);
FreePool (IdtPtrAlignmentBuffer);
//