hv: replace CPU_PAGE_SHIFT with PAGE_SHIFT

- replace CPU_PAGE_SHIFT with PAGE_SHIFT
  These two MACROs are duplicated and PAGE_SHIFT is a more
  reasonable name.
- remove unused MACROs related to page shift in cpu.h

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Shiqing Gao
2018-12-03 09:28:37 +08:00
committed by wenlingz
parent 2f15d3569c
commit 0f766ca6b8
5 changed files with 8 additions and 13 deletions

View File

@@ -39,12 +39,8 @@
#define CPU_H
/* Define page size */
#define CPU_PAGE_SHIFT 12U
#define CPU_PAGE_MASK 0xFFFFFFFFFFFFF000UL
#define MMU_PTE_PAGE_SHIFT CPU_PAGE_SHIFT
#define MMU_PDE_PAGE_SHIFT 21U
/* Define CPU stack alignment */
#define CPU_STACK_ALIGN 16UL