aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/interrupt_handling
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-03-29 14:47:04 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-03-29 14:47:04 +0000
commitaba154ad01fc0e1e1274f2582b1493e78daa2559 (patch)
tree15aad40a97406a76e466191ef7afc5ed4ab10006 /arch/x86_64/src/interrupt_handling
parent98be1b722f17e77880e8c0b0f464a9ba31230fc4 (diff)
downloadteachos-aba154ad01fc0e1e1274f2582b1493e78daa2559.tar.xz
teachos-aba154ad01fc0e1e1274f2582b1493e78daa2559.zip
fix gdt segments, improve idt and trial&error for triple fault
Diffstat (limited to 'arch/x86_64/src/interrupt_handling')
-rw-r--r--arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp b/arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp
new file mode 100644
index 0000000..68b4568
--- /dev/null
+++ b/arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp
@@ -0,0 +1,14 @@
+#include "arch/interrupt_handling/generic_interrupt_handler.hpp"
+
+#include "arch/video/vga/text.hpp"
+
+namespace teachos::arch::interrupt_handling
+{
+
+ [[gnu::interrupt]]
+ auto generic_interrupt_handler(interrupt_frame * frame) -> void
+ {
+ (void)frame;
+ video::vga::text::write("An Interrupt occurred.", video::vga::text::common_attributes::green_on_black);
+ }
+} // namespace teachos::arch::interrupt_handling \ No newline at end of file