Home | History | Annotate | Download | only in x86
      1 /**
      2  * @file op_arch.h
      3  * defines registers for x86
      4  *
      5  * @remark Copyright 2002 OProfile authors
      6  * @remark Read the file COPYING
      7  *
      8  * @author Will Cohen
      9  */
     10 
     11 #ifndef OP_ARCH_H
     12 #define OP_ARCH_H
     13 
     14 #include <asm/ptrace.h>
     15 
     16 /* How to access the processor's instruction pointer */
     17 #ifndef instruction_pointer
     18 #define instruction_pointer(regs) ((regs)->eip)
     19 #endif
     20 
     21 /* Bit in processor's status register for interrupt masking */
     22 #define IRQ_ENABLED(regs)	((regs)->eflags & IF_MASK)
     23 
     24 #endif /* OP_ARCH_H */
     25