From patchwork Thu Oct 23 05:39:49 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Neuling X-Patchwork-Id: 5422 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 4FEFFDDF83 for ; Thu, 23 Oct 2008 16:40:05 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from localhost.localdomain (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 4C985DDEE2; Thu, 23 Oct 2008 16:39:50 +1100 (EST) Received: by localhost.localdomain (Postfix, from userid 1000) id 47CF67014B; Thu, 23 Oct 2008 16:39:49 +1100 (EST) Received: from neuling.org (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 435047014A; Thu, 23 Oct 2008 16:39:49 +1100 (EST) From: Michael Neuling To: benh@kernel.crashing.org, paulus@samba.org, linuxppc-dev@ozlabs.org Subject: [PATCH] powerpc: print physical_start for the relocatable kernel In-reply-to: <31488.1224733437@neuling.org> References: <31488.1224733437@neuling.org> Comments: In-reply-to Michael Neuling message dated "Thu, 23 Oct 2008 14:43:57 +1100." X-Mailer: MH-E 8.0.3; nmh 1.2; GNU Emacs 22.1.1 Date: Thu, 23 Oct 2008 16:39:49 +1100 Message-ID: <20047.1224740389@neuling.org> X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Print physical start address for the relocatable kernel. Also fixes this warning: arch/powerpc/kernel/setup_64.c:447:5: warning: "kernstart_addr" is not defin Signed-off-by: Michael Neuling --- arch/powerpc/kernel/setup_64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) This fixes a small whitespace issue noticed by sfr. Index: linux-2.6-ozlabs/arch/powerpc/kernel/setup_64.c =================================================================== --- linux-2.6-ozlabs.orig/arch/powerpc/kernel/setup_64.c +++ linux-2.6-ozlabs/arch/powerpc/kernel/setup_64.c @@ -444,9 +444,9 @@ void __init setup_system(void) if (htab_address) printk("htab_address = 0x%p\n", htab_address); printk("htab_hash_mask = 0x%lx\n", htab_hash_mask); -#if PHYSICAL_START > 0 - printk("physical_start = 0x%lx\n", PHYSICAL_START); -#endif + if (PHYSICAL_START > 0) + printk("physical_start = 0x%lx\n", + PHYSICAL_START); printk("-----------------------------------------------------\n"); DBG(" <- setup_system()\n");