vserver 2.0 rc7
[linux-2.6.git] / arch / ppc64 / boot / main.c
index 4ce7f85..da12ea2 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/string.h>
 #include <asm/processor.h>
 #include <asm/page.h>
-#include <asm/bootinfo.h>
 
 extern void *finddevice(const char *);
 extern int getprop(void *, const char *, void *, int);
@@ -112,7 +111,7 @@ void start(unsigned long a1, unsigned long a2, void *promptr)
        if (getprop(chosen_handle, "stdin", &stdin, sizeof(stdin)) != 4)
                exit();
 
-       printf("zImage starting: loaded at 0x%x\n\r", (unsigned)_start);
+       printf("\n\rzImage starting: loaded at 0x%x\n\r", (unsigned)_start);
 
        /*
         * Now we try to claim some memory for the kernel itself
@@ -151,7 +150,7 @@ void start(unsigned long a1, unsigned long a2, void *promptr)
                printf("initial ramdisk moving 0x%lx <- 0x%lx (%lx bytes)\n\r",
                       initrd.addr, (unsigned long)_initrd_start, initrd.size);
                memmove((void *)initrd.addr, (void *)_initrd_start, initrd.size);
-               printf("initrd head: 0x%lx\n", *((u32 *)initrd.addr));
+               printf("initrd head: 0x%lx\n\r", *((u32 *)initrd.addr));
        }
 
        /* Eventually gunzip the kernel */
@@ -200,7 +199,7 @@ void start(unsigned long a1, unsigned long a2, void *promptr)
        vmlinux.addr += (unsigned long)elf64ph->p_offset;
        vmlinux.size -= (unsigned long)elf64ph->p_offset;
 
-       flush_cache((void *)vmlinux.addr, vmlinux.memsize);
+       flush_cache((void *)vmlinux.addr, vmlinux.size);
 
        if (a1)
                printf("initrd head: 0x%lx\n\r", *((u32 *)initrd.addr));