diff options
author | Chris Johns <chrisj@rtems.org> | 2009-04-28 06:39:24 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-04-28 06:39:24 +0000 |
commit | d8b74dbebd341073f0c5b03e589d3fcd349745d1 (patch) | |
tree | d43a16550820d072c374b2f0a309b3996397a111 /cpukit | |
parent | 2009-04-28 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-d8b74dbebd341073f0c5b03e589d3fcd349745d1.tar.bz2 |
2009-04-28 Chris Johns <chrisj@rtems.org>
* sapi/include/confdefs.h: Add a prototype for Init with C linkage
and define Init task command line arguments if confdefs.h provides
an Init entry point.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 9432abca2d..477ce23fda 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2009-04-28 Chris Johns <chrisj@rtems.org> + + * sapi/include/confdefs.h: Add a prototype for Init with C linkage + and define Init task command line arguments if confdefs.h provides + an Init entry point. + 2009-04-15 Ralf Corsepius <ralf.corsepius@rtems.org> * configure.ac: Disable LIBSHELL for unix targets. diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 7f7a1ca183..b50ff01107 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -518,7 +518,16 @@ rtems_fs_init_functions_t rtems_fs_init_helper = #endif #ifndef CONFIGURE_INIT_TASK_ENTRY_POINT + #ifdef __cplusplus + extern "C" { + #endif + rtems_task Init (rtems_task_argument ); + #ifdef __cplusplus + } + #endif #define CONFIGURE_INIT_TASK_ENTRY_POINT Init + extern const char* bsp_boot_cmdline; + #define CONFIGURE_INIT_TASK_ARGUMENTS ((rtems_task_argument) &bsp_boot_cmdline) #endif #ifndef CONFIGURE_INIT_TASK_INITIAL_MODES |