4.115
Last change
on this file since b0bbd61 was
b0bbd61,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/11/11 at 12:53:17
|
2011-02-11 Ralf Corsépius <ralf.corsepius@…>
- startup/bspstart.c, timer/timer.c:
Use "asm" instead of "asm" for improved c99-compliance.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * This routine starts the application. It includes application, |
---|
3 | * board, and monitor specific initialization and configuration. |
---|
4 | * The generic CPU dependent initialization has been performed |
---|
5 | * before this routine is invoked. |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-2000. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #include <string.h> |
---|
18 | |
---|
19 | #include <bsp.h> |
---|
20 | #include <libcpu/au1x00.h> |
---|
21 | #include <libcpu/isr_entries.h> |
---|
22 | |
---|
23 | au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR; |
---|
24 | au1x00_uart_t *uart3 = (au1x00_uart_t *)AU1X00_UART3_ADDR; |
---|
25 | |
---|
26 | /* |
---|
27 | * bsp_start |
---|
28 | * |
---|
29 | * This routine does the bulk of the system initialization. |
---|
30 | */ |
---|
31 | void bsp_start( void ) |
---|
32 | { |
---|
33 | unsigned int compare = 0; |
---|
34 | |
---|
35 | mips_set_sr( 0x7f00 ); /* all interrupts unmasked but globally off */ |
---|
36 | /* depend on the IRC to take care of things */ |
---|
37 | __asm__ volatile ("mtc0 %0, $11\n" :: "r" (compare)); |
---|
38 | mips_install_isr_entries(); |
---|
39 | } |
---|
40 | |
---|
41 | |
---|
42 | /* These replace the ones in newlib. I'm not sure why the newlib ones |
---|
43 | * don't work. |
---|
44 | */ |
---|
45 | void _init(void) |
---|
46 | { |
---|
47 | } |
---|
48 | |
---|
49 | void _fini(void) |
---|
50 | { |
---|
51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.