Changeset 9e48958 in rtems


Ignore:
Timestamp:
Mar 15, 2019, 6:32:28 AM (5 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
007d4e12
Parents:
31e8f1b
git-author:
Sebastian Huber <sebastian.huber@…> (03/15/19 06:32:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/15/19 06:34:07)
Message:

bsps/powerpc: Initialize stack earlier

The eabi() call may use the stack.

Update #3459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/powerpc/shared/start/start.S

    r31e8f1b r9e48958  
    121121
    122122enter_C_code:
     123        /*
     124         * Initialize start stack.  The stacks are statically allocated and
     125         * properly aligned.
     126         */
     127        LA      r1, _ISR_Stack_area_end
     128        subi    r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE
     129        li      r0, 0
     130        stw     r0, 0(r1)
     131
    123132        bl      MMUon
    124133        bl      __eabi  /* setup EABI and SYSV environment */
     
    133142        mr      r7,r27
    134143        bl      save_boot_params
    135 
    136         /*
    137          * Initialize start stack.  The stacks are statically allocated and
    138          * properly aligned.
    139          */
    140         LA      r1, _ISR_Stack_area_end
    141         subi    r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE
    142         li      r0, 0
    143         stw     r0, 0(r1)
    144144
    145145        /*
Note: See TracChangeset for help on using the changeset viewer.