diff options
author | marcel <marcel@FreeBSD.org> | 2011-05-03 01:43:04 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2011-05-03 01:43:04 +0000 |
commit | 2bce8b194c9921e7d4b53aacc97157a3861c35b5 (patch) | |
tree | 776867b5ddafe25e8c867586bdc01585296f0b25 /sys/boot | |
parent | 58042dc3340314c998fbccc9cad1798f9a296ed6 (diff) | |
download | FreeBSD-src-2bce8b194c9921e7d4b53aacc97157a3861c35b5.zip FreeBSD-src-2bce8b194c9921e7d4b53aacc97157a3861c35b5.tar.gz |
Fix corner case where the size is a power of two.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/ia64/common/exec.c | 2 |
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; } |