Changeset 0315b79 in rtems


Ignore:
Timestamp:
Apr 5, 2000, 7:32:36 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
6e48c9b
Parents:
35ff211
Message:

Added support for Cygwin.

Location:
c/src
Files:
4 edited

Legend:

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

    r35ff211 r0315b79  
    100100  (void) sigdelset(&_CPU_Signal_mask, SIGTRAP);
    101101  (void) sigdelset(&_CPU_Signal_mask, SIGABRT);
     102#if !defined(__CYGWIN__)
    102103  (void) sigdelset(&_CPU_Signal_mask, SIGIOT);
     104#endif
    103105  (void) sigdelset(&_CPU_Signal_mask, SIGCONT);
    104106  (void) sigdelset(&_CPU_Signal_mask, SIGSEGV);
     
    807809      case SIGSEGV:
    808810      case SIGTERM:
     811#if !defined(__CYGWIN__)
    809812      case SIGIOT:
     813#endif
    810814        _CPU_Fatal_error(0x100 + sig_num);
    811815  }
  • c/src/exec/score/cpu/unix/rtems/score/cpu.h

    r35ff211 r0315b79  
    379379 
    380380/*
    381  *  For Linux 1.1
     381 *  For i386 targets
    382382 */
    383383 
     
    390390#define ESI_OFF    4
    391391#define EDI_OFF    5
     392#elif defined(__CYGWIN__)
     393#define EAX_OFF    0
     394#define EBX_OFF    1
     395#define ECX_OFF    2
     396#define EDX_OFF    3
     397#define ESI_OFF    4
     398#define EDI_OFF    5
     399#define EBP_OFF    6
     400#define ESP_OFF    7
     401#define RET_OFF    8
    392402#else
     403/* Linux */
    393404#define EBX_OFF    0
    394405#define ESI_OFF    1
  • c/src/exec/score/cpu/unix/rtems/score/unix.h

    r35ff211 r0315b79  
    3838#define CPU_MODEL_NAME  "Solaris"
    3939 
    40 #elif defined(__linux__)
     40#elif defined(__linux__) || defined(linux)
    4141 
    4242#define CPU_MODEL_NAME  "Linux"
    4343 
    44 #elif defined(linux)
     44#elif defined(__CYGWIN__)
    4545 
    46 #define CPU_MODEL_NAME  "Linux"
     46#define CPU_MODEL_NAME  "Cygwin"
    4747 
    4848#elif defined(__FreeBSD__)
  • c/src/lib/libc/termios.c

    r35ff211 r0315b79  
    2929 */
    3030
    31 
    3231#if defined(__FreeBSD__)
    3332#define XTABS   0
     
    3938#define OCRNL   0
    4039#define IUCLC   0
     40#endif
     41
     42/*
     43 *  Cygwin does not define these
     44 */
     45
     46#if defined(__CYGWIN__)
     47#define ECHOPRT 0
    4148#endif
    4249
Note: See TracChangeset for help on using the changeset viewer.