summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-08-22 19:32:12 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-08-22 19:32:12 +0000
commit72cafb89b9cca2393b2fb7a479b1f103493f645b (patch)
treee18308a3574fe3293f01678a6ab1e677d8e3e4f0 /sys/arch/hppa
parenta53ff6552db2814ed915df7bdbad2c05294fd820 (diff)
Subsequent address ranges start at index 1, not index 0.
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/autoconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/autoconf.c b/sys/arch/hppa/hppa/autoconf.c
index c84014d3839..d59c4621af8 100644
--- a/sys/arch/hppa/hppa/autoconf.c
+++ b/sys/arch/hppa/hppa/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.50 2007/06/01 22:40:33 miod Exp $ */
+/* $OpenBSD: autoconf.c,v 1.51 2007/08/22 19:32:11 kettenis Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -258,7 +258,7 @@ pdc_scanbus(self, ca, maxmod, hpa)
for (ia = 0; !(error = pdc_call((iodcio_t)pdc,
0, PDC_SYSMAP, PDC_SYSMAP_ADDR, &pdc_addr,
- im, ia)) && ia < nca.ca_naddrs; ia++) {
+ im, ia + 1)) && ia < nca.ca_naddrs; ia++) {
nca.ca_addrs[ia].addr = pdc_addr.hpa;
nca.ca_addrs[ia].size =
pdc_addr.size << PGSHIFT;