]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PlatformInitLib/Platform.c
OvmfPkg: Don't access A20 gate register on Cloud Hypervisor
[mirror_edk2.git] / OvmfPkg / Library / PlatformInitLib / Platform.c
index ee802fd684e150c504de01bbcfe10baab2787d97..c3d34e43af5ab66121190ec6387b7b0470d4800d 100644 (file)
@@ -314,7 +314,9 @@ PlatformMiscInitialization (
   //\r
   // Disable A20 Mask\r
   //\r
-  IoOr8 (0x92, BIT1);\r
+  if (PlatformInfoHob->HostBridgeDevId != CLOUDHV_DEVICE_ID) {\r
+    IoOr8 (0x92, BIT1);\r
+  }\r
 \r
   //\r
   // Build the CPU HOB with guest RAM size dependent address width and 16-bits\r