]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuDxe/CpuMp.h
UefiCpuPkg/CpuDxe: introduce EFI_MP_SERVICES_PROTOCOL
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / CpuMp.h
index dd2d0e1200ca7b4274eb6b868a5ec126634e5b0b..157ac36c48d0162c01a37c827fd1b6610123d0b4 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef _CPU_MP_H_\r
 #define _CPU_MP_H_\r
 \r
+#include <Protocol/MpService.h>\r
+\r
 /**\r
   Initialize Multi-processor support.\r
 \r
@@ -24,6 +26,30 @@ InitializeMpSupport (
   VOID\r
   );\r
 \r
+typedef\r
+VOID\r
+(EFIAPI *STACKLESS_AP_ENTRY_POINT)(\r
+  VOID\r
+  );\r
+\r
+/**\r
+  Starts the Application Processors and directs them to jump to the\r
+  specified routine.\r
+\r
+  The processor jumps to this code in flat mode, but the processor's\r
+  stack is not initialized.\r
+\r
+  @param ApEntryPoint    Pointer to the Entry Point routine\r
+\r
+  @retval EFI_SUCCESS           The APs were started\r
+  @retval EFI_OUT_OF_RESOURCES  Cannot allocate memory to start APs\r
+\r
+**/\r
+EFI_STATUS\r
+StartApsStackless (\r
+  IN STACKLESS_AP_ENTRY_POINT ApEntryPoint\r
+  );\r
+\r
 /**\r
   The AP entry point that the Startup-IPI target code will jump to.\r
 \r