diff options
author | Julius Werner <jwerner@chromium.org> | 2019-12-03 23:29:26 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-12-05 17:58:10 +0000 |
commit | 51359d6c843b95fe09f1f7b63cb97f7cda06ac3c (patch) | |
tree | f5bba103398af605ce15435f012f9331c8cf5b7d /src/mainboard/aopen/Kconfig.name | |
parent | 2e0bca011af0518f7335a700ea04082611b3ddad (diff) |
arm64: Print a char to UART early in exception handler
Over time our printk() seems to acquire more and more features... which
is nice, but it also makes it a little less robust when something goes
wrong. If the wrong global is trampled by some buffer overflow, it
suddenly doesn't print anymore. It would be nice to have at least some
way to tell that we triggered a real exception in that case.
With this patch, arm64 exceptions will print a '!' straight to the UART
before trying any of the more fancy printk() stuff. It's not much but it
should tell the difference between an exception and a hang and hopefully
help someone dig in the right direction sooner. This violates loglevels
(which is part of the point), but presumably when you have a fatal
exception you shouldn't care about that anymore.
Change-Id: I3b08ab86beaee55263786011caa5588d93bbc720
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37465
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/aopen/Kconfig.name')
0 files changed, 0 insertions, 0 deletions