Fix userspace clone by clobbering all variables on clone

This commit is contained in:
Jeremy Soller
2016-09-13 20:31:45 -06:00
parent d3ace7dcad
commit b042f40847

View File

@@ -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)