From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 3 Jun 2009 01:17:52 +0200 Subject: [U-Boot] [Patch] bss section initialization on s3c44b0 In-Reply-To: <714db0905202255j28a35e5bk64a2fbc8cbe2c610@mail.gmail.com> References: <714db0904010157n29d03f2bu8c8224844add5d49@mail.gmail.com> <20090401092210.A7AA483797DC@gemini.denx.de> <714db0904012028l19743377tec224a9954017948@mail.gmail.com> <20090404212209.B6D6E83797DC@gemini.denx.de> <714db0905202255j28a35e5bk64a2fbc8cbe2c610@mail.gmail.com> Message-ID: <20090602231752.GA14339@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 13:55 Thu 21 May , Ming-Dien Chang wrote: > Clear the .BSS section for S3C44B0 to get a zero-filled .BSS section. > > Signed-off-by : Ming-Dien Chang > > > diff --git a/cpu/s3c44b0/start.S b/cpu/s3c44b0/start.S > index f5a3d3a..a6d27aa 100644 > --- a/cpu/s3c44b0/start.S > +++ b/cpu/s3c44b0/start.S > @@ -154,6 +154,25 @@ vector_copy_loop: > ble vector_copy_loop > #endif /* CONFIG_SKIP_RELOCATE_UBOOT */ > > + /* > + * Initialize .bss section. > + */ > + mov r2, #0 > + mov r3, #0 > + mov r4, #0 > + mov r5, #0 > + mov r6, #0 > + mov r7, #0 > + mov r8, #0 > + mov r9, #0 > + mov r10, #0 > + ldr r0, _bss_start > + ldr r1, _bss_end > +zerolize: > + stmia r0!, {r2-r10} > + cmp r0, r1 > + blt zerolize > + please use the same code as other arm cpu start.S as example cpu/arm926ejs/start.S Best Regards, J.