JP2010277422A - Interrupt handler - Google Patents
Interrupt handler Download PDFInfo
- Publication number
- JP2010277422A JP2010277422A JP2009130760A JP2009130760A JP2010277422A JP 2010277422 A JP2010277422 A JP 2010277422A JP 2009130760 A JP2009130760 A JP 2009130760A JP 2009130760 A JP2009130760 A JP 2009130760A JP 2010277422 A JP2010277422 A JP 2010277422A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- interrupt request
- control rule
- input
- request control
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、情報処理システムに対して割り込み要求に係る割り込み処理実行命令を発行する割り込み処理装置に関する。 The present invention relates to an interrupt processing device that issues an interrupt processing execution command related to an interrupt request to an information processing system.
従来、コンピュータ等の情報処理装置において、メイン・ルーチンを実行する情報処理システムに対して割り込み要求に係る割り込み処理実行命令を発行する情報処理装置が開発されている。このような装置では、外部割り込み要求が連続すると、メイン・ルーチンの実行が損なわれ、装置全体の処理性能が低下する可能性がある。そこで、特許文献1では、MPUの外部割り込み制御回路に対する割り込み要求ありの状態を示す信号レベルを出力するタイミングを所定の時間だけ遅延させる割り込み要求遅延制御回路を設け、外部割り込み要求の遅延を行うようにして、外部割り込み処理の実行とメイン・ルーチンの実行とを交互に行えるようにした装置が開示されている。
2. Description of the Related Art Conventionally, in an information processing apparatus such as a computer, an information processing apparatus that issues an interrupt processing execution instruction related to an interrupt request to an information processing system that executes a main routine has been developed. In such a device, if external interrupt requests continue, the execution of the main routine may be impaired, and the processing performance of the entire device may be reduced. Therefore, in
しかしながら、上記技術では、どのような内容の割り込み要求でも一律に遅延させるため、遅延させたくない緊急の割り込み処理を実行させることができないことがある。 However, in the above technique, any interrupt request with any content is uniformly delayed, so that an emergency interrupt process that is not desired to be delayed may not be executed.
本発明は、このような実情に考慮してなされたものであり、その目的は、情報処理システムに、割り込み要求に係る割り込み処理をより適切に実行させる割り込み処理装置を提供することにある。 The present invention has been made in view of such circumstances, and an object thereof is to provide an interrupt processing device that causes an information processing system to more appropriately execute interrupt processing related to an interrupt request.
本発明は、割り込み要求を入力される割り込み要求入力手段と、二つ以上の互いに異なる割り込み要求制御ルールが定義された割り込み要求制御ルール定義データを格納する格納手段と、格納手段に格納された割り込み要求制御ルール定義データに定義された割り込み要求制御ルールのいずれかから、割り込み要求入力手段が入力された割り込み要求それぞれに対する割り込み要求制御ルールを選択する割り込み要求制御ルール選択手段と、割り込み要求制御ルール選択手段が選択した割り込み要求制御ルールに従って、情報処理システムに対し割り込み要求に係る割り込み処理実行命令を発行する割り込み処理実行命令発行手段とを備えた割り込み処理装置である。 The present invention relates to an interrupt request input means for inputting an interrupt request, a storage means for storing interrupt request control rule definition data in which two or more different interrupt request control rules are defined, and an interrupt stored in the storage means Interrupt request control rule selection means for selecting an interrupt request control rule for each interrupt request input by the interrupt request input means from any of the interrupt request control rules defined in the request control rule definition data, and interrupt request control rule selection According to the interrupt request control rule selected by the means, there is provided an interrupt processing device comprising interrupt processing execution instruction issuing means for issuing an interrupt processing execution instruction related to an interrupt request to the information processing system.
この構成によれば、格納手段は、二つ以上の互いに異なる割り込み要求制御ルールが定義された割り込み要求制御ルール定義データを格納し、割り込み要求制御ルール選択手段は、格納手段に格納された割り込み要求制御ルール定義データに定義された割り込み要求制御ルールのいずれかから、割り込み要求入力手段が入力された割り込み要求それぞれに対する割り込み要求制御ルールを選択し、割り込み処理実行命令発行手段は、割り込み要求制御ルール選択手段が選択した割り込み要求制御ルールに従って、情報処理システムに対し割り込み要求に係る割り込み処理実行命令を発行する。このため、割り込み要求に係る割り込み処理実行命令は、互いに異なる割り込み要求制御ルールに従って発行されることになり、一律に遅延させる処理に比べて、割り込み要求に係る割り込み処理をより適切に実行させることが可能となる。 According to this configuration, the storage unit stores interrupt request control rule definition data in which two or more different interrupt request control rules are defined, and the interrupt request control rule selection unit stores the interrupt request stored in the storage unit. From any of the interrupt request control rules defined in the control rule definition data, the interrupt request input means selects an interrupt request control rule for each input interrupt request, and the interrupt processing execution instruction issuing means selects the interrupt request control rule. In accordance with the interrupt request control rule selected by the means, an interrupt processing execution command related to the interrupt request is issued to the information processing system. For this reason, the interrupt processing execution instruction related to the interrupt request is issued according to different interrupt request control rules, and the interrupt processing related to the interrupt request can be executed more appropriately than the processing to uniformly delay. It becomes possible.
この場合、格納手段に格納された割り込み要求制御ルール定義データには、割り込み要求ごとに互いに異なる識別情報と割り込み制御ルールとが対応付けて定義されており、割り込み要求制御ルール選択手段は、割り込み要求入力手段が入力された割り込み要求に付された識別情報に対応する割り込み制御ルールを選択することが好適である。 In this case, the interrupt request control rule definition data stored in the storage means defines different identification information and interrupt control rules for each interrupt request in association with each other, and the interrupt request control rule selection means It is preferable to select an interrupt control rule corresponding to the identification information attached to the input interrupt request by the input means.
この構成によれば、格納手段に格納された割り込み要求制御ルール定義データには、割り込み要求ごとに互いに異なる識別情報と割り込み制御ルールとが対応付けて定義されており、割り込み要求制御ルール選択手段は、割り込み要求入力手段が入力された割り込み要求に付された識別情報に対応する割り込み制御ルールを選択するため、入力された割り込み要求をどの割り込み制御ルールで処理すべきかが指定されることになり、割り込み処理の実行がより確実となる。 According to this configuration, in the interrupt request control rule definition data stored in the storage means, different identification information and interrupt control rules are defined in association with each interrupt request, and the interrupt request control rule selection means is In order to select the interrupt control rule corresponding to the identification information attached to the interrupt request input by the interrupt request input means, it is specified by which interrupt control rule the input interrupt request should be processed, Execution of interrupt processing is more reliable.
また、格納手段に格納された割り込み要求制御ルール定義データには、割り込み要求の重要度別に割り込み制御ルールが定義されていることが好適である。 Moreover, it is preferable that the interrupt control rule is defined in the interrupt request control rule definition data stored in the storage means according to the importance of the interrupt request.
この構成によれば、格納手段に格納された割り込み要求制御ルール定義データには、割り込み要求の重要度別に割り込み制御ルールが定義されているため、割り込み処理の重要度に応じた適切な割り込み処理の制御が可能となる。 According to this configuration, the interrupt request control rule definition data stored in the storage means defines the interrupt control rule according to the importance level of the interrupt request. Control becomes possible.
また、格納手段に格納された割り込み要求制御ルール定義データには、所定時間内に入力された割り込み要求に係る割り込み処理実行命令を発行する回数の上限と、所定時間内に上限を超えて入力された割り込み要求の処置とが定義されていることが好適である。 Also, the interrupt request control rule definition data stored in the storage means is input with an upper limit of the number of times of issuing an interrupt processing execution command related to an interrupt request input within a predetermined time and exceeding the upper limit within a predetermined time. It is preferable that an interrupt request processing is defined.
この構成によれば、格納手段に格納された割り込み要求制御ルール定義データには、所定時間内に入力された割り込み要求に係る割り込み処理実行命令を発行する回数の上限と、所定時間内に上限を超えて入力された割り込み要求の処置とが定義されている。そのため、例えば、重要な割り込み要求のときは、2ミリ秒の間に3回まで割り込み要求が連続入力されても割り込み処理実行命令を発行すると定義し、重要ではない割り込み要求のときは、50ミリ秒の間に1回だけ割り込み要求が入力された場合に割り込み処理実行命令を発行し、それを超えた割り込み要求は破棄すると定義することにより、割り込み要求の種類又は用途に応じて、当該割り込み要求に適した条件により割り込み処理実行命令を発行することができる。 According to this configuration, the interrupt request control rule definition data stored in the storage means includes an upper limit for the number of times that an interrupt processing execution instruction related to an interrupt request input within a predetermined time is issued, and an upper limit within the predetermined time. It defines the action of interrupt requests that are input beyond this. Therefore, for example, for an important interrupt request, it is defined that an interrupt processing execution instruction is issued even if the interrupt request is continuously input up to 3 times in 2 milliseconds. If an interrupt request is input only once in a second, an interrupt processing execution instruction is issued, and an interrupt request exceeding that is discarded, so that the interrupt request depends on the type or usage of the interrupt request. An interrupt processing execution instruction can be issued under conditions suitable for the above.
また、格納手段に格納された割り込み要求制御ルール定義データには、長さを変更して設定をすることが可能な割り込み要求入力設定時間と、割り込み要求入力設定時間内に入力された割り込み要求に係る割り込み処理実行命令を発行する回数の上限と、割り込み要求入力設定時間内に上限を超えて入力された割り込み要求の処置とが定義されていることが好適である。 The interrupt request control rule definition data stored in the storage means includes the interrupt request input setting time that can be set by changing the length, and the interrupt request input within the interrupt request input setting time. It is preferable that an upper limit of the number of times that the interrupt processing execution instruction is issued and an action of an interrupt request input exceeding the upper limit within the interrupt request input setting time are defined.
この構成によれば、格納手段に格納された割り込み要求制御ルール定義データには、長さを変更して設定をすることが可能な割り込み要求入力設定時間と、割り込み要求入力設定時間内に入力された割り込み要求に係る割り込み処理実行命令を発行する回数の上限と、割り込み要求入力設定時間内に上限を超えて入力された割り込み要求の処置とが定義されており、割り込み要求入力設定時間は長さを変更して設定することが可能であるため、割り込み処理実行命令を発行する回数の上限に到達した後に、次の割り込み処理実行命令を発行することが可能になるまでの時間を調整でき、例えば、割り込み要求の重要度に応じて、情報処理システムが割り込み要求に係る割り込み処理を実行する時間と、情報処理システムが通常の処理を実行する時間とを調整することが可能となる。 According to this configuration, the interrupt request control rule definition data stored in the storage means is input within the interrupt request input set time that can be set by changing the length and the interrupt request input set time. The upper limit of the number of times that an interrupt processing execution instruction related to an interrupt request is issued and the action of an interrupt request input exceeding the upper limit within the interrupt request input setting time are defined, and the interrupt request input setting time is long. Since the upper limit of the number of times that an interrupt process execution instruction is issued can be adjusted, the time until the next interrupt process execution instruction can be issued can be adjusted, for example, Depending on the importance of the interrupt request, the time that the information processing system executes interrupt processing related to the interrupt request and the information processing system executes normal processing It is possible to adjust the time and.
また、格納手段に格納された割り込み要求制御ルール定義データには、割り込み要求が入力されてから、割り込み要求に係る割り込み処理実行命令を発行するまでに遅延させる時間が定義されていることが好適である。 Also, it is preferable that the interrupt request control rule definition data stored in the storage means defines a delay time from when the interrupt request is input to when the interrupt processing execution instruction related to the interrupt request is issued. is there.
この構成によれば、格納手段に格納された割り込み要求制御ルール定義データには、割り込み要求が入力されてから、割り込み要求に係る割り込み処理実行命令を発行するまでに遅延させる時間が定義されているため、例えば、重要な割り込み要求のときは遅延させずに割り込み処理実行命令を発行すると定義し、重要ではない割り込み要求のときは所定時間遅延させた後に割り込み処理実行命令を発行すると定義しておくことにより、当該割り込み要求の種類又は用途に応じて、当該割り込み要求に適した条件により割り込み処理実行命令を発行することができる。 According to this configuration, the interrupt request control rule definition data stored in the storage means defines a delay time from when an interrupt request is input to when an interrupt processing execution instruction related to the interrupt request is issued. Therefore, for example, an important interrupt request is defined as issuing an interrupt processing execution instruction without delay, and an unimportant interrupt request is defined as issuing an interrupt processing execution instruction after a predetermined delay. Thus, according to the type or application of the interrupt request, an interrupt processing execution instruction can be issued under conditions suitable for the interrupt request.
また、割り込み要求入力手段に入力された割り込み要求が、割り込み処理実行命令発行手段によってどのように処理されたかを記録する割り込み要求制御状況記録部をさらに備え、割り込み処理実行命令発行手段は、割り込み要求に係る割り込み処理実行命令を発行したときは、当該処理の状況を割り込み要求制御状況記録部に記録することが好適である。 In addition, an interrupt request control status recording unit for recording how the interrupt request input to the interrupt request input unit is processed by the interrupt processing execution command issuing unit is provided. When the interrupt processing execution instruction is issued, it is preferable to record the status of the processing in the interrupt request control status recording unit.
この構成によれば、割り込み要求制御状況記録部は、割り込み要求入力手段に入力された割り込み要求が、割り込み処理実行命令発行手段によってどのように処理されたかを記録し、割り込み処理実行命令発行手段は、割り込み要求に係る割り込み処理実行命令を発行したときは、当該処理の状況を割り込み要求制御状況記録部に記録するため、割り込み要求制御状況記録部の情報を参照することで、入力された割り込み要求がどのように制御されたかを確認することができる。 According to this configuration, the interrupt request control status recording unit records how the interrupt request input to the interrupt request input unit is processed by the interrupt processing execution command issuing unit, and the interrupt processing execution command issuing unit When an interrupt processing execution instruction related to an interrupt request is issued, the interrupt request input by referring to the information of the interrupt request control status recording unit in order to record the status of the processing in the interrupt request control status recording unit It can be confirmed how is controlled.
さらに、格納手段に格納された割り込み要求制御ルール定義データは、情報処理装置によって動的に変更可能とされていることが好適である。 Furthermore, it is preferable that the interrupt request control rule definition data stored in the storage means can be dynamically changed by the information processing apparatus.
この構成によれば、格納手段に格納された割り込み要求制御ルール定義データは、情報処理装置によって動的に変更可能とされているため、例えば、情報処理装置の状況に応じて、割り込み要求制御ルール定義データを動的に変更し、割り込み処理によって情報処理装置にかかる負荷を適切なものとすることができる。 According to this configuration, since the interrupt request control rule definition data stored in the storage means can be dynamically changed by the information processing device, for example, according to the status of the information processing device, the interrupt request control rule The definition data can be dynamically changed, and the load on the information processing apparatus can be made appropriate by interrupt processing.
本発明の割り込み処理装置によれば、情報処理システムに、割り込み要求に係る割り込み処理をより適切に実行させることができる。 According to the interrupt processing device of the present invention, it is possible to cause the information processing system to more appropriately execute the interrupt processing related to the interrupt request.
以下、本発明の実施の形態について添付図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the accompanying drawings.
図1に示すように、本実施形態の割り込み制御装置は、割り込み制御機構106に、OS(Operating System)101及びOS102が接続されている。OS101は、OS102に割り込み処理を実行させるため、割り込み制御機構106に割り込み要求Rを入力する。OS102は、そのメインルーチンを実行する他、割り込み制御機構106からの割り込み処理実行命令Iを受けて、当該割り込み処理実行命令Iに係る割り込み処理を実行する。
As shown in FIG. 1, in the interrupt control device of this embodiment, an OS (Operating System) 101 and an
割り込み制御機構106は、制御方法設定部103、割り込み制御部104、ステータス提示部105及び設定データ107を有している。制御方法設定部103は、OS101とOS102との間の割り込み処理の制御の設定を受け付けるためのものである。制御方法設定部103は、OS101、102いずれの側からも割り込み処理の制御の設定を受け付ける。
The
割り込み制御部104は、OS101からの割り込み要求Rを入力され、設定データ107に従って当該割り込み要求Rに係る割り込み処理実行命令IをOS102に対して発行するためのものである。また、割り込み制御部104は、各々の割り込み要求Rをどのように処理したかをステータス提示部105に記録する。
The
ステータス提示部105は、割り込み制御部104が各々の割り込み要求Rをどのように処理したかを記録する他、各々の割り込み要求Rに対する割り込み処理の現在及び過去の状況をOS101又はOS102に提示するためのものである。設定データ107は、制御方法設定部103によって設定された各々の割り込み要求Rに対する割り込み要求制御ルールを含むデータである。
The
以下、本実施形態の割り込み制御装置の動作について説明する。本実施形態においては、割り込み制御機構106において、OS101、102間の割り込みに関する閾値や当該閾値を超えた場合の割り込み制御部104の動作を記述したOS間割り込み番号ごとの制御データ107を、制御方法設定部103を用いて設定する。これにより、当該割り込み要求Rに関して割り込み処理実行命令Iを受信するOS102の割り込み負荷を予測可能とすることができる。
The operation of the interrupt control device according to this embodiment will be described below. In the present embodiment, the
これにより、割り込み制御機構106は、OS102が時間制約の厳しいリアルタイム処理中であるときは、閾値(例えば単位時間当りの割り込み処理実行命令回数)以下の割り込み処理実行命令Iしか受信させないようにし、OS102が当該リアルタイム処理を完了したら、未受信だった割り込み処理実行命令Iを受信させて、割り込み処理を再開させることができる。
As a result, when the
図2に、割り込み要求制御ルールとして定めた閾値の例を示す。図2の例では、単位時間内の割り込み回数(割り込み処理実行命令回数)を閾値としている。図2に示すように、割り込み要因(OS間割り込み番号に関連付けられるOS間での特定の事象の伝達等)ごとに、割り込み回数を制限する単位時間と、当該単位時間内で許可する割り込み回数とが割り込み要求制御ルールとして指定することができる。これらの割り込み要求制御ルールは、受信側であるOS102側から、制御方法設定部103に対して動的に指定することができる。
FIG. 2 shows an example of threshold values defined as interrupt request control rules. In the example of FIG. 2, the number of interrupts within a unit time (the number of interrupt processing execution instructions) is used as a threshold value. As shown in FIG. 2, for each interrupt factor (such as transmission of a specific event between OSs associated with an OS interrupt number), the unit time for limiting the number of interrupts, and the number of interrupts permitted within the unit time, Can be specified as an interrupt request control rule. These interrupt request control rules can be dynamically specified to the control
図2に示すように、例えば、OS間割り込み番号「1」について、2ミリ秒で3回まで受信と指定すると、連続する割り込み処理実行命令Iを3回までは受信側のOS102に送り、4回目は1回目の割り込みから2ミリ秒後まで処理を制限する。割り込みの処理の制限処理は、OS間割り込み番号ごとに、制御方法設定部103による設定により遅延及びエラー通知等を選択することができる。図1に示す例では、単位時間内に閾値の回数だけ受信した割り込み要求R1については、割り込み制御部104は、そのまま割り込み処理実行命令I1を発行する。一方、単位時間内に閾値の回数に到達した割り込み要求R2については、割り込み制御部104は、遅延処理を行った後に、割り込み処理実行命令I2を発行する。
As shown in FIG. 2, for example, if the inter-OS interrupt number “1” is designated to be received up to 3 times in 2 milliseconds, a continuous interrupt processing execution instruction I is sent to the receiving
これにより、OS間割り込みが多発する状況において、優先すべき割り込みは当該閾値の範囲内で即座にOS102に伝達し、優先すべきではない割り込みは遅延又はエラーとすることで、OS間割り込みを失うことなく、受信側のOS102の割り込み負荷を一定に抑えて、システムの目的であるアプリケーションプログラム等の必要な処理を継続させることが可能となる。
As a result, in a situation where interrupts between OSs occur frequently, interrupts that should be prioritized are immediately transmitted to the
ここで、OS間割り込みの割り込み要求Rを発行するOS101は、その割り込みが、単位時間当たりの割り込み回数上限といった指定された閾値を超えた場合は、それをエラー割り込みや、割り込み制御機構106のステータス提示部105の読み出しによって知ることができる。
Here, the
割り込み要求Rを発行するOS101が割り込みの閾値を超えたことを知る手段として、設定データ107が閾値を超えた割り込みは遅延させる設定となっている場合は、OS101が、ある割り込み要求Rの発行後に、割り込み制御機構106のステータス提示部105中の当該割り込み要求Rに該当する部分を読み出すと、当該割り込み要求Rが、受け付けられたのか、あるいは遅延されたのか等の情報を得ることができる。このように、割り込み要求Rの発行元であるOS101では、図2に示すように、当該割り込み要求Rごとに設定されている単位時間経過後に再度、ステータス提示部105を読み出す処理を繰り返すことで、当該割り込み要求Rの遅延処理の終了を確認することができる。
As a means for knowing that the
一方、割り込み要求Rを発行するOS101が割り込みの閾値を超えたことを知る手段として、設定データ107が閾値を超えた割り込みはエラー返答する設定となっている場合は、OS101が割り込み要求Rの発行後に、ステータス提示部105中の当該割り込み要求Rに該当する部分にエラーを表す値が格納されるとともに、エラー用割り込みが、割り込み要求Rの発行元であるOS101に対して発行される。エラー用割り込みを受けたOS101では、ステータス提示部105の該当部分を読み出すことで、エラーの詳細を知ることができる。
On the other hand, as a means for knowing that the
従来のマルチOSシステムでは、一方のOSから他方のOSに割り込みを多発させると、受信側のOSがその割り込み処理に忙殺され、機能が十分に発揮できない状況、または割り込み要求の一部が失われる状況が発生している。これは、OS間で割り込みが多発した場合に、その発生頻度を割り込み制御により制御することができず、割り込み要求の発行側のOSのみによって制御されるため、受信側のOSの負荷が増大するか、または受信側のOSが割り込みを禁止することで負荷を下げた結果として、割り込み要求が一部失われることが避けられなかった。また、割り込み要求の発行側のOSでは、割り込み要求によって受信側のOSの負荷が増大しているかどうかは知り得ず、割り込み要求の発行を一時的に取りやめるなどの対処策を実施する判断ができなかった。 In a conventional multi-OS system, if an interrupt is generated frequently from one OS to the other, the OS on the receiving side is busy with the interrupt processing, and the situation where the function cannot be fully performed or a part of the interrupt request is lost. A situation has occurred. This is because, when interrupts occur frequently between OSs, the frequency of occurrence cannot be controlled by interrupt control, and is controlled only by the OS on the interrupt request issuing side, so the load on the OS on the receiving side increases. Alternatively, it is inevitable that some interrupt requests are lost as a result of the load being reduced by prohibiting interrupts by the receiving OS. Also, the interrupt request issuing OS cannot know whether the load on the receiving OS has increased due to the interrupt request, and can decide to implement countermeasures such as temporarily canceling the interrupt request issue. There wasn't.
しかしながら、本実施形態では、二つ以上の互いに異なる割り込み要求制御ルールが定義された設定データ107が格納され、割り込み制御部104は、格納された設定データ107に定義された割り込み要求制御ルールのいずれかから、入力された割り込み要求それぞれに対する割り込み要求制御ルールを選択し、選択した割り込み要求制御ルールに従って、OS102に対し割り込み要求Rに係る割り込み処理実行命令Iを発行する。このため、割り込み要求Rに係る割り込み処理実行命令Iは、互いに異なる割り込み要求制御ルールに従って発行されることになり、一律に遅延させる処理に比べて、割り込み要求Rに係る割り込み処理をより適切に実行させることが可能となる。
However, in the present embodiment, the setting
また、本実施形態では、格納された設定データ107には、割り込み要求Rごとに互いに異なるOS間割り込み番号と割り込み制御ルールとが対応付けて定義されており、割り込み制御部104は、入力された割り込み要求Rに付されたOS間割り込み番号に対応する割り込み制御ルールを選択するため、入力された割り込み要求Rをどの割り込み制御ルールで処理すべきかが指定されることになり、割り込み処理の実行がより確実となる。
In the present embodiment, the stored setting
また、本実施形態では、格納された設定データ107には、割り込み要求Rの重要度別に割り込み制御ルールが定義されているため、割り込み処理Rの重要度に応じた適切な割り込み処理の制御が可能となる。
In the present embodiment, since the stored setting
また、本実施形態では、格納された設定データ107には、所定時間内に入力された割り込み要求Rに係る割り込み処理実行命令Iを発行する回数の上限と、所定時間内に上限を超えて入力された割り込み要求Rの処置とが定義されている。そのため、例えば、重要な割り込み要求Rのときは、2ミリ秒の間に3回まで割り込み要求Rが連続入力されても割り込み処理実行命令Iを発行すると定義し、重要ではない割り込み要求Rのときは、50ミリ秒の間に1回だけ割り込み要求Rが入力された場合に割り込み処理実行命令Iを発行し、それを超えた割り込み要求Rは破棄すると定義することにより、割り込み要求Rの種類又は用途に応じて、当該割り込み要求Rに適した条件により割り込み処理実行命令Iを発行することができる。
In the present embodiment, the stored setting
特に、本実施形態では、格納された設定データ107には、長さを変更して設定をすることが可能な割り込み要求Rの入力を制限する単位時間と、当該単位時間内に入力された割り込み要求Rに係る割り込み処理実行命令Iを発行する回数の上限と、当該単位時間内に上限を超えて入力された割り込み要求Rの処置とが定義されている。当該単位時間は長さを変更して設定することが可能であるため、割り込み処理実行命令Iを発行する回数の上限に到達した後に、次の割り込み処理実行命令Iを発行することが可能になるまでの時間を調整でき、例えば、割り込み要求Rの重要度に応じて、OS102が割り込み要求Rに係る割り込み処理を実行する時間と、OS102が通常の処理を実行する時間とを調整することが可能となる。
In particular, in the present embodiment, the stored setting
また、本実施形態では、格納された設定データ107には、割り込み要求Rが入力されてから、割り込み要求Rに係る割り込み処理実行命令Iを発行するまでに遅延させる時間が定義されているため、例えば、重要な割り込み要求Rのときは遅延させずに割り込み処理実行命令Iを発行すると定義し、重要ではない割り込み要求Rのときは所定時間遅延させた後に割り込み処理実行命令Iを発行すると定義しておくことにより、当該割り込み要求Rの種類又は用途に応じて、当該割り込み要求Rに適した条件により割り込み処理実行命令Iを発行することができる。
In the present embodiment, the stored setting
また、本実施形態では、ステータス提示部105は、入力された割り込み要求Rが、割り込み制御部104によってどのように処理されたかを記録し、割り込み制御部104は、割り込み要求Rに係る割り込み処理実行命令Iを発行したときは、当該処理の状況をステータス提示部105に記録するため、ステータス提示部105の情報を参照することで、入力された割り込み要求Rがどのように制御されたかを確認することができる。
In the present embodiment, the
さらに、本実施形態では、設定データ107は、受信側のOS102によって動的に変更可能とされているため、例えば、受信側のOS102の状況に応じて、設定データ107を動的に変更し、割り込み処理によってOS102にかかる負荷を適切なものとすることができる。
Furthermore, in the present embodiment, since the setting
特に、本実施形態では、上述した構成により、割り込み要求Rの発行側のOS101では、自らが発行した割り込み要求Rが閾値を超えてしまい、受信側のOS102に到達しない状況を把握することができ、一定時間待ってから発行し直す等の対処も可能となる。つまり、割り込み要求Rの発行側のOS101が、受信側のOS102を含めた割り込みの負荷状況と、発行しようとする割り込み要求Rの緊急性とのバランスをとって、状況に適した割り込み制御が可能となる。
In particular, in the present embodiment, with the configuration described above, the
尚、本発明は、上記した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。例えば、上記実施形態では、本発明を主にOS間割り込みに適用することを前提として説明したが、本発明は、周辺装置等やタイマー等のCPU付属装置から発生する割り込みに関しても適用することが可能である。この場合、それらの装置の異常によって割り込みが非常に多く発生した場合でも、OSの動作を必要以上に妨げないようにすることが可能である。なお、この場合、ステータス提示部105の当該装置等へのインターフェイスに関しては、別途、通信線を設けて接続したり、既存のバス上に新たなプロトコルを設けて通信するなど、さまざまな方式が考えられる。
It should be noted that the present invention is not limited to the above-described embodiment, and it is needless to say that various modifications can be made without departing from the gist of the present invention. For example, in the above embodiment, the present invention has been described on the assumption that the present invention is mainly applied to inter-OS interrupts, but the present invention can also be applied to interrupts generated from CPU attached devices such as peripheral devices and timers. Is possible. In this case, even when a large number of interrupts are generated due to the abnormality of these devices, it is possible to prevent the OS operation from being disturbed more than necessary. In this case, regarding the interface of the
101,102…OS、103…制御方法設定部、104…割り込み制御部、105…ステータス提示部、106…割り込み制御機構、107…設定データ。 101, 102 ... OS, 103 ... control method setting unit, 104 ... interrupt control unit, 105 ... status presentation unit, 106 ... interrupt control mechanism, 107 ... setting data.
Claims (8)
二つ以上の互いに異なる割り込み要求制御ルールが定義された割り込み要求制御ルール定義データを格納する格納手段と、
前記格納手段に格納された前記割り込み要求制御ルール定義データに定義された前記割り込み要求制御ルールのいずれかから、前記割り込み要求入力手段が入力された前記割り込み要求それぞれに対する前記割り込み要求制御ルールを選択する割り込み要求制御ルール選択手段と、
前記割り込み要求制御ルール選択手段が選択した前記割り込み要求制御ルールに従って、情報処理システムに対し前記割り込み要求に係る割り込み処理実行命令を発行する割り込み処理実行命令発行手段と、
を備えた割り込み処理装置。 An interrupt request input means for inputting an interrupt request;
Storage means for storing interrupt request control rule definition data in which two or more different interrupt request control rules are defined;
The interrupt request input means selects the interrupt request control rule for each of the interrupt requests input from any of the interrupt request control rules defined in the interrupt request control rule definition data stored in the storage means. An interrupt request control rule selection means;
In accordance with the interrupt request control rule selected by the interrupt request control rule selection means, an interrupt processing execution instruction issuing means for issuing an interrupt processing execution instruction related to the interrupt request to an information processing system;
An interrupt processing device.
前記割り込み要求制御ルール選択手段は、前記割り込み要求入力手段が入力された前記割り込み要求に付された前記識別情報に対応する前記割り込み制御ルールを選択する、請求項1に記載の割り込み処理装置。 In the interrupt request control rule definition data stored in the storage means, identification information different from each other for each interrupt request and the interrupt control rule are defined in association with each other,
The interrupt processing apparatus according to claim 1, wherein the interrupt request control rule selection unit selects the interrupt control rule corresponding to the identification information attached to the interrupt request input by the interrupt request input unit.
前記割り込み処理実行命令発行手段は、前記割り込み要求に係る割り込み処理実行命令を発行したときは、当該処理の状況を前記割り込み要求制御状況記録部に記録する、請求項1〜6のいずれか1項に記載の割り込み処理装置。 An interrupt request control status recording unit for recording how the interrupt request input to the interrupt request input unit is processed by the interrupt processing execution command issuing unit;
7. The interrupt process execution instruction issuing means, when issuing an interrupt process execution instruction related to the interrupt request, records the status of the process in the interrupt request control status recording unit. The interrupt processing device described in 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009130760A JP2010277422A (en) | 2009-05-29 | 2009-05-29 | Interrupt handler |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009130760A JP2010277422A (en) | 2009-05-29 | 2009-05-29 | Interrupt handler |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010277422A true JP2010277422A (en) | 2010-12-09 |
Family
ID=43424313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009130760A Pending JP2010277422A (en) | 2009-05-29 | 2009-05-29 | Interrupt handler |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010277422A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013069159A1 (en) * | 2011-11-11 | 2013-05-16 | 富士通株式会社 | Electronic computer and interrupt control method |
JP2013097659A (en) * | 2011-11-02 | 2013-05-20 | Renesas Electronics Corp | Semiconductor data processor, time trigger communication system and communication system |
JP2014160367A (en) * | 2013-02-20 | 2014-09-04 | Mitsubishi Electric Corp | Arithmetic processing unit |
-
2009
- 2009-05-29 JP JP2009130760A patent/JP2010277422A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013097659A (en) * | 2011-11-02 | 2013-05-20 | Renesas Electronics Corp | Semiconductor data processor, time trigger communication system and communication system |
WO2013069159A1 (en) * | 2011-11-11 | 2013-05-16 | 富士通株式会社 | Electronic computer and interrupt control method |
JPWO2013069159A1 (en) * | 2011-11-11 | 2015-04-02 | 富士通株式会社 | Electronic computer and interrupt control method |
US9785586B2 (en) | 2011-11-11 | 2017-10-10 | Fujitsu Limited | Electronic computer and interrupt control method |
JP2014160367A (en) * | 2013-02-20 | 2014-09-04 | Mitsubishi Electric Corp | Arithmetic processing unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4516999B2 (en) | Data communication control device, data communication control method, and program therefor | |
JP4456404B2 (en) | Data processing apparatus and interrupt processing method | |
JP2005100230A (en) | Interface device and packet transfer method | |
JP2009163658A (en) | Input/output controller and its firmware update method | |
JP2010277422A (en) | Interrupt handler | |
US20130013840A1 (en) | Single pipe non-blocking architecture | |
US20160224285A1 (en) | Printer control apparatus, printing control method, and printing control system | |
JP2010160713A (en) | Field control device and field control method | |
JP2017161994A (en) | Control computation device | |
JP2007299126A (en) | Controller and program for controller | |
JP7124023B2 (en) | controller | |
JP2004164253A (en) | Queue controller and registration suppression method used therefor | |
JP6226666B2 (en) | Batch processing control program, batch processing system | |
JP4877317B2 (en) | Information processing apparatus and interrupt control method | |
JP3257484B2 (en) | Computer communication flow control method, method and recording medium | |
US11481264B2 (en) | Data processing device, monitoring method, and program | |
JP2008146527A (en) | Command processing method | |
JP2007323256A (en) | Interruption control method and information processor | |
JP2006172229A (en) | Operation control method for task, operation control system for task and program | |
JP2007122490A (en) | Computer | |
JP2007241842A (en) | I/o bridge circuit and interrupt signal control method | |
JP2008171119A (en) | System, method and program for detecting failure of terminal device | |
JP2007041890A (en) | Task control device | |
JP4984165B2 (en) | Priority controller for input / output request, priority control method for input / output request, and priority control program for input / output request | |
JP2005032036A (en) | Device for automatically setting interruption interval value for channel card |