From b042f40847fcaad4d7612412e90aae37a2571003 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Tue, 13 Sep 2016 20:31:45 -0600 Subject: [PATCH] Fix userspace clone by clobbering all variables on clone --- syscall/process.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/syscall/process.rs b/syscall/process.rs index c4f846ba..3a511fb1 100644 --- a/syscall/process.rs +++ b/syscall/process.rs @@ -82,10 +82,6 @@ pub fn clone(flags: usize, stack_base: usize) -> Result<usize> { pid = context.id; } - println!("Clone {}", pid); - - unsafe { asm!("xchg bx, bx" : : : : "intel", "volatile"); } - unsafe { context::switch(); } Ok(pid) -- GitLab