aarch64: context::switch: update the CONTEXT_SWITCH_LOCK

This commit is contained in:
Robin Randhawa
2021-01-15 19:03:42 +00:00
parent 6677cfbf1e
commit 5bc9dea242

View File

@@ -239,6 +239,8 @@ impl Context {
llvm_asm!("mov $0, sp" : "=r"(self.sp) : : "memory" : "volatile");
llvm_asm!("mov sp, $0" : : "r"(next.sp) : "memory" : "volatile");
CONTEXT_SWITCH_LOCK.store(false, Ordering::SeqCst);
}
}