linux-mips
[Top] [All Lists]

Re: [PATCH 1/7] MIPS: add detect_memory_region()

To: John Crispin <blogic@openwrt.org>
Subject: Re: [PATCH 1/7] MIPS: add detect_memory_region()
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Date: Mon, 15 Apr 2013 15:26:39 +0400
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
In-reply-to: <1366022494-8355-1-git-send-email-blogic@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Organization: Cogent Embedded
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1366022494-8355-1-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
Hello.

On 15-04-2013 14:41, John Crispin wrote:

Add a generic way of detecting the available RAM. This function is based on the
implementation already used by ath79.

Signed-off-by: John Crispin <blogic@openwrt.org>
[...]

diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index 4c774d5..dfe776a 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
[...]
@@ -122,6 +123,25 @@ void __init add_memory_region(phys_t start, phys_t size, 
long type)
        boot_mem_map.nr_map++;
  }

+void __init detect_memory_region(phys_t start, phys_t sz_min,  phys_t sz_max)

   Minor formatting nit: too many spaces after the last comma.

WBR, Sergei


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