path: root/common/bl_common.c
diff options
authorDan Handley <dan.handley@arm.com>2014-05-15 14:11:36 +0100
committerAchin Gupta <achin.gupta@arm.com>2014-05-23 17:18:54 +0100
commitdec5e0d1da9fdfe68cea4fbeb096f93e43860493 (patch)
tree36124ce6017a1ce1c500f874d07c507086588ff3 /common/bl_common.c
parent5f0cdb059d7d5c3a8a834074a7f236b85d014dde (diff)
Move BL porting functions into platform.h
Some platform porting functions were in BL specific header files. These have been moved to platform.h so that all porting functions are in the same place. The functions are now grouped by BL. Obsolete BL headers files have been removed. Also, the weak declaration of the init_bl2_mem_layout() function has been moved out the header file and into the source file (bl_common.c) using the more succinct #pragma syntax. This mitigates the risk of 2 weak definitions being created and the wrong one being picked up by the compiler. Change-Id: Ib19934939fd755f3e5a5a5bceec88da684308a83
Diffstat (limited to 'common/bl_common.c')
1 files changed, 3 insertions, 2 deletions
diff --git a/common/bl_common.c b/common/bl_common.c
index 911ad4c..3bc314c 100644
--- a/common/bl_common.c
+++ b/common/bl_common.c
@@ -74,9 +74,10 @@ void change_security_state(unsigned int target_security_state)
- * The next function is a weak definition. Platform specific
- * code can override it if it wishes to.
+ * The next function has a weak definition. Platform specific code can override
+ * it if it wishes to.
+#pragma weak init_bl2_mem_layout
* Function that takes a memory layout into which BL2 has been either top or