Changeset 25e4d24 in rtems


Ignore:
Timestamp:
Sep 14, 2008, 9:16:26 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
58eee41
Parents:
ff32644e
Message:

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

  • Makefile.am, configure.ac, startup/bspstart.c: Split out bsp_get_work_area() into its own file and user BSP Framework to perform more initialization.
  • startup/bspgetworkarea.c: New file.
Location:
c/src/lib/libbsp/mips/csb350
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/csb350/ChangeLog

    rff32644e r25e4d24  
     12008-09-14      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, startup/bspstart.c: Split out
     4        bsp_get_work_area() into its own file and user BSP Framework to
     5        perform more initialization.
     6        * startup/bspgetworkarea.c: New file.
     7
    182008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • c/src/lib/libbsp/mips/csb350/Makefile.am

    rff32644e r25e4d24  
    2828startup_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
    2929    ../../shared/bsppredriverhook.c ../../shared/bsppost.c \
     30    ../../shared/bsppretaskinghook.c startup/bspgetworkarea.c \
    3031    startup/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \
    3132    ../../shared/gnatinstallhandler.c ../../shared/setvec.c
  • c/src/lib/libbsp/mips/csb350/configure.ac

    rff32644e r25e4d24  
    1919AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2020
     21RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     22
    2123# Explicitly list all Makefiles here
    2224AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/mips/csb350/startup/bspstart.c

    rff32644e r25e4d24  
    2222#include <rtems/libcsupport.h>
    2323
    24 /*
    25  *  The original table from the application and our copy of it with
    26  *  some changes.
    27  */
    28 
    29 extern void            *_sdram_size;
    30 extern void            *_sdram_base;
    31 extern void            *_bss_free_start;
    32 
    33 unsigned long           free_mem_start;
    34 unsigned long           free_mem_end;
    35 
    3624au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR;
    3725au1x00_uart_t *uart3 = (au1x00_uart_t *)AU1X00_UART3_ADDR;
    3826
    39 /*
    40  *  Use the shared implementations of the following routines
    41  */
    42  
    43 void bsp_libc_init( void *, uint32_t, int );
    44 
    45 /*
    46  *  Function:   bsp_pretasking_hook
    47  *  Created:    95/03/10
    48  *
    49  *  Description:
    50  *      BSP pretasking hook.  Called just before drivers are initialized.
    51  *      Used to setup libc and install any BSP extensions.
    52  *
    53  *  NOTES:
    54  *      Must not use libc (to do io) from here, since drivers are
    55  *      not yet initialized.
    56  *
    57  */
    58  
    59 void bsp_pretasking_hook(void)
    60 {
    61     uint32_t heap_start;
    62     uint32_t heap_size;
    63 
    64     /*
    65      * Set up the heap.
    66      */
    67     heap_start =  free_mem_start;
    68     heap_size = free_mem_end - free_mem_start;
    69 
    70         /* call rtems lib init - malloc stuff */
    71     bsp_libc_init((void *)heap_start, heap_size, 0);
    72 }
    73  
    7427/*
    7528 *  bsp_start
     
    7730 *  This routine does the bulk of the system initialization.
    7831 */
    79 
    8032void bsp_start( void )
    8133{
     
    8335  unsigned int compare = 0;
    8436
    85   /* Place RTEMS workspace at beginning of free memory. */
    86   Configuration.work_space_start = (void *)&_bss_free_start;
    87  
    88   free_mem_start = ((uint32_t)&_bss_free_start +
    89                     rtems_configuration_get_work_space_size());
    90  
    91   free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
    92  
    9337  mips_set_sr( 0x7f00 );  /* all interrupts unmasked but globally off */
    9438                          /* depend on the IRC to take care of things */
Note: See TracChangeset for help on using the changeset viewer.