summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authormushtaq khan <mushtaq_k@procsys.com>2007-04-30 15:57:22 +0530
committerWolfgang Denk <wd@denx.de>2007-05-15 23:15:10 +0200
commit644e6fb4eb8be90ea04ba34b643a8bf019d680e0 (patch)
treefe45b4507772ce3b36537ef66c730d04367d6ddd /cpu
parentc3243cf7b490057277d61acffe4ad0946f9eb4a4 (diff)
downloadu-boot-imx-644e6fb4eb8be90ea04ba34b643a8bf019d680e0.zip
u-boot-imx-644e6fb4eb8be90ea04ba34b643a8bf019d680e0.tar.gz
u-boot-imx-644e6fb4eb8be90ea04ba34b643a8bf019d680e0.tar.bz2
Fixes bug clearing the bss section for i386
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>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/i386/start.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/i386/start.S b/cpu/i386/start.S
index afcbb24..1a54dd1 100644
--- a/cpu/i386/start.S
+++ b/cpu/i386/start.S
@@ -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