Changeset fe6cce1c in rtems


Ignore:
Timestamp:
Sep 15, 2008, 10:05:03 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
76432f9
Parents:
379a4761
Message:

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

  • startup/bspstart.c, startup/bspstart.c.nocache: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
Location:
c/src/lib/libbsp/powerpc/mbx8xx
Files:
3 edited

Legend:

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

    r379a4761 rfe6cce1c  
     12008-09-15      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * startup/bspstart.c, startup/bspstart.c.nocache: Add use of
     4        bsp_get_work_area() in its own file and rely on BSP Framework to
     5        perform more initialization.
     6
    172008-09-14      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c

    r379a4761 rfe6cce1c  
    2020
    2121#warning The interrupt disable mask is now stored in SPRG0, please verify that this is compatible to this BSP (see also bootcard.c).
    22 
    23 #include <string.h>
    2422
    2523#include <bsp.h>
  • c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache

    r379a4761 rfe6cce1c  
    1919 */
    2020
    21 #include <string.h>
    22 
    2321#include <bsp.h>
    24 #include <rtems/libio.h>
    25 #include <rtems/libcsupport.h>
    2622 
    2723/*
     
    3733uint32_t   bsp_timer_least_valid;      /* Least valid number from timer      */
    3834bool       bsp_timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
    39 
    40 /*
    41  *  Use the shared implementations of the following routines.
    42  *  Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
    43  *  rtems/c/src/lib/libbsp/shared/bsplibc.c.
    44  */
    45 void bsp_libc_init( void *, uint32_t, int );
    46 
    47 /*
    48  *  bsp_pretasking_hook
    49  *
    50  *  Called when RTEMS initialization is complete but before interrupts and
    51  *  tasking are enabled. Used to setup libc and install any BSP extensions.
    52  *
    53  *  Must not use libc (to do io) from here, since drivers are not yet
    54  *  initialized.
    55  *
    56  *  Input parameters: NONE
    57  *
    58  *  Output parameters: NONE
    59  *
    60  *  Return values: NONE
    61  */
    62 void bsp_pretasking_hook(void)
    63 {
    64   /*
    65    *  These are assigned addresses in the linkcmds file for the BSP. This
    66    *  approach is better than having these defined as manifest constants and
    67    *  compiled into the kernel, but it is still not ideal when dealing with
    68    *  multiprocessor configuration in which each board as a different memory
    69    *  map. A better place for defining these symbols might be the makefiles.
    70    *  Consideration should also be given to developing an approach in which
    71    *  the kernel and the application can be linked and burned into ROM
    72    *  independently of each other.
    73    */
    74   extern unsigned char _HeapStart;
    75   extern unsigned char _HeapEnd;
    76 
    77   bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
    78 }
    79 
    8035
    8136/*
     
    10560void bsp_start(void)
    10661{
    107   extern void *_WorkspaceBase;
    10862  uint32_t   r1;
    10963
     
    12983  #endif
    13084   
    131   /*
    132    *  Allocate the memory for the RTEMS Work Space.  This can come from
    133    *  a variety of places: hard coded address, malloc'ed from outside
    134    *  RTEMS world (e.g. simulator or primitive memory manager), or (as
    135    *  typically done by stock BSPs) by subtracting the required amount
    136    *  of work space from the last physical address on the CPU board.
    137    *
    138    *  In this case, the memory is not malloc'ed.  It is just
    139    *  "pulled from the air".
    140    */
    141   Configuration.work_space_start = (void *)&_WorkspaceBase;
    142 
    14385  /*
    14486   *  initialize the device driver parameters
Note: See TracChangeset for help on using the changeset viewer.