JPS62233844A - Interruption control system - Google Patents

Interruption control system

Info

Publication number
JPS62233844A
JPS62233844A JP7552786A JP7552786A JPS62233844A JP S62233844 A JPS62233844 A JP S62233844A JP 7552786 A JP7552786 A JP 7552786A JP 7552786 A JP7552786 A JP 7552786A JP S62233844 A JPS62233844 A JP S62233844A
Authority
JP
Japan
Prior art keywords
interrupt
value
counter
instruction
called
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
JP7552786A
Other languages
Japanese (ja)
Inventor
Takashi Chikayama
近山 隆
Shoichi Furuichi
古市 昌一
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.)
National Institute of Advanced Industrial Science and Technology AIST
Original Assignee
Agency of Industrial Science and Technology
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 Agency of Industrial Science and Technology filed Critical Agency of Industrial Science and Technology
Priority to JP7552786A priority Critical patent/JPS62233844A/en
Publication of JPS62233844A publication Critical patent/JPS62233844A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify a program by providing a counter into an arithmetic unit to count the calling frequency of the interruption inhibiting instructions and to hold this count value and then resetting the interruption inhibiting mask of an interruption mask register when said count value is equal to 0. CONSTITUTION:A counter 50 is set into an arithmetic unit 4 to count the calling frequency of the interruption inhibiting instructions and hold this count value. A signal line 51 shows an operation where a computer program 10 writes and reads values to and out of the counter 50. The interruption mask value is written to an interruption mask register 8 by an interruption inhibiting instruction. Then '1' is added to the value of the counter 50 of the unit 4. While '1' is subtracted from the value of the counter with an interruption inhibition release instruction. It is decided whether the value of the counter 50 is equal to 0 or not. Then the interruption inhibition mask is reset if the value of the counter 50 is equal to 0. While the operation is completed as it is if the value of the counter 50 is not equal to 0.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、情報処理装置の割込み制御方式に係り、特
に割込み禁止及び割込み禁止解除の制御に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt control method for an information processing device, and particularly to control of interrupt inhibition and cancellation of interrupt inhibition.

〔従来の技術〕[Conventional technology]

第4図は情報処理装置の概略構成図である。図において
、■はキーボード等の人力装置、2はRAM等より成る
記憶装置、3はCRT等の出力装置、4はCPU等より
成る演算装置を示し、5゜6.7はいづれもデータの流
れを示す。
FIG. 4 is a schematic configuration diagram of the information processing device. In the figure, ■ indicates a human-powered device such as a keyboard, 2 indicates a storage device such as a RAM, 3 indicates an output device such as a CRT, 4 indicates an arithmetic device such as a CPU, and 5° 6.7 indicates the flow of data. shows.

このような情報処理装置の割込み制御方式において、割
込み禁止と割込み禁止の解除は、記憶装置2に格納され
た計算機プログラムにより、演算)装置4内の割込みマ
スクレジスタに禁止又は!’6除トこ対応するマスク値
を書込む事によって行われてド)る。例としては、’M
ELCOM  C03M0700S・700■システム
命令書」 (三菱電機)の1)、146,148,14
9に割込み禁止と割込み禁止解除命令の仕様が示されて
いる。
In such an interrupt control system for an information processing device, interrupt prohibition and cancellation of interrupt prohibition are performed by a computer program stored in the storage device 2, and the interrupt mask register in the arithmetic device 4 is set to prohibit or! This is done by writing the corresponding mask value divided by 6. For example, 'M
ELCOM C03M0700S/700 ■ System Instruction Manual (Mitsubishi Electric) 1), 146, 148, 14
9 shows the specifications of interrupt prohibition and interrupt prohibition release instructions.

