aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@FreeBSD.org>2013-12-05 21:25:56 +0000
committerAndreas Tobler <andreast@FreeBSD.org>2013-12-05 21:25:56 +0000
commit6df3000ccd68c38f894edf85d6631907bf16346f (patch)
tree48df18c374339a67a36003c669a9e1eb0908ead0 /sys
parent1aa997ff6a28ca46b62bd291978813ccd2fae5f0 (diff)
downloadsrc-6df3000ccd68c38f894edf85d6631907bf16346f.tar.gz
src-6df3000ccd68c38f894edf85d6631907bf16346f.zip
In case we have many continous regions without gaps we have to make soure that
we collapse them into one region. The previous version missed to go back one step and do it again.
Notes
Notes: svn path=/head/; revision=259006
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/powerpc/platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/powerpc/platform.c b/sys/powerpc/powerpc/platform.c
index 474f55e5c2c3..066045cf5cd2 100644
--- a/sys/powerpc/powerpc/platform.c
+++ b/sys/powerpc/powerpc/platform.c
@@ -148,6 +148,7 @@ mem_regions(struct mem_region **phys, int *physsz, struct mem_region **avail,
memcpy(&aregions[i], &aregions[i+1],
(naregions - i - 1)*sizeof(*aregions));
naregions--;
+ i--;
}
}
}