5
Last change
on this file since e0dd8a5a was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.4 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 | /* TODO: This code was initially copied from the gp32 BSP. That BSP has |
---|
20 | * been obsoleted and removed but this code may still benefit from being |
---|
21 | * in a shared place. |
---|
22 | */ |
---|
23 | rtems_interrupt_level level; |
---|
24 | |
---|
25 | (void) level; |
---|
26 | rtems_interrupt_disable(level); |
---|
27 | /* disable mmu, invalide i-cache and call swi #4 */ |
---|
28 | __asm__ volatile("" |
---|
29 | "mrc p15,0,r0,c1,c0,0 \n" |
---|
30 | "bic r0,r0,#1 \n" |
---|
31 | "mcr p15,0,r0,c1,c0,0 \n" |
---|
32 | "nop \n" |
---|
33 | "nop \n" |
---|
34 | "nop \n" |
---|
35 | "nop \n" |
---|
36 | "nop \n" |
---|
37 | "mov r0,#0 \n" |
---|
38 | "MCR p15,0,r0,c7,c5,0 \n" |
---|
39 | "nop \n" |
---|
40 | "nop \n" |
---|
41 | "nop \n" |
---|
42 | "nop \n" |
---|
43 | "nop \n" |
---|
44 | "swi #4 " |
---|
45 | : |
---|
46 | : |
---|
47 | : "r0" |
---|
48 | ); |
---|
49 | /* we should be back in bios now */ |
---|
50 | #endif |
---|
51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.