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

4.104.114.84.95
Last change on this file since 12b36efe was 12b36efe, checked in by Eric Norum <WENorum@…>, on 11/07/05 at 17:22:23

Assign copyright to OAR since all files descend from OAR's source.

  • Property mode set to 100644
File size: 1.0 KB
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 *  Author: W. Eric Norum <norume@aps.anl.gov>
10 *
11 *  COPYRIGHT (c) 2005.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.OARcorp.com/rtems/license.html.
17 */
18
19#include <rtems.h>
20#include <bsp.h>
21
22#define m68k_set_cacr(_cacr) asm volatile ("movec %0,%%cacr" : : "d" (_cacr))
23#define m68k_set_acr0(_acr0) asm volatile ("movec %0,%%acr0" : : "d" (_acr0))
24#define m68k_set_acr1(_acr1) asm volatile ("movec %0,%%acr1" : : "d" (_acr1))
25
26void Init5282 (void)
27{
28    extern void CopyDataClearBSSAndStart (void);
29   
30    /*
31     * Copy data, clear BSS and call boot_card()
32     */
33    CopyDataClearBSSAndStart ();
34}
Note: See TracBrowser for help on using the repository browser.