summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-26 05:24:03 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-26 05:24:03 +0000
commitc531a59c66dea4c7d6e40e4b71c1784b370a624c (patch)
treee821c705017289d63c6e8bb43b5dd46764386691 /sys/arch/hppa
parenta35e4bb5fee638750e8ac95f9007f5dc6645976f (diff)
if cannot guess cpu model default to the lowest supported one
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/machdep.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index ed4dfb10540..f12c1ea8f76 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.65 2002/03/25 20:46:49 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.66 2002/03/26 05:24:02 mickey Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -419,10 +419,13 @@ hppa_init(start)
for (p = cpu_types;
p->arch && p->features != cpu_features; p++);
- if (!p->arch)
+ if (!p->arch) {
printf("WARNING: UNKNOWN CPU TYPE; GOOD LUCK (%x)\n",
cpu_features);
- else {
+ p = cpu_types;
+ }
+
+ {
/*
* Ptrs to various tlb handlers, to be filled
* based on cpu features.