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

    rcc61d5c r84e59b7c  
    9191/***********************************************************************/
    9292
     93#include <rtems/asm.h>
    9394#include <rtems/powerpc/cache.h>
     95#include <libcpu/powerpc-utility.h>
    9496
    9597#include <bsp.h>
     
    471473#endif /* HAS_UBOOT */
    472474
    473 /* set stack pointer (common for RAM/ROM startup) */
    474         LA      r1, bsp_section_text_start
    475         addi    r1, r1, -0x10                   /* Set up stack pointer = beginning of text section - 0x10 */
    476         /* tag TOS with a NULL pointer (termination mark for stack dump) */
    477         li  r0, 0
    478         stw r0, 0(r1)
     475        /*
     476         * Initialize start stack (common for RAM/ROM startup).  The stacks are
     477         * statically allocated and properly aligned.
     478         */
     479        LA      r1, _ISR_Stack_area_end
     480        subi    r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE
     481        li      r0, 0
     482        stw     r0, 0(r1)
    479483
    480484        bl      __eabi                          /* Set up EABI and SYSV environment */
Note: See TracChangeset for help on using the changeset viewer.