Ignore:
Timestamp:
Nov 15, 2018, 7:47:22 PM (11 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/mvme3100/start/start.S

    rcc61d5c r84e59b7c  
    1313
    1414#include <rtems/asm.h>
    15 #include <rtems/score/cpu.h>
    16 #include <rtems/powerpc/powerpc.h>
     15#include <libcpu/powerpc-utility.h>
    1716
    1817#include <bspopts.h>
     
    7271        mr      r7,r27
    7372        bl      save_boot_params
    74         addis   r9,r0, (__stack-PPC_MINIMUM_STACK_FRAME_SIZE)@ha
    75         addi    r9,r9, (__stack-PPC_MINIMUM_STACK_FRAME_SIZE)@l
    76         /* align down to 16-bytes */
    77         li  r5, (CPU_STACK_ALIGNMENT - 1)
    78         andc r1, r9, r5
    7973
    80         /* NULL ptr to back chain */
    81         li  r0, 0
    82         stw r0, 0(r1)
     74        /*
     75         * Initialize start stack.  The stacks are statically allocated and
     76         * properly aligned.
     77         */
     78        LA      r1, _ISR_Stack_area_end
     79        subi    r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE
     80        li      r0, 0
     81        stw     r0, 0(r1)
    8382
    8483        /*
Note: See TracChangeset for help on using the changeset viewer.