diff options
author | Baoquan He <bhe@redhat.com> | 2015-08-19 17:03:49 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-09-02 10:03:16 +0900 |
commit | cb9a818ff2ac437e76512ec01c0eb22d0d7456b2 (patch) | |
tree | 228c166633c2add75ed95ca4974725b440f18bfa /kexec/arch/i386/x86-linux-setup.c | |
parent | c9c21cc107dcc9b6053e39ead1069e03717513f9 (diff) |
Add persistent memory support
Kernel add E820_PRAM or E820_PMEM type for NVDIMM memory device.
Now support them in kexec too.
Reported-by: Toshi Kani <toshi.kani@hp.com>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/x86-linux-setup.c')
-rw-r--r-- | kexec/arch/i386/x86-linux-setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup.c index 9271c6c..c75adaa 100644 --- a/kexec/arch/i386/x86-linux-setup.c +++ b/kexec/arch/i386/x86-linux-setup.c @@ -705,6 +705,12 @@ static void add_e820_map_from_mr(struct x86_linux_param_header *real_mode, case RANGE_ACPI_NVS: e820[i].type = E820_NVS; break; + case RANGE_PMEM: + e820[i].type = E820_PMEM; + break; + case RANGE_PRAM: + e820[i].type = E820_PRAM; + break; default: case RANGE_RESERVED: e820[i].type = E820_RESERVED; |