From c531a59c66dea4c7d6e40e4b71c1784b370a624c Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 26 Mar 2002 05:24:03 +0000 Subject: if cannot guess cpu model default to the lowest supported one --- sys/arch/hppa/hppa/machdep.c | 9 ++++++--- 1 file 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. -- cgit v1.2.3