美文网首页
修改系统时钟中断调试僵死问题

修改系统时钟中断调试僵死问题

作者: sgy1993 | 来源:发表于2017-08-05 21:27 被阅读0次
# cat proc/interrupts 
           CPU0
 30:       3975         s3c  S3C2410 Timer Tick
static void __init s3c2410_timer_init (void)
{
    s3c2410_timer_setup();
    setup_irq(IRQ_TIMER4, &s3c2410_timer_irq);
}

四. 修改内核来定位系统僵死问题
./firstdrvtest on 
asm_do_IRQ => s3c2410_timer_interrupt : pid = 752, task name = firstdrvtest
pc = bf000084
asm_do_IRQ => s3c2410_timer_interrupt : pid = 752, task name = firstdrvtest
pc = bf000084   // 对于中断, pc-4才是发生中断瞬间的地址,知道了pc值,然后反汇编出错的应用程序,找到对应的地方.

相关文章

网友评论

      本文标题:修改系统时钟中断调试僵死问题

      本文链接:https://www.haomeiwen.com/subject/sglylxtx.html