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


Ignore:
Timestamp:
Jul 18, 1995, 7:27:50 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
10aed1e3
Parents:
f67ad3d
Message:

merged Linux UNIX simulator support (C)

File:
1 edited

Legend:

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

    rf67ad3d r8044533  
    265265#if defined(hppa1_1)
    266266#define CPU_STACK_GROWS_UP               TRUE
    267 #elif defined(sparc)
     267#elif defined(sparc) || defined(i386)
    268268#define CPU_STACK_GROWS_UP               FALSE
    269269#else
     
    363363#endif
    364364
     365#if defined(i386)
     366 
     367#ifdef RTEMS_NEWLIB
     368#error "Newlib not installed"
     369#endif
     370 
     371/*
     372 *  For Linux 1.1
     373 */
     374 
     375#ifdef RTEMS_UNIXLIB
     376#define EBX_OFF    0
     377#define ESI_OFF    1
     378#define EDI_OFF    2
     379#define EBP_OFF    3
     380#define ESP_OFF    4
     381#define RET_OFF    5
     382#endif
     383 
     384#endif
     385 
    365386#if defined(sparc)
    366387
     
    516537#elif defined(sparc)
    517538#define CPU_FRAME_SIZE  (112)   /* based on disassembled test code */
     539#elif defined(i386)
     540#define CPU_FRAME_SIZE  (24)  /* return address, sp, and bp pushed plus fudge */
    518541#else
    519542#error "Unknown CPU!!!"
Note: See TracChangeset for help on using the changeset viewer.