Skip to content

Commit

Permalink
Kernel: Properly initialize r8-r15 for new threads on x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner authored and awesomekling committed Jun 30, 2021
1 parent cafccb8 commit 50839bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Kernel/Arch/x86/x86_64/Processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50839bd

Please sign in to comment.