push/pop r15 when entering/leaving kernel space (fix for bug #53: r15 wasn't propagated during fork())

This commit is contained in:
Balazs Gerofi bgerofi@riken.jp
2014-07-10 13:53:12 +09:00
parent 36cff84e05
commit 31a605f94b
2 changed files with 8 additions and 6 deletions

View File

@ -136,7 +136,7 @@ struct tss64 {
} __attribute__((packed));
struct x86_regs {
unsigned long r11, r10, r9, r8;
unsigned long r15, r11, r10, r9, r8;
unsigned long rdi, rsi, rdx, rcx, rbx, rax, rbp;
unsigned long error, rip, cs, rflags, rsp, ss;
};