mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:37:35 +00:00
Kernel+Userland: Add x86_64 registers to RegisterState/PtraceRegisters
This commit is contained in:
parent
10ca7f18a7
commit
233ef26e4d
13 changed files with 265 additions and 23 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Types.h>
|
||||
|
||||
struct [[gnu::packed]] PtraceRegisters {
|
||||
#if ARCH(I386)
|
||||
u32 eax;
|
||||
u32 ecx;
|
||||
u32 edx;
|
||||
|
@ -19,6 +20,26 @@ struct [[gnu::packed]] PtraceRegisters {
|
|||
u32 edi;
|
||||
u32 eip;
|
||||
u32 eflags;
|
||||
#else
|
||||
u64 rax;
|
||||
u64 rcx;
|
||||
u64 rdx;
|
||||
u64 rbx;
|
||||
u64 rsp;
|
||||
u64 rbp;
|
||||
u64 rsi;
|
||||
u64 rdi;
|
||||
u64 rip;
|
||||
u64 r8;
|
||||
u64 r9;
|
||||
u64 r10;
|
||||
u64 r11;
|
||||
u64 r12;
|
||||
u64 r13;
|
||||
u64 r14;
|
||||
u64 r15;
|
||||
u64 rflags;
|
||||
#endif
|
||||
u32 cs;
|
||||
u32 ss;
|
||||
u32 ds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue