mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
bsps/sparc: Fix BSS initialization
Use __bss_start available via %g2 to clear the BSS section. The usage of _edata resulted in a copy of [_edata, __bss_start) from ROM to RAM and then a clear to zero of this area. Clear now only [__bss_start, _end).
This commit is contained in:
1 parent
b2d191e833
commit
249eaf9991
1 file changed
-2
@@ -344,8 +344,6 @@ copy_data:
|
||||
/* clear the bss */
|
||||
1:
|
||||
|
||||
sethi %hi(_edata),%g2
|
||||
or %g2,%lo(_edata),%g2 ! g2 = start of bss
|
||||
sethi %hi(_end),%g3
|
||||
or %g3,%lo(_end),%g3 ! g3 = end of bss
|
||||
mov %g0,%g1 ! so std has two zeros
|
||||
|
||||
Reference in new issue
Block a user