svn commit: r221356 - head/sys/boot/ia64/common
Marcel Moolenaar
marcel at FreeBSD.org
Tue May 3 01:43:04 UTC 2011
Author: marcel
Date: Tue May 3 01:43:04 2011
New Revision: 221356
URL: http://svn.freebsd.org/changeset/base/221356
Log:
Fix corner case where the size is a power of two.
Modified:
head/sys/boot/ia64/common/exec.c
Modified: head/sys/boot/ia64/common/exec.c
==============================================================================
--- head/sys/boot/ia64/common/exec.c Tue May 3 01:19:39 2011 (r221355)
+++ head/sys/boot/ia64/common/exec.c Tue May 3 01:43:04 2011 (r221356)
@@ -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;
}
More information about the svn-src-head
mailing list