また、「オペレーティング・システム」(マサチューセ
ノツエ科大学マドニ・ツク/ドソノマン著。
Also, ``Operating System'' (written by Madoni Tsuku/Dosonoman, Massachusetts College of Technology).

筑波大学教授・池田克夫訳2日本コンピュータ協会)の
P、99に割込み禁止と割込み禁止解除命令の実際の使
用例が示されている・ 第5図は情報処理装置における、従来の割込み制御方式
を用いた割込み制御部の回路構成図である。図中8は演
算装置4内の割込みマスクレジスタ、9は割込み判定回
路、10は記憶装置2内に格納された割込み制御を行な
う計算機プログラムである。また、11は計算機プログ
ラム10が割込みマスクレジスタ8にデータを書込む動
作を示し、12は割込みマスクレジスタ8が保持してい
るデータの割込み判定回路9への流れを示し、13は割
込み判定回路9への割込み要求信号を示す。
An example of the actual use of interrupt disabling and interrupt disabling commands is shown in P. 99 of Professor Katsuo Ikeda, University of Tsukuba (translated by Japan Computer Association). Figure 5 shows a conventional interrupt control method in an information processing device. FIG. 3 is a circuit configuration diagram of an interrupt control section used. In the figure, 8 is an interrupt mask register in the arithmetic unit 4, 9 is an interrupt determination circuit, and 10 is a computer program stored in the storage device 2 for controlling interrupts. Further, 11 indicates an operation in which the computer program 10 writes data to the interrupt mask register 8, 12 indicates the flow of data held by the interrupt mask register 8 to the interrupt judgment circuit 9, and 13 indicates the operation of the interrupt judgment circuit 9. Indicates an interrupt request signal to.

通常、情報処理装置では、プログラムはタスクと称され
る単位で実行されるが、システムの処理゛・k担当する
ような特別なタスクでは動作の論理的庫整合性を保つた
めに、そのタスクのある部分を実行中には割込みを禁止
して、タスク切換えが生じないようにしたい場合がある
。そのために通常用意されている機械命令が割込み禁止
(inhibi t−1nterrupt)命令であり
、本命令が呼出された後には割込み禁止状態となってタ
スク切換えは起こらない。また、割込み禁止状態を解除
する機械命令が割込み禁止解除(a 11 。
Normally, in information processing devices, programs are executed in units called tasks, but for special tasks such as those responsible for system processing, in order to maintain logical consistency of operations, programs are executed in units called tasks. It may be desirable to disable interrupts while a certain part is being executed to prevent task switching. A machine instruction normally prepared for this purpose is an interrupt prohibition (inhibit-1 interrupt) instruction, and after this instruction is called, interrupts are disabled and task switching does not occur. Also, the machine instruction for canceling the interrupt disable state is interrupt disable release (a 11 ).

w−interrupt)命令である。w-interrupt) instruction.

第6図は、従来の割込み制御方式における割込み禁止命
令の実現手順を示したフローチャー1・である。図にお
けるステップ14では演算装置4内のMIJ込みマスク
レジスタ8に割込みを禁止する値を書込む。従って、こ
れ以降に割込みが発生しても、割込み判定回路9によっ
て全ての割込みが禁止されて、タスク切換え等が起こら
ない割込み禁止状態となる。
FIG. 6 is a flowchart 1 showing a procedure for implementing an interrupt disabling instruction in a conventional interrupt control system. In step 14 in the figure, a value for inhibiting interrupts is written into the MIJ write mask register 8 in the arithmetic unit 4. Therefore, even if an interrupt occurs thereafter, all interrupts are prohibited by the interrupt determination circuit 9, resulting in an interrupt prohibited state in which task switching and the like do not occur.

第7図は、従来の割込み制御方式における割込み禁止解
除命令の実現手順を示したフローチャートである。図に
おけるステップ15では割込みマスクレジスタ8の割込
み禁止のマスクをリセットする。従って、これ以降に割
込みが発生した際には、割込みが受付けられ、タスク切
換え等が行なわれる。
FIG. 7 is a flowchart showing a procedure for implementing an interrupt prohibition release command in a conventional interrupt control system. In step 15 in the figure, the interrupt prohibition mask in the interrupt mask register 8 is reset. Therefore, when an interrupt occurs after this point, the interrupt is accepted and task switching and the like are performed.

