Changeset 4942


Ignore:
Timestamp:
Aug 8, 2006, 12:07:19 PM (18 years ago)
Author:
Gary Byers
Message:

xp accessors for Darwinx8664.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/x86-exceptions.h

    r4853 r4942  
    2424#define xpPC(x) (xpGPR(x,Iip))
    2525#define xpMMXreg(x,n)  *((natural *)(&((x)->uc_mcontext.fpregs->_st[n])))
     26#endif
     27#endif
     28
     29#ifdef DARWIN
     30#ifdef X8664
     31#define xpGPRvector(x) ((natural *)(&(UC_MCONTEXT(x)->ss.rax)))
     32#define xpGPR(x,gprno) (xpGPRvector(x)[gprno])
     33#define set_xpGPR(x,gpr,new) xpGPR((x),(gpr)) = (natural)(new)
     34#define xpPC(x) (xpGPR(x,Iip))
     35#define xpFPRvector(x) ((natural *)(&(UC_MCONTEXT(x)->fs.fp_stmm0)))
     36#define xpMMXreg(x,n)  (xpFPRvector(x)[gprno])
    2637#endif
    2738#endif
Note: See TracChangeset for help on using the changeset viewer.