Revision: 13915
          http://edk2.svn.sourceforge.net/edk2/?rev=13915&view=rev
Author:   vanjeff
Date:     2012-11-02 02:33:07 +0000 (Fri, 02 Nov 2012)
Log Message:
-----------
Sync patch r13901 from main trunk.
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.

Revision Links:
--------------
    http://edk2.svn.sourceforge.net/edk2/?rev=13901&view=rev

Modified Paths:
--------------
    branches/UDK2010.SR1/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c

Modified: branches/UDK2010.SR1/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c
===================================================================
--- branches/UDK2010.SR1/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c       
2012-11-02 02:25:17 UTC (rev 13914)
+++ branches/UDK2010.SR1/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c       
2012-11-02 02:33:07 UTC (rev 13915)
@@ -1,7 +1,7 @@
 /** @file
   This contains the installation function for the driver.
 
-Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
 which accompanies this distribution.  The full text of the license may be 
found at
@@ -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.


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to