linux-mips
[Top] [All Lists]

[PATCH 12/16] cheat for support of more than 256MB memory

To: linux-mips@linux-mips.org
Subject: [PATCH 12/16] cheat for support of more than 256MB memory
From: tiansm@lemote.com
Date: Sun, 15 Apr 2007 23:26:01 +0800
Cc: Fuxin Zhang <zhangfx@lemote.com>
In-reply-to: <11766507663039-git-send-email-tiansm@lemote.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <11766507651736-git-send-email-tiansm@lemote.com> <11766507661317-git-send-email-tiansm@lemote.com> <11766507661726-git-send-email-tiansm@lemote.com> <11766507662638-git-send-email-tiansm@lemote.com> <11766507661133-git-send-email-tiansm@lemote.com> <11766507661526-git-send-email-tiansm@lemote.com> <11766507662650-git-send-email-tiansm@lemote.com> <11766507661684-git-send-email-tiansm@lemote.com> <117665076617-git-send-email-tiansm@lemote.com> <1176650766907-git-send-email-tiansm@lemote.com> <11766507663301-git-send-email-tiansm@lemote.com> <11766507663039-git-send-email-tiansm@lemote.com>
Sender: linux-mips-bounce@linux-mips.org
From: Fuxin Zhang <zhangfx@lemote.com>

Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
 arch/mips/kernel/setup.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 4975da0..62ef100 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -509,6 +509,14 @@ static void __init resource_init(void)
                res->end = end;
 
                res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
+#if defined(CONFIG_LEMOTE_FULONG) && defined(CONFIG_64BIT)
+               /* to keep memory continous, we tell system 0x10000000 - 
0x20000000 is reserved
+                * for memory, in fact it is io region, don't occupy it
+                *
+                * SPARSEMEM?
+                */
+               if (boot_mem_map.map[i].type != BOOT_MEM_RESERVED)
+#endif
                request_resource(&iomem_resource, res);
 
                /*
-- 
1.4.4.1


<Prev in Thread] Current Thread [Next in Thread>