第8図は、割込み禁止命令(inhibit−inte
rrupt)と割込み禁止解除命令(aI low−i
nterrupt)を用いた計算機プログラムの一例で
ある。本プログラムは、処理1(18)と処理2(19
)を割込み禁止状態で実行する5ubrout 1ne
lという副プログラムを記述した例である。
FIG. 8 shows an interrupt inhibit instruction (inhibit-inte
rrupt) and interrupt disable release instruction (aI low-i
This is an example of a computer program using ``interrupt''. This program consists of process 1 (18) and process 2 (19).
) with interrupts disabled 5ubrout 1ne
This is an example of writing a subprogram called l.

図中16は、この副プログラムの名前を示し、この副プ
ログラムが呼゛出されるとまず1nhibr t−1n
terrup を命令17が呼ばれて割込み禁止状態と
なり、次に、処理1(18)と処理2(19)が実行さ
れ、それらが終了するとal low−interru
pt命令20が呼ばれて割込み可能な状態となる。21
はこの副プログラムの終了を示す。すなわち、1nhi
bit−interrupt命令17が呼ばれた際には
、割込みマスクレジスタ8に割込みマスク値が書込まれ
て割込み禁止状態となり、allow−interru
pL命令20が呼ばれた際には、割込み禁止マスクがリ
セットされて、割込み可能な状態となる。
In the figure, 16 indicates the name of this subprogram, and when this subprogram is called, first 1nhibr t-1n
interrupt is called, instruction 17 is called, and interrupts are disabled. Next, processing 1 (18) and processing 2 (19) are executed, and when they are completed, all low-interru
The pt instruction 20 is called to enable interrupts. 21
indicates the end of this subprogram. That is, 1nhi
When the bit-interrupt instruction 17 is called, the interrupt mask value is written to the interrupt mask register 8, and the interrupt is disabled.
When the pL instruction 20 is called, the interrupt prohibition mask is reset and the interrupt is enabled.

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

しかしながら、上記のような従来の割込み制御方式では
、割込み禁止命令や割込み禁止解除命令を多重に呼出す
ことができなかった。以下、この≠j ?:: −’)
 lr’ r詳細4:説明す6・第9図は、割込み禁止
命令と割込み禁止解除命↓を多重に呼出す計算機プログ
ラムの一例である。
However, in the conventional interrupt control method as described above, it is not possible to call multiple interrupt prohibition instructions and interrupt prohibition release instructions. Below, this≠j? :: −')
lr' r Details 4: Explanation 6. FIG. 9 is an example of a computer program that calls the interrupt disable command and the interrupt disable release command ↓ multiple times.

保・プログラムは処理3(24)とサブルーチン呼出し
25と処理4(26)とを割込み禁止状態で実行する5
ubrout 1ne2  (22)という名の副プロ
グラムを記述したものである。このプログラムの窓口す
るところは、処理3(24)とサブルーチン呼出し25
と処理4(26)が割込み禁止状態で実行されることで
、副プログラムの入口と出口にそれぞれ1nhibit
−interrupt命令23とallow−inte
rrupt命令27を呼出ずようになっている。ところ
が、従来の割込み制御方式では、このプログラムは意図
した通りに動作しない。
Maintenance - The program executes process 3 (24), subroutine call 25, and process 4 (26) with interrupts disabled5.
This is a subprogram called ubrout 1ne2 (22). The points of contact for this program are processing 3 (24) and subroutine call 25.
By executing process 4 (26) with interrupts disabled, 1nhibit is set at the entrance and exit of the subprogram.
-interrupt instruction 23 and allow-int
The rrupt instruction 27 is not called. However, with the conventional interrupt control method, this program does not operate as intended.

