aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2013-10-29 01:21:26 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-10-30 01:00:17 -0400
commitf5467e28d4e2569b2c71435d438ce3c7f9ac238e (patch)
tree666cbd6f5c01ff50599805c41fb623a7d236f729 /arch
parent1400b4204ca334bb67be5b091b45214b57912b33 (diff)
powerpc/boot: Don't change link address for OF-based platforms
Commit c55aef0e5bc6 ("powerpc/boot: Change the load address for the wrapper to fit the kernel") adjusts the wrapper address unnecessarily for platforms that use arch/powerpc/boot/of.c, since the code there allocates space for the kernel wherever it can find it and doesn't necessarily load the kernel at address 0. Changing the link address is actually harmful since it can cause the zImage to overlap with Open Firmware and thus fail to boot. To fix this, we set make_space to n for all of the platforms that use of.o. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rwxr-xr-xarch/powerpc/boot/wrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index cd7af841ba05..ac16e9984ecb 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -150,18 +150,22 @@ case "$platform" in
150pseries) 150pseries)
151 platformo="$object/of.o $object/epapr.o" 151 platformo="$object/of.o $object/epapr.o"
152 link_address='0x4000000' 152 link_address='0x4000000'
153 make_space=n
153 ;; 154 ;;
154maple) 155maple)
155 platformo="$object/of.o $object/epapr.o" 156 platformo="$object/of.o $object/epapr.o"
156 link_address='0x400000' 157 link_address='0x400000'
158 make_space=n
157 ;; 159 ;;
158pmac|chrp) 160pmac|chrp)
159 platformo="$object/of.o $object/epapr.o" 161 platformo="$object/of.o $object/epapr.o"
162 make_space=n
160 ;; 163 ;;
161coff) 164coff)
162 platformo="$object/crt0.o $object/of.o $object/epapr.o" 165 platformo="$object/crt0.o $object/of.o $object/epapr.o"
163 lds=$object/zImage.coff.lds 166 lds=$object/zImage.coff.lds
164 link_address='0x500000' 167 link_address='0x500000'
168 make_space=n
165 pie= 169 pie=
166 ;; 170 ;;
167miboot|uboot*) 171miboot|uboot*)