[Patch v3] Add persistent memory support
Baoquan He
bhe at redhat.com
Wed Sep 23 02:23:56 PDT 2015
On 09/23/15 at 10:33am, Petr Tesarik wrote:
> kexec/arch/i386/kexec-x86-common.c:158:8: note: each undeclared identifier is reported only once for each function it appears in
> kexec/arch/i386/kexec-x86-common.c:160:8: error: ‘E820_PRAM’ undeclared (first use in this function)
> case E820_PRAM:
> ^
> Makefile:113: návod pro cíl „kexec/arch/i386/kexec-x86-common.o“ selhal
> make: *** [kexec/arch/i386/kexec-x86-common.o] Chyba 1
>
> This happens, because other E820_* macros are defined
> in /usr/include/xenctrl.h, but not E820_PMEM and E820_PRAM.
>
> I'm unsure how to fix it.
Or if xen doesn't support these 2 memory types, I can revert below
change for xen:
@@ -149,6 +155,10 @@ unsigned xen_e820_to_kexec_type(uint32_t type)
return RANGE_ACPI;
case E820_NVS:
return RANGE_ACPI_NVS;
+ case E820_PMEM:
+ return RANGE_PMEM;
+ case E820_PRAM:
+ return RANGE_PRAM;
case E820_RESERVED:
default:
return RANGE_RESERVED;
More information about the kexec
mailing list