まず、副プログラム5ubrouL 1ne2(22)
か呼出されると1nhibit−interrupt命
令23が呼ばれて、割込みマスクレジスタ8に割込みマ
スク値が書込まれ、割込み禁止状態となる。次に処理3
(’24)が割込み禁止状態で実行された後、サブルー
チン呼出し25が実行されて副プログラム5ubrou
t 1ne1(16)が呼ばれる。第8図に示した5u
broutinel  (16’)の中では、まず、i
nh悔割込み禁止状態で実行される。そして、allo
w−interrupt20が呼ばれて、割込み禁止マ
スクがリセットされ、割込み禁止状態は解除される。従
って、次に5ubrout 1ne2(22>に戻った
時に、処理4(26)が割込み禁止状態で実行されるこ
とを期待していたのに、5ubrouLinel  (
16)中で割込み禁止状態が解除されてしまうため、処
理4は割込み可能状態で実行されることになり、5ub
routine2 (22)は期待通りに動作しない。
First, subprogram 5ubrouL 1ne2 (22)
When this is called, the 1nhibit-interrupt instruction 23 is called, an interrupt mask value is written to the interrupt mask register 8, and interrupts are disabled. Next, process 3
('24) is executed with interrupts disabled, subroutine call 25 is executed and subprogram 5ubrou
t 1ne1 (16) is called. 5u shown in Figure 8
In broutinel (16'), first, i
It is executed with nh interrupts disabled. And allo
w-interrupt20 is called, the interrupt prohibition mask is reset, and the interrupt prohibition state is released. Therefore, when returning to 5ubrout 1ne2 (22>), I expected that process 4 (26) would be executed with interrupts disabled, but 5ubrouLinel (
16), the interrupt-disabled state is canceled, so process 4 is executed in the interrupt-enabled state, and the 5ub
routine2 (22) does not work as expected.

従って、従来の割込み制御方式を用いた情報処理装置上
で、第9図で示したプログラムの意図する所を実行する
プログラムを作成するには、各副プログラム中で使われ
る割込み禁止命令に注意を払ってプログラムしなければ
ならなかった。第10図と第11図は、第9図で示した
プログラムの意図する所を、期待通りに動作するように
した計算機プログラムの一例である。第10図で示した
プログラムと第9図で示したプログラムとの違いは、ス
テップ32で5ubrout 1nelを呼、ぶかわり
に、第11図で示される副プログラムの’、5ubro
utine3  (38)を呼んでいる車である。
Therefore, in order to create a program that executes the intended part of the program shown in Figure 9 on an information processing device using the conventional interrupt control method, pay attention to the interrupt disable instructions used in each subprogram. I had to pay and program it. FIGS. 10 and 11 are examples of computer programs that operate as expected in the program shown in FIG. 9. The difference between the program shown in FIG. 10 and the program shown in FIG.
This is the car calling utine3 (38).

第11図は、第8図で示した5ubroutinel(
16)を修正したもので、5ubroutinel  
(36)を呼出した時には、処理1(39)と処理2(
40)が割込み禁止状態で実行され、5ubrout 
1ne3  (38)を呼出した時には処理1(39)
と処理2(40)が割込み可能な状態で実行される。
FIG. 11 shows the 5ubroutinel (
16) is modified, 5ubroutinel
When (36) is called, process 1 (39) and process 2 (
40) is executed with interrupts disabled, and 5ubrout
When calling 1ne3 (38), process 1 (39)
and process 2 (40) are executed in an interrupt-enabled state.

すなわち、このような、割込み禁止命令と割込み禁止解
除命令を多重に呼出せないような従来の割込み制御方式
では、各命令の使用箇所や実行制御の流れに細心の注意
が必要となり、プログラムが繁雑になるばかりか、プロ
グラムの開発に要する労力が増大するという問題点を有
していた。
In other words, in conventional interrupt control methods such as this, in which interrupt disable instructions and interrupt disable cancel instructions cannot be called multiple times, careful attention must be paid to where each instruction is used and the flow of execution control, resulting in a complicated program. In addition, there was a problem in that the effort required to develop the program increased.

この発明は、かかる問題点を解決するためになされたも
ので、割込み禁止命令と割込み禁止解除命令を多重に呼
ぶことが可能となる割込み制御方式を実現することを目
的とする。
The present invention has been made to solve such problems, and an object of the present invention is to realize an interrupt control method that makes it possible to call interrupt disable instructions and interrupt disable cancel instructions multiple times.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

この発明に係る割込み制御方式は、割込み禁止命令の呼
出し回数を計測し保持しておくカウンタ)′演算装置内
に設け、割込み禁止命令が呼出された際にはカウンタの
値を1増すとともに割込みマスクレジスタに割込みマス
ク値を書き込んで割込み禁止状態とし、割込み禁止解除
命令が呼出された際にはカウンタの値を1減じ、カウン
タ値が0になる時にのみ割込みマスクレジスタの割込み
禁止マスクをリセットするようにしたものである。
In the interrupt control method according to the present invention, a counter for measuring and retaining the number of calls of an interrupt disabling instruction is provided in an arithmetic unit, and when an interrupt disabling instruction is called, the value of the counter is incremented by 1 and the interrupt is masked. Write the interrupt mask value to the register to disable interrupts, decrement the counter value by 1 when the interrupt disable release instruction is called, and reset the interrupt disable mask in the interrupt mask register only when the counter value becomes 0. This is what I did.

〔作用〕[Effect]

この発明における割込み制御方式においては、カウンタ
が割込み禁止命令が呼出された回数を保持しているため
、割込み禁止命令を呼んでから割込み禁止解除命令が呼
ばれるまでの間に多重に割込み禁止命令を呼ぶことが可
能となり、これらの命令を用いるプログラムは面潔にな
ると同時に、プログラム開発に要する労力も減少する。
In the interrupt control method according to the present invention, since the counter holds the number of times the interrupt disabling instruction is called, the interrupt disabling instruction is called multiple times between the time when the interrupt disabling instruction is called and the interrupt disabling instruction is called. This makes programs that use these instructions simpler and reduces the effort required for program development.

〔実施例〕〔Example〕

以下、この発明の一実施例を添付図面に基づいて説明す
る。
An embodiment of the present invention will be described below with reference to the accompanying drawings.

第1図は、情報処理装置における、本発明に係る割込み
制御方式を用いた割込み制御部の回路構成図である。図
中、8は演算装置4内の割込みマスクレジスタ、9は割
込み判定回路、10は記憶装置2内に格納された割込み
制御を行なうための計算機プログラムであり、また、1
1は計算機プログラム10が割込みマスクレジスタ8に
データを書込む動作を示し、12は割込みマスフレジス
子唄が保持しているデータの割込み判定回路9へ叫1梓
れを示し、13は割込み要求信号を示してお四辺上は前
記従来例の同一符号部分に相当する。
FIG. 1 is a circuit configuration diagram of an interrupt control section using an interrupt control method according to the present invention in an information processing apparatus. In the figure, 8 is an interrupt mask register in the arithmetic unit 4, 9 is an interrupt determination circuit, 10 is a computer program for controlling interrupts stored in the storage device 2, and 1
1 indicates the operation of the computer program 10 writing data to the interrupt mask register 8, 12 indicates the transmission of data held by the interrupt mask register 8 to the interrupt judgment circuit 9, and 13 indicates the interrupt request signal. The upper four sides of the figure correspond to portions with the same reference numerals in the conventional example.

KOは本願により新たに備えられたもので、割込み禁止
命令の呼出し回数をカウントし、その値を保持するカウ
ンタ、であり、演算装置4内に設けられている。また、
51は計算機プログラム10が上記カウンタ50に値を
書込んだり、読込んだりする動作を示している。
The KO is newly provided in the present application, and is a counter that counts the number of times the interrupt disabling instruction is called and holds the value, and is provided in the arithmetic unit 4. Also,
Reference numeral 51 indicates an operation in which the computer program 10 writes or reads a value into the counter 50.

第2図は、第1図で示した割込み制御部を用いた、割込
み禁止命令の実現手順を示したフローチャー1・である
。図中、ステップ52では割込みマスクレジスタ8に割
込みマスク値を書込み、ステップ53では演算装置4上
の割込み禁止命令呼出し回数カウンタ50の値を1増す
FIG. 2 is a flowchart 1 showing a procedure for implementing an interrupt disabling instruction using the interrupt control section shown in FIG. In the figure, in step 52, an interrupt mask value is written into the interrupt mask register 8, and in step 53, the value of the interrupt disabling instruction call count counter 50 on the arithmetic unit 4 is incremented by one.

第3図は、同じく割込み禁止解除命令の実現手順を示し
たフローチャートである。図中、ステップ54では割込
み禁止命令呼出し回数カウンタ50の値を1減する。ス
テップ55では、カウンタ50の値が0かどうかを判定
し、もしOであればステップ56で割込み禁止マスクを
リセットし、0でなければ何もしないで終了する。
FIG. 3 is a flowchart showing the procedure for implementing the interrupt prohibition release command. In the figure, in step 54, the value of the interrupt prohibition instruction invocation count counter 50 is decremented by 1. In step 55, it is determined whether the value of the counter 50 is 0. If it is 0, the interrupt prohibition mask is reset in step 56, and if it is not 0, nothing is done and the process ends.

第9図は、割込み禁止命令と割込み禁止解除命令を多重
に呼出す計算機プログラムの一例で、従東;十割込み制
御方式では期待通りに動作しなかっ、小↓は処理3(2
4)とサブルーチン呼出し25と処理4(26)とを割
込み禁止状態で実行する5ubroutine2 (2
2)という副プログラムを記述した例である。
Figure 9 is an example of a computer program that calls interrupt disable instructions and interrupt disable cancel instructions multiple times.
4), subroutine call 25, and process 4 (26) are executed with interrupts disabled.
This is an example of writing a subprogram called 2).

