JPH0695894A - Information processing system and operating method therefor - Google Patents

Information processing system and operating method therefor

Info

Publication number
JPH0695894A
JPH0695894A JP23854592A JP23854592A JPH0695894A JP H0695894 A JPH0695894 A JP H0695894A JP 23854592 A JP23854592 A JP 23854592A JP 23854592 A JP23854592 A JP 23854592A JP H0695894 A JPH0695894 A JP H0695894A
Authority
JP
Japan
Prior art keywords
interrupt
processing
prohibition
generation
interruption
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.)
Withdrawn
Application number
JP23854592A
Other languages
Japanese (ja)
Inventor
Kiyoshi Nakada
清 中田
Munehiro Yoshida
宗宏 吉田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP23854592A priority Critical patent/JPH0695894A/en
Publication of JPH0695894A publication Critical patent/JPH0695894A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To prevent malfunction from being generated in the plural pieces of processes sharing a resource by the generation of prohibition-impossible interruption in an information processing system using the prohibition-impossible interruption. CONSTITUTION:The prohibition-possible interruption can be generated from a processing unit 10 provided with an interruption request line 18 to the processing unit 10 by using an interruption generation mechanism 16. Within a processing started by a prohibition-impossible interruption request line INT0, after the processing outside a dangerous area is performed, then the prohibition- possible interruption is generated by using the interruption generation mechanism 16. Then, operation to the shared resource 14 being the processing of the dangerous area is performed within the interruption processing started by the prohibition-possible interruption. Thus, the processing to be interrupted and the prohibition-impossible interruption processing are prevented from simultaneously entering the dangerous area.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、情報処理システムの
割込制御機能およびその割込制御機能の動作方法に関
し、特に、禁止不可能な割込の発生による、複数プロセ
スの共有資源の破壊を防止するための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt control function of an information processing system and a method of operating the interrupt control function. Technology related to prevention.

【0002】[0002]

【従来の技術】情報処理システム上で動作するソフトウ
ェアで、複数個のプロセスが同時に存在する場合があ
る。これらプロセスには、通常の処理の他、外部要因
(以下「外部割込」とよぶ)により引き起こされる別プ
ロセス(以下「割込処理」と呼ぶ)などが含まれる。
2. Description of the Related Art Software operating on an information processing system may have a plurality of processes simultaneously. In addition to normal processing, these processes include another process (hereinafter referred to as "interrupt processing") caused by an external factor (hereinafter referred to as "external interrupt").

【0003】外部割込とは、入出力装置などの周辺装置
からの信号により引き起こされる割込のことである。た
とえば、電源異常を検出する装置からの割込、外部タイ
マからの割込、フロッピィディスクコントローラからの
割込などがある。
An external interrupt is an interrupt caused by a signal from a peripheral device such as an input / output device. For example, there is an interrupt from a device that detects a power failure, an external timer, and a floppy disk controller.

【0004】電源異常を検出する装置からの割込は、次
のようなものである。システムに供給される電源を監視
する周辺装置が情報処理システムに備えられている場合
がある。この装置が、電源に異常な電圧低下などが発生
したことを検出した場合、システムの破壊を防止するた
めに、迅速に処理を行なう必要がある。そこで、このよ
うな場合には割込が利用される。
The interrupt from the device for detecting the power supply abnormality is as follows. The information processing system may include a peripheral device that monitors the power supplied to the system. When this device detects that an abnormal voltage drop has occurred in the power supply, it is necessary to promptly perform processing in order to prevent system damage. Therefore, in such a case, interrupt is used.

【0005】外部タイマからの割込とは次のようなもの
である。CPU(中央演算処理装置)外にタイマ装置
(外部タイマ)が備えられる場合がある。その外部タイ
マが、予め設定された時間の経過や一定時間毎の経過を
CPUに対して知らせるようにシステムが設計される。
そのような場合にも、割込が利用される。
The interrupt from the external timer is as follows. A timer device (external timer) may be provided outside the CPU (central processing unit). The system is designed so that the external timer informs the CPU of the elapse of a preset time or the elapse of a predetermined time.
Even in such a case, the interrupt is used.

【0006】フロッピィディスクコントローラからの割
込とは次のようなものである。外部記憶装置として、フ
ロッピィディスク装置およびその制御を行なうコントロ
ーラが情報処理システムに備えられている場合が一般的
である。CPUは、そのコントローラに対して各種コマ
ンドを発行することによりフロッピィディスク装置を制
御することができる。一方で、こうしたフロッピィディ
スク装置の動作速度そのものはCPUの演算速度に比べ
て遙かに遅い。そのため、フロッピィディスク装置の動
作の終了を待つことなく、他の処理の実行を開始するよ
うにCPUを運用して、それによってCPUの運用効率
を上げることが一般的である。その様な場合、フロッピ
ィディスク装置の動作が終了した場合には、コントロー
ラからCPUに対して動作の終了を知らせる必要があ
る。そのために割込が利用される。
The interrupt from the floppy disk controller is as follows. In general, an information processing system is provided with a floppy disk device and a controller for controlling the floppy disk device as an external storage device. The CPU can control the floppy disk device by issuing various commands to the controller. On the other hand, the operating speed itself of such a floppy disk device is much slower than the operation speed of the CPU. Therefore, it is general to operate the CPU so as to start execution of other processing without waiting for the end of the operation of the floppy disk device, thereby improving the operation efficiency of the CPU. In such a case, when the operation of the floppy disk device is completed, it is necessary for the controller to notify the CPU of the end of the operation. An interrupt is used for that purpose.

