summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorchs <chs@NetBSD.org>2005-05-11 02:59:49 +0000
committerchs <chs@NetBSD.org>2005-05-11 02:59:49 +0000
commit5fefa18bb9495bd8efe3b9e6e2e90ac4ea33160e (patch)
tree3f50879e18daaea5306d20dcec2bfbdd335b5754 /sys
parent9ffae1bf4618fecfc39f67612403b9e30a25dc79 (diff)
loading the kernel from disk currently causes the PDC_COPROC call to fail,
so work around this for now by assuming that an FPU is present in this case.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hp700/hp700/machdep.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/hp700/hp700/machdep.c b/sys/arch/hp700/hp700/machdep.c
index 77451e48fa2..0cefdae5feb 100644
--- a/sys/arch/hp700/hp700/machdep.c
+++ b/sys/arch/hp700/hp700/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.24 2005/05/01 20:40:02 chs Exp $ */
+/* $NetBSD: machdep.c,v 1.25 2005/05/11 02:59:49 chs Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2005/05/01 20:40:02 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.25 2005/05/11 02:59:49 chs Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -784,9 +784,13 @@ do { \
&pdc_coproc)) < 0) {
printf("WARNING: PDC_COPROC error %d\n", error);
pdc_coproc.ccr_enable = 0;
+
+ /* XXX boot-from-disk causes this PDC call to fail */
+ printf("... assuming FPU is present\n");
+ pdc_coproc.ccr_enable = 0xc0;
} else {
#ifdef DEBUG
- printf("pdc_coproc: %x, %x\n", pdc_coproc.ccr_enable,
+ printf("pdc_coproc: 0x%x, 0x%x\n", pdc_coproc.ccr_enable,
pdc_coproc.ccr_present);
#endif
}