JPH0330026A - I/o blank interruption count control system - Google Patents
I/o blank interruption count control systemInfo
- Publication number
- JPH0330026A JPH0330026A JP1165775A JP16577589A JPH0330026A JP H0330026 A JPH0330026 A JP H0330026A JP 1165775 A JP1165775 A JP 1165775A JP 16577589 A JP16577589 A JP 16577589A JP H0330026 A JPH0330026 A JP H0330026A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- interruption
- processing
- cause
- interrupts
- 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
Landscapes
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要〕
割込みベクタによる割込み制御を行う通信アダプタにお
いて.異常によって発生する空割込みを検出できるよう
にしたI/O空割込みカウント制御方式に関し,
通信アダプタ使用中に,ノイズ.誤動作等により,異常
が発生した場合に,そのまま通常の処理継続できるよう
にするとともに.ハードウェアの異常検出も可能とする
ことを目的とし,各割込みヘクタに対応して,空割込み
回数のカウント値が設定されるカウンタ領域と,割込み
に対して.割込みベクタアドレスへのジャンプの後に,
割込み原因レジスタを調べ.割込み原因がセットされて
いない空割込みに対して.該当するカウンタ領域のカウ
ント値を更新し,割込みからの復帰を行う空割込み処理
手段とを備え.通信アダプタにおける空割込みのカウン
ト制御を行うように構成する。[Detailed Description of the Invention] [Summary] In a communication adapter that performs interrupt control using interrupt vectors. Regarding the I/O idle interrupt count control method that enables the detection of idle interrupts caused by abnormalities, noise may occur while the communication adapter is in use. In the event that an abnormality occurs due to a malfunction, etc., it will be possible to continue normal processing. The purpose is to enable the detection of hardware abnormalities, and there is a counter area where a count value of the number of empty interrupts is set corresponding to each interrupt hector, and a counter area for interrupts. After jumping to the interrupt vector address,
Check the interrupt cause register. For empty interrupts with no interrupt cause set. Equipped with idle interrupt processing means that updates the count value of the corresponding counter area and returns from the interrupt. The communication adapter is configured to control the count of idle interrupts.
本発明は.割込みベクタによる割込み制御を行う通信ア
ダプタにおいて.異常によって発生する空割込みを検出
できるようにしたI/O空割込みカウント制御方式に関
する.
〔従来の技術〕
通信アダプタにおいて,I/O(入出力)を制御する個
所は,ワークステーションやパソコン等の本体側とのデ
ータのDMA回路.およびLANや交換回線,パケッ+
−mなどを扱う回線対応部である。The present invention is. In communication adapters that perform interrupt control using interrupt vectors. This paper relates to an I/O idle interrupt count control method that enables the detection of idle interrupts caused by abnormalities. [Prior Art] In a communication adapter, the part that controls I/O (input/output) is a DMA circuit for data exchange with the main body of a workstation, personal computer, etc. and LAN, switched lines, packet +
This is the line support section that handles -m, etc.
通信アダプタを用いて通信する場合には,これらのI/
O部分を,ソフトウふアで制御して.データの受け渡し
を行う.例えばデータ送信の場合,本体から通信アダプ
タに,DMA転送でデータを送信し,通信アダプタ内で
プロトコル処理後.回線対応部にデータを送り出す.逆
にデータ受信の場合,回線対応部からデータを受け取り
,通信アダプタでプロトコル処理後,本体側にDMA転
送でデータを送信する.その際に,DMA回路と回線対
応部の部分に割込みが発生する.
割込みベクタによる割込み制御機能を持つ通信アダプタ
では.割込みが発生すると.現在処理中のプログラムの
実行を中断し,例外処理に入る.その例外処理によって
.割込みベクタにセットされているアドレスに制御が移
り,割込みの種類に応じたプロトコル処理等を行う。When communicating using a communication adapter, these I/
The O part is controlled by software. Exchange data. For example, in the case of data transmission, the data is sent from the main unit to the communication adapter using DMA transfer, and after protocol processing within the communication adapter. Sends data to the line support section. Conversely, in the case of data reception, the data is received from the line support section, and after protocol processing by the communication adapter, the data is sent to the main unit using DMA transfer. At that time, an interrupt occurs in the DMA circuit and the line correspondence section. For communication adapters that have an interrupt control function using interrupt vectors. When an interrupt occurs. Interrupts the execution of the program currently being processed and enters exception handling. By that exception handling. Control is transferred to the address set in the interrupt vector, and protocol processing, etc. according to the type of interrupt is performed.
通常,このような割込み処理が行われるが.電源異常や
ケーブル上のノイズ,あるいは他のハードウエア異常に
より.正しくソフトウェアでプロトコル処理が行えない
場合がある.
例えば.データ受信の割込みを受け取ったにもかかわら
ず,実際には,データの受信がなかったというような場
合である。このように,割込み原因がないにもかかわら
ず起きる割込みを,空割込みという.
従来,通信アダプタにおいて,I/O空割込みが起きる
と.そのままプロトコル処理に入るため.ソフトウェア
が異常動作をきたすことがあった.また,空割込みであ
ることを判定したとしても,単にその空割込みを無視す
るだけであったので.実際にハードウェアに異常があっ
たかどうかを.後で検査することができなかった.
〔発明が解決しようとする課題〕
従来技術によれば,I/O空割込みが起きると.異常動
作を起こして.装置がダウンしてしまうという問題があ
った.また.空割込みに対して.何もせずに通常処理に
復帰した場合.空割込みの頻発により,性能が劣化して
も,その原因を調べることができないという問題があっ
た.
本発明は上記問題点の解決を図り,通信アダプタ使用中
に,ノイズ,誤動作等により.異常が発生した場合に,
そのまま通常の処轟続できるようにするとともに.ハー
ドウェアの異常検出も可能とすることを目的としている
.
〔課題を解決するための手段〕
第1図は本発明の原理構成図である.
第1図において.10はCPUおよびメモリなどを備え
た通信アダプタ,11はハードウェアの割込み例外処理
機構.12は割込み発生時の飛び先アドレスが各割込み
ベクタごとに用意された割込みベクタアドレス,13A
,13B,・・・は各IJ込みヘクタごとの割込み処理
部,14A.14B,・・・は空割込み処理手段.15
は割込みの原因がセットされる割込み原因レジスタ,1
6A,16B,・・・は割込みベクタごとに空割込みの
回数がセットされるカウンタ領域を表す.
割込みベクタによる割込み制御を行う通信アダプタ10
では,I/O割込み等が発生すると,割込み例外処理機
構11が動作し,内部で発生したベクタ番号または外部
から通知されたベクタ番号に応じた割込みベクタアドレ
ス12の割込み処理アドレスに,制御を移行する.これ
らの処理については.従来技術と同様である.
本発明では,あらかしめ各割込みベクタに対応して,空
割込み回数のカウント値が設定されるカウンタ領域16
A,16B,・・・が用意される.これらのカウンタ領
域16A,16Bは.初期設定時に,“0゜゛に初期化
される。Normally, this kind of interrupt processing is performed. Due to power failure, noise on the cable, or other hardware failure. In some cases, the software may not be able to process the protocol correctly. for example. This is a case where no data was actually received even though a data reception interrupt was received. An interrupt that occurs even though there is no cause for the interrupt is called an empty interrupt. Conventionally, when an I/O idle interrupt occurs in a communication adapter. To proceed directly to protocol processing. The software sometimes malfunctioned. Also, even if it was determined that it was an empty interrupt, the empty interrupt was simply ignored. Check whether there was actually a problem with the hardware. I was unable to test it later. [Problem to be solved by the invention] According to the prior art, when an I/O idle interrupt occurs. Causes abnormal behavior. There was a problem with the equipment going down. Also. For empty interrupts. If you return to normal processing without doing anything. Even if performance deteriorated due to the frequent occurrence of empty interrupts, there was a problem in that it was not possible to investigate the cause. The present invention aims to solve the above-mentioned problems, and prevents noise, malfunction, etc. from occurring while using a communication adapter. If an abnormality occurs,
This will allow you to continue with normal treatment. The purpose is to also enable hardware abnormality detection. [Means for solving the problem] Figure 1 is a diagram showing the basic configuration of the present invention. In Figure 1. 10 is a communication adapter equipped with a CPU, memory, etc., and 11 is a hardware interrupt exception handling mechanism. 12 is an interrupt vector address where the destination address when an interrupt occurs is prepared for each interrupt vector, 13A
, 13B, . . . are interrupt processing units for each IJ hector, 14A. 14B, . . . are empty interrupt processing means. 15
is the interrupt cause register where the interrupt cause is set, 1
6A, 16B, . . . represent counter areas in which the number of empty interrupts is set for each interrupt vector. Communication adapter 10 that performs interrupt control using interrupt vectors
In this case, when an I/O interrupt etc. occurs, the interrupt exception handling mechanism 11 operates and transfers control to the interrupt processing address of the interrupt vector address 12 according to the vector number generated internally or the vector number notified from the outside. do. Regarding these processes. This is the same as the conventional technology. In the present invention, a counter area 16 is provided in which a count value of the number of empty interrupts is set corresponding to each interrupt vector.
A, 16B, ... are prepared. These counter areas 16A, 16B. At initial setting, it is initialized to "0°".
各割込みベクタに応じた割込み処理部L3A,13B,
・・・は,割込みに対して.該当する割込み原因レジス
クI5を調べ,割込み原因がセットされていない空割込
みに対して.その割込みヘクタに対応するカウンタ領域
16A,16B,・・・のカウント値を更新し.割込み
からの復帰を行う空割込み処理手段14A,14B,・
・・を備えている.これにより.通信アダプタIOにお
ける空割込みのカウント制御を行うようにしている.〔
作用〕
通信アダプタ10の使用中に.ノイズ,誤動作等により
,空割込みが発生すると,その空割込みをカウントし,
通常の割込みによるプロトコル処理等を回避して,その
まま割込み前の処理に復帰するので.そのまま通常の処
理を継続することができる.また,性能が急に劣化した
とか,何らかの異常があった場合,または定期点検等の
場合に,カウンク領域16A,16B,・・・の内容を
ダンブし,それが“0″かどうかを調べることにより,
空割込みの異常があったかどうかを検査することができ
る。Interrupt processing units L3A, 13B, according to each interrupt vector,
...is for interrupts. Check the corresponding interrupt cause register I5 and check for empty interrupts for which no interrupt cause is set. The count values of the counter areas 16A, 16B, . . . corresponding to the interrupt hector are updated. Idle interrupt processing means 14A, 14B, . . .
It is equipped with... Due to this. I am trying to control the count of idle interrupts in the communication adapter IO. [
Operation] While using the communication adapter 10. When an empty interrupt occurs due to noise, malfunction, etc., the empty interrupt is counted and
This avoids the protocol processing caused by normal interrupts and returns to the processing before the interrupt. You can continue normal processing. In addition, if the performance suddenly deteriorates, if there is any abnormality, or if there is a periodic inspection, etc., dump the contents of count areas 16A, 16B, etc. and check whether they are "0" or not. By,
It is possible to check whether there is an abnormality in idle interrupts.
〔実施例]
第2図は本発明の適用システムfjl或図,第3図は本
発明に関連する割込みヘクタの説明図,第4図は本発明
の一実施例処理説明図である。[Embodiment] FIG. 2 is a diagram of an application system fjl of the present invention, FIG. 3 is an explanatory diagram of an interrupt hector related to the present invention, and FIG. 4 is an explanatory diagram of processing in an embodiment of the present invention.
本発明は,例えば第2図に示すようなシステムにおける
通信アダプタ10に適用可能である。The present invention is applicable to a communication adapter 10 in a system as shown in FIG. 2, for example.
ワークステーション等の本体処理装置20と,通信アダ
プタ10とは,DMA回路21.22を介して,データ
を送受信する。プロトコル処理部23は,通信の各種制
御手順に応した処理を行うソフトウェアである。回線対
応部24は.モデム25,回線26を通して,データの
送受信を行うインタフェースである.
通信アダプタ10におけるI/Oは,DMA回路22お
よび回線対応部24に対して行われ,割込みもこれらに
よって発生する.割込み発生時における各割込み処理へ
の制御移行は,第3図に示すような割込みベクタアドレ
ス12によって行われる.
第3図に示すように,アダプタメモリ30の特定の番地
に,割込みベクタアドレス12が用意され.本体からの
要求によるDMA回路22の割込みや,回線対応部24
からの割込みに対して,それぞれベクタ番号に従った位
置に.制御を移すべき割込み処理アドレスが設定されて
いる.この割込み処理アドレスの設定は,TPL時に.
通信アダプタ10のROMに格納された制御プログラム
が行う.この割込み処理アドレスから,それぞれプロト
コル処理部のソフトウエアが制御を得る。The main processing device 20 such as a workstation and the communication adapter 10 transmit and receive data via DMA circuits 21 and 22. The protocol processing unit 23 is software that performs processing corresponding to various communication control procedures. The line support section 24 is. This is an interface that sends and receives data through the modem 25 and line 26. I/O in the communication adapter 10 is performed to the DMA circuit 22 and the line correspondence section 24, and interrupts are also generated by these. When an interrupt occurs, control is transferred to each interrupt process using the interrupt vector address 12 as shown in Figure 3. As shown in FIG. 3, an interrupt vector address 12 is prepared at a specific address in the adapter memory 30. Interruption of the DMA circuit 22 due to requests from the main unit, and line handling section 24
For each interrupt from , the position is according to the vector number. The interrupt processing address to which control should be transferred is set. This interrupt processing address is set during TPL.
This is performed by a control program stored in the ROM of the communication adapter 10. The software of each protocol processing section obtains control from this interrupt processing address.
本発明では,特に,,アダプタメモリ30内の特定領域
内に,各割込みヘクタごとの空割込み回数がカウントさ
れるカウンタ領域16が設けられている.
次に,第4図に示す■〜■に従って,本発明の一実施例
についての処理動作を説明する.■ あるプログラムが
走行中に,それより割込みレベルが高い割込みが発生す
ると,第3図に示す割込みベクタアドレスl2から,割
込み処理部13に制御が渡される。In particular, in the present invention, a counter area 16 is provided in a specific area in the adapter memory 30, in which the number of empty interrupts for each interrupt hectare is counted. Next, processing operations of an embodiment of the present invention will be explained according to ■ to ■ shown in FIG. (2) When a certain program is running and an interrupt with a higher interrupt level occurs, control is passed to the interrupt processing unit 13 from the interrupt vector address l2 shown in FIG.
■ 割込み処理部l3では,割込み原因レジスタ15を
参照し.割込み原因を調べる.I/O割込み等に関する
割込み原因としては,第2図に示す回線対応部24から
の送信または受信割込み,本体との間のDMA転送が完
了したことを示す割込み,メインCPUからスタートビ
ットがセソトされたことを示す割込みなどがある。■ The interrupt processing unit l3 refers to the interrupt cause register 15. Check the cause of the interrupt. Interrupt causes related to I/O interrupts, etc. include transmission or reception interrupts from the line support section 24 shown in Figure 2, interrupts indicating completion of DMA transfer with the main body, and start bits being set from the main CPU. There are interrupts to indicate that something has happened.
■ 割込み原因を示すビットがONであれば,正常な割
込みとして,その割込み原因に応したプロトコル処理を
行う。■ If the bit indicating the cause of the interrupt is ON, it is considered a normal interrupt and the protocol processing corresponding to the cause of the interrupt is performed.
■ その後,割込み元のプログラムに復帰する。■ After that, return to the interrupt source program.
■ 例えば,ノイズ,誤動作等により,空割込みが発生
したとする。■ For example, assume that an empty interrupt occurs due to noise, malfunction, etc.
■ 割込み処理部13に制御が移行するので,割込み原
因レジスタ15を参照し,割込み原因を調ベる.
■ 割込み原因を示すビットがOFFであれば,空割込
みの異常であることがわかる。そこで.割込みベクタご
とに用意されたカウンク領域l6のカウント値を+1す
る.その後,プロトコル処理を行わずに,割込み地点に
復帰する。■ Since control is transferred to the interrupt processing unit 13, refer to the interrupt cause register 15 and check the cause of the interrupt. ■ If the bit indicating the cause of the interrupt is OFF, this indicates an idle interrupt error. Therefore. Add 1 to the count value in count area l6 prepared for each interrupt vector. Thereafter, the process returns to the interrupt point without performing any protocol processing.
もし,空割込みが間歇的なものであり,その後,発生す
るようなことがなければ,以後.正常に処理が続けられ
ることになる.一方,空割込みが頻発すると,性能上,
外部にも影響が現れることがあるので,その場合,メモ
リダンプなど1:よ,て,カウンタ領域16を調べる.
これにより,空割込みが発生しているか否か.また発生
している場合には,どの割込みベクタが異常かというこ
とが直ちにわかる.
また.この空割込みのチェックは.デバッグ時や運用テ
スト等においても行うことができ,ハードウユアの交換
や修理を,重大な障害が発生する前に早期に行うことが
できるようになる.〔発明の効果〕
以上説明したように,本発明によれば.電源異常や種々
の間歇的なハードウエア異常により.空割込みが起きて
も,ソフトウエアが異常動作しないようになる.また,
空割込みのカウンタ・ログの結果により,空割込みに関
するハードウエアの異常が検出可能になる.If the empty interrupt is intermittent and will not occur again, then proceed as follows. Processing will continue normally. On the other hand, if empty interrupts occur frequently, performance will suffer.
There may also be an effect externally, so in that case, check the counter area 16 using a memory dump etc.
This determines whether an empty interrupt is occurring or not. If it occurs, you can immediately tell which interrupt vector is abnormal. Also. Check this empty interrupt. This can also be done during debugging or operational testing, allowing hardware to be replaced or repaired early before a major failure occurs. [Effects of the Invention] As explained above, according to the present invention. Due to power supply abnormalities and various intermittent hardware abnormalities. The software will no longer operate abnormally even if an empty interrupt occurs. Also,
Based on the results of the empty interrupt counter log, hardware abnormalities related to empty interrupts can be detected.
第l図は本発明の原理構或図,
第2図は本発明の適用システム構或図,第3図は本発明
に関連する割込みベクタの説明図,
第4図は本発明の一実施例処理説明図である.図中,1
0は通信アダプタ,1lは割込み例外処理機構.12は
割込みベクタアドレス,13A.13Bは割込み処理部
.14A,14Bは空割込み処理手段,15は割込み原
因レジスタ,16A,16Bはカウンタ領域を表す.
$−1込hへ゛クタの客先明図
$ 3 図Figure 1 is a diagram showing the principle structure of the present invention, Figure 2 is a diagram showing the system configuration to which the present invention is applied, Figure 3 is an explanatory diagram of interrupt vectors related to the present invention, and Figure 4 is an example of an embodiment of the present invention. This is a process explanatory diagram. In the figure, 1
0 is a communication adapter, 1l is an interrupt exception handling mechanism. 12 is an interrupt vector address, 13A. 13B is an interrupt processing section. 14A and 14B represent empty interrupt processing means, 15 represents an interrupt cause register, and 16A and 16B represent a counter area. $-1 inc.
Claims (1)
10)において、 各割込みベクタに対応して、空割込み回数のカウント値
が設定されるカウンタ領域(16A、16B、・・・)
と、 割込みに対して、割込みベクタアドレスへのジャンプの
後に、割込み原因レジスタを調べ、割込み原因がセット
されていない空割込みに対して、該当するカウンタ領域
のカウント値を更新し、割込みからの復帰を行う空割込
み処理手段(14A、14B、・・・)とを備え、 通信アダプタにおける空割込みのカウント制御を行うよ
うにしたことを特徴とするI/O空割込みカウント制御
方式。[Claims] A communication adapter (
10), a counter area (16A, 16B, . . . ) in which a count value of the number of empty interrupts is set corresponding to each interrupt vector.
For interrupts, after jumping to the interrupt vector address, check the interrupt cause register, update the count value in the corresponding counter area for empty interrupts with no interrupt cause set, and return from the interrupt. An I/O idle interrupt count control method, comprising: idle interrupt processing means (14A, 14B, . . . ) for performing idle interrupt processing means (14A, 14B, . . . ) for controlling the count of idle interrupts in a communication adapter.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1165775A JPH0330026A (en) | 1989-06-28 | 1989-06-28 | I/o blank interruption count control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1165775A JPH0330026A (en) | 1989-06-28 | 1989-06-28 | I/o blank interruption count control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0330026A true JPH0330026A (en) | 1991-02-08 |
Family
ID=15818798
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1165775A Pending JPH0330026A (en) | 1989-06-28 | 1989-06-28 | I/o blank interruption count control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0330026A (en) |
-
1989
- 1989-06-28 JP JP1165775A patent/JPH0330026A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR20000006576A (en) | System and method for facilitating the sharing of resources such as storage subsystems among a plurality of host computers in a digital data processing system | |
| US11544132B2 (en) | Communication apparatus, communication method, program, and communication system | |
| JPH03129448A (en) | Data transfer controller | |
| US11561922B2 (en) | Communication apparatus, communication method, program, and communication system | |
| US5140593A (en) | Method of checking test program in duplex processing apparatus | |
| JP4487756B2 (en) | Computer system and system monitoring program | |
| US6898732B1 (en) | Auto quiesce | |
| US7523351B2 (en) | System and method for providing mutual breakpoint capabilities in computing device | |
| JPH03175537A (en) | Error controller for debugging microprocessor | |
| JPS634209B2 (en) | ||
| JP2002373084A (en) | Redundant system status exchange / failure detection method | |
| US7073007B1 (en) | Interrupt efficiency across expansion busses | |
| JP4336849B2 (en) | Computer system, input / output control device, and computer system operating method | |
| JP3566057B2 (en) | Monitoring and control equipment | |
| EP1222543B1 (en) | Method and device for improving the reliability of a computer system | |
| JPH047655A (en) | Program evaluation method and communication system evaluation device | |
| US20230297380A1 (en) | Communication control apparatus and communication method | |
| JPH03292540A (en) | Diagnostic device for abnormality of computer | |
| CN120508455A (en) | AXI communication-based isolation protection system and method | |
| JP2000330798A (en) | Interrupt control device and interrupt control verification method | |
| JP2583169B2 (en) | Operation program switching method for communication processing device | |
| JP2778691B2 (en) | Bus monitoring circuit | |
| JP2000187649A (en) | Command control method and apparatus for parallel processing type online system | |
| JPH0756762A (en) | Data transmission equipment | |
| JPH0273449A (en) | Message transfer check system for multi-processor system |