JP2003241979A - Interruption mask control method and interruption mask control program - Google Patents

Interruption mask control method and interruption mask control program

Info

Publication number
JP2003241979A
JP2003241979A JP2002038240A JP2002038240A JP2003241979A JP 2003241979 A JP2003241979 A JP 2003241979A JP 2002038240 A JP2002038240 A JP 2002038240A JP 2002038240 A JP2002038240 A JP 2002038240A JP 2003241979 A JP2003241979 A JP 2003241979A
Authority
JP
Japan
Prior art keywords
interrupt
mask pattern
mask
control
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
JP2002038240A
Other languages
Japanese (ja)
Inventor
Toru Uchiyama
徹 内山
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 JP2002038240A priority Critical patent/JP2003241979A/en
Publication of JP2003241979A publication Critical patent/JP2003241979A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To make a level control of mask (or independent control of mask) coexistent with the independent control (or level control) in an interruption mask control method and interruption mask control program for loading a plurality of OS in the same space to control an interruption mask by calculating and setting the logic sum of a mask pattern with interruption occurrence with a mask pattern just before interruption to perform an interruption processing, and reflecting the mask pattern with interruption occurrence at the end of interruption. <P>SOLUTION: This method has a step for reading, in the occurrence of an interruption from a certain OS, a mask pattern corresponding to a designated interruption level or generating a mask pattern in which a designated interruption number is permitted or prohibited, and setting a mask pattern logically added to the present mask pattern to execute the interruption processing; and a step for reflecting the read or generated mask pattern to the present mask pattern to update the present mask pattern. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数OSを同一空
間にローディングして割込マスクを制御する割込マスク
制御方法および割込マスク制御プログラムに関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt mask control method and an interrupt mask control program for loading a plurality of OSs in the same space to control an interrupt mask.

【0002】[0002]

【従来の技術】従来、ホストOS(例えばリアルタイム
OSなど)およびゲストOS(例えば高機能を持つUN
IX(登録商標)など)を同一空間にローディングして
業務処理を行なう、いわゆるハイブリッドOSが使用さ
れるようになってきた。
2. Description of the Related Art Conventionally, a host OS (for example, real-time OS) and a guest OS (for example, UN having high functions)
IX (registered trademark) or the like is loaded in the same space to perform business processing, so-called hybrid OS has come into use.

【0003】[0003]

【発明が解決しようとする課題】しかし、上述のホスト
OSが割込レベルのパターンに対応するマスクを設定
し、他のゲストOSが個別にマスクを設定した場合、一
方の割込みが他方の割込みのマスクを許可・禁止し、崩
壊させてしまうという問題が発生した。
However, when the above-mentioned host OS sets a mask corresponding to an interrupt level pattern and another guest OS sets a mask individually, one interrupt is interrupted by the other interrupt. There was a problem of permitting / prohibiting the mask and causing it to collapse.

