summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-06 07:40:18 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-06 07:40:18 +0000
commite356f99943603fe9ede19ab4715fa8eed16c0339 (patch)
tree51ead410907ab8d6b5e6556e782c6e96802f5481
parent6c2e50d403a5d2c972fcb736ebfecfae94d5a9b2 (diff)
downloadedk2-e356f99943603fe9ede19ab4715fa8eed16c0339.tar.gz
edk2-e356f99943603fe9ede19ab4715fa8eed16c0339.tar.bz2
edk2-e356f99943603fe9ede19ab4715fa8eed16c0339.zip
Add Pcd8259LegacyModeEdgeLevel into PcAtChipsetPkg.dec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8760 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--PcAtChipsetPkg/8259InterruptControllerDxe/8259.c2
-rw-r--r--PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf1
-rw-r--r--PcAtChipsetPkg/PcAtChipsetPkg.dec5
3 files changed, 6 insertions, 2 deletions
diff --git a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c
index 9316c7ff0f..22d03c8e38 100644
--- a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c
+++ b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.c
@@ -40,7 +40,7 @@ EFI_8259_MODE mMode = Efi8259ProtectedMode;
UINT16 mProtectedModeMask = 0xffff;
UINT16 mLegacyModeMask = FixedPcdGet16(Pcd8259LegacyModeMask);
UINT16 mProtectedModeEdgeLevel = 0x0000;
-UINT16 mLegacyModeEdgeLevel = 0x0000;
+UINT16 mLegacyModeEdgeLevel = FixedPcdGet16(Pcd8259LegacyModeEdgeLevel);
//
// Worker Functions
diff --git a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
index 04379270dc..dd9b3fe081 100644
--- a/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
+++ b/PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
@@ -46,6 +46,7 @@
[Pcd]
gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeMask|0xFFFF
+ gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0000
[Depex]
TRUE
diff --git a/PcAtChipsetPkg/PcAtChipsetPkg.dec b/PcAtChipsetPkg/PcAtChipsetPkg.dec
index 81750c6968..d5c39de878 100644
--- a/PcAtChipsetPkg/PcAtChipsetPkg.dec
+++ b/PcAtChipsetPkg/PcAtChipsetPkg.dec
@@ -41,7 +41,10 @@
# mask all legacy interrupt. Please restore the original legacy mask value if changing is made for these special case.
#
gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeMask|0x00000001|UINT16|0xFFFF
-
+
+ ## Pcd8259LegacyModeEdgeLevel defines the default edge level for legacy mode's interrrupt controller.
+ gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x00000002|UINT16|0x0000
+
[Guids.common]
gPcAtChipsetPkgTokenSpaceGuid = { 0x326ae723, 0xae32, 0x4589, { 0x98, 0xb8, 0xca, 0xc2, 0x3c, 0xdc, 0xc1, 0xb1 } }