]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: relocate_code() is no longer noreturn
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Thu, 11 Apr 2013 09:35:43 +0000 (09:35 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 12 Apr 2013 05:55:05 +0000 (07:55 +0200)
Commit e05e5de7fae5bec79617e113916dac6631251156 made ARM's relocate_code()
return to its caller, but it did not update its declaration accordingly.

Fixing this function declaration fixes dropped C code following calls to
relocate_code().

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
14 files changed:
arch/arm/cpu/arm1136/start.S
arch/arm/cpu/arm1176/start.S
arch/arm/cpu/arm720t/start.S
arch/arm/cpu/arm920t/start.S
arch/arm/cpu/arm925t/start.S
arch/arm/cpu/arm926ejs/start.S
arch/arm/cpu/arm946es/start.S
arch/arm/cpu/arm_intcm/start.S
arch/arm/cpu/armv7/start.S
arch/arm/cpu/ixp/start.S
arch/arm/cpu/pxa/start.S
arch/arm/cpu/s3c44b0/start.S
arch/arm/cpu/sa1100/start.S
include/common.h

index 0cd2400c58348ff5947f523ce703fd1d8e3452ac..eda4bc0ed33b356d6619e3a0c791cdee9fe3b5e0 100644 (file)
@@ -176,9 +176,7 @@ next:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index accccdc2df9ecc5817695f7c1db58f6846dd5f53..c0698e693d1c66e9f3595b17cc788e94a7ee9857 100644 (file)
@@ -239,9 +239,7 @@ skip_tcmdisable:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index 1e3e5a16e82867c00a13b69dd023280c97eb1d19..c65af3f7c5138fe6eb6d46429d7fe59904dc3f3f 100644 (file)
@@ -154,9 +154,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index 8c2c836bd1437b51155d38dd14aa9cf07e3342f3..2b8b7add0feae5e94a199e76207630575872c0d6 100644 (file)
@@ -193,9 +193,7 @@ copyex:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index 7f067c096ad2c039a605525053eecb69578ac7f9..6920c93f3984ce679ced4edbb64fd69fb8aa80c6 100644 (file)
@@ -183,9 +183,7 @@ poll1:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index efdff3e6020ec2b13cdc41c7fbb2040802ee7d81..90b4e53fe25609ae176d43fb9560ba60abdec902 100644 (file)
@@ -200,9 +200,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index 85adc62a6264408955ab12b1d1d26f50610d644a..84fabf41b3e93a97a54d3d3543a1e34cd194346f 100644 (file)
@@ -158,9 +158,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index a69fb17e5ede20ccb8f904c8034c1f0f54d60087..d0f8a48bfc5cebac8f4e9abb0fcf6dae0b7073c4 100644 (file)
@@ -154,9 +154,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index 5e5f42e030e6b35f10494958c8a3e63a939f6422..0146c769ee73d96a2914e0fbf1b280ca0cb1d8fd 100644 (file)
@@ -167,9 +167,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
 ENTRY(relocate_code)
        mov     r4, r0  /* save addr_sp */
index 8f4fa7ba21a7e9911cfdcd92fbe41ab534c58286..0f00e3d28b7c1c497168ce8d27da95c08f9c39e0 100644 (file)
@@ -256,9 +256,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index 2e2afd78132ce1eb3856e6313449bba0ef81cc54..a31dfc0d7f9741cf3abec397ffbf0ec6e375b788 100644 (file)
@@ -171,9 +171,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index aab81f56f0b9c0d204ea843746ea3501321ed574..c1ed4f20dc1bf10b43fb7c725dd58d51f7080de1 100644 (file)
@@ -139,9 +139,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index 01d1a597b98165ea3b5effae8da41c2fa344eb0e..fbc2d351ab8d7cd5b8b833bea4cb55fb5e54b376 100644 (file)
@@ -143,9 +143,7 @@ reset:
 /*
  * void relocate_code (addr_sp, gd, addr_moni)
  *
- * This "function" does not return, instead it continues in RAM
- * after relocating the monitor code.
- *
+ * This function relocates the monitor code.
  */
        .globl  relocate_code
 relocate_code:
index d41aeb4f47835f0102ecc561b0e53d0fd4285d7a..52df70cec6f3556c9ef03e40df2b91285a019d49 100644 (file)
@@ -530,7 +530,11 @@ int        dcache_status (void);
 void   dcache_enable (void);
 void   dcache_disable(void);
 void   mmu_disable(void);
-void   relocate_code (ulong, gd_t *, ulong) __attribute__ ((noreturn));
+void   relocate_code(ulong, gd_t *, ulong)
+#if !defined(CONFIG_ARM)
+__attribute__ ((noreturn))
+#endif
+;
 ulong  get_endaddr   (void);
 void   trap_init     (ulong);
 #if defined (CONFIG_4xx)       || \