forked from Imagelibrary/rtems
score: Use RTEMS_UNREACHABLE()
The _CPU_Context_switch() in _Thread_Start_multitasking() does in fact not return.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#endif
|
||||
|
||||
#include <rtems/score/threadimpl.h>
|
||||
#include <rtems/score/assert.h>
|
||||
|
||||
void _Thread_Start_multitasking( void )
|
||||
{
|
||||
@@ -57,6 +58,7 @@ void _Thread_Start_multitasking( void )
|
||||
*/
|
||||
_CPU_Context_Set_is_executing( &trash, true );
|
||||
_CPU_Context_switch( &trash, &heir->Registers );
|
||||
RTEMS_UNREACHABLE();
|
||||
}
|
||||
#else
|
||||
_CPU_Context_Restart_self( &heir->Registers );
|
||||
|
||||
Reference in New Issue
Block a user