From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964856AbXCAKJq (ORCPT ); Thu, 1 Mar 2007 05:09:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964862AbXCAKJp (ORCPT ); Thu, 1 Mar 2007 05:09:45 -0500 Received: from calculon.skynet.ie ([193.1.99.88]:57309 "EHLO calculon.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964856AbXCAKJo (ORCPT ); Thu, 1 Mar 2007 05:09:44 -0500 From: Mel Gorman To: akpm@linux-foundation.org Cc: Mel Gorman , linux-kernel@vger.kernel.org, linux-mm@kvack.org Message-Id: <20070301100942.30048.63879.sendpatchset@skynet.skynet.ie> In-Reply-To: <20070301100802.30048.45045.sendpatchset@skynet.skynet.ie> References: <20070301100802.30048.45045.sendpatchset@skynet.skynet.ie> Subject: [PATCH 5/8] ppc and powerpc - Specify amount of kernel memory at boot time Date: Thu, 1 Mar 2007 10:09:42 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the kernelcore= parameter for ppc and powerpc. Signed-off-by: Mel Gorman --- powerpc/kernel/prom.c | 1 + ppc/mm/init.c | 2 ++ 2 files changed, 3 insertions(+) diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.20-mm2-004_x86_set_kernelcore/arch/powerpc/kernel/prom.c linux-2.6.20-mm2-005_ppc64_set_kernelcore/arch/powerpc/kernel/prom.c --- linux-2.6.20-mm2-004_x86_set_kernelcore/arch/powerpc/kernel/prom.c 2007-02-19 01:19:32.000000000 +0000 +++ linux-2.6.20-mm2-005_ppc64_set_kernelcore/arch/powerpc/kernel/prom.c 2007-02-19 09:17:41.000000000 +0000 @@ -431,6 +431,7 @@ static int __init early_parse_mem(char * return 0; } early_param("mem", early_parse_mem); +early_param("kernelcore", cmdline_parse_kernelcore); /* * The device tree may be allocated below our memory limit, or inside the diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.20-mm2-004_x86_set_kernelcore/arch/ppc/mm/init.c linux-2.6.20-mm2-005_ppc64_set_kernelcore/arch/ppc/mm/init.c --- linux-2.6.20-mm2-004_x86_set_kernelcore/arch/ppc/mm/init.c 2007-02-04 18:44:54.000000000 +0000 +++ linux-2.6.20-mm2-005_ppc64_set_kernelcore/arch/ppc/mm/init.c 2007-02-19 09:17:41.000000000 +0000 @@ -214,6 +214,8 @@ void MMU_setup(void) } } +early_param("kernelcore", cmdline_parse_kernelcore); + /* * MMU_init sets up the basic memory mappings for the kernel, * including both RAM and possibly some I/O regions,