2 * Copyright (c) 2019, Arm Limited. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
8 #include <asm_macros.S>
9 #include <platform_def.h>
11 .globl plat_secondary_cold_boot_setup
12 .globl plat_get_my_entrypoint
13 .globl plat_is_my_cpu_primary
15 /* --------------------------------------------------------------------
16 * void plat_secondary_cold_boot_setup (void);
18 * For AArch32, cold-booting secondary CPUs is not yet
19 * implemented and they panic.
20 * --------------------------------------------------------------------
22 func plat_secondary_cold_boot_setup
26 endfunc plat_secondary_cold_boot_setup
28 /* ---------------------------------------------------------------------
29 * unsigned long plat_get_my_entrypoint (void);
31 * Main job of this routine is to distinguish between a cold and warm
33 * ---------------------------------------------------------------------
35 func plat_get_my_entrypoint
36 /* TODO support warm boot */
41 endfunc plat_get_my_entrypoint
43 /* -----------------------------------------------------
44 * unsigned int plat_is_my_cpu_primary (void);
46 * Find out whether the current cpu is the primary
48 * -----------------------------------------------------
50 func plat_is_my_cpu_primary
52 ldr r1, =MPIDR_AFFINITY_MASK
58 endfunc plat_is_my_cpu_primary