Revision: 13901
http://edk2.svn.sourceforge.net/edk2/?rev=13901&view=rev
Author: li-elvin
Date: 2012-10-31 08:58:27 +0000 (Wed, 31 Oct 2012)
Log Message:
-----------
Raise TPL to high to disable CPU interrupt before 8259 legacy base vector is
changed, then restore TPL level at last when 8259 initialization is done.
Signed-off-by: Li Elvin <[email protected]>
Reviewed-by: Michael Kinney <[email protected]>
Modified Paths:
--------------
trunk/edk2/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c
Modified: trunk/edk2/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c
===================================================================
--- trunk/edk2/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c 2012-10-31
08:56:25 UTC (rev 13900)
+++ trunk/edk2/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c 2012-10-31
08:58:27 UTC (rev 13901)
@@ -123,8 +123,10 @@
IN UINT8 SlaveBase
)
{
- UINT8 Mask;
+ UINT8 Mask;
+ EFI_TPL OriginalTpl;
+ OriginalTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
//
// Set vector base for slave PIC
//
@@ -211,6 +213,8 @@
IoWrite8 (LEGACY_8259_CONTROL_REGISTER_SLAVE, LEGACY_8259_EOI);
IoWrite8 (LEGACY_8259_CONTROL_REGISTER_MASTER, LEGACY_8259_EOI);
+
+ gBS->RestoreTPL (OriginalTpl);
return EFI_SUCCESS;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits