]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/CpuDxe/CpuMp.h
UefiCpuPkg/CpuDxe: Add stackless assembly AP entry points
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / CpuMp.h
CommitLineData
6022e28c
JJ
1/** @file\r
2 CPU DXE MP support\r
3\r
4 Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _CPU_MP_H_\r
16#define _CPU_MP_H_\r
17\r
18/**\r
19 Initialize Multi-processor support.\r
20\r
21**/\r
22VOID\r
23InitializeMpSupport (\r
24 VOID\r
25 );\r
26\r
fab82c18
JJ
27/**\r
28 The AP entry point that the Startup-IPI target code will jump to.\r
29\r
30 The processor jumps to this code in flat mode, but the processor's\r
31 stack is not initialized.\r
32\r
33**/\r
34VOID\r
35EFIAPI\r
36AsmApEntryPoint (\r
37 VOID\r
38 );\r
39\r
40/**\r
41 Releases the lock preventing other APs from using the shared AP\r
42 stack.\r
43\r
44 Once the AP has transitioned to using a new stack, it can call this\r
45 function to allow another AP to proceed with using the shared stack.\r
46\r
47**/\r
48VOID\r
49EFIAPI\r
50AsmApDoneWithCommonStack (\r
51 VOID\r
52 );\r
53\r
6022e28c
JJ
54#endif // _CPU_MP_H_\r
55\r