From a20320836825d2e0edb6332aacb5334f33361140 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 13 Jul 2004 11:01:07 +0000 Subject: Sync with NetBSD, picking up fixes to correctly reset status bits returning the old status bits. ok deraadt@ --- lib/libc/arch/amd64/gen/fpsetsticky.S | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/libc/arch/amd64') 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) -- cgit v1.2.3