summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-24 08:29:53 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-24 08:29:53 +0000
commitdc8f418d712838e99034f42f190046ac8be0e0b6 (patch)
treed703bf4e112f08d4a3b10a484f0df2be15204720 /UefiCpuPkg
parent12fbc893e46d70e19c0dc49aabb47ff044d01887 (diff)
downloadedk2-platforms-dc8f418d712838e99034f42f190046ac8be0e0b6.tar.xz
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
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuDxe.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c
index 424bc312ea..e117b9ab56 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.c
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.c
@@ -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);
//