Changeset a13b89b in rtems


Ignore:
Timestamp:
Nov 14, 2018, 7:42:22 AM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
aefd4a2
Parents:
5f32da0
git-author:
Sebastian Huber <sebastian.huber@…> (11/14/18 07:42:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/14/18 07:43:07)
Message:

bsp/i386: Use interrupt stack for init stack

Update #3459.

Location:
bsps/i386/pc386/start
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/i386/pc386/start/bspgetworkarea.c

    r5f32da0 ra13b89b  
    5050uint32_t bsp_mem_size = 0;
    5151
    52 /* Size of stack used during initialization. Defined in 'start.s'.  */
    53 extern uint32_t _stack_size;
    54 
    5552static void bsp_size_memory(void)
    5653{
     
    5855
    5956  /* Set the value of start of free memory. */
    60   rtemsWorkAreaStart = (uint32_t)WorkAreaBase + _stack_size;
     57  rtemsWorkAreaStart = (uint32_t)WorkAreaBase;
    6158
    6259  /* Align the RTEMS Work Area at beginning of free memory. */
  • bsps/i386/pc386/start/start.S

    r5f32da0 ra13b89b  
    5151#error  "Missing header ? CPU_STACK_ALIGNMENT NOT DEFINED"
    5252#endif
    53 
    54 .set STACK_SIZE, 0x1000
    5553
    5654/*----------------------------------------------------------------------------+
     
    177175SYM (_establish_stack):
    178176
    179         movl    $_end, eax              # eax = end of bss/start of heap
    180         addl    $STACK_SIZE, eax        # make room for stack
    181         subl    $4,          eax    # reserve room for arg to 'boot_card'
     177        movl    $_ISR_Stack_area_begin, eax # eax = end of bss/start of heap
     178        addl    $_ISR_Stack_size, eax   # make room for stack
     179        subl    $4, eax                 # reserve room for arg to 'boot_card'
    182180        andl    $ - CPU_STACK_ALIGNMENT, eax    # align SP on CPU_STACK_ALIGNMENT boundary
    183181        movl    eax, esp                # set stack pointer
     
    306304        .endr
    307305
    308         PUBLIC(_stack_size)
    309 SYM(_stack_size):
    310         .long STACK_SIZE
    311 
    312306#ifdef DEBUG_EARLY_START
    313307
Note: See TracChangeset for help on using the changeset viewer.