Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: arm32: fix native_intr_handler()
Prior to this patch when a native interrupt was received in IRQ mode r12 wasn't saved on the stack. There's two problems with that: 1. r12 isn't a callee preserved register, but must be preserved in an exception handler 2. Without r12 an odd number of registers was saved breaking the 8 byte alignment of the stack pointer This patch fixes this by also saving r12 on the stack when handling a native interrupt in IRQ mode. Reviewed-by: Peng Fan <peng.fan@nxp.com> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (Hikey) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
- Loading branch information