From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp07.au.ibm.com (e23smtp07.au.ibm.com [202.81.31.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp07.au.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id F211FB6F64 for ; Tue, 11 Oct 2011 23:54:19 +1100 (EST) Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp07.au.ibm.com (8.14.4/8.13.1) with ESMTP id p9BCsCtA004352 for ; Tue, 11 Oct 2011 23:54:12 +1100 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9BCsCKd2490622 for ; Tue, 11 Oct 2011 23:54:12 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p9BCsBgU031558 for ; Tue, 11 Oct 2011 23:54:12 +1100 Message-ID: <4E943C70.4030106@in.ibm.com> Date: Tue, 11 Oct 2011 18:24:08 +0530 From: Suzuki Poulose MIME-Version: 1.0 To: Scott Wood Subject: Re: [PATCH 2/3] [44x] Enable CONFIG_RELOCATABLE for PPC44x References: <20111010094627.16589.52367.stgit@suzukikp.in.ibm.com> <20111010095514.16589.85241.stgit@suzukikp.in.ibm.com> <4E9332AA.1050307@freescale.com> In-Reply-To: <4E9332AA.1050307@freescale.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Michal Simek , tmarri@apm.com, Mahesh Jagannath Salgaonkar , Dave Hansen , David Laight , Paul Mackerras , linux ppc dev , Vivek Goyal List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 10/10/11 23:30, Scott Wood wrote: > On 10/10/2011 04:56 AM, Suzuki K. Poulose wrote: >> #if defined(CONFIG_RELOCATABLE)&& defined(CONFIG_44x) >> #define __va(x) ((void *)(unsigned long)((phys_addr_t)(x) - PHYSICAL_START + (KERNELBASE + RELOC_OFFSET))) >> #define __pa(x) ((unsigned long)(x) + PHYSICAL_START - (KERNELBASE + RELOC_OFFSET)) >> #endif > > Why is this 44x-specific? As of now, we compile with relocations only for the 44x. We could make this generic once the approach is accepted by everyone and implemented on the other platforms. Thanks Suzuki