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/mvme5500/start/start.S

    rcc61d5c r84e59b7c  
    1414
    1515#include <rtems/asm.h>
    16 #include <rtems/score/cpu.h>
    17 #include <rtems/powerpc/powerpc.h>
     16#include <libcpu/powerpc-utility.h>
    1817
    1918#include <libcpu/io.h>
     
    135134        mr      r7,r27
    136135        bl      save_boot_params
     136
    137137        /*
    138          * stack = &__rtems_end + 4096
     138         * Initialize start stack.  The stacks are statically allocated and
     139         * properly aligned.
    139140         */
    140         addis   r9,r0, __stack-PPC_MINIMUM_STACK_FRAME_SIZE@ha
    141         addi    r9,r9, __stack-PPC_MINIMUM_STACK_FRAME_SIZE@l
    142         /*
    143          * align initial stack
    144          * (we hope that the bootloader stack was 16-byte aligned
    145          * or we haven't used altivec yet...)
    146          */
    147         li   r0, (CPU_STACK_ALIGNMENT-1)
    148         andc r1, r9, r0
    149         /*
    150          * NULL ptr to back chain
    151          */
    152         li   r0, 0
    153         stw  r0, 0(r1)
     141        LA      r1, _ISR_Stack_area_end
     142        subi    r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE
     143        li      r0, 0
     144        stw     r0, 0(r1)
    154145
    155146        /*
Note: See TracChangeset for help on using the changeset viewer.