mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-10 12:32:45 +00:00
mmu: add cflush api
Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
parent
1c5d509f4d
commit
2943e43955
@ -376,6 +376,11 @@ static inline void *mmu_pt_for_pde(uint32_t *pd, uint32_t vaddr)
|
|||||||
asm volatile (" wbinvd\n" : : : "memory"); \
|
asm volatile (" wbinvd\n" : : : "memory"); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void clflush(volatile void *p)
|
||||||
|
{
|
||||||
|
asm volatile ("clflush (%0)" :: "r"(p));
|
||||||
|
}
|
||||||
|
|
||||||
/* External variable declarations */
|
/* External variable declarations */
|
||||||
extern uint8_t CPU_Boot_Page_Tables_Start_VM[];
|
extern uint8_t CPU_Boot_Page_Tables_Start_VM[];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user