diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 18:45:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-12 18:45:54 +0000 |
commit | ce5b291fa43ac65b2e3700aab3325c742f8e4771 (patch) | |
tree | 7b2d4a782167ad67850522f41715d6a37e05c425 /cpukit | |
parent | Patch rtemsdoc-4.5.0-rc-12-cvs.diff from Ralf Corsepius (diff) | |
download | rtems-ce5b291fa43ac65b2e3700aab3325c742f8e4771.tar.bz2 |
Works on Solaris and Linux.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/score/cpu/unix/cpu.c | 14 |
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 ); |