summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-05 13:08:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-05 13:08:41 +0000
commitd83c39dc368a30fc6dd3928961c712014d5d8bca (patch)
tree27883d3cb7a9e4d9a6223ef66a94316a1507a9c2 /c/src/exec/score/cpu
parentMotorola MVME2307 BSP submitted by Jay Kulpinski <jskulpin@eng01.gdds.com>. (diff)
downloadrtems-d83c39dc368a30fc6dd3928961c712014d5d8bca.tar.bz2
Bug report and fix from Jay Kulpinski <jskulpin@eng01.gdds.com> where
sigemptyset(&old_mask) needed to be added on glibc2 systems. Ian Lance Taylor pointed out that sigemptyset() is portable so Joel removed all conditionals around calls to sigemptyset().
Diffstat (limited to 'c/src/exec/score/cpu')
-rw-r--r--c/src/exec/score/cpu/unix/cpu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.c b/c/src/exec/score/cpu/unix/cpu.c
index 4f1812b9d1..d29bb03963 100644
--- a/c/src/exec/score/cpu/unix/cpu.c
+++ b/c/src/exec/score/cpu/unix/cpu.c
@@ -47,7 +47,7 @@ void _CPU_Signal_initialize(void);
void _CPU_Stray_signal(int);
void _CPU_ISR_Handler(int);
-static sigset_t _CPU_Signal_mask;
+static sigset_t _CPU_Signal_mask;
static Context_Control_overlay
_CPU_Context_Default_with_ISRs_enabled CPU_STRUCTURE_ALIGNMENT;
static Context_Control_overlay
@@ -248,9 +248,7 @@ unsigned32 _CPU_ISR_Get_level( void )
{
sigset_t old_mask;
-#if defined(__linux__)
sigemptyset( &old_mask );
-#endif
sigprocmask(SIG_BLOCK, 0, &old_mask);
if (memcmp((void *)&posix_empty_mask, (void *)&old_mask, sizeof(sigset_t)))
@@ -657,6 +655,7 @@ unsigned32 _CPU_ISR_Disable_support(void)
int status;
sigset_t old_mask;
+ sigemptyset( &old_mask );
status = sigprocmask(SIG_BLOCK, &_CPU_Signal_mask, &old_mask);
if ( status )
_Internal_error_Occurred(