【0004】本発明は、これらの問題を解決するため、
割込発生のマスクパターンと、割込直前のマスクパター
ンとの論理和を算出して設定し、割込処理を行い、割込
終了時に割込発生のマスクパターンを反映し、マスクの
レベル制御(あるいはマスクの個別制御)を崩壊させず
に個別制御(あるいはレベル制御)と共存させることを
目的としている。
The present invention solves these problems.
Calculates and sets the logical sum of the interrupt-generated mask pattern and the mask pattern immediately before the interrupt, executes the interrupt process, reflects the interrupt-generated mask pattern at the end of the interrupt, and controls the mask level ( Alternatively, the objective is to make the individual control of the mask coexist with the individual control (or level control) without collapsing.

【0005】[0005]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。
[Means for Solving the Problems] Means for solving the problems will be described with reference to FIG.

【0006】図1において、ゲストOS4は、ホストO
S6と同一空間にローディングしてタスク5を動作さ
せ、ホストOS6に当該タスク5による各種機能を提供
するものであって、ここでは、マスクの個別制御するも
のである。
In FIG. 1, the guest OS 4 is a host O.
The task 5 is operated by loading it in the same space as S6, and provides the host OS 6 with various functions by the task 5. Here, the mask is individually controlled.

【0007】ホストOS6は、ゲストOS4と同一空間
にローディングしてタスク7を実行させて各種機能(サ
ービス)を提供するものであって、ここでは、マスクの
レベル制御するものである。尚、ゲストOS4のマスク
の個別制御あるいはホストOS6のマスクのレベル制御
と同一のホストOS6あるいはゲストOS4を設けても
よい。
The host OS 6 is loaded in the same space as the guest OS 4 and executes the task 7 to provide various functions (services). Here, the mask level is controlled. The same host OS 6 or guest OS 4 as the individual mask control of the guest OS 4 or the mask level control of the host OS 6 may be provided.

【0008】次に、動作を説明する。割込発生時に、あ
るOSが指定された割込レベルに対応するマスクパター
ンを取り出し、あるいは指定された割込番号を許可ある
いは禁止としたマスクパターンを生成し、現在のマスク
パターンと論理和した後のマスクパターンを設定して割
込処理を実行させ、割込処理終了時に、取り出しあるい
は生成したマスクパターンを現在のマスクパターンに反
映して現在のマスクパターンとして更新するようにして
いる。
Next, the operation will be described. When an interrupt occurs, a certain OS takes out a mask pattern corresponding to a specified interrupt level, or generates a mask pattern in which a specified interrupt number is permitted or prohibited, and is logically ORed with the current mask pattern. The mask pattern is set to execute the interrupt process, and at the end of the interrupt process, the extracted or generated mask pattern is reflected in the current mask pattern and updated as the current mask pattern.

【0009】この際、複数のOSの割込の制御として、
ホストOS6のようにマスクのレベル制御およびゲスト
OS4のようにマスクの個別制御のいずれかとするよう
にしている。
At this time, as control of interrupts of a plurality of OSs,
Either the mask level control is performed as in the host OS 6 or the individual mask control is performed as in the guest OS 4.

【0010】従って、割込発生のマスクパターンと、割
込直前のマスクパターンとの論理和を算出して設定し、
割込処理を行い、割込終了時に割込発生のマスクパター
ンを反映することにより、マスクのレベル制御(あるい
はマスクの個別制御)を崩壊させずに個別制御(あるい
はレベル制御)と共存させることが可能となる。
Therefore, the logical sum of the mask pattern of the interrupt occurrence and the mask pattern immediately before the interrupt is calculated and set,
By performing interrupt processing and reflecting the mask pattern of interrupt generation at the end of interrupt, it is possible to coexist with individual control (or level control) without breaking mask level control (or individual mask control). It will be possible.

【0011】[0011]

【発明の実施の形態】次に、図1から図4を用いて本発
明の実施の形態および動作を順次詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Next, embodiments and operations of the present invention will be sequentially described in detail with reference to FIGS.

【0012】図1は、本発明のシステム構成図を示す。
図1において、割込コントローラユニット1は、外部割
込を取り込み、MPUユニット2に通知したりなどする
ものであって、外部割込と、当該外部割込からの割込信
号をマスクするマスクビット11などから構成されるも
のである。
FIG. 1 shows a system configuration diagram of the present invention.
In FIG. 1, the interrupt controller unit 1 takes in an external interrupt and notifies the MPU unit 2 of the like. The external interrupt and a mask bit for masking the interrupt signal from the external interrupt. 11 and the like.

【0013】マスクビット11は、各外部割込からの割
込信号をマスクするビット(マスクパターンに対応する
ビット)である。
The mask bit 11 is a bit for masking an interrupt signal from each external interrupt (a bit corresponding to a mask pattern).

【0014】MPUユニット2は、メモリユニット3か
ら読み出したプログラムに従い各種処理を行なうもので
あって、ここでは、割込コントローラユニット1からの
割込をゲストOS4,ホストOS6に通知したり、通知
されたマスクビット(マスクパターンに対応するビッ
ト)を割込コントローラユニット1に通知して設定した
りなどするものである。
The MPU unit 2 performs various processes in accordance with the program read from the memory unit 3. Here, the interrupt from the interrupt controller unit 1 is notified to the guest OS 4 and the host OS 6, and is notified. The mask bits (bits corresponding to the mask pattern) are notified to the interrupt controller unit 1 and set.

【0015】メモリユニット3は、プログラムをローデ
ィングして起動し、図示の各種処理行なうための記憶装
置であって、ここでは、図示のように、ゲストOS4、
タスク5、ホストOS6、タスク7などとして動作する
プログラムなどを格納したものである。
The memory unit 3 is a storage device for loading and activating a program and performing the various processes shown in the figure. Here, as shown in the figure, the guest OS 4,
It stores a program that operates as the task 5, the host OS 6, the task 7, and the like.

【0016】ゲストOS4は、ホストOS6と同一空間
に配置したものであって、ここでは、ホストOS6に各
種機能(タスク5が実行する機能)を使用させるもので
あり、マスクの個別制御、割込手段41などから構成さ
れるものである。
The guest OS 4 is arranged in the same space as the host OS 6, and here, the host OS 6 is made to use various functions (functions executed by the task 5), and individual control of masks and interrupts are performed. It is composed of means 41 and the like.

【0017】割込手段41は、ゲストOS4における各
種割込制御を行なうものである。タスク5は、ゲストO
S4の制御のもとで、各種機能(高度なファイリング機
能など)を実行するものである。
The interrupting means 41 controls various interrupts in the guest OS 4. Task 5 is guest O
Under the control of S4, various functions (such as an advanced filing function) are executed.

【0018】ホストOS6は、ゲストOS4と同一空間
に配置したものであって、ここでは、ゲストOS4の各
種機能を使用するものであり、マスクのレベル制御、パ
ターンテーブル61、割込手段62、割込入口手段6
3、割込出口手段64などから構成されるものである。
The host OS 6 is arranged in the same space as the guest OS 4 and uses various functions of the guest OS 4, and here, the level control of the mask, the pattern table 61, the interrupt means 62, the interrupt means 62, Inlet means 6
3, the interrupt outlet means 64 and the like.

【0019】パターンテーブル61は、レベルに対応づ
けてマスクパターン(マスクビット)を予め設定したテ
ーブルである(図4(b)参照)。
The pattern table 61 is a table in which mask patterns (mask bits) are preset in association with levels (see FIG. 4B).

【0020】割込手段62は、ホストOS6における各
種割込制御を行なうものである。割込入口手段63は、
割込の入口で各種処理を行なうものであって、ここで
は、後述する図2に示すように、現在のマスクパターン
を待避、現在のマスクレベルに対応するマスクパターン
をパターンテーブルから取り出したり、現在のマスクパ
ターンと取り出したマスクパターンとを論理和したり、
論理和したマスクパターンを使用するマスクパターンと
して設定したりなどするものである。
The interrupt means 62 controls various interrupts in the host OS 6. The interrupt entrance means 63 is
Various processes are performed at the entrance of the interrupt. Here, as shown in FIG. 2, which will be described later, the current mask pattern is saved, the mask pattern corresponding to the current mask level is taken out from the pattern table, OR the mask pattern with the extracted mask pattern,
The mask pattern obtained by the logical sum is set as a mask pattern to be used.

【0021】割込出口手段64は、割込の出口で各種処
理を行なうものであって、ここでは、後述する図3に示
すように、取り出しあるいは生成したマスクパターン
を、待避したマスクパターンに反映して現在のマスクパ
ターンとして更新して設定などするものである。
The interrupt exit means 64 performs various processes at the exit of the interrupt, and here, as shown in FIG. 3 described later, the extracted or generated mask pattern is reflected in the saved mask pattern. Then, the current mask pattern is updated and set.

【0022】タスク7は、ホストOS6の制御のもと
で、各種機能(例えばリアルタイム機能など)を提供す
るものである。
The task 7 provides various functions (for example, real-time function) under the control of the host OS 6.

【0023】次に、図2のフローチャートの順番に従
い、図1の構成の動作を詳細に説明する。
Next, the operation of the configuration of FIG. 1 will be described in detail according to the order of the flowchart of FIG.

【0024】図2は、本発明の動作説明フローチャート
(その1)を示す。ここで、ゲストOS4、ホストOS
6は、図1の同一番号のものと同一である。
FIG. 2 is a flowchart (No. 1) for explaining the operation of the present invention. Here, guest OS 4 and host OS
6 is the same as that of the same number in FIG.

【0025】図2において、S1は、割込発生によりホ
ストOSへ制御が移行する。これは、割込の通知を受け
たゲストOS4からホストOS6へ制御を移行させる。
In FIG. 2, at S1, control is transferred to the host OS when an interrupt occurs. This transfers control from the guest OS 4 that received the interrupt notification to the host OS 6.

【0026】S2は、S1で制御が移行したホストOS
6で、当該ホストOS6(割込入口手段63)が現在の
マスクパターンを待避する。
S2 is the host OS whose control has been transferred in S1.
At 6, the host OS 6 (interrupt entrance unit 63) saves the current mask pattern.

【0027】S3は、対応するレベルのマスクパターン
を取得する。これは、現在あるいは指定されたマスクレ
ベルに対応するマスクパターンを、後述する図4の
(b)のパターンテーブルから取得する。
In step S3, the mask pattern of the corresponding level is acquired. This acquires the mask pattern corresponding to the current or designated mask level from the pattern table of FIG. 4B described later.

【0028】S4は、現在のマスクパターンと、取得し
たレベルのマスクパターンの論理和を取り、新しいマス
クパターンを設定する。
In step S4, a logical sum of the current mask pattern and the mask pattern of the acquired level is calculated to set a new mask pattern.

【0029】S5は、プロセッサの割込みを許可状態へ
変更する。S6は、割込処理を行なう。例えば、図示の
ように、タイマ割り込みであれば、システム時刻のカウ
ントアップなどの処理を行なう。
In step S5, the processor interrupt is changed to the enable state. At S6, interrupt processing is performed. For example, as shown in the figure, if it is a timer interrupt, processing such as counting up the system time is performed.

【0030】S7は、割込出口処理を行なう。例えば、
図示のように、ホストOS6のタスクスケジューリン
グ、割込復帰するために待避したレジスタ類の復元処理
を行なう。
At step S7, an interrupt exit process is performed. For example,
As shown in the figure, task scheduling of the host OS 6 and restoration processing of registers saved for interrupt recovery are performed.

【0031】以上のように、ゲストOS4が処理実行中
に、外部割込があるとここではホストOS6に制御が移
行し、ホストOS6が現在のマスクパターンを待避し、
対応するレベルのマスクパターンを図4の(b)のパタ
ーンテーブルから取得し、両者を論理和して設定した
後、割込処理を行うことにより、ここでは、マスクのレ
ベル制御を行なうホストOS6に割込が発生しても、ゲ
ストOS4のマスクの個別制御(あるいはマスクのレベ
ル制御)を崩壊させずにホストOS6のマスクのレベル
制御と共存させることが可能となる。
As described above, if an external interrupt occurs while the guest OS 4 is executing processing, control is transferred to the host OS 6 here, and the host OS 6 saves the current mask pattern,
The mask pattern of the corresponding level is acquired from the pattern table of FIG. 4B, the two are logically ORed and set, and then the interrupt process is performed. Even if an interrupt occurs, it is possible to coexist with the mask level control of the host OS 6 without destroying the individual mask control (or mask level control) of the guest OS 4.

【0032】図3は、本発明の動作説明フローチャート
(その2)を示す。図3において、S11は、ホストO
S6が割込ハンドラを呼び出す。これは、ホストOS6
の割込処理(割込手段62)が、割込を受けたゲストO
S4の割込ハンドラを呼び出す。
FIG. 3 shows a flowchart (part 2) for explaining the operation of the present invention. In FIG. 3, S11 is a host O
S6 calls the interrupt handler. This is the host OS6
Interrupt processing (interruption means 62) of guest O who received the interrupt
Call the S4 interrupt handler.

【0033】S12は、S11で呼び出しを受けたゲス
トOS4の割込ハンドラがマスク操作要求をホストOS
6のマスク処理に通知する。
In step S12, the interrupt handler of the guest OS 4 called in step S11 sends a mask operation request to the host OS.
Notify the mask processing of No. 6.

【0034】S13は、S12で通知を受けたホストO
S6のマスク処理がマスク操作を行なう。そして、ゲス
トOS4の割込ハンドラに完了通知し、S14でホスト
OSの割込処理に割込処理依頼する。
In S13, the host O notified in S12
The mask process of S6 performs a mask operation. Then, the completion notification is sent to the interrupt handler of the guest OS 4, and the interrupt processing is requested to the interrupt processing of the host OS in S14.

【0035】S15は、割込処理出口で、ホストOSの
タスクスケジューリングを行なう。S16は、割込処理
出口で、マスク復元時にゲストOSで操作したマスク操
作を反映する。これは、既述したS13でマスク操作し
た内容を、割込処理出口で反映して現在のマスクパター
ンとして設定する。これにより、S13で割込に対応し
てマスクパターンに反映した内容が、現在のマスクパタ
ーンにも反映して新しい現在のマスクパターンに更新す
る。
In step S15, the interrupt processing exit is used to perform task scheduling of the host OS. Step S16 is an interrupt processing exit, which reflects the mask operation operated by the guest OS when the mask is restored. This reflects the contents of the mask operation in S13 described above at the exit of the interrupt processing and sets the current mask pattern. As a result, the contents reflected in the mask pattern in response to the interrupt in S13 are also reflected in the current mask pattern and updated to the new current mask pattern.

【0036】S17は、ゲストOS4に割込復帰する。
以上によって、ゲストOS4に割込発生したときに、ホ
ストOS4側で割込発生したマスクパターンを、現在の
マスクパターンに反映(論理和)して設定し、割込処理
を行い、割込処理終了時の割込出口処理で今回の割込の
マスクパターンを反映した新しいマスクパターンに設定
することにより、マスクの個別マスク制御(あるいはマ
スクのレベル制御)を崩壊させずにマスクのレベル制御
(あるいはマスクの個別制御)と共存させることが可能
となる。
In S17, the guest OS 4 is interrupted and returned.
As described above, when an interrupt is generated in the guest OS 4, the mask pattern generated on the host OS 4 side is reflected (logical sum) in the current mask pattern and set, the interrupt process is performed, and the interrupt process ends. By setting a new mask pattern that reflects the mask pattern of this interrupt in the interrupt exit processing at the time, the mask level control (or mask level control) can be performed without breaking individual mask control (or mask level control). Individual control) can be made to coexist.

