4.104.115
Last change
on this file since 0d833168 was
0d833168,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/30/10 at 14:27:24
|
2010-04-30 Sebastian Huber <sebastian.huber@…>
- Makefile.am, preinstall.am: Added generic interrupt support modules.
- include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION.
- startup/bspstart.c, rtl8019/rtl8019.c: Interrupt support changes.
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * By Yang Xi <hiyangxi@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.com/license/LICENSE. |
---|
7 | * |
---|
8 | * $Id$ |
---|
9 | */ |
---|
10 | |
---|
11 | #include <bsp.h> |
---|
12 | #include <bsp/irq-generic.h> |
---|
13 | #include <rtems/libcsupport.h> |
---|
14 | #include <rtems/libio.h> |
---|
15 | #include <pxa255.h> |
---|
16 | |
---|
17 | /* Function prototypes */ |
---|
18 | void rtems_exception_init_mngt(void); |
---|
19 | |
---|
20 | /* |
---|
21 | * |
---|
22 | * NAME: bsp_start_default - BSP initialization function |
---|
23 | * |
---|
24 | * DESCRIPTION: |
---|
25 | * This function is called before RTEMS is initialized and used |
---|
26 | * adjust the kernel's configuration. |
---|
27 | * |
---|
28 | * This function also configures the CPU's memory protection unit. |
---|
29 | * |
---|
30 | * RESTRICTIONS/LIMITATIONS: |
---|
31 | * Since RTEMS is not configured, no RTEMS functions can be called. |
---|
32 | * |
---|
33 | */ |
---|
34 | void bsp_start_default( void ) |
---|
35 | { |
---|
36 | /* disable interrupts */ |
---|
37 | XSCALE_INT_ICMR = 0x0; |
---|
38 | rtems_exception_init_mngt(); |
---|
39 | if (bsp_interrupt_initialize() != RTEMS_SUCCESSFUL) { |
---|
40 | _CPU_Fatal_halt(0xe); |
---|
41 | } |
---|
42 | } /* bsp_start */ |
---|
43 | |
---|
44 | /* |
---|
45 | * By making this a weak alias for bsp_start_default, a brave soul |
---|
46 | * can override the actual bsp_start routine used. |
---|
47 | */ |
---|
48 | void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default"))); |
---|
49 | |
---|
50 | |
---|
51 | void bsp_reset( void ) |
---|
52 | { |
---|
53 | #if ON_SKYEYE == 1 |
---|
54 | SKYEYE_MAGIC_ADDRESS = 0xff; |
---|
55 | #endif |
---|
56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.