From 965797322b04500501d6ee5c32132d0f0cd76ea3 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 10 Dec 1995 03:11:32 +0000 Subject: [PATCH] Restored used function fusword() (used by GPL math emulator). --- sys/amd64/amd64/support.S | 14 +++++++++++++- sys/amd64/amd64/support.s | 14 +++++++++++++- sys/i386/i386/support.s | 14 +++++++++++++- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index a93be8a6e2e7..41bcfac02442 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.24 1995/10/15 18:03:42 phk Exp $ + * $Id: support.s,v 1.25 1995/12/09 20:40:40 phk Exp $ */ #include "assym.s" /* system definitions */ @@ -504,6 +504,18 @@ ENTRY(fuswintr) movl $-1,%eax ret +ENTRY(fusword) + movl _curpcb,%ecx + movl $fusufault,PCB_ONFAULT(%ecx) + movl 4(%esp),%edx + + cmpl $VM_MAXUSER_ADDRESS-2,%edx + ja fusufault + + movzwl (%edx),%eax + movl $0,PCB_ONFAULT(%ecx) + ret + ENTRY(fubyte) movl _curpcb,%ecx movl $fusufault,PCB_ONFAULT(%ecx) diff --git a/sys/amd64/amd64/support.s b/sys/amd64/amd64/support.s index a93be8a6e2e7..41bcfac02442 100644 --- a/sys/amd64/amd64/support.s +++ b/sys/amd64/amd64/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.24 1995/10/15 18:03:42 phk Exp $ + * $Id: support.s,v 1.25 1995/12/09 20:40:40 phk Exp $ */ #include "assym.s" /* system definitions */ @@ -504,6 +504,18 @@ ENTRY(fuswintr) movl $-1,%eax ret +ENTRY(fusword) + movl _curpcb,%ecx + movl $fusufault,PCB_ONFAULT(%ecx) + movl 4(%esp),%edx + + cmpl $VM_MAXUSER_ADDRESS-2,%edx + ja fusufault + + movzwl (%edx),%eax + movl $0,PCB_ONFAULT(%ecx) + ret + ENTRY(fubyte) movl _curpcb,%ecx movl $fusufault,PCB_ONFAULT(%ecx) diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s index a93be8a6e2e7..41bcfac02442 100644 --- a/sys/i386/i386/support.s +++ b/sys/i386/i386/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.24 1995/10/15 18:03:42 phk Exp $ + * $Id: support.s,v 1.25 1995/12/09 20:40:40 phk Exp $ */ #include "assym.s" /* system definitions */ @@ -504,6 +504,18 @@ ENTRY(fuswintr) movl $-1,%eax ret +ENTRY(fusword) + movl _curpcb,%ecx + movl $fusufault,PCB_ONFAULT(%ecx) + movl 4(%esp),%edx + + cmpl $VM_MAXUSER_ADDRESS-2,%edx + ja fusufault + + movzwl (%edx),%eax + movl $0,PCB_ONFAULT(%ecx) + ret + ENTRY(fubyte) movl _curpcb,%ecx movl $fusufault,PCB_ONFAULT(%ecx)