summaryrefslogtreecommitdiff
path: root/arch/powerpc/boot/of.c
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2006-10-17 00:49:27 +0400
committerPaul Mackerras <paulus@samba.org>2006-10-18 09:50:18 +0400
commitc888554bf95a5a0a6ac3e2389c6bf1e03e9480ba (patch)
tree0bd690be6846ac378498310f9d90ae526a3028bd /arch/powerpc/boot/of.c
parentb0a779debd56514b2b5de7617a1643e5dac2d4dd (diff)
downloadlinux-c888554bf95a5a0a6ac3e2389c6bf1e03e9480ba.tar.xz
[POWERPC] More bootwrapper reorganization
More reorganization of the bootwrapper: - Add dtb section to zImage - ft_init now called by platform_init - Pack a flat dt before calling kernel - Remove size parameter from free - printf only calls console_ops.write it its not NULL - Some cleanup Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/of.c')
-rw-r--r--arch/powerpc/boot/of.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/boot/of.c b/arch/powerpc/boot/of.c
index 3a71845afc6c..0182f384f3e6 100644
--- a/arch/powerpc/boot/of.c
+++ b/arch/powerpc/boot/of.c
@@ -256,24 +256,18 @@ static void of_console_write(char *buf, int len)
call_prom("write", 3, 1, of_stdout_handle, buf, len);
}
-int platform_init(void *promptr)
+int platform_init(void *promptr, char *dt_blob_start, char *dt_blob_end)
{
- platform_ops.fixups = NULL;
platform_ops.image_hdr = of_image_hdr;
platform_ops.malloc = of_try_claim;
- platform_ops.free = NULL;
platform_ops.exit = of_exit;
dt_ops.finddevice = of_finddevice;
dt_ops.getprop = of_getprop;
dt_ops.setprop = of_setprop;
- dt_ops.translate_addr = NULL;
console_ops.open = of_console_open;
console_ops.write = of_console_write;
- console_ops.edit_cmdline = NULL;
- console_ops.close = NULL;
- console_ops.data = NULL;
prom = (int (*)(void *))promptr;
return 0;