From dc8f418d712838e99034f42f190046ac8be0e0b6 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Wed, 24 Feb 2010 08:29:53 +0000 Subject: 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 --- UefiCpuPkg/CpuDxe/CpuDxe.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'UefiCpuPkg') 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); // -- cgit v1.2.3