Changeset 249eaf9 in rtems


Ignore:
Timestamp:
May 14, 2014, 8:28:09 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0e8d55b0
Parents:
b2d191e
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/14 08:28:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/14/14 12:46:20)
Message:

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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/start/start.S

    rb2d191e r249eaf9  
    3453451:
    346346
    347         sethi %hi(_edata),%g2
    348         or    %g2,%lo(_edata),%g2       ! g2 = start of bss
    349347        sethi %hi(_end),%g3
    350348        or    %g3,%lo(_end),%g3         ! g3 = end of bss
Note: See TracChangeset for help on using the changeset viewer.