Commit 2f1d4899 authored by Scott Wood's avatar Scott Wood Committed by Paul Mackerras

[POWERPC] bootwrapper: Move linker symbols into ops.h

Most of these were previously used by numerous C files and
redeclared in each one.
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent d0f53faf
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "ppcboot.h" #include "ppcboot.h"
static bd_t bd; static bd_t bd;
extern char _dtb_start[], _dtb_end[];
static void platform_fixups(void) static void platform_fixups(void)
{ {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "ppcboot.h" #include "ppcboot.h"
static bd_t bd; static bd_t bd;
extern char _dtb_start[], _dtb_end[];
static void platform_fixups(void) static void platform_fixups(void)
{ {
......
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
#include "ppcboot.h" #include "ppcboot.h"
extern char _end[];
extern char _dtb_start[], _dtb_end[];
void cuboot_init(unsigned long r4, unsigned long r5, void cuboot_init(unsigned long r4, unsigned long r5,
unsigned long r6, unsigned long r7, unsigned long r6, unsigned long r7,
unsigned long end_of_ram) unsigned long end_of_ram)
......
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
#include "4xx.h" #include "4xx.h"
#include "44x.h" #include "44x.h"
extern char _dtb_start[];
extern char _dtb_end[];
static u8 *ebony_mac0, *ebony_mac1; static u8 *ebony_mac0, *ebony_mac1;
/* Calculate 440GP clocks */ /* Calculate 440GP clocks */
......
...@@ -21,11 +21,6 @@ ...@@ -21,11 +21,6 @@
#include "ops.h" #include "ops.h"
#include "io.h" #include "io.h"
extern char _start[];
extern char _end[];
extern char _dtb_start[];
extern char _dtb_end[];
BSS_STACK(4096); BSS_STACK(4096);
void platform_init(unsigned long r3, unsigned long r4, unsigned long r5) void platform_init(unsigned long r3, unsigned long r4, unsigned long r5)
......
...@@ -19,16 +19,6 @@ ...@@ -19,16 +19,6 @@
#include "flatdevtree.h" #include "flatdevtree.h"
#include "reg.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; static struct gunzip_state gzstate;
struct addr_range { struct addr_range {
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
#include "of.h" #include "of.h"
extern char _end[];
/* Value picked to match that used by yaboot */ /* Value picked to match that used by yaboot */
#define PROG_START 0x01400000 /* only used on 64-bit systems */ #define PROG_START 0x01400000 /* only used on 64-bit systems */
#define RAM_END (512<<20) /* Fixme: use OF */ #define RAM_END (512<<20) /* Fixme: use OF */
......
...@@ -196,4 +196,14 @@ static inline void exit(void) ...@@ -196,4 +196,14 @@ static inline void exit(void)
extern unsigned long timebase_period_ns; extern unsigned long timebase_period_ns;
void udelay(long delay); 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_ */ #endif /* _PPC_BOOT_OPS_H_ */
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#include "gunzip_util.h" #include "gunzip_util.h"
#include "mv64x60.h" #include "mv64x60.h"
extern char _end[];
extern char _vmlinux_start[], _vmlinux_end[];
extern char _dtb_start[], _dtb_end[];
#define KB 1024U #define KB 1024U
#define MB (KB*KB) #define MB (KB*KB)
#define GB (KB*MB) #define GB (KB*MB)
......
...@@ -120,10 +120,6 @@ void ps3_copy_vectors(void) ...@@ -120,10 +120,6 @@ void ps3_copy_vectors(void)
void platform_init(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 */ const u32 heapsize = 0x1000000 - (u32)_end; /* 16MiB */
void *chosen; void *chosen;
unsigned long ft_addr; unsigned long ft_addr;
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#include "stdio.h" #include "stdio.h"
#include "44x.h" #include "44x.h"
extern char _end[];
BSS_STACK(4096); BSS_STACK(4096);
#define OPENBIOS_MAC_BASE 0xfffffe0c #define OPENBIOS_MAC_BASE 0xfffffe0c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment