From c8c8d009f6a32e0f6856ab0f8167563021204de9 Mon Sep 17 00:00:00 2001 From: trimill Date: Thu, 1 Feb 2024 16:53:07 -0500 Subject: debugger --- src/arch/amd64/debugger.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/arch/amd64/debugger.h (limited to 'src/arch/amd64/debugger.h') 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); -- cgit v1.2.3-freya