carl9170 firmware: put _start into the .boot section
authorChristian Lamparter <chunkeey@googlemail.com>
Sun, 27 Mar 2011 20:44:59 +0000 (22:44 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Sun, 27 Mar 2011 20:48:17 +0000 (22:48 +0200)
Without this change, the _start entry is not placed
at the correct position and as a result the firmware
boot fails.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/main.c

index 475308be145f7ec5f68a2615701a11a7cf941296..574154bafd1faaba526feb007e3f3bbd3009d764 100644 (file)
@@ -176,7 +176,7 @@ static void __noreturn main_loop(void)
  * we put _start() there with the linker script carl9170.lds.
  */
 
-void start(void)
+void __section(boot) start(void)
 {
        clock_set(AHB_40MHZ_OSC, true);