【0037】図4は、本発明の割込説明図を示す。図4
の(a)は、割込の例を示す。ここでは、例えば図示の
下記のように割込を設定する。
FIG. 4 shows an interrupt explanatory diagram of the present invention. Figure 4
(A) shows an example of interruption. Here, for example, an interrupt is set as shown below.

【0038】 割込番号 外部割込名称 1 タイマ 2 HDD 3 キーボード 4 LAN ここで、割込番号は、図1の割込コントローラユニット
1の外部割込が4本の場合を説明を簡単にするために用
いたものである。
Interrupt number External interrupt name 1 Timer 2 HDD 3 Keyboard 4 LAN Here, the interrupt number is for simplifying the description when the interrupt controller unit 1 of FIG. 1 has four external interrupts. Used for.

【0039】図4の(b)は、パターンテーブル例を示
す。これは、図4の(a)の割込番号に対応づけて、レ
ベルに対応して当該割込番号を割込許可あるいは割込禁
止に設定するマスクパターンの例を示したものである。
レベルは、0から4までここでは設け、数字が小さいほ
ど、割込レベルは高い。また、割込優先度は、図示のマ
スクパターンの場合には、図示のように、左から4,
2,1,3(数字が大きいほど、優先度が高い)とな
る。
FIG. 4B shows an example of the pattern table. This shows an example of a mask pattern in which the interrupt number is set to the interrupt permission or the interrupt prohibition corresponding to the level in association with the interrupt number of FIG.
The level is set from 0 to 4 here, and the smaller the number, the higher the interrupt level. In the case of the mask pattern shown in the figure, the interrupt priority is 4, from the left, as shown in the figure.
2, 1, 3 (the higher the number, the higher the priority).

