From patchwork Mon May 10 06:26:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ender Dai X-Patchwork-Id: 71783 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id E3B74C67D4A for ; Mon, 10 May 2010 08:27:58 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id CB044C913130 for ; Mon, 10 May 2010 08:27:58 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Mon, 10 May 2010 08:27:58 +0200 (CEST) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Mon, 10 May 2010 08:26:44 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Mon, 10 May 2010 08:26:44 +0200 Received: from scanner-2.m-online.net (unknown [192.168.8.166]) by mail.m-online.net (Postfix) with ESMTP id E5829200185; Mon, 10 May 2010 08:26:43 +0200 (CEST) Received: from mxin-1.m-online.net ([192.168.6.164]) by scanner-2.m-online.net (scanner-2.m-online.net [192.168.8.166]) (amavisd-new, port 10026) with ESMTP id 21319-04; Mon, 10 May 2010 08:26:42 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-1.m-online.net (Postfix) with ESMTP id 4668B46C0AA; Mon, 10 May 2010 08:26:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1F602280DB; Mon, 10 May 2010 08:26:38 +0200 (CEST) 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 wIDRD5Krvjqt; Mon, 10 May 2010 08:26:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5DB14280DF; Mon, 10 May 2010 08:26:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 318E4280D5 for ; Mon, 10 May 2010 08:26:27 +0200 (CEST) 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 ua--0ch+36mK for ; Mon, 10 May 2010 08:26:25 +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 gmp-eb-inf-1.sun.com (gmp-eb-inf-1.sun.com [192.18.6.21]) by theia.denx.de (Postfix) with ESMTPS id 06E3A280D0 for ; Mon, 10 May 2010 08:26:23 +0200 (CEST) Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o4A6QKrM013912 for ; Mon, 10 May 2010 06:26:22 GMT MIME-version: 1.0 Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L2600J00XGRE800@fe-emea-09.sun.com> for u-boot@lists.denx.de; Mon, 10 May 2010 07:26:15 +0100 (BST) Received: from HAL9000.Sun.Com ([unknown] [129.158.152.144]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L2600AXFXVOPYA0@fe-emea-09.sun.com>; Mon, 10 May 2010 07:26:14 +0100 (BST) Received: by HAL9000.Sun.Com (Postfix, from userid 1000) id 9154330404; Mon, 10 May 2010 14:26:11 +0800 (CST) Date: Mon, 10 May 2010 14:26:11 +0800 From: Ender Dai To: andrea.scian@dave-tech.it Message-id: <1273472771-15859-1-git-send-email-ender.dai@gmail.com> X-Mailer: git-send-email 1.5.6 Cc: u-boot@lists.denx.de, Ender Dai Subject: [U-Boot] [PATCH] s3c44b0/start.S: should clear .bss X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net .bss section should be zeroed out after relocat to ram. Signed-off-by: Ender Dai --- arch/arm/cpu/s3c44b0/start.S | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/s3c44b0/start.S b/arch/arm/cpu/s3c44b0/start.S index fe6b349..08722c1 100644 --- a/arch/arm/cpu/s3c44b0/start.S +++ b/arch/arm/cpu/s3c44b0/start.S @@ -164,6 +164,15 @@ stack_setup: #endif sub sp, r0, #12 /* leave 3 words for abort-stack */ +clear_bss: + ldr r0, _bss_start /* find start of bss segment */ + ldr r1, _bss_end /* stop here */ + mov r2, #0x00000000 /* clear */ +clbss_l:str r2, [r0] /* clear loop... */ + add r0, r0, #4 + cmp r0, r1 + blt clbss_l + ldr pc, _start_armboot _start_armboot: .word start_armboot