diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-07-09 11:15:34 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-07-09 12:40:51 -0500 |
commit | 155ea78d9f14ff235d147c6479b85dbe23a6875e (patch) | |
tree | 329c3f57f001ca7fbb524c0ee9c1e0adad5326de /cpukit/score | |
parent | bsp/virtex: Add VIRTEX_CONSOLE_USE_INTERRUPTS (diff) | |
download | rtems-155ea78d9f14ff235d147c6479b85dbe23a6875e.tar.bz2 |
threadhandler.c: Add comments
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/threadhandler.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index f21722a063..85f8f6e4bd 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -96,6 +96,11 @@ void _Thread_Handler( void ) #endif #endif + /* + * Initialize the floating point context because we do not come + * through _Thread_Dispatch on our first invocation. So the normal + * code path for performing the FP context switch is not hit. + */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && @@ -130,6 +135,11 @@ void _Thread_Handler( void ) } #endif + /* + * RTEMS supports multiple APIs and each API can define a different + * thread/task prototype. The following code supports invoking the + * user thread entry point using the prototype expected. + */ if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( |