4.115
Last change
on this file since fd57015 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
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 | |
---|
11 | void bsp_reset(void) |
---|
12 | { |
---|
13 | #if ON_SKYEYE == 1 |
---|
14 | #define SKYEYE_MAGIC_ADDRESS (*(volatile unsigned int *)(0xb0000000)) |
---|
15 | |
---|
16 | SKYEYE_MAGIC_ADDRESS = 0xff; |
---|
17 | #else |
---|
18 | /* XXX TODO this code is copied from gp32.. move it to a shared place */ |
---|
19 | rtems_interrupt_level level; |
---|
20 | rtems_interrupt_disable(level); |
---|
21 | /* disable mmu, invalide i-cache and call swi #4 */ |
---|
22 | __asm__ volatile("" |
---|
23 | "mrc p15,0,r0,c1,c0,0 \n" |
---|
24 | "bic r0,r0,#1 \n" |
---|
25 | "mcr p15,0,r0,c1,c0,0 \n" |
---|
26 | "nop \n" |
---|
27 | "nop \n" |
---|
28 | "nop \n" |
---|
29 | "nop \n" |
---|
30 | "nop \n" |
---|
31 | "mov r0,#0 \n" |
---|
32 | "MCR p15,0,r0,c7,c5,0 \n" |
---|
33 | "nop \n" |
---|
34 | "nop \n" |
---|
35 | "nop \n" |
---|
36 | "nop \n" |
---|
37 | "nop \n" |
---|
38 | "swi #4 " |
---|
39 | : |
---|
40 | : |
---|
41 | : "r0" |
---|
42 | ); |
---|
43 | /* we should be back in bios now */ |
---|
44 | #endif |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.