mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-04-26 17:55:56 +00:00
hv: mmu: Move MEM_xx definition to common mmu.h
Tracked-On: #8830 Signed-off-by: Yifan Liu <yifan1.liu@intel.com> Reviewed-by: Fei, Li <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -10,6 +10,16 @@
|
||||
#include <asm/mmu.h>
|
||||
#include <pgtable.h>
|
||||
|
||||
/* Defines used for common memory sizes */
|
||||
#define MEM_1K 1024U
|
||||
#define MEM_2K (MEM_1K * 2U)
|
||||
#define MEM_4K (MEM_1K * 4U)
|
||||
#define MEM_1M (MEM_1K * 1024U)
|
||||
#define MEM_2M (MEM_1M * 2U)
|
||||
#define MEM_1G (MEM_1M * 1024U)
|
||||
#define MEM_2G (MEM_1G * 2UL)
|
||||
#define MEM_4G (MEM_1G * 4UL)
|
||||
|
||||
void set_paging_supervisor(uint64_t base, uint64_t size);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user