【0007】これ以外にも多種多様な周辺装置から発生
する外部要因が存在する。ところで、情報処理システム
上で複数個のプロセスが同時に存在する場合、これらプ
ロセスが共有する可能性のある資源(メモリやI/Oデ
バイスなど)に対して、次のような問題が生ずる恐れが
ある。共有資源に対して1つのプロセスが操作を行なっ
ている場合を考える。その途中に外部割込により引き起
こされた割込処理から、その資源に対して操作を行なう
ことが考えられる。そのような操作が行なわれた場合、
たとえばメモリではデータの整合性が失われるなど、そ
の資源を共有するプロセス全体に不具合が発生する可能
性がある。
In addition to the above, there are external factors generated from various peripheral devices. By the way, when a plurality of processes exist simultaneously in the information processing system, the following problems may occur with respect to resources (memory, I / O device, etc.) that may be shared by these processes. . Consider the case where one process is operating on a shared resource. It is conceivable to perform an operation on the resource from an interrupt process triggered by an external interrupt in the middle of the process. If such an operation is performed,
For example, in memory, data integrity may be lost, and the entire process that shares the resource may fail.

【0008】したがって、あるプロセス中で、他のプロ
セスと共有する可能性のある資源を操作するプロセス部
分は、システム全体にとってはシステムの整合性を保つ
うえで危険な部分であると考えられる。以下このような
プログラム部分を「危険領域」と呼ぶことにする。
[0008] Therefore, it is considered that a process portion that manipulates a resource that may be shared with another process in a certain process is a dangerous portion for maintaining the consistency of the system for the entire system. Hereinafter, such a program part will be referred to as a "dangerous area".

【0009】このような危険領域の存在するプロセスを
実行する場合、その共有資源に関わるプロセス全体に不
具合が発生することを防止するために、以下のような方
法が採用されている。危険領域の存在するプロセスは、
その危険領域の実行を開始する前に、外部割込を禁止す
る。そしてその危険領域の実行が終了した後に、外部割
込の禁止を解除する。これにより、あるプロセスの危険
領域で外部要因により割込が発生した場合には、その外
部割込の受付は現在実行中のプロセスの危険領域が終了
して割込禁止が解除されるまで遅延される。危険領域の
終了後、受付けられた外部割込の処理により共有資源の
操作を行なう。
When a process in which such a dangerous area exists is executed, the following method is adopted in order to prevent a failure from occurring in the entire process related to the shared resource. The process in which the hazardous area exists is
Disable external interrupts before starting execution of the hazardous area. Then, after the execution of the dangerous area is completed, the prohibition of the external interrupt is released. As a result, when an interrupt is generated in the dangerous area of a process due to an external factor, acceptance of the external interrupt is delayed until the dangerous area of the currently executing process ends and the interrupt prohibition is released. It After the end of the dangerous area, the shared resource is operated by the processing of the accepted external interrupt.

【0010】このようにすることにより、複数個のプロ
セスが同時に危険領域に入ることが回避され、共有資源
に対する逐次的な操作が実現される。そして、この共有
資源に関わるプロセス全体に不具合が発生する恐れはな
い。
By doing so, it is possible to prevent a plurality of processes from entering the dangerous area at the same time, and to realize a sequential operation on the shared resource. Then, there is no fear that a failure will occur in the entire process related to this shared resource.

【0011】[0011]

【発明が解決しようとする課題】しかし、一般に情報処
理システムでは、外部要因による、禁止できない割込
(以下「禁止不可能割込」と称する)を使用する場合が
ある。たとえば、電源異常を検出するための装置からの
割込、システムリセットスイッチ、システムアボートス
イッチなどからの割込がそのような禁止不可能割込とさ
れる。
However, in general, an information processing system may use an interrupt that cannot be prohibited due to an external factor (hereinafter referred to as "non-prohibited interrupt"). For example, an interrupt from a device for detecting a power failure, an interrupt from a system reset switch, a system abort switch, or the like is such an unprohibited interrupt.

【0012】たとえば、電源異常が発生すると、即座に
処理を行なわなければシステムの破壊につながる可能性
がある。したがって電源異常は、外部記憶、通信装置な
どの周辺装置からの割込よりもその緊急度が遙かに高
い。そこで、このような緊急度の高いものは禁止不可能
割込として使用することが一般的である。
For example, if a power failure occurs, the system may be damaged unless immediate processing is performed. Therefore, the power failure is much more urgent than an interrupt from a peripheral device such as an external storage or a communication device. Therefore, it is common to use such highly urgent ones as non-prohibition interrupts.

【0013】こうした禁止不可能割込は、割込禁止状態
であっても受付けられてしまう。そのために、或るプロ
セスが危険領域期間に入っている場合であっても、禁止
不可能割込が発生すると受付けられてしまい、禁止不可
能割込に対する割込処理によって共有資源の操作が行な
われてしまう可能性がある。その様な操作が行なわれれ
ば、その共有資源に関わるプロセス全体に不具合が発生
してしまうという問題点があった。
Such a non-disabled interrupt is accepted even in the interrupt prohibited state. Therefore, even if a certain process is in the dangerous area period, it is accepted when a non-prohibitable interrupt occurs, and the shared resource is operated by the interrupt processing for the non-prohibitable interrupt. There is a possibility that it will end up. If such an operation is performed, there is a problem that a failure occurs in the entire process related to the shared resource.

【0014】この発明は上述のような問題点を解決する
ためになされたものであって、禁止不可能割込を使用す
る情報処理システムにおいて、禁止不可能割込の発生に
より、資源を共有する複数個のプロセス全体に不具合が
発生することを防止できる情報処理システムおよびその
動作方法を提供することである。
The present invention has been made in order to solve the above-mentioned problems, and in an information processing system using a non-prohibited interrupt, resources are shared by the occurrence of a non-prohibited interrupt. An object of the present invention is to provide an information processing system and its operating method capable of preventing a failure from occurring in all of a plurality of processes.

