From patchwork Sat Jul 28 09:35:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: seedshope X-Patchwork-Id: 173854 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 D1C252C0080 for ; Sat, 28 Jul 2012 19:39:59 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 07C7E28091; Sat, 28 Jul 2012 11:39:38 +0200 (CEST) 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 6lN3mXMqviZ5; Sat, 28 Jul 2012 11:39:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A0DEA280A4; Sat, 28 Jul 2012 11:39:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B7ACD280B5 for ; Sat, 28 Jul 2012 11:39:20 +0200 (CEST) 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 TGnrhA11Y0jC for ; Sat, 28 Jul 2012 11:39:20 +0200 (CEST) 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-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id 8723B280BE for ; Sat, 28 Jul 2012 11:39:07 +0200 (CEST) Received: by mail-pb0-f44.google.com with SMTP id wy7so6498823pbc.3 for ; Sat, 28 Jul 2012 02:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=DGHD1AIdNAKl/wB4vQ0J7qHPWQxeSvh+kBZk4mHC+OM=; b=by0SDGRfJ3yH6ABgEWTuRQZnHBMZfdNYRLSJOBtZhVsP3v3bAtbYO55FMxF2cqZZAv 1kV6ZNxYX0n/6MJrnX+ybYaDOE9r6euyQS3GC/Cw9m5zVCHy/GLtrLAfOuuvItgVZyMc TJFYFtYQQK/zSU2rCC5PpUbT3z5ZuJlaYHTOojYEOJpykF/c6+ix4ZiceFRAIKeHVB6Z SVC5hCQ+sMaEhuiDQl1AUxYWJfXQNvZB00DyGm0W3Wx70+s7ikxsMEy7yf5kOsZ1YgIY pqh8gMc+dWebN54KI3rjDKGmafOQF3qT75uX5NXh9EvZEr7xNjs5H7ikY4NeiBzrQWwt E7rw== Received: by 10.68.218.163 with SMTP id ph3mr20431475pbc.58.1343468347133; Sat, 28 Jul 2012 02:39:07 -0700 (PDT) Received: from localhost.localdomain ([221.221.21.198]) by mx.google.com with ESMTPS id hf4sm3687803pbc.4.2012.07.28.02.39.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Jul 2012 02:39:06 -0700 (PDT) From: Zhong Hongbo To: Minkyu Kang Date: Sat, 28 Jul 2012 17:35:42 +0800 Message-Id: <1343468148-26595-10-git-send-email-bocui107@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1343468148-26595-1-git-send-email-bocui107@gmail.com> References: <1343468148-26595-1-git-send-email-bocui107@gmail.com> Cc: u-boot@lists.denx.de, Zhong Hongbo Subject: [U-Boot] [V3 09/15] arm1176: Fixed No relocation. 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: Zhong Hongbo When It do not need to relocat for u-boot, the offset(r9) of relocation should be set zero. Signed-off-by: Zhong Hongbo --- Change for V3: - Replace mov with moveq. Change for V2: - Seprate some code. --- arch/arm/cpu/arm1176/start.S | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm1176/start.S b/arch/arm/cpu/arm1176/start.S index 761b7fe..dd1b73b 100644 --- a/arch/arm/cpu/arm1176/start.S +++ b/arch/arm/cpu/arm1176/start.S @@ -252,6 +252,7 @@ stack_setup: adr r0, _start cmp r0, r6 + moveq r9, #0 beq clear_bss /* skip relocation */ mov r1, r6 /* r1 <- scratch for copy_loop */ ldr r3, _bss_start_ofs