]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: Fix software interrupt handler
authorSean Anderson <sean.anderson@seco.com>
Fri, 27 Oct 2023 20:40:13 +0000 (16:40 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 10 Nov 2023 16:55:17 +0000 (11:55 -0500)
commit298c26c5c7f4105f4e421d227009baeba5c59678
tree8b4aaa1b1a972c02969f200d54b18d4a1d8fb619
parentb630f8b3aefc2d11cdc73314743a6fb16deaf4c5
arm: Fix software interrupt handler

When we take a software interrupt, we are already in supervisor mode.
get_bad_stack assumes we are not in supervisor mode so it can clobber
the stack pointer. This causes us to have an invalid stack once that
macro finishes. Revert back to the get_bad_stack_swi macro which was
previously removed.

Fixes: 41623c91b09 ("arm: move exception handling out of start.S files")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
arch/arm/lib/vectors.S