【0015】[0015]

【課題を解決するための手段】請求項1に記載の情報処
理システムは、禁止不可能な割込を含む複数の割込レベ
ルに対する割込処理機能を有し、かつプログラムの実行
を行なうための処理手段と、処理手段に接続され、処理
手段から与えられる外部割込の発生を指示する信号に応
答して、予め定める禁止可能レベルの割込要求信号を発
生して処理手段に対して与えるための割込発生手段とを
含む。
An information processing system according to claim 1 has an interrupt processing function for a plurality of interrupt levels including interrupts that cannot be prohibited, and is for executing a program. In order to generate an interrupt request signal of a predetermined prohibitable level and give it to the processing means in response to the processing means and a signal which is connected to the processing means and which gives an instruction to generate an external interrupt. Interrupt generating means.

【0016】請求項2に記載の情報処理システムの動作
方法は、禁止不可能な割込を含む複数の割込レベルに対
する割込処理機能を有し、かつプログラムの実行を行な
うための処理手段と、処理手段に接続され、処理手段か
ら与えられる外部割込の発生を指示する信号に応答し
て、予め定める禁止可能レベルの割込要求信号を発生し
て処理手段に対して与えるための割込発生手段とを含む
情報処理システムの動作方法である。この動作方法は、
禁止不可能な割込の発生時に、処理手段によって危険領
域を含まない予め定める第1の割込処理プログラムを実
行するステップと、第1の割込処理プログラムから、割
込発生手段に対して外部割込の発生を指示する信号を出
力して第1の割込処理プログラムを終了させるステップ
と、第1の割込処理プログラムにより出力された外部割
込の発生を指示する信号に応答して、割込発生手段によ
って処理手段に対し禁止可能レベルの割込要求信号を発
生するステップと、処理手段に対する禁止可能レベルの
割込が受付可能となった段階で、禁止可能レベルの割込
要求信号に応答して、危険領域を含む予め定める第2の
割込処理プログラムを実行するステップとを含む。
According to a second aspect of the present invention, there is provided an information processing system operating method, which comprises a processing means for executing a program, having an interrupt processing function for a plurality of interrupt levels including interrupts that cannot be prohibited. An interrupt for connecting to the processing means and generating an interrupt request signal of a predetermined forbidden level in response to a signal instructing the generation of an external interrupt given from the processing means and giving it to the processing means. It is a method of operating an information processing system including a generation unit. This operation method is
When a non-prohibitable interrupt occurs, a step of executing a predetermined first interrupt processing program that does not include a dangerous area by the processing means, and an external step for the interrupt generating means from the first interrupt processing program. In response to the step of outputting a signal instructing the generation of an interrupt and ending the first interrupt processing program, and in response to the signal instructing the generation of an external interrupt output by the first interrupt processing program, At the step of generating an interrupt request level interrupt request signal to the processing means by the interrupt generation means, and at the stage when the interrupt of the disableable level to the processing means becomes available, the interrupt request signal of the disableable level is sent. In response to executing a predetermined second interrupt processing program including the dangerous area.

【0017】[0017]

【作用】請求項1に記載の情報処理システムでは、禁止
不可能な割込が発生した場合には実行される割込処理プ
ログラムにおいて、危険領域を含まない処理のみを実行
した後、割込発生手段に対して外部割込の発生を指示す
る信号を発生して処理を終了する。この外部割込の発生
を指示する信号に応答して、割込発生手段によって禁止
可能レベルの割込要求信号が処理手段に対して与えられ
る。この禁止可能レベルの割込要求信号による割込処理
内で、危険領域の処理を実行するようにプログラムを構
成することができる。
In the information processing system according to the first aspect, in the interrupt processing program executed when an interrupt that cannot be prohibited occurs, only the processing that does not include the dangerous area is executed, and then the interrupt is generated. A signal for instructing the means to generate an external interrupt is generated and the processing is ended. In response to the signal instructing the generation of the external interrupt, an interrupt request signal of an inhibitable level is given to the processing means by the interrupt generating means. The program can be configured to execute the processing of the dangerous area in the interrupt processing by the interrupt request signal of the prohibition level.

【0018】請求項2に記載の情報処理システムの動作
方法では、禁止不可能な割込の発生時には、危険領域を
含まない第1の割込処理プログラムがまず実行される。
この第1の割込処理プログラムは、割込発生手段に対し
て外部割込の発生を指示する信号を出力して終了する。
この外部割込の発生を指示する信号に応答して、割込発
生手段によって禁止可能レベルの割込要求信号が発生さ
れ、処理手段に対して与えられる。処理手段において禁
止可能レベルの割込が受付可能となった段階で、割込発
生手段により発生された割込要求信号に応答して、危険
領域を含む第2の割込処理プログラムが実行される。危
険領域を含む処理が禁止不可能な割込に対する処理内で
行なわれることはなく、必ず禁止可能レベルの割込処理
内で行なわれる。
In the method of operating the information processing system according to the second aspect of the present invention, when an interrupt that cannot be prohibited occurs, the first interrupt processing program that does not include the dangerous area is first executed.
The first interrupt processing program outputs a signal instructing the interrupt generating means to generate an external interrupt and ends the processing.
In response to the signal instructing the generation of the external interrupt, an interrupt request signal of an inhibitable level is generated by the interrupt generation means and given to the processing means. At the stage where the processing means can accept the interrupt of the prohibition level, the second interrupt processing program including the dangerous area is executed in response to the interrupt request signal generated by the interrupt generation means. . The processing including the dangerous area is not performed in the processing for the interrupt that cannot be prohibited, and is always performed in the interrupt processing of the prohibition level.

