4.115
Last change
on this file since d3c8245f was
d3c8245f,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/14 at 23:46:13
|
arm/smdk2410/startup/bspreset.c: Include <bsp/bootcard.h>
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com> |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #include <bsp.h> |
---|
10 | #include <bsp/bootcard.h> |
---|
11 | |
---|
12 | void bsp_reset(void) |
---|
13 | { |
---|
14 | #if ON_SKYEYE == 1 |
---|
15 | #define SKYEYE_MAGIC_ADDRESS (*(volatile unsigned int *)(0xb0000000)) |
---|
16 | |
---|
17 | SKYEYE_MAGIC_ADDRESS = 0xff; |
---|
18 | #else |
---|
19 | /* XXX TODO this code is copied from gp32.. move it to a shared place */ |
---|
20 | rtems_interrupt_level level; |
---|
21 | |
---|
22 | (void) level; |
---|
23 | rtems_interrupt_disable(level); |
---|
24 | /* disable mmu, invalide i-cache and call swi #4 */ |
---|
25 | __asm__ volatile("" |
---|
26 | "mrc p15,0,r0,c1,c0,0 \n" |
---|
27 | "bic r0,r0,#1 \n" |
---|
28 | "mcr p15,0,r0,c1,c0,0 \n" |
---|
29 | "nop \n" |
---|
30 | "nop \n" |
---|
31 | "nop \n" |
---|
32 | "nop \n" |
---|
33 | "nop \n" |
---|
34 | "mov r0,#0 \n" |
---|
35 | "MCR p15,0,r0,c7,c5,0 \n" |
---|
36 | "nop \n" |
---|
37 | "nop \n" |
---|
38 | "nop \n" |
---|
39 | "nop \n" |
---|
40 | "nop \n" |
---|
41 | "swi #4 " |
---|
42 | : |
---|
43 | : |
---|
44 | : "r0" |
---|
45 | ); |
---|
46 | /* we should be back in bios now */ |
---|
47 | #endif |
---|
48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.