JPH01191938A - Information processor - Google Patents

Information processor

Info

Publication number
JPH01191938A
JPH01191938A JP1790688A JP1790688A JPH01191938A JP H01191938 A JPH01191938 A JP H01191938A JP 1790688 A JP1790688 A JP 1790688A JP 1790688 A JP1790688 A JP 1790688A JP H01191938 A JPH01191938 A JP H01191938A
Authority
JP
Japan
Prior art keywords
interrupt
program
input
contents
status display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1790688A
Other languages
Japanese (ja)
Inventor
Shigezo Mikoyama
三箇山 茂三
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
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1790688A priority Critical patent/JPH01191938A/en
Publication of JPH01191938A publication Critical patent/JPH01191938A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the input/output interruption processing at a high speed by loading the using data in advance to a register for input/output interruption processing programs in a program non-executing state. CONSTITUTION:When a CPU 2 is not executing any program, this fact is designated to a program state display word PSW 21 and an idle state is set. Then it is checked whether an interruption is produced or not. If not, the data is loaded to a register for input/output interruption programs. When this data loading action is through, a load end flag is turned on to check again whether an interruption is produced or not. If so, it is checked whether the load end flag is turned on or not. If so, the contents of the PSW 21 are saved when an interruption is produced. Then the contents showing the PSW of the input/ output interruption are loaded to the PSW 21 and the execution is started for an input/output interruption program.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は情報処理装置に関する。[Detailed description of the invention] (Industrial application field) The present invention relates to an information processing device.

(従来の技術) 従来の情報処理装置では、割込みが発生した後、プロ、
ダラム状況表示語の切換えおよびレジスタへのデータの
ロードが行なわれていた。
(Prior art) In a conventional information processing device, after an interrupt occurs, the
Durham status words were being switched and data was being loaded into registers.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の情報処理装置は、割込み発生後にレジス
タへのデータのロードが行なわれるので、割込み処理に
長時間を要するという欠点がある。
The above-described conventional information processing apparatus has a disadvantage in that it takes a long time to process the interrupt because data is loaded into the register after the interrupt occurs.

〔課題を解決するための手段〕 本発明の情報処理装置は、 主記憶装置が、入出力割込みを含む割込みの何れかが発
生した時、中央処理装置が、発生した割込み処理以外の
プログラムを実行中の場合、その時の中央処理装置の実
行状況を示すプログラム状況表示語および実行中のプロ
グラムで使用しているレジスタの内容がセーブされる、
割込み処理毎の第1の記憶領域と、プログラム状況表示
語および前記割込み処理の実行の際に使用するレジスタ
の内容を記憶している、割込み処理毎の第2の記憶領域
とを備え、 前記中央処理装置が、実行すべきプログラムで使用する
レジスタ群と、プログラム実行中であるか否かを示すと
ともに実行中であれば当該プログラムの実行中の命令の
アドレス等の情報を含む当該中央処理装置の実行状況を
表示するプログラム状況表示語とを備え、プログラム実
行状態の時割込みが発生すると、該割込みに対応する第
1の記憶領域にその時のプログラム状況表示語と実行中
のプログラムのレジスタの内容をセーブするとともに、
同様に対応する第2の記憶領域からプログラム状況表示
語と使用するレジスタの内容をそれぞれ前記プログラム
状況表示語とレジスタ群へロードして発生した割込みを
実行し、プログラム非実行状態で何れの割込みも発生し
ない時は、入出力割込みに対応する第2の記憶領域から
レジスタの内容をレジスタ群へロードして待機し、その
後、割込みが発生した際に該割込みが入出力割込みであ
るか否か判断し、人出力部込みであれば、その時のプロ
グラム状況表示語の内容を入出力割込みに対応する第1
の記憶領域にセーブするとともに、同様に対応する第2
の記憶領域からプログラム状況表示語の内容を前記プロ
グラム状況表示語ヘロードして入出力割込みを実行し、
入出力割込み以外の割込みであれば、その時のプログラ
ム状況表示語の内容を当該割込みに対応する第1の記憶
領域にセーブするとともに、同様に対応する第2の記憶
領域からプログラム状況表示語と使用するレジスタの内
容をそれぞれ前記プログラム状況表示語とレジスタ群へ
ロードして発生した割込みを実行するものである。
[Means for Solving the Problems] The information processing device of the present invention is such that when the main storage device generates any of the interrupts including an input/output interrupt, the central processing unit executes a program other than the generated interrupt processing. If it is, the program status display word indicating the execution status of the central processing unit at that time and the contents of the registers used by the program being executed are saved.
a first storage area for each interrupt process; and a second storage area for each interrupt process that stores a program status display word and the contents of a register used when executing the interrupt process; Information about the central processing unit, including registers used by the program to be executed by the processing unit, and information such as the address of the instruction being executed in the program, indicating whether or not the program is being executed. When an interrupt occurs during program execution, the program status display word at that time and the register contents of the program being executed are stored in the first storage area corresponding to the interrupt. Along with saving,
Similarly, the program status display word and the contents of the registers to be used are loaded from the corresponding second storage area to the program status display word and the register group, respectively, and the generated interrupt is executed, and any interrupt is executed in the program non-execution state. If no interrupt occurs, load the contents of the register from the second storage area corresponding to the input/output interrupt into the register group, wait, and then, when an interrupt occurs, determine whether the interrupt is an input/output interrupt or not. However, if the human output section is included, the contents of the program status display word at that time are displayed as the first input/output interrupt corresponding to the input/output interrupt.
, and also save the corresponding second storage area in the same way.
Loading the contents of the program status display word from the storage area of the program status display word into the program status display word and executing an input/output interrupt;
If the interrupt is other than an input/output interrupt, the contents of the program status display word at that time are saved in the first storage area corresponding to the interrupt, and similarly used as the program status display word from the corresponding second storage area. The contents of the registers are loaded into the program status display word and the register group, respectively, and the generated interrupt is executed.

