]> git.sur5r.net Git - u-boot/blobdiff - board/nokia/rx51/lowlevel_init.S
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / board / nokia / rx51 / lowlevel_init.S
index e25290966c5d85668f4d147a748d6f6b14bb84df..6871a5a74f5d2ce122eb1e048804a13ee17aadc5 100644 (file)
@@ -1,8 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2011-2012
  * Pali Rohár <pali.rohar@gmail.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <config.h>
@@ -37,7 +36,8 @@ ih_magic:             /* IH_MAGIC in big endian from include/image.h */
 
 .global save_boot_params
 save_boot_params:
-
+       /* Get return address */
+       ldr     lr, =save_boot_params_ret
 
 /* Copy valid attached kernel to address KERNEL_ADDRESS */
 
@@ -104,10 +104,6 @@ fix_start:
        /* r6 - maximal u-boot size */
        ldr     r6, imagesize
 
-       /* fix return address */
-       subhi   lr, lr, r5
-       addlo   lr, lr, r5
-
        /* r1 - start of u-boot after */
        ldr     r1, startaddr