【0040】以上のように、割込レベルに対応づけて、
外部からの割込番号の割込許可あるいは割込禁止を設定
したマスクパターンを予め図示のパターンテーブルのよ
うに設定することにより、レベルを指定するのみで該当
マスクパターンで割込番号の割込許可あるいは割込禁止
を制御(マスクのレベル制御という)を行なうことが可
能となる。尚、マスクの個別制御は、割込番号を指定し
た制御であって、指定された割込番号を割込許可あるい
は割込禁止に設定したマスクパターンを生成し、割込入
口処理で既述した論理和したり、割込出口処理で反映し
たりすればよい。
As described above, in association with the interrupt level,
By setting the mask pattern for which external interrupt numbers are permitted or prohibited, as shown in the pattern table in advance, only by specifying the level, the corresponding mask patterns are permitted to interrupt numbers. Alternatively, it is possible to control the prohibition of interrupts (called mask level control). Note that the individual mask control is a control in which an interrupt number is specified, and a mask pattern in which the specified interrupt number is set to enable or disable an interrupt is generated, and it is already described in the interrupt entrance process. It may be logically ORed or reflected in the interrupt exit process.

【0041】(付記1)複数OSを同一空間にローディ
ングして割込マスクを制御する割込マスク制御方法にお
いて、あるOSから割込発生時に、指定された割込レベ
ルに対応するマスクパターンを取り出し、あるいは指定
された割込番号を許可あるいは禁止としたマスクパター
ンを生成し、現在のマスクパターンと論理和した後のマ
スクパターンを設定して割込処理を実行させるステップ
と、上記割込処理終了時に、上記取り出しあるいは上記
生成したマスクパターンを上記現在のマスクパターンに
反映して現在のマスクパターンとして更新するステップ
とを有する割込みマスク制御方法。
(Supplementary Note 1) In an interrupt mask control method of loading a plurality of OSs in the same space to control an interrupt mask, when an interrupt occurs from a certain OS, a mask pattern corresponding to a specified interrupt level is extracted. , Or a step of generating a mask pattern in which the specified interrupt number is permitted or prohibited, setting a mask pattern after logically summing with the current mask pattern, and executing the interrupt process, and the above interrupt process completion And a step of updating the current mask pattern by reflecting the extracted or generated mask pattern on the current mask pattern.

