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)) $# $#$#".} = +