diff --git a/src/arch/aarch64/regs.rs b/src/arch/aarch64/regs.rs index 05d2052ba8c5aab5bd4c97cc8fae66548575dac0..7128a41643d7b6ee493531452fde3981b2118f8a 100644 --- a/src/arch/aarch64/regs.rs +++ b/src/arch/aarch64/regs.rs @@ -41,7 +41,7 @@ macro_rules! mrs { { let r; unsafe { - // TODO: If use 'nomem' option, the system will staff may beacuse of no assign type here + // TODO: If use 'nomem' option, the system will staff may because of no assign type here core::arch::asm!(concat!("mrs {0}, ", stringify!($reg)), out(reg) r, options(pure,readonly, nostack)); } r diff --git a/src/device/device_tree.rs b/src/device/device_tree.rs index 28857badbf2c6fe92a28deb3b79cc95c603145bd..f9e255cd7f7a42992bae22b1f6f1e537c9e65060 100644 --- a/src/device/device_tree.rs +++ b/src/device/device_tree.rs @@ -133,7 +133,7 @@ pub unsafe fn init_vm0_dtb(dtb: *mut fdt::myctypes::c_void) -> Result<()> { use crate::arch::PAGE_SIZE; let pi_fdt = PI4_DTB_ADDR as *mut fdt::myctypes::c_void; let len = round_up(fdt_size(pi_fdt) as usize, PAGE_SIZE) + PAGE_SIZE; - info!("fdt orignal size {}", len); + info!("fdt original size {}", len); let slice = core::slice::from_raw_parts(pi_fdt as *const u8, len as usize); SYSTEM_FDT.call_once(|| slice.to_vec()); } diff --git a/src/utils/unilib.rs b/src/utils/unilib.rs index d05d3183ab44f2917120cec54f9ff2e1d26b6934..0e655b9b3a901936161cf8f554b1d1ca179c2b97 100644 --- a/src/utils/unilib.rs +++ b/src/utils/unilib.rs @@ -34,13 +34,13 @@ pub struct UnilibFSCfg { name: [u8; 32], /// The "client" VM who owns this `UnilibFSCfg`, currently it should be our Unishyper. vmid: usize, - /// Size of FS opration buffer, it's provided by the MVM with HUGE_TLB enabled. + /// Size of FS operation buffer, it's provided by the MVM with HUGE_TLB enabled. cache_size: usize, - /// Virtual address of FS opration buffer, it's provided by the MVM with HUGE_TLB enabled. + /// Virtual address of FS operation buffer, it's provided by the MVM with HUGE_TLB enabled. buf_va: usize, - /// Intermediate physical address of FS opration buffer, it's provided by the MVM with HUGE_TLB enabled. + /// Intermediate physical address of FS operation buffer, it's provided by the MVM with HUGE_TLB enabled. buf_ipa: usize, - /// Acutal physical address of FS opration buffer, it's set by the hypervisor during `unilib_fs_append` process. + /// Acutal physical address of FS operation buffer, it's set by the hypervisor during `unilib_fs_append` process. buf_pa: usize, }