]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c
OvmfPkg: attempt to trigger cold reset through PIIX3 reset control register
[mirror_edk2.git] / OvmfPkg / Library / ResetSystemLib / ResetSystemLib.c
index 52406add245be5b4f6941beae0b88e972371042a..85af7f12508169c363a3f1267dc290eab77adf91 100644 (file)
@@ -45,7 +45,8 @@ ResetCold (
   VOID\r
   )\r
 {\r
-  IoWrite8 (0x64, 0xfe);\r
+  IoWrite8 (0xCF9, BIT2 | BIT1); // 1st choice: PIIX3 RCR, RCPU|SRST\r
+  IoWrite8 (0x64, 0xfe);         // 2nd choice: keyboard controller\r
 }\r
 \r
 /**\r