]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePeiCore/PrePeiCore.h
ArmPlatformPkg: Code cleaning
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / PrePeiCore.h
CommitLineData
f598bf12 1/** @file\r
2* Main file supporting the transition to PEI Core in Normal World for Versatile Express\r
3*\r
4* Copyright (c) 2011, ARM Limited. All rights reserved.\r
5*\r
6* This program and the accompanying materials\r
7* are licensed and made available under the terms and conditions of the BSD License\r
8* which accompanies this distribution. The full text of the license may be found at\r
9* http://opensource.org/licenses/bsd-license.php\r
10*\r
11* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13*\r
14**/\r
15#ifndef __PREPEICORE_H_\r
16#define __PREPEICORE_H_\r
17\r
18#include <PiPei.h>\r
19#include <Ppi/TemporaryRamSupport.h>\r
20\r
21\r
22EFI_STATUS\r
23EFIAPI\r
24SecTemporaryRamSupport (\r
25 IN CONST EFI_PEI_SERVICES **PeiServices,\r
26 IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase,\r
27 IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase,\r
28 IN UINTN CopySize\r
29 );\r
30\r
31VOID\r
32SecSwitchStack (\r
33 INTN StackDelta\r
34 );\r
35\r
36// Vector Table for Pei Phase\r
37VOID PeiVectorTable (VOID);\r
38\r
39VOID\r
40EFIAPI\r
41PrimaryMain (\r
42 IN EFI_PEI_CORE_ENTRY_POINT PeiCoreEntryPoint\r
43 );\r
44\r
45/*\r
46 * This is the main function for secondary cores. They loop around until a non Null value is written to\r
47 * SYS_FLAGS register.The SYS_FLAGS register is platform specific.\r
48 * Note:The secondary cores, while executing secondary_main, assumes that:\r
49 * : SGI 0 is configured as Non-secure interrupt\r
50 * : Priority Mask is configured to allow SGI 0\r
51 * : Interrupt Distributor and CPU interfaces are enabled\r
52 *\r
53 */\r
54VOID\r
55EFIAPI\r
56SecondaryMain (\r
57 IN UINTN CoreId\r
58 );\r
59\r
60#endif\r