diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-29 21:30:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-29 21:30:32 +0000 |
commit | adae165b7a5772447cecb491f7b97bea2b25fae3 (patch) | |
tree | 696a8f0c60abbfacae457b48d92df07b6b7aad03 /cpukit/score/src/threadhandler.c | |
parent | 2011-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-adae165b7a5772447cecb491f7b97bea2b25fae3.tar.bz2 |
2011-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* include/rtems/userenv.h, score/src/threadhandler.c: Formatting.
* sapi/src/exshutdown.c: Add comments.
Diffstat (limited to 'cpukit/score/src/threadhandler.c')
-rw-r--r-- | cpukit/score/src/threadhandler.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index b121809e4f..c688432715 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -29,7 +29,15 @@ #include <rtems/score/threadq.h> #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> +#if defined(RTEMS_SMP) + #include <rtems/score/smp.h> +#endif + +/* + * Conditional magic to determine what style of C++ constructor + * initialization this target and compiler version uses. + */ #if defined(__AVR__) #undef __USE_INIT_FINI__ #endif @@ -53,11 +61,6 @@ #define EXECUTE_GLOBAL_CONSTRUCTORS #endif -#if defined(RTEMS_SMP) - #include <rtems/score/smp.h> -#endif - - /* * _Thread_Handler * @@ -81,7 +84,6 @@ * * Output parameters: NONE */ - void _Thread_Handler( void ) { ISR_Level level; @@ -104,7 +106,6 @@ void _Thread_Handler( void ) * have to put level into a register for those cpu's that use * inline asm here */ - level = executing->Start.isr_level; _ISR_Set_level(level); @@ -150,7 +151,6 @@ void _Thread_Handler( void ) _SMP_Request_other_cores_to_perform_first_context_switch(); _Thread_Enable_dispatch(); #endif - } #endif |