arm-trusted-firmware/bl2
Juan Castillo 53fdcebd6d Call platform_is_primary_cpu() only from reset handler
The purpose of platform_is_primary_cpu() is to determine after reset
(BL1 or BL3-1 with reset handler) if the current CPU must follow the
cold boot path (primary CPU), or wait in a safe state (secondary CPU)
until the primary CPU has finished the system initialization.

This patch removes redundant calls to platform_is_primary_cpu() in
subsequent bootloader entrypoints since the reset handler already
guarantees that code is executed exclusively on the primary CPU.

Additionally, this patch removes the weak definition of
platform_is_primary_cpu(), so the implementation of this function
becomes mandatory. Removing the weak symbol avoids other
bootloaders accidentally picking up an invalid definition in case the
porting layer makes the real function available only to BL1.

The define PRIMARY_CPU is no longer mandatory in the platform porting
because platform_is_primary_cpu() hides the implementation details
(for instance, there may be platforms that report the primary CPU in
a system register). The primary CPU definition in FVP has been moved
to fvp_def.h.

The porting guide has been updated accordingly.

Fixes ARM-software/tf-issues#219

Change-Id: If675a1de8e8d25122b7fef147cb238d939f90b5e
2014-08-01 09:39:50 +01:00
..
aarch64 Call platform_is_primary_cpu() only from reset handler 2014-08-01 09:39:50 +01:00
bl2.ld.S Split platform.h into separate headers 2014-05-23 15:52:29 +01:00
bl2.mk Remove vpath usage in makefiles 2014-05-06 12:35:02 +01:00
bl2_main.c Add support for printing version at runtime 2014-07-25 15:02:08 +01:00
bl2_private.h Remove extern keyword from function declarations 2014-05-23 12:15:54 +01:00