4.104.115
Last change
on this file since e7aacd3 was
e7aacd3,
checked in by Joel Sherrill <joel.sherrill@…>, on 04/28/10 at 19:33:25
|
2010-04-28 Joel Sherrill <joel.sherrilL@…>
- console/m340uart.c, startup/init68340.c: Remove warnings.
|
-
Property mode set to
100644
|
File size:
628 bytes
|
Line | |
---|
1 | /* |
---|
2 | * MC68340/349 support routines |
---|
3 | * |
---|
4 | * Geoffroy Montel |
---|
5 | * France Telecom - CNET/DSM/TAM/CAT |
---|
6 | * 4, rue du Clos Courtel |
---|
7 | * 35512 CESSON-SEVIGNE |
---|
8 | * FRANCE |
---|
9 | * |
---|
10 | * e-mail: g_montel@yahoo.com |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #include <rtems.h> |
---|
16 | #include <bsp.h> |
---|
17 | |
---|
18 | extern void _CopyDataClearBSSAndStart (void); |
---|
19 | |
---|
20 | /* |
---|
21 | * Initialize MC68340 |
---|
22 | */ |
---|
23 | void _Init68340 (void) |
---|
24 | { |
---|
25 | m68k_isr_entry *vbr; |
---|
26 | int i; |
---|
27 | |
---|
28 | /* |
---|
29 | * Copy the exception vector table to system RAM |
---|
30 | */ |
---|
31 | m68k_get_vbr (vbr); |
---|
32 | for (i = 0; i < 256; ++i) |
---|
33 | M68Kvec[i] = vbr[i]; |
---|
34 | m68k_set_vbr (M68Kvec); |
---|
35 | |
---|
36 | /* |
---|
37 | * Copy data, clear BSS, switch stacks and call main() |
---|
38 | */ |
---|
39 | _CopyDataClearBSSAndStart (); |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.