From 6940cabd2230b4b0938b161fc063597b906e9724 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Fri, 31 May 2019 09:59:22 +0800 Subject: [PATCH] HV: modify ve820 to enable low mem at 0x100000 Some OS like Zephyr need to run at 0x100000, so modify the ve820 table accordingly; Tracked-On: #3214 Signed-off-by: Victor Sun Reviewed-by: Jason Chen CJ --- hypervisor/arch/x86/configs/apl-mrb/ve820.c | 4 ++-- hypervisor/arch/x86/configs/dnv-cb2/ve820.c | 4 ++-- hypervisor/arch/x86/configs/nuc7i7bnh/ve820.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hypervisor/arch/x86/configs/apl-mrb/ve820.c b/hypervisor/arch/x86/configs/apl-mrb/ve820.c index ccf096a84..e32c61fbb 100644 --- a/hypervisor/arch/x86/configs/apl-mrb/ve820.c +++ b/hypervisor/arch/x86/configs/apl-mrb/ve820.c @@ -22,8 +22,8 @@ static const struct e820_entry ve820_entry[VE820_ENTRIES_APL_MRB] = { }, { /* lowmem */ - .baseaddr = 0x200000UL, /* 2MB */ - .length = 0x1FE00000UL, /* 510MB */ + .baseaddr = 0x100000UL, /* 1MB */ + .length = 0x1FF00000UL, /* 511MB */ .type = E820_TYPE_RAM }, diff --git a/hypervisor/arch/x86/configs/dnv-cb2/ve820.c b/hypervisor/arch/x86/configs/dnv-cb2/ve820.c index 1fb23d237..3eade9050 100644 --- a/hypervisor/arch/x86/configs/dnv-cb2/ve820.c +++ b/hypervisor/arch/x86/configs/dnv-cb2/ve820.c @@ -22,8 +22,8 @@ static const struct e820_entry ve820_entry[VE820_ENTRIES_DNV_CB2] = { }, { /* lowmem */ - .baseaddr = 0x200000UL, /* 2MB */ - .length = 0x7FE00000UL, /* 2046MB */ + .baseaddr = 0x100000UL, /* 1MB */ + .length = 0x7FF00000UL, /* 2047MB */ .type = E820_TYPE_RAM }, diff --git a/hypervisor/arch/x86/configs/nuc7i7bnh/ve820.c b/hypervisor/arch/x86/configs/nuc7i7bnh/ve820.c index d73d0447c..15cd258ed 100644 --- a/hypervisor/arch/x86/configs/nuc7i7bnh/ve820.c +++ b/hypervisor/arch/x86/configs/nuc7i7bnh/ve820.c @@ -22,8 +22,8 @@ static const struct e820_entry ve820_entry[VE820_ENTRIES_KBL_NUC_i7] = { }, { /* lowmem */ - .baseaddr = 0x200000UL, /* 2MB */ - .length = 0x1FE00000UL, /* 510MB */ + .baseaddr = 0x100000UL, /* 1MB */ + .length = 0x1FF00000UL, /* 511MB */ .type = E820_TYPE_RAM },