4.104.115
Last change
on this file since 6a39cd4 was
6a39cd4,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/14/08 at 21:38:25
|
2008-09-14 Joel Sherrill <joel.sherrill@…>
- Makefile.am, startup/bspstart.c: Split out bsp_get_work_area() into
its own file and use BSP Framework to perform more initialization.
- startup/bspgetworkarea.c: New file.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[c8471315] | 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 | * |
---|
[2211b75c] | 7 | * COPYRIGHT (c) 1989-2008. |
---|
[c8471315] | 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 |
---|
[a6f969b3] | 12 | * http://www.rtems.com/license/LICENSE. |
---|
[c8471315] | 13 | * |
---|
| 14 | * $Id$ |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #include <bsp.h> |
---|
[d4886a06] | 18 | #include <bsp/bootcard.h> |
---|
[c8471315] | 19 | |
---|
| 20 | /* |
---|
| 21 | * bsp_start |
---|
| 22 | * |
---|
| 23 | * This routine does the bulk of the system initialization. |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | void bsp_start( void ) |
---|
| 27 | { |
---|
[7353e150] | 28 | extern void mips_install_isr_entries(void); |
---|
| 29 | |
---|
[7a677fd7] | 30 | mips_set_sr( 0xff00 ); /* all interrupts unmasked but globally off */ |
---|
| 31 | /* depend on the IRC to take care of things */ |
---|
| 32 | mips_install_isr_entries(); |
---|
[c8471315] | 33 | } |
---|
| 34 | |
---|
[2211b75c] | 35 | /* |
---|
| 36 | * Required routine by some gcc run-times. |
---|
| 37 | */ |
---|
[c8471315] | 38 | void clear_cache( void *address, size_t n ) |
---|
| 39 | { |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | /* Structure filled in by get_mem_info. Only the size field is |
---|
[6a39cd4] | 43 | * actually used (to clear bss), so the others aren't even filled in. |
---|
| 44 | */ |
---|
[c8471315] | 45 | |
---|
| 46 | struct s_mem |
---|
| 47 | { |
---|
| 48 | unsigned int size; |
---|
| 49 | unsigned int icsize; |
---|
| 50 | unsigned int dcsize; |
---|
| 51 | }; |
---|
| 52 | |
---|
| 53 | void |
---|
| 54 | get_mem_info (mem) |
---|
| 55 | struct s_mem *mem; |
---|
| 56 | { |
---|
| 57 | mem->size = 0x1000000; /* XXX figure out something here */ |
---|
| 58 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.