File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
platform/hyperv/arch/x86_64
support/nostd_spin_channel/src Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 33
44//! Hypercall interface for AArch64 architecture.
55
6- /// Writes a synthehtic register to tell the hypervisor the OS ID.
6+ /// Writes a synthetic register to tell the hypervisor the OS ID.
77fn report_os_id ( guest_os_id : u64 ) {
88 // On ARM64, to be able to make hypercalls, one needs first to set the Guest OS ID
99 // synthetic register using a hypercall. Can't use `Hvcall::set_register` at that will
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ static MUTEX: Mutex<()> = Mutex::new(());
2626fn no_op ( ) { }
2727
2828fn common_handler ( _stack_frame : InterruptStackFrame , interrupt : u8 ) {
29- // SAFETY: Handlers are initilizaed to no_op and only set via set_handler which is
29+ // SAFETY: Handlers are initialized to no_op and only set via set_handler which is
3030 // protected by a mutex.
3131 unsafe {
3232 HANDLERS [ interrupt as usize ] ( ) ;
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ use zerocopy::IntoBytes;
1212
1313use crate :: platform:: hyperv:: arch:: hypercall:: HvCall ;
1414
15- // avoiding inline for debuggability in release builds
15+ // avoiding inline for debuggability in release builds.
1616#[ inline( never) ]
1717#[ cfg( target_arch = "x86_64" ) ] // xtask-fmt allow-target-arch cpu-intrinsic
1818/// Invokes a hypercall specifically for switching to a VTL context.
1919///
2020/// # Safety
21- /// The caller must ensure that the hypercall is invoked in a context where it is safe to do so
21+ /// The caller must ensure that the hypercall is invoked in a context where it is safe to do so.
2222unsafe fn invoke_hypercall_vtl ( control : hvdef:: hypercall:: Control ) {
2323 // SAFETY: the caller guarantees the safety of this operation.
2424 unsafe {
@@ -189,7 +189,7 @@ impl HvCall {
189189 Ok ( context)
190190 }
191191
192- // avoiding inline for debuggability in release builds
192+ // avoiding inline for debuggability in release builds.
193193 #[ inline( never) ]
194194 /// Invokes the VtlCall hypercall.
195195 pub ( crate ) fn vtl_call ( ) {
@@ -200,7 +200,7 @@ impl HvCall {
200200 unsafe { invoke_hypercall_vtl ( control) } ;
201201 }
202202
203- // avoiding inline for debuggability in release builds
203+ // avoiding inline for debuggability in release builds.
204204 #[ inline( never) ]
205205 /// Invokes the VtlReturn hypercall.
206206 pub ( crate ) fn vtl_return ( ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub fn exec<T>(ctx: &mut T)
1414where
1515 T : VtlPlatformTrait + VirtualProcessorPlatformTrait < T > ,
1616{
17- // Skiping VTL setup for now to test the negitive case
17+ // Skipping VTL setup for now to test the negative case
1818
1919 let vp_count = ctx. get_vp_count ( ) ;
2020 tmk_assert ! ( vp_count. is_ok( ) , "get_vp_count should succeed" ) ;
Original file line number Diff line number Diff line change 66macro_rules! create_function_with_restore {
77 ( $func_name: ident, $symbol: ident) => {
88 #[ inline( never) ]
9- // avoiding inline for debuggability in release builds
9+ // avoiding inline for debuggability in release builds.
1010 fn $func_name( ) {
1111 // SAFETY: we are calling a function pointer and restoring all registers.
1212 unsafe {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use thiserror::Error;
1919
2020/// An unbounded channel implementation with priority send capability.
2121/// This implementation works in no_std environments using spin-rs.
22- /// It uses a VecDeque as the underlying buffer
22+ /// It uses a VecDeque as the underlying buffer.
2323pub struct Channel < T > {
2424 inner : Arc < ChannelInner < T > > ,
2525}
You can’t perform that action at this time.
0 commit comments