【0042】(付記2)上記複数のOSの割込の制御と
して、マスクのレベル制御およびマスクの個別制御のい
ずれかとしたことを特徴とする付記1記載の割込マスク
制御方法。
(Supplementary Note 2) The interrupt mask control method according to Supplementary Note 1, wherein the interrupt control of the plurality of OSs is either mask level control or individual mask control.

【0043】(付記3)複数OSを同一空間にローディ
ングして割込マスクを制御する割込マスク制御プログラ
ムにおいて、あるOSから割込発生時に、指定された割
込レベルに対応するマスクパターンを取り出し、あるい
は指定された割込番号を許可あるいは禁止としたマスク
パターンを生成し、現在のマスクパターンと論理和した
後のマスクパターンを設定して割込処理を実行させるス
テップと、上記割込処理終了時に、上記取り出しあるい
は上記生成したマスクパターンを上記現在のマスクパタ
ーンに反映して現在のマスクパターンとして更新するス
テップとしてコンピュータに機能させるための割込マス
ク制御プログラム。
(Supplementary note 3) In an interrupt mask control program for loading a plurality of OSs in the same space to control an interrupt mask, when an interrupt occurs from a certain OS, a mask pattern corresponding to a specified interrupt level is taken out. , Or a step of generating a mask pattern in which the specified interrupt number is permitted or prohibited, setting a mask pattern after logically summing with the current mask pattern, and executing the interrupt process, and the above interrupt process completion An interrupt mask control program for causing a computer to function as a step of updating the current mask pattern by reflecting the extracted or generated mask pattern on the current mask pattern.

