From 367f7ab3b7d7ea17848361f23bb8104d974a72dc Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 3 Nov 2017 23:45:42 +0000 Subject: [PATCH] Added method stub for interrupt handling. --- kernel/arch/i386/irq.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 kernel/arch/i386/irq.nim diff --git a/kernel/arch/i386/irq.nim b/kernel/arch/i386/irq.nim new file mode 100644 index 0000000..20e89d3 --- /dev/null +++ b/kernel/arch/i386/irq.nim @@ -0,0 +1,11 @@ +type + InterruptFrame = ptr object + ip: uint + cs: uint + flags: uint + sp: uint + ss: uint + +# http://clang.llvm.org/docs/AttributeReference.html#interrupt-avr +proc interrupt_handler(frame: InterruptFrame) {.exportc, codegenDecl: "__attribute__((interrupt)) $# $#$#".} = +