〔作用〕[Effect]

中央処理装置のプログラム非実行状態の時に、人出力部
込みプログラムのレジスタへのデータのロードを先行し
て行なっているので、入出力割込みが発生した時点での
データのロードが不要となり直ちに処理することができ
る。
When the central processing unit is not executing the program, the data is loaded into the register of the human output section program in advance, so there is no need to load data when an input/output interrupt occurs, and it is processed immediately. be able to.

(実施例) 次に、本発明の実施例について図面を参照して説明する
(Example) Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の情報処理装置の一実施例を示すブロッ
ク図、第2図は第1図の中央処理装置2がプログラム非
実行状態時での動作を示すフローチャート、第3図は第
1図の主記憶装置4の記憶領域の一例を示す図である。
FIG. 1 is a block diagram showing an embodiment of the information processing apparatus of the present invention, FIG. 2 is a flowchart showing the operation of the central processing unit 2 of FIG. 1 when the program is not executed, and FIG. It is a diagram showing an example of a storage area of the main storage device 4 in the figure.

この情報処理装置は、中央処理装置2と主記憶装置4と
を有する中央処理サブシステム1と、入出力サブシステ
ム3とで構成されている。入出力サブシステム3は情報
の人出力部である。主記憶装置4は、入出力割込みを含
む割込み処理の何れかが発生した時、中央処理装置2が
、発生した割込み処理以外のプログラムを実行中の場合
、その時の中央処理装置2の実行状況、すなわちプログ
ラム実行中であるか否かを示すとともに実行中であれば
当該プログラムの実行中の命令のアドレス等の情報を示
すプログラム状況表示語21(以下PSWと略す)の内
容がセーブされるPSWセーブ領域33と実行中のプロ
グラムで使用しているレジスタの内容がセーブされるレ
ジスタセーブ領域34と自割込み処理に関するPSWを
示す内容を記憶しているPSWロード領域31と割込み
処理の実行の際に使用するレジスタの内容を記憶してい
るレジスタセ−ブ領域32とを、それぞれ存在し得る割
込み処理毎に備えている。中央処理装置では、実行すべ
きプログラムで使用する不図示のレジスタ群とPSWロ
ード領域31の内容をロードするPSW21を備えてお
り、プログラム実行状態の時、割込みが発生すると、発
生した割込みに対応するPSWセーブ領域33にPSW
21の内容を、また、レジスタセーブ領域34に実行中
のプログラムのレジスタの内容をそれぞれセーブすると
ともに、同様に対応するPSWロード領域31からPS
Wを示す内容をPSW21へ、また、レジスタロード領
域32から使用するレジスタの内容をレジスタ群へ、そ
れぞれロードして発生した割込みを処理し、プログラム
非実行状態で、何れの割込みも発生しない時は、入出力
割込みに対応するレジスタロード領域32から使用する
レジスタの内容をレジスタ群へロードして待機し、その
後、割込みが発生した際に、その割込みが人出内部込み
であるか否か判断し、入出力割込みであれば、その時の
PSW21の内容を人出内部込みに対応するPSWセー
ブ領域33にセーブするとともに、同様に対応するPS
Wロード領域31からPSWを示す内容をPSW21に
ロードして入出力割込みを処理し、入出力割込み以外の
割込みであれば、その時のPSW21の内容を発生した
割込みに対応するPSWセーブ領域33にセーブすると
ともに、同様に対応するPSWロード領域31からPS
Wを示す内容をPSW21へ、また、レジスタロード領
域32からレジスタの内容をレジスタ群へ、それぞれロ
ードして発生した割込みを処理する。
This information processing device includes a central processing subsystem 1 having a central processing unit 2 and a main storage device 4, and an input/output subsystem 3. The input/output subsystem 3 is the human output section of information. When any interrupt processing including an input/output interrupt occurs and the central processing unit 2 is executing a program other than the generated interrupt processing, the main storage device 4 stores the execution status of the central processing unit 2 at that time; In other words, the PSW save saves the contents of the program status display word 21 (hereinafter abbreviated as PSW), which indicates whether or not a program is being executed, and if it is running, indicates information such as the address of the instruction being executed in the program. An area 33, a register save area 34 where the contents of registers used in the program being executed are saved, and a PSW load area 31 which stores the contents indicating the PSW related to self-interrupt processing, and a PSW load area 31 used when executing interrupt processing. A register save area 32 storing the contents of registers to be processed is provided for each possible interrupt process. The central processing unit includes a group of registers (not shown) used in the program to be executed and a PSW 21 that loads the contents of the PSW load area 31, and when an interrupt occurs while the program is being executed, it responds to the generated interrupt. PSW in PSW save area 33
21 and the contents of the registers of the program being executed in the register save area 34, and similarly save the contents of the PSW from the corresponding PSW load area 31.
Load the contents indicating W to the PSW 21, and load the contents of the registers to be used from the register load area 32 to the register group, process the generated interrupts, and when the program is not running and no interrupts occur, , loads the contents of the register to be used from the register load area 32 corresponding to the input/output interrupt into the register group, waits, and then, when an interrupt occurs, determines whether or not the interrupt is an internal interrupt. , if it is an input/output interrupt, the contents of the PSW 21 at that time are saved in the PSW save area 33 corresponding to the in-output interrupt, and the corresponding PS is saved in the same way.
The contents indicating the PSW are loaded from the W load area 31 to the PSW 21 to process the input/output interrupt, and if the interrupt is other than the input/output interrupt, the contents of the PSW 21 at that time are saved in the PSW save area 33 corresponding to the interrupt that occurred. At the same time, similarly, the PS
The contents indicating W are loaded to the PSW 21, and the contents of the register from the register load area 32 are loaded to the register group, respectively, and the generated interrupt is processed.

