summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-10 18:36:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-10 18:36:48 +0000
commit98165e21b7a7d7d2e09c1e355c7f41cf7769882b (patch)
tree267b44403bd49bbd4d1fd5c88f88a2caa59bc2bf
parentPatch rtems-rc-4.5.0-27-cvs from Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-98165e21b7a7d7d2e09c1e355c7f41cf7769882b.tar.bz2
Check that context control overlay is big enough.
-rw-r--r--c/src/exec/score/cpu/unix/cpu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c
index ee3dc8484d..96c706451d 100644
--- a/c/src/exec/score/cpu/unix/cpu.c
+++ b/c/src/exec/score/cpu/unix/cpu.c
@@ -42,7 +42,7 @@
typedef struct {
jmp_buf regs;
- int isr_level;
+ int isr_level;
} Context_Control_overlay;
void _CPU_Signal_initialize(void);
@@ -200,7 +200,9 @@ 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,
0,