mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +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:
@@ -7,7 +7,7 @@
|
||||
#include <hypervisor.h>
|
||||
#include <e820.h>
|
||||
|
||||
const struct e820_entry ve820_entry[NUM_E820_ENTRIES] = {
|
||||
const struct e820_entry ve820_entry[E820_MAX_ENTRIES] = {
|
||||
{ /* 0 to mptable */
|
||||
.baseaddr = 0x0U,
|
||||
.length = 0xEFFFFU,
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include <hypervisor.h>
|
||||
#include <e820.h>
|
||||
|
||||
const struct e820_entry ve820_entry[NUM_E820_ENTRIES] = {
|
||||
const struct e820_entry ve820_entry[E820_MAX_ENTRIES] = {
|
||||
{ /* 0 to mptable */
|
||||
.baseaddr = 0x0U,
|
||||
.length = 0xEFFFFU,
|
||||
|
@@ -126,7 +126,7 @@ uint16_t get_vm_pcpu_nums(struct acrn_vm_config *vm_config)
|
||||
*/
|
||||
static void create_prelaunched_vm_e820(struct acrn_vm *vm)
|
||||
{
|
||||
vm->e820_entry_num = NUM_E820_ENTRIES;
|
||||
vm->e820_entry_num = E820_MAX_ENTRIES;
|
||||
vm->e820_entries = (struct e820_entry *)ve820_entry;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user