aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/interrupt_handling
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-04-17 14:15:39 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-04-17 14:15:39 +0000
commit65718b1470a9b6bfac3520587263c5374f4a4419 (patch)
treecfd952c4bec62cc5210faa0aacd10f3381026943 /arch/x86_64/src/interrupt_handling
parent8975c5fe091150245fd58a0a42a83b4f41d454e0 (diff)
parent576a7a95b2462ec4938de9fe344657ca04b2ba34 (diff)
downloadteachos-65718b1470a9b6bfac3520587263c5374f4a4419.tar.xz
teachos-65718b1470a9b6bfac3520587263c5374f4a4419.zip
Merge branch 'syscall_interrupt_handler' into feat_inital_context_switching
Diffstat (limited to 'arch/x86_64/src/interrupt_handling')
-rw-r--r--arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp7
1 files changed, 7 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
index 4392b04..6075770 100644
--- a/arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp
+++ b/arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp
@@ -11,4 +11,11 @@ namespace teachos::arch::interrupt_handling
(void)frame;
video::vga::text::write("An Interrupt occurred.", video::vga::text::common_attributes::green_on_black);
}
+
+ [[gnu::interrupt]] [[gnu::section(".interrupt_text")]]
+ auto syscall_interrupt_handler(interrupt_frame * frame) -> void
+ {
+ (void)frame;
+ video::vga::text::write("A SYSCALL interrupt occurred.", video::vga::text::common_attributes::green_on_black);
+ }
} // namespace teachos::arch::interrupt_handling