aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/addnote.c
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2008-06-24 00:20:29 -0400
committerPaul Mackerras <paulus@samba.org>2008-06-30 21:28:32 -0400
commit9b09c6d909dfd8de96b99b9b9c808b94b0a71614 (patch)
tree0796f29964a133130ed39584000b2108497f3d65 /arch/powerpc/boot/addnote.c
parentc230328def963373ec474056f372e1918692c3c8 (diff)
powerpc: Change the default link address for pSeries zImage kernels
Currently we set the start of the .text section to be 4Mb for pSeries. In situations where the zImage is > 8Mb we'll fail to boot (due to overlapping with OF). Move .text in a zImage from 4MB to 64MB (well past OF). We still will not be able to load large zImage unless we also move OF, to that end, add a note to the zImage ELF to move OF to 32Mb. If this is the very first kernel booted then we'll need to move OF manually by setting real-base. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/addnote.c')
-rw-r--r--arch/powerpc/boot/addnote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/addnote.c b/arch/powerpc/boot/addnote.c
index 8041a9845ab7..b1e5611b2ab1 100644
--- a/arch/powerpc/boot/addnote.c
+++ b/arch/powerpc/boot/addnote.c
@@ -25,7 +25,7 @@ char arch[] = "PowerPC";
25#define N_DESCR 6 25#define N_DESCR 6
26unsigned int descr[N_DESCR] = { 26unsigned int descr[N_DESCR] = {
27 0xffffffff, /* real-mode = true */ 27 0xffffffff, /* real-mode = true */
28 0x00c00000, /* real-base, i.e. where we expect OF to be */ 28 0x02000000, /* real-base, i.e. where we expect OF to be */
29 0xffffffff, /* real-size */ 29 0xffffffff, /* real-size */
30 0xffffffff, /* virt-base */ 30 0xffffffff, /* virt-base */
31 0xffffffff, /* virt-size */ 31 0xffffffff, /* virt-size */