diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-03-01 05:32:38 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-04 20:07:05 +0100 |
commit | 23f6a00162d5c784a977faafc1c9960022d6dc0b (patch) | |
tree | 864b8461c15c20c94cd66a7038db9e53493f3e37 /Kernel/Arch | |
parent | 88d7bf736279ee7245ccef4f36f71d829b2f7f2c (diff) | |
download | serenity-23f6a00162d5c784a977faafc1c9960022d6dc0b.zip |
Kernel: Fix silly unintentional use of operator,
Everyone's favourite activity, copy pasta, has produced yet another
confusing use of operator,; fix this and make it less confusing.
Diffstat (limited to 'Kernel/Arch')
-rw-r--r-- | Kernel/Arch/x86/RegisterState.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Kernel/Arch/x86/RegisterState.h b/Kernel/Arch/x86/RegisterState.h index 4588726143..bc48812bac 100644 --- a/Kernel/Arch/x86/RegisterState.h +++ b/Kernel/Arch/x86/RegisterState.h @@ -131,26 +131,26 @@ static_assert(AssertSize<RegisterState, REGISTER_STATE_SIZE>()); inline void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, const RegisterState& kernel_regs) { #if ARCH(I386) - ptrace_regs.eax = kernel_regs.eax, - ptrace_regs.ecx = kernel_regs.ecx, - ptrace_regs.edx = kernel_regs.edx, - ptrace_regs.ebx = kernel_regs.ebx, - ptrace_regs.esp = kernel_regs.userspace_esp, - ptrace_regs.ebp = kernel_regs.ebp, - ptrace_regs.esi = kernel_regs.esi, - ptrace_regs.edi = kernel_regs.edi, - ptrace_regs.eip = kernel_regs.eip, - ptrace_regs.eflags = kernel_regs.eflags, + ptrace_regs.eax = kernel_regs.eax; + ptrace_regs.ecx = kernel_regs.ecx; + ptrace_regs.edx = kernel_regs.edx; + ptrace_regs.ebx = kernel_regs.ebx; + ptrace_regs.esp = kernel_regs.userspace_esp; + ptrace_regs.ebp = kernel_regs.ebp; + ptrace_regs.esi = kernel_regs.esi; + ptrace_regs.edi = kernel_regs.edi; + ptrace_regs.eip = kernel_regs.eip; + ptrace_regs.eflags = kernel_regs.eflags; #else - ptrace_regs.rax = kernel_regs.rax, - ptrace_regs.rcx = kernel_regs.rcx, - ptrace_regs.rdx = kernel_regs.rdx, - ptrace_regs.rbx = kernel_regs.rbx, - ptrace_regs.rsp = kernel_regs.userspace_rsp, - ptrace_regs.rbp = kernel_regs.rbp, - ptrace_regs.rsi = kernel_regs.rsi, - ptrace_regs.rdi = kernel_regs.rdi, - ptrace_regs.rip = kernel_regs.rip, + ptrace_regs.rax = kernel_regs.rax; + ptrace_regs.rcx = kernel_regs.rcx; + ptrace_regs.rdx = kernel_regs.rdx; + ptrace_regs.rbx = kernel_regs.rbx; + ptrace_regs.rsp = kernel_regs.userspace_rsp; + ptrace_regs.rbp = kernel_regs.rbp; + ptrace_regs.rsi = kernel_regs.rsi; + ptrace_regs.rdi = kernel_regs.rdi; + ptrace_regs.rip = kernel_regs.rip; ptrace_regs.r8 = kernel_regs.r8; ptrace_regs.r9 = kernel_regs.r9; ptrace_regs.r10 = kernel_regs.r10; |