Tip / ログイン to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

ハードウェア割込みとソフトウェア割込みの違いについて - Community Translated (JA)

ハードウェア割込みとソフトウェア割込みの違いについて - Community Translated (JA)

Praveen
Community Manager
Community Manager
Community Manager
25 solutions authored 10 likes given 5 likes given

Community Translated by  MoTa_728816          Version : **

質問:ハードウェア割込みとソフトウェア割込みの処理に違いはありますか?

回答:
はい、それらは違った手順で処理されます。
ハードウェア割込みが発生すると、すべての割込みは禁止され、レジスタはスタックに退避(push)されます。ハードウェア割込みは、復帰前に?sti?命令が必要です。
一方、ソフトウェア割込みは通常の関数コールのように処理されます。通常の関数コールの処理とソフトウェア割込みによる処理の差は、ソフトウェア割込みを作成すると、呼び出される関数(routine)への静的(static)ハンドラが提供される点です

0 件の賞賛
433 件の閲覧回数
寄稿者