本例において、副プロゲラ・ム5ubrout 1ne
2 (22)が呼出されると1nhibit−intc
rrupt命令23が呼ばれて、割込みマスクレジスタ
8に割込みマスク値が書込まれて割込み禁止状態になり
、更に割込み禁止命令呼出し回数計測カウンタ50の値
が現在0であるとすると、1増やして1を書込む。次に
処理3(24)が割込み禁止状態で実行された後、サブ
ルーチン呼出し25によって副プログラム5ubrou
tinel  (16)が呼ばれる。第8図に示した5
ubrout 1nel  (16)の中では、まず1
nhibit−interrupt17が呼ばれて割込
みマスクレジスタ8に再度割込みマスク値が書込まれた
後、カウンタ50の値が現在1であるので1増して2を
書込む。次に処理1(18)。
In this example, the subprogera mu5ubrout 1ne
2 (22) is called 1nhibit-intc
When the rrupt instruction 23 is called and the interrupt mask value is written to the interrupt mask register 8, interrupts are disabled, and furthermore, assuming that the value of the interrupt disable instruction invocation count counter 50 is currently 0, it is incremented by 1. Write. Next, after processing 3 (24) is executed with interrupts disabled, subprogram 5ubrou is executed by subroutine call 25.
tinel (16) is called. 5 shown in Figure 8
In ubrout 1nel (16), first 1
After the nhibit-interrupt 17 is called and the interrupt mask value is written into the interrupt mask register 8 again, since the value of the counter 50 is currently 1, it is incremented by 1 and 2 is written. Next, process 1 (18).

