arm-trusted-firmware/include/common
Sandrine Bailleux 10c252c14b Fix build error with optimizations disabled (-O0)
If Trusted Firmware is built with optimizations disabled (-O0), the
linker throws the following error:

    undefined reference to 'xxx'

Where 'xxx' is a raw inline function defined in a header file. The
reason is that, with optimizations disabled, GCC may decide to skip
the inlining. If that is the case, an external definition to the
compilation unit must be provided. Because no external definition
is present, the linker throws the error.

This patch fixes the problem by declaring the following inline
functions static, so the internal definition is used:
 - cm_set_next_context()
 - bakery_lock_init()

Note that building the TF with optimizations disabled when Trusted
Board Boot is enabled is currently unsupported, as this makes the BL2
image too big to fit in memory without any adjustment of its base
address. Similarly, disabling optimizations for debug builds on FVP
is unsupported at the moment.

Change-Id: I284a9f84cc8df96a0c1a52dfe05c9e8544c0cefe
2016-04-14 16:24:03 +01:00
..
tbbr Replace all SCP FW (BL0, BL3-0) references 2015-12-14 12:31:16 +00:00
asm_macros.S Replace build macro WARN_DEPRECATED with ERROR_DEPRECATED 2015-11-24 11:15:41 +00:00
assert_macros.S Add header guards to asm macro files 2015-04-27 18:06:24 +01:00
bl_common.h Fix the inconsistencies in bl1_tbbr_image_descs[] 2016-02-22 18:17:34 +00:00
context.h Move context management code to common location 2015-12-09 17:41:18 +00:00
context_mgmt.h Fix build error with optimizations disabled (-O0) 2016-04-14 16:24:03 +01:00
debug.h Make cpu operations warning a VERBOSE print 2016-03-22 10:00:42 +00:00
el3_common_macros.S Enable SCR_EL3.SIF bit 2016-04-07 16:30:45 +01:00
firmware_image_package.h Replace all SCP FW (BL0, BL3-0) references 2015-12-14 12:31:16 +00:00
smcc_helpers.h Move context management code to common location 2015-12-09 17:41:18 +00:00