diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2004-07-13 11:01:07 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2004-07-13 11:01:07 +0000 |
commit | a20320836825d2e0edb6332aacb5334f33361140 (patch) | |
tree | 415b54f985c256d44c2d91ef2635a4dc35804273 /lib/libc/arch/amd64 | |
parent | 2aee6672095216b72d2b936eb520c859f0ee4ae3 (diff) |
Sync with NetBSD, picking up fixes to correctly reset status bits returning
the old status bits.
ok deraadt@
Diffstat (limited to 'lib/libc/arch/amd64')
-rw-r--r-- | lib/libc/arch/amd64/gen/fpsetsticky.S | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/arch/amd64/gen/fpsetsticky.S b/lib/libc/arch/amd64/gen/fpsetsticky.S index c8e61101a12..68e380d1eed 100644 --- a/lib/libc/arch/amd64/gen/fpsetsticky.S +++ b/lib/libc/arch/amd64/gen/fpsetsticky.S @@ -1,5 +1,5 @@ -/* $OpenBSD: fpsetsticky.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */ -/* $NetBSD: fpsetsticky.S,v 1.3 2002/06/12 19:17:23 fvdl Exp $ */ +/* $OpenBSD: fpsetsticky.S,v 1.2 2004/07/13 11:01:06 kettenis Exp $ */ +/* $NetBSD: fpsetsticky.S,v 1.5 2004/03/09 17:16:13 drochner Exp $ */ /* * Written by Frank van der Linden at Wasabi Systems for NetBSD @@ -29,12 +29,15 @@ ENTRY(fpsetsticky) movl -24(%rsp),%eax movl %eax,%edx - andl $63,%eax + andb $0xc0,%dl orl %edi,%edx movl %edx,-24(%rsp) movl -32(%rsp),%edx + orl %edx,%eax + andl $63,%eax + andb $0xc0,%dl orl %edi,%edx movl %edx,-32(%rsp) |