]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg AcpiTables: Use PcdDebugIoPort to describe QEMU debug console
authorLiming Gao <liming.gao@intel.com>
Wed, 16 Nov 2016 02:10:07 +0000 (10:10 +0800)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 16 Nov 2016 16:05:17 +0000 (17:05 +0100)
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/AcpiTables/AcpiTables.inf
OvmfPkg/AcpiTables/Dsdt.asl

index 1187a145e52d65f303937c9ec12008ecd3b27b0b..2c604c34d5beafa38fc98e444e866281b68fab46 100644 (file)
@@ -37,4 +37,8 @@
 \r
 [Packages]\r
   MdePkg/MdePkg.dec\r
+  OvmfPkg/OvmfPkg.dec\r
+\r
+[Pcd]\r
+  gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort\r
 \r
index 2c3a314af62a11ad99dc4c80440e28d5bc769dab..0397722039b5c99dc29ffdd5ad735ef45db03be9 100644 (file)
@@ -581,7 +581,7 @@ DefinitionBlock ("Dsdt.aml", "DSDT", 1, "INTEL ", "OVMF    ", 4) {
             IO (Decode16, 0x278, 0x278, 0x00, 0x08)\r
             IO (Decode16, 0x370, 0x370, 0x00, 0x02)\r
             IO (Decode16, 0x378, 0x378, 0x00, 0x08)\r
-            IO (Decode16, 0x402, 0x402, 0x00, 0x01)        // QEMU debug console, should use FixedPcdGet16 (PcdDebugIoPort)\r
+            IO (Decode16, FixedPcdGet16 (PcdDebugIoPort), FixedPcdGet16 (PcdDebugIoPort), 0x00, 0x01)\r
             IO (Decode16, 0x440, 0x440, 0x00, 0x10)\r
             IO (Decode16, 0x678, 0x678, 0x00, 0x08)\r
             IO (Decode16, 0x778, 0x778, 0x00, 0x08)\r