【0019】[0019]

【実施例】図1を参照して、本発明の一実施例に係る情
報処理システムは、複数本の割込要求線18を有する処
理ユニット10と、データおよびアドレスバス22によ
って処理ユニット10に接続されたメモリ12とを含
む。割込要求線18は、禁止不可能割込要求線INT0
と、禁止可能割込要求線INT1〜INTnとを含む。
メモリ12内には、処理ユニット10で実行される複数
プロセスにより共有される共有資源14が含まれる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to FIG. 1, an information processing system according to an embodiment of the present invention is connected to a processing unit 10 having a plurality of interrupt request lines 18 and a processing unit 10 by a data and address bus 22. Stored memory 12. The interrupt request line 18 is a non-disabled interrupt request line INT0.
And prohibition interrupt request lines INT1 to INTn.
The memory 12 includes a shared resource 14 shared by a plurality of processes executed by the processing unit 10.

【0020】この情報処理システムはさらに、データお
よびアドレスバス22によって処理ユニット10に、割
込出力要求線20によって禁止可能割込要求線INT1
〜INTnにそれぞれ接続され、処理ユニット10から
の外部割込の発生を指示する信号に応答して、所定の禁
止可能レベルの割込を処理ユニット10に対して発生さ
せるための割込発生機構16とを含む。
The information processing system further includes a data and address bus 22 to the processing unit 10 and an interrupt output request line 20 to disable the interrupt request line INT1.
.. to INTn, and an interrupt generation mechanism 16 for generating an interrupt of a predetermined prohibition level to the processing unit 10 in response to a signal instructing the generation of an external interrupt from the processing unit 10. Including and

【0021】図2を参照して、割込発生機構16は、処
理ユニット10に対してデータおよびアドレスバス22
によって接続された書込読出制御回路30およびデータ
バスバッファ32と、書込読出制御回路30により制御
され、データバスバッファ32を介して処理ユニット1
0から与えられる外部割込の発生を指示する信号を格納
するための割込要求レジスタ34と、割込要求レジスタ
34に接続され、禁止可能割込要求線INT1〜INT
nのいずれかに対して割込要求を発生させるための制御
回路36とを含む。実際には、割込発生機構16には特
定のアドレスが割当てられており、処理ユニット10か
ら特定のアドレス信号が出力されたことに応答して、割
込要求を発生する。
Referring to FIG. 2, the interrupt generation mechanism 16 sends the data and address bus 22 to the processing unit 10.
The write / read control circuit 30 and the data bus buffer 32 which are connected by the processing unit 1 controlled by the write / read control circuit 30 and via the data bus buffer 32.
An interrupt request register 34 for storing a signal for instructing the generation of an external interrupt given from 0, and prohibition interrupt request lines INT1 to INT connected to the interrupt request register 34
control circuit 36 for generating an interrupt request to any one of n. Actually, a specific address is assigned to the interrupt generating mechanism 16, and an interrupt request is generated in response to the output of the specific address signal from the processing unit 10.

【0022】処理ユニット10上で実行されるプログラ
ムが複数個のプロセスを含み、その複数個のプロセスが
メモリ12の共有資源14を共有して操作する場合を考
える。さらに、処理ユニット10が受付ける外部割込に
対する割込処理でも、この共有資源14を操作する場合
があるものとする。
Consider a case where a program executed on the processing unit 10 includes a plurality of processes, and the plurality of processes share the shared resource 14 of the memory 12 to operate. Further, it is assumed that the shared resource 14 may be operated even in the interrupt processing for the external interrupt received by the processing unit 10.

【0023】この実施例に係る情報処理システムでは、
従来の問題点を解決するためにプログラムの構成を以下
のようにする。まず、各プロセスが共有資源14の操作
を行なう危険領域では、必ず以下に示す手順に従うもの
とする。
In the information processing system according to this embodiment,
In order to solve the conventional problems, the program structure is as follows. First, in the dangerous area where each process operates the shared resource 14, the following procedure is always followed.

【0024】 他の割込を禁止する。 共有資源14の操作を行なう。Prohibit other interrupts. The shared resource 14 is operated.

【0025】 他の割込を許可する。 上述の〜の期間は、他プロセスまたは割込処理から
の、共有資源14に対する操作を禁止する割込禁止区間
である。
Allow other interrupts. The above-mentioned periods (1) to (4) are an interrupt prohibition section in which the operation to the shared resource 14 by another process or interrupt processing is prohibited.

【0026】この割込禁止区間で禁止不可能割込が発生
した場合、処理ユニット10はこの禁止不可能割込を割
込禁止区間であるにもかかわらず受付ける。この場合の
割込処理において実行されるプログラムは、次のような
構成とする。
When a prohibition-disabled interrupt occurs in this interrupt-prohibited section, the processing unit 10 accepts this prohibition-disabled interrupt even though it is an interrupt-prohibited section. The program executed in the interrupt process in this case has the following configuration.

【0027】 共有資源の操作以外の処理、すなわち
危険領域以外の領域の処理を行なう。
Processing other than the operation of the shared resource, that is, processing of an area other than the dangerous area is performed.

【0028】 割込発生機構16を操作して、処理ユ
ニット10に対して所定レベルの禁止可能割込を発生さ
せる。
The interrupt generation mechanism 16 is operated to generate a predetermined level of prohibitable interrupt for the processing unit 10.

【0029】 割込処理を終了し、禁止不可能割込か
ら復帰する。 上述のの処理が行なわれることにより、禁止不可能割
込の発生によって中断されていた前述のの共有資源の
操作が再開される。
The interrupt processing is terminated, and the non-prohibited interrupt is restored. By performing the above-mentioned processing, the operation of the above-mentioned shared resource, which has been interrupted by the occurrence of the non-prohibited interrupt, is restarted.

