mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-25 10:43:46 +00:00
dm: remove empty UOS E820 entries
While building the E820 map for UOS, [lowmem, lowmem_limit) and [5GB, highmem) can be empty. Remove the empty entries if they appear. Tracked-On: #2792 Signed-off-by: Peter Fang <peter.fang@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
@@ -39,8 +39,8 @@
|
||||
#define E820_TYPE_UNUSABLE 5 /* EFI 8 */
|
||||
|
||||
#define NUM_E820_ENTRIES 7
|
||||
#define LOWRAM_E820_ENTRIES 2
|
||||
#define HIGHRAM_E820_ENTRIES 6
|
||||
#define LOWRAM_E820_ENTRY 2
|
||||
#define HIGHRAM_E820_ENTRY 6
|
||||
|
||||
/* Defines a single entry in an E820 memory map. */
|
||||
struct e820_entry {
|
||||
|
Reference in New Issue
Block a user