网站公告列表

  没有公告

加入收藏
设为首页
联系本站
您现在的位置: AnalogCN安诺电子 >> 文章 >> 技术交流 >> 文章正文
  uclinux-2008r1-rc8(bf561)的中断处理(6):__common_int_entry           ★★★ 【字体:
uclinux-2008r1-rc8(bf561)的中断处理(6):__common_int_entry
作者:快乐虾    文章来源:http://blog.csdn.net/lights_joy    点击数:    更新时间:2008-5-26    
实际上,uclinux内核对中断6到中断13的处理,都是调用这个函数进行处理的,且在参数中给出中断掩码的位置。
这个函数的实现在arch\blackfin\mach-common\interrupt.S中:
/* Common interrupt entry code. First we do CLI, then push
 * RETI, to keep interrupts disabled, but to allow this state to be changed
 * by local_bh_enable.
 * R0 contains the interrupt number, while R1 may contain the value of IPEND,
 * or garbage if IPEND won't be needed by the ISR. */
__common_int_entry:
       [--sp] = fp;
       [--sp] = usp;
。。。// 寄存器入栈
 
       /* Switch to other method of keeping interrupts disabled. */
       cli r1;
 
       [--sp] = RETI; /* orig_pc */
       /* Clear all L registers. */
       r1 = 0 (x);
       l0 = r1;
       l1 = r1;
       l2 = r1;
       l3 = r1;
 
       r1 = sp;
       SP += -12;
       call _do_irq;
       SP += 12;
       call _return_from_int;
.Lcommon_restore_context:
       RESTORE_CONTEXT
       rti;
看起来结构比较简单,就是调用do_irq进行后继处理而已。
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    前置放大器在移动医疗服务系
    便携式多通道大容量生理信号
    防腐监测仪的设计与应用
    基于AD1674的酶标仪的设计
    基于C/S模式的JRTPLIB库的测
    ffmpeg与jrtplib相结合应用
    blackfin模拟摄像头驱动中的
    可编程逻辑在数字信号处理系
    发现VDSP4.5一个BUG:单步调
    VDSP5.0双核工程下sml3中的变
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    版权所有:AnalogCN安诺电子 湘ICP备06016315号