The _CPU_Context_restore routine is generally used only to restart the currently executing thread (i.e. self) in an efficient manner. In many ports, it can simply be a label in _CPU_Context_switch. It may be unnecessary to reload some registers.
void _CPU_Context_restore( Context_Control *new_context );
Copyright © 1988-2007OAR Corporation