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 09/02/14 at 23:01:37

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

  • Property mode set to 100644
File size: 976 bytes
RevLine 
[bf7e13f]1/*
2 *  The license and distribution terms for this file may be
[15ca4e7]3 *  found in the file LICENSE in this distribution or at
[c499856]4 *  http://www.rtems.org/license/LICENSE.
[32b8506]5 */
[bf7e13f]6
7#include <bsp.h>
8
9void bsp_reset(void)
10{
11  rtems_interrupt_level level;
[2f8c267]12
13  (void) level;
[bf7e13f]14  rtems_interrupt_disable(level);
15  /* disable mmu, invalide i-cache and call swi #4 */
[aaa026c]16  __asm__ volatile(""
[bf7e13f]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.