Changeset 76ba5f2 in rtems


Ignore:
Timestamp:
Sep 18, 2008, 6:01:48 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
7f09abec
Parents:
bcb9f8c3
Message:

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

  • Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds: Use top level shared bsp_get_work_area() implementation.
Location:
c/src/lib/libbsp/i386/i386ex
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/i386ex/ChangeLog

    rbcb9f8c3 r76ba5f2  
     12008-09-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds: Use
     4        top level shared bsp_get_work_area() implementation.
     5
    162008-09-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/i386/i386ex/Makefile.am

    rbcb9f8c3 r76ba5f2  
    3434include_HEADERS += ../../i386/shared/comm/uart.h
    3535startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
    36     ../../shared/bsppredriverhook.c \
     36    ../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \
     37    ../../shared/bspgetworkarea.c ../../shared/bspclean.c \
    3738    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
    3839    ../../shared/sbrk.c ../../i386/shared/irq/idt.c \
  • c/src/lib/libbsp/i386/i386ex/configure.ac

    rbcb9f8c3 r76ba5f2  
    2525AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2626
     27RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     28
    2729# Explicitly list all Makefiles here
    2830AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/i386/i386ex/startup/bspstart.c

    rbcb9f8c3 r76ba5f2  
    2121 */
    2222
    23 void bsp_clean_up(void);
    24 
    2523#include <bsp.h>
    2624#include <bsp/irq.h>
    2725
    28 /*
    29  *  Tells us where to put the workspace in case remote debugger is present.
    30  */
    31 
    32 extern uint32_t          rdb_start;
    33 
    34 /*
    35  *  Use the shared implementations of the following routines
    36  */
    37 
    38 void bsp_libc_init( void *, uint32_t, int );
    39 
    40 /*
    41  *  Function:   bsp_pretasking_hook
    42  *  Created:    95/03/10
    43  *
    44  *  Description:
    45  *      BSP pretasking hook.  Called just before drivers are initialized.
    46  *      Used to setup libc and install any BSP extensions.
    47  *
    48  *  NOTES:
    49  *      Must not use libc (to do io) from here, since drivers are
    50  *      not yet initialized.
    51  *
    52  */
    53 
    54 void bsp_pretasking_hook(void)
    55 {
    56     extern int heap_bottom;
    57     uint32_t         heap_start;
    58     uint32_t         heap_size;
    59 
    60     heap_start = (uint32_t) &heap_bottom;
    61     if (heap_start & (CPU_ALIGNMENT-1))
    62       heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    63 
    64     heap_size = Configuration.work_space_start -(void *) heap_start ;
    65     heap_size &= 0xfffffff0;  /* keep it as a multiple of 16 bytes */
    66 
    67     bsp_libc_init((void *) heap_start, heap_size, 0);
    68 }
     26extern void rtems_irq_mngt_init();
    6927
    7028/*
     
    7331 *  This routine does the bulk of the system initialization.
    7432 */
    75 
    7633void bsp_start( void )
    7734{
    78   void rtems_irq_mngt_init();
    79 
    80   Configuration.work_space_start = (void *)
    81      RAM_END - rtems_configuration_get_work_space_size();
    82 #ifdef DEBUG
    83   printk("workspace size = 0x%x\nstart = 0x%x, RAM_END = 0x%x\n",rtems_configuration_get_work_space_size(),  Configuration.work_space_start, RAM_END );
    84 #endif
    85 
    86   /*
    87    *  Account for the console's resources
    88    */
    89 
    9035  /*
    9136   * Init rtems_interrupt_management
     
    9338  rtems_irq_mngt_init();
    9439}
    95 void bsp_clean_up(void) {
    96   printk("bsp_cleanup called\n");
    97 }
  • c/src/lib/libbsp/i386/i386ex/startup/linkcmds

    rbcb9f8c3 r76ba5f2  
    4141        _ram_data_offset    = 0x0;
    4242        _ram_data_location  = _ram_data_segment * 16 + _ram_data_offset;
     43
     44RamBase = DEFINED(RamBase) ? RamBase : _ram_data_location;
     45RamSize = DEFINED(RamSize) ? RamSize : 1M;
     46HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
    4347
    4448        .init : { _init = .; *(.init) } = 0x9090
     
    7478        }
    7579        _bss_size   = _ebss - _bss_start ;
     80
     81        . = ALIGN(0x10);
     82        WorkAreaBase = .;
    7683
    7784/**************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.