Commit 1e09ff93 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

Remove dead loops in assert() in C and ASM



The desired behaviour is to call `plat_panic_handler()`, and to use
`no_ret` to do so from ASM.

Change-Id: I88b2feefa6e6c8f9bf057fd51ee0d2e9fb551e4f
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent 0b32628e
...@@ -75,7 +75,7 @@ func do_panic ...@@ -75,7 +75,7 @@ func do_panic
1: 1:
mov lr, r6 mov lr, r6
b plat_panic_handler no_ret plat_panic_handler
endfunc do_panic endfunc do_panic
/*********************************************************** /***********************************************************
......
...@@ -98,7 +98,7 @@ func asm_assert ...@@ -98,7 +98,7 @@ func asm_assert
asm_print_line_dec asm_print_line_dec
bl plat_crash_console_flush bl plat_crash_console_flush
_assert_loop: _assert_loop:
b _assert_loop no_ret plat_panic_handler
endfunc asm_assert endfunc asm_assert
#endif #endif
......
...@@ -42,5 +42,5 @@ void __assert (const char *function, const char *file, unsigned int line, ...@@ -42,5 +42,5 @@ void __assert (const char *function, const char *file, unsigned int line,
console_flush(); console_flush();
while(1); plat_panic_handler();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment