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

@@ -34,7 +34,7 @@ static struct e820_entry hv_e820[E820_MAX_ENTRIES];
* @pre (size_arg & 0xFFFU) == 0U
* @return base address of the memory region
*/
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)
{
int32_t i;
uint64_t size = size_arg;