]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-mvebu/lowlevel_spl.S
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / arm / mach-mvebu / lowlevel_spl.S
index 69da7fe7afd6ced7a689032ed3ce5ccd32f1cbf5..8718d7a43e11c852a082a84f4de6ef19ca073bbc 100644 (file)
@@ -1,14 +1,22 @@
-/*
- * SPDX-License-Identifier:    GPL-2.0+
- */
+/* SPDX-License-Identifier: GPL-2.0+ */
 
 #include <config.h>
 #include <linux/linkage.h>
 
 ENTRY(save_boot_params)
+       stmfd   sp!, {r0 - r12, lr}     /* @ save registers on stack */
+       ldr     r12, =CONFIG_SPL_BOOTROM_SAVE
+       str     sp, [r12]
        b       save_boot_params_ret
 ENDPROC(save_boot_params)
 
+ENTRY(return_to_bootrom)
+       ldr     r12, =CONFIG_SPL_BOOTROM_SAVE
+       ldr     sp, [r12]
+       mov     r0, #0x0                /* @ return value: 0x0 NO_ERR */
+       ldmfd   sp!, {r0 - r12, pc}     /* @ restore regs and return */
+ENDPROC(return_to_bootrom)
+
 /*
  * cache_inv - invalidate Cache line
  * r0 - dest