JPS62190533A - Interrupt mask control system - Google Patents

Interrupt mask control system

Info

Publication number
JPS62190533A
JPS62190533A JP3217486A JP3217486A JPS62190533A JP S62190533 A JPS62190533 A JP S62190533A JP 3217486 A JP3217486 A JP 3217486A JP 3217486 A JP3217486 A JP 3217486A JP S62190533 A JPS62190533 A JP S62190533A
Authority
JP
Japan
Prior art keywords
interrupt
program
level
mask
interrupt mask
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
Application number
JP3217486A
Other languages
Japanese (ja)
Inventor
Masahiro Nagashima
長島 雅裕
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3217486A priority Critical patent/JPS62190533A/en
Publication of JPS62190533A publication Critical patent/JPS62190533A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To facilitate correcting errors to reduce the correction cost and improve the reliability of a device by checking states of interrupt masks with a prescribed instruction or the like and generating a prescribed interrupt in case there is an interrupt mask which is set to suppress interrupt. CONSTITUTION:At the time of the instruction which terminates the execution of a program is executed in this executing program, an interrupt control part 2 receives the end report signal from a signal line 4. Then, the control part 2 checks an interrupt mask part 1 to discriminate whether there is the interrupt mask which is set to suppress an interrupt request (for example, turned off) or not. If the interrupt mask in the turn-off state is detected, an interrupt request to a specific interrupt level is generated internally and is reported to an execution control part 3. The control part 3 starts a program prepared for processing of error of failure in interrupt mask release. This program outputs information indicating the interrupt level or the like of the program, which does not release the interrupt mask, to a proper output device to report the existence of error.

Description

【発明の詳細な説明】 〔概 要〕 多割込レベルを持つ割込駆゛動型の情報処理装置におけ
る割込マスクの解除抜けを検出する制御方式、あるレベ
ルのプログラム実行を終了する命令等により、割込マス
クの状態を検査し、割込が抑止されているものがある場
合には、所定の割込を発生する。この割込で駆動される
プログラムによって、割込マスクの解除抜けを直接検出
することにより、割込マスク制御のエラー等を早期に摘
出することができる。
[Detailed Description of the Invention] [Summary] Control method for detecting interrupt mask release failure in an interrupt-driven information processing device with multiple interrupt levels, instructions for terminating program execution at a certain level, etc. The state of the interrupt mask is checked, and if any interrupts are inhibited, a predetermined interrupt is generated. By directly detecting omission of interrupt mask release by a program driven by this interrupt, errors in interrupt mask control can be detected at an early stage.

〔産業上の利用分野〕[Industrial application field]

本発明は、情報処理装置の割込マスク制御方式に係り、
特に多割込レベルを持つ割込駆動型の情報処理装置にお
ける割込マスクの解除抜けを検出する方式に関する。
The present invention relates to an interrupt mask control method for an information processing device,
In particular, the present invention relates to a method for detecting interrupt mask cancellation in an interrupt-driven information processing device having multiple interrupt levels.

多割込レベルを持ち、各割込レベルに対応して設けられ
る処理によって全処理を構成する方式の、いわゆる割込
駆動型の情報処理装置は、例えば通信制御処理装置等の
構成に見られる。
2. Description of the Related Art A so-called interrupt-driven information processing device, which has multiple interrupt levels and configures all processing by processing provided corresponding to each interrupt level, can be seen in the configuration of, for example, a communication control processing device.

このような処理装置で、あるレベルのプログラムが、あ
る処理の期間中にある割込レベルの割込が発生しないよ
うにする必要のある場合があり、そのレベルの割込マス
クを設定し、誤ってそのまま処理を終わると、その後そ
の割込レベルに対応する処理は起動されることが無くな
るので、重大な障害となる可能性があり、このような誤
りは早期に検出して熟成することが望まれる。
In such processing devices, a program at a certain level may need to prevent interrupts at a certain interrupt level from occurring during a certain process, and sets an interrupt mask for that level to prevent errors. If the process is terminated as it is, the process corresponding to that interrupt level will not be started after that, which may cause a serious failure, so it is desirable to detect such errors early and correct them. It will be done.

