[U-Boot] [PATCH] powerpc/mpc85xx: The end address of the bss in the SPL should be 4byte alignment
ying.zhang at freescale.com
ying.zhang at freescale.com
Tue May 14 10:35:00 CEST 2013
From: Ying Zhang <b40530 at freescale.com>
There will clear the BSS in the function clear_bss(), the reset address of
the BSS started from the __bss_start, and increased by four-byte increments,
finally stoped depending on the adress is equal to the _bss_end. If the end
address __bss_end is not alignment to 4byte, it will be an infinite loop.
The end address of the bss should be 4byte aligned.
Signed-off-by: Ying Zhang <b40530 at freescale.com>
---
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
index dff2398..154438b 100644
--- a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
+++ b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2006
+ * (C) Copyright 2013
* Wolfgang Denk, DENX Software Engineering, wd at denx.de
*
* Copyright 2009 Freescale Semiconductor, Inc.
@@ -98,5 +98,6 @@ SECTIONS
*(.sbss*)
*(.bss*)
}
+ . = ALIGN(4);
__bss_end = .;
}
--
1.7.0.4
More information about the U-Boot
mailing list