5
Last change
on this file since 9964895 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.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * This routine starts the application. It includes application, |
---|
5 | * board, and monitor specific initialization and configuration. |
---|
6 | * The generic CPU dependent initialization has been performed |
---|
7 | * before this routine is invoked. |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * COPYRIGHT (c) 1989-2012. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #include <string.h> |
---|
20 | |
---|
21 | #include <bsp.h> |
---|
22 | #include <libcpu/au1x00.h> |
---|
23 | #include <libcpu/isr_entries.h> |
---|
24 | #include <bsp/irq-generic.h> |
---|
25 | |
---|
26 | void bsp_start( void ); |
---|
27 | |
---|
28 | au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR; |
---|
29 | au1x00_uart_t *uart3 = (au1x00_uart_t *)AU1X00_UART3_ADDR; |
---|
30 | |
---|
31 | /* |
---|
32 | * bsp_start |
---|
33 | * |
---|
34 | * This routine does the bulk of the system initialization. |
---|
35 | */ |
---|
36 | void bsp_start( void ) |
---|
37 | { |
---|
38 | unsigned int compare = 0; |
---|
39 | |
---|
40 | mips_set_sr( 0x7f00 ); /* all interrupts unmasked but globally off */ |
---|
41 | /* depend on the IRC to take care of things */ |
---|
42 | __asm__ volatile ("mtc0 %0, $11\n" :: "r" (compare)); |
---|
43 | bsp_interrupt_initialize(); |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.