]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePi/MainUniCore.c
ArmPkg/ArmCpuLib: Replaced complex functions ArmCpuSynchronizeWait & ArmCpuSynchroniz...
[mirror_edk2.git] / ArmPlatformPkg / PrePi / MainUniCore.c
1 /** @file
2 *
3 * Copyright (c) 2011, ARM Limited. All rights reserved.
4 *
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
9 *
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 *
13 **/
14
15 #include "PrePi.h"
16
17 VOID
18 PrimaryMain (
19 IN UINTN UefiMemoryBase,
20 IN UINTN StacksBase,
21 IN UINTN GlobalVariableBase,
22 IN UINT64 StartTimeStamp
23 )
24 {
25 DEBUG_CODE_BEGIN();
26 // On MPCore system, PeiMpCore.inf should be used instead of PeiUniCore.inf
27 ASSERT(ArmIsMpCore() == 0);
28 DEBUG_CODE_END();
29
30 PrePiMain (UefiMemoryBase, StacksBase, GlobalVariableBase, StartTimeStamp);
31
32 // We must never return
33 ASSERT(FALSE);
34 }
35
36 VOID
37 SecondaryMain (
38 IN UINTN MpId
39 )
40 {
41 // We must never get into this function on UniCore system
42 ASSERT(FALSE);
43 }
44