【0030】上述の〜の禁止不可能割込処理では、
共有資源の操作を行なっていない。そのために、上述の
の処理が禁止不可能割込によって一旦中断され、〜
の処理が行なわれた後再開されても、禁止不可能割込
の発生による共有資源の破壊が発生することはない。す
なわち、この共有資源14に関わるプロセス全体に不具
合が発生することはない。
In the above-mentioned prohibition interruption processings 1 to 3,
The shared resource is not operated. Therefore, the above process is temporarily interrupted by a non-inhibitable interrupt,
Even if the processing is restarted after the processing in step 1, the shared resource will not be destroyed due to the occurrence of the non-prohibitable interrupt. That is, no trouble occurs in the entire process related to the shared resource 14.

【0031】禁止不可能割込の発生に応答して共有資源
14の操作を行なう必要がある場合には、次のような処
理が行なわれる。上述のの処理により、禁止可能割込
が発生される。この禁止可能割込は、で行なわれた割
込禁止処理のために、すぐには受付けられず、の処理
が行なわれない限り実行されない。一方でこのの処理
が実行されれば、で発生された禁止可能割込の受付が
行なわれる。
When it is necessary to operate the shared resource 14 in response to the occurrence of a non-prohibit interrupt, the following processing is performed. By the above-mentioned processing, a prohibitable interrupt is generated. This prohibitable interrupt is not accepted immediately because of the interrupt prohibition process performed in, and is not executed unless the process in is performed. On the other hand, if this process is executed, the prohibitable interrupt generated in is accepted.

【0032】受付けられた禁止可能割込の処理では、上
述の〜の処理と同様に以下のような共有資源の操作
を行なう。
In the accepted prohibition interrupt process, the following shared resource operation is performed in the same manner as the above-described processes (1) to (3).

【0033】 他の割込を禁止する。 共有資源14の操作を行なう。Prohibit other interrupts. The shared resource 14 is operated.

【0034】 他の割込を許可する。 この〜の処理は、禁止不可能割込処理の中で行なえ
ば、被割込処理で行なわれた〜の処理と衝突する危
険領域である。従来はそのような処理が禁止不可能割込
処理の中で行なわれていたために共有資源が破壊される
恐れがあった。しかし、本発明では〜の処理は禁止
不可能割込処理そのものの中では実行されず、禁止不可
能割込処理から発生させた禁止可能割込処理の中で行な
われる。そのために、〜の処理が中断されて〜
の処理が実行される恐れはなく、共有資源に対する逐次
的な処理を行なうことが可能となる。すなわち、〜
を行なうプロセスと、禁止不可能割込に伴う割込処理と
が共に危険領域に入る事態が避けられる。
Allow other interrupts. If the processes (1) to (3) are performed in the non-prohibit interrupt process, the processes (1) to (4) are dangerous areas that collide with the processes (1) to (5) performed in the interrupted process. Conventionally, such processing has been performed in the non-inhibitable interrupt processing, so that there is a fear that the shared resource is destroyed. However, according to the present invention, the processes (1) to (3) are not executed in the non-inhibitable interrupt process itself, but are executed in the inhibitable interrupt process generated from the non-inhibitable interrupt process. Therefore, the process of ~ is interrupted ~
There is no fear that the processing of 1) will be executed, and it becomes possible to perform sequential processing for the shared resource. That is,
It is possible to avoid a situation in which both the process of performing the interrupt and the interrupt process accompanying the non-prohibitable interrupt enter the dangerous area.

【0035】上述したような処理を可能とするために、
処理ユニット10で実行されるソフトウェアは次のよう
な構造となっている必要がある。
In order to enable the processing as described above,
The software executed by the processing unit 10 needs to have the following structure.

【0036】(a) 禁止不可能割込により起動される
割込プロセス以外のプロセスでは、〜のように、危
険領域のみで割込を禁止するようにソフトウェアを作成
する。
(A) In processes other than the interrupt process activated by the non-prohibited interrupt, software is created so that the interrupt is prohibited only in the dangerous area as shown by.

【0037】(b) 禁止不可能割込によって起動され
る割込プロセスは、以下の2つ以上のプロセスに予め分
割し、それぞれ別々のプロセスとなるようにソフトウェ
アを作成する。
(B) The interrupt process activated by the non-inhibitable interrupt is preliminarily divided into the following two or more processes, and the software is created so that they are separate processes.

【0038】(i) 共有資源を操作しない処理ブロッ
クからなるプロセス (ii) 共有資源を操作する処理ブロックからなるプ
ロセス この(ii)のプロセス内部では、通常の禁止可能割込
のプロセスと同様に前述した〜の処理を行なう。
(I) Process consisting of a processing block that does not operate shared resources (ii) Process consisting of a processing block that operates shared resources Inside this process (ii) is the same as the normal prohibitable interrupt process. It does the processing of.

【0039】(c) 禁止不可能割込の発生時には、上
述のプロセス(i)を起動するようにする。
(C) When the non-prohibitable interrupt occurs, the above process (i) is started.

【0040】(d) プロセス(i)では、その終了直
前に所定レベルの禁止可能割込を発生する処理を行な
う。
(D) In the process (i), a process of generating a prohibitable interrupt of a predetermined level is performed immediately before the end thereof.

【0041】(e) そして、上述の(d)で発生され
た禁止可能割込に応答して、上述のプロセス(ii)を
起動する。
(E) Then, in response to the prohibitable interrupt generated in the above (d), the above process (ii) is activated.

