aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-06-27 11:18:24 +0100
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-07-23 16:17:34 +0100
commit5ce8572684380469a254eb3a4a102acff451a088 (patch)
tree299b3f2628d923ee20228f19f8bafeaeb6541fdb
parent0e27c5909a1aa316f2ca7aa35f4c56426b0a1d90 (diff)
warp7: crash-console: Add plat_crash_console_putcatf-master+linaro-warp7-pr3-uart
This patch adds a strong-linkage over-ride to plat_crash_console_putc. In doing so it calls into mxc_crash_console_putc, the assembly version of the putc() to be used in stackless-mode on the crash/panic path. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r--plat/nxp/imx7/warp7/aarch32/warp7_helpers.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/plat/nxp/imx7/warp7/aarch32/warp7_helpers.S b/plat/nxp/imx7/warp7/aarch32/warp7_helpers.S
index 8950ad0e..e6dd88a8 100644
--- a/plat/nxp/imx7/warp7/aarch32/warp7_helpers.S
+++ b/plat/nxp/imx7/warp7/aarch32/warp7_helpers.S
@@ -12,6 +12,7 @@
.globl platform_mem_init
.globl plat_get_my_entrypoint
.globl plat_crash_console_init
+ .globl plat_crash_console_putc
/* ---------------------------------------------
* int plat_mem_init(void)
@@ -36,3 +37,8 @@ func plat_crash_console_init
mov_imm r2, PLAT_WARP7_CONSOLE_BAUDRATE
b mxc_crash_console_init
endfunc plat_crash_console_init
+
+func plat_crash_console_putc
+ mov_imm r1, PLAT_WARP7_BOOT_UART_BASE
+ b mxc_crash_console_putc
+endfunc plat_crash_console_putc