aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/interrupt_handling
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-27 09:32:59 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-04-27 09:32:59 +0000
commit5f149faeb9d41bb56733075b0e56908b3731d38d (patch)
tree92e58f90cfefed50b25026cc8887d74f7245811a /arch/x86_64/src/interrupt_handling
parent0986058bb9ca5b4afd7c578c815dc3a4c08808a9 (diff)
downloadteachos-5f149faeb9d41bb56733075b0e56908b3731d38d.tar.xz
teachos-5f149faeb9d41bb56733075b0e56908b3731d38d.zip
Move gnu function attributes to header file
Diffstat (limited to 'arch/x86_64/src/interrupt_handling')
-rw-r--r--arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp3
1 files changed, 0 insertions, 3 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 7afd87d..60fb50c 100644
--- a/arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp
+++ b/arch/x86_64/src/interrupt_handling/generic_interrupt_handler.cpp
@@ -4,15 +4,12 @@
namespace teachos::arch::interrupt_handling
{
-
- [[gnu::interrupt]] [[gnu::section(".interrupt_text")]]
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);
}
- [[gnu::interrupt]] [[gnu::section(".interrupt_text")]]
auto syscall_interrupt_handler(interrupt_frame * frame) -> void
{
// RDI, RSI, RDX, RCX, R8, R9