PERFORCE change 37607 for review
Peter Wemm
peter at FreeBSD.org
Fri Sep 5 15:23:13 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=37607
Change 37607 by peter at peter_hammer on 2003/09/05 15:22:27
checkpoint the fp save/restore stuff. this isn't enough because m3 doesn't
know how to align it to 16 bytes and copies it around.
Affected files ...
.. //depot/projects/ezm3/libs/m3core/src/runtime/FBSD_AMD64/_fpsetjmp.s#2 edit
Differences ...
==== //depot/projects/ezm3/libs/m3core/src/runtime/FBSD_AMD64/_fpsetjmp.s#2 (text+ko) ====
@@ -68,7 +68,9 @@
movq %r13,40(%rax) /* 5; r13 */
movq %r14,48(%rax) /* 6; r14 */
movq %r15,56(%rax) /* 7; r15 */
- fxsave 64(%rax) /* 8 - 71; fp state */
+ addq $(64+15),%rax
+ andq $(~15),%rax
+ fxsave (%rax) /* 8:10 - 71:73; fp state */
xorq %rax,%rax
ret
@@ -89,7 +91,10 @@
movq 40(%rdx),%r13
movq 48(%rdx),%r14
movq 56(%rdx),%r15
- fxrstor 64(%rdx)
+ addq $(64+15),%rdx
+ andq $(~15),%rdx
+ movl $0xffbf,0x1c(%rdx)
+ fxrstor (%rdx)
testq %rax,%rax
jnz 1f
incq %rax
More information about the p4-projects
mailing list