4.104.114.84.95
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 | void *_ColdFire_VBR; |
---|
17 | |
---|
18 | void 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.