diff --git a/sys/boot/ia64/common/exec.c b/sys/boot/ia64/common/exec.c index 6c7f0279f0ba..dd9c9ba05e63 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; }