[IA64] Include dummy EFI memory descriptors for unmapped ranges
authorawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Wed, 31 Jan 2007 06:35:32 +0000 (23:35 -0700)
committerawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Wed, 31 Jan 2007 06:35:32 +0000 (23:35 -0700)
This eliminates a lot of warnings about dom0 trying to do UC
mappings to WB ranges.  Linux doesn't deal well with holes within
a granule.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
xen/arch/ia64/xen/dom_fw.c

index b122a793cab76b8afbee526821bf030d863e4602..81304864720e03982eeb8c2636f879bdfe34c691 100644 (file)
@@ -599,7 +599,17 @@ complete_dom0_memmap(struct domain *d,
 
                case EFI_UNUSABLE_MEMORY:
                case EFI_PAL_CODE:
-                       /* Discard.  */
+                       /*
+                        * We don't really need these, but holes in the
+                        * memory map may cause Linux to assume there are
+                        * uncacheable ranges within a granule.
+                        */
+                       dom_md->type = EFI_UNUSABLE_MEMORY;
+                       dom_md->phys_addr = start;
+                       dom_md->virt_addr = 0;
+                       dom_md->num_pages = (end - start) >> EFI_PAGE_SHIFT;
+                       dom_md->attribute = EFI_MEMORY_WB;
+                       num_mds++;
                        break;
 
                default: