diff options
author | danh-arm <dan.handley@arm.com> | 2016-12-20 17:00:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 17:00:32 +0000 |
commit | bd83b41a3037a44905410a15f9a19bc30a7130e5 (patch) | |
tree | a33051a0cb462bca4f91e4f2b406253df9fc7f8d /plat/arm | |
parent | 67748e4827976f3b13f8bc1281b3c4b59da87e4a (diff) | |
parent | e12cb61f0e7d8678a2cd6ef73f0a38af1d460e08 (diff) |
Merge pull request #791 from jeenu-arm/asm-assert-32
AArch32: Print ASM_ASSERT and panic messages
Diffstat (limited to 'plat/arm')
-rw-r--r-- | plat/arm/common/aarch32/arm_helpers.S | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plat/arm/common/aarch32/arm_helpers.S b/plat/arm/common/aarch32/arm_helpers.S index 08399137..5d238ecb 100644 --- a/plat/arm/common/aarch32/arm_helpers.S +++ b/plat/arm/common/aarch32/arm_helpers.S @@ -31,6 +31,8 @@ #include <platform_def.h> .weak plat_arm_calc_core_pos + .weak plat_crash_console_init + .weak plat_crash_console_putc .weak plat_my_core_pos /* ----------------------------------------------------- @@ -57,3 +59,29 @@ func plat_arm_calc_core_pos add r0, r1, r0, LSR #6 bx lr endfunc plat_arm_calc_core_pos + + /* --------------------------------------------- + * int plat_crash_console_init(void) + * Function to initialize the crash console + * without a C Runtime to print crash report. + * Clobber list : r0 - r3 + * --------------------------------------------- + */ +func plat_crash_console_init + ldr r0, =PLAT_ARM_CRASH_UART_BASE + ldr r1, =PLAT_ARM_CRASH_UART_CLK_IN_HZ + ldr r2, =ARM_CONSOLE_BAUDRATE + b console_core_init +endfunc plat_crash_console_init + + /* --------------------------------------------- + * int plat_crash_console_putc(int c) + * Function to print a character on the crash + * console without a C Runtime. + * Clobber list : r1 - r2 + * --------------------------------------------- + */ +func plat_crash_console_putc + ldr r1, =PLAT_ARM_CRASH_UART_BASE + b console_core_putc +endfunc plat_crash_console_putc |