Fix userspace clone by clobbering all variables on clone
This commit is contained in:
parent
ce50faf7ca
commit
dc87afd2ac
6 changed files with 35 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue