]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: interrupts: print FAR_ELx on sync exceptions
authorPavel Skripkin <paskripkin@gmail.com>
Sun, 2 Apr 2023 16:27:34 +0000 (19:27 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:27 +0000 (15:31 -0400)
commitde0095b4009b9d75d0c101643c3de60cb26d456d
treec9b1404deeaa285005a12023a63ede78fc35a0f9
parent23ff3e7b15d3734d349e2f80ca063ae2d0b53159
arm64: interrupts: print FAR_ELx on sync exceptions

Default synchronous exceptions handler prints only esr and register
dump. Sometimes it requiers to see an address which caused exceptions
to understand what's going on

ARM ARM in section D13.2.41 states that FAR_EL2 will contain meanfull
value in case of ESR.EC holds 0x20, 0x21, 0x24, 0x25, 0x22, 0x34 or
0x35. Same applies for EL1.

This patch adds function whivh determine current EL, gets correct FAR
register and prints it on panic.

Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
arch/arm/lib/interrupts_64.c