4.104.114.95
Last change
on this file since bd3e306 was
bd3e306,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/12/08 at 18:43:28
|
2008-05-12 Joel Sherrill <joel.sherrill@…>
- console/console.c, startup/bspstart.c: Refactored and renamed
initialization routines to rtems_initialize_data_structures,
rtems_initialize_before_drivers, rtems_initialize_device_drivers, and
rtems_initialize_start_multitasking. This opened the sequence up so
that bootcard() could provide a more robust and flexible framework
which is easier to explain and understand. This also lays the
groundwork for sharing the division of available memory between the
RTEMS workspace and heap and the C library initialization across all
BSPs.
|
-
Property mode set to
100644
|
File size:
1.3 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-1999. |
---|
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 <bsp.h> |
---|
18 | #include <rtems/libio.h> |
---|
19 | |
---|
20 | #include <string.h> |
---|
21 | |
---|
22 | /* |
---|
23 | * Use the shared implementations of the following routines |
---|
24 | */ |
---|
25 | |
---|
26 | void bsp_libc_init( void *, uint32_t, int ); |
---|
27 | void bsp_pretasking_hook(void); /* m68k version */ |
---|
28 | |
---|
29 | /* |
---|
30 | * Call Spurious_Initialize in bsp_predriver_hook because |
---|
31 | * bsp_predriver_hook is call after the _ISR_Vector_Table allocation |
---|
32 | */ |
---|
33 | |
---|
34 | void bsp_predriver_hook(void) |
---|
35 | { |
---|
36 | void Spurious_Initialize(); |
---|
37 | Spurious_Initialize(); |
---|
38 | } |
---|
39 | |
---|
40 | /* |
---|
41 | * bsp_start |
---|
42 | * |
---|
43 | * This routine does the bulk of the system initialization. |
---|
44 | */ |
---|
45 | |
---|
46 | void bsp_start( void ) |
---|
47 | { |
---|
48 | void *vbr; |
---|
49 | extern void *_WorkspaceBase; |
---|
50 | extern void *_RamSize; |
---|
51 | extern unsigned long _M68k_Ramsize; |
---|
52 | |
---|
53 | /* RAM size set in linker script */ |
---|
54 | _M68k_Ramsize = (unsigned long)&_RamSize; |
---|
55 | |
---|
56 | m68k_get_vbr( vbr ); |
---|
57 | |
---|
58 | Configuration.work_space_start = (void *) &_WorkspaceBase; |
---|
59 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.