summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2000-06-15 03:04:17 +0000
committermickey <mickey@openbsd.org>2000-06-15 03:04:17 +0000
commita97a14cdddef114398685d8ca47a64dea050890c (patch)
tree8231cd5b79bdc1a637a6fd23137de13e1de07431
parentDeal with the chgrp chown -> chmod change. (diff)
downloadwireguard-openbsd-a97a14cdddef114398685d8ca47a64dea050890c.tar.xz
wireguard-openbsd-a97a14cdddef114398685d8ca47a64dea050890c.zip
be more carefull about pg0, i think switch on sv next time
-rw-r--r--sys/arch/hppa/dev/sti_sgc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c
index 720393af9a6..1c13a7801f3 100644
--- a/sys/arch/hppa/dev/sti_sgc.c
+++ b/sys/arch/hppa/dev/sti_sgc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti_sgc.c,v 1.2 2000/06/13 18:36:37 mickey Exp $ */
+/* $OpenBSD: sti_sgc.c,v 1.3 2000/06/15 03:04:17 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
@@ -92,7 +92,7 @@ sti_sgc_probe(parent, match, aux)
* Locate STI ROM.
* On some machines it may not be part of the HPA space.
*/
- if (!PAGE0->pd_resv2[1]) {
+ if (PAGE0->pd_resv2[1] < HPPA_IOBEGIN) {
rom = ca->ca_hpa;
romh = ioh;
romunmapped++;
@@ -151,7 +151,7 @@ sti_sgc_attach(parent, self, aux)
bus_addr_t addr;
int rv;
- if (!PAGE0->pd_resv2[1])
+ if (PAGE0->pd_resv2[1] < HPPA_IOBEGIN)
addr = ca->ca_hpa;
else
addr = PAGE0->pd_resv2[1];