Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 01:43:04 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221356 - head/sys/boot/ia64/common
Message-ID:  <201105030143.p431h4To063231@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105030143.p431h4To063231>