arm-trusted-firmware/bl32/sp_min
Douglas Raillard 32f0d3c6c3 Replace some memset call by zeromem
Replace all use of memset by zeromem when zeroing moderately-sized
structure by applying the following transformation:
memset(x, 0, sizeof(x)) => zeromem(x, sizeof(x))

As the Trusted Firmware is compiled with -ffreestanding, it forbids the
compiler from using __builtin_memset and forces it to generate calls to
the slow memset implementation. Zeromem is a near drop in replacement
for this use case, with a more efficient implementation on both AArch32
and AArch64.

Change-Id: Ia7f3a90e888b96d056881be09f0b4d65b41aa79e
Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
2017-02-06 17:01:39 +00:00
..
aarch32 AArch32: Fix the stack alignment issue 2016-12-12 17:57:37 +00:00
sp_min.ld.S Introduce unified API to zero memory 2017-02-06 17:01:39 +00:00
sp_min.mk AArch32: Support in SP_MIN to receive arguments from BL2 2016-09-21 16:28:46 +01:00
sp_min_main.c Replace some memset call by zeromem 2017-02-06 17:01:39 +00:00
sp_min_private.h AArch32: add a minimal secure payload (SP_MIN) 2016-08-10 18:01:38 +01:00