Changeset af2eb77 in rtems


Ignore:
Timestamp:
Sep 19, 2008, 8:40:17 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
7a2125c
Parents:
387a69a
Message:

2008-09-19 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, include/bsp.h, startup/bspstart.c, startup/linkcmds: Use PowerPC level shared bsp_get_work_area() implementation.
  • startup/bspgetworkarea.c: Removed.
Location:
c/src/lib/libbsp/powerpc/psim
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    r387a69a raf2eb77  
     12008-09-19      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, include/bsp.h, startup/bspstart.c, startup/linkcmds: Use
     4        PowerPC level shared bsp_get_work_area() implementation.
     5        * startup/bspgetworkarea.c: Removed.
     6
    172008-09-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • c/src/lib/libbsp/powerpc/psim/Makefile.am

    r387a69a raf2eb77  
    4444    ../../shared/bsppost.c ../../shared/bsppretaskinghook.c \
    4545    ../../shared/bsppredriverhook.c startup/bspstart.c \
    46     startup/bspgetworkarea.c ../../shared/bootcard.c \
    47     ../../shared/sbrk.c ../../shared/gnatinstallhandler.c \
     46    ../../powerpc/shared/startup/bspgetworkarea.c ../../shared/bootcard.c \
     47    ../../powerpc/shared/startup/sbrk.c ../../shared/gnatinstallhandler.c \
    4848    startup/psim_registers.c
    4949
  • c/src/lib/libbsp/powerpc/psim/include/bsp.h

    r387a69a raf2eb77  
    5757 */
    5858
     59extern int   end;        /* last address in the program */
    5960extern int   RAM_END;
    60 extern int   end;        /* last address in the program */
     61
     62extern uint32_t   BSP_mem_size;
     63
     64/*
     65 * system init stack
     66 */
     67#define BSP_INIT_STACK_SIZE 0x1000
    6168
    6269#define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value )
  • c/src/lib/libbsp/powerpc/psim/startup/bspstart.c

    r387a69a raf2eb77  
    4444
    4545/*
     46 * Memory on this board.
     47 */
     48extern char RamSize[];
     49uint32_t BSP_mem_size;
     50
     51/*
    4652 * Time base divisior (how many tick for 1 second).
    4753 */
    4854unsigned int BSP_time_base_divisor;
    49 
    50 /*
    51  * system init stack
    52  */
    53 #define INIT_STACK_SIZE 0x1000
    5455
    5556void BSP_panic(char *s)
     
    9899   * Initialize the interrupt related settings.
    99100   */
    100   intrStackStart = (uint32_t) __rtems_end + INIT_STACK_SIZE;
     101  intrStackStart = (uint32_t) __rtems_end;
    101102  intrStackSize = rtems_configuration_get_interrupt_stack_size();
     103
     104  BSP_mem_size = RamSize;
    102105
    103106  /*
  • c/src/lib/libbsp/powerpc/psim/startup/linkcmds

    r387a69a raf2eb77  
    1616   __DYNAMIC = 0;    */
    1717PROVIDE (PSIM_INSTRUCTIONS_PER_MICROSECOND = 10000);
     18
     19RamBase = DEFINED(RamBase) ? RamBase : 0x0;
     20RamSize = DEFINED(RamSize) ? RamSize : 8M;
     21
    1822MEMORY
    1923  {
     
    201205  PROVIDE (edata = .);
    202206
    203   PROVIDE (RAM_END = 0x7f0000);
     207  PROVIDE (RAM_END = 8M);
    204208  .sbss      :
    205209  {
     
    218222   *(COMMON)
    219223  } >RAM
     224  . = ALIGN(16);
     225  . += 0x1000;
     226  PROVIDE(__stack = .);
    220227  __rtems_end = . ;
    221228  . =  ALIGN(8) + 0x8000;
    222   PROVIDE(__stack = .);
    223229  PROVIDE(_end = .);
    224230  PROVIDE(end = .);
Note: See TracChangeset for help on using the changeset viewer.