hv: enhance e820_alloc_memory could allocate memory than 4G

Enhance e820_alloc_memory could allocate memory than 4G.

Tracked-On: #5830
Signed-off-by: Fei Li <fei1.li@intel.com>
This commit is contained in:
Fei Li
2021-10-14 11:08:34 +08:00
committed by wenlingz
parent df7ffab441
commit 6c5bf4a642
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ struct mem_range {
/* HV read multiboot header to get e820 entries info and calc total RAM info */
void init_e820(void);
uint64_t e820_alloc_memory(uint32_t size_arg, uint64_t max_addr);
uint64_t e820_alloc_memory(uint64_t size_arg, uint64_t max_addr);
/* get total number of the e820 entries */
uint32_t get_e820_entries_count(void);