]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] bootwrapper: Move linker symbols into ops.h
authorScott Wood <scottwood@freescale.com>
Mon, 20 Aug 2007 17:39:58 +0000 (03:39 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Aug 2007 05:27:28 +0000 (15:27 +1000)
Most of these were previously used by numerous C files and
redeclared in each one.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/cuboot-83xx.c
arch/powerpc/boot/cuboot-85xx.c
arch/powerpc/boot/cuboot.c
arch/powerpc/boot/ebony.c
arch/powerpc/boot/holly.c
arch/powerpc/boot/main.c
arch/powerpc/boot/of.c
arch/powerpc/boot/ops.h
arch/powerpc/boot/prpmc2800.c
arch/powerpc/boot/ps3.c
arch/powerpc/boot/treeboot-ebony.c

index 296025d8b295a3cb0f8a1219bbfd765c7afd85f6..a0505509abcc40ed3eff8121e8a8b56f4e40bdf0 100644 (file)
@@ -18,7 +18,6 @@
 #include "ppcboot.h"
 
 static bd_t bd;
-extern char _dtb_start[], _dtb_end[];
 
 static void platform_fixups(void)
 {
index 10f0f697c9359e9c33787a1728396f8bd4e73255..345dcbecef0fc81d14a41e1d14bf85bec2410afb 100644 (file)
@@ -18,7 +18,6 @@
 #include "ppcboot.h"
 
 static bd_t bd;
-extern char _dtb_start[], _dtb_end[];
 
 static void platform_fixups(void)
 {
index 65795468ad6f662ec23accf71e0d812b1397e144..7768b2306b7a42c745d4894af576da79e84b88d8 100644 (file)
@@ -17,9 +17,6 @@
 
 #include "ppcboot.h"
 
-extern char _end[];
-extern char _dtb_start[], _dtb_end[];
-
 void cuboot_init(unsigned long r4, unsigned long r5,
                 unsigned long r6, unsigned long r7,
                 unsigned long end_of_ram)
index 2b9a809bcd7442d25348472fe670845952ac2049..86c0f5df0a86358925d3d0b8c19b91c79a3fa5e5 100644 (file)
@@ -29,9 +29,6 @@
 #include "4xx.h"
 #include "44x.h"
 
-extern char _dtb_start[];
-extern char _dtb_end[];
-
 static u8 *ebony_mac0, *ebony_mac1;
 
 /* Calculate 440GP clocks */
index 7d6539f5e22c2e00bc9a8af066ba9945e843a203..199e783aea4d3c3fa4a71ef995203f86174a88ed 100644 (file)
 #include "ops.h"
 #include "io.h"
 
-extern char _start[];
-extern char _end[];
-extern char _dtb_start[];
-extern char _dtb_end[];
-
 BSS_STACK(4096);
 
 void platform_init(unsigned long r3, unsigned long r4, unsigned long r5)
index 416dc3857bfe8dcc468c8f6c3d0953970a31de40..1b496b37eca0b8efc1230e20f02ea2344d530b28 100644 (file)
 #include "flatdevtree.h"
 #include "reg.h"
 
-extern char _start[];
-extern char __bss_start[];
-extern char _end[];
-extern char _vmlinux_start[];
-extern char _vmlinux_end[];
-extern char _initrd_start[];
-extern char _initrd_end[];
-extern char _dtb_start[];
-extern char _dtb_end[];
-
 static struct gunzip_state gzstate;
 
 struct addr_range {
index 385e08b83b7e8070831a305bb66ce48ad024f42c..61d9899aa0d09d371c99ec70b7959693f8bfab36 100644 (file)
@@ -17,8 +17,6 @@
 
 #include "of.h"
 
-extern char _end[];
-
 /* Value picked to match that used by yaboot */
 #define PROG_START     0x01400000      /* only used on 64-bit systems */
 #define RAM_END                (512<<20)       /* Fixme: use OF */
index 2bc2f02db7418d131840155c2795a911fdd655eb..e4b6139d2d6ed506b2cb13e8d89f77527fa93056 100644 (file)
@@ -196,4 +196,14 @@ static inline void exit(void)
 extern unsigned long timebase_period_ns;
 void udelay(long delay);
 
+extern char _start[];
+extern char __bss_start[];
+extern char _end[];
+extern char _vmlinux_start[];
+extern char _vmlinux_end[];
+extern char _initrd_start[];
+extern char _initrd_end[];
+extern char _dtb_start[];
+extern char _dtb_end[];
+
 #endif /* _PPC_BOOT_OPS_H_ */
index 5c6cd368056e8daa4594e28d1f05c346d078a01c..9614e1db9daec7fca76586d8fd252ce556bd86ed 100644 (file)
 #include "gunzip_util.h"
 #include "mv64x60.h"
 
-extern char _end[];
-extern char _vmlinux_start[], _vmlinux_end[];
-extern char _dtb_start[], _dtb_end[];
-
 #define KB     1024U
 #define MB     (KB*KB)
 #define GB     (KB*MB)
index 893d59339c266f6fc210ab278cfe04cdf1bf9cf2..d6661151b49426b86256e6d932b051f0129a27a1 100644 (file)
@@ -120,10 +120,6 @@ void ps3_copy_vectors(void)
 
 void platform_init(void)
 {
-       extern char _end[];
-       extern char _dtb_start[];
-       extern char _initrd_start[];
-       extern char _initrd_end[];
        const u32 heapsize = 0x1000000 - (u32)_end; /* 16MiB */
        void *chosen;
        unsigned long ft_addr;
index 8436a9c55192577558ee5103eec59ede65f7e4cb..21cc4834a384b459ac40865eb0a77076f68546a8 100644 (file)
@@ -16,8 +16,6 @@
 #include "stdio.h"
 #include "44x.h"
 
-extern char _end[];
-
 BSS_STACK(4096);
 
 #define OPENBIOS_MAC_BASE      0xfffffe0c