Commit 13752046 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: make sure the BSS and kernel load address are 4 byte aligned

Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 09e1f70e
...@@ -83,6 +83,7 @@ SECTIONS ...@@ -83,6 +83,7 @@ SECTIONS
#if !L1_DATA_B_LENGTH #if !L1_DATA_B_LENGTH
*(.l1.bss.B) *(.l1.bss.B)
#endif #endif
. = ALIGN(4);
___bss_stop = .; ___bss_stop = .;
} }
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <asm/fixed_code.h>
#include <asm/mach/anomaly.h> #include <asm/mach/anomaly.h>
#include <asm/mach-common/clocks.h> #include <asm/mach-common/clocks.h>
...@@ -53,3 +54,11 @@ ...@@ -53,3 +54,11 @@
# endif # endif
#endif /* CONFIG_BFIN_KERNEL_CLOCK */ #endif /* CONFIG_BFIN_KERNEL_CLOCK */
#if CONFIG_BOOT_LOAD < FIXED_CODE_END
# error "The kernel load address must be after the fixed code section"
#endif
#if (CONFIG_BOOT_LOAD & 0x3)
# error "The kernel load address must be 4 byte aligned"
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment