4.115
Last change
on this file since 4058aa0f was
9f144dda,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/02/14 at 23:04:14
|
rtl22xx/.../bspreset.c: Eliminate warning for set not used variable
|
-
Property mode set to
100644
|
File size:
830 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2007 by Ray Xu <rayx.cn@gmail.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 <lpc22xx.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 | rtems_interrupt_level level; |
---|
20 | |
---|
21 | (void) level; |
---|
22 | rtems_interrupt_disable(level); |
---|
23 | |
---|
24 | #ifdef __thumb__ |
---|
25 | int tmp; |
---|
26 | __asm__ volatile (" .code 16 \n" \ |
---|
27 | "ldr %[tmp], =_start \n" \ |
---|
28 | "bx %[tmp] \n" \ |
---|
29 | "nop \n" \ |
---|
30 | : [tmp]"=&r" (tmp) ); |
---|
31 | #else |
---|
32 | __asm__ volatile ("b _start"); |
---|
33 | #endif |
---|
34 | while(1); |
---|
35 | #endif |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.