Changeset f0c564c in rtems


Ignore:
Timestamp:
Nov 12, 2014, 12:57:24 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b6f21886
Parents:
3eade710
git-author:
Sebastian Huber <sebastian.huber@…> (11/12/14 12:57:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/20/14 07:54:10)
Message:

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.

Location:
c/src/lib/libbsp/arm/shared/startup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/startup/linkcmds.armv4

    r3eade710 rf0c564c  
    88
    99/*
    10  * Copyright (c) 2010 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2010-2014 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    2121 */
    2222
    23 bsp_stack_abt_size = DEFINED (bsp_stack_abt_size) ? bsp_stack_abt_size : 128;
    24 bsp_stack_abt_size = ALIGN (bsp_stack_abt_size, bsp_stack_align);
    25 
    26 bsp_stack_fiq_size = DEFINED (bsp_stack_fiq_size) ? bsp_stack_fiq_size : 128;
    27 bsp_stack_fiq_size = ALIGN (bsp_stack_fiq_size, bsp_stack_align);
    28 
    29 bsp_stack_irq_size = DEFINED (bsp_stack_irq_size) ? bsp_stack_irq_size : 512;
     23bsp_stack_irq_size = DEFINED (bsp_stack_irq_size) ? bsp_stack_irq_size : 1024;
    3024bsp_stack_irq_size = ALIGN (bsp_stack_irq_size, bsp_stack_align);
    3125
    32 bsp_stack_svc_size = DEFINED (bsp_stack_svc_size) ? bsp_stack_svc_size : 512;
    33 bsp_stack_svc_size = ALIGN (bsp_stack_svc_size, bsp_stack_align);
    34 
    35 bsp_stack_und_size = DEFINED (bsp_stack_und_size) ? bsp_stack_und_size : 128;
    36 bsp_stack_und_size = ALIGN (bsp_stack_und_size, bsp_stack_align);
    37 
    3826INCLUDE linkcmds.base
  • c/src/lib/libbsp/arm/shared/startup/linkcmds.base

    r3eade710 rf0c564c  
    88
    99/*
    10  * Copyright (c) 2008-2013 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008-2014 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    297297                . = ALIGN (bsp_stack_align);
    298298
     299                bsp_stack_irq_begin = .;
     300                . = . + bsp_stack_irq_size;
     301                bsp_stack_irq_end = .;
     302
     303                bsp_stack_svc_begin = .;
     304                . = . + bsp_stack_svc_size;
     305                bsp_stack_svc_end = .;
     306
    299307                bsp_stack_fiq_begin = .;
    300308                . = . + bsp_stack_fiq_size;
    301309                bsp_stack_fiq_end = .;
    302 
    303                 bsp_stack_irq_begin = .;
    304                 . = . + bsp_stack_irq_size;
    305                 bsp_stack_irq_end = .;
    306 
    307                 bsp_stack_svc_begin = .;
    308                 . = . + bsp_stack_svc_size;
    309                 bsp_stack_svc_end = .;
    310310
    311311                bsp_stack_und_begin = .;
Note: See TracChangeset for help on using the changeset viewer.