diff options
| author | Pali Rohár <pali@kernel.org> | 2021-02-16 18:05:57 +0100 |
|---|---|---|
| committer | Pali Rohár <pali@kernel.org> | 2021-03-04 11:05:31 +0100 |
| commit | 805f22babdc26601f32dc44bb547cc4d5a0447a5 (patch) | |
| tree | 16b038e0288121b5d6e27cbc9700679a7dbce0f0 /common | |
| parent | 66306814586b1bf6bcb859aaad218ec3bb090e94 (diff) | |
| download | arm-trusted-firmware-805f22babdc26601f32dc44bb547cc4d5a0447a5.tar.gz | |
Print newline after hex address in aarch64 el3_panic function
Make the aarch64's el3_panic() function print a newline character after
PC address, otherwise the output can get mangled in one line with output
from other firmware. Here is an example of how the output of el3_panic()
got mangled with Linux' console output:
ERROR: Unhandled External Abort received on 0x80000001 at EL3!
ERROR: exception reason=1 syndrome=0x92000210
PANIC at PC : 0x0000000004027400[13438.473133] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[13438.479255] rcu: 1-...0: (4 ticks this GP) idle=35e/1/0x4000000000000000 softirq=146459/146459 fqs=2625
The aarch32 version of this function already does this.
Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I9f0d032c6cd1e2be7a1837f9c8e8244d30633993
Diffstat (limited to 'common')
| -rw-r--r-- | common/aarch64/debug.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/aarch64/debug.S b/common/aarch64/debug.S index ad6acd9d2..d105d0871 100644 --- a/common/aarch64/debug.S +++ b/common/aarch64/debug.S @@ -208,6 +208,9 @@ el3_panic: sub x4, x4, #4 bl asm_print_hex + /* Print new line */ + bl asm_print_newline + bl plat_crash_console_flush _panic_handler: |
