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

@ -126,7 +126,16 @@ macro_rules! interrupt_error {
}
// Push scratch registers
asm!("push rax
asm!("xchg bx, bx
pop rax # Error
pop rbx # RIP
pop rcx # CS
pop rdx # RFLAGS
pop rsi # RSP
pop rdi # SS
cli
hlt
push rax
push rcx
push rdx
push rdi