# HG changeset patch
# User Tristan Gingold <tgingold@xxxxxxx>
# Date 1203830089 -3600
# Node ID 94f88355c04d5fb77f93b07918505711502511be
# Parent  9405d0ff17ab4e1934a9f17e956f78ad8b4ac5c0
Be sure console page is cleared.
This fixes a bug: by using pfn 0 for console, the page was not cleared.

Signed-off-by: Tristan Gingold <tgingold@xxxxxxx>

diff -r 9405d0ff17ab -r 94f88355c04d tools/libxc/ia64/xc_ia64_dom_fwloader.c
--- a/tools/libxc/ia64/xc_ia64_dom_fwloader.c	Sun Feb 24 06:08:30 2008 +0100
+++ b/tools/libxc/ia64/xc_ia64_dom_fwloader.c	Sun Feb 24 06:14:49 2008 +0100
@@ -58,9 +58,11 @@ static int alloc_magic_pages(struct xc_d
 static int alloc_magic_pages(struct xc_dom_image *dom)
 {
     /* allocate special pages */
-    dom->console_pfn = 0;
-    dom->xenstore_pfn = 1;
-    dom->start_info_pfn = 2;
+    /* Note: do not use 0 for console or xenstore otherwise clear_page won't
+       clear the page.  */
+    dom->start_info_pfn = 0;
+    dom->console_pfn = 1;
+    dom->xenstore_pfn = 2;
     return 0;
 }