Ignore:
Timestamp:
Nov 15, 2018, 7:47:22 PM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
508f319e
Parents:
cc61d5c
git-author:
Sebastian Huber <sebastian.huber@…> (11/15/18 19:47:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/19/18 06:15:47)
Message:

bsps/powerpc: Use interrupt stack for init stack

Move start.o to separate file.

Update #3459.

File:
1 edited

Legend:

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

    rcc61d5c r84e59b7c  
    1111
    1212#include <rtems/asm.h>
    13 #include <rtems/score/cpu.h>
    14 #include <rtems/powerpc/powerpc.h>
     13#include <libcpu/powerpc-utility.h>
    1514
    1615#include <libcpu/io.h>
     
    134133        mr      r7,r27
    135134        bl      save_boot_params
     135
    136136        /*
    137          * stack = &__rtems_end + 4096
     137         * Initialize start stack.  The stacks are statically allocated and
     138         * properly aligned.
    138139         */
    139         addis   r9,r0, __stack-PPC_MINIMUM_STACK_FRAME_SIZE@ha
    140         addi    r9,r9, __stack-PPC_MINIMUM_STACK_FRAME_SIZE@l
    141         /*
    142          * align initial stack
    143          * (we hope that the bootloader stack was 16-byte aligned
    144          * or we haven't used altivec yet...)
    145          */
    146         li   r0, (CPU_STACK_ALIGNMENT-1)
    147         andc r1, r9, r0
    148         /*
    149          * Tag TOS with a NULL (terminator for stack dump)
    150          */
    151         li   r0, 0
    152         stw  r0, 0(r1)
    153        
     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)
     144
    154145        /*
    155146         * We are now in a environment that is totally independent from
Note: See TracChangeset for help on using the changeset viewer.