x86/xen: Build memory type conversion code conditionally
Subsystems (2)
PATCH 1/1 x86/xen: Build memory type conversion code conditionally
Xen is not aware of E820_PMEM and E820_PRAM memory types, so, build simply fails. Hence, build code referencing them conditionally.
--- kexec/arch/i386/kexec-x86-common.c | 4 ++++ 1 file changed, 4 insertions(+)
kexec/arch/i386/kexec-x86-common.c +4 -0
@@ -156,10 +156,14 @@ unsigned xen_e820_to_kexec_type(uint32_t type)return RANGE_ACPI ;case E820_NVS :return RANGE_ACPI_NVS ; +#ifdef E820_PMEM case E820_PMEM :return RANGE_PMEM ; +#endif +#ifdef E820_PRAM case E820_PRAM :return RANGE_PRAM ; +#endif case E820_RESERVED :default :return RANGE_RESERVED ;
Signature · 7 lines
1.7.10.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 4 lines · Daniel Kiper
Xen is not aware of
E820_PMEMandE820_PRAMmemory types, so, build simply fails. Hence, build code referencing them conditionally.Signed-off-by Daniel Kiper <[email protected]>
I believe this is fixed by
"x86: Make sure E820_PM[AE]M are defined if needed" which I applied a few moments ago.
Quoted 4 lines · Daniel Kiper
Xen is not aware of
E820_PMEMandE820_PRAMmemory types, so, build simply fails. Hence, build code referencing them conditionally.Signed-off-by Daniel Kiper <[email protected]>
I believe this is fixed by
"x86: Make sure E820_PM[AE]M are defined if needed" which I applied a few moments ago.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 9 lines · Simon Horman
Quoted 4 lines · Daniel Kiper
Xen is not aware of
E820_PMEMandE820_PRAMmemory types, so, build simply fails. Hence, build code referencing them conditionally.Signed-off-by Daniel Kiper <[email protected]>I believe this is fixed by
"x86: Make sure E820_PM[AE]M are defined if needed" which I applied a few moments ago.
Yep, it works. However, I think that separate #ifdef should be for E820_PMEM and E820_PRAM. Just my $0.05.
Daniel
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 9 lines · Simon Horman
Quoted 4 lines · Daniel Kiper
Xen is not aware of
E820_PMEMandE820_PRAMmemory types, so, build simply fails. Hence, build code referencing them conditionally.Signed-off-by Daniel Kiper <[email protected]>I believe this is fixed by
"x86: Make sure E820_PM[AE]M are defined if needed" which I applied a few moments ago.
Yep, it works. However, I think that separate #ifdef should be for E820_PMEM and E820_PRAM. Just my $0.05.
Daniel