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:
parent
df7ffab441
commit
6c5bf4a642
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue