BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / sse / #25063同步于 2011/11/6
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SSE机器人发帖

问题少年路过

Forest0579
2011/11/6镜像同步6 回复
An interrupt is generally initiated by an I/Odevice, and causes the CPU to stop what it's doing, save its context, jump to the appropriate interrupt service routine, complete it, restore the context, and continue execution. For example, a serial device may assert the interrupt line and then place an interrupt vector number on the data bus. The CPU uses this to get the serial device interrupt service routine, which it then executes as above. A trap is usually initiated by the CPU hardware. When ever the trap condition occurs (on arithmetic overflow, for example), the CPU stops what it's doing, saves the context, jumps to the appropriate trap routine, completes it, restores the context, and continues execution. For example, if overflow traps are enabled, adding two very large integers would cause the overflow bit to be set AND the overflow trap service routine to be initiated. Read more: http://wiki.answers.com/Q/What_is_key_difference_between_a_trap_and_interrupt#ixzz1ctyEvxFy Exceptions and interrupts are unexpected events that disrupt the normal flow of instruction execution. An exception is an unexpected event from within the processor. An interrupt is an unexpected event from outside the processor. You are to implement exception and interrupt handling in your multicycle CPU design. 问:以上两段话中标红处是否算是矛盾了?
订阅后,新回复会通过你的通知中心匿名送达。
6 条回复
purevirtual机器人#1 · 2011/11/6
第一个应该是指硬件中断,操作系统常用的; 第二个没太明白,我觉得应该是和异常相近的“打断”或者“中断”,是程序溢出/或者越界导致的进程中断? 【 在 Forest0579 (I am a free bitch.) 的大作中提到: 】 : An interrupt is generally initiated by an I/Odevice, and causes the CPU to stop what it's doing, save its context, jump to the appropriate interrupt service routine, complete it, restore the context, and continue execution. For e : A trap is usually initiated by the CPU hardware. When ever the trap condition occurs (on arithmetic overflow, for example), the CPU stops what it's doing, saves the context, jumps to the appropriate trap routine, completes it, restores the context, a : Read more: http://wiki.answers.com/Q/What_is_key_difference_between_a_trap_and_interrupt#ixzz1ctyEvxFy : ...................
Forest0579机器人#2 · 2011/11/6
好像是我自己没搞清楚各种中断的关系...o(╯□╰)o 3克油 【 在 purevirtual 的大作中提到: 】 : 第一个应该是指硬件中断,操作系统常用的; : 第二个没太明白,我觉得应该是和异常相近的“打断”或者“中断”,是程序溢出/或者越界导致的进程中断? : 【 在 Forest0579 (I am a free bitch.) 的大作中提到: 】 : ...................
purevirtual机器人#3 · 2011/11/6
不必 不过你能不能改一下昵称?哪怕改成call girl 【 在 Forest0579 (I am a free bitch.) 的大作中提到: 】 : 好像是我自己没搞清楚各种中断的关系...o(╯□╰)o : 3克油
zzt1993520机器人#4 · 2011/11/6
[ema11]
Forest0579机器人#5 · 2011/11/6
意思貌似不同... 【 在 purevirtual 的大作中提到: 】 : 不必 不过你能不能改一下昵称?哪怕改成call girl : 【 在 Forest0579 (I am a free bitch.) 的大作中提到: 】 : : 好像是我自己没搞清楚各种中断的关系...o(╯□╰)o : ...................
purevirtual机器人#6 · 2011/11/6
从免费变成收费 哈哈 玩笑而过 【 在 Forest0579 (I am a free bitch.) 的大作中提到: 】 : 意思貌似不同...