summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-05-14 21:08:50 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-05-14 21:08:50 +0000
commit8691bc85cce8d920ca23e2346da52b1133188b02 (patch)
treeb745f09342eee847abaaed7717339c450237428d
parent0d09070ac6d8da6baa1b44c4983d151505c839a8 (diff)
When walking cpu configuration, report fpu type as the cpu type, since
various R14000 (which use R14010 FPC) report different values there. That's only to get a prettier cpu0 line in dmesg.
-rw-r--r--sys/arch/sgi/sgi/sginode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/sgi/sgi/sginode.c b/sys/arch/sgi/sgi/sginode.c
index 619f664407d..02843b59393 100644
--- a/sys/arch/sgi/sgi/sginode.c
+++ b/sys/arch/sgi/sgi/sginode.c
@@ -1,4 +1,5 @@
-/* $OpenBSD: sginode.c,v 1.5 2009/05/08 18:42:07 miod Exp $ */
+#define DEBUG
+/* $OpenBSD: sginode.c,v 1.6 2009/05/14 21:08:49 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
*
@@ -136,7 +137,11 @@ kl_do_boardinfo(lboard_t *boardinfo)
cpu->type = (cpucomp->cpu_prid >> 8) & 0xff;
cpu->vers_maj = (cpucomp->cpu_prid >> 4) & 0x0f;
cpu->vers_min = cpucomp->cpu_prid & 0x0f;
+#if 0
cpu->fptype = (cpucomp->cpu_fpirr >> 8) & 0xff;
+#else
+ cpu->fptype = cpu->type;
+#endif
cpu->fpvers_maj =
(cpucomp->cpu_fpirr >> 4) & 0x0f;
cpu->fpvers_min = cpucomp->cpu_fpirr & 0x0f;