summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-11-15 20:27:14 +0000
committerbde <bde@FreeBSD.org>1996-11-15 20:27:14 +0000
commit4b71b76d7ed1f0139470b0c645c0992b4d09644a (patch)
tree87141de87339bf98da22be2b70977fe6fb2fbd0b /sys
parentc228a8734ed310e2961aee6e9beb8322e78dfeaf (diff)
downloadFreeBSD-src-4b71b76d7ed1f0139470b0c645c0992b4d09644a.zip
FreeBSD-src-4b71b76d7ed1f0139470b0c645c0992b4d09644a.tar.gz
Disabled i586-optimized copyin and copyout. They usually panic if the
user supplies a bad address, because they push a lot of stuff that the fault handler doesn't know about onto the stack. This has been broken for more than half a year despite being tested for almost half a year in -current.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/fpu.c4
-rw-r--r--sys/amd64/isa/npx.c4
-rw-r--r--sys/i386/isa/npx.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c
index 25b7533..59c9dae 100644
--- a/sys/amd64/amd64/fpu.c
+++ b/sys/amd64/amd64/fpu.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)npx.c 7.2 (Berkeley) 5/12/91
- * $Id: npx.c,v 1.31 1996/09/06 23:07:53 phk Exp $
+ * $Id: npx.c,v 1.32 1996/11/11 20:39:03 bde Exp $
*/
#include "npx.h"
@@ -367,10 +367,12 @@ npxattach(dvp)
}
if (!(dvp->id_flags & NPX_DISABLE_I586_OPTIMIZED_BZERO))
bzero = i586_bzero;
+#ifdef notyet
if (!(dvp->id_flags & NPX_DISABLE_I586_OPTIMIZED_COPYIO)) {
copyin_vector = i586_copyin;
copyout_vector = i586_copyout;
}
+#endif
}
#endif
diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c
index 25b7533..59c9dae 100644
--- a/sys/amd64/isa/npx.c
+++ b/sys/amd64/isa/npx.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)npx.c 7.2 (Berkeley) 5/12/91
- * $Id: npx.c,v 1.31 1996/09/06 23:07:53 phk Exp $
+ * $Id: npx.c,v 1.32 1996/11/11 20:39:03 bde Exp $
*/
#include "npx.h"
@@ -367,10 +367,12 @@ npxattach(dvp)
}
if (!(dvp->id_flags & NPX_DISABLE_I586_OPTIMIZED_BZERO))
bzero = i586_bzero;
+#ifdef notyet
if (!(dvp->id_flags & NPX_DISABLE_I586_OPTIMIZED_COPYIO)) {
copyin_vector = i586_copyin;
copyout_vector = i586_copyout;
}
+#endif
}
#endif
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index 25b7533..59c9dae 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)npx.c 7.2 (Berkeley) 5/12/91
- * $Id: npx.c,v 1.31 1996/09/06 23:07:53 phk Exp $
+ * $Id: npx.c,v 1.32 1996/11/11 20:39:03 bde Exp $
*/
#include "npx.h"
@@ -367,10 +367,12 @@ npxattach(dvp)
}
if (!(dvp->id_flags & NPX_DISABLE_I586_OPTIMIZED_BZERO))
bzero = i586_bzero;
+#ifdef notyet
if (!(dvp->id_flags & NPX_DISABLE_I586_OPTIMIZED_COPYIO)) {
copyin_vector = i586_copyin;
copyout_vector = i586_copyout;
}
+#endif
}
#endif
OpenPOWER on IntegriCloud