diff options
author | 2003-01-13 19:53:34 +0000 | |
---|---|---|
committer | 2003-01-13 19:53:34 +0000 | |
commit | 43bc026bcc5d08447fa66e698ea32333b768b6b1 (patch) | |
tree | 33e9ba9574cd9f293249db3b80378a0d61ee3a78 | |
parent | ESP=encapsulatING security payload. (diff) | |
download | wireguard-openbsd-43bc026bcc5d08447fa66e698ea32333b768b6b1.tar.xz wireguard-openbsd-43bc026bcc5d08447fa66e698ea32333b768b6b1.zip |
fix the logic in hvt probing
-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 /* |