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; } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"