score: Use RTEMS_UNREACHABLE()

The _CPU_Context_switch() in _Thread_Start_multitasking() does in fact
not return.
This commit is contained in:
Sebastian Huber
2016-03-23 07:43:01 +01:00
parent 2518516f40
commit d67c869766

View File

@@ -19,6 +19,7 @@
#endif #endif
#include <rtems/score/threadimpl.h> #include <rtems/score/threadimpl.h>
#include <rtems/score/assert.h>
void _Thread_Start_multitasking( void ) void _Thread_Start_multitasking( void )
{ {
@@ -57,6 +58,7 @@ void _Thread_Start_multitasking( void )
*/ */
_CPU_Context_Set_is_executing( &trash, true ); _CPU_Context_Set_is_executing( &trash, true );
_CPU_Context_switch( &trash, &heir->Registers ); _CPU_Context_switch( &trash, &heir->Registers );
RTEMS_UNREACHABLE();
} }
#else #else
_CPU_Context_Restart_self( &heir->Registers ); _CPU_Context_Restart_self( &heir->Registers );