4.115
Last change
on this file since 991fdb33 was
10eac0e,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/14 at 23:45:47
|
arm/gp32/startup/bspreset.c: Include <bsp/bootcard.h>
|
-
Property mode set to
100644
|
File size:
1002 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 | #include <bsp/bootcard.h> |
---|
9 | |
---|
10 | void bsp_reset(void) |
---|
11 | { |
---|
12 | rtems_interrupt_level level; |
---|
13 | |
---|
14 | (void) level; |
---|
15 | rtems_interrupt_disable(level); |
---|
16 | /* disable mmu, invalide i-cache and call swi #4 */ |
---|
17 | __asm__ volatile("" |
---|
18 | "mrc p15,0,r0,c1,c0,0 \n" |
---|
19 | "bic r0,r0,#1 \n" |
---|
20 | "mcr p15,0,r0,c1,c0,0 \n" |
---|
21 | "nop \n" |
---|
22 | "nop \n" |
---|
23 | "nop \n" |
---|
24 | "nop \n" |
---|
25 | "nop \n" |
---|
26 | "mov r0,#0 \n" |
---|
27 | "MCR p15,0,r0,c7,c5,0 \n" |
---|
28 | "nop \n" |
---|
29 | "nop \n" |
---|
30 | "nop \n" |
---|
31 | "nop \n" |
---|
32 | "nop \n" |
---|
33 | "swi #4 " |
---|
34 | : |
---|
35 | : |
---|
36 | : "r0" |
---|
37 | ); |
---|
38 | /* we should be back in bios now */ |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.