source: rtems/c/src/lib/libbsp/m68k/gen68340/startup/init68340.c @ d7aecdc

4.104.114.84.95
Last change on this file since d7aecdc was 132f194, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 1, 1998 at 10:03:20 PM

Initial submission of gen68340 BSP (should run on a 68349) from
Geoffroy Montel <g_montel@…>.

  • Property mode set to 100644
File size: 630 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/*
19 * Initialize MC68340
20 */
21void _Init68340 (void)
22{
23        extern void _CopyDataClearBSSAndStart (void);
24        m68k_isr_entry *vbr;
25        int i;
26
27        /*
28         * Copy  the exception vector table to system RAM
29         */
30        m68k_get_vbr (vbr);
31        for (i = 0; i < 256; ++i)
32                M68Kvec[i] = vbr[i];
33        m68k_set_vbr (M68Kvec);
34
35        /*
36         * Copy data, clear BSS, switch stacks and call main()
37         */
38        _CopyDataClearBSSAndStart ();
39}
Note: See TracBrowser for help on using the repository browser.