Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755785AbbGPQMb (ORCPT ); Thu, 16 Jul 2015 12:12:31 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:47069 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbbGPQMa (ORCPT ); Thu, 16 Jul 2015 12:12:30 -0400 Date: Thu, 16 Jul 2015 17:12:19 +0100 From: Russell King - ARM Linux To: Chris Brandt Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org Subject: Re: [PATCH 2/2] ARM: xip: Use correct symbol for end of ROM marker Message-ID: <20150716161219.GL7557@n2100.arm.linux.org.uk> References: <1437057434-1616-1-git-send-email-chris.brandt@renesas.com> <1437057434-1616-3-git-send-email-chris.brandt@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437057434-1616-3-git-send-email-chris.brandt@renesas.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1122 Lines: 23 On Thu, Jul 16, 2015 at 10:37:14AM -0400, Chris Brandt wrote: > For an XIP build, _edata_loc, not _etext, is the end of constant R/O > memory that needs to be mapped into the MODULES_VADDR area. This fixes > the bug where you might loose part of your R/O data after page table > setup is complete. That's not correct. _etext is set in the linker script to be the end of the text + readonly data + exception table + unwinder tables + notes. _edata_loc is the end address of the read/write data section stored in read-only memory, which exists to be copied by the early kernel assembly code to RAM. There's no need for that to remain mapped. I think you need to either provide more details of the problem you're seeing, or further reasoning why this is a correct change. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/