[従来の技術と発明が解決しようとする問題点〕第2図
は、処理装置の一構成例を示すブロック図である。
[Prior art and problems to be solved by the invention] FIG. 2 is a block diagram showing an example of the configuration of a processing device.

各種の割込要因によって発生される各割込レベルの割込
要求信号は、割込マスク部lを経て割込制御部2に入力
される。
Interrupt request signals of each interrupt level generated by various interrupt factors are input to the interrupt control section 2 through the interrupt mask section l.

割込マスク部1は、各割込レベルに対応するゲートを、
実行制御部3からの信号によって設定される割込マスク
の状態によって制御することにより、それぞれの割込要
求信号を通過又は抑止するものである。
The interrupt mask unit 1 sets gates corresponding to each interrupt level to
Each interrupt request signal is passed or suppressed by controlling according to the state of an interrupt mask set by a signal from the execution control unit 3.

割込制御部2は、入力される割込要求信号を所定の優先
制御によって選択し、選択された1割込レベルの割込要
求情報を実行制御部3に通知することにより、該割込レ
ベルに対応するプログラムを実行制御部3で実行開始さ
せる。
The interrupt control unit 2 selects the input interrupt request signal by predetermined priority control, and notifies the execution control unit 3 of the interrupt request information of the selected one interrupt level. The execution control unit 3 starts executing the program corresponding to the program.

割込制御部2は、選択した割込レベルを記憶して、該レ
ベルのプログラム実行中は、そのレベルより優先度の低
い割込レベルの割込要求を選択しないように制御する。
The interrupt control unit 2 stores the selected interrupt level, and performs control so as not to select an interrupt request with an interrupt level lower in priority than that level while the program at the selected level is being executed.

実行制御部3で実行される各プログラムは、プログラム
実行を終了する命令を実行することにより、信号線4に
よって割込制御部2に終了を通知する。
Each program executed by the execution control unit 3 notifies the interrupt control unit 2 of the termination via the signal line 4 by executing an instruction to terminate program execution.

割込制御部2は、信号線4による終了通知信号により、
現実行中の割込レベルの記憶を消去して、該レベルより
低い優先度の割込を可能にする状態に復し、次に実行す
べき割込レベルを選択して、実行制御部3へ通知する。
The interrupt control unit 2 receives the termination notification signal via the signal line 4.
Erases the memory of the interrupt level that is currently being executed, returns to a state that allows interrupts with a lower priority than that level, selects the interrupt level to be executed next, and sends it to the execution control unit 3. Notice.

又、実行中の割込レベルより優先度の高い割込レベルの
割込要求が発生した場合には、直ちにその要求を選択し
て実行制御部3に通知し、その場合実行制御部3では、
現実行中の処理を中断して、高優先度のプログラムの実
行を開始する。
Furthermore, when an interrupt request with a higher priority level than the interrupt level being executed occurs, the request is immediately selected and notified to the execution control unit 3. In this case, the execution control unit 3:
Interrupts the current process and starts executing a high-priority program.

このようにして実行制御部3において実行されるあるプ
ログラムが、例えば他のプログラムと共用する記憶領域
の参照/更新を含む処理を行うような場合には、該当処
理を実行するある期間は、該記憶領域の状態が他のプロ
グラムの実行によって変更されないようにしなければ、
矛盾した処理結果を生じる場合があり得ることはよく知
られている。
In this way, when a certain program executed in the execution control unit 3 performs a process including referencing/updating a storage area shared with other programs, the corresponding process is executed for a certain period. Unless the state of the storage area is changed by the execution of other programs,
It is well known that contradictory processing results can occur.

そのような状況は、例えばある割込レベルのプログラム
の実行において、それより高い優先度の割込レベルのプ
ログラムとの共用領域に関する処理を行う場合に、その
高優先度の割込が発生して、該プログラムがその共用領
域を更新する場合が該当する。
Such a situation can occur, for example, when a program with a certain interrupt level performs processing related to a shared area with a program with a higher priority interrupt level, and the higher priority interrupt occurs. , this is the case when the program updates its shared area.

そのために、前記のような可能性のある場合には、例え
ば共用81へのアクセス等の、該当処理の開始に先立っ
て、所要の割込レベルの割込要求を抑止するように、割
込マスク部1の割込マスクを設定する命令を実行し、関
連の処理を完了した時点で、設定したマスクを解除する
命令を実行するように、プログラムを構成しておく。
Therefore, in the case where there is a possibility as described above, an interrupt mask is set so as to suppress an interrupt request of a desired interrupt level before starting the corresponding process, such as accessing the common 81. The program is configured to execute an instruction to set an interrupt mask in part 1, and when related processing is completed, to execute an instruction to cancel the set mask.

そのようなプログラムにおいて、作成上の誤り等により
、割込マスクの解除処理が抜けた場合には、該当割込レ
ベルは割込要求を抑止された状態に置かれるので、対応
する処理が実行されないことになる。
In such a program, if the interrupt mask release process is missed due to a writing error, the corresponding interrupt level is placed in a state where interrupt requests are suppressed, and the corresponding process is not executed. It turns out.

その結果、必要な処理がされないことによって不都合な
状況が発生し、何等かの異常状態として検出されること
になるが、そのように間接的に構成された現象から、元
の原因を探索することは一般に極めて難しく、誤りの除
去に多大の費用を要するという問題がある。
As a result, an inconvenient situation occurs because the necessary processing is not carried out, and it is detected as some kind of abnormal condition, but it is necessary to search for the original cause from such indirectly constituted phenomena. is generally extremely difficult and requires a large amount of cost to eliminate errors.

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

第1図は、本発明の処理の流れ図である。 FIG. 1 is a flowchart of the process of the present invention.

図は、第2図の実行制御部3で所定の、プログラム実行
を終了する命令が実行された場合に対する、割込制御部
2における処理の流れを示す。
The figure shows the flow of processing in the interrupt control section 2 when the execution control section 3 of FIG. 2 executes a predetermined instruction to end program execution.

〔作 用〕 所定のある命令の実行が実行制御部3から通知されるこ
とにより、割込制御部2では処理ステップ10において
、現実行中の割込レベルの記憶を消去して、該レベルよ
り低い優先度の割込を可能にする状態に復する。
[Function] When the execution control unit 3 notifies execution of a predetermined command, the interrupt control unit 2 erases the memory of the interrupt level currently being executed in processing step 10, and returns from that level. Return to a state where lower priority interrupts are enabled.

次の処理ステップllで、割込マスク部1を検査して、
割込要求を抑止するように設定されている割込マスクの
有無を識別する。
In the next processing step ll, the interrupt mask section 1 is inspected,
Identify whether there is an interrupt mask set to suppress interrupt requests.

設定されている割込マスクがない場合には、処理ステッ
プ13で従来のように最高優先度の割込要求を選択して
、実行制御部3へ割込情報を通知する。
If there is no interrupt mask set, in processing step 13, the highest priority interrupt request is selected as in the prior art, and the execution control unit 3 is notified of the interrupt information.

処理ステップ11で、割込要求抑止状態に設定されてい
る割込マスクを検出した場合には、処理ステップ12に
おいて、特定の割込レベルに対する割込要求を内部的に
発生した後、処理ステップ13へ進む。
If an interrupt mask set to the interrupt request inhibit state is detected in processing step 11, an interrupt request for a specific interrupt level is internally generated in processing step 12, and then processing step 13 is performed. Proceed to.

この特定の割込レベルに対応して、適当なプログラムを
起動するようにして、割込マスク解除板は誤りに対する
処理を行うことができる。
The interrupt mask canceling board can handle errors by activating an appropriate program in response to this specific interrupt level.

〔実施例〕〔Example〕

前記と同様に、各割込レベルのプログラムは、該レベル
の処理を終わって他レベルへ切換可能な処理段階になる
と、プログラム実行を終了する命令を実行して処理を終
わるものとする。
Similarly to the above, when the program at each interrupt level finishes processing at that level and reaches a processing stage where switching to another level is possible, the program executes an instruction to end program execution and ends the processing.

プログラム実行を終了する命令の実行により、割込制御
部2は信号線4により終了通知信号を受けとる。
Upon execution of the instruction to end program execution, the interrupt control unit 2 receives an end notification signal via the signal line 4.

割込制御部2では処理ステップ10において、従来と同
様に、現実行中の割込レベルの記tαを消去して、該レ
ベルより低い優先度の割込を可能にする状態に復する。
At processing step 10, the interrupt control unit 2 erases the record tα of the interrupt level currently being executed, and returns to the state in which interrupts with a priority lower than that level are enabled, as in the conventional case.

但し、本発明による内部的に発生するかもしれない、後
述の割込のための情報として実行中であった割込レベル
を示す情報を別に保存するものとする。
However, information indicating the interrupt level being executed is separately stored as information for an interrupt that may be internally generated according to the present invention and will be described later.

次の処理ステップ11で、割込マスク部1を検査して、
割込要求を抑止するように(例えばオフ状態に)設定さ
れている割込マスクの有無を識別する。
In the next processing step 11, the interrupt mask section 1 is inspected,
The presence or absence of an interrupt mask that is set to suppress interrupt requests (for example, turned off) is determined.

オフに設定されている割込マスクがない場合、即ちすべ
ての割込レベルの割込要求が通過できる状態になってい
る場合には、処理ステップ13で従来のように、要求の
出ている最高優先度の割込要求を選択して、実行制御部
3へ割込情報を通知する。
If no interrupt mask is set to OFF, that is, if interrupt requests of all interrupt levels are allowed to pass, in processing step 13, as in the past, the highest request A priority interrupt request is selected and the execution control unit 3 is notified of the interrupt information.

処理ステップ11で、オフ状態の割込マスクを検出した
場合には、処理ステップ12において、特定の割込レベ
ルに対する割込要求を内部的に発生した後、処理ステッ
プ13へ進む。
If an interrupt mask in the OFF state is detected in processing step 11, an interrupt request for a specific interrupt level is internally generated in processing step 12, and then processing proceeds to processing step 13.

こ\で、特定の割込レベルとしては、例えば全レベルの
うちで最高優先度の割込レベルをこれに宛てるごとにす
れば、この直後に処理が開始されるようになる。
In this case, if the specific interrupt level is, for example, the interrupt level with the highest priority among all the levels, processing will start immediately after this.

処理ステップ13の選択で、上記の内部的に発生した割
込要求が選択されて、実行制御部3へ通知されると、実
行制御部3では割込マスク解除板は誤りに対する処理の
ために準備したプログラムを起動する。
When the above-mentioned internally generated interrupt request is selected and notified to the execution control unit 3 in the selection of processing step 13, the execution control unit 3 prepares the interrupt mask release board for error processing. Start the program.

このプログラムは、例えば割込マスクの解除を行わなか
ったプログラムの割込レベル等を示す情報を、適当な出
力装置に出力して誤りの存在を通知する。
This program notifies the user of the existence of an error by outputting information indicating, for example, the interrupt level of the program that did not cancel the interrupt mask, to an appropriate output device.

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

以上の説明から明らかなように、本発明によれば、割込
駆動型の情報処理装置において、割込を抑止する割込マ
スクの解除処理波は誤りが直接検出されるので、誤りの
修正が容易になり、修正コストを削減し、又情報処理装
置の信頼性を向上するという著しい工業的効果がある。
As is clear from the above description, according to the present invention, in an interrupt-driven information processing device, an error is directly detected in the interrupt mask release processing wave that suppresses an interrupt, so that the error can be corrected. This has significant industrial effects in that it facilitates modification, reduces modification costs, and improves the reliability of information processing equipment.

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

第1図は本発明の処理の流れ図、 第2図は情報処理装置の−構成例ブロック図である。 図において、 ■は割込マスク部、  2は割込制御部、3は実行制御
部、 10〜13は処理ステップ を示す。
FIG. 1 is a flowchart of processing according to the present invention, and FIG. 2 is a block diagram of an example configuration of an information processing apparatus. In the figure, 2 indicates an interrupt mask section, 2 indicates an interrupt control section, 3 indicates an execution control section, and 10 to 13 indicate processing steps.

Claims (1)

【特許請求の範囲】 優先度の異なる複数の割込レベル、及び該各割込レベル
に対応するプログラムを有し、割込要求の発生した該割
込レベルのうち、上記優先度の最も高い割込レベルの該
プログラムを実行するように構成され、該各割込レベル
には、割込発生を制御するための割込マスクを有する情
報処理装置において、 実行中のプログラムにより、該プログラムの実行を終了
する命令が実行された場合に、 上記割込マスクにより、割込発生を抑止されている上記
割込レベルが有る場合には、 所定の割込レベルの割込を発生するように構成されてい
ることを特徴とする割込マスク制御方式。
[Claims] It has a plurality of interrupt levels with different priorities and a program corresponding to each interrupt level, and among the interrupt levels at which an interrupt request has occurred, the interrupt level with the highest priority is selected. The information processing device is configured to execute the program at the interrupt level, and each interrupt level has an interrupt mask for controlling the occurrence of an interrupt. When the instruction to terminate is executed, if there is an interrupt level whose occurrence is suppressed by the interrupt mask, the interrupt is configured to generate an interrupt of a predetermined interrupt level. An interrupt mask control method characterized by:
JP3217486A 1986-02-17 1986-02-17 Interrupt mask control system Pending JPS62190533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3217486A JPS62190533A (en) 1986-02-17 1986-02-17 Interrupt mask control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3217486A JPS62190533A (en) 1986-02-17 1986-02-17 Interrupt mask control system

Publications (1)

Publication Number Publication Date
JPS62190533A true JPS62190533A (en) 1987-08-20

Family

ID=12351571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3217486A Pending JPS62190533A (en) 1986-02-17 1986-02-17 Interrupt mask control system

Country Status (1)

Country Link
JP (1) JPS62190533A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2409543A (en) * 2003-12-23 2005-06-29 Advanced Risc Mach Ltd Interrupt masking control

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2409543A (en) * 2003-12-23 2005-06-29 Advanced Risc Mach Ltd Interrupt masking control
GB2409543B (en) * 2003-12-23 2006-11-01 Advanced Risc Mach Ltd Interrupt masking control
US7882293B2 (en) 2003-12-23 2011-02-01 Arm Limited Interrupt masking control

Similar Documents

Publication Publication Date Title
JPS62190533A (en) Interrupt mask control system
JPH0588933A (en) Parallel processing system with debugging function
JPH0654476B2 (en) Control memory error correction control method
JP2653412B2 (en) How to set breakpoints
JPS60124746A (en) Data processing unit
JPH01207837A (en) System diagnostic system
JP2653411B2 (en) How to set breakpoints
JPS62107354A (en) Microprogram control device
JPH0290238A (en) High load testing system
JPS63282857A (en) System for preventing program runaway
JP2000330798A (en) Interrupt controller and method for verifying interrupt control
JPS593638A (en) Information processor
JPH02170239A (en) Input/output error processing system
JPS61223952A (en) Retry function confirming system of data processor
JPH02272947A (en) Fault monitoring system
JPH06149602A (en) Arithmetic processing unit
JPH0282322A (en) Firmware processing device
JPS6259818B2 (en)
JPH03126138A (en) Program control memory and microcomputer
JPS59153249A (en) Monitoring method of restart processing
JPH04270441A (en) Data processor
JPH01142834A (en) Test result output control system for test program
JPH04296943A (en) Debugging system for function type language
JPH0486918A (en) Microprogram controller
JPH04216156A (en) I/o access system