Added method stub for interrupt handling.

This commit is contained in:
neviyn 2017-11-03 23:45:42 +00:00
parent 92b1cffde6
commit 367f7ab3b7

11
kernel/arch/i386/irq.nim Normal file
View File

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