@@ -27,4 +27,6 @@ extern unsigned __icache_bytes, __dcache_bytes;
#define PHYSICAL_START (__physical_start)
#define PHYSICAL_END (__physical_end)
+void setup(const void *fdt);
+
#endif /* _ASMPOWERPC_SETUP_H_ */
@@ -9,6 +9,8 @@
* This work is licensed under the terms of the GNU LGPL, version 2.
*/
#include <asm/hcall.h>
+#include <libcflat.h>
+#include "io.h"
int hcall_have_broken_sc1(void)
{
@@ -8,9 +8,10 @@
#include <libcflat.h>
#include <asm/spinlock.h>
#include <asm/rtas.h>
+#include <asm/setup.h>
+#include "io.h"
extern void halt(int code);
-extern void putchar(int c);
static struct spinlock print_lock;
new file mode 100644
@@ -0,0 +1,8 @@
+/*
+ * Prototypes for io.c
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2.
+ */
+
+extern void io_init(void);
+extern void putchar(int c);
@@ -19,9 +19,9 @@
#include <asm/setup.h>
#include <asm/page.h>
#include <asm/hcall.h>
+#include "io.h"
extern unsigned long stacktop;
-extern void io_init(void);
char *initrd;
u32 initrd_size;
@@ -24,6 +24,8 @@ struct elf64_rela {
signed long long addend;
};
+void relocate(unsigned long load_addr, struct elf64_dyn *dyn_table);
+
void relocate(unsigned long load_addr, struct elf64_dyn *dyn_table)
{
unsigned long long rela_addr = 0, rela_count = 0, *addr;