Date: Mon, 16 May 2011 15:20:54 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r221988 - head/sys/powerpc/powerpc Message-ID: <201105161520.p4GFKsaq087837@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Mon May 16 15:20:54 2011 New Revision: 221988 URL: http://svn.freebsd.org/changeset/base/221988 Log: Fix a </<= mixup. This could result in suboptimal performance on the last page of physical memory. Modified: head/sys/powerpc/powerpc/platform.c Modified: head/sys/powerpc/powerpc/platform.c ============================================================================== --- head/sys/powerpc/powerpc/platform.c Mon May 16 15:19:30 2011 (r221987) +++ head/sys/powerpc/powerpc/platform.c Mon May 16 15:20:54 2011 (r221988) @@ -93,7 +93,7 @@ mem_valid(vm_offset_t addr, int len) for (i = 0; i < npregions; i++) if ((addr >= pregions[i].mr_start) - && (addr + len < pregions[i].mr_start + pregions[i].mr_size)) + && (addr + len <= pregions[i].mr_start + pregions[i].mr_size)) return (0); return (EFAULT);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105161520.p4GFKsaq087837>