Changeset e7e016f in rtems for cpukit/score/cpu/unix


Ignore:
Timestamp:
Aug 4, 1995, 10:18:45 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4d9fa26
Parents:
ce6e30b1
Message:

cleanup and optimization from Tony

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/unix/cpu.c

    rce6e30b1 re7e016f  
    4949 */
    5050
     51sigset_t  posix_empty_mask;
     52
    5153void _CPU_ISR_From_CPU_Init()
    5254{
     
    5456  proc_ptr          old_handler;
    5557
    56 
     58  /*
     59   * Generate an empty mask to be used by disable_support
     60   */
     61
     62  sigemptyset(&posix_empty_mask);
     63 
    5764  /*
    5865   * Block all the signals except SIGTRAP for the debugger
    5966   * and SIGABRT for fatal errors.
    6067   */
    61 
    62   _CPU_ISR_Enable(1);
    6368
    6469  (void) sigfillset(&_CPU_Signal_mask);
     
    6873  (void) sigdelset(&_CPU_Signal_mask, SIGCONT);
    6974
    70   sigprocmask(SIG_BLOCK, &_CPU_Signal_mask, 0);
     75  _CPU_ISR_Enable(1);
    7176
    7277  /*
     
    131136  sigaction(SIGTTOU, &act, 0);
    132137  sigaction(SIGURG, &act, 0);
    133 /*
    134  *  XXX: Really should be on HPUX.
    135  */
    136 
    137 #if defined(hppa1_1)
     138#ifdef SIGLOST
    138139    sigaction(SIGLOST, &act, 0);
    139140#endif
     
    492493{
    493494  sigset_t  old_mask;
    494   sigset_t  empty_mask;
    495 
    496   sigemptyset(&empty_mask);
    497   sigemptyset(&old_mask);
     495
    498496  sigprocmask(SIG_BLOCK, &_CPU_Signal_mask, &old_mask);
    499497
    500   if (memcmp((char *)&empty_mask, (char *)&old_mask, sizeof(sigset_t)) != 0)
     498  if (memcmp((void *)&posix_empty_mask, (void *)&old_mask, sizeof(sigset_t)) != 0)
    501499    return 1;
    502500
     
    611609  setitimer(ITIMER_REAL, 0, 0);
    612610
     611  if ( error ) {
     612#ifdef RTEMS_DEBUG
     613    abort();
     614#endif
     615    if (getenv("RTEMS_DEBUG"))
     616      abort();
     617  }
     618
    613619  _exit(error);
    614620}
Note: See TracChangeset for help on using the changeset viewer.