Changeset e95cf8c9 in rtems


Ignore:
Timestamp:
Sep 14, 2008, 9:44:01 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
a444be6
Parents:
6a39cd4
Message:

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

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

Legend:

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

    r6a39cd4 re95cf8c9  
     12008-09-14      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, startup/bspstart.c: Create
     4        bsp_get_work_area() into its own file and use 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/rbtx4925/Makefile.am

    r6a39cd4 re95cf8c9  
    2929
    3030startup_SOURCES = ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
     31    ../../shared/bsppretaskinghook.c startup/bspgetworkarea.c \
    3132    ../../shared/bsplibc.c ../../shared/bsppost.c startup/bspstart.c \
    3233    ../../shared/bootcard.c ../../shared/sbrk.c \
  • c/src/lib/libbsp/mips/rbtx4925/configure.ac

    r6a39cd4 re95cf8c9  
    1717RTEMS_PROG_CCAS
    1818
     19RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     20
    1921# Explicitly list all Makefiles here
    2022AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/mips/rbtx4925/startup/bspstart.c

    r6a39cd4 re95cf8c9  
    1919#include <bsp.h>
    2020#include <rtems/libio.h>
    21 #include <rtems/libcsupport.h>
    22 
    23 #define LIBC_HEAP_SIZE (64 * 1024)
    24 
    25 extern int end; /* defined by linker */
    26 
    27 /*
    28  *  Use the shared implementations of the following routines
    29  */
    30  
    31 void bsp_libc_init( void *, uint32_t, int );
    32 
    33 void init_exc_vecs(void);
    34 
    35 /*
    36  *  Function:   bsp_pretasking_hook
    37  *  Created:    95/03/10
    38  *
    39  *  Description:
    40  *      BSP pretasking hook.  Called just before drivers are initialized.
    41  *      Used to setup libc and install any BSP extensions.
    42  *
    43  *  NOTES:
    44  *      Must not use libc (to do io) from here, since drivers are
    45  *      not yet initialized.
    46  *
    47  */
    48  
    49 void bsp_pretasking_hook(void)
    50 {
    51     uint32_t heap_start;
    52 
    53     heap_start = (uint32_t) &end;
    54     if (heap_start & (CPU_ALIGNMENT-1))
    55         heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    56 
    57     bsp_libc_init((void *) heap_start, LIBC_HEAP_SIZE, 0);
    58 }
    5921 
    6022/*
     
    6325 *  This routine does the bulk of the system initialization.
    6426 */
    65 
    6627void bsp_start( void )
    6728{
    68   extern int WorkspaceBase;
    6929  extern void mips_install_isr_entries(void);
    70 
    71   Configuration.work_space_start =
    72        (void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x100) & ~0x7);
    7330
    7431  mips_install_isr_entries();  /* Install generic MIPS exception handler */
Note: See TracChangeset for help on using the changeset viewer.