diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-26 22:41:40 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-26 22:41:40 +0200 |
commit | 257c7e958ef125ec12cc218519ce56f767eb112d (patch) | |
tree | 815353b334a8f22f1a6f771fd58c0f27a140bfc9 /sys/src/9/pc/dat.h | |
parent | 7aea1204b9843842827302a3eb58752333daf918 (diff) |
keep fpregs always in sse (FXSAVE) format, adapt libmach and acid files for new format
we now always use the new FXSAVE format in FPsave structure and fpregs
file, converting back and forth in fpx87save() and fpx87restore().
document that fprestore() is a destructive operation now.
change fp register definition in libmach and adapt fpr() acid funciton.
avoid unneccesary copy of fpstate and fpsave in sysfork(). functions
including syscalls do not preserve the fp registers and copying fpstate
from the current process would mean we had to fpsave(&up->fpsave); first.
simply not doing it, new process starts in FPinit state.
Diffstat (limited to 'sys/src/9/pc/dat.h')
-rw-r--r-- | sys/src/9/pc/dat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/9/pc/dat.h b/sys/src/9/pc/dat.h index e8d422414..862dc344a 100644 --- a/sys/src/9/pc/dat.h +++ b/sys/src/9/pc/dat.h @@ -76,10 +76,10 @@ struct FPstate ushort r3; ulong pc; ushort selector; - ushort r4; + ushort opcode; ulong operand; ushort oselector; - ushort r5; + ushort r4; uchar regs[80]; /* floating point registers */ }; @@ -91,10 +91,10 @@ struct FPssestate /* SSE fp state */ ushort fop; /* opcode */ ulong fpuip; /* pc */ ushort cs; /* pc segment */ - ushort r1; /* reserved */ + ushort rsrvd1; /* reserved */ ulong fpudp; /* data pointer */ ushort ds; /* data pointer segment */ - ushort r2; + ushort rsrvd2; ulong mxcsr; /* MXCSR register state */ ulong mxcsr_mask; /* MXCSR mask register */ uchar xregs[480]; /* extended registers */ |