boards/risc-v/qemu-rv: Add missing section on ld-nuttsbi.script

Fix an issue regarding the `rv-virt:nsbi` defconfig, which wasn't
booting properly because `sbi_set_mtimecmp` failed to get the
mtimecmp's register address when evaluating `g_mtimecmp`. This
variable, which should be located at the `.noinit` section, wasn't
being set accordingly by the linker script, ending up on `bss
section which is zero-initialized, overwriting its value previously
set by `sbi_init_mtimer`.
This commit is contained in:
Tiago Medicci Serrano
2025-06-20 14:15:10 -03:00
committed by Xiang Xiao
parent a98f7a1045
commit 14af1c6ef7
@@ -155,6 +155,12 @@ SECTIONS
_edata = . ;
}
.noinit (NOLOAD) : ALIGN(4)
{
*(.noinit)
*(.noinit.*)
} > ksram
.bss :
{
_sbss = . ;