diff --git a/kernel/src/swap.rs b/kernel/src/swap.rs index d6979dae0..ae6340aa4 100644 --- a/kernel/src/swap.rs +++ b/kernel/src/swap.rs @@ -553,6 +553,7 @@ impl Swap { let working_stack_ptr: usize = EXCEPTION_STACK_TOP - self.oom_stack_backing.len() * core::mem::size_of::(); unsafe { + #[rustfmt::skip] core::arch::asm!( "mv a7, {working_stack_end}", "mv a6, {working_stack_ptr}", @@ -569,7 +570,7 @@ impl Swap { working_stack_ptr = in(reg) working_stack_ptr, backup_stack_ptr = in(reg) backup_stack_ptr, current_sp = out(reg) current_sp, - ) + ); } // this assert will hopefully save us during CI testing if parameters changed and we have to fix them // the assert itself would modify stack, but, we're on the path to a panic so that's OK @@ -588,6 +589,7 @@ impl Swap { let working_restore_ptr: usize = EXCEPTION_STACK_TOP - self.oom_stack_backing.len() * core::mem::size_of::(); unsafe { + #[rustfmt::skip] core::arch::asm!( "mv a7, {working_restore_end}", "mv a6, {working_restore_ptr}", @@ -602,7 +604,7 @@ impl Swap { working_restore_end = in(reg) working_restore_end, working_restore_ptr = in(reg) working_restore_ptr, restore_stack_ptr = in(reg) restore_stack_ptr, - ) + ); } #[cfg(feature = "debug-swap-verbose")]