Changeset b7ad0ed in rtems for c/src/lib/libbsp/m68k/mcf5235


Ignore:
Timestamp:
Jun 11, 2008, 8:03:50 AM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
56e8ee4e
Parents:
3aac2db
Message:

2008-06-10 Matthew Riek <matthew.riek@…>

  • Makefile.am: Add shared/m68kbspgetworkarea.c to sources.
  • configure.ac: Add RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION.
  • include/bsp.h: Add include bspopts.h.
  • start/start.S: Formatting changes.
  • startup/bspstart.c: Updated to use the shared BSP support.
Location:
c/src/lib/libbsp/m68k/mcf5235
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mcf5235/ChangeLog

    r3aac2db rb7ad0ed  
     12008-06-10      Matthew Riek <matthew.riek@ibiscomputer.com.au>
     2
     3        * Makefile.am: Add shared/m68kbspgetworkarea.c to sources.
     4        * configure.ac: Add RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION.
     5        * include/bsp.h: Add include bspopts.h.
     6        * start/start.S: Formatting changes.
     7        * startup/bspstart.c: Updated to use the shared BSP support.
     8
    192008-05-29      Chris Johns <chrisj@rtems.org>
    210
  • c/src/lib/libbsp/m68k/mcf5235/Makefile.am

    r3aac2db rb7ad0ed  
    3030    ../../shared/bsplibc.c ../../shared/bsppost.c \
    3131    ../../m68k/shared/m68kpretaskinghook.c \
     32    ../../m68k/shared/m68kbspgetworkarea.c \
    3233    startup/init5235.c startup/bspstart.c \
    3334    ../../shared/bootcard.c \
  • c/src/lib/libbsp/m68k/mcf5235/configure.ac

    r3aac2db rb7ad0ed  
    1616RTEMS_PROG_CCAS
    1717
     18RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     19
    1820RTEMS_CHECK_NETWORKING
    1921
  • c/src/lib/libbsp/m68k/mcf5235/include/bsp.h

    r3aac2db rb7ad0ed  
    1010#endif
    1111
     12#include <bspopts.h>
    1213#include <rtems.h>
    1314#include <rtems/iosupp.h>
  • c/src/lib/libbsp/m68k/mcf5235/start/start.S

    r3aac2db rb7ad0ed  
    310310    PUBLIC (start)
    311311SYM(start):
    312     move.w  #0x0000,d0                  | Turn off watchdog timer
     312    move.w  #0x0000,d0              | Turn off watchdog timer
    313313    move.w  d0, (0x40140000)
    314     move.l  #0x01000000,d0              | Set system frequency to 150 MHz
     314    move.l  #0x01000000,d0          | Set system frequency to 150 MHz
    315315    move.l  d0, (0x40120000)
    316     move.w  #0x2700,sr                  | Disable interrupts
    317 
    318     move.l  #__SRAMBASE+1,d0            | Enable the MCF5235 internal SRAM
    319     movec   d0,%rambar                  | ...so we have a stack
    320     move.l  #__IPSBAR+1,d0              | Enable the MCF5235 internal peripherals
     316    move.w  #0x2700,sr              | Disable interrupts
     317
     318    move.l  #__SRAMBASE+1,d0        | Enable the MCF5235 internal SRAM
     319    movec   d0,%rambar              | ...so we have a stack
     320
     321    move.l  #0x20000201, d0
     322    move.l   d0,(0x40000008)        | set up 2nd RAMBAR to make 2nd port avail to FEC
     323
     324    move.l  #__IPSBAR+1,d0          | Enable the MCF5235 internal peripherals
    321325    move.l  d0,DEFAULT_IPSBAR
    322326       
  • c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c

    r3aac2db rb7ad0ed  
    135135
    136136/*
    137  *  Use the shared implementations of the following routines
    138  */
    139 void bsp_libc_init( void *, uint32_t, int );
    140 void bsp_pretasking_hook(void);                 /* m68k version */
    141 
    142 /*
    143137 *  bsp_start
    144138 *
     
    147141void bsp_start( void )
    148142{
    149   extern char _WorkspaceBase[];
    150   extern char _RamSize[];
    151   extern unsigned long  _M68k_Ramsize;
    152 
    153   _M68k_Ramsize = (unsigned long)_RamSize;              /* RAM size set in linker script */
    154 
    155   /*
    156    *  Allocate the memory for the RTEMS Work Space.  This can come from
    157    *  a variety of places: hard coded address, malloc'ed from outside
    158    *  RTEMS world (e.g. simulator or primitive memory manager), or (as
    159    *  typically done by stock BSPs) by subtracting the required amount
    160    *  of work space from the last physical address on the CPU board.
    161    */
    162 
    163   /*
    164    *  Need to "allocate" the memory for the RTEMS Workspace and
    165    *  tell the RTEMS configuration where it is.  This memory is
    166    *  not malloc'ed.  It is just "pulled from the air".
    167    */
    168 
    169   Configuration.work_space_start = (void *)_WorkspaceBase;
    170 
    171143  /*
    172144   * Invalidate the cache and disable it
Note: See TracChangeset for help on using the changeset viewer.