PG_* flags doesn't exists on ARM. As this code is not executed on this platform
(every guests use auto-translate address), it's possible to define as 0 the
flags.
mcl = np->rx_mcl + pages_flipped;
mmu = np->rx_mmu + pages_flipped;
+#ifdef __arm__
+# define PTE_FLAGS 0
+#else
+# define PTE_FLAGS (PG_RW | PG_V | PG_M | PG_A)
+#endif
MULTI_update_va_mapping(mcl, (u_long)vaddr,
- (((vm_paddr_t)mfn) << PAGE_SHIFT) | PG_RW |
- PG_V | PG_M | PG_A, 0);
+ (((vm_paddr_t)mfn) << PAGE_SHIFT) |
+ PTE_FLAGS, 0);
pfn = (uintptr_t)m->m_ext.ext_arg1;
mmu->ptr = ((vm_paddr_t)mfn << PAGE_SHIFT) |
MMU_MACHPHYS_UPDATE;