mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
hv: riscv: add check for other memory mode
Check whether SV48 is supported, panic if not. Tracked-On: #8831 Signed-off-by: hangliu1 <hang1.liu@intel.com> Reviewed-by: Liu, Yifan1 <yifan1.liu@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <asm/page.h>
|
||||
#include <asm/pgtable.h>
|
||||
|
||||
static inline void switch_satp(uint64_t satp)
|
||||
static inline void set_satp(uint64_t satp)
|
||||
{
|
||||
asm volatile (
|
||||
"csrw satp, %0\n\t" \
|
||||
|
||||
Reference in New Issue
Block a user