diff options
author | Justin Chadwell <justin.chadwell@arm.com> | 2019-08-20 10:58:49 +0100 |
---|---|---|
committer | Paul Beesley <paul.beesley@arm.com> | 2019-08-29 12:00:59 +0000 |
commit | 53d7e003fef908db02bc78fb889aa4ab58c9af25 (patch) | |
tree | 535dc1e7bc4691c37aec58175771caca6482890a /common | |
parent | 3441952f61a62948ccf84c2e3eada9b340c3560d (diff) |
Move assembly newline function into common debug code
Printing a newline is a relatively common functionality for code to want
to do. Therefore, this patch now moves this function into a common part
of the code that anyone can use.
Change-Id: I2cad699fde00ef8d2aabf8bf35742ddd88d090ba
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/aarch64/debug.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/aarch64/debug.S b/common/aarch64/debug.S index ac47cbe9..e6e32985 100644 --- a/common/aarch64/debug.S +++ b/common/aarch64/debug.S @@ -11,6 +11,7 @@ .globl asm_print_str .globl asm_print_hex .globl asm_print_hex_bits + .globl asm_print_newline .globl asm_assert .globl do_panic @@ -130,6 +131,15 @@ asm_print_hex_bits: ret x3 endfunc asm_print_hex +/* + * Helper function to print newline to console + * Clobber: x0 + */ +func asm_print_newline + mov x0, '\n' + b plat_crash_console_putc +endfunc asm_print_newline + /*********************************************************** * The common implementation of do_panic for all BL stages ***********************************************************/ |