[PATCH 12/12] ppc64: Hack, make sure zImage wrapper doesn't load kernel at KERNELBASE
Michael Ellerman
michael at ellerman.id.au
Fri Aug 26 12:53:34 EST 2005
For testing the kernel linked at 32 MB it's handy to be able to netboot it.
However the zImage wrapper doesn't have any idea where KERNELBASE is, it just
assumes it's 0. This can lead to the zImage wrapper loading the kernel in
an area that overlaps KERNELBASE to klimit, which breaks badly.
We could do this properly but for the moment just start allocating at 48 MB,
which gives us space for an average sized kernel at 32 MB.
Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---
arch/ppc64/boot/main.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: work/arch/ppc64/boot/main.c
===================================================================
--- work.orig/arch/ppc64/boot/main.c
+++ work/arch/ppc64/boot/main.c
@@ -22,7 +22,7 @@ extern void flush_cache(void *, unsigned
/* Value picked to match that used by yaboot */
-#define PROG_START 0x01400000
+#define PROG_START 0x03000000
#define RAM_END (256<<20) // Fixme: use OF */
static char *avail_ram;
More information about the Linuxppc64-dev
mailing list