gcc --- __attribute __((interrupt(irq))) [英] gcc --- __attribute__((interrupt( irq )))
问题描述
我开始使用arm的设备驱动程序...在每个处理程序中我都看到--- __attribute__((interrupt( irq )))
-..我很困惑此属性如何调用我们的驱动程序.. ??
i started with device driver for arm ... there i saw for each handler mention --- __attribute__((interrupt( irq )))
-.I am confused how this attribute will place a call to our driver routine ..??
机械臂的IRQ具有以下向量地址-0x00000018(或0xFFFF0018) 由于同一行上可以有许多中断处理程序.假设我们有4个设备驱动程序,每个驱动程序都有自己的IRQ.
IRQ of arm have following Vector address--- 0x00000018 (or 0xFFFF0018) As there can be many interrupt handler on same line. Suppose if we have 4 device driver each with its own IRQ to be reistered.
意味着GCC编译器将为IRQ处理程序&提供一些启动代码.编译器将在该中断处理程序的启动代码中调用例程.
Means some startup code will be provided by the GCC compiler for the IRQ handler & compiler will place call to our routine in that startup code for interrupt handler ..... Am i right ...?