summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-12 18:45:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-12 18:45:54 +0000
commitce5b291fa43ac65b2e3700aab3325c742f8e4771 (patch)
tree7b2d4a782167ad67850522f41715d6a37e05c425 /cpukit
parente275cabc4f24658f1d07a497f55c996f73afcdc7 (diff)
downloadrtems-ce5b291fa43ac65b2e3700aab3325c742f8e4771.tar.bz2
Works on Solaris and Linux.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/cpu/unix/cpu.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c
index 96c706451d..2bc7e4ece0 100644
--- a/cpukit/score/cpu/unix/cpu.c
+++ b/cpukit/score/cpu/unix/cpu.c
@@ -50,10 +50,8 @@ void _CPU_Stray_signal(int);
void _CPU_ISR_Handler(int);
static sigset_t _CPU_Signal_mask;
-static Context_Control_overlay
- _CPU_Context_Default_with_ISRs_enabled CPU_STRUCTURE_ALIGNMENT;
-static Context_Control_overlay
- _CPU_Context_Default_with_ISRs_disabled CPU_STRUCTURE_ALIGNMENT;
+static Context_Control_overlay _CPU_Context_Default_with_ISRs_enabled;
+static Context_Control_overlay _CPU_Context_Default_with_ISRs_disabled;
/*
* Sync IO support, an entry for each fd that can be set
@@ -200,18 +198,18 @@ 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 );
+ if ( sizeof(Context_Control_overlay) > sizeof(Context_Control) )
+ _CPU_Fatal_halt( 0xdeadf00d );
(void) memset(
&_CPU_Context_Default_with_ISRs_enabled,
0,
- sizeof(Context_Control)
+ sizeof(Context_Control_overlay)
);
(void) memset(
&_CPU_Context_Default_with_ISRs_disabled,
0,
- sizeof(Context_Control)
+ sizeof(Context_Control_overlay)
);
_CPU_ISR_Set_level( 0 );