* [PATCH] powerpc: Fix zImage decompress location
@ 2006-10-05 4:18 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2006-10-05 4:18 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev list
The zImage wrapper has a "hack" that force the decompression to happen
above 20Mb for 64 bits kernels, to work around issues with some
firmwares on the field. However, the new wrapper has a bug which makes
that hack not work properly. This fixes it.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Index: linux-work/arch/powerpc/boot/of.c
===================================================================
--- linux-work.orig/arch/powerpc/boot/of.c 2006-10-03 12:41:02.000000000 +1000
+++ linux-work/arch/powerpc/boot/of.c 2006-10-05 13:52:29.000000000 +1000
@@ -176,12 +176,9 @@ static void *claim(unsigned long virt, u
static void *of_try_claim(u32 size)
{
unsigned long addr = 0;
- static u8 first_time = 1;
- if (first_time) {
+ if (claim_base == 0)
claim_base = _ALIGN_UP((unsigned long)_end, ONE_MB);
- first_time = 0;
- }
for(; claim_base < RAM_END; claim_base += ONE_MB) {
#ifdef DEBUG
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-05 4:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-05 4:18 [PATCH] powerpc: Fix zImage decompress location Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).