linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: include empty zero page in zImage
@ 2009-12-03 12:26 Magnus Damm
  2009-12-03 13:48 ` Stuart MENEFY
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Magnus Damm @ 2009-12-03 12:26 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Include the empty zero page data in the zImage.
Without this patch the empty zero page may be
uninitialized.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 I suppose we should have a fallback option to
 allow boot loaders passing data in the zero page.
 Or perhaps doing it the other way around is better.

 arch/sh/boot/compressed/Makefile |    2 --
 arch/sh/boot/compressed/misc.c   |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

--- 0001/arch/sh/boot/compressed/Makefile
+++ work/arch/sh/boot/compressed/Makefile	2009-12-03 21:06:02.000000000 +0900
@@ -48,8 +48,6 @@ $(obj)/vmlinux.bin.bz2: $(vmlinux.bin.al
 $(obj)/vmlinux.bin.lzma: $(vmlinux.bin.all-y) FORCE
 	$(call if_changed,lzma)
 
-OBJCOPYFLAGS += -R .empty_zero_page
-
 LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
 
 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE
--- 0001/arch/sh/boot/compressed/misc.c
+++ work/arch/sh/boot/compressed/misc.c	2009-12-03 21:05:58.000000000 +0900
@@ -131,7 +131,7 @@ void decompress_kernel(void)
 #ifdef CONFIG_SUPERH64
 	output_addr = (CONFIG_MEMORY_START + 0x2000);
 #else
-	output_addr = __pa((unsigned long)&_text+PAGE_SIZE);
+	output_addr = __pa((unsigned long)&_text);
 #ifdef CONFIG_29BIT
 	output_addr |= P2SEG;
 #endif

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-03 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 12:26 [PATCH] sh: include empty zero page in zImage Magnus Damm
2009-12-03 13:48 ` Stuart MENEFY
2009-12-03 14:22 ` Magnus Damm
2009-12-03 21:09 ` Paul Mundt

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).