次に、本実施例の動作について第2図を参照して説明す
る。
Next, the operation of this embodiment will be explained with reference to FIG.

通常、中央処理装置2は主記憶装置4からプログラムを
読出して実行している。その時、割込みが発生すると、
その割込みに対応するPSWセーブ領域33にその時の
PSW21の内容を、また、レジスタセーブ領域34に
実行中のプログラムで使用しているレジスタのデータを
それぞれセーブするとともに、自割込みのPSWロード
領域3IからPSWを示す内容をPSW21ヘロードし
、また、自割込みのレジスタロード領域32から使用す
るレジスタのデータをロードして割込み処理を実行する
。処理が終了すると、セーブしたPSWの内容およびレ
ジスタのデータを再びロードすることにより、実行中で
あったプログラムの処理を再開できる。
Normally, the central processing unit 2 reads a program from the main storage device 4 and executes it. At that time, when an interrupt occurs,
The contents of the PSW 21 at that time are saved in the PSW save area 33 corresponding to the interrupt, and the data of the registers used by the program being executed are saved in the register save area 34, and from the PSW load area 3I of the own interrupt. The contents indicating the PSW are loaded into the PSW 21, and the data of the register to be used is loaded from the self-interrupt register load area 32 to execute interrupt processing. When the processing is completed, the saved contents of the PSW and the register data are loaded again, so that the processing of the program being executed can be resumed.

また、中央処理装置2がプログラムを実行していない場
合は、PSW21にその旨が指定されて、第2図に示す
ように、アイドル状態に移ることになる。つづいて、入
出力割込みプログラムのレジスタへのデータのロードが
完了したか否かを示すロード完了フラグをオフにしくス
テップIO)、割込みが発生したか否かを調べる(ステ
ップI+)。
Furthermore, if the central processing unit 2 is not executing a program, that fact is specified to the PSW 21, and the central processing unit 2 shifts to an idle state as shown in FIG. Subsequently, the load completion flag indicating whether loading of data to the register of the input/output interrupt program has been completed is turned off (step IO), and it is checked whether an interrupt has occurred (step I+).

