Changeset eb3923b in rtems


Ignore:
Timestamp:
Sep 14, 2008, 10:03:54 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
3ddb428
Parents:
6f4aa47
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.
  • startup/main.c: Removed.
Location:
c/src/lib/libbsp/no_cpu/no_bsp
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog

    r6f4aa47 reb3923b  
     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        * startup/main.c: Removed.
     8
    192008-09-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • c/src/lib/libbsp/no_cpu/no_bsp/Makefile.am

    r6f4aa47 reb3923b  
    2222
    2323startup_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
    24     ../../shared/bsppost.c startup/bspstart.c startup/main.c \
     24    ../../shared/bsppretaskinghook.c ../../shared/bsppredriverhook.c \
     25    startup/bspgetworkarea.c ../../shared/bsppost.c startup/bspstart.c \
    2526    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
    2627    ../../shared/gnatinstallhandler.c
  • c/src/lib/libbsp/no_cpu/no_bsp/configure.ac

    r6f4aa47 reb3923b  
    1616RTEMS_PROG_CCAS
    1717
     18RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     19
    1820# Explicitly list all Makefiles here
    1921AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c

    r6f4aa47 reb3923b  
    1818
    1919#include <bsp.h>
    20 #include <rtems/libio.h>
    21 #include <rtems/libcsupport.h>
    22 
    23 /*
    24  *  Use the shared implementations of the following routines
    25  */
    26 
    27 void bsp_libc_init( void *, uint32_t, int );
    28 
    29 /*
    30  *  Function:   bsp_pretasking_hook
    31  *  Created:    95/03/10
    32  *
    33  *  Description:
    34  *      BSP pretasking hook.  Called just before drivers are initialized.
    35  *      Used to setup libc and install any BSP extensions.
    36  *
    37  *  NOTES:
    38  *      Must not use libc (to do io) from here, since drivers are
    39  *      not yet initialized.
    40  *
    41  */
    42 
    43 void bsp_pretasking_hook(void)
    44 {
    45     extern int end;
    46     uint32_t                heap_start;
    47 
    48     heap_start = (uint32_t) &end;
    49     if (heap_start & (CPU_ALIGNMENT-1))
    50         heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    51 
    52     bsp_libc_init((void *) heap_start, 64 * 1024, 0);
    53 }
    5420
    5521/*
     
    6127void bsp_start( void )
    6228{
    63   /*
    64    *  Allocate the memory for the RTEMS Work Space.  This can come from
    65    *  a variety of places: hard coded address, malloc'ed from outside
    66    *  RTEMS world (e.g. simulator or primitive memory manager), or (as
    67    *  typically done by stock BSPs) by subtracting the required amount
    68    *  of work space from the last physical address on the CPU board.
    69    */
    70 
    71   /*
    72    *  Need to "allocate" the memory for the RTEMS Workspace and
    73    *  tell the RTEMS configuration where it is.  This memory is
    74    *  not malloc'ed.  It is just "pulled from the air".
    75    */
    76 
    77   Configuration.work_space_start = (void *) 0;
    7829}
Note: See TracChangeset for help on using the changeset viewer.