【0044】(付記4)複数OSを同一空間にローディ
ングして割込マスクを制御する割込マスク制御装置にお
いて、あるOSから割込発生時に、指定された割込レベ
ルに対応するマスクパターンを取り出し、あるいは指定
された割込番号を許可あるいは禁止としたマスクパター
ンを生成し、現在のマスクパターンと論理和した後のマ
スクパターンを設定して割込処理を実行させる手段と、
上記割込処理終了時に、上記取り出しあるいは上記生成
したマスクパターンを上記現在のマスクパターンに反映
して現在のマスクパターンとして更新する手段とを備え
たことを特徴とするマスク制御装置。
(Supplementary Note 4) In an interrupt mask controller for controlling an interrupt mask by loading a plurality of OSs in the same space, when an interrupt occurs from a certain OS, a mask pattern corresponding to a specified interrupt level is taken out. , Or a means for generating a mask pattern in which a specified interrupt number is permitted or prohibited, and setting a mask pattern after logically summing with the current mask pattern to execute an interrupt process,
A mask control device, comprising means for updating the current mask pattern by reflecting the extracted or generated mask pattern on the current mask pattern at the end of the interrupt process.

【0045】(付記5)複数OSを同一空間にローディ
ングして割込マスクを制御する割込マスク制御プログラ
ムを記録したコンピュータ読取可能な記録媒体であっ
て、あるOSから割込発生時に、指定された割込レベル
に対応するマスクパターンを取り出し、あるいは指定さ
れた割込番号を許可あるいは禁止としたマスクパターン
を生成し、現在のマスクパターンと論理和した後のマス
クパターンを設定して割込処理を実行させるステップ
と、上記割込処理終了時に、上記取り出しあるいは上記
生成したマスクパターンを上記現在のマスクパターンに
反映して現在のマスクパターンとして更新するステップ
として機能させるプログラムを記録したコンピュータ読
取可能な記録媒体。
(Supplementary Note 5) A computer-readable recording medium in which an interrupt mask control program for loading a plurality of OSs in the same space to control an interrupt mask is recorded and which is designated by an OS when an interrupt occurs. The mask pattern corresponding to the specified interrupt level is extracted, or a mask pattern in which the specified interrupt number is permitted or prohibited is generated, and the mask pattern after logical OR with the current mask pattern is set and interrupt processing is performed. And a computer readable program recording a program that functions as a step of updating the current mask pattern by reflecting the extracted or generated mask pattern on the current mask pattern at the end of the interrupt processing. recoding media.

