AArch32: Fix the stack alignment issue
authorSoby Mathew <soby.mathew@arm.com>
Tue, 6 Dec 2016 12:10:51 +0000 (12:10 +0000)
committerSoby Mathew <soby.mathew@arm.com>
Mon, 12 Dec 2016 17:57:37 +0000 (17:57 +0000)
commit9f3ee61c904e4b6d2038086718c5ec4237d544a8
treea07820ccf5f8a93356566fec4b98fd1ae3a671ee
parent919ad05ecb8fab23f91a37783dc5f246847c7bd2
AArch32: Fix the stack alignment issue

The AArch32 Procedure call Standard mandates that the stack must be aligned
to 8 byte boundary at external interfaces. This patch does the required
changes.

This problem was detected when a crash was encountered in
`psci_print_power_domain_map()` while printing 64 bit values. Aligning
the stack to 8 byte boundary resolved the problem.

Fixes ARM-Software/tf-issues#437

Change-Id: I517bd8203601bb88e9311bd36d477fb7b3efb292
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
bl32/sp_min/aarch32/entrypoint.S
include/lib/aarch32/smcc_helpers.h
include/lib/aarch32/smcc_macros.S
lib/cpus/aarch32/cortex_a32.S
lib/cpus/aarch32/cpu_helpers.S
lib/el3_runtime/aarch32/cpu_data.S
lib/psci/aarch32/psci_helpers.S