OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [m68k/] [gen68340/] [startup/] [init68340.c] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: init68340.c,v 1.2 2001-09-27 12:00:07 chris Exp $
13
 */
14
 
15
#include <rtems.h>
16
#include <bsp.h>
17
 
18
/*
19
 * Initialize MC68340
20
 */
21
void _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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.