Added method stub for interrupt handling.
This commit is contained in:
parent
92b1cffde6
commit
367f7ab3b7
11
kernel/arch/i386/irq.nim
Normal file
11
kernel/arch/i386/irq.nim
Normal 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)) $# $#$#".} =
|
||||
|
Loading…
Reference in New Issue
Block a user