hv: use per platform maximum physical address width

MAXIMUM_PA_WIDTH will be calculated from board information.

Tracked-On: #6357
Signed-off-by: Liang Yi <yi.liang@intel.com>
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Liang Yi
2021-08-09 14:39:47 +08:00
committed by wenlingz
parent 2b3620de7d
commit 499f62e8bd
2 changed files with 5 additions and 1 deletions

View File

@@ -8,12 +8,12 @@
#define PAGE_H
#include <asm/lib/spinlock.h>
#include <board_info.h>
#define PAGE_SHIFT 12U
#define PAGE_SIZE (1U << PAGE_SHIFT)
#define PAGE_MASK 0xFFFFFFFFFFFFF000UL
#define MAXIMUM_PA_WIDTH 46U /* maximum physical-address width */
#define MAX_PHY_ADDRESS_SPACE (1UL << MAXIMUM_PA_WIDTH)
/* size of the low MMIO address space: 2GB */