diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-01-13 19:53:35 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-01-13 19:53:35 +0000 |
commit | 63b23d923669a6ac12a3094e882232a581064129 (patch) | |
tree | 5bba2d970e9d461879fb6f8fad7f7d4e612dde0f /sys/arch | |
parent | 7d2cd886e6985f1ea56c0b209e9f96bd5829a1df (diff) |
fix the logic in hvt probing
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 178d1d7ddcb..503840d524b 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.94 2003/01/09 22:27:09 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.95 2003/01/13 19:53:34 mickey Exp $ */ /* * Copyright (c) 1999-2002 Michael Shalayeff @@ -406,12 +406,13 @@ hppa_init(start) avail_end = ctob(totalphysmem); #if defined(HP7100LC_CPU) || defined(HP7300LC_CPU) - if (pdc_call((iodcio_t)pdc, 0, PDC_TLB, PDC_TLB_INFO, &pdc_hwtlb) && - !pdc_hwtlb.min_size && !pdc_hwtlb.max_size) { + if (!pdc_call((iodcio_t)pdc, 0, PDC_TLB, PDC_TLB_INFO, &pdc_hwtlb) && + pdc_hwtlb.min_size && pdc_hwtlb.max_size) + cpu_features |= HPPA_FTRS_HVT; + else { printf("WARNING: no HPT support, fine!\n"); pmap_hptsize = 0; - } else - cpu_features |= HPPA_FTRS_HVT; + } #endif /* |