arm-trusted-firmware/docs
Antonio Nino Diaz 0da2fe7e29 Simplify assert() to reduce memory usage
The behaviour of assert() now depends on the value of the new optional
platform define `PLAT_LOG_LEVEL_ASSERT`. This defaults to `LOG_LEVEL` if
not defined by the platform.

- If `PLAT_LOG_LEVEL_ASSERT` >= `LOG_LEVEL_VERBOSE`, it prints the file
  name, line and asserted expression.
- If `PLAT_LOG_LEVEL_ASSERT` >= `LOG_LEVEL_INFO`, it prints the file
  name and line.
- If not, it doesn't print anything.

Note the old behaviour was to print the function name whereas now it
prints the file name. This reduces memory usage because the file name is
shared between all assert calls in a given file. Also, the default
behaviour in debug builds is to no longer print the asserted expression,
greatly reducing the string usage.

For FVP debug builds this change saves approximately:

              No TBBR    TBBR
        BL1    1.6 KB   2.2 KB
        BL2    1.7 KB   2.1 KB
        BL31   2.6 KB   3.3 KB

Change-Id: I2947569d593df0b25611dc3c7a6096f42155c115
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2017-05-16 09:58:08 +01:00
..
diagrams Initialize secondary CPUs during cold boot 2016-03-07 09:23:38 +00:00
plat Tegra: enable ECC/Parity protection for Cortex-A57 CPUs 2017-02-28 08:50:01 -08:00
spd spd: dispatcher for interacting with the Trusty TEE 2016-11-08 15:50:04 -08:00
arm-sip-service.md Introduce ARM SiP service to switch execution state 2017-05-04 11:00:34 +01:00
auth-framework.md Remove dashes from image names: 'BL3-x' --> 'BL3x' 2015-12-14 12:31:37 +00:00
change-log.md Release v1.3: update change-log.md 2016-10-13 15:17:39 +01:00
cpu-specific-build-macros.md Add workaround for ARM Cortex-A53 erratum 855873 2017-03-20 10:57:46 +00:00
firmware-design.md Update terminology: standard SMC to yielding SMC 2017-04-26 12:58:52 +01:00
firmware-update.md Improve FWU documentation 2016-12-20 11:43:10 +00:00
interrupt-framework-design.md Update terminology: standard SMC to yielding SMC 2017-04-26 12:58:52 +01:00
platform-migration-guide.md Remove dashes from image names: 'BL3-x' --> 'BL3x' 2015-12-14 12:31:37 +00:00
porting-guide.md Simplify assert() to reduce memory usage 2017-05-16 09:58:08 +01:00
psci-lib-integration-guide.md PSCI: Optimize call paths if all participants are cache-coherent 2017-03-02 11:00:20 +00:00
psci-pd-tree.md Rework type usage in Trusted Firmware 2016-07-18 17:52:15 +01:00
reset-design.md Introduce the ARM TF reset design document 2015-12-15 15:14:43 +00:00
rt-svc-writers-guide.md Update terminology: standard SMC to yielding SMC 2017-04-26 12:58:52 +01:00
trusted-board-boot.md Replace fip_create with fiptool 2016-07-29 10:38:46 +01:00
user-guide.md Update AEM and Cortex Models versions 2017-05-05 11:31:13 +01:00