Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] prom_free_prom_memory for QEMU
@ 2008-01-14 12:22 Atsushi Nemoto
  2008-01-14 13:37 ` Ralf Baechle
  0 siblings, 1 reply; 13+ messages in thread
From: Atsushi Nemoto @ 2008-01-14 12:22 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

You can get 60kb more memory by this patch.  Note that this patch
might cause segfault on some intermediate version of qemu 0.9.0 and
0.9.1 (For example Debian qemu-0.9.0+20070816-1).

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/qemu/q-mem.c b/arch/mips/qemu/q-mem.c
index dae39b5..84cbee2 100644
--- a/arch/mips/qemu/q-mem.c
+++ b/arch/mips/qemu/q-mem.c
@@ -1,5 +1,9 @@
 #include <linux/init.h>
+#include <asm/bootinfo.h>
+#include <asm/sections.h>
+#include <asm/page.h>
 
 void __init prom_free_prom_memory(void)
 {
+	free_init_pages("prom memory", PAGE_SIZE, __pa_symbol(&_text));
 }

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

end of thread, other threads:[~2008-01-14 17:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-14 12:22 [PATCH] prom_free_prom_memory for QEMU Atsushi Nemoto
2008-01-14 13:37 ` Ralf Baechle
2008-01-14 13:53   ` Atsushi Nemoto
2008-01-14 13:59     ` Ralf Baechle
2008-01-14 14:03     ` Dmitri Vorobiev
2008-01-14 14:27       ` Thiemo Seufer
2008-01-14 14:30     ` Thiemo Seufer
2008-01-14 14:42       ` Atsushi Nemoto
2008-01-14 13:58   ` Dmitri Vorobiev
2008-01-14 14:14     ` Ralf Baechle
2008-01-14 16:43       ` Dmitri Vorobiev
2008-01-14 16:57         ` Ralf Baechle
2008-01-14 17:47           ` Dmitri Vorobiev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox