From 8691bc85cce8d920ca23e2346da52b1133188b02 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 14 May 2009 21:08:50 +0000 Subject: 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. --- sys/arch/sgi/sgi/sginode.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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; -- cgit v1.2.3