JPH01187665A - Interruption system among processors - Google Patents

Interruption system among processors

Info

Publication number
JPH01187665A
JPH01187665A JP1195188A JP1195188A JPH01187665A JP H01187665 A JPH01187665 A JP H01187665A JP 1195188 A JP1195188 A JP 1195188A JP 1195188 A JP1195188 A JP 1195188A JP H01187665 A JPH01187665 A JP H01187665A
Authority
JP
Japan
Prior art keywords
interrupt
processor
main memory
procedure
processors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1195188A
Other languages
Japanese (ja)
Other versions
JPH0532779B2 (en
Inventor
Kiyoshi Morishima
森島 潔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1195188A priority Critical patent/JPH01187665A/en
Publication of JPH01187665A publication Critical patent/JPH01187665A/en
Publication of JPH0532779B2 publication Critical patent/JPH0532779B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To execute a sure interruption control by preventing a state which cannot be distinguished from an incorrect interruption from occurring in a circuit where respective processors operate by one interruption register. CONSTITUTION:Respective processors 1-N operate by one interruption register j-2. A request source processor (i) from which an interruption to another processor is generated locks a main storage M so that the other processors cannot use it, sets the interruption control table of the main storage M, sends an interruption signal S1 and then, cancels the lock state of the main storage M. When a execution destination processor to which the requested interruption processing is executed reads out the interruption control table of the main storage M and resets it, the interruption signal S1 already comes and the interruption control table of the main storage M is not reset before before the interruption signal S1 comes. Consequently, the set state of the interruption register j-2 which cannot be distinguished from the incorrect interruption does not occur. Thus, the sure interruption control can be executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプロセッサ間の割込み制御方式に関し、特に複
数のプロセッサを有する情報処理装置のプロセッサ間の
割込み制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt control method between processors, and particularly to an interrupt control method between processors of an information processing apparatus having a plurality of processors.

〔従来の技術〕[Conventional technology]

N個のプロセッサを有する情報処理装置にあって、従来
のプロセッサ間の割込み制御方式としては、次の二つの
方式が実施されている。
In an information processing apparatus having N processors, the following two methods have been implemented as conventional interrupt control methods between processors.

まず、第1の方式は、プロセッサごとに、N個のプロセ
ッサそれぞれに対応させたN個の割込みレジスタを設け
る方式である。
First, the first method is to provide each processor with N interrupt registers corresponding to each of the N processors.

この場合、他のプロセッサへの割込み要求が発生した要
求元ブ″ロセッサが、要求された割込み処理を実行する
実行先プロセッサへの割込み信号を送ると、実行先プロ
セッサにあるN個の割込みレジスタの中でその要求元プ
ロセッサに対応させて接続している割込みレジスタがセ
ット状態になる。
In this case, when the requesting processor that has generated an interrupt request to another processor sends an interrupt signal to the execution destination processor that executes the requested interrupt processing, the N interrupt registers in the execution destination processor are The interrupt register connected to the requesting processor is set.

このため、実行先プロセッサは、どのプロセッサから割
込みが要求されたかを、N個の割込みレジスタの中のど
の割込みレジスタがセット状態にあるかで識別すること
ができる。
Therefore, the execution destination processor can identify which processor has requested an interrupt based on which interrupt register among the N interrupt registers is in the set state.

また、第2の方式は、プロセッサそれぞれの割込み要求
を示すN個のビットを割込み管理データとして、要求さ
れた割込み処理を実行するプロセッサごとに主記憶上に
記憶されているN個の割込み管理データで構成される割
込み管理テーブルを設け、プロセッサごとに、N個のプ
ロセッサからの割込み信号を論理和で受ける一つの割込
みレジスタを設ける方式である。
In addition, in the second method, N bits indicating an interrupt request of each processor are used as interrupt management data, and N bits of interrupt management data stored in the main memory for each processor that executes the requested interrupt processing are used. In this system, an interrupt management table is provided, and each processor is provided with one interrupt register that receives interrupt signals from N processors by ORing.

この場合、他のプロセッサへの割込み要求が発生した要
求元プロセッサは、主記憶の割込み管理テーブルに対し
て、実行先プロセッサに関する割込み管理データにある
要求元プロセッサの割込み要求を示すビットをセット状
態にして、実行先プロセッサに割込み信号を送る。
In this case, the requesting processor that has issued an interrupt request to another processor sets a bit indicating the interrupt request of the requesting processor in the interrupt management data related to the execution target processor in the interrupt management table in main memory. and sends an interrupt signal to the executing processor.

このため、実行先プロセッサは、割込みレジスタが割込
み信号を受けてセット状態になったとき、ど゛のプロセ
ッサから割込みが要求されたかを、主記憶の割込み管理
テーブルにある実行先プロセッサに関する割込み管理デ
ータを読出すことにより、識別することができる。
Therefore, when the interrupt register receives an interrupt signal and enters the set state, the target processor can determine which processor requested the interrupt by checking the interrupt management data related to the target processor in the interrupt management table in main memory. It can be identified by reading out.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述じな従来のプロセッサ間の割込み制御方式における
第1の方式は、プロセッサごとに、N個の割込みレジス
タが必要となり、ハードウェア回路の量が多くなり、高
価になるという問題点がある。
The first method in the conventional inter-processor interrupt control method described above requires N interrupt registers for each processor, which increases the amount of hardware circuitry and increases the cost.

また、上述した従来のプロセッサ間の割込み制御方式に
おける第2の方式では、要求元プロセッサが、主記憶の
割込み管理テーブルを変更してから、実行先プロセッサ
に割込み信号を送る。
In the second method of the conventional inter-processor interrupt control method described above, the requesting processor changes the interrupt management table in the main memory and then sends an interrupt signal to the execution destination processor.

このため、割込み信号を受けて割込みレジスタがセット
状態になった実行先プロセッサが読出したその実行先プ
ロセッサに関する割込み管理デー夕は、複数の要求元プ
ロセッサの割込み要求を示すビットがセット状態になら
ている場合がある。
Therefore, the interrupt management data related to the execution target processor read by the execution target processor whose interrupt register has been set in response to an interrupt signal will have bits indicating interrupt requests of multiple requesting processors set. There may be cases.

この場合、その中の要求元プロセッサのあるビットにつ
いては、割込み管理データのビットがセット状態になっ
ているだけで、割込み信号が来る前の状態であることが
生ずる。
In this case, a certain bit of the request source processor may be in the state before the interrupt signal arrives, simply because the bit of the interrupt management data is set.

ところが、実行先プロセッサは、対、応する割込み要求
を示すビットがセット状態にある各要求元プロセッサを
知ると、その割込み管理データの各ビットをリセット状
態にし、割込みレジスタをリセット状態にするので、そ
の後に割込み信号が来て、割込みレジスタだけがセット
状態になる場合が存在する。
However, when the execution destination processor learns of each requesting processor whose corresponding interrupt request bit is set, it resets each bit of its interrupt management data and resets the interrupt register. There are cases where an interrupt signal comes after that and only the interrupt register is set.

この割込みレジスタのセット状態は、キャンセルしなけ
ればならないけれども、このような状態は、ハードウェ
アの誤動作による不正割込みと区別がつかないという問
題点がある。
Although this set state of the interrupt register must be canceled, there is a problem in that such a state cannot be distinguished from an illegal interrupt caused by a hardware malfunction.

本発明の目的は、プロセッサごとに、一つの割込みレジ
スタで動作する安価な回路で、不正割込みと区別がつか
ないような状態が生ずることのない確実な割込み制御を
実行できるプロセッサ間の割込み制御方式を提供するこ
とである。
An object of the present invention is to provide an interrupt control method between processors that can perform reliable interrupt control without causing a state indistinguishable from an unauthorized interrupt using an inexpensive circuit that operates with one interrupt register for each processor. The goal is to provide the following.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のプロセッサ間の割込み制御方式は、N個のプロ
セッサとこれらに共通の主記憶とを有する情報処理装置
にあって、 (A>他のプロセッサへの割込み要求が発生した要求元
プロセッサで動作して、その要求元プロセッサ間外のプ
ロセッサが主記憶を使用できないロック状態にする第1
の主記憶ロック手順、 (B)プロセッサそれぞれの割込み要求を示すN個のビ
ットを割込み管理データとして、要求された割込み処理
を実行するプロセッサごとに主記憶上に記憶されている
N個の割込み管理データで構成される割込み管理テーブ
ルについて、前記要求元プロセッサで動作して、前記要
求元プロセッサが割込みの実行を要求している実行先プ
ロセッサに関する割込み管理データにある前記要求元プ
ロセッサの割込み要求を示すビットをセット状態にする
割込み管理テーブルセット手順、 (C)前記要求元プロセッサで動作して、発生した割込
み要求を伝達量る割込み信号を前記実行先プロセッサに
送る割込み信号発生手順、(D>前記要求元プロセッサ
で動作して、前記割込み信号で前記実行先プロセッサに
ある割込みレジスタをセット状態にするために十分な時
間を経過した後に、前記第1の主記憶ロック手順でロッ
ク状態にされた主記憶を解除する第1の主記憶ロック解
除手順、 (E)前記実行先プロセッサでN個のプロセッサからの
割込み信号を論理和で受ける前記割込みレジスタがセッ
ト状態にあるとき、前記実行先プロセッサで動作して、
前記実行先プロセッサ以外のプロセッサが主記憶を使用
できないロック状態にする第2の主記憶ロック手順、 (F)前記実行先プロセッサで動作して、割込み管理テ
ーブルにある前記実行先プロセッサに関する割込み管理
データを主記憶から読出し、対応する割込み要求を示す
ビットがセ・ント状態にある各要求元プロセッサを知る
とともに、その前記実行先プロセッサに関する割込み管
理データの各ビットをリセット状態にする割込み管理テ
ーブルリセット手順、(G)前記実行先プロセッサで動
作して、前記実行先プロセッサの前記割込みレジスタを
リセット状態にする割込みレジスタリセット手順、 (■()前記実行先プロセッサで動作して、前記第2の
主記憶ロック手順でロック状態にされた主記憶を解除す
る第2の主記憶ロック解除手順、 (I)前記実行先プロセッサで動作して、前記割込み管
理テーブルリセット手順で割込みを要求していることを
知った各要求元プロセッサの割込み処理をそれぞれ実行
する割込み処理手順、 を備えて構成されている。
The inter-processor interrupt control method of the present invention is provided in an information processing device having N processors and a main memory common to these processors. The first step is to lock the main memory so that processors other than the requesting processor cannot use it.
(B) Management of N interrupts stored in the main memory for each processor that executes the requested interrupt processing, using N bits indicating interrupt requests of each processor as interrupt management data. Regarding an interrupt management table configured of data, the interrupt request of the requesting processor is shown in the interrupt management data regarding the execution destination processor that operates on the requesting processor and is requested by the requesting processor to execute an interrupt. an interrupt management table setting procedure for setting a bit in a set state; (C) an interrupt signal generation procedure for operating in the request source processor and transmitting an interrupt signal for transmitting the generated interrupt request to the execution destination processor; After a sufficient period of time has elapsed for the requesting processor to operate on the requesting processor and set the interrupt register in the execution target processor with the interrupt signal, the main memory locked in the first main memory locking procedure a first main memory unlocking procedure for releasing memory; (E) operating on the execution destination processor when the interrupt register that receives interrupt signals from N processors by ORing in the execution destination processor is in a set state; do,
a second main memory locking procedure that puts the main memory into a locked state in which processors other than the execution destination processor cannot use it; (F) interrupt management data regarding the execution destination processor that operates on the execution destination processor and is in an interrupt management table; An interrupt management table reset procedure that reads the information from the main memory, learns each request source processor whose bit indicating the corresponding interrupt request is in the sent state, and resets each bit of the interrupt management data regarding the execution destination processor. , (G) an interrupt register reset procedure that operates on the execution destination processor to reset the interrupt register of the execution destination processor; (■ () operates on the execution destination processor to reset the interrupt register of the execution destination processor; a second main memory unlocking procedure for releasing the main memory locked in the locking procedure; and an interrupt processing procedure for executing interrupt processing for each request source processor.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のプロセッサ間の割込み制御方式の一実
施例を示す流れ図である。
FIG. 1 is a flowchart showing one embodiment of the inter-processor interrupt control method of the present invention.

また、第2図は本実施例を適用する情報処理装置の一例
を示すブロック図である。
Further, FIG. 2 is a block diagram showing an example of an information processing apparatus to which this embodiment is applied.

第2図の情報処理装置は、N個のプロセッサ1.2.・
・・・・・・・・Nとこれらに共通の主記憶Mとを有し
ている。
The information processing apparatus in FIG. 2 includes N processors 1.2.・
. . . N and a main memory M common to these.

第1図において、まず、他のプロセッサへの割込み要求
が発生したプロセッサ1,2.・・・・−・・・・Nの
中の一つである要求元プロセッサiが動作して、第1の
主記憶ロック手順Aで、その要求元プロセッサi以外の
プロセッサが主記憶Mを使用できないロック状態にする
In FIG. 1, first, processors 1, 2, . ......-N, one of the requesting processors i operates, and in the first main memory lock procedure A, a processor other than the requesting processor i uses the main memory M. Lock state that cannot be used.

一方、第3図は割込み管理テーブルの内容を説明するた
めの情報構成図である。
On the other hand, FIG. 3 is an information configuration diagram for explaining the contents of the interrupt management table.

第3図において、割込み管理テーブルPは、主記憶M上
に記憶され、要求された割込み処理を実行するN個のプ
ロセッサ1,2.・・・・・・・・・Nごとに各別込み
管理データQl + Q2 +・・・・・・・・・QN
を有している。
In FIG. 3, an interrupt management table P is stored on the main memory M and is stored in N processors 1, 2, . . . that execute requested interrupt processing.・・・・・・・・・Separate management data Ql + Q2 +・・・・・・QN for each N
have.

また、その中の一つである割込み管理データQ、は、N
個のプロセッサ1,2.・・・・・・・・・Nそれぞれ
の割込み要求を示すN個のビットRJl。
Also, one of them, interrupt management data Q, is N
processors 1, 2 . ......N bits RJl indicating N respective interrupt requests.

RJ2.・・・・・・・・・RJNを有している。RJ2. ......has RJN.

今、要求元プロセッサiが割込みの実行を要求している
プロセッサ1,2.・・・・・・・・・Nの一つを実行
先プロセッサjとすれば、第1図の割込み管理テーブル
セット手順Bで、要求元プロセッサiが動作して、実行
先プロセッサjに関する割込み管理データQJにある要
求元プロセッサiの割込み要求を示すビットR1−をセ
ット状態にする。
Processors 1, 2, . ......If one of N is the execution destination processor j, the request source processor i operates in the interrupt management table setting procedure B in FIG. Bit R1- in data QJ indicating an interrupt request from requesting processor i is set.

また、割込み信号発生手順Cで、要求元プロセッサiが
動作して、発生した割込み要求を伝達する割込み信号を
要求元プロセッサiから実行先プロセッサjに送る。
Further, in interrupt signal generation procedure C, the requesting processor i operates and sends an interrupt signal for transmitting the generated interrupt request from the requesting processor i to the execution destination processor j.

第4図は本実施例で割込み信号が伝達される経路を示す
ブロック図である。
FIG. 4 is a block diagram showing a route through which an interrupt signal is transmitted in this embodiment.

第4図で、割込み信号S+が要求元プロセッサiから実
行先プロセッサjの論理和回路j−1に送られる。
In FIG. 4, an interrupt signal S+ is sent from the requesting processor i to the OR circuit j-1 of the executing processor j.

続いて、第1の主記憶ロック解除手順りで、要求元プロ
セッサiが動作して、割込み信号S1により実行先プロ
セッサjにある割込みレジスタj−2をセット状態にす
るために十分な時間を経過した後に、第1の主記憶ロッ
ク手順Aでロック状態にされた主記憶Mを解除する。
Next, in the first main memory unlocking procedure, the requesting processor i operates and enough time has elapsed for the interrupt signal S1 to set the interrupt register j-2 in the execution destination processor j. After that, the main memory M locked in the first main memory lock procedure A is released.

次に、第4図の実行先プロセッサj″cN個のプロセッ
サからの割込み信号を論理和で受ける割込みレジスタj
〜2がセット状態になったとき、その出力を制御回路j
−3で受けることにより、実行先プロセッサjが動作し
て、第2の主記憶ロック手順Eで、実行先プロセッサj
以外のプロセッサが主記憶Mを使用できないロック状態
にする。
Next, an interrupt register j receives the interrupt signals from the execution target processor j″cN processors in FIG.
~ When 2 is in the set state, its output is sent to the control circuit j
-3, the execution destination processor j operates, and in the second main memory locking procedure E, the execution destination processor j
The main memory M is locked so that other processors cannot use it.

続いて、割込み管理テーブルリセット手順Fで、実行先
プロセッサjが動作して、割込み管理テーブルPにある
実行先プロセッサjに関する割込み管理データQJを主
記憶Mから読出し、対応する割込み要求を示すビットR
jIなどがセット状態にある要求元プロセッサiなどを
知るとともに、その実行先プロセッサに関する割込み管
理データの各ビットをリセット状態にする。
Next, in the interrupt management table reset procedure F, the execution destination processor j operates, reads out the interrupt management data QJ related to the execution destination processor j in the interrupt management table P from the main memory M, and sets the bit R indicating the corresponding interrupt request.
The request source processor i whose jI etc. are in the set state is known, and each bit of the interrupt management data regarding the execution destination processor is reset.

また、割込みレジスタリセット手順Gで、実行先プロセ
ッサjが動作して、第4図の実行先プロセッサjで制御
回路j−3からの出力により、割込みレジスタj−2を
・リセット状態にする。
Further, in the interrupt register reset procedure G, the execution destination processor j operates, and the execution destination processor j in FIG. 4 puts the interrupt register j-2 into the reset state by the output from the control circuit j-3.

次に、第2の主記憶ロック解除手順Hで、実行先プロセ
ッサjが動作して、第2の主記憶ロック手順Eでロック
状態にされた主記憶Mを解除する。
Next, in a second main memory lock release procedure H, the execution destination processor j operates to release the main memory M that was locked in the second main memory lock procedure E.

その後、割込み処理手順Iで、実行先プロセッサjが動
作して、割込み管理テーブルリセット手順Fで割込みを
要求していることを知った各要求元プロセッサi・など
の割込み処理をそれぞれ実行する。
Thereafter, in the interrupt processing procedure I, the execution destination processor j operates and executes the interrupt processing for each requesting processor i, etc., which was found to have requested an interrupt in the interrupt management table reset procedure F.

第5図は本実施例の動作を示すタイミング図である。FIG. 5 is a timing diagram showing the operation of this embodiment.

第5図において、本実施例で、要求元プロセッサiおよ
びkからの割込み信号が、実行先プロセッサjに送られ
る場合の動作を説明する。
Referring to FIG. 5, an explanation will be given of the operation in this embodiment when interrupt signals from request source processors i and k are sent to execution destination processor j.

まず、要求元プロセッサiで実行先プロセッサjへの割
込み要求が発生した場合、要求元プロ。
First, when a requesting processor i issues an interrupt request to the execution destination processor j, the requesting processor

セッサiが第1の主記憶ロック手順で、時刻1゜に主記
憶ロック指示を主記憶Mに送るので、主記憶Mは要求元
プロセッサi以外のプロセッサが主記憶Mを使用できな
いロックの状態となる。
Since processor i sends a main memory lock instruction to main memory M at time 1° in the first main memory locking procedure, main memory M is in a locked state in which processors other than requesting processor i cannot use main memory M. Become.

次に、要求元プロセッサiが割込み管理テーブルセット
手順で、時刻t2に割込み管理テーブルセット指示を主
記憶Mに送るので、主記憶Mの割込み管理テーブルの内
容が更新され、実行先プロセッサjに関する割込み管理
データQJにある要求元プロセッサiの割込み要求を示
すビットRjIがセット状態になる。
Next, the requesting processor i sends an interrupt management table setting instruction to the main memory M at time t2 in the interrupt management table setting procedure, so the contents of the interrupt management table in the main memory M are updated, and the interrupt related to the execution target processor j is Bit RjI in management data QJ indicating an interrupt request from requesting processor i is set.

次に、要求元プロセッサiが割込み信号発生手順で、時
刻t3に割込み信号を実行先プロセッサjに送るので、
実行先プロセッサjの割込みレジスタがセット状態にな
る。
Next, the requesting processor i sends an interrupt signal to the execution destination processor j at time t3 in the interrupt signal generation procedure.
The interrupt register of execution destination processor j is set.

次に、要求元プロセッサiが第1の主記憶ロック解除手
順で、実行先プロセッサjの割込みレジスタがセット状
態になった後、時刻t4に主記憶ロック解除指示を送る
ので、主記憶Mはロックの状態から解除される。
Next, in the first main memory lock release procedure, the requesting processor i sends a main memory lock release instruction at time t4 after the interrupt register of the execution destination processor j is set, so that the main memory M is locked. will be released from the state.

続いて直ちに、要求元プロセッサにで実行先プロセッサ
jへの割込み要求が発生した場合、要求元プロセッサk
が第1の主記憶ロック手順で、時刻t、に主記憶ロック
指示を主記憶Mに送るので、主記憶Mは要求元プロセッ
サに以外のプロセッサが主記憶Mを使用できないロック
の状態となる。
Immediately thereafter, if the requesting processor issues an interrupt request to the execution destination processor j, the requesting processor k
is the first main memory lock procedure and sends a main memory lock instruction to the main memory M at time t, so the main memory M becomes locked so that no processor other than the requesting processor can use the main memory M.

次に、要求元プロセッサkが割込み管理テーブルセット
手順で、時刻t6に割込み管理テーブルセット指示を主
記憶Mに送るので、主記憶Mの割込み管理テーブルの内
容が更新され、実行先プロセッサjに関する割込み管理
データQ」にある要求元プロセッサにの割込み要求を示
すビットRJkがセット状態になる。
Next, the requesting processor k sends an interrupt management table setting instruction to the main memory M at time t6 in the interrupt management table setting procedure, so the contents of the interrupt management table in the main memory M are updated, and the interrupt related to the execution target processor j is The bit RJk in the management data Q, which indicates an interrupt request to the requesting processor, is set.

次に、要求元プロセッサkが割込み信号発生手順で、時
刻t7に割込み信号を実行先プロセッサjに送るけれど
も、実行先プロセッサjの割込みレジスタは既にセット
状態になっているのでそのままの状態が継続する。
Next, in the interrupt signal generation procedure, the requesting processor k sends an interrupt signal to the execution destination processor j at time t7, but since the interrupt register of the execution destination processor j has already been set, it remains in that state. .

次に、要求元プロセッサkが第1の主記憶ロック解除手
順で、時刻上8に主記憶ロック解除指示を送るので、主
記憶Mはロックの状態から解除される。
Next, the requesting processor k sends a main memory lock release instruction at time 8 in the first main memory lock release procedure, so that the main memory M is released from the locked state.

割込みレジスタがセット状態にあり、主記憶Mがロック
の状態から解除されることにより4次に、実行先プロセ
ッサjが第2の主記憶ロック手順Eで、時刻t9に主記
憶ロック指示を主記憶Mに送るので、主記憶Mは実行先
プロセッサj以外のプロセッサが主記憶Mを使用できな
いロックの状態となる。
When the interrupt register is in the set state and the main memory M is released from the locked state, the execution destination processor j issues a main memory lock instruction to the main memory at time t9 in the second main memory lock procedure E. Since the main memory M is sent to M, the main memory M becomes locked so that processors other than the execution destination processor j cannot use the main memory M.

次に、実行先プロセッサjが割込み管理テーブルリセッ
ト手順で、時刻ttoに割込み管理テーブルリセット指
示を主記憶Mに送り、割込み管理テーブルPの割込み管
理データQ、を読出すことにより、割込み要求を示すビ
ットRJIおよびRlkがセット状態にあることを検出
するので、割込みを要求している要求元プロセッサiお
よびkを知るとともに、この割込み管理データQ、をリ
セット状態にするので、割込み要求を示すビットRJl
およびRjkを含む割込み管理データQJの各ビットが
リセット状態になる。
Next, in the interrupt management table reset procedure, the execution destination processor j sends an interrupt management table reset instruction to the main memory M at time tto, and indicates an interrupt request by reading the interrupt management data Q from the interrupt management table P. Since it detects that bits RJI and Rlk are set, it knows which requesting processors i and k are requesting the interrupt, and also resets this interrupt management data Q, so bit RJI indicating an interrupt request is set.
Each bit of the interrupt management data QJ including Rjk and Rjk is reset.

次に、実行先プロセッサjが割込みレジスタリセット手
順で、時刻111に割込みレジスタリセット指示を実行
先プロセッサjの割込みレジスタに送るので、割込みレ
ジスタはリセット状態になる。
Next, execution destination processor j sends an interrupt register reset instruction to the interrupt register of execution destination processor j at time 111 in an interrupt register reset procedure, so that the interrupt register becomes a reset state.

次に、実行先プロセッサjが第2の主記憶ロック解除手
順で、時刻t1□に主記憶ロック解除指示を送るので、
主記憶Mはロックの状態から解除される。
Next, execution target processor j sends a main memory lock release instruction at time t1□ in the second main memory lock release procedure, so
Main memory M is released from the locked state.

その後、実行先プロセッサjが割込み処理手順で、割込
み管理テーブルリセット手順で割込みを要求しているこ
とを知った要求元プロセッサiおよびkの割込み処理を
それぞれ実行する。
Thereafter, in the interrupt processing procedure, the execution destination processor j executes the interrupt processing of the requesting processors i and k, which have learned that they have requested an interrupt in the interrupt management table reset procedure.

以上に述べた通り、本発明のプロセッサ間の割込み制御
方式は、プロセッサごとに、一つの割込みレジスタで動
作する。
As described above, the inter-processor interrupt control method of the present invention operates with one interrupt register for each processor.

また、他のプロセッサへの割込み要求が発生した要求元
プロセッサは、主記憶を他のプロセッサが使用できない
ロック状態にして、主記憶の割込み管理テーブルをセッ
トして、割込み信号を送ってから、主記憶のロック状態
を解除するので、要求された割込み処理を実行する実行
先プロセッサが主記憶の割込み管理テーブルを読出して
リセット状態にするときには、既に、割込み信号が来て
おり、割込み信号が来る前に主記憶の割込み管理テーブ
ルをリセット状態にすることはない。
In addition, the requesting processor that has issued an interrupt request to another processor locks its main memory so that other processors cannot use it, sets the interrupt management table in the main memory, and sends an interrupt signal to the main memory. Since the memory lock state is released, by the time the execution destination processor that executes the requested interrupt processing reads the interrupt management table in main memory and resets it, the interrupt signal has already been received and the interrupt signal has already arrived. The interrupt management table in main memory is never reset.

このなめ、従来のプロセッサ間の割込み制御方式におけ
る第2の方式のように、ハードウェアの誤動作による不
正割込7みと区別がつがない割込みレジスタのセット状
態が生ずることはない。
For this reason, unlike the second conventional inter-processor interrupt control method, an interrupt register set state that is indistinguishable from an unauthorized interrupt 7 due to a hardware malfunction does not occur.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明のプロセッサ間の割込み制
御方式は、プロセッサごとに、一つの割込みレジスタで
動作する安価な回路で、不正割込みと区別がつかないよ
うな状態が生ずることのない確実な割込み制御を実行す
ることができるという効果を有している。
As explained above, the inter-processor interrupt control method of the present invention is an inexpensive circuit that operates with one interrupt register for each processor, and is reliable in that a state indistinguishable from an unauthorized interrupt does not occur. This has the effect that interrupt control can be executed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のプロセッサ間の割込み制御方式の一実
施例を示す流れ図、第2図は本実施例を適用する情報処
理装置の一例を示すブロック図、第3図は割込み管理テ
ーブルの内容を説明するための情報構成図、第4図は本
実施例で割込み信号が伝達される経路を示すブロック図
、第5図は本実施例の動作を示すタイミング図である。 1.2.〜N・・・・・・プロセッサ、A・・・・・・
第1の主記憶ロック手順、B・・・・・・割込み管理テ
ーブルセット手順、C・・・・・・割込み信号発生手順
、D・・・・・・第1の主記憶ロック解除手順、E・・
・・・・第2の主記憶ロック手順、F・・・・・・割込
み管理テーブルリセット手順、G・・・・・・割込みレ
ジスタリセット手順、H・・・・・・第2の主記憶ロッ
ク解除手順、■・・・・・・割込み処理手順、i・・・
・・・要求元プロセッサ、j・・・・・・実行先プロセ
ッサ、j−1・・・・・・論理和回路、j−2・・・・
・・割込みレジスタ、j−3・・曲・制御回路、M・・
・・・・主記憶、P・・・・・・割込み管理テーブル、
Ql、Q2 。
FIG. 1 is a flowchart showing an embodiment of the interrupt control method between processors of the present invention, FIG. 2 is a block diagram showing an example of an information processing device to which this embodiment is applied, and FIG. 3 is the contents of an interrupt management table. FIG. 4 is a block diagram showing a route through which an interrupt signal is transmitted in this embodiment, and FIG. 5 is a timing diagram showing the operation of this embodiment. 1.2. ~N... Processor, A...
First main memory locking procedure, B... Interrupt management table setting procedure, C... Interrupt signal generation procedure, D... First main memory unlocking procedure, E・・・
...Second main memory lock procedure, F...Interrupt management table reset procedure, G...Interrupt register reset procedure, H...Second main memory lock Release procedure, ■... Interrupt processing procedure, i...
...Request source processor, j...Execution destination processor, j-1...OR circuit, j-2...
...Interrupt register, j-3...Music/control circuit, M...
...Main memory, P...Interrupt management table,
Ql, Q2.

Claims (1)

【特許請求の範囲】 N個のプロセッサとこれらに共通の主記憶とを有する情
報処理装置にあつて、 (A)他のプロセッサへの割込み要求が発生した要求元
プロセッサで動作して、その要求元プロセッサ以外のプ
ロセッサが主記憶を使用できないロック状態にする第1
の主記憶ロック手順、 (B)プロセッサそれぞれの割込み要求を示すN個のビ
ットを割込み管理データとして、要求された割込み処理
を実行するプロセッサごとに主記憶上に記憶されている
N個の割込み管理データで構成される割込み管理テーブ
ルについて、前記要求元プロセッサで動作して、前記要
求元プロセッサが割込みの実行を要求している実行先プ
ロセッサに関する割込み管理データにある前記要求元プ
ロセッサの割込み要求を示すビットをセット状態にする
割込み管理テーブルセット手順、 (C)前記要求元プロセッサで動作して、発生した割込
み要求を伝達する割込み信号を前記実行先プロセッサに
送る割込み信号発生手順、(D)前記要求元プロセッサ
で動作して、前記割込み信号で前記実行先プロセッサに
ある割込みレジスタをセット状態にするために十分な時
間を経過した後に、前記第1の主記憶ロック手順でロッ
ク状態にされた主記憶を解除する第1の主記憶ロック解
除手順、 (E)前記実行先プロセッサでN個のプロセッサからの
割込み信号を論理和で受ける前記割込みレジスタがセッ
ト状態にあるとき、前記実行先プロセッサで動作して、
前記実行先プロセッサ以外のプロセッサが主記憶を使用
できないロック状態にする第2の主記憶ロック手順、 (F)前記実行先プロセッサで動作して、割込み管理テ
ーブルにある前記実行先プロセッサに関する割込み管理
データを主記憶から読出 し、対応する割込み要求を示すビットがセット状態にあ
る各要求元プロセッサを知るとともに、その前記実行先
プロセッサに関する割込み管理データの各ビットをリセ
ット状態にする割込み管理テーブルリセット手順、 (G)前記実行先プロセッサで動作して、前記実行先プ
ロセッサの前記割込みレジスタをリ セット状態にする割込みレジスタリセット手順、 (H)前記実行先プロセッサで動作して、前記第2の主
記憶ロック手順でロック状態にされた主記憶を解除する
第2の主記憶ロック解除手順、 (I)前記実行先プロセッサで動作して、前記割込み管
理テーブルリセット手順で割込みを要求していることを
知った各要求元プロセッサの割込み処理をそれぞれ実行
する割込み処理手順、 を備えることを特徴とするプロセッサ間の割込み制御方
式。
[Scope of Claims] In an information processing device having N processors and a main memory common to these processors, (A) a requesting processor that has generated an interrupt request to another processor operates to process the request; The first step is to lock the main memory so that processors other than the original processor cannot use it.
(B) Management of N interrupts stored in the main memory for each processor that executes the requested interrupt processing, using N bits indicating interrupt requests of each processor as interrupt management data. Regarding an interrupt management table configured of data, the interrupt request of the requesting processor is shown in the interrupt management data regarding the execution destination processor that operates on the requesting processor and is requested by the requesting processor to execute an interrupt. an interrupt management table setting procedure for setting a bit in a set state; (C) an interrupt signal generation procedure for operating in the request source processor and transmitting an interrupt signal to the execution target processor to transmit the generated interrupt request; (D) an interrupt signal generation procedure for transmitting the generated interrupt request; The main memory that is activated in the original processor and is locked in the first main memory locking procedure after a sufficient time has elapsed for the interrupt signal to set the interrupt register in the target processor. (E) When the interrupt register that receives interrupt signals from N processors in the execution target processor by ORing is in a set state, hand,
a second main memory locking procedure that puts the main memory into a locked state in which processors other than the execution destination processor cannot use it; (F) interrupt management data regarding the execution destination processor that operates on the execution destination processor and is in an interrupt management table; An interrupt management table reset procedure that reads the information from the main memory, learns each request source processor whose bit indicating the corresponding interrupt request is set, and resets each bit of the interrupt management data regarding the execution target processor; G) an interrupt register reset procedure that operates on the execution destination processor to reset the interrupt register of the execution destination processor; (H) an interrupt register reset procedure that operates on the execution destination processor and sets the interrupt register of the execution destination processor to a reset state; a second main memory unlocking procedure for releasing the locked main memory; (I) each request that operates in the execution target processor and that is found to be requesting an interrupt in the interrupt management table reset procedure; An interrupt control method between processors, comprising: an interrupt processing procedure for respectively executing interrupt processing of a source processor.
JP1195188A 1988-01-21 1988-01-21 Interruption system among processors Granted JPH01187665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1195188A JPH01187665A (en) 1988-01-21 1988-01-21 Interruption system among processors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1195188A JPH01187665A (en) 1988-01-21 1988-01-21 Interruption system among processors

Publications (2)

Publication Number Publication Date
JPH01187665A true JPH01187665A (en) 1989-07-27
JPH0532779B2 JPH0532779B2 (en) 1993-05-17

Family

ID=11791935

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1195188A Granted JPH01187665A (en) 1988-01-21 1988-01-21 Interruption system among processors

Country Status (1)

Country Link
JP (1) JPH01187665A (en)

Also Published As

Publication number Publication date
JPH0532779B2 (en) 1993-05-17

Similar Documents

Publication Publication Date Title
US6754859B2 (en) Computer processor read/alter/rewrite optimization cache invalidate signals
US5136714A (en) Method and apparatus for implementing inter-processor interrupts using shared memory storage in a multi-processor computer system
GB2121218A (en) Shared resource locking apparatus
EP0443557B1 (en) Interrupt controller capable of realizing interrupt nesting function
JP2581323B2 (en) How to update reference bits and change bits
US7146533B2 (en) Method for and system producing shared usage of intercommunication fabric error logging registers in a multiprocessor environment
EP0364226B1 (en) A system for performing a serializing control of a reference to a main storage
US5218688A (en) Data processing system with memory-access priority control
JPWO2007097040A1 (en) Information processing apparatus control method, information processing apparatus
JPH01187665A (en) Interruption system among processors
US5586336A (en) Microcomputer capable of monitoring internal resources from external
US20040078649A1 (en) Computer system
JP2937857B2 (en) Lock flag release method and method for common storage
JP2710587B2 (en) Information processing system
JPH04127261A (en) Multiprocessor system
JPH0467226B2 (en)
JP2888654B2 (en) Data input control method
JPH05108476A (en) Main storage controller
JPH11272499A (en) Parallel processor system equipped with performance measuring circuit and method for measuring performance of program
JPH05181813A (en) Exclusive control bit control system
JPH07234850A (en) Device and method for multiprocessor system
JP2505021B2 (en) Main memory controller
JP2845542B2 (en) Exclusive control method in multiprocessor system
JP2001117785A (en) Multitask processing system
JPH0424863A (en) Information processing system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080517

Year of fee payment: 15