From patchwork Thu Dec 12 20:39:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 3334101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 31C769F243 for ; Thu, 12 Dec 2013 20:40:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38035207C3 for ; Thu, 12 Dec 2013 20:40:34 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 54AE0206CB for ; Thu, 12 Dec 2013 20:40:33 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrD3G-0005u6-KW; Thu, 12 Dec 2013 20:40:06 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrD39-000120-Hn; Thu, 12 Dec 2013 20:39:59 +0000 Received: from geoff by merlin.infradead.org with local (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrD2w-00010U-3v; Thu, 12 Dec 2013 20:39:46 +0000 Message-Id: <92660d1b81279aa6784a33eff2f102e78d883931.1386879684.git.geoff@infradead.org> In-Reply-To: References: From: Geoff Levand Patch-Date: Thu, 12 Sep 2013 12:49:41 -0700 Subject: [PATCH 5/5] arm64: Add LOAD_OFFSET symbol for linker scripts To: Catalin Marinas , Will Deacon Date: Thu, 12 Dec 2013 20:39:46 +0000 Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a definition for the LOAD_OFFSET symbol used in the linker scripts. LOAD_OFFSET is used to generate the load address of the section. Signed-off-by: Geoff Levand for Huawei, Linaro --- arch/arm64/include/asm/memory.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h index 3776217..1994c56 100644 --- a/arch/arm64/include/asm/memory.h +++ b/arch/arm64/include/asm/memory.h @@ -52,6 +52,8 @@ #define EARLYCON_IOBASE (MODULES_VADDR - SZ_4M) #define TASK_SIZE_64 (UL(1) << VA_BITS) +#define LOAD_OFFSET (PAGE_OFFSET) + #ifdef CONFIG_COMPAT #define TASK_SIZE_32 UL(0x100000000) #define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \