x86: Use loops instead of memcpy/memset in board_init_f

Provides a small speed increase and prepares for fully relocatable image.
Downside is the TEXT_BASE, bss, load address etc must ALL be aligned on a
a 4-byte boundary which is not such a terrible restriction as everything
is already 4-byte aligned anyway
This commit is contained in:
Graeme Russ
2010-10-07 20:03:33 +11:00
parent 2219142658
commit f2ff75c0a2
2 changed files with 33 additions and 17 deletions

View File

@@ -58,7 +58,8 @@ SECTIONS
. = ALIGN(4);
__bss_start = ABSOLUTE(.);
.bss (NOLOAD) : { *(.bss) }
__bss_size = SIZEOF(.bss);
. = ALIGN(4);
__bss_end = ABSOLUTE(.);
. = ALIGN(4);
__rel_dyn_start = .;