Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:49

0001 /*
0002  * This is where the real hardware setup is done. A minimal stack
0003  * has been provided by the start.S code. No normal C or RTEMS
0004  * functions can be called from here.
0005  *
0006  * This routine is pretty simple for the uC5282 because all the hard
0007  * work has been done by the bootstrap dBUG code.
0008  */
0009 
0010 /*
0011  * Copyright (c) 2005 Eric Norum <eric@norum.ca>
0012  *
0013  * COPYRIGHT (c) 2005.
0014  * On-Line Applications Research Corporation (OAR).
0015  *
0016  * The license and distribution terms for this file may be
0017  * found in the file LICENSE in this distribution or at
0018  * http://www.rtems.org/license/LICENSE.
0019  */
0020 
0021 #include <rtems.h>
0022 #include <bsp.h>
0023 
0024 #define m68k_set_cacr(_cacr) __asm__ volatile ("movec %0,%%cacr" : : "d" (_cacr))
0025 #define m68k_set_acr0(_acr0) __asm__ volatile ("movec %0,%%acr0" : : "d" (_acr0))
0026 #define m68k_set_acr1(_acr1) __asm__ volatile ("movec %0,%%acr1" : : "d" (_acr1))
0027 
0028 /*
0029  * This method is implemented in start.S.
0030  */
0031 extern void CopyDataClearBSSAndStart (void);
0032 
0033 /*
0034  * This method cannot be static because it is called from start.S.
0035  */
0036 void Init5282 (void);
0037 
0038 void Init5282 (void)
0039 {
0040     /*
0041      * Copy data, clear BSS and call boot_card()
0042      */
0043     CopyDataClearBSSAndStart ();
0044 }