Ignore:
Timestamp:
Jun 26, 2017, 6:45:41 PM (7 years ago)
Author:
ertl-honda
Message:

3.0.0のリリース版に追従

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_wo_tecs/trunk/arch/arm_gcc/common/start.S

    r302 r305  
    55 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    66 *                              Toyohashi Univ. of Technology, JAPAN
    7  *  Copyright (C) 2005-2014 by Embedded and Real-Time Systems Laboratory
     7 *  Copyright (C) 2005-2016 by Embedded and Real-Time Systems Laboratory
    88 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    99 *
     
    5252 *  の責任を負わない.
    5353 *
    54  *  $Id: start.S 349 2015-07-25 05:25:27Z ertl-hiro $
     54 *  $Id: start.S 540 2016-01-16 02:15:41Z ertl-hiro $
    5555 */
    5656
     
    106106         *  BSS_STARTからBSS_ENDまでをゼロクリアする.
    107107         */
    108         ldr             r1, =BSS_START
     108        ldr             r0, =BSS_START
    109109        ldr             r2, =BSS_END
    110         cmp             r1, r2
     110        cmp             r0, r2
    111111        bhs             start_3
    112         mov             r0, #0
     112        mov             r1, #0
     113#ifdef TOPPERS_USE_STDLIB
     114        sub             r2, r2, r0
     115        bl              memset
     116#else /* TOPPERS_USE_STDLIB */
    113117ALABEL(start_2)
    114         str             r0, [r1], #4
    115         cmp             r1, r2
     118        str             r1, [r0], #4
     119        cmp             r0, r2
    116120        blo             start_2
     121#endif /* TOPPERS_USE_STDLIB */
    117122ALABEL(start_3)
    118123#endif /* TOPPERS_OMIT_BSS_INIT */
     
    125130         *  IDATA_STARTからIDATA_ENDまでを,DATA_START以降にコピーする.
    126131         */
    127         ldr             r1, =DATA_START
    128         ldr             r3, =DATA_END
    129         cmp             r1, r3
     132        ldr             r0, =DATA_START
     133        ldr             r2, =DATA_END
     134        cmp             r0, r2
    130135        bhs             start_5
    131         ldr             r2, =IDATA_START
     136        ldr             r1, =IDATA_START
     137#ifdef TOPPERS_USE_STDLIB
     138        sub             r2, r2, r0
     139        bl              memcpy
     140#else /* TOPPERS_USE_STDLIB */
    132141ALABEL(start_4)
    133         ldr             r0, [r2], #4
    134         str             r0, [r1], #4
    135         cmp             r1, r3
     142        ldr             r3, [r1], #4
     143        str             r3, [r0], #4
     144        cmp             r0, r2
    136145        blo             start_4
     146#endif /* TOPPERS_USE_STDLIB */
    137147ALABEL(start_5)
    138148#endif /* TOPPERS_OMIT_DATA_INIT */
Note: See TracChangeset for help on using the changeset viewer.