mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
Kernel: Properly initialize r8-r15 for new threads on x86_64
This commit is contained in:
parent
cafccb866c
commit
50839bd1f1
1 changed files with 8 additions and 0 deletions
|
@ -109,6 +109,14 @@ FlatPtr Processor::init_context(Thread& thread, bool leave_crit)
|
|||
iretframe.rdx = regs.rdx;
|
||||
iretframe.rcx = regs.rcx;
|
||||
iretframe.rax = regs.rax;
|
||||
iretframe.r8 = regs.r8;
|
||||
iretframe.r9 = regs.r9;
|
||||
iretframe.r10 = regs.r10;
|
||||
iretframe.r11 = regs.r11;
|
||||
iretframe.r12 = regs.r12;
|
||||
iretframe.r13 = regs.r13;
|
||||
iretframe.r14 = regs.r14;
|
||||
iretframe.r15 = regs.r15;
|
||||
iretframe.rflags = regs.rflags;
|
||||
iretframe.rip = regs.rip;
|
||||
iretframe.cs = regs.cs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue