]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fixes bug clearing the bss section for i386
authormushtaq khan <mushtaq_k@procsys.com>
Mon, 30 Apr 2007 10:27:22 +0000 (15:57 +0530)
committerWolfgang Denk <wd@denx.de>
Tue, 15 May 2007 21:15:10 +0000 (23:15 +0200)
Hi,
There is a bug in the code of clearing the bss section for processor
i386.(File: cpu/i386/start.S)
In the code, bss_start addr (starting addr of bss section) is put into
the register %eax, but the code which clears the bss section refers to
the addr pointed by %edi.

This patch fixes this bug by putting bss_start into %edi register.

Signed-off-by: Mushtaq Khan <mushtaq_k@procsys.com>
cpu/i386/start.S

index afcbb24520b0631cfa574f15cad688d9221df7de..1a54dd10e336197a09ebf74ccc2ef745a54f451d 100644 (file)
@@ -149,7 +149,7 @@ data_ok:
 .progress3:
 
        /* clear bss section in ram, size must be 4-byte aligned  */
-       movl    $_i386boot_bss_start, %eax        /* BSS start */
+       movl    $_i386boot_bss_start, %edi        /* MK_CHG BSS start */
        movl    $_i386boot_bss_size, %ecx         /* BSS size */
        movl    %ecx, %eax
        andl    $3, %eax