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:
Mingqiang Chi
2019-02-20 21:14:06 +08:00
committed by wenlingz
parent fb92d55bb5
commit ac7a8a7249
5 changed files with 5 additions and 12 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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