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 ce50faf7ca
commit dc87afd2ac
6 changed files with 35 additions and 8 deletions

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)