Changeset b2d191e in rtems
- Timestamp:
- 05/14/14 08:23:18 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 249eaf9
- Parents:
- 3730a07f
- git-author:
- Sebastian Huber <sebastian.huber@…> (05/14/14 08:23:18)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (05/14/14 12:46:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/sparc/shared/start/start.S
r3730a07f rb2d191e 320 320 */ 321 321 322 sethi %hi(_endtext),%g 2323 or %g 2,%lo(_endtext),%g2 ! g2= start of initialized data in ROM322 sethi %hi(_endtext),%g1 323 or %g1,%lo(_endtext),%g1 ! g1 = start of initialized data in ROM 324 324 325 325 sethi %hi(_data_start),%g3 326 326 or %g3,%lo(_data_start),%g3 ! g3 = start of initialized data in RAM 327 327 328 sethi %hi(__bss_start), %g4329 or %g 4,%lo(__bss_start),%g4 ! g4= end of initialized data in RAM330 331 cmp %g 2, %g3328 sethi %hi(__bss_start), %g2 329 or %g2,%lo(__bss_start),%g2 ! g2 = end of initialized data in RAM 330 331 cmp %g1, %g3 332 332 be 1f 333 333 nop 334 334 335 335 copy_data: 336 ldd [ %g2 ], %g5337 std %g 5 , [ %g3 ]! copy this double word336 ldd [%g1], %g4 337 std %g4 , [%g3] ! copy this double word 338 338 add %g3, 8, %g3 ! bump the destination pointer 339 add %g 2, 8, %g2! bump the source pointer340 cmp %g3, %g 4! Is the pointer past the end of dest?339 add %g1, 8, %g1 ! bump the source pointer 340 cmp %g3, %g2 ! Is the pointer past the end of dest? 341 341 bl copy_data 342 342 nop
Note: See TracChangeset
for help on using the changeset viewer.