【0046】[0046]

【発明の効果】以上説明したように、本発明によれば、
割込発生のマスクパターンと、割込直前のマスクパター
ンとの論理和を算出して設定し、割込処理を行い、割込
終了時に割込発生時のマスクパターンを反映する構成を
採用しているため、マスクのレベル制御(あるいはマス
クの個別制御)を崩壊させずに個別制御(あるいはレベ
ル制御)と共存させることが可能となる。
As described above, according to the present invention,
By adopting a configuration that calculates and sets the logical sum of the mask pattern of the interrupt occurrence and the mask pattern immediately before the interrupt, performs the interrupt processing, and reflects the mask pattern of the interrupt occurrence at the end of the interrupt. Therefore, the level control of the mask (or the individual control of the mask) can be made to coexist with the individual control (or the level control) without being destroyed.

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

【図1】本発明のシステム構成図である。FIG. 1 is a system configuration diagram of the present invention.

【図2】本発明の動作説明フローチャート(その1)で
ある。
FIG. 2 is a flowchart (No. 1) for explaining the operation of the present invention.

【図3】本発明の動作説明フローチャート(その2)で
ある。
FIG. 3 is a flowchart (No. 2) for explaining the operation of the present invention.

【図4】本発明の割込説明図である。FIG. 4 is an explanatory diagram of interruption of the present invention.

