]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c
Add CpuDeadLoop() for PeiCore entry, that means PeiCore should not return.
[mirror_edk2.git] / MdePkg / Library / PeiCoreEntryPoint / PeiCoreEntryPoint.c
index fdddf661b6f09177732b09e02ef5837720c50e6a..2631a273cec41f8de01517e7e327d976108860d7 100644 (file)
@@ -19,6 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // The Library classes this module produced\r
 //\r
 #include <Library/PeiCoreEntryPoint.h>\r
+#include <Library/DebugLib.h>\r
 \r
 /**\r
 \r
@@ -52,6 +53,12 @@ _ModuleEntryPoint(
 )\r
 {\r
   ProcessModuleEntryPointList (SecCoreData, PpiList, NULL);\r
+  \r
+  //\r
+  // Should never return\r
+  //\r
+  ASSERT(FALSE);\r
+  CpuDeadLoop ();  \r
 }\r
 \r
 \r