Mailing List Archive

init_boot_pages() should ignore sub-page regions.
ChangeSet 1.1458, 2005/05/19 09:06:04+01:00, kaf24@firebug.cl.cam.ac.uk

init_boot_pages() should ignore sub-page regions.
Signed-off-by: Matthew Chapman <matthewc@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>



page_alloc.c | 2 ++
1 files changed, 2 insertions(+)


diff -Nru a/xen/common/page_alloc.c b/xen/common/page_alloc.c
--- a/xen/common/page_alloc.c 2005-05-19 05:04:31 -04:00
+++ b/xen/common/page_alloc.c 2005-05-19 05:04:31 -04:00
@@ -156,6 +156,8 @@

ps = round_pgup(ps);
pe = round_pgdown(pe);
+ if ( pe <= ps )
+ return;

map_free(ps >> PAGE_SHIFT, (pe - ps) >> PAGE_SHIFT);


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