From 05407268902ba5cd50110800de8f77b09848811b Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 21 Sep 2016 14:47:45 -0600 Subject: [PATCH] Fix context_switch_unlock being optimized out --- arch/x86_64/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86_64/src/context.rs b/arch/x86_64/src/context.rs index 946330a..0816711 100644 --- a/arch/x86_64/src/context.rs +++ b/arch/x86_64/src/context.rs @@ -105,6 +105,6 @@ impl Context { /// Unset global lock, set inside of kernel #[no_mangle] -extern fn context_switch_unlock(){ +pub extern fn context_switch_unlock(){ CONTEXT_SWITCH_LOCK.store(false, Ordering::SeqCst); }