JPH0534698B2 - - Google Patents

Info

Publication number
JPH0534698B2
JPH0534698B2 JP62252755A JP25275587A JPH0534698B2 JP H0534698 B2 JPH0534698 B2 JP H0534698B2 JP 62252755 A JP62252755 A JP 62252755A JP 25275587 A JP25275587 A JP 25275587A JP H0534698 B2 JPH0534698 B2 JP H0534698B2
Authority
JP
Japan
Prior art keywords
level
execution
execution level
exception
register
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.)
Expired - Lifetime
Application number
JP62252755A
Other languages
Japanese (ja)
Other versions
JPH0194444A (en
Inventor
Hitoshi Yamahata
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62252755A priority Critical patent/JPH0194444A/en
Publication of JPH0194444A publication Critical patent/JPH0194444A/en
Publication of JPH0534698B2 publication Critical patent/JPH0534698B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理システムにおける中央処理装
置に関し、特に複数の実行レベルを持つことによ
つてオペレーテイングシステムの管理のもとに複
数の処理プログラムの実行を行う情報処理システ
ムにおける中央処理装置内の例外検出装置に関す
る。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a central processing unit in an information processing system, and in particular has multiple execution levels to run multiple processing programs under the management of an operating system. The present invention relates to an exception detection device within a central processing unit in an information processing system that executes.

〔従来の技術〕[Conventional technology]

レベル0からレベルn−1までのn種の実行レ
ベルを持つ中央処理装置では、たとえば、レベル
0を特権レベルとしてオペレーテイングシステム
を割当て、レベルn−1でユーザーの処理プログ
ラムが実行される。実行レベルごとにスタツクポ
インタを持ち独自のスタツク領域を持つことによ
り、レベルn−1での処理プログラムでスタツク
領域が不足した場合も、レベル0のオペレーテイ
ングシステムの実行に支障がない。また、一般に
実行レベルが数的に小さい程特権性が強い。特権
性が強い程中央処理装置や周辺装置に対する操作
がより広範に行える。レベル0のオペレーテイン
グシステムでは中央処理装置や周辺装置に対する
すべての操作を許し、レベルn−1のユーザーの
処理プログラムではプログラム実行に最低限度の
操作しか許さない。ユーザーの処理プログラムに
許されていない操作についてはオペレーテイング
システムに依頼することによつて不用意な操作を
防いでいる。複数のユーザー処理プログラムを実
行する情報処理装置では、オペレーテイングシス
テムは複雑になり、さらに細い実行レベルの区分
が必要となる。たとえば、ユーザー処理プログラ
ムの実行、ユーザー処理プログラムの原始プログ
ラムを処理する言語処理系、ソートやマージなど
の汎用のオペレーテイングシステムサービスルー
チン、オペレーテイングシステムのフアイル管
理、複数のユーザー処理プログラムのスケジユー
リングを行うオペレーテイングシステムのスケジ
ユールなどのような階層にかれる。階層ごとに異
なる実行レベルを与えることにより特権性の強い
上位の階層は、下位の階層の影響を受けないよう
にでき、中央処理装置や周辺装置に対する操作も
細分化できる。ある実行レベルl1のプログラム
が上位の実行レベルl2のプログラムに対し処理
を依頼する場合には、実行レベル変更命令が使用
される。実行レベル変更命令は、呼び出し先レベ
ルl2の値と依頼する処理を指定するパラメタP
とをオペランドとして持つ。この実行レベル変更
命令が実行されると呼び出し先レベルl2に対応
するスタツク上に処理終了後のレベルl1へのプ
ログラムの戻り先と呼び出した側の実行レベルl
1と条件フラグなどの状態を示す情報と処理の種
類を示すパラメタPの値が積まれてレベルl2の
実行レベル変更命令処理プログラムが起動され
る。実行レベル変更命令処理プログラムは、スタ
ツク上のパラメタPに応じた処理を行う。
In a central processing unit having n types of execution levels from level 0 to level n-1, for example, an operating system is assigned with level 0 as a privilege level, and a user's processing program is executed at level n-1. Since each execution level has a stack pointer and its own stack area, even if the stack area is insufficient for a processing program at level n-1, there is no problem in executing the operating system at level 0. Additionally, in general, the smaller the execution level numerically, the stronger the privilege. The stronger the privilege, the more extensive operations can be performed on the central processing unit and peripheral devices. An operating system at level 0 allows all operations on the central processing unit and peripheral devices, and a user's processing program at level n-1 allows only the minimum amount of operations for program execution. Careless operations are prevented by requesting the operating system for operations that are not permitted by the user's processing program. In an information processing apparatus that executes a plurality of user processing programs, the operating system becomes complex, and even finer classification of execution levels is required. For example, execution of user processing programs, language processors that process the source programs of user processing programs, general-purpose operating system service routines such as sorting and merging, operating system file management, and scheduling of multiple user processing programs. It is organized into a hierarchy such as the schedule of the operating system that performs the operations. By giving different execution levels to each layer, the higher-privileged higher-level layers can be prevented from being influenced by the lower-level layers, and operations on the central processing unit and peripheral devices can also be subdivided. When a program at a certain execution level l1 requests processing to a program at a higher execution level l2, an execution level change instruction is used. The execution level change command has a parameter P that specifies the value of the called level l2 and the requested process.
has as an operand. When this execution level change instruction is executed, the program returns to level l1 after processing is completed and the execution level l of the caller is placed on the stack corresponding to level l2 of the call destination.
1, information indicating the state of condition flags, etc., and the value of parameter P indicating the type of processing are accumulated, and the execution level change command processing program of level 12 is activated. The execution level change command processing program performs processing according to the parameter P on the stack.

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

上述した従来の中央処理装置では多くの実行レ
ベルに対応して各実行レベルlxごとにレベルlxへ
の実行レベルの処理を依頼する変更命令の処理プ
ログラムを必要とする。すなわち、ある実行レベ
ルを使用しないような場合にもプログラム誤りに
よりそのレベルへの実行レベル変更命令が行われ
る可能性があるためである。そのため使用されな
い実行レベルについてもスタツク領域と処理プロ
グラムを必要とする欠点がある。また、ユーザー
の処理プログラムごとに使用可能な実行レベルを
制限するためには各実行レベルの実行レベル変更
命令処理プログラムがスタツク上の呼び出し側実
行レベルを調べた上で処理を要求したユーザーの
処理プログラムの要求が妥当かどうかをチエツク
する必要がある。このチエツクにより実行レベル
変更命令が妥当ではないと判定された場合には、
オペレーテイングシステムの例外処理プログラム
に分岐する。実行レベル変更命令処理プログラム
の先頭において毎回チエツクを行うために処理速
度の低下が大きいという欠点がある。
The above-mentioned conventional central processing unit requires a processing program for change instructions that corresponds to many execution levels and requests execution level processing to level lx for each execution level lx. That is, even if a certain execution level is not used, there is a possibility that an instruction to change the execution level to that level may be issued due to a program error. Therefore, it has the disadvantage that it requires a stack area and a processing program even for execution levels that are not used. In addition, in order to limit the execution levels that can be used for each user's processing program, the execution level change command of each execution level The processing program checks the caller's execution level on the stack, and then the processing program of the user that requested the process. It is necessary to check whether the request is reasonable. If this check determines that the execution level change command is invalid,
Branch to the operating system's exception handling program. This method has the disadvantage that the processing speed is greatly reduced because the check is performed every time at the beginning of the execution level change command processing program.

上述した従来の中央処理装置に対して、本発明
は、ユーザーの処理プログラムごとに使用可能な
実行レベルを示す許容実行レベルのデータを用意
し、あるユーザー処理プログラムの実行中は、レ
ジスタ上に許容実行レベルを保持することにより
実行レベル変更時にハードウエアで新らしい実行
レベルの妥当性をチエツクするという相違点を有
する。
In contrast to the above-mentioned conventional central processing unit, the present invention prepares permissible execution level data indicating usable execution levels for each user processing program. The difference is that by holding the execution level, when the execution level is changed, the validity of the new execution level is checked by hardware.

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

本発明の特徴は、レベル0からレベルn−1
(nは整数)までのn種の実行レベルをもち、前
記レベル0をオペレーテイングシステムに、前記
レベルn−1をユーザ処理プログラムにそれぞれ
割当て、例外通知が発生すると前記オペレーテイ
ングシステムの管理下で前記例外の種類に応じた
例外処理プログラムを起動する情報処理システム
の実行レベル例外の検出装置において、実行レベ
ル変更命令により設定された前記ユーザ処理プロ
グラムの前記実行レベルを保持する実行レベルレ
ジスタと、この実行レベルレジスタが前記例外通
知により前記レベル0に設定されたとき、前記ユ
ーザ処理プログラムごとに用意された使用可能な
前記n種の許容実行レベルが設定され、この許容
実行レベルを保持する許容実行レベルレジスタ
と、前記実行レベルの変更時に、前記許容実行レ
ベルレジスタに保持された前記許容実行レベルの
ビツト位置を示す値と前記実行レベルレジスタに
保持された前記実行レベルの値とをそれぞれ入力
とするn個の論理積の論理和からなる組み合わせ
回路を含む実行レベル判定回路とを有し、前記組
合せ回路の一致信号により前記例外通知を発生す
ることにある。
The feature of the present invention is that from level 0 to level n-1
(where n is an integer), the level 0 is assigned to the operating system and the level n-1 is assigned to the user processing program, and when an exception notification occurs, the execution level is executed under the control of the operating system. In an execution level exception detection device for an information processing system that starts an exception handling program according to the type of exception, an execution level register that holds the execution level of the user processing program set by an execution level change instruction; When the execution level register is set to the level 0 by the exception notification, the n types of usable permissible execution levels prepared for each user processing program are set, and the permissible execution level that maintains this permissible execution level is set. a register, and when the execution level is changed, a value indicating the bit position of the permissible execution level held in the permissible execution level register and a value of the execution level held in the execution level register are input, respectively. and an execution level determination circuit including a combinational circuit formed by a logical sum of ANDs, and generates the exception notification based on a match signal of the combinational circuit.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。
以後の説明ではレベル0から3までの4種の実行
レベルを持つ場合について述べる。
Next, the present invention will be explained with reference to the drawings.
In the following explanation, a case will be described in which there are four execution levels from level 0 to level 3.

第1図は本発明の実行レベル例外の検出装置を
用いた中央処理装置の一実施例を示すブロツク図
である。1は主記憶制御回路、2は命令デコー
ダ、3はレジスタ群、4は演算回路、5は制御回
路、6は実行レベルを保持するレジスタ、7は許
容実行レベルレジスタ、8は実行レベル判定回
路、101は実行レベル例外通知信号、102は
リセツトや割込みなどの例外通知信号、50は本
発明の実行レベル例外の検出装置である。
FIG. 1 is a block diagram showing an embodiment of a central processing unit using the execution level exception detection device of the present invention. 1 is a main memory control circuit, 2 is an instruction decoder, 3 is a register group, 4 is an arithmetic circuit, 5 is a control circuit, 6 is a register that holds an execution level, 7 is a permissible execution level register, 8 is an execution level determination circuit, 101 is an execution level exception notification signal, 102 is an exception notification signal such as reset or interrupt, and 50 is an execution level exception detection device of the present invention.

主記憶制御回路1は、制御回路5の要求を受け
て命令の読み込みやデータの読み書きを行う。命
令デコーダ102は、命令をデコードし、制御回
路5にデコード済命令情報を渡す。制御回路5
は、命令デコーダ2からの情報をもとに汎用レジ
スタ3、演算回路4、主記憶制御回路1を制御し
て命令の実行を行うほかに、実行レベル例外通知
信号101や、例外通知信号102によつて例外
発生が通知されると実行レベルレジスタ6をレベ
ル0にして例外の種類に応じた例外処理プログラ
ムを起動する。許容実行レベルレジスタ7は、レ
ベル0のときのみで設定可能なレジスタであり、
設定命令の実行による設定の他にユーザーの処理
プログラムをオペレーテイングシステムが切り替
える際に汎用レジスタ等と共に新らたなユーザー
処理プログラムでの値が設定される。
The main memory control circuit 1 reads instructions and reads and writes data in response to requests from the control circuit 5. The instruction decoder 102 decodes the instruction and passes decoded instruction information to the control circuit 5. Control circuit 5
In addition to executing instructions by controlling the general-purpose register 3, arithmetic circuit 4, and main memory control circuit 1 based on information from the instruction decoder 2, the controller also controls the execution level exception notification signal 101 and the exception notification signal 102. Therefore, when the occurrence of an exception is notified, the execution level register 6 is set to level 0 and an exception handling program corresponding to the type of exception is activated. The permissible execution level register 7 is a register that can be set only at level 0,
In addition to setting by executing a setting command, when the operating system switches the user processing program, the values in the new user processing program are set together with general-purpose registers and the like.

本実施例における実行レベル変更命令の実行で
は、まず、新らしい実行レベルが実行レベルレジ
スタ6に設定され、戻り先のプログラムカウンタ
値と旧実行レベル等が新らしい実行レベルに対応
するスタツクに積まれて新らしいレベルに対応す
る実行レベル変更命令処理プログラムが起動され
る。この実行過程のうち新らしい実行レベルが実
行レベルレジスタ6に設定されるとき、実行レベ
ル判定回路8によつて実行レベル103に対応し
た許容実行レベルレジスタ7のビツト位置(10
4)がチエツクされ、対応するビツトの値が0の
ときには、実行レベル例外通知信号101が
“1”となり、制御回路5に例外発生を通知する。
すなわち、許容実行レベルレジスタ7のビツトの
値が“1”であるビツト位置に対応する実行レベ
ルのみがユーザー処理プログラムに許された実行
レベルである。例えば、本実施例で許容実行レベ
ルレジスタのビツト位置3、1、0のビツトの値
が“1”、ビツト位置2のビツト値が“0”場合
は、許される実行レベルは3、1、0となる。
In the execution of the execution level change instruction in this embodiment, first, a new execution level is set in the execution level register 6, and the return destination program counter value, old execution level, etc. are stacked on the stack corresponding to the new execution level. The execution level change command processing program corresponding to the new level is activated. When a new execution level is set in the execution level register 6 during this execution process, the execution level determination circuit 8 sets the bit position (10
4) is checked and the value of the corresponding bit is 0, the execution level exception notification signal 101 becomes "1" and the control circuit 5 is notified of the occurrence of the exception.
That is, only the execution level corresponding to the bit position where the value of the bit in the permissible execution level register 7 is "1" is the execution level permitted for the user processing program. For example, in this embodiment, if the bit values at bit positions 3, 1, and 0 of the permissible execution level register are "1" and the bit value at bit position 2 is "0", the permissible execution levels are 3, 1, and 0. becomes.

第2図は実行レベル判定回路8を詳細に示した
ブロツク図である。81はデコーダであり、実行
レベル103に対応した出力L0〜L3のうちのひ
とつの出力が“1”となる。第3図は、デコーダ
81の真理値表を示す。82から85はNAND
ゲートであり、実行レベル103に対応する許容
レベル104のビツト値が“0”の時には出力が
“1”となる。実行レベル103に対応しない
NANDゲートは、デコーダ81の出力が“0”
であるため“1”を出力する。すなわち、実行レ
ベル103に対応する許容レベル104のビツト
値が“0”のとき82から85のすべての
NANDゲートの出力“1”となる。その時に
ANDゲート86の出力が“1”となり、実行レ
ベル例外通知信号101として制御回路5に例外
発生が通知される。
FIG. 2 is a block diagram showing the execution level determination circuit 8 in detail. 81 is a decoder, and one of the outputs L0 to L3 corresponding to the execution level 103 becomes "1". FIG. 3 shows the truth table of the decoder 81. 82 to 85 are NAND
It is a gate, and when the bit value of the tolerance level 104 corresponding to the execution level 103 is "0", the output becomes "1". Does not support execution level 103
In the NAND gate, the output of the decoder 81 is “0”
Therefore, “1” is output. In other words, when the bit value of the tolerance level 104 corresponding to the execution level 103 is "0", all of 82 to 85 are
The output of the NAND gate becomes “1”. At that moment
The output of the AND gate 86 becomes "1", and the occurrence of the exception is notified to the control circuit 5 as the execution level exception notification signal 101.

本実施例では許容実行レベルレジスタ7に専用
のレジスタを割り当てているが、ユーザー処理プ
ログラムに対応して切替られる他のレジスタの一
部フイールドを許容実行レベルを保持するために
使用することもできる。
In this embodiment, a dedicated register is assigned to the permissible execution level register 7, but some fields of other registers that are switched in accordance with the user processing program may also be used to hold the permissible execution level.

第4図は本発明の第2の実施例を示すブロツク
図であり、第1の実施例と同じ中央署装置におい
て、本発明による実行レベル判定回路をプログラ
ムデバグ回路として使用したものである。103
は実行レベル、7−1はリード許容実行レベルレ
ジスタ、7−2はライト許容実行レベルレジス
タ、8−1,8−2は第2図と同じ実行レベル判
定回路、105は主記憶装置へのデータ・リード
アクセス信号、106は同じくライトアクセス信
号、101は第1実施例と同様に中央処理装置の
制御回路5への例外通知信号である。87,88
はANDゲート、89はORゲートである。
FIG. 4 is a block diagram showing a second embodiment of the present invention, in which the execution level determination circuit according to the present invention is used as a program debug circuit in the same central office equipment as the first embodiment. 103
is an execution level, 7-1 is a read permissible execution level register, 7-2 is a write permissible execution level register, 8-1 and 8-2 are the same execution level judgment circuits as in FIG. 2, and 105 is the data to the main memory.・Read access signal 106 is also a write access signal, and 101 is an exception notification signal to the control circuit 5 of the central processing unit as in the first embodiment. 87, 88
is an AND gate, and 89 is an OR gate.

第4図のプログラムデバグ回路の動きは第1図
に示した実行レベル例外の通知と同様であるが第
1図の回路では実行レベル例外の発生が実行レベ
ルの変更により直ちに起こるのに対して、実行レ
ベル変更後に新実行レベルに対応するリード/ラ
イト許容実行レベルレジスタ7−1,7−2の対
応するビツトが“0”のときにデータリード/ラ
イトが発生した時点で例外通知信号101が
“1”となる。例えば、実行レベル103がレベ
ル2でありリード許容実行レベルレジスタ7−1
のビツト位置2のビツト値が“0”のとき実行レ
ベル判定回路8−1の出力は“1”となる。この
時、プログラムがオペランドリードを行うと、オ
ペランドリードアクセス信号105が“1”とな
り、ANDゲート87の出力が“1”となり、OR
ゲート89の出力が“1”となる。例外通知信号
101により制御回路5への例外発生が通知され
ると制御回路5はプログラムデバグを行う例外処
理プログラムを起動する。
The operation of the program debug circuit shown in FIG. 4 is similar to the execution level exception notification shown in FIG. 1, but in contrast to the circuit shown in FIG. After changing the execution level, when the corresponding bits of the read/write permissible execution level registers 7-1 and 7-2 corresponding to the new execution level are "0" and a data read/write occurs, the exception notification signal 101 becomes "0". 1”. For example, if the execution level 103 is level 2, the read permission execution level register 7-1
When the bit value at bit position 2 is "0", the output of the execution level determination circuit 8-1 becomes "1". At this time, when the program performs an operand read, the operand read access signal 105 becomes "1", the output of the AND gate 87 becomes "1", and the OR
The output of gate 89 becomes "1". When the control circuit 5 is notified of the occurrence of an exception by the exception notification signal 101, the control circuit 5 starts an exception handling program for program debugging.

従来の情報処理装置ではあらかじめデバグ対象
アドレスを設定しておき、中央処理装置の出力す
るアドレスが設定値と一致したときにデバク用の
例外を発生する方式が用いられている。またこの
従来の方式においてデバグ対象のアドレスの設定
の他にデバグ対象のアクセスの種類(リード、ラ
イトなど)を設定することによりアドレスとアク
セスの種類が一致した時にデバグ用の例外を発生
させる方式も用いられている。第4図に示した第
2の実施例において105,106のオペランド
リード/ライト信号の代わりに従来方式のアドレ
スとアクセスの一致検出信号を用いることにより
従来方式に加えて特定実行レベルでのアクセスを
検出することができる。この場合にもリード/ラ
イト許容実行レベルレジスタ7−1,7−2の値
をすべての“0”とすることにより実行レベル判
定回路8−1,8−2の出力は“1”となるため
従来方式のデバグ例外としても使用できる。
Conventional information processing devices use a method in which an address to be debugged is set in advance, and an exception for debugging is generated when the address output from the central processing unit matches the set value. Additionally, in this conventional method, in addition to setting the address to be debugged, there is also a method in which the type of access to be debugged (read, write, etc.) is set, and a debugging exception is generated when the address and access type match. It is used. In the second embodiment shown in FIG. 4, by using the address and access coincidence detection signal of the conventional method instead of the operand read/write signals 105 and 106, access at a specific execution level can be performed in addition to the conventional method. can be detected. In this case as well, by setting the values of the read/write permissible execution level registers 7-1 and 7-2 to all “0”, the output of the execution level judgment circuits 8-1 and 8-2 becomes “1”. It can also be used as a conventional debug exception.

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

以上説明したように本発明を用いた中央処理装
置では、様々な利用に応じた様々なユーザ処理プ
ログラムに対応するために多数の実行レベルをも
つ構造になつており、中央処理装置全体の動作
は、最も高い優先順位で動作するオペレーテイン
グシステムの管理のもとで、ユーザ処理プログラ
ムごとに必要な実行レベルを複数使用しながら処
理を進める。これらの各ユーザ処理プログラムの
実行開始時において、オペレーテイングシステム
が本発明の許容実行レベルレジスタに対して、ユ
ーザ処理プログラムが正常動作時にとりうる実行
レベルのみ実行を許可するように実行レベルを設
定する。また、ユーザ処理プログラムの誤動作に
より、不正な実行レベルへの実行レベル変更が発
生すると、本発明の実行レベル例外の検出装置は
直接、高速にオペレーテイングシステムに対して
例外を通知できる。
As explained above, the central processing unit using the present invention has a structure with many execution levels in order to support various user processing programs depending on various uses, and the overall operation of the central processing unit is Under the control of the operating system that operates with the highest priority, processing proceeds while using multiple execution levels as required for each user processing program. At the start of execution of each of these user processing programs, the operating system sets an execution level in the permissible execution level register of the present invention so that execution is permitted only at the execution level that the user processing program can take during normal operation. . Further, when an execution level change to an incorrect execution level occurs due to a malfunction of a user processing program, the execution level exception detection device of the present invention can directly notify the operating system of the exception at high speed.

従つて、このように本発明を用いれば、きめ細
かく許容実行レベルを指定できるとともに、簡単
なハードウエアで、高速に不正実行レベルを検出
できるので、通常の正常動作時における実行レベ
ルの例外チエツクのオーバーヘツドの削減と、実
行レベル例外に関するデバツク効果を向上させる
効果がある。
Therefore, by using the present invention, it is possible to specify permissible execution levels in detail, and to detect unauthorized execution levels at high speed with simple hardware. This has the effect of reducing the head count and improving the debugging effect regarding execution level exceptions.

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

第1図は本発明の実行レベル例外の検出装置の
第1の実施例を用いた中央処理装置のブロツク
図、第2図は第1図に示す実行レベル判定回路8
の構成例を示す図、第3図は第2図に示す実行レ
ベル判定回路のデコーダ81の真理値表を示す
図、第4図は本発明の第2の実施例を示すブロツ
ク図である。 1は主記憶制御回路、2は命令デコーダ、3は
レジスタ群、4は演算回路、5は制御回路、6は
実行レベルレジスタ、7,7−1,7−2は許容
レベルレジスタ、8,8−1,8−2は実行レベ
ル判定回路。
FIG. 1 is a block diagram of a central processing unit using the first embodiment of the execution level exception detection device of the present invention, and FIG. 2 is a block diagram of the execution level determination circuit 8 shown in FIG.
3 is a diagram showing a truth table of the decoder 81 of the execution level determination circuit shown in FIG. 2, and FIG. 4 is a block diagram showing a second embodiment of the present invention. 1 is a main memory control circuit, 2 is an instruction decoder, 3 is a register group, 4 is an arithmetic circuit, 5 is a control circuit, 6 is an execution level register, 7, 7-1, 7-2 are tolerance level registers, 8, 8 -1 and 8-2 are execution level determination circuits.

Claims (1)

【特許請求の範囲】[Claims] 1 レベル0からレベルn−1(nは整数)まで
のn種の実行レベルをもち、前記レベル0をオペ
レーテイングシステムに、前記レベルn−1をユ
ーザ処理プログラムにそれぞれ割当て、例外通知
が発生すると前記オペレーテイングシステムの管
理下で前記例外の種類に応じた例外処理プログラ
ムを起動する情報処理システムの実行レベル例外
の検出装置において、実行レベル変更命令により
設定された前記ユーザ処理プログラムの前記実行
レベルを保持する実行レベルレジスタと、この実
行レベルレジスタが前記例外通知により前記レベ
ル0に設定されたとき、前記ユーザ処理プログラ
ムごとに用意された使用可能な前記n種の許容実
行レベルが設定され、この許容実行レベルを保持
する許容実行レベルレジスタと、前記実行レベル
の変更時に、前記許容実行レベルレジスタに保持
された前記許容実行レベルのビツト位置を示す値
と前記実行レベルレジスタに保持された前記実行
レベルの値とをそれぞれ入力とするn個の論理積
の論理和からなる組み合せ回路を含む実行レベル
判定回路とを有し、前記組合せ回路の一致信号に
より前記例外通知を発生することを特徴とする実
行レベル例外の検出装置。
1 It has n types of execution levels from level 0 to level n-1 (n is an integer), and the level 0 is assigned to the operating system and the level n-1 is assigned to the user processing program, and when an exception notification occurs, In an execution level exception detection device for an information processing system that starts an exception handling program according to the type of exception under the management of the operating system, the execution level of the user processing program set by the execution level change instruction is When the execution level register to be held and this execution level register are set to the level 0 by the exception notification, the n types of usable allowable execution levels prepared for each user processing program are set, and this allowable execution level is set. a permissible execution level register that holds an execution level; a value indicating the bit position of the permissible execution level held in the permissible execution level register when the execution level is changed; and a value indicating the bit position of the permissible execution level held in the execution level register; and an execution level determination circuit including a combinational circuit formed by a logical sum of n logical products each inputting a value, and generating the exception notification based on a match signal of the combinational circuit. Exception detection device.
JP62252755A 1987-10-06 1987-10-06 Detector for execution level exception Granted JPH0194444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62252755A JPH0194444A (en) 1987-10-06 1987-10-06 Detector for execution level exception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62252755A JPH0194444A (en) 1987-10-06 1987-10-06 Detector for execution level exception

Publications (2)

Publication Number Publication Date
JPH0194444A JPH0194444A (en) 1989-04-13
JPH0534698B2 true JPH0534698B2 (en) 1993-05-24

Family

ID=17241836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62252755A Granted JPH0194444A (en) 1987-10-06 1987-10-06 Detector for execution level exception

Country Status (1)

Country Link
JP (1) JPH0194444A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5040909U (en) * 1973-08-13 1975-04-25
JPS533137A (en) * 1976-06-30 1978-01-12 Toshiba Corp Interruption control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5040909U (en) * 1973-08-13 1975-04-25
JPS533137A (en) * 1976-06-30 1978-01-12 Toshiba Corp Interruption control system

Also Published As

Publication number Publication date
JPH0194444A (en) 1989-04-13

Similar Documents

Publication Publication Date Title
CA1305799C (en) Logical resource partitioning of a data processing system
US4074353A (en) Trap mechanism for a data processing system
JPH0430053B2 (en)
JPH0114611B2 (en)
US4383297A (en) Data processing system including internal register addressing arrangements
JPS62166434A (en) Operation of multi-programing data processing system
JPH0534698B2 (en)
EP0297892B1 (en) Apparatus and method for control of asynchronous program interrupt events in a data processing system
JPH0192843A (en) Data processing apparatus and method
JPH059815B2 (en)
WO1990005951A1 (en) Method of handling unintended software interrupt exceptions
JPH0283749A (en) Internal interruption control system for microprocessor
JPH044630B2 (en)
JPS6352241A (en) Microprocessor
JP2023151592A (en) Information processor and operation control method for information processor
JPH0258648B2 (en)
JP2591211B2 (en) High-speed interrupt processing device
JPH059814B2 (en)
JPH04364545A (en) Memory dumping system
JPH0432418B2 (en)
JPS63155330A (en) Microprogram controller
JPH0217541A (en) Stack system micro-computer
JPH0391055A (en) Method for setting hardware lock, hardware lock controller, method and device for detecting hardware lock
JP2002091826A (en) Information processor
JPH04270441A (en) Data processor