source: rtems/c/src/lib/libbsp/m68k/uC5282/startup/init5282.c @ 518edef

4.104.114.84.95
Last change on this file since 518edef was 572484f, checked in by Eric Norum <WENorum@…>, on Jan 28, 2005 at 7:35:23 PM

New BSP for Arcturus uCDIMM ColdFire? 5282.

  • Property mode set to 100644
File size: 872 bytes
RevLine 
[572484f]1/*
2 *  This is where the real hardware setup is done. A minimal stack
3 *  has been provided by the start.S code. No normal C or RTEMS
4 *  functions can be called from here.
5 *
6 * This routine is pretty simple for the uC5282 because all the hard
7 * work has been done by the bootstrap dBUG code.
8 */
9
10#include <rtems.h>
11#include <bsp.h>
12
13#define m68k_set_cacr(_cacr) asm volatile ("movec %0,%%cacr" : : "d" (_cacr))
14#define m68k_set_acr0(_acr0) asm volatile ("movec %0,%%acr0" : : "d" (_acr0))
15#define m68k_set_acr1(_acr1) asm volatile ("movec %0,%%acr1" : : "d" (_acr1))
16void *_ColdFire_VBR;
17
18void Init5282 (void)
19{
20    extern void CopyDataClearBSSAndStart (void);
21   
22    /*
23     * Set the VBR to point to where the assembly code copied it
24     */
25    m68k_set_vbr(0);
26
27    /*
28     * Copy data, clear BSS and call boot_card()
29     */
30    CopyDataClearBSSAndStart ();
31}
Note: See TracBrowser for help on using the repository browser.