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

    rcc61d5c r84e59b7c  
    3131
    3232#include <rtems/asm.h>
     33#include <libcpu/powerpc-utility.h>
    3334
    3435/*
    35  *  The initial stack is set to run BELOW the code base address.
    36  *  (between the vectors and text sections)
    37  *
    3836 *  The entry veneer has to clear the BSS and copy the read only
    3937 *  version of the data segment to the correct location.
     
    135133        lwz r2, toc_pointer-base_addr(r1)
    136134
    137         /* Set up stack pointer = beginning of text section - 56 */
    138         addi    r1, r1, -56-4
     135        /* Clear cmdline */
     136        li      r3, 0
    139137
    140         /* Clear cmdline */
    141         xor r3, r3, r3
     138        /*
     139         * Initialize start stack.  The stacks are statically allocated and
     140         * properly aligned.
     141         */
     142        LA      r1, _ISR_Stack_area_end
     143        subi    r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE
     144        stw     r3, 0(r1)
    142145
    143146        .extern SYM (boot_card)
Note: See TracChangeset for help on using the changeset viewer.