added code to clear sbss

alignment issues corrected
This commit is contained in:
Dave Murphy 2005-04-04 18:43:19 +00:00
parent 1454653b4e
commit caa3ea931d
3 changed files with 6 additions and 2 deletions

View File

@ -217,9 +217,11 @@ SECTIONS
.sbss ALIGN(4):
{
__sbss_start = ABSOLUTE(.);
*(.sbss)
. = ALIGN(4);
}
__sbss_end = .;
__ewram_end = . ;
__ewram_overlay_start = . ;

View File

@ -108,8 +108,8 @@ SkipEWRAMClear: @ Clear Internal WRAM to 0x00
@---------------------------------------------------------------------------------
@ Clear BSS section to 0x00
@---------------------------------------------------------------------------------
ldr r0,=__bss_start
ldr r1,=__bss_end
ldr r0,=__sbss_start
ldr r1,=__sbss_end
sub r1,r0
bl ClearMem

View File

@ -216,9 +216,11 @@ SECTIONS
.sbss ALIGN(4):
{
__sbss_start = ABSOLUTE(.);
*(.sbss)
. = ALIGN(4);
}
__sbss_end = .;
__ewram_end = . ;
__ewram_overlay_start = . ;