diff --git a/docker/run.sh b/docker/run.sh index 75be4b261ea4b0d753534b6d05ce5c48031121a6..dedd710fca31762c18d821a533858ec825c6d0e5 100644 --- a/docker/run.sh +++ b/docker/run.sh @@ -3,7 +3,7 @@ set -ex mkdir -p /srv/shyper-runner/{config,cargo/{git,registry}} -# Allow non-priveleged runners to create files in our volumes. +# Allow non-privileged runners to create files in our volumes. chmod 777 /srv/shyper-runner/{config,cargo/{git,registry}} docker run -d --name shyper-runner --restart always \ diff --git a/src/arch/aarch64/smc.rs b/src/arch/aarch64/smc.rs index 838646962e94be74a52db511b0aa44caf1d23ff4..e59ac3ec0c3d3e42f61b4bd0dbecd3fb6849d1fb 100644 --- a/src/arch/aarch64/smc.rs +++ b/src/arch/aarch64/smc.rs @@ -16,7 +16,7 @@ use core::arch::asm; /// It is unsafe to call this function directly. /// The caller must ensure that /// x0 is defined as the SMC function number referenced in the SMC Calling Convention -/// than the args later must be valid for the specified SMC function. +/// then the args later must be valid for the specified SMC function. pub unsafe fn smc_call(x0: usize, x1: usize, x2: usize, x3: usize) -> (usize, usize, usize, usize) { #[cfg(target_arch = "aarch64")] { diff --git a/src/config/rk3588_def.rs b/src/config/rk3588_def.rs index 0e110c8dda77f7f67f95d09919cc51307d7d58bd..b2046bcafb49b4f5bbaef2ca0a6d5e5d2d529cd1 100644 --- a/src/config/rk3588_def.rs +++ b/src/config/rk3588_def.rs @@ -181,7 +181,7 @@ pub fn mvm_config_init() { }).collect(); pt_dev_config.regions.extend(&[ - // serial@feb5000——ttyFIQ + // serial@feb50000——ttyFIQ PassthroughRegion { ipa: 0xfeb50000, pa: 0xfeb50000, length: 0x100, dev_property: true }, // serial@feba000——ttyS7 PassthroughRegion { ipa: 0xfeba0000, pa: 0xfeba0000, length: 0x100, dev_property: true }, diff --git a/src/driver/uart/mod.rs b/src/driver/uart/mod.rs index 13fe4984639d0625c72d20cfa44b7f490ed9929e..bafc5c256bc943ba98dee4643045c2ef48b173b8 100644 --- a/src/driver/uart/mod.rs +++ b/src/driver/uart/mod.rs @@ -35,7 +35,7 @@ use crate::{ /// The base address for the UART device. const UART_BASE: usize = Platform::HYPERVISOR_UART_BASE; -// SAFETY: The reference of unart is a MMIO address +// SAFETY: The reference of uart is a MMIO address const UART: DeviceRef = unsafe { DeviceRef::new(UART_BASE as *const Uart) }; /// Sends a byte to the UART device, replacing '\n' with '\r\n'.