免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: zx_wing

《Interrupt in Linux(硬件篇)》(1楼有更新 2008.5.3) [复制链接]

论坛徽章:
0
发表于 2010-08-29 21:19 |显示全部楼层
经典就是经典!

论坛徽章:
0
发表于 2010-01-19 21:34 |显示全部楼层
怎么附件在审核,不对啊

论坛徽章:
8
2015年辞旧岁徽章
日期:2015-03-03 16:54:15午马
日期:2015-02-04 12:00:07羊年新春福章
日期:2015-02-04 11:57:56双子座
日期:2014-12-02 11:44:59金牛座
日期:2014-10-08 16:47:08狮子座
日期:2014-08-29 13:37:46巳蛇
日期:2014-08-26 17:32:29NBA常规赛纪念章
日期:2015-05-04 22:32:03
发表于 2009-12-24 15:39 |显示全部楼层

回复 #1 zx_wing 的帖子

论坛徽章:
0
发表于 2009-12-16 18:37 |显示全部楼层
好东西多呀  回头苦读

论坛徽章:
0
发表于 2009-11-27 21:15 |显示全部楼层
顶一个,拜读大作。

论坛徽章:
0
发表于 2009-11-18 18:37 |显示全部楼层
能否麻烦楼主看看这篇帖子上提到的两个问题(从软件的角度去理解interrupt):http://linux.chinaunix.net/bbs/thread-1144649-1-1.html

谢谢!

论坛徽章:
0
发表于 2009-11-18 15:05 |显示全部楼层
貌似作者对MP spec 为PIC 和APIC 共存的平台规定了三种模式中的Virtual Wire Mode模式的理解有一些问题,楼主在pdf文档中描述如下:
如图虚线,外部中断通过PIC 连接的IOAPIC 管脚,最终到达BSP。当然,连接PIC的这个管脚需要被配置成ExtINT 模式。

MP spec原文如下:
In Virtual Wire Mode, as shown in Figure 3-3, the 8259A-equivalent PIC fields all interrupts, and the local APIC of the BSP becomes a virtual wire, which delivers interrupts from the PIC to the BSP via the local APIC’s local interrupt 0 (LINTIN0). The LINTIN0 pin of the local APIC is programmed as ExtINT, specifying to the APIC that the PIC is to serve as an external interrupt controller. Whenever the local APIC finds that a particular interrupt is of type ExtINT, it asserts the ExtINTA transaction along with the PINT interrupt to the processor. In this case, the I/O APIC is not used.

根据MP spec,应该是Local APIC的LINTIN0脚要配置为ExtINT 模式。另外,对于Virtual Wire Mode模式,原文描述了两种接线方式,一种是PIC接IO-APIC,然后接BSP的Local APIC,另外一种是PIC直接接到BSP的Local APIC的LINTIN0脚。

另外,对Symmetric I/O Mode描述也有不准确的地方,楼主在pdf中描述如下:
一个要求,进入APIC 模式后要将PIC 的所有管脚mask 掉

而MP spec原文如下:
Some MP operating systems operate in Symmetric I/O Mode. This mode requires at least one I/O APIC to operate. In this mode, I/O interrupts are generated by the I/O APIC. All 8259 interrupt lines are either masked or work together with the I/O APIC in a mixed mode.
根据MP spec,应该是屏蔽8259A的所有中断线或者将8259A与I/O APIC混合使用

[ 本帖最后由 fox144215 于 2009-11-19 09:26 编辑 ]

论坛徽章:
0
发表于 2009-07-29 11:45 |显示全部楼层
顶,看这种文档会节省很多时间

论坛徽章:
0
发表于 2009-07-28 11:20 |显示全部楼层
拜读牛人大做
正好对这快比较感兴趣

论坛徽章:
0
发表于 2009-07-28 10:19 |显示全部楼层
楼主辛苦了哈,下来看看!
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP