summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <s.munaut@whatever-company.com>2016-08-26 12:46:16 +0000
committerSimon Horman <horms@verge.net.au>2016-10-07 11:54:44 +0900
commit6e8804f9ca67bee65aedd5e1cdf504737ab5c7ed (patch)
tree095475e0781476b3c2195b6ac88a3bd1248b4736
parent53634c3e9a0c84b8bf262cfe88aa540a07d90b57 (diff)
downloadkexec-tools-6e8804f9ca67bee65aedd5e1cdf504737ab5c7ed.tar.gz
multiboot: Use the "reserved" type for non-ram zones
Seems that Xen actually checks for some zones to be 'reserved' and complains if they are not. This also matches what the bios uses at boot. Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/i386/kexec-multiboot-x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/i386/kexec-multiboot-x86.c b/kexec/arch/i386/kexec-multiboot-x86.c
index 4de237c0..69027e2d 100644
--- a/kexec/arch/i386/kexec-multiboot-x86.c
+++ b/kexec/arch/i386/kexec-multiboot-x86.c
@@ -278,7 +278,7 @@ int multiboot_x86_load(int argc, char **argv, const char *buf, off_t len,
&& (range[i].end > mem_upper + 0x100000))
mem_upper = range[i].end - 0x100000;
} else {
- mmap[i].Type = 0xbad; /* Not RAM */
+ mmap[i].Type = 2; /* Not RAM (reserved) */
}
}