[pvmfw] Move assembly wrappers to vmbase for reuse
In both pvmfw and rialo.
Test: atest libpvmfw.bootargs.test
Test: m pvmfw_img
Bug: 282928116
Change-Id: If93cfca26cddcc27aca15baae85a0f7609160c42
diff --git a/pvmfw/src/memory.rs b/pvmfw/src/memory.rs
index 2f6e7a4..c316dd2 100644
--- a/pvmfw/src/memory.rs
+++ b/pvmfw/src/memory.rs
@@ -18,7 +18,6 @@
use crate::helpers::{self, dbm_available, page_4kb_of, RangeExt, PVMFW_PAGE_SIZE, SIZE_4MB};
use crate::mmu;
-use crate::{dsb, isb, read_sysreg, tlbi, write_sysreg};
use aarch64_paging::paging::{Attributes, Descriptor, MemoryRegion as VaRange};
use alloc::alloc::alloc_zeroed;
use alloc::alloc::dealloc;
@@ -41,6 +40,7 @@
use once_cell::race::OnceBox;
use spin::mutex::SpinMutex;
use tinyvec::ArrayVec;
+use vmbase::{dsb, isb, read_sysreg, tlbi, write_sysreg};
/// Base of the system's contiguous "main" memory.
pub const BASE_ADDR: usize = 0x8000_0000;