| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] prom_free_prom_memory for QEMU |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Mon, 14 Jan 2008 21:22:53 +0900 (JST) |
| Cc: | ralf@linux-mips.org |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
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));
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: (Try #3) [Patch 2/8] MIPS: Remove 'TOPDIR' from Makefiles, WANG Cong |
|---|---|
| Next by Date: | Re: [PATCH] prom_free_prom_memory for QEMU, Ralf Baechle |
| Previous by Thread: | [RFC] cleanup of board-specific code?, Dmitri Vorobiev |
| Next by Thread: | Re: [PATCH] prom_free_prom_memory for QEMU, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |