Handle supervisor/user data differently. Status of functionality

still nil.
This commit is contained in:
briggs 1994-12-03 23:28:37 +00:00
parent fae5b57ec7
commit bce9e69ed0
1 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpu.c,v 1.4 1994/10/26 08:47:01 cgd Exp $ */
/* $NetBSD: fpu.c,v 1.5 1994/12/03 23:28:37 briggs Exp $ */
/*-
* Copyright (C) 1993 Allen K. Briggs, Chris P. Caputo,
@ -47,7 +47,7 @@
#include <sys/ktrace.h>
#endif
#define PRINTF(x)
#define PRINTF(x) printf x
int fancy (unsigned short buf[])
{
@ -134,7 +134,11 @@ FPUemul(frame)
PRINTF ( ("FPUemul() - "));
copyin ((char *)frame.f_pc, buf, sizeof (buf));
if (frame.f_sr & 0x2000) {
bcopy ((char *)frame.f_pc, buf, sizeof (buf));
} else {
copyin ((char *)frame.f_pc, buf, sizeof (buf));
}
PRINTF ( ("Word 0: %x, ", (int)buf[0]));
PRINTF ( ("Word 1: %x, ", (int)buf[1]));