Changeset b7ad0ed in rtems
- Timestamp:
- Jun 11, 2008, 8:03:50 AM (13 years ago)
- Branches:
- 4.10, 4.11, 4.9, 5, master
- Children:
- 56e8ee4e
- Parents:
- 3aac2db
- Location:
- c/src/lib/libbsp/m68k/mcf5235
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mcf5235/ChangeLog
r3aac2db rb7ad0ed 1 2008-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 1 9 2008-05-29 Chris Johns <chrisj@rtems.org> 2 10 -
c/src/lib/libbsp/m68k/mcf5235/Makefile.am
r3aac2db rb7ad0ed 30 30 ../../shared/bsplibc.c ../../shared/bsppost.c \ 31 31 ../../m68k/shared/m68kpretaskinghook.c \ 32 ../../m68k/shared/m68kbspgetworkarea.c \ 32 33 startup/init5235.c startup/bspstart.c \ 33 34 ../../shared/bootcard.c \ -
c/src/lib/libbsp/m68k/mcf5235/configure.ac
r3aac2db rb7ad0ed 16 16 RTEMS_PROG_CCAS 17 17 18 RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION 19 18 20 RTEMS_CHECK_NETWORKING 19 21 -
c/src/lib/libbsp/m68k/mcf5235/include/bsp.h
r3aac2db rb7ad0ed 10 10 #endif 11 11 12 #include <bspopts.h> 12 13 #include <rtems.h> 13 14 #include <rtems/iosupp.h> -
c/src/lib/libbsp/m68k/mcf5235/start/start.S
r3aac2db rb7ad0ed 310 310 PUBLIC (start) 311 311 SYM(start): 312 move.w #0x0000,d0 312 move.w #0x0000,d0 | Turn off watchdog timer 313 313 move.w d0, (0x40140000) 314 move.l #0x01000000,d0 314 move.l #0x01000000,d0 | Set system frequency to 150 MHz 315 315 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 321 325 move.l d0,DEFAULT_IPSBAR 322 326 -
c/src/lib/libbsp/m68k/mcf5235/startup/bspstart.c
r3aac2db rb7ad0ed 135 135 136 136 /* 137 * Use the shared implementations of the following routines138 */139 void bsp_libc_init( void *, uint32_t, int );140 void bsp_pretasking_hook(void); /* m68k version */141 142 /*143 137 * bsp_start 144 138 * … … 147 141 void bsp_start( void ) 148 142 { 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 from157 * a variety of places: hard coded address, malloc'ed from outside158 * RTEMS world (e.g. simulator or primitive memory manager), or (as159 * typically done by stock BSPs) by subtracting the required amount160 * 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 and165 * tell the RTEMS configuration where it is. This memory is166 * not malloc'ed. It is just "pulled from the air".167 */168 169 Configuration.work_space_start = (void *)_WorkspaceBase;170 171 143 /* 172 144 * Invalidate the cache and disable it
Note: See TracChangeset
for help on using the changeset viewer.