aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/e820.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-30 11:01:39 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-30 11:01:39 +0100
commit5e9b89146b50610c636c6b1729fded12488ea0b2 (patch)
tree0a21dc845a75d1dbacbb92d32e9e8f767e5fddae /xen/arch/x86/e820.c
parentf57dc30e307d561093da5bf95d6bd45673997783 (diff)
downloadxen-5e9b89146b50610c636c6b1729fded12488ea0b2.tar.gz
xen-5e9b89146b50610c636c6b1729fded12488ea0b2.tar.bz2
xen-5e9b89146b50610c636c6b1729fded12488ea0b2.zip
xen: Understand the E820_UNUSABLE (type code 5) memory type.
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/e820.c')
-rw-r--r--xen/arch/x86/e820.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c
index 797ccc0a7e..835a0f76f3 100644
--- a/xen/arch/x86/e820.c
+++ b/xen/arch/x86/e820.c
@@ -41,7 +41,8 @@ static void __init print_e820_memory_map(struct e820entry *map, int entries)
(unsigned long long)(map[i].addr),
(unsigned long long)(map[i].addr + map[i].size));
switch (map[i].type) {
- case E820_RAM: printk("(usable)\n");
+ case E820_RAM:
+ printk("(usable)\n");
break;
case E820_RESERVED:
printk("(reserved)\n");
@@ -52,7 +53,11 @@ static void __init print_e820_memory_map(struct e820entry *map, int entries)
case E820_NVS:
printk("(ACPI NVS)\n");
break;
- default: printk("type %u\n", map[i].type);
+ case E820_UNUSABLE:
+ printk("(unusable)\n");
+ break;
+ default:
+ printk("type %u\n", map[i].type);
break;
}
}