diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-20 20:12:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-20 20:12:33 +0000 |
commit | df302e56711864ef71b6756ecfb362763c5e61cd (patch) | |
tree | 0657de8b638ff541553e9601d6fb2182daf84f4c /sys/arch/m88k | |
parent | ee202773d5cc86fd43e5607d860e5daf7df46e6e (diff) |
Since we no longer use 3 bits but the whole 7 to get the processor revision
number, we should test for 10, not 2, as the revision for which the xxx.usr
errata applies; also, going through the errata, revision 2/10 (1010x) _is_
affected.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/m88k/m88100_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/m88k/m88k/m8820x_machdep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/m88k/m88k/m88100_machdep.c b/sys/arch/m88k/m88k/m88100_machdep.c index 61a1bef371c..a20b648ac47 100644 --- a/sys/arch/m88k/m88k/m88100_machdep.c +++ b/sys/arch/m88k/m88k/m88100_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m88100_machdep.c,v 1.2 2006/11/18 22:58:28 miod Exp $ */ +/* $OpenBSD: m88100_machdep.c,v 1.3 2007/05/20 20:12:31 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -271,7 +271,7 @@ void m88100_apply_patches() { #ifdef ERRATA__XXX_USR - if (((get_cpu_pid() & PID_VN) >> VN_SHIFT) >= 2) { + if (((get_cpu_pid() & PID_VN) >> VN_SHIFT) > 10) { /* * Patch DAE helpers. * before after diff --git a/sys/arch/m88k/m88k/m8820x_machdep.c b/sys/arch/m88k/m88k/m8820x_machdep.c index ece65d0ee3c..cb9cfea59a0 100644 --- a/sys/arch/m88k/m88k/m8820x_machdep.c +++ b/sys/arch/m88k/m88k/m8820x_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m8820x_machdep.c,v 1.25 2007/03/22 18:49:18 miod Exp $ */ +/* $OpenBSD: m8820x_machdep.c,v 1.26 2007/05/20 20:12:32 miod Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. * @@ -336,7 +336,7 @@ m8820x_cpu_configuration_print(int main) { static int errata_warn = 0; - if (proctype == ARN_88100 && procvers < 2) { + if (proctype == ARN_88100 && procvers <= 10) { if (!errata_warn++) printf("WARNING: M88100 bug workaround code " "not enabled.\nPlease recompile the kernel " |