Changeset 8b2ee37c in rtems for c/src/exec/score/cpu/i386/cpu.h


Ignore:
Timestamp:
08/19/98 20:09:59 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
26b5c77f
Parents:
7549e14
Message:

Patch from Eric Valette <valette@…>:

  • Use the "hlt" instruction for the Idle thread,
  • Optimise interrupt PATH leadding to thread wakeup,
  • Preparation for Intel exception management that should come before the end of the week...
File:
1 edited

Legend:

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

    r7549e14 r8b2ee37c  
    6565#define CPU_USE_DEFERRED_FP_SWITCH       TRUE
    6666
    67 #define CPU_PROVIDES_IDLE_THREAD_BODY    FALSE
     67#define CPU_PROVIDES_IDLE_THREAD_BODY    YES
    6868#define CPU_STACK_GROWS_UP               FALSE
    6969#define CPU_STRUCTURE_ALIGNMENT
     
    102102} Context_Control_fp;
    103103
     104
    104105/*
    105106 *  The following structure defines the set of information saved
    106  *  on the current stack by RTEMS upon receipt of each interrupt.
     107 *  on the current stack by RTEMS upon receipt of execptions.
     108 *
     109 * idtIndex is either the interrupt number or the trap/exception number.
     110 * faultCode is the code pushed by the processor on some exceptions.
    107111 */
    108112
    109113typedef struct {
    110   unsigned32   TBD;   /* XXX Fix for this CPU */
    111 } CPU_Interrupt_frame;
     114
     115    unsigned32      edi,
     116                    esi,
     117                    ebp,
     118                    esp0,
     119                    ebx,
     120                    edx,
     121                    ecx,
     122                    eax,
     123                    idtIndex,
     124                    faultCode,
     125                    eip,
     126                    cs,
     127                    eflags;
     128}CPU_Exception_frame;
     129
     130/*
     131 *  The following structure defines the set of information saved
     132 *  on the current stack by RTEMS upon receipt of each interrupt
     133 *  that will lead to re-enter the kernel to signal the thread.
     134 */
     135
     136typedef CPU_Exception_frame CPU_Interrupt_frame;
    112137
    113138/*
Note: See TracChangeset for help on using the changeset viewer.