mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 19:00:16 +00:00
hv:merge MACROs E820_MAX_ENTRIES and NUM_E820_ENTRIES
merge E820_MAX_ENTRIES and NUM_E820_ENTRIES to E820_MAX_ENTRIES. Tracked-On: #1842 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -33,6 +33,8 @@ struct e820_mem_params {
|
||||
uint64_t total_mem_size;
|
||||
};
|
||||
|
||||
extern const struct e820_entry ve820_entry[E820_MAX_ENTRIES];
|
||||
|
||||
/* HV read multiboot header to get e820 entries info and calc total RAM info */
|
||||
void init_e820(void);
|
||||
|
||||
|
@@ -281,15 +281,6 @@ typedef int32_t (*vm_sw_loader_t)(struct acrn_vm *vm);
|
||||
extern vm_sw_loader_t vm_sw_loader;
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
/*
|
||||
* Default e820 mem map:
|
||||
*
|
||||
* Assumption is every VM launched by ACRN in partition mode uses 2G of RAM.
|
||||
* there is reserved memory of 64K for MPtable and PCI hole of 512MB
|
||||
*/
|
||||
#define NUM_E820_ENTRIES 5U
|
||||
extern const struct e820_entry ve820_entry[NUM_E820_ENTRIES];
|
||||
|
||||
uint16_t get_vm_pcpu_nums(struct acrn_vm_config *vm_config);
|
||||
void vrtc_init(struct acrn_vm *vm);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user