From owner-freebsd-current  Tue Apr  3 11:10:42 2001
Delivered-To: freebsd-current@freebsd.org
Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67])
	by hub.freebsd.org (Postfix) with ESMTP
	id A678237B719; Tue,  3 Apr 2001 11:10:39 -0700 (PDT)
	(envelope-from dillon@earth.backplane.com)
Received: (from dillon@localhost)
	by earth.backplane.com (8.11.2/8.9.3) id f33IAd258887;
	Tue, 3 Apr 2001 11:10:39 -0700 (PDT)
	(envelope-from dillon)
Date: Tue, 3 Apr 2001 11:10:39 -0700 (PDT)
From: Matt Dillon <dillon@earth.backplane.com>
Message-Id: <200104031810.f33IAd258887@earth.backplane.com>
To: Bruce Evans <bde@zeta.org.au>, John Baldwin <jhb@FreeBSD.ORG>,
	Mark Murray <mark@grondar.za>, current@FreeBSD.ORG,
	"David O'Brien" <obrien@FreeBSD.ORG>
Subject: Re: i586 FP optimizations hosed.
References: <Pine.BSF.4.21.0104032200080.32249-100000@besplex.bde.org> <200104031803.f33I3FM58726@earth.backplane.com>
Sender: owner-freebsd-current@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

:    * Kernel bcopy operation in case where no process switch occurs
:      (i.e. current process was using the FP and while we went into
:      kernel mode, we have not yet saved the FP state anywhere).
:
:	if (process-A-using-FP) {
:	    push FP state for process A on stack
:	    push process-A-using-FP flag
:	}
:	set process-A-using-FP flag
:	use FP registers to do bcopy
:
:	restore process-A-using-FP flag from stack
:	restore FP state from stack

    Oops.  I meant:

	if (process-A-using-FP) {
	    push FP state for process A on stack
	}
	push process-A-using-FP flag

	set process-A-using-FP flag
	use FP registers to do bcopy

	restore process-A-using-FP flag from stack
	if (process-A-using-FP) {
	    restore FP state from stack
	}

						-Matt

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message