【0042】情報処理システムを図1および図2に示さ
れるように構成し、処理ユニット10で実行される各プ
ロセスを上述の(a)〜(e)に示されるように構成す
ることにより、共有資源の破壊を防ぎ、共有資源に関わ
るすべてのプロセスに不具合が発生する可能性を防止す
ることができる。
Sharing is achieved by configuring the information processing system as shown in FIGS. 1 and 2 and configuring each process executed in the processing unit 10 as shown in (a) to (e) above. It is possible to prevent the destruction of resources and prevent the possibility of malfunction in all processes related to shared resources.

【0043】図3は、図1、図2に示される情報処理シ
ステムで実行されるソフトウェア処理の構成を示すソフ
トウェア構成図である。図3を参照して、被割込処理は
まず、割込禁止40を行ない、次に共有資源の操作42
を行ない、共有資源の操作42が終了した段階で割込許
可44を行なう。割込禁止40から割込許可44までが
被割込処理の危険領域である。
FIG. 3 is a software configuration diagram showing a configuration of software processing executed by the information processing system shown in FIGS. Referring to FIG. 3, the interrupted process first performs an interrupt prohibition 40 and then a shared resource operation 42.
When the operation 42 of the shared resource is completed, the interrupt permission 44 is given. From the interrupt prohibition 40 to the interrupt permission 44 is a dangerous area of interrupted processing.

【0044】一方、禁止不可能割込処理46は、被割込
処理が危険領域にあっても受付けられ、次のような処理
を行なう。まず禁止不可能割込処理46は、共有資源操
作以外の処理48を行なった後、復帰52の直前に、禁
止可能割込の発生50を行なう。復帰52によってこの
禁止不可能割込処理は終了する。
On the other hand, the non-inhibitable interrupt process 46 is accepted even if the interrupted process is in the dangerous area, and performs the following process. First, the non-prohibitable interrupt process 46 performs a process 48 other than the shared resource operation, and then, immediately before the return 52, a prohibition-prohibited interrupt generation 50 is performed. The return 52 terminates this prohibition prohibition interrupt process.

【0045】一方、禁止可能割込の発生50に応答して
実行される禁止可能割込処理54は、被割込処理の割込
許可44の後でなければ実行されない。そしてその中で
は、割込禁止56がまず最初に行なわれ、続いて共有資
源の操作58、割込許可60が行なわれる。この割込禁
止56から割込許可60までが禁止可能割込処理の危険
領域である。割込許可60の後復帰62により禁止可能
割込処理54は終了する。
On the other hand, the prohibitable interrupt process 54 executed in response to the occurrence 50 of the prohibitable interrupt is executed only after the interrupt permission 44 of the interrupted process. In the process, an interrupt prohibition 56 is first performed, followed by a shared resource operation 58 and an interrupt permission 60. From the interrupt prohibition 56 to the interrupt permission 60 is a risk area of the prohibitable interrupt processing. After the interrupt permission 60, the prohibition interrupt process 54 is terminated by the return 62.

【0046】禁止可能割込処理54が、被割込処理の割
込許可44の後でなければ実行されないために、禁止可
能割込処理54と被割込処理とが同時に危険領域に入る
ことはない。そのため、禁止不可能割込処理46の発生
により、共有資源が破壊される恐れはなく、この共有資
源に関わるプロセスに不具合が発生する恐れもない。
Since the prohibitable interrupt process 54 is executed only after the interrupt permission 44 of the interrupted process, the prohibitable interrupt process 54 and the interrupted process cannot enter the dangerous area at the same time. Absent. Therefore, there is no risk that the shared resource will be destroyed by the occurrence of the non-prohibitable interrupt process 46, and there will be no risk that a process related to this shared resource will malfunction.

【0047】図4は、上述の実施例の情報処理システム
の動作を示すタイミングチャートである。まず、被割込
処理の実行中時刻t0で割込が禁止され、被割込処理の
危険領域に入る。危険領域が終了する以前の時刻t1で
禁止不可能割込処理が発生したものとする。これにより
非割込処理が中断され、禁止不可能割込処理の実行が開
始される。禁止不可能割込処理は時刻t3で終了し制御
は被割込処理に復帰するが、禁止不可能割込処理はその
復帰に先立ち、時刻t2に禁止可能割込の発生を行な
う。この割込は禁止可能であり、時刻t0で行なわれた
割込禁止のために、禁止不可能割込処理が時刻t3で終
了した後に、すぐに受付けられることはない。
FIG. 4 is a timing chart showing the operation of the information processing system of the above embodiment. First, at the time t0 during execution of the interrupted process, the interrupt is prohibited and enters the danger area of the interrupted process. It is assumed that the impossible prohibition interrupt process occurs at time t1 before the end of the dangerous area. As a result, the non-interrupt processing is interrupted, and the execution of the non-prohibitable interrupt processing is started. Although the non-prohibitable interrupt processing ends at time t3 and the control returns to the interrupted processing, the non-prohibitable interrupt processing generates a prohibitable interrupt at time t2 prior to the return. This interrupt can be prohibited, and due to the interrupt prohibition performed at time t0, it cannot be accepted immediately after the non-disabled interrupt processing ends at time t3.

【0048】被割込処理は時刻t3にその実行が再開さ
れ、時刻t4で終了する。時刻t4では割込許可が行な
われ、被割込処理の危険領域が終了する。
The execution of the interrupted process is resumed at time t3 and ends at time t4. At time t4, interrupt permission is performed and the dangerous area of the interrupted process ends.

