]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
OvmfPkg: replace PcdAcpiPmBaseAddress with PIIX4_PMBA_VALUE
[mirror_edk2.git] / OvmfPkg / Library / ResetSystemLib / ResetSystemLib.c
index 6d149e84c21e6ce57da8d45ed1f4cebbf8e0f591..308a6002149dcb05884f46890c46c102ce47d972 100644 (file)
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/IoLib.h>\r
-#include <Library/PcdLib.h>\r
 #include <Library/TimerLib.h>\r
 \r
+#include <OvmfPlatforms.h>\r
+\r
 VOID\r
 AcpiPmControl (\r
   UINTN SuspendType\r
@@ -27,8 +28,8 @@ AcpiPmControl (
 {\r
   ASSERT (SuspendType < 6);\r
 \r
-  IoBitFieldWrite16  (PcdGet16 (PcdAcpiPmBaseAddress) + 4, 10, 13, (UINT16) SuspendType);\r
-  IoOr16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, BIT13);\r
+  IoBitFieldWrite16 (PIIX4_PMBA_VALUE + 4, 10, 13, (UINT16) SuspendType);\r
+  IoOr16 (PIIX4_PMBA_VALUE + 4, BIT13);\r
   CpuDeadLoop ();\r
 }\r
 \r