Changeset 637df35 in rtems for c/src/exec/score/cpu/unix/cpu.h


Ignore:
Timestamp:
Jul 12, 1995, 7:47:25 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6cc85032
Parents:
68931b5
Message:

Ada95, gnat, go32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/unix/cpu.h

    r68931b5 r637df35  
    2727#endif
    2828
    29 #include <setjmp.h>
    3029#include <rtems/unix.h>
    3130#ifndef ASM
    3231#include <rtems/unixtypes.h>
    3332#endif
     33
     34#if defined(solaris2)
     35#undef  _POSIX_C_SOURCE
     36#define _POSIX_C_SOURCE 3
     37#undef  __STRICT_ANSI__
     38#define __STRICT_ANSI__
     39#endif
     40
     41#if 0
     42
     43/*
     44 *  In order to get the types and prototypes used in this file under
     45 *  Solaris 2.3, it is necessary to pull the following magic.
     46 */
     47
     48#if defined(solaris2)
     49#warning "Ignore the undefining __STDC__ warning"
     50#undef __STDC__
     51#define __STDC__ 0
     52#undef  _POSIX_C_SOURCE
     53#endif
     54
     55#endif
     56
     57#include <setjmp.h>
     58#include <signal.h>
    3459
    3560/* conditional compilation parameters */
     
    398423
    399424typedef struct {
    400     jmp_buf   regs;
     425  jmp_buf   regs;
     426  sigset_t  isr_level;
     427  int       junk;
    401428} Context_Control;
    402429
     
    568595 */
    569596
     597extern unsigned32 _CPU_ISR_Disable_support(void);
     598
    570599#define _CPU_ISR_Disable( _level ) \
    571600    do { \
    572       (_level) = _CPU_Disable_signal(); \
     601      (_level) = _CPU_ISR_Disable_support(); \
    573602    } while ( 0 )
    574603
     
    579608 */
    580609
    581 #define _CPU_ISR_Enable( _level )  \
    582     do { \
    583       _CPU_Enable_signal( (_level) ); \
    584     } while ( 0 )
     610void _CPU_ISR_Enable(unsigned32 level);
    585611
    586612/*
     
    611637#define _CPU_ISR_Set_level( new_level ) \
    612638  { \
    613       if ( new_level ) \
    614           (void) _CPU_Disable_signal(); \
    615       else \
    616           _CPU_Enable_signal( 0 ); \
     639    if ( new_level == 0 ) _CPU_ISR_Enable( 0 ); \
     640    else                  _CPU_ISR_Enable( 1 ); \
    617641  }
    618642
     
    794818
    795819/*
     820 *  _CPU_ISR_install_raw_handler
     821 *
     822 *  This routine installs a "raw" interrupt handler directly into the
     823 *  processor's vector table.
     824 */
     825 
     826void _CPU_ISR_install_raw_handler(
     827  unsigned32  vector,
     828  proc_ptr    new_handler,
     829  proc_ptr   *old_handler
     830);
     831
     832/*
    796833 *  _CPU_ISR_install_vector
    797834 *
     
    873910
    874911void _CPU_ISR_Set_signal_level(
    875   unsigned32 level
    876 );
    877 
    878 unsigned32 _CPU_Disable_signal( void );
    879 
    880 void _CPU_Enable_signal(
    881912  unsigned32 level
    882913);
Note: See TracChangeset for help on using the changeset viewer.