From: Ming-Dien Chang Date: Thu, 21 May 2009 13:55:04 +0800 Subject: [U-Boot] [Patch] bss section initialization on s3c44b0 In-Reply-To: <20090404212209.B6D6E83797DC@gemini.denx.de> References: <714db0904010157n29d03f2bu8c8224844add5d49@mail.gmail.com> <20090401092210.A7AA483797DC@gemini.denx.de> <714db0904012028l19743377tec224a9954017948@mail.gmail.com> <20090404212209.B6D6E83797DC@gemini.denx.de> Message-ID: <714db0905202255j28a35e5bk64a2fbc8cbe2c610@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 + /* Set up the stack */ stack_setup: ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */