source:
rtems/c/src/lib/libbsp/no_cpu/no_bsp/startup/main.c
@
b547e84
Last change on this file since b547e84 was b547e84, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:44:56 | |
---|---|
|
|
File size: 813 bytes |
Rev | Line | |
---|---|---|
[ac7d5ef0] | 1 | /* main() |
2 | * | |
3 | * This is the entry point for the application. It calls | |
4 | * the bsp_start routine to the actual dirty work. | |
5 | * | |
[08311cc3] | 6 | * COPYRIGHT (c) 1989-1999. |
[ac7d5ef0] | 7 | * On-Line Applications Research Corporation (OAR). |
8 | * | |
[98e4ebf5] | 9 | * The license and distribution terms for this file may be |
10 | * found in the file LICENSE in this distribution or at | |
[b547e84] | 11 | * http://www.rtems.com/license/LICENSE. |
[ac7d5ef0] | 12 | * |
13 | * $Id$ | |
14 | */ | |
15 | ||
16 | #include <rtems.h> | |
17 | #include <bsp.h> | |
18 | ||
19 | int main( | |
20 | int argc, | |
[3652ad35] | 21 | char **argv, |
22 | char **environp | |
[ac7d5ef0] | 23 | ) |
24 | { | |
[dd1d1c7] | 25 | extern void bsp_start( int, char**, char ** ); |
26 | ||
[3652ad35] | 27 | bsp_start( argc, argv, environp ); |
[ac7d5ef0] | 28 | |
29 | /* | |
30 | * May be able to return to the "crt/start.s" code but also | |
31 | * may not be able to. Do something here which is board dependent. | |
32 | */ | |
33 | ||
34 | rtems_fatal_error_occurred( 0 ); | |
[dd1d1c7] | 35 | |
36 | return 0; /* just to satisfy the native compiler */ | |
[ac7d5ef0] | 37 | } |
Note: See TracBrowser
for help on using the repository browser.