処理2(19)が割込み禁止状態で実行される。Process 2 (19) is executed with interrupts disabled.

次にa 1 low−interrup L20が呼ば
れて、カウンタ50の“値が現在2であるので1減U゛
i1を書込む。ここで゛、現在のカウンタ50の1益讐
換わることなく割込み禁止状態は継続される。
Next, a1 low-interrupt L20 is called, and since the value of the counter 50 is currently 2, it writes 1 decrement U゛i1. The condition continues.

次に、5ubrouLine2に戻って、処理4(26
)が割込み禁止状態で実行された後、allow−in
terrupt27が呼ばれてカウンタ50の値が現在
1であるので1減じてOを書込む。次に、カウンタ50
の値が0であるので、割込みマスクレジスタ8の割込み
マスクをリセットし、割込み禁止状態は解除される。
Next, return to 5ubrouLine2 and process 4 (26
) is executed with interrupts disabled, then allow-in
The interrupt 27 is called and since the value of the counter 50 is currently 1, it is decremented by 1 and O is written. Next, the counter 50
Since the value of is 0, the interrupt mask of the interrupt mask register 8 is reset and the interrupt disabled state is released.

なお、上記実施例では、情報処理装置の種類を特に限定
しなかったが、割込み制御はこの種の装置の基本的要素
であるので、本発明は任意の情報処理装置に適用するこ
とができる。
In the above embodiments, the type of information processing device is not particularly limited, but since interrupt control is a basic element of this type of device, the present invention can be applied to any information processing device.

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

