Changeset 6447 for branches/x8664-call


Ignore:
Timestamp:
May 8, 2007, 11:04:23 AM (13 years ago)
Author:
gb
Message:

debug_show_fpu for x86-64 FreeBSD.
FreeBSD xmm context stuff.

Location:
branches/x8664-call/ccl/lisp-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/x8664-call/ccl/lisp-kernel/lisp-debug.c

    r6420 r6447  
    591591  struct xmm *xmmp = (struct xmm *)(xpFPRvector(xp));
    592592#endif
     593#ifdef FREEBSD
     594  struct xmmacc *xmmp = xpXMMregs(xp);
     595#endif
    593596  float *sp;
    594597
     
    606609#ifdef DARWIN
    607610          xp->uc_mcontext->__fs.__fpu_mxcsr
     611#endif
     612#ifdef FREEBSD
     613          (((struct savefpu *)(&(xp)->uc_mcontext.mc_fpstate))->sv_env.en_mxcsr)
    608614#endif
    609615          );
  • branches/x8664-call/ccl/lisp-kernel/x86-exceptions.h

    r6421 r6447  
    5656#define xpPC(x) xpGPR(x,Iip)
    5757#define xpMMXreg(x,n) *((natural *)(&(((struct savefpu *)(&(x)->uc_mcontext.mc_fpstate))->sv_fp[n])))
     58#define xpXMMregs(x)(&(((struct savefpu *)(&(x)->uc_mcontext.mc_fpstate))->sv_xmm[0]))
    5859#endif
    5960#endif
Note: See TracChangeset for help on using the changeset viewer.