forked from Imagelibrary/rtems
Check that context control overlay is big enough.
This commit is contained in:
@@ -200,6 +200,8 @@ void _CPU_Context_From_CPU_Init()
|
||||
* get default values to use in _CPU_Context_Initialize()
|
||||
*/
|
||||
|
||||
if ( sizeof(Context_Control_overlay) < sizeof(Context_Control) )
|
||||
_CPU_Fatal_halt( 0xdeadfood );
|
||||
|
||||
(void) memset(
|
||||
&_CPU_Context_Default_with_ISRs_enabled,
|
||||
|
||||
Reference in New Issue
Block a user