source: rtems/c/src/lib/libbsp/m68k/uC5282/startup/init5282.c @ 688696e4

4.104.114.84.95
Last change on this file since 688696e4 was 688696e4, checked in by Joel Sherrill <joel.sherrill@…>, on 03/12/07 at 11:18:23

2007-03-12 Joel Sherrill <joel@…>

  • clock/clock.c, console/console.c, include/bsp.h, include/coverhd.h, include/tm27.h, network/network.c, start/start.S, startup/bspclean.c, startup/bspstart.c, startup/init5282.c, startup/linkcmds, timer/timer.c: Correct license URL and/or fix mistake in copyright notice. Both of these mistakes appear to be from code submitted after these changes were made previously.
  • 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.rtems.com/license/LICENSE.
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.