From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965016AbVJUQWz (ORCPT ); Fri, 21 Oct 2005 12:22:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965019AbVJUQWz (ORCPT ); Fri, 21 Oct 2005 12:22:55 -0400 Received: from wproxy.gmail.com ([64.233.184.194]:53374 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S965016AbVJUQWz convert rfc822-to-8bit (ORCPT ); Fri, 21 Oct 2005 12:22:55 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dG+7g04+ZVJBxkLDLQDDlWUE0BrWOK4iiJ/wQLaV4UNxORpH1qf7kJht29+Agf2EaYFYOBQI/JVMINRajJs2EQ4Zm94j4Fiq0hOUqXEJkItIimO0PoapVdOqhqEHLyoNREwbDtr89bSQpAiAwMgi3CxqTQHBwfw5/vGkAHPiFMM= Message-ID: <94e67edf0510210922l7c4ab3can8cef0f34cdc2a0fd@mail.gmail.com> Date: Fri, 21 Oct 2005 12:22:52 -0400 From: Sreeni To: linux-os@analogic.com, linux-kernel@vger.kernel.org Subject: XIP probelm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have a montavista XIP kernel running on ARM and my kernel will be in the flash. Since its XIP, I know that the ".text" portion of the kernel will be executed from flash but that ".data" needs to be placed in SDRAM. Now my question is - based on what offset this data will be placed? My SDRAM physicall address starts at 3000_0000 and flash starts at 0100_0000. when i allocated a global variable in the kernel module and when i try to check its actually physical address using virt_to_phys, its giving me the address in the range of 0100_0000 ~ 0600_0000 which is my flash (the PAGE_OFFSET doesn't work in case of XIP). Can you please help in knowing the physical address of my .data portion in this situation. Thanks Shree