source: rtems/c/src/lib/libbsp/arm/gp32/startup/bspreset.c @ 47240f2

4.115
Last change on this file since 47240f2 was 2f8c267, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 2, 2014 at 11:01:37 PM

gp32/.../bspreset.c: Eliminate warning for set not used variable

  • Property mode set to 100644
File size: 976 bytes
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.rtems.org/license/LICENSE.
5 */
6
7#include <bsp.h>
8
9void bsp_reset(void)
10{
11  rtems_interrupt_level level;
12
13  (void) level;
14  rtems_interrupt_disable(level);
15  /* disable mmu, invalide i-cache and call swi #4 */
16  __asm__ volatile(""
17    "mrc    p15,0,r0,c1,c0,0  \n"
18    "bic    r0,r0,#1          \n"
19    "mcr    p15,0,r0,c1,c0,0  \n"
20    "nop                      \n"
21    "nop                      \n"
22    "nop                      \n"
23    "nop                      \n"
24    "nop                      \n"
25    "mov    r0,#0             \n"
26    "MCR    p15,0,r0,c7,c5,0  \n"
27    "nop                      \n"
28    "nop                      \n"
29    "nop                      \n"
30    "nop                      \n"
31    "nop                      \n"
32    "swi    #4                "
33    :
34    :
35    : "r0"
36  );
37  /* we should be back in bios now */
38}
Note: See TracBrowser for help on using the repository browser.