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.com/license/LICENSE. |
---|
17 | * |
---|
18 | * $Id$ |
---|
19 | */ |
---|
20 | |
---|
21 | #include <bsp.h> |
---|
22 | #include <libcpu/isr_entries.h> |
---|
23 | #include <bsp/bootcard.h> |
---|
24 | #include <bsp/irq-generic.h> |
---|
25 | #include <bsp/irq.h> |
---|
26 | #include <bsp/irq-generic.h> |
---|
27 | |
---|
28 | /* Structure filled in by get_mem_info. Only the size field is |
---|
29 | * actually used (to clear bss), so the others aren't even filled in. |
---|
30 | */ |
---|
31 | struct s_mem |
---|
32 | { |
---|
33 | unsigned int size; |
---|
34 | unsigned int icsize; |
---|
35 | unsigned int dcsize; |
---|
36 | }; |
---|
37 | |
---|
38 | void bsp_start( void ); |
---|
39 | void clear_cache( void *address, size_t n ); |
---|
40 | void get_mem_info( struct s_mem *mem ); |
---|
41 | |
---|
42 | /* |
---|
43 | * bsp_start |
---|
44 | * |
---|
45 | * This routine does the bulk of the system initialization. |
---|
46 | */ |
---|
47 | void bsp_start( void ) |
---|
48 | { |
---|
49 | mips_set_sr( 0xff00 ); /* all interrupts unmasked but globally off */ |
---|
50 | /* depend on the IRC to take care of things */ |
---|
51 | bsp_interrupt_initialize(); |
---|
52 | } |
---|
53 | |
---|
54 | /* |
---|
55 | * Required routine by some gcc run-times. |
---|
56 | */ |
---|
57 | void clear_cache( void *address, size_t n ) |
---|
58 | { |
---|
59 | } |
---|
60 | |
---|
61 | |
---|
62 | void get_mem_info( |
---|
63 | struct s_mem *mem |
---|
64 | ) |
---|
65 | { |
---|
66 | mem->size = 0x1000000; /* XXX figure out something here */ |
---|
67 | } |
---|