diff options
author | trimill <trimill@trimillxyz.org> | 2024-02-01 16:53:07 -0500 |
---|---|---|
committer | trimill <trimill@trimillxyz.org> | 2024-02-01 17:01:52 -0500 |
commit | c8c8d009f6a32e0f6856ab0f8167563021204de9 (patch) | |
tree | 9594ab04249ebec6e841c7a78d8bab4ceb1aeacf /src/arch/amd64/debugger.h | |
parent | follow the corn style guide (diff) | |
download | corn-c8c8d009f6a32e0f6856ab0f8167563021204de9.tar.gz corn-c8c8d009f6a32e0f6856ab0f8167563021204de9.tar.bz2 corn-c8c8d009f6a32e0f6856ab0f8167563021204de9.zip |
debugger
Diffstat (limited to 'src/arch/amd64/debugger.h')
-rw-r--r-- | src/arch/amd64/debugger.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/amd64/debugger.h b/src/arch/amd64/debugger.h new file mode 100644 index 0000000..e679c07 --- /dev/null +++ b/src/arch/amd64/debugger.h @@ -0,0 +1,9 @@ +#pragma once + +#include "idt.h" + +#define DEBUG_INT3 0x00 +#define DEBUG_DBG 0x01 +#define DEBUG_FAULT 0x02 + +void debugger(struct isr_regs *state, int cause); |