発生していなければ、ロード完了フラグがオフとなって
いるカ調べ(ステップ12)、ここではオフになってい
るので、つづいて、人出内部込みプログラムのレジスタ
へデータをロードする(ステップ13)、データのロー
ドが完了すると、ロード完了フラグをオンにして(ステ
ップ14)、再び割込みが発生したか否か調べる。割込
みが発生すると、ロード完了フラグがオンかどうかを調
べて(ステップ15)、オンでなければ入出力割込プロ
グラム以外の所定の割込みを処理し、オンであれば、割
込みが発生したときのPSW21の内容をセーブする(
ステップ16)。その後、入出力割込みのPSWを示す
内容がPSW21ヘロードされて(ステップ17)入出
力割込みプログラムの実行を始めることになる。
If it has not occurred, check whether the load completion flag is off (step 12). Since it is off here, the data is subsequently loaded into the register of the internal internal program (step 13). When the data loading is completed, the load completion flag is turned on (step 14), and it is checked whether an interrupt has occurred again. When an interrupt occurs, it is checked whether the load completion flag is on (step 15), and if it is not on, a predetermined interrupt other than the input/output interrupt program is processed, and if it is on, the PSW 21 when the interrupt occurs is processed. Save the contents of (
Step 16). Thereafter, the contents indicating the PSW of the input/output interrupt are loaded into the PSW 21 (step 17), and the execution of the input/output interrupt program is started.

