mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
cpu/riscv_common: add bss end to clear memory
This commit is contained in:
parent
dd4fe70a62
commit
992e09b07b
@ -205,6 +205,7 @@ SECTIONS
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
} >ram AT>ram :ram
|
||||
PROVIDE( __bss_end = . );
|
||||
|
||||
.noinit (NOLOAD) :
|
||||
{
|
||||
|
@ -41,9 +41,10 @@ _start_real:
|
||||
bltu a1, a2, 1b
|
||||
2:
|
||||
|
||||
|
||||
/* Clear bss section */
|
||||
la a0, __bss_start
|
||||
la a1, _end
|
||||
la a1, __bss_end
|
||||
bgeu a0, a1, 2f
|
||||
1:
|
||||
sw zero, (a0)
|
||||
|
Loading…
Reference in New Issue
Block a user