The difference between Call Gate, Interrupt Gate, Trap Gate?

后端 未结 3 1724
無奈伤痛
無奈伤痛 2020-12-22 17:36

I am studying Intel Protected Mode. I found that Call Gate, Interrupt Gate, Trap Gate are almost the same. In fact, besides that Call Gate has the fields for parameter count

3条回答
  •  梦毁少年i
    2020-12-22 18:02

    An Interrupt gate is special because the IF flag is automatically cleared. A Call gate is special because it doesn't get activated through an interrupt vector. A task gate is special because it automatically saves the processor state. Four distinct behaviors, having four names for them is convenient.

提交回复
热议问题