Changeset 11372


Ignore:
Timestamp:
Nov 16, 2008, 12:32:47 PM (11 years ago)
Author:
gb
Message:

Can't assume that <machine/npx.h> exists (it doesn't on an amd64 FreeBSD
host), so duplicate the relevant structure definitions and add a "ccl_"
prefix to them.

Location:
trunk/source/lisp-kernel
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-exceptions.c

    r11331 r11372  
    932932    struct savefpu *fpu = (struct savefpu *) &(xp->uc_mcontext.mc_fpstate);
    933933#else
    934     struct savexmm *fpu = (struct savexmm *) &(xp->uc_mcontext.mc_fpstate);
     934    struct ccl_savexmm *fpu = (struct ccl_savexmm *) &(xp->uc_mcontext.mc_fpstate);
    935935#endif
    936936    uint32_t mxcsr = fpu->sv_env.en_mxcsr;
  • trunk/source/lisp-kernel/x86-exceptions.h

    r11250 r11372  
    5656#include <machine/fpu.h>
    5757#else
    58 #include <machine/npx.h>
     58#include "freebsdx8632/fpu.h"
    5959#endif
    6060#define xpGPRvector(x) ((natural *)(&((x)->uc_mcontext)))
     
    6767#define xpXMMregs(x)(&(((struct savefpu *)(&(x)->uc_mcontext.mc_fpstate))->sv_xmm[0]))
    6868#else
    69 #define xpMMXreg(x,n) *((natural *)(&(((struct savexmm *)(&(x)->uc_mcontext.mc_fpstate))->sv_fp[n])))
    70 #define xpXMMregs(x)(&(((struct savexmm *)(&(x)->uc_mcontext.mc_fpstate))->sv_xmm[0]))
     69#define xpMMXreg(x,n) *((natural *)(&(((struct ccl_savexmm *)(&(x)->uc_mcontext.mc_fpstate))->sv_fp[n])))
     70#define xpXMMregs(x)(&(((struct ccl_savexmm *)(&(x)->uc_mcontext.mc_fpstate))->sv_xmm[0]))
    7171#endif
    7272#endif
Note: See TracChangeset for help on using the changeset viewer.