libc: Use printf and snprintf across codebasetf_printf and tf_snprintf are now called printf and snprintf, so thecode needs to be updated.Change-Id: Iffeee97afcd6328c4c2d30830d4923b964682d71Sig
libc: Use printf and snprintf across codebasetf_printf and tf_snprintf are now called printf and snprintf, so thecode needs to be updated.Change-Id: Iffeee97afcd6328c4c2d30830d4923b964682d71Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
show more ...
Replace stdio.h functions by TF functionsFunctions provided by stdio.h such as printf and sprintf are availablein the codebase, but they add a lot of code to the final image if theyare used:- A
Replace stdio.h functions by TF functionsFunctions provided by stdio.h such as printf and sprintf are availablein the codebase, but they add a lot of code to the final image if theyare used:- AArch64: ~4KB- AArch32: ~2KB in T32, ~3KB in A32tf_printf and tf_snprintf are a lot more simple, but it is preferableto use them when possible because they are also used in common code.Change-Id: Id09fd2b486198fe3d79276e2c27931595b7ba60eAcked-by: Haojian Zhuang <haojian.zhuang@linaro.org>Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Fix order of #includesThis fix modifies the order of system includes to meet the ARM TF codingstandard. There are some exceptions in order to retain header groupings,minimise changes to imported
Fix order of #includesThis fix modifies the order of system includes to meet the ARM TF codingstandard. There are some exceptions in order to retain header groupings,minimise changes to imported headers, and where there are headers withinthe #if and #ifndef statements.Change-Id: I65085a142ba6a83792b26efb47df1329153f1624Signed-off-by: Isla Mitchell <isla.mitchell@arm.com>
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by FreeBSD have not been modified.[0]: https://spdx.org/Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761aSigned-off-by: dp-arm <dimitris.papastamos@arm.com>
Replace some memset call by zeromemReplace all use of memset by zeromem when zeroing moderately-sizedstructure by applying the following transformation:memset(x, 0, sizeof(x)) => zeromem(x, sizeo
Replace some memset call by zeromemReplace all use of memset by zeromem when zeroing moderately-sizedstructure by applying the following transformation:memset(x, 0, sizeof(x)) => zeromem(x, sizeof(x))As the Trusted Firmware is compiled with -ffreestanding, it forbids thecompiler from using __builtin_memset and forces it to generate calls tothe slow memset implementation. Zeromem is a near drop in replacementfor this use case, with a more efficient implementation on both AArch32and AArch64.Change-Id: Ia7f3a90e888b96d056881be09f0b4d65b41aa79eSigned-off-by: Douglas Raillard <douglas.raillard@arm.com>
partition: check GPT partition tableNow only support GPT partition table. MBR partition table isn'tsupported yet.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
12