summaryrefslogtreecommitdiffstats
path: root/sys/boot/powerpc/loader/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/powerpc/loader/conf.c')
-rw-r--r--sys/boot/powerpc/loader/conf.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/boot/powerpc/loader/conf.c b/sys/boot/powerpc/loader/conf.c
index 81ccbe7..273815a 100644
--- a/sys/boot/powerpc/loader/conf.c
+++ b/sys/boot/powerpc/loader/conf.c
@@ -27,7 +27,9 @@
*/
#include <stand.h>
+#include "bootstrap.h"
#include "libofw.h"
+#include "openfirm.h"
#if defined(LOADER_NET_SUPPORT)
#include "dev_net.h"
@@ -82,10 +84,9 @@ struct netif_driver *netif_drivers[] = {
* Sort formats so that those that can detect based on arguments
* rather than reading the file go first.
*/
-extern struct file_format powerpc_elf;
struct file_format *file_formats[] = {
-/* &powerpc_elf,*/
+ &ofw_elf,
NULL
};
@@ -101,3 +102,8 @@ struct console *consoles[] = {
&ofwconsole,
NULL
};
+
+/*
+ * reloc - our load address
+ */
+vm_offset_t reloc = RELOC;
OpenPOWER on IntegriCloud