summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-12 18:46:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-12 18:46:11 +0000
commit380b2231e060cc91b082c7c2ffa5675645b023d7 (patch)
tree781d1200acdb80a5beafe10f49db975c7b351ce8 /c
parentAdded i960KA support in anticipation is i960 gdb simulator BSP. (diff)
downloadrtems-380b2231e060cc91b082c7c2ffa5675645b023d7.tar.bz2
Works on Solaris and Linux.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/score/cpu/unix/cpu.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c
index 96c706451d..2bc7e4ece0 100644
--- a/c/src/exec/score/cpu/unix/cpu.c
+++ b/c/src/exec/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 );