【符号の説明】 1:割込コントローラユニット 2:MPUユニット 3:メモリユニット 4:ゲストOS 41:割込手段 5、7:タスク 6:ゲストOS 61:パターンテーブル 62:割込手段 63:割込入口手段 64:割込出口手段[Explanation of symbols] 1: Interrupt controller unit 2: MPU unit 3: Memory unit 4: Guest OS 41: Interruption means 5, 7: Task 6: Guest OS 61: Pattern table 62: Interruption means 63: Interrupt entrance means 64: Interrupt exit means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】複数OSを同一空間にローディングして割
込マスクを制御する割込マスク制御方法において、 あるOSから割込発生時に、指定された割込レベルに対
応するマスクパターンを取り出し、あるいは指定された
割込番号を許可あるいは禁止としたマスクパターンを生
成し、現在のマスクパターンと論理和した後のマスクパ
ターンを設定して割込処理を実行させるステップと、 上記割込処理終了時に、上記取り出しあるいは上記生成
したマスクパターンを上記現在のマスクパターンに反映
して現在のマスクパターンとして更新するステップとを
有する割込みマスク制御方法。
1. An interrupt mask control method for controlling an interrupt mask by loading a plurality of OSs in the same space, and when an interrupt occurs from a certain OS, a mask pattern corresponding to a specified interrupt level is taken out, or Generate a mask pattern that allows or prohibits the specified interrupt number, set the mask pattern after logical OR with the current mask pattern and execute the interrupt process, and at the end of the interrupt process, And a step of updating the current mask pattern by reflecting the extracted or generated mask pattern on the current mask pattern.
【請求項2】上記複数のOSの割込の制御として、マス
クのレベル制御およびマスクの個別制御のいずれかとし
たことを特徴とする請求項1記載の割込マスク制御方
法。
2. The interrupt mask control method according to claim 1, wherein the interrupt control of the plurality of OSs is either mask level control or mask individual control.
【請求項3】複数OSを同一空間にローディングして割
込マスクを制御する割込マスク制御プログラムにおい
て、 あるOSから割込発生時に、指定された割込レベルに対
応するマスクパターンを取り出し、あるいは指定された
割込番号を許可あるいは禁止としたマスクパターンを生
成し、現在のマスクパターンと論理和した後のマスクパ
ターンを設定して割込処理を実行させるステップと、 上記割込処理終了時に、上記取り出しあるいは上記生成
したマスクパターンを上記現在のマスクパターンに反映
して現在のマスクパターンとして更新するステップとし
てコンピュータに機能させるための割込マスク制御プロ
グラム。
3. An interrupt mask control program for loading a plurality of OSs in the same space to control an interrupt mask, when an interrupt is generated from a certain OS, a mask pattern corresponding to a specified interrupt level is taken out, or Generate a mask pattern that allows or prohibits the specified interrupt number, set the mask pattern after logical OR with the current mask pattern and execute the interrupt process, and at the end of the interrupt process, An interrupt mask control program for causing a computer to function as a step of updating the current mask pattern by reflecting the extracted or generated mask pattern on the current mask pattern.
JP2002038240A 2002-02-15 2002-02-15 Interruption mask control method and interruption mask control program Withdrawn JP2003241979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002038240A JP2003241979A (en) 2002-02-15 2002-02-15 Interruption mask control method and interruption mask control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002038240A JP2003241979A (en) 2002-02-15 2002-02-15 Interruption mask control method and interruption mask control program

Publications (1)

Publication Number Publication Date
JP2003241979A true JP2003241979A (en) 2003-08-29

Family

ID=27779605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002038240A Withdrawn JP2003241979A (en) 2002-02-15 2002-02-15 Interruption mask control method and interruption mask control program

Country Status (1)

Country Link
JP (1) JP2003241979A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738768B1 (en) 2005-12-16 2010-06-15 The Directv Group, Inc. Method and apparatus for increasing the quality of service for digital video services for mobile reception
JP2013190929A (en) * 2012-03-13 2013-09-26 Denso Corp Microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738768B1 (en) 2005-12-16 2010-06-15 The Directv Group, Inc. Method and apparatus for increasing the quality of service for digital video services for mobile reception
JP2013190929A (en) * 2012-03-13 2013-09-26 Denso Corp Microcomputer

Similar Documents

Publication Publication Date Title
JP3600095B2 (en) Interrupt management device and interrupt management method
JPH1185503A (en) Virus exterminating method, information processor and computer readable record medium recording virus extermination program
WO2002088935A1 (en) System and method for efficiently performing a data transfer operation
CN109933451B (en) RISC-V architecture based exception and interrupt handling system and method
JP2005182752A (en) Data processor and method
JP4533713B2 (en) Information processing apparatus and data transfer control method
JP2003241979A (en) Interruption mask control method and interruption mask control program
JP2009134400A (en) Data processor, and method for protecting peripheral device in data processor
JP2003140946A (en) Storage device
JP2008140124A (en) Data processor
JP4057769B2 (en) Interrupt management device and interrupt management method
JPH1124936A (en) Fast restart system of information processor
JPH05100827A (en) Personal computer
JPH0973407A (en) Data management device
WO2022014444A1 (en) Robot control system
JP2001265750A (en) Memory controller
JP4535663B2 (en) State machine control method and state machine
WO2023144939A1 (en) Computer, control method, and control program
JP2007102399A (en) Data processor
JP2002366370A (en) Information processor
JP6481437B2 (en) Transaction processing apparatus, transaction processing method, and control program
JP3898663B2 (en) Operating system control method, program for causing computer to execute the method, and operating system control device
CN114579313A (en) Security domain fast establishing method for multi-security domain framework
JP2003296111A (en) Program generator
JP2000029728A (en) Interrupt exclusive processor/processing method and recording medium thereof

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: 20050510