From 1340958cf43a9263170947cc5c7b289c2a8516a2 Mon Sep 17 00:00:00 2001 From: lixiang Date: Mon, 11 Nov 2024 19:05:54 +0800 Subject: [PATCH] submit some changes --- docker/run.sh | 2 +- src/arch/aarch64/smc.rs | 2 +- src/config/rk3588_def.rs | 2 +- src/driver/uart/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/run.sh b/docker/run.sh index 75be4b2..dedd710 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 8386469..e59ac3e 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 0e110c8..b2046bc 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 13fe498..bafc5c2 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'. -- Gitee