Remove obsolete ctors section
Remove prototype support for C++ constructors, since it is not well designed. Device drivers (or other application code) that requires an automatic initialization capability should use the device initialization macros instead. Note: Support for C++ constructors may be re-introduced at a later date. However, a number of issues need to be settled, such as when the constructors are invoked and what context they run in. (Running them during nanokernel initialization, as was previously done, is probably not the right approach.) Change-Id: If6d27ac16b485cb39d5ec34084e9d0f1991074f4 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
067ed49efc
commit
9fce2a2209
5 changed files with 1 additions and 101 deletions
|
@ -82,10 +82,6 @@ char __noinit __stack main_task_stack[CONFIG_MAIN_STACK_SIZE];
|
|||
|
||||
char __noinit _interrupt_stack[CONFIG_ISR_STACK_SIZE];
|
||||
|
||||
/* constructor initialization */
|
||||
|
||||
extern void _Ctors(void);
|
||||
|
||||
#ifdef CONFIG_NANO_TIMEOUTS
|
||||
#include <misc/dlist.h>
|
||||
#define initialize_nano_timeouts() sys_dlist_init(&_nanokernel.timeout_q)
|
||||
|
@ -266,10 +262,6 @@ FUNC_NORETURN void _Cstart(void)
|
|||
|
||||
STACK_CANARY_INIT();
|
||||
|
||||
/* invoke C++ constructors */
|
||||
|
||||
_Ctors();
|
||||
|
||||
/* display boot banner */
|
||||
|
||||
PRINT_BOOT_BANNER();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue