summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev/cpu.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-26 05:29:03 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-26 05:29:03 +0000
commit86c6742ecdd648129b8e9b6027219d35d4feed23 (patch)
tree232c81b6df83220769a9b81194802d9b9d13c38a /sys/arch/hppa/dev/cpu.c
parentc531a59c66dea4c7d6e40e4b71c1784b370a624c (diff)
need to mask out the upper part for the fpu version on print
Diffstat (limited to 'sys/arch/hppa/dev/cpu.c')
-rw-r--r--sys/arch/hppa/dev/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c
index 724466e33c2..e615691ada3 100644
--- a/sys/arch/hppa/dev/cpu.c
+++ b/sys/arch/hppa/dev/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.15 2002/03/21 01:02:09 mickey Exp $ */
+/* $OpenBSD: cpu.c,v 1.16 2002/03/26 05:29:02 mickey Exp $ */
/*
* Copyright (c) 1998-2002 Michael Shalayeff
@@ -149,7 +149,7 @@ cpuattach(parent, self, aux)
ver = HPPA_FPUVER(ver);
name = hppa_mod_info(HPPA_TYPE_FPU, ver >> 5);
if (name)
- printf("FPU %s rev %d", name, ver);
+ printf("FPU %s rev %d", name, ver & 0x1f);
else
printf("FPU v%d.%02d", ver >> 5, ver & 0x1f);
}