(発明の効果〕 以上説明したように本発明は、割込みが発生する場合、
入出力割込みであることが多いため、中央処理装置がプ
ログラム非実行状態であるとき入出力割込み処理プログ
ラムのレジスタへ使用するデータのロードを先行して行
なうことにより、人出内部込みが実際に発生した時点で
のレジスタへのデータのロードを不要とし、入出力割込
み処理を高速化できるという効果がある。
(Effects of the Invention) As explained above, the present invention provides
Since these are often input/output interrupts, by loading the data to be used into the registers of the input/output interrupt handling program in advance when the central processing unit is in a program non-execution state, internal interrupts actually occur. This has the effect of making it unnecessary to load data into the register at the moment the input/output interrupt processing is performed, thereby speeding up input/output interrupt processing.

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

第1図は本発明の情報処理装置の一実施例を示すブロッ
ク図、第2図は第1図の中央処理装置2がプログラム非
実行状態の時の動作を示すフローチャート、第3図は第
1図の主記憶装置4の記憶゛領域の一例を示す図である
。 l・・・・・・・・中央処理サブシステム、2・・・・
・・・・中央処理装置、 3・・・・・・・・人出力サブシステム、4・・・・・
・・・主記憶装置、 ■O〜I7・・・・ステップ、 21・・・・・・・・psw。 31・・・・・・・・PSWロード領域、32・・・・
・・・・レジスタロード領域、33・・・・・・・・P
SWセーブ領域、34・・・・・・・・レジスタセーブ
領域。
FIG. 1 is a block diagram showing an embodiment of the information processing apparatus of the present invention, FIG. 2 is a flowchart showing the operation of the central processing unit 2 shown in FIG. 1 when the program is not executed, and FIG. It is a diagram showing an example of a storage area of the main storage device 4 in the figure. l...Central processing subsystem, 2...
...Central processing unit, 3...Human output subsystem, 4...
...Main memory, ■O~I7...Step, 21... psw. 31...PSW load area, 32...
...Register load area, 33...P
SW save area, 34...Register save area.

Claims (1)

【特許請求の範囲】 情報処理装置において、 主記憶装置が、入出力割込みを含む割込みの何れかが発
生した時、中央処理装置が、発生した割込み処理以外の
プログラムを実行中の場合、その時の中央処理装置の実
行状況を示すプログラム状況表示語および実行中のプロ
グラムで使用しているレジスタの内容がセーブされる、
割込み処理毎の第1の記憶領域と、プログラム状況表示
語および前記割込み処理の実行の際に使用するレジスタ
の内容を記憶している、割込み処理毎の第2の記憶領域
とを備え、 前記中央処理装置が、実行すべきプログラムで使用する
レジスタ群と、プログラム実行中であるか否かを示すと
ともに実行中であれば当該プログラムの実行中の命令の
アドレス等の情報を含む当該中央処理装置の実行状況を
表示するプログラム状況表示語とを備え、プログラム実
行状態の時割込みが発生すると、該割込みに対応する第
1の記憶領域にその時のプログラム状況表示語と実行中
のプログラムのレジスタの内容をセーブするとともに、
同様に対応する第2の記憶領域からプログラム状況表示
語と使用するレジスタの内容をそれぞれ前記プログラム
状況表示語とレジスタ群へロードして発生した割込みを
実行し、プログラム非実行状態で何れの割込みも発生し
ない時は、入出力割込みに対応する第2の記憶領域から
レジスタの内容をレジスタ群へロードして待機し、その
後、割込みが発生した際に該割込みが入出力割込みであ
るか否か判断し、入出力割込みであれば、その時のプロ
グラム状況表示語の内容を入出力割込みに対応する第1
の記憶領域にセーブするとともに、同様に対応する第2
の記憶領域からプログラム状況表示語の内容を前記プロ
グラム状況表示語へロードして入出力割込みを実行し、
入出力割込み以外の割込みであれば、その時のプログラ
ム状況表示語の内容を当該割込みに対応する第1の記憶
領域にセーブするとともに、同様に対応する第2の記憶
領域からプログラム状況表示語と使用するレジスタの内
容をそれぞれ前記プログラム状況表示語とレジスタ群へ
ロードして発生した割込みを実行することを特徴とする
情報処理装置。
[Scope of Claims] In an information processing device, when any of the interrupts including an input/output interrupt occurs in the main memory, and the central processing unit is executing a program other than the interrupt processing that occurred, The program status display word indicating the execution status of the central processing unit and the contents of the registers used by the program being executed are saved.
a first storage area for each interrupt process; and a second storage area for each interrupt process that stores a program status display word and the contents of a register used when executing the interrupt process; Information about the central processing unit, including registers used by the program to be executed by the processing unit, and information such as the address of the instruction being executed in the program, indicating whether or not the program is being executed. When an interrupt occurs during program execution, the program status display word at that time and the register contents of the program being executed are stored in the first storage area corresponding to the interrupt. Along with saving,
Similarly, the program status display word and the contents of the registers to be used are loaded from the corresponding second storage area to the program status display word and the register group, respectively, and the generated interrupt is executed, and any interrupt is executed in the program non-execution state. If no interrupt occurs, load the contents of the register from the second storage area corresponding to the input/output interrupt into the register group, wait, and then, when an interrupt occurs, determine whether the interrupt is an input/output interrupt or not. If it is an input/output interrupt, the content of the program status display word at that time is displayed as the first word corresponding to the input/output interrupt.
, and also save the corresponding second storage area in the same way.
Loading the contents of the program status display word from the storage area of the program status display word into the program status display word and executing an input/output interrupt;
If the interrupt is other than an input/output interrupt, the contents of the program status display word at that time are saved in the first storage area corresponding to the interrupt, and similarly used as the program status display word from the corresponding second storage area. An information processing apparatus characterized in that the contents of the registers are loaded into the program status display word and the register group, respectively, and the generated interrupt is executed.
JP1790688A 1988-01-27 1988-01-27 Information processor Pending JPH01191938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1790688A JPH01191938A (en) 1988-01-27 1988-01-27 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1790688A JPH01191938A (en) 1988-01-27 1988-01-27 Information processor

Publications (1)

Publication Number Publication Date
JPH01191938A true JPH01191938A (en) 1989-08-02

Family

ID=11956787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1790688A Pending JPH01191938A (en) 1988-01-27 1988-01-27 Information processor

Country Status (1)

Country Link
JP (1) JPH01191938A (en)

Similar Documents

Publication Publication Date Title
JPH01297764A (en) Processor
JPH01191938A (en) Information processor
JPS6136850A (en) Input and output interruption information system
JP3139310B2 (en) Digital signal processor
JPS62117003A (en) Multi-cpu constitution programmable controller
JP2581327B2 (en) Virtual machine I / O interrupt handling method
JPS61184644A (en) Control system of virtual computer system
JPS62125437A (en) Control method for additional processor
JPH07210403A (en) Task switching system
JPH0652012A (en) Information processor having diagnostic function for peripheral part of device
JPH02244345A (en) Information processor
JPH02137054A (en) Information processor
JPS62276634A (en) Virtual computer system
JPH01185729A (en) Overlay structure program execution system
JPH01250143A (en) Program correction system
JPH0844570A (en) System and method for program execution
JPH0259933A (en) Microprocessor
JPH02304634A (en) Processor system
JPH04170586A (en) Multiwindow control device
JPS6380335A (en) Starting system for background job
JPH01319854A (en) Loosely-coupled multiprocessor testing system
JPH0454548A (en) Memory check system for computer system
JPH0772874B2 (en) Interrupt receiving device
JPH03105529A (en) Psw type error control circuit
JPS6027032A (en) Program starting method