5
Last change
on this file since a3fe23c 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.0 KB
|
Rev | Line | |
---|
[6e27be70] | 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 |
---|
[c499856] | 6 | * http://www.rtems.org/license/LICENSE. |
---|
[6e27be70] | 7 | */ |
---|
| 8 | |
---|
| 9 | #include <bsp.h> |
---|
[0d833168] | 10 | #include <bsp/irq-generic.h> |
---|
[6e27be70] | 11 | #include <rtems/libcsupport.h> |
---|
| 12 | #include <rtems/libio.h> |
---|
| 13 | #include <pxa255.h> |
---|
| 14 | |
---|
| 15 | /* |
---|
| 16 | * |
---|
| 17 | * NAME: bsp_start_default - BSP initialization function |
---|
| 18 | * |
---|
| 19 | * DESCRIPTION: |
---|
| 20 | * This function is called before RTEMS is initialized and used |
---|
| 21 | * adjust the kernel's configuration. |
---|
| 22 | * |
---|
| 23 | * This function also configures the CPU's memory protection unit. |
---|
| 24 | * |
---|
| 25 | * RESTRICTIONS/LIMITATIONS: |
---|
| 26 | * Since RTEMS is not configured, no RTEMS functions can be called. |
---|
| 27 | * |
---|
| 28 | */ |
---|
[b3bb88be] | 29 | static void bsp_start_default( void ) |
---|
[6e27be70] | 30 | { |
---|
| 31 | /* disable interrupts */ |
---|
| 32 | XSCALE_INT_ICMR = 0x0; |
---|
[dd8df59] | 33 | bsp_interrupt_initialize(); |
---|
[6e27be70] | 34 | } /* bsp_start */ |
---|
| 35 | |
---|
| 36 | /* |
---|
| 37 | * By making this a weak alias for bsp_start_default, a brave soul |
---|
| 38 | * can override the actual bsp_start routine used. |
---|
| 39 | */ |
---|
| 40 | void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default"))); |
---|
Note: See
TracBrowser
for help on using the repository browser.