【0049】時刻t4に被割込処理によって割込許可が
行なわれるために、時刻t2で発生された禁止可能割込
が受付けられる。すなわち時刻t2で発生された禁止可
能割込の受付は、時刻t4まで遅延される。この禁止可
能割込処理では、受付の後時刻t5で割込禁止処理を行
なって危険領域に入る。共有資源に対する操作を行なっ
た後、時刻t6で割込許可が行なわれ、時刻t7で禁止
可能割込処理は終了して被割込処理への復帰が行なわれ
る。被割込処理は、時刻t7から処理を再開する。
At time t4, an interrupt is permitted by the interrupted process, so that the forbidden interrupt generated at time t2 is accepted. That is, the acceptance of the prohibitable interrupt generated at time t2 is delayed until time t4. In this prohibition interrupt process, after the acceptance, the interrupt prohibition process is performed at time t5 to enter the dangerous area. After the operation on the shared resource is performed, the interrupt permission is performed at time t6, and the disallowable interrupt process is terminated at time t7 to return to the interrupted process. The interrupted process restarts from time t7.

【0050】以上、本発明を実施例に基づいて説明した
が、本発明は上述の実施例には限定されない。たとえ
ば、上述の実施例では禁止不可能割込はただ1つの割込
要求線によって処理ユニット10に対して発生された。
しかし、本発明は複数の禁止不可能割込を利用する情報
処理システムに対しても適用することができる。さら
に、割込発生機構16としては、新たなハードウェアを
作成してもよいし、既存の割込コントローラなどを利用
してもよい。
Although the present invention has been described based on the embodiments, the present invention is not limited to the above embodiments. For example, in the above-described embodiment, a non-inhibitable interrupt was generated for processing unit 10 by only one interrupt request line.
However, the present invention can also be applied to an information processing system utilizing a plurality of non-prohibitable interrupts. Further, as the interrupt generation mechanism 16, new hardware may be created, or an existing interrupt controller or the like may be used.

【0051】[0051]

【発明の効果】以上のように請求項1に記載の情報処理
システムでは、禁止不可能割込から割込発生手段を利用
して処理手段に対し禁止可能レベルの割込要求信号を発
生することができる。禁止不可能割込処理では共有資源
の操作を行なわず、この禁止不可能割込によって発生さ
れる禁止可能レベルの割込処理内で共有資源を操作する
ようにすることにより、禁止不可能割込の発生による、
複数プロセスの危険領域の同時実行を防ぐことが可能と
なる。したがって、禁止不可能割込の発生により、資源
を共有する複数個のプロセス全体に不具合が発生するこ
とを防止できる情報処理システムを提供できる。
As described above, in the information processing system according to claim 1, the interrupt request signal of the prohibition level is generated from the non-prohibition interrupt to the processing means by using the interrupt generation means. You can The shared resource is not manipulated in the prohibition-disabled interrupt process, and the shared resource is manipulated within the interrupt process of the prohibition-prohibited level generated by this prohibition-disabled interrupt. Due to the occurrence of
It is possible to prevent simultaneous execution of dangerous areas of multiple processes. Therefore, it is possible to provide an information processing system capable of preventing a failure from occurring in all of a plurality of processes sharing a resource due to the occurrence of an unprohibitable interrupt.

【0052】請求項2に記載の発明に係る情報処理シス
テムの動作方法では、禁止不可能な割込の発生時には、
危険領域を含まない第1の割込処理プログラムが実行さ
れ、この第1の割込処理プログラムから割込発生手段を
利用して禁止可能レベルの割込を発生させることができ
る。この禁止可能レベルの割込内でのみ危険領域の処理
を行なうようにすることにより、禁止不可能な割込の発
生時にも、複数個のプロセスが同時に危険領域に入るこ
とが防止できる。その結果、禁止不可能割込の発生によ
り、資源を共有する複数個のプロセス全体に不具合が発
生することを防止できる情報処理システムの動作方法を
提供できる。
In the operating method of the information processing system according to the second aspect of the invention, when an interrupt that cannot be prohibited occurs,
The first interrupt processing program that does not include the dangerous area is executed, and the interrupt generation means can be used to generate an interrupt at a prohibition level. By performing the processing of the dangerous area only within the interrupt of the forbidden level, it is possible to prevent a plurality of processes from entering the dangerous area at the same time even when the interrupt that cannot be prohibited occurs. As a result, it is possible to provide an operation method of the information processing system capable of preventing a failure from occurring in all of the plurality of processes sharing the resource due to the occurrence of the non-prohibitable interrupt.

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

【図1】本発明の一実施例の情報処理システムのブロッ
ク図である。
FIG. 1 is a block diagram of an information processing system according to an embodiment of the present invention.

【図2】割込発生機構の詳細なブロック図である。FIG. 2 is a detailed block diagram of an interrupt generation mechanism.

【図3】本発明の一実施例のソフトウェア構成図であ
る。
FIG. 3 is a software configuration diagram of an embodiment of the present invention.

【図4】本発明の一実施例の動作を説明するタイミング
チャートである。
FIG. 4 is a timing chart explaining the operation of the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

