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

4.104.114.84.95
Last change on this file since e2f88ab9 was e2f88ab9, checked in by Eric Norum <WENorum@…>, on 05/24/05 at 01:07:45

Try to maintain compatability with everyone else's VBR changes.

  • Property mode set to 100644
File size: 749 bytes
Line 
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))
16
17void Init5282 (void)
18{
19    extern void CopyDataClearBSSAndStart (void);
20   
21    /*
22     * Copy data, clear BSS and call boot_card()
23     */
24    CopyDataClearBSSAndStart ();
25}
Note: See TracBrowser for help on using the repository browser.