forked from Imagelibrary/rtems
2001-10-22 Joel Sherrill <joel@OARcorp.com>
* src/threadhandler.c: Use __USE_INIT_FINI__ since USE_INIT_FINI pollutes the application namespace.
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
|
|
||||||
|
2001-10-22 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/threadhandler.c: Use __USE_INIT_FINI__ since USE_INIT_FINI
|
||||||
|
pollutes the application namespace.
|
||||||
|
|
||||||
2001-10-16 Joel Sherrill <joel@OARcorp.com>
|
2001-10-16 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* .cvsignore: Add stamp-h.in.
|
* .cvsignore: Add stamp-h.in.
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ void _Thread_Handler( void )
|
|||||||
{
|
{
|
||||||
ISR_Level level;
|
ISR_Level level;
|
||||||
Thread_Control *executing;
|
Thread_Control *executing;
|
||||||
#ifdef USE_INIT_FINI
|
#if defined(__USE_INIT_FINI__)
|
||||||
static char doneConstructors;
|
static char doneConstructors;
|
||||||
char doneCons;
|
char doneCons;
|
||||||
#endif
|
#endif
|
||||||
@@ -73,7 +73,7 @@ void _Thread_Handler( void )
|
|||||||
level = executing->Start.isr_level;
|
level = executing->Start.isr_level;
|
||||||
_ISR_Set_level(level);
|
_ISR_Set_level(level);
|
||||||
|
|
||||||
#ifdef USE_INIT_FINI
|
#if defined(__USE_INIT_FINI__)
|
||||||
doneCons = doneConstructors;
|
doneCons = doneConstructors;
|
||||||
doneConstructors = 1;
|
doneConstructors = 1;
|
||||||
#endif
|
#endif
|
||||||
@@ -91,7 +91,7 @@ void _Thread_Handler( void )
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
_Thread_Enable_dispatch();
|
_Thread_Enable_dispatch();
|
||||||
#ifdef USE_INIT_FINI
|
#if defined(__USE_INIT_FINI__)
|
||||||
if (!doneCons)
|
if (!doneCons)
|
||||||
_init ();
|
_init ();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
|
|
||||||
|
2001-10-22 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* src/threadhandler.c: Use __USE_INIT_FINI__ since USE_INIT_FINI
|
||||||
|
pollutes the application namespace.
|
||||||
|
|
||||||
2001-10-16 Joel Sherrill <joel@OARcorp.com>
|
2001-10-16 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* .cvsignore: Add stamp-h.in.
|
* .cvsignore: Add stamp-h.in.
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ void _Thread_Handler( void )
|
|||||||
{
|
{
|
||||||
ISR_Level level;
|
ISR_Level level;
|
||||||
Thread_Control *executing;
|
Thread_Control *executing;
|
||||||
#ifdef USE_INIT_FINI
|
#if defined(__USE_INIT_FINI__)
|
||||||
static char doneConstructors;
|
static char doneConstructors;
|
||||||
char doneCons;
|
char doneCons;
|
||||||
#endif
|
#endif
|
||||||
@@ -73,7 +73,7 @@ void _Thread_Handler( void )
|
|||||||
level = executing->Start.isr_level;
|
level = executing->Start.isr_level;
|
||||||
_ISR_Set_level(level);
|
_ISR_Set_level(level);
|
||||||
|
|
||||||
#ifdef USE_INIT_FINI
|
#if defined(__USE_INIT_FINI__)
|
||||||
doneCons = doneConstructors;
|
doneCons = doneConstructors;
|
||||||
doneConstructors = 1;
|
doneConstructors = 1;
|
||||||
#endif
|
#endif
|
||||||
@@ -91,7 +91,7 @@ void _Thread_Handler( void )
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
_Thread_Enable_dispatch();
|
_Thread_Enable_dispatch();
|
||||||
#ifdef USE_INIT_FINI
|
#if defined(__USE_INIT_FINI__)
|
||||||
if (!doneCons)
|
if (!doneCons)
|
||||||
_init ();
|
_init ();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user