以上のように、この発明によれば、演算装置内に、割込
み禁止命令の呼出し回数を計測し、その値を保持するカ
ウンタを設け、この値が0の時のみ割込みマスクレジス
タの割込み禁止マスクがリセット状態となるようにした
ことにより、割込み禁止命令と割込み禁止解除命令を多
重に呼出すことが可能となるので、プログラムが簡略化
され、プログラムの開発に要する労力が減少するという
dトが得られる。
As described above, according to the present invention, a counter is provided in the arithmetic unit to measure the number of times the interrupt disable instruction is called and hold the value, and only when this value is 0, the interrupt disable mask of the interrupt mask register is set. By setting it in the reset state, it becomes possible to call the interrupt disable instruction and the interrupt disable cancel instruction multiple times, which simplifies the program and reduces the effort required for program development. .

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

&1図は此の発明に係る割込み制御方式を行なうための
割込み制御部の回路構成図、第2図はこの発明に係る割
込み制御方式における割込み禁止命令の実現手順を示す
フローチャート、第3図は割込み禁止解除命令の実現手
順を示すフローチャー:°ト、第4図は情報処理装置の
構成図、第5図は従1来の割込み制御方式を行なうため
の割込み制御部の回路構成図、第6図は従来の割込み制
御方式における割込み禁止命令の実現手段を示すフロー
チャート、第7図は割込み禁止解除命令の実現手段を示
すフローチャート、第8.9,10.11図はいずれも
割込み禁止命令と割込み禁止解除命令を用いた計算機プ
ログラムの例を示す。 2・・・記tα装置、4・・・演算装置、8・・・割込
みマスクレジスタ、9・・・割込み判定回路、10・・
・計算機プログラム、50・・・カウンタ。 なお、各図中同一符号は同−又は相当部分を示す。 第4図 第5図 第10図 8狸34、ノ31 call 5ubroutine3 ヘン32第11図 処理1〜39 処理2〜40 if 5ouboutine3 then end 〜
”δflow−ir+terrt+pj /″−742
°°牲、3 第6図 第8図 第7図 第9図 処理4−\−26
&1 Figure 1 is a circuit configuration diagram of an interrupt control unit for carrying out the interrupt control method according to this invention, Figure 2 is a flowchart showing the procedure for realizing an interrupt disable instruction in the interrupt control method according to this invention, and Figure 3 is a diagram showing the interrupt Flowchart showing the procedure for realizing the prohibition release command: Fig. 4 is a block diagram of the information processing device; Fig. 5 is a circuit block diagram of the interrupt control unit for implementing the conventional interrupt control method; The figure is a flowchart showing means for realizing an interrupt disable instruction in a conventional interrupt control system, FIG. 7 is a flowchart showing a means for realizing an interrupt disable release instruction, and FIGS. An example of a computer program using a prohibition release instruction is shown below. 2... tα device, 4... Arithmetic device, 8... Interrupt mask register, 9... Interrupt determination circuit, 10...
- Computer program, 50... counter. Note that the same reference numerals in each figure indicate the same or corresponding parts. Figure 4 Figure 5 Figure 10 Figure 8 Raccoon 34, 31 call 5uboutine3 Hen 32 Figure 11 Processes 1-39 Processes 2-40 if 5aboutine3 then end ~
"δflow-ir+terrt+pj/"-742
°° sacrifice, 3 Figure 6 Figure 8 Figure 7 Figure 9 Processing 4-\-26

