diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-15 20:47:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-19 07:15:47 +0100 |
commit | 84e59b7c04e47c3ec7aa95f53509fd812eee725e (patch) | |
tree | 8dd2b9325e2a8d897085593ea52dc123d18f2ead /bsps/powerpc/mpc8260ads | |
parent | bsps/m68k: Use interrupt stack for init stack (diff) | |
download | rtems-84e59b7c04e47c3ec7aa95f53509fd812eee725e.tar.bz2 |
bsps/powerpc: Use interrupt stack for init stack
Move start.o to separate file.
Update #3459.
Diffstat (limited to 'bsps/powerpc/mpc8260ads')
-rw-r--r-- | bsps/powerpc/mpc8260ads/start/start.S | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/bsps/powerpc/mpc8260ads/start/start.S b/bsps/powerpc/mpc8260ads/start/start.S index 4fdc21cea9..0537bbf849 100644 --- a/bsps/powerpc/mpc8260ads/start/start.S +++ b/bsps/powerpc/mpc8260ads/start/start.S @@ -30,11 +30,9 @@ */ #include <rtems/asm.h> +#include <libcpu/powerpc-utility.h> /* - * The initial stack is set to run BELOW the code base address. - * (between the vectors and text sections) - * * The entry veneer has to clear the BSS and copy the read only * version of the data segment to the correct location. */ @@ -134,11 +132,16 @@ text_length: /* set toc */ lwz r2, toc_pointer-base_addr(r1) - /* Set up stack pointer = beginning of text section - 56 */ - addi r1, r1, -56-4 + /* Clear cmdline */ + li r3, 0 - /* Clear cmdline */ - xor r3, r3, r3 + /* + * Initialize start stack. The stacks are statically allocated and + * properly aligned. + */ + LA r1, _ISR_Stack_area_end + subi r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE + stw r3, 0(r1) .extern SYM (boot_card) bl SYM (boot_card) /* call the first C routine */ |