From patchwork Sat Feb 9 20:33:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 219438 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B9CC82C0087 for ; Sun, 10 Feb 2013 07:34:12 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EEA084A099; Sat, 9 Feb 2013 21:34:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TsWE8M2oUOeg; Sat, 9 Feb 2013 21:34:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 726D04A09B; Sat, 9 Feb 2013 21:33:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 434D64A04C for ; Sat, 9 Feb 2013 21:33:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YgrRDMouOW3T for ; Sat, 9 Feb 2013 21:33:37 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by theia.denx.de (Postfix) with ESMTPS id 86C8B4A04B for ; Sat, 9 Feb 2013 21:33:37 +0100 (CET) Received: by mail-bk0-f54.google.com with SMTP id w5so2160635bku.27 for ; Sat, 09 Feb 2013 12:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=kbLjQ5HVb/s9QKAQ3tLnerbPCnMSNazxfKrpHDY7MLE=; b=xaWtAcG1PWyaWESpCIn/lAH2or6+lGz7dWAH3RqhLuVb9x1pf2S2eXAm9IjIKGdpXT WoTtIxMxybfQ1kV1CPDJ/WAvF3WKNF+pDTVzaFNoXZl3Ofb7TgFF7yp/Naqs5SRKt6Ij YyVTLwhdc6H2bdls5jBTt05dWlZiol21f8tCT5a5tturt6OL88r6VdYf+XIDhJaqgeDt scfj5MAaKaVlQtnuenpKlBoAapgeDh4aDVUYD3qCJwlUqnrmHJtpROcVj9Rc2RbbS4kG dHeB0aBX27VoYMlA+DzQy42hblXWGLK7kYu6rPrKQA6oRKTFwEvCCTP5uHK2df5qTMIk 8n9A== X-Received: by 10.204.127.21 with SMTP id e21mr2682509bks.59.1360442017148; Sat, 09 Feb 2013 12:33:37 -0800 (PST) Received: from workstation.sas.sys.sphairon.com (dslb-094-222-038-034.pools.arcor-ip.net. [94.222.38.34]) by mx.google.com with ESMTPS id fs20sm11492516bkc.8.2013.02.09.12.33.36 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Feb 2013 12:33:36 -0800 (PST) From: daniel.schwierzeck@gmail.com To: u-boot@lists.denx.de Date: Sat, 9 Feb 2013 21:33:25 +0100 Message-Id: <1360442010-7520-3-git-send-email-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 1.8.1.1 In-Reply-To: <1360442010-7520-1-git-send-email-daniel.schwierzeck@gmail.com> References: <1360442010-7520-1-git-send-email-daniel.schwierzeck@gmail.com> Cc: Zhi-zhou Zhang Subject: [U-Boot] [PATCH v1 2/7] MIPS: u-boot.lds: introduce symbol __image_copy_end X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Daniel Schwierzeck This symbol is used in later patches as end address for relocation of the U-Boot image into RAM. Signed-off-by: Daniel Schwierzeck --- arch/mips/cpu/u-boot.lds | 2 ++ arch/mips/include/asm/u-boot-mips.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/arch/mips/cpu/u-boot.lds b/arch/mips/cpu/u-boot.lds index 6980b86..7b5fca0 100644 --- a/arch/mips/cpu/u-boot.lds +++ b/arch/mips/cpu/u-boot.lds @@ -70,6 +70,8 @@ SECTIONS uboot_end_data = .; . = ALIGN(4); + __image_copy_end = .; + .bss : { __bss_start = .; *(.sbss.*) diff --git a/arch/mips/include/asm/u-boot-mips.h b/arch/mips/include/asm/u-boot-mips.h index eda0498..bfb6a4a 100644 --- a/arch/mips/include/asm/u-boot-mips.h +++ b/arch/mips/include/asm/u-boot-mips.h @@ -20,4 +20,10 @@ static inline unsigned long bss_end(void) return (unsigned long) &__bss_end; } +static inline unsigned long image_copy_end(void) +{ + extern ulong __image_copy_end; + return (unsigned long) &__image_copy_end; +} + extern int incaip_set_cpuclk(void);