All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] nr_pfns miscalculated
@ 2005-05-12 11:22 Scott Parish
  2005-05-12 13:45 ` Christian Limpach
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Parish @ 2005-05-12 11:22 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 107 bytes --]

If i'm not mistaken, this was what was intended.

sRp

-- 
Scott Parish
Signed-off-by: srparish@us.ibm.com

[-- Attachment #2: nr_pfns.diff --]
[-- Type: text/plain, Size: 582 bytes --]

--- old-xen-unstable/xen/arch/x86/mm.c	2005-05-11 17:42:05.000000000 +0000
+++ new-xen-unstable/xen/arch/x86/mm.c	2005-05-12 11:05:15.000000000 +0000
@@ -209,9 +209,7 @@
         if ( e820.map[i].type == E820_RAM )
             continue;
         pfn = e820.map[i].addr >> PAGE_SHIFT;
-        nr_pfns = (e820.map[i].size +
-                   (e820.map[i].addr & ~PAGE_MASK) +
-                   ~PAGE_MASK) >> PAGE_SHIFT;
+        nr_pfns = (e820.map[i].size + ~PAGE_MASK) >> PAGE_SHIFT;
         for ( j = 0; j < nr_pfns; j++ )
         {
             if ( !pfn_valid(pfn+j) )


[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-12 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-12 11:22 [patch] nr_pfns miscalculated Scott Parish
2005-05-12 13:45 ` Christian Limpach
2005-05-12 13:58   ` Keir Fraser
2005-05-12 13:58     ` Christian Limpach
2005-05-12 14:06       ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.