summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuDxe/CpuMp.h
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-11-13 18:25:29 +0000
committerjljusten <jljusten@Edk2>2014-11-13 18:25:29 +0000
commit533263ee5a7fe83ad5a0d2da74ff30815c5ab63c (patch)
tree84f3cfd7a88fa023ee0cf3900c3d048a73c40d9d /UefiCpuPkg/CpuDxe/CpuMp.h
parenta1e8986d97d8b3ce3ef2ff9d81f2d6ddf9d8dd1f (diff)
downloadedk2-533263ee5a7fe83ad5a0d2da74ff30815c5ab63c.tar.gz
edk2-533263ee5a7fe83ad5a0d2da74ff30815c5ab63c.tar.bz2
edk2-533263ee5a7fe83ad5a0d2da74ff30815c5ab63c.zip
UefiCpuPkg/CpuDxe: Add StartApsStackless routine
This routine starts the APs and directs them to run the specified code. The specified code is entered without a stack being available. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16349 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuMp.h')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuMp.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuMp.h b/UefiCpuPkg/CpuDxe/CpuMp.h
index dd2d0e1200..e28f162f53 100644
--- a/UefiCpuPkg/CpuDxe/CpuMp.h
+++ b/UefiCpuPkg/CpuDxe/CpuMp.h
@@ -24,6 +24,30 @@ InitializeMpSupport (
VOID
);
+typedef
+VOID
+(EFIAPI *STACKLESS_AP_ENTRY_POINT)(
+ VOID
+ );
+
+/**
+ Starts the Application Processors and directs them to jump to the
+ specified routine.
+
+ The processor jumps to this code in flat mode, but the processor's
+ stack is not initialized.
+
+ @param ApEntryPoint Pointer to the Entry Point routine
+
+ @retval EFI_SUCCESS The APs were started
+ @retval EFI_OUT_OF_RESOURCES Cannot allocate memory to start APs
+
+**/
+EFI_STATUS
+StartApsStackless (
+ IN STACKLESS_AP_ENTRY_POINT ApEntryPoint
+ );
+
/**
The AP entry point that the Startup-IPI target code will jump to.