10 処理ユニット 12 メモリ 14 共有資源 16 割込発生機構 18 割込要求線 20 割込出力要求線 22 データおよびアドレスバス 10 Processing Unit 12 Memory 14 Shared Resource 16 Interrupt Generation Mechanism 18 Interrupt Request Line 20 Interrupt Output Request Line 22 Data and Address Bus

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成5年12月7日[Submission date] December 7, 1993

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0047[Correction target item name] 0047

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0047】図4は、上述の実施例の情報処理システム
の動作を示すタイミングチャートである。まず、被割込
処理の実行中時刻t0で割込が禁止され、被割込処理の
危険領域に入る。危険領域が終了する以前の時刻t1で
禁止不可能割込処理が発生したものとする。これにより
割込処理が中断され、禁止不可能割込処理の実行が開
始される。禁止不可能割込処理は時刻t3で終了し制御
は被割込処理に復帰するが、禁止不可能割込処理はその
復帰に先立ち、時刻t2に禁止可能割込の発生を行な
う。この割込は禁止可能であり、時刻t0で行なわれた
割込禁止のために、禁止不可能割込処理が時刻t3で終
了した後に、すぐに受付けられることはない。
FIG. 4 is a timing chart showing the operation of the information processing system of the above embodiment. First, at the time t0 during execution of the interrupted process, the interrupt is prohibited and enters the danger area of the interrupted process. It is assumed that the impossible prohibition interrupt process occurs at time t1 before the end of the dangerous area. This
The interrupt processing is interrupted, and starts execution of the prohibited not interrupt processing. Although the non-prohibitable interrupt processing ends at time t3 and the control returns to the interrupted processing, the non-prohibitable interrupt processing generates a prohibitable interrupt at time t2 prior to the return. This interrupt can be prohibited, and due to the interrupt prohibition performed at time t0, it cannot be accepted immediately after the non-disabled interrupt processing ends at time t3.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 禁止不可能な割込を含む複数の割込レベ
ルに対する割込処理機能を有し、かつプログラムの実行
を行なうための処理手段と、 前記処理手段に接続され、前記処理手段から与えられる
外部割込の発生を指示する信号に応答して、予め定める
禁止可能レベルの割込要求信号を発生して前記処理手段
に対して与えるための割込発生手段とを含む情報処理シ
ステム。
1. A processing unit having an interrupt processing function for a plurality of interrupt levels including non-inhibitable interrupts and for executing a program; and a processing unit connected to the processing unit, An information processing system including: an interrupt generating means for generating an interrupt request signal of a predetermined prohibition level and giving it to the processing means in response to a signal instructing the generation of an external interrupt.
【請求項2】 禁止不可能な割込を含む複数の割込レベ
ルに対する割込処理機能を有し、かつプログラムの実行
を行なうための処理手段と、 前記処理手段に接続され、前記処理手段から与えられる
外部割込の発生を指示する信号に応答して、予め定める
禁止可能レベルの割込要求信号を発生して前記処理手段
に対して与えるための割込発生手段とを含む情報処理シ
ステムの動作方法であって、 禁止不可能な割込の発生時に、前記処理手段によって危
険領域を含まない予め定める第1の割込処理プログラム
を実行するステップと、 前記第1の割込処理プログラムから、前記割込発生手段
に対して外部割込の発生を指示する信号を出力して前記
第1の割込処理プログラムを終了させるステップと、 前記第1の割込処理プログラムにより出力された前記外
部割込の発生を指示する信号に応答して、前記割込発生
手段によって、前記処理手段に対し前記禁止可能レベル
の割込要求信号を発生するステップと、 前記処理手段に対する禁止可能レベルの割込が受付可能
となった段階で、前記禁止可能レベルの割込要求信号に
応答して、危険領域を含む予め定める第2の割込処理プ
ログラムを実行するステップとを含む、情報処理システ
ムの動作方法。
2. Processing means for interrupting a plurality of interrupt levels including non-disabled interrupts and for executing a program; and processing means connected to said processing means, An information processing system including an interrupt generation means for generating an interrupt request signal of a predetermined prohibition level and giving it to the processing means in response to a signal instructing the generation of an external interrupt. An operating method, when a non-inhibitable interrupt occurs, a step of executing a predetermined first interrupt processing program that does not include a dangerous area by the processing means; and, from the first interrupt processing program, Outputting a signal instructing the generation of an external interrupt to the interrupt generating means to terminate the first interrupt processing program; and output by the first interrupt processing program. Responsive to a signal instructing the generation of the external interrupt, the interrupt generation means generates an interrupt request signal of the prohibition level to the processing means, and a prohibition level of the processing means. A step of executing a predetermined second interrupt processing program including a dangerous area in response to the interrupt request signal of the prohibition level at the stage when the interrupt can be accepted. How it works.
JP23854592A 1992-09-07 1992-09-07 Information processing system and operating method therefor Withdrawn JPH0695894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23854592A JPH0695894A (en) 1992-09-07 1992-09-07 Information processing system and operating method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23854592A JPH0695894A (en) 1992-09-07 1992-09-07 Information processing system and operating method therefor

Publications (1)

Publication Number Publication Date
JPH0695894A true JPH0695894A (en) 1994-04-08

Family

ID=17031847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23854592A Withdrawn JPH0695894A (en) 1992-09-07 1992-09-07 Information processing system and operating method therefor

Country Status (1)

Country Link
JP (1) JPH0695894A (en)

Similar Documents

Publication Publication Date Title
JP2867717B2 (en) Microcomputer
US5189647A (en) Information processing system having power saving control of the processor clock
US5748959A (en) Method of conducting asynchronous distributed collective operations
JPH0695894A (en) Information processing system and operating method therefor
CN109358903B (en) Data access device and access error notification method
JPS6336545B2 (en)
JPH064301A (en) Time division interruption control system
JPH05289987A (en) Bus right arbitrating circuit
JPS63157238A (en) Computer
JP2001051854A (en) Information management system
JPH02139630A (en) Online task exchange device
JPH1027040A (en) Computer resetting system
JP2008046731A (en) Controller and duplex control program
JPH06131218A (en) Cpu control system
JPH11161487A (en) Device and method for preventing illegal use of software
JPH0869444A (en) Multiprocessor system
JPH06242969A (en) Real-time multitask system
JPH05342021A (en) Multitask computer
JP2003345667A (en) Dual-memory system and memory switching method therefor
JPH02280233A (en) Memory management system
JPH0193219A (en) System switching system
JPH04199411A (en) Control system for information processing system
JPH01123357A (en) Interruption control system
JP2000315162A (en) Control block processor and computer readable recording medium recording control block processing program
JPH01318141A (en) Multiprocessor system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991130