summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/l.s
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-05-26 22:41:40 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-05-26 22:41:40 +0200
commit257c7e958ef125ec12cc218519ce56f767eb112d (patch)
tree815353b334a8f22f1a6f771fd58c0f27a140bfc9 /sys/src/9/pc/l.s
parent7aea1204b9843842827302a3eb58752333daf918 (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/l.s')
-rw-r--r--sys/src/9/pc/l.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/l.s b/sys/src/9/pc/l.s
index 4087b3f1a..e86b22449 100644
--- a/sys/src/9/pc/l.s
+++ b/sys/src/9/pc/l.s
@@ -657,13 +657,13 @@ TEXT fpinit(SB), $0 /* enable and init */
WAIT
RET
-TEXT fpx87save(SB), $0 /* save state and disable */
+TEXT fpx87save0(SB), $0 /* save state and disable */
MOVL p+0(FP), AX
FSAVE 0(AX) /* no WAIT */
FPOFF(l2)
RET
-TEXT fpx87restore(SB), $0 /* enable and restore state */
+TEXT fpx87restore0(SB), $0 /* enable and restore state */
FPON
MOVL p+0(FP), AX
FRSTOR 0(AX)