summaryrefslogtreecommitdiff
path: root/drivers/nxp/uart/nxp_console.S
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nxp/uart/nxp_console.S')
-rw-r--r--drivers/nxp/uart/nxp_console.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nxp/uart/nxp_console.S b/drivers/nxp/uart/nxp_console.S
index 995c0bc..77149ae 100644
--- a/drivers/nxp/uart/nxp_console.S
+++ b/drivers/nxp/uart/nxp_console.S
@@ -84,6 +84,7 @@ endfunc console_init
* -----------------------------------------------
*/
func console_core_init
+ push {r4}
/* Check the input base address */
cmp r0, #0
beq core_init_fail
@@ -155,8 +156,10 @@ __wait_cr2_reset:
/* Indicate success */
movs r0, #1
+ pop {r4}
bx lr
core_init_fail:
+ pop {r4}
mov r0, #0
bx lr
endfunc console_core_init