1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:57:44 +00:00

CPU: Handle Debug exception

We currently only care about debug exceptions that are triggered
by the single-step execution mode.

The debug exception is translated to a SIGTRAP, which can be caught
and handled by the tracing thread.
This commit is contained in:
Itamar 2020-04-13 16:37:47 +03:00 committed by Andreas Kling
parent 1191ab9500
commit d04409b444
2 changed files with 32 additions and 3 deletions

View file

@ -480,6 +480,8 @@ inline FlatPtr offset_in_page(const void* address)
u32 read_cr3();
void write_cr3(u32);
u32 read_dr6();
class CPUID {
public:
CPUID(u32 function) { asm volatile("cpuid"