diff options
author | bde <bde@FreeBSD.org> | 1995-12-10 03:11:32 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-12-10 03:11:32 +0000 |
commit | c480b5de5eb4095345376a9b806d16a25b1cb288 (patch) | |
tree | bc0e23089ee110c91f007dd489d3d9b5e37bbf9a /sys/amd64 | |
parent | 854894bd5ccae9eb9edd5c25e0a5cb23dfe8faf7 (diff) | |
download | FreeBSD-src-c480b5de5eb4095345376a9b806d16a25b1cb288.zip FreeBSD-src-c480b5de5eb4095345376a9b806d16a25b1cb288.tar.gz |
Restored used function fusword() (used by GPL math emulator).
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/support.S | 14 | ||||
-rw-r--r-- | sys/amd64/amd64/support.s | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index a93be8a..41bcfac 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 a93be8a..41bcfac 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) |