mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:57:34 +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:
parent
1191ab9500
commit
d04409b444
2 changed files with 32 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue