Date: Fri, 5 Sep 2003 15:23:11 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 37607 for review Message-ID: <200309052223.h85MNB0Q065740@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37607 Change 37607 by peter@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309052223.h85MNB0Q065740>