大家好,我现在在目标板(cpu是s3c2410)上写驱动,在跑驱动时中断总是申请不了,具体代码如下: ret = request_irq( IRQ_EINT0,EINT0_ISR,SA_INTERRUPT,"EINT0",NULL); if(ret < 0) { DEBUG_K("the EINT0 is failed
"); DEBUG_K("ret is %d
",(-ret)); goto over; } else DEBUG_K("have got the irq EINT0
"); 其中EINT0_ISR定义如下: static void EINT0_ISR(int irq, void * dev_id,struct pt_regs * regs); 请各位大侠帮个忙啊! |