[PATCH 3/3] multiboot: Use the "reserved" type for non-ram zones

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 at whatever-company.com>
---
 kexec/arch/i386/kexec-multiboot-x86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/arch/i386/kexec-multiboot-x86.c b/kexec/arch/i386/kexec-multiboot-x86.c
index 4de237c..69027e2 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) */
 		}
 	}
 
-- 
2.1.4




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux