summaryrefslogtreecommitdiffstats
path: root/sys/boot/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-05-03 01:43:04 +0000
committermarcel <marcel@FreeBSD.org>2011-05-03 01:43:04 +0000
commit2bce8b194c9921e7d4b53aacc97157a3861c35b5 (patch)
tree776867b5ddafe25e8c867586bdc01585296f0b25 /sys/boot/ia64
parent58042dc3340314c998fbccc9cad1798f9a296ed6 (diff)
downloadFreeBSD-src-2bce8b194c9921e7d4b53aacc97157a3861c35b5.zip
FreeBSD-src-2bce8b194c9921e7d4b53aacc97157a3861c35b5.tar.gz
Fix corner case where the size is a power of two.
Diffstat (limited to 'sys/boot/ia64')
-rw-r--r--sys/boot/ia64/common/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ia64/common/exec.c b/sys/boot/ia64/common/exec.c
index 6c7f027..dd9c9ba 100644
--- a/sys/boot/ia64/common/exec.c
+++ b/sys/boot/ia64/common/exec.c
@@ -76,7 +76,7 @@ sz2shft(vm_offset_t ofs, vm_size_t sz)
shft = 12; /* Start with 4K */
s = 1 << shft;
- while (s < sz) {
+ while (s <= sz) {
shft++;
s <<= 1;
}
OpenPOWER on IntegriCloud