summaryrefslogtreecommitdiff
path: root/common/aarch32
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-02-17 17:11:27 +0000
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2017-03-31 09:54:22 +0100
commit801cf93c48585a83fda5d576b25c7b7f3cd59259 (patch)
tree7cd2ad556c586014ae34bb7b1925a0738d44e273 /common/aarch32
parentad4c2ec6880f2f13f36e46a2bc3b624525b89c15 (diff)
Add and use plat_crash_console_flush() API
This API makes sure that all the characters sent to the crash console are output before returning from it. Porting guide updated. Change-Id: I1785f970a40f6aacfbe592b6a911b1f249bb2735 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'common/aarch32')
-rw-r--r--common/aarch32/debug.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/aarch32/debug.S b/common/aarch32/debug.S
index ecf9faff..504da248 100644
--- a/common/aarch32/debug.S
+++ b/common/aarch32/debug.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -70,6 +70,9 @@ func do_panic
/* Print new line */
ldr r4, =panic_end
bl asm_print_str
+
+ bl plat_crash_console_flush
+
1:
mov lr, r6
b plat_panic_handler
@@ -140,6 +143,9 @@ dec_print_loop:
udiv r5, r5, r6 /* Reduce divisor */
cmp r5, #0
bne dec_print_loop
+
+ bl plat_crash_console_flush
+
1:
no_ret plat_panic_handler
endfunc asm_assert