diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-17 23:49:32 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-17 23:49:32 +0200 |
commit | 56c1f9db8e5e1f289858632acd3e84f419d6b267 (patch) | |
tree | 7bef6b37089b863234d0b1854140e88b33becc61 /Kernel/i386.h | |
parent | 77299cf54d02066e37340cb7533ee6a070dd4166 (diff) | |
download | serenity-56c1f9db8e5e1f289858632acd3e84f419d6b267.zip |
A userspace process can now GPF and the OS goes on!
This is really rickety, but it kinda sorta works for my test GPF!
Diffstat (limited to 'Kernel/i386.h')
-rw-r--r-- | Kernel/i386.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Kernel/i386.h b/Kernel/i386.h index 86c8003fb9..c96001af22 100644 --- a/Kernel/i386.h +++ b/Kernel/i386.h @@ -75,3 +75,23 @@ void writeGDTEntry(WORD selector, Descriptor&); /* Map IRQ0-15 @ ISR 0x50-0x5F */ #define IRQ_VECTOR_BASE 0x50 + +struct RegisterDump { + WORD gs; + WORD fs; + WORD es; + WORD ds; + DWORD edi; + DWORD esi; + DWORD ebp; + DWORD esp; + DWORD ebx; + DWORD edx; + DWORD ecx; + DWORD eax; + DWORD eip; + WORD cs; + WORD __csPadding; + DWORD eflags; +} PACKED; + |