Claims (1)

【特許請求の範囲】 記憶装置に格納されたプログラムを実行する演算装置内
に割込みマスクレジスタを備え、呼出された割込み禁止
命令又は割込み禁止解除命令に基づき、上記割込みマス
クレジスタの割込み禁止マスクをセット又はリセットす
るようにした情報処理装置の割込み制御方式において、 上記演算装置内に、割込み禁止命令の呼出し回数を計測
し、その値を保持するカウンタを設け、割込み禁止命令
が呼出された際には上記カウンタの値を1増すとともに
割込みマスクレジスタの割込み禁止マスクをセットして
割込み禁止状態とし、割込み禁止解除命令が呼出された
際には上記カウンタの値を1減じるとともに、カウンタ
の値が0になる時のみ割込みマスクレジスタの割込み禁
止マスクをリセットして割込み可能状態とすることを特
徴とする割込み制御方式。
[Claims] An interrupt mask register is provided in an arithmetic unit that executes a program stored in a storage device, and an interrupt prohibition mask of the interrupt mask register is set based on a called interrupt prohibition instruction or interrupt prohibition release instruction. In an interrupt control method for an information processing device that resets the interrupt, a counter is provided in the arithmetic unit to measure the number of times the interrupt disable instruction is called and to hold the value, and when the interrupt disable instruction is called, The value of the above counter is incremented by 1 and the interrupt prohibition mask of the interrupt mask register is set to disable interrupts. When the interrupt disable cancellation instruction is called, the value of the above counter is decreased by 1 and the value of the counter becomes 0. An interrupt control method characterized in that an interrupt prohibition mask of an interrupt mask register is reset to enable interrupts only when the interrupt is enabled.
JP7552786A 1986-04-03 1986-04-03 Interruption control system Pending JPS62233844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7552786A JPS62233844A (en) 1986-04-03 1986-04-03 Interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7552786A JPS62233844A (en) 1986-04-03 1986-04-03 Interruption control system

Publications (1)

Publication Number Publication Date
JPS62233844A true JPS62233844A (en) 1987-10-14

Family

ID=13578787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7552786A Pending JPS62233844A (en) 1986-04-03 1986-04-03 Interruption control system

Country Status (1)

Country Link
JP (1) JPS62233844A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5145215A (en) * 1974-10-16 1976-04-17 Kyoritsu Denki Kogyo Kk Dendokino sokudoseigyosochi

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5145215A (en) * 1974-10-16 1976-04-17 Kyoritsu Denki Kogyo Kk Dendokino sokudoseigyosochi

Similar Documents

Publication Publication Date Title
US6061709A (en) Integrated hardware and software task control executive
US5701493A (en) Exception handling method and apparatus in data processing systems
JPH02208740A (en) Virtual computer control system
JPH0430053B2 (en)
US4794515A (en) Protection of data in a multiprogramming data processing system
JPS60225943A (en) Exceptional interruption processing system
JPS62233844A (en) Interruption control system
US6084943A (en) Diagnostic device for a telephone system
JPH0895798A (en) Data processor
JPH05324569A (en) Interruption control system
JPH0414376B2 (en)
WO2023188905A1 (en) Information processing device and method for controlling operation of information processing device
JPH03240831A (en) Interruption processing system
JPH0266632A (en) Interruption control system
JPH04364545A (en) Memory dumping system
JPH02310629A (en) Interruption controller, common resource exclusive method and assembler program processing method
JPH04213733A (en) Virtual processor system
JPS63120336A (en) Switching system for memory access mode
JP2587451B2 (en) I / O control method in virtual machine system
JP2591818B2 (en) Auxiliary function selection control method
JPS61194531A (en) Instruction execution controller
JPS6118224B2 (en)
JPH06332720A (en) Signal control method
JPS61241843A (en) Information processor
JPH0764802A (en) Simulation device for real-time system