forked from Imagelibrary/rtems
bsps/arm: Adjust stacks for ARMv4
Reduce non-IRQ stacks to size zero. All non-IRQ stacks overlap now the IRQ stack. This is all right since the SVC stack is used only during startup and here interrupts are disabled. The other exception stacks lead to a system termination by default, so we can here also use the IRQ stack since interrupts are disabled on exception entry.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010 embedded brains GmbH. All rights reserved.
|
||||
* Copyright (c) 2010-2014 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Obere Lagerstr. 30
|
||||
@@ -20,19 +20,7 @@
|
||||
* http://www.rtems.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
bsp_stack_abt_size = DEFINED (bsp_stack_abt_size) ? bsp_stack_abt_size : 128;
|
||||
bsp_stack_abt_size = ALIGN (bsp_stack_abt_size, bsp_stack_align);
|
||||
|
||||
bsp_stack_fiq_size = DEFINED (bsp_stack_fiq_size) ? bsp_stack_fiq_size : 128;
|
||||
bsp_stack_fiq_size = ALIGN (bsp_stack_fiq_size, bsp_stack_align);
|
||||
|
||||
bsp_stack_irq_size = DEFINED (bsp_stack_irq_size) ? bsp_stack_irq_size : 512;
|
||||
bsp_stack_irq_size = DEFINED (bsp_stack_irq_size) ? bsp_stack_irq_size : 1024;
|
||||
bsp_stack_irq_size = ALIGN (bsp_stack_irq_size, bsp_stack_align);
|
||||
|
||||
bsp_stack_svc_size = DEFINED (bsp_stack_svc_size) ? bsp_stack_svc_size : 512;
|
||||
bsp_stack_svc_size = ALIGN (bsp_stack_svc_size, bsp_stack_align);
|
||||
|
||||
bsp_stack_und_size = DEFINED (bsp_stack_und_size) ? bsp_stack_und_size : 128;
|
||||
bsp_stack_und_size = ALIGN (bsp_stack_und_size, bsp_stack_align);
|
||||
|
||||
INCLUDE linkcmds.base
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2013 embedded brains GmbH. All rights reserved.
|
||||
* Copyright (c) 2008-2014 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Obere Lagerstr. 30
|
||||
@@ -296,10 +296,6 @@ SECTIONS {
|
||||
|
||||
. = ALIGN (bsp_stack_align);
|
||||
|
||||
bsp_stack_fiq_begin = .;
|
||||
. = . + bsp_stack_fiq_size;
|
||||
bsp_stack_fiq_end = .;
|
||||
|
||||
bsp_stack_irq_begin = .;
|
||||
. = . + bsp_stack_irq_size;
|
||||
bsp_stack_irq_end = .;
|
||||
@@ -308,6 +304,10 @@ SECTIONS {
|
||||
. = . + bsp_stack_svc_size;
|
||||
bsp_stack_svc_end = .;
|
||||
|
||||
bsp_stack_fiq_begin = .;
|
||||
. = . + bsp_stack_fiq_size;
|
||||
bsp_stack_fiq_end = .;
|
||||
|
||||
bsp_stack_und_begin = .;
|
||||
. = . + bsp_stack_und_size;
|
||||
bsp_stack_und_end = .;
|
||||
|
||||
Reference in New Issue
Block a user