JPS59200325A - Interruption processing system - Google Patents

Interruption processing system

Info

Publication number
JPS59200325A
JPS59200325A JP7320183A JP7320183A JPS59200325A JP S59200325 A JPS59200325 A JP S59200325A JP 7320183 A JP7320183 A JP 7320183A JP 7320183 A JP7320183 A JP 7320183A JP S59200325 A JPS59200325 A JP S59200325A
Authority
JP
Japan
Prior art keywords
processing
interrupt
interruption
mode
address information
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
JP7320183A
Other languages
Japanese (ja)
Inventor
Morihiro Kamidachi
神館 盛弘
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 JP7320183A priority Critical patent/JPS59200325A/en
Publication of JPS59200325A publication Critical patent/JPS59200325A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To perform interruption processing at a high speed by discriminating previously the mode to an interruption at the processor side before an interruption signal is produced and storing the corresponding address information into a vector table. CONSTITUTION:The mode is discrminated previously to an interruption at the processor side before an interruption signal is produced and the corresponding address information is stored into a vector table. For instance, access processing is given to a disk device 7. In this case, a seek start instruction is delivered to a disk control part 6 from a CPU1 via a common bus 5. Then the mode is discriminated for the processing which should be carried out when an interruption signal is produced from the part 6. Based on the result of this discrimination, the address information of an interruption vector table 3 provided on a memory 4 is rewritten to the address value which indicates the processing to deliver a sector search instruction. Then the part 6 where the seek start instruction is executed produces an interruption signal to execute the interruption processing under the control of an interruption control part 2.

Description

【発明の詳細な説明】 (a)  発明の技術分野 本発明は割込処理方式に係り、特に1つの割込に複数の
モードが存在し、各モードに応じた処理を行う割込処理
方式に関する。
Detailed Description of the Invention (a) Technical Field of the Invention The present invention relates to an interrupt processing method, and particularly relates to an interrupt processing method in which a single interrupt has a plurality of modes, and processing is performed according to each mode. .

(b)  技術の背景 処理装置と、複数の下位装置(例えば入出力装置)とを
具えたデータ処理システムにおいては。
(b) Technical Background In a data processing system that includes a processing device and a plurality of lower-level devices (for example, input/output devices).

下位装置からの割込みという形で、処理装置に対する処
理要求、処理終了通知等を行よう構成されている。また
、下位装置からの割込に対する処理を更に各段階(モー
ド)に分割し、処理装置による時分割処理の効率化を図
ることも行なわれている。
It is configured to issue processing requests to the processing device, processing completion notifications, etc. in the form of interrupts from lower-level devices. Furthermore, processing for interrupts from lower-level devices is further divided into stages (modes) in order to improve the efficiency of time-sharing processing by the processing device.

(C)  従来技術と問題点 従来1割込処理を行う処理装置側の構成として。(C) Conventional technology and problems As a configuration on the side of a processing device that conventionally performs one-interrupt processing.

例えば第1図に示すように、処理装置(以下cpUと称
する)lに供給される割込信号の種類を判別する割込制
御部(PIC)2が設けられる。割込制御部2は、゛割
込信号の種類(例えは割込を発生した下位装置の種類)
を判別して、CPUIの実行すべき割込処理を指示する
For example, as shown in FIG. 1, an interrupt control unit (PIC) 2 is provided that determines the type of interrupt signal supplied to a processing unit (hereinafter referred to as CPU) l. The interrupt control unit 2 determines the type of interrupt signal (for example, the type of lower-level device that generated the interrupt)
, and instructs the CPUI to perform an interrupt process.

第2図は、CPUIに対して割込処理を指示するための
割込ベクタテーブルを示す。この割込へフタテーブル3
には1割込信号の種類に応じた格納部Vec  O,−
Vec  nが備えられる。
FIG. 2 shows an interrupt vector table for instructing the CPUI to perform interrupt processing. Lid table 3 to this interrupt
There is a storage section Vec O,- according to the type of interrupt signal.
Vec n is provided.

そしてこの各格納部Vec  O〜Vec  nには。And in each storage unit Vec O to Vec n.

CPUIの実行すべき割込処理を指示するアドレス情報
が格納されている。
Address information that instructs the CPUI to perform interrupt processing is stored.

しかして、CPUIに対する割込が発生した場合、第3
図のフローチャートに示す如く、まず割込制御部2から
CPUIに対して割込要求IRQが出力される。この要
求IRQに対してCPUIからの応答IACKが返送さ
れる。すると割込制御部2は2発生した割込に対応する
割込へフタテーブル3上の1つの格納部Vec  iを
示すベクタアドレスVAを出力する。これによりCPU
Iは、ベクタアドレスVAで示されるテーブル3上の格
納部Vec  iに格納されるアドレス情報を読出す。
Therefore, if an interrupt to the CPU occurs, the third
As shown in the flowchart in the figure, first, the interrupt control unit 2 outputs an interrupt request IRQ to the CPUI. A response IACK from the CPUI is returned in response to this request IRQ. Then, the interrupt control section 2 outputs a vector address VA indicating one storage section Veci on the lid table 3 to the interrupt corresponding to the two generated interrupts. This allows the CPU
I reads the address information stored in the storage section Vec i on the table 3 indicated by the vector address VA.

この結果、読出したアドレス情報で示されるメモリ上の
割込処理プログラムを読出して実行することになる。
As a result, the interrupt processing program on the memory indicated by the read address information is read and executed.

しかしながら、上述した如く、1つの割込に対して複数
の処理モードが存在する場合、上述した割込処理フロー
においては、CPUIがテーブル3で示された割込処理
の中で、この割込のモード判別を行い5判別結果に応じ
た処理ルーチンに移るように構成されていた。この結果
、同一の割込に対してその都度モード判別を行うことが
重複して行なわれることになり、CPUIの割込処理の
効率上好ましいものではなかった。
However, as described above, when multiple processing modes exist for one interrupt, in the interrupt processing flow described above, the CPU It was configured to perform mode discrimination and proceed to a processing routine according to the result of the 5 discriminations. As a result, mode determination is repeated each time for the same interrupt, which is not desirable in terms of efficiency of CPUI interrupt processing.

(d)  発明の目的 本発明は、上述した従来の不都点を解消すべく。(d) Purpose of the invention The present invention aims to eliminate the above-mentioned conventional disadvantages.

処理装置による割込処理の迅速化を図ることが可能な割
込処理方式を提供することを目的としている。
It is an object of the present invention to provide an interrupt processing method capable of speeding up interrupt processing by a processing device.

(el  発明の構成 上記目的を達成するため1本発明においては。(el Structure of the invention In order to achieve the above object, one aspect of the present invention is as follows.

下位装置からの割込を待つ時間を利用して1割込信号が
発せられる前に、予め処理装置側でその割込に対するモ
ードを判別し、且つ判別したモードに応じた割込処理を
示すアドレス情報をヘクタテーブル内に格納しておくよ
うにしたものであある。
Before an interrupt signal is issued using the time spent waiting for an interrupt from a lower-level device, the processing device side determines the mode for that interrupt in advance, and the address indicates the interrupt processing according to the determined mode. The information is stored in a hector table.

以下、実施例を用いて本発明を詳述する。Hereinafter, the present invention will be explained in detail using Examples.

(fl  発明の実施例 第4図は本発明の割込処理方式が適用されるシステムの
一実施例を示す図、第5図は実施例動作を示すフローチ
ャートである。
(fl Embodiment of the Invention FIG. 4 is a diagram showing an embodiment of a system to which the interrupt processing method of the present invention is applied, and FIG. 5 is a flowchart showing the operation of the embodiment.

第4図中、第1図及び第2図と同一部分には同一、符号
で示すものであり、4は主メモリ、5は共通ハス、6は
ディスク制御部、7は磁気ディスク装置である。
In FIG. 4, the same parts as in FIGS. 1 and 2 are designated by the same reference numerals, and 4 is a main memory, 5 is a common lot, 6 is a disk control unit, and 7 is a magnetic disk device.

本実施例においては、ディスク制御部6がらの−割込に
対するCPUIの割込処理動作を示すものである。
In this embodiment, the CPUI interrupt processing operation in response to an interrupt from the disk control unit 6 is shown.

即ちcpuiからディスク装置7へのアクセス動作とし
て。
That is, as an access operation from the CPU to the disk device 7.

■ シーク起動命令を発する。■ Issue a seek start command.

■ セクタサーチ命令を発する。■ Issue a sector search command.

■ リード/ライトコマンド命令を発する。■ Issue read/write commands.

の各々をディスク制御部6へ発する処理が行なわれる。A process is performed to issue each of these to the disk control unit 6.

一方ディスク制御部6は、CPUIがらの上記各命令■
〜■に対する処理を実行して終了する毎に、CPUIへ
割込信号intを発するよう構成さている。この割込信
号intは2割込制御部2によってその割込種類を判別
され9割込ベクタテーブル3上のアドレス情報格納部V
ecQ。
On the other hand, the disk control unit 6 executes each of the above-mentioned commands from the CPU.
It is configured to issue an interrupt signal int to the CPUI each time the processing for ~■ is completed. The interrupt type of this interrupt signal int is determined by the 2-interrupt control unit 2, and the address information storage unit V on the 9-interrupt vector table 3
ecQ.

Vecl、  −の情報によりCPUIの実行すべき処
理が決定される事は記述した通りである。
As described above, the process to be executed by the CPUI is determined by the information of Vecl, -.

従来においては、テーブル3上格納部(例えばVecO
)で示される主メモリ4上のアドレス位置に記憶される
割込処理ルーチンの中で2割込信号のモード判別が行な
われていた。即ちこの場合。
Conventionally, a storage section on the table 3 (for example, VecO
) The mode of the two interrupt signals was determined in the interrupt processing routine stored at the address location on the main memory 4 indicated by . That is, in this case.

チャネル制御部6がらの割込が上記■〜■のどの処理モ
ードに対して行なわれたものかを割込処理の中で判別し
ていた。換言すれば2割込処理ルーチンの中で2割込に
対する次の処理を判別して。
It is determined during the interrupt processing which processing mode among the above-mentioned (1) to (4) the interrupt from the channel control unit 6 is made. In other words, the next process for the 2nd interrupt is determined in the 2nd interrupt processing routine.

各処理に対応する処理ルーチンへ再びジャンプすること
が行なわれていた。この結果、ディスク制御部6の割込
みが発生する毎に、モート判別を繰返すことになり、処
理の遅延化を招くものであった。本実施例においては、
第5図のフローチャートに示すように、上記割込に対す
るモード判別を予めCPU1によって行うものである。
A jump is made again to the processing routine corresponding to each process. As a result, mote determination is repeated every time an interrupt from the disk control unit 6 occurs, resulting in a delay in processing. In this example,
As shown in the flowchart of FIG. 5, the CPU 1 determines the mode for the interrupt in advance.

これは。this is.

ディスク制御部6に対する処理が予め定まっており9割
込発生に対する処理モードが一義的に決定される点に着
目したものである。以下第5図のフローチャートを基に
本実施例の動作を説明する。
This method focuses on the fact that the processing for the disk control unit 6 is predetermined, and the processing mode for the occurrence of the 9th interrupt is uniquely determined. The operation of this embodiment will be explained below based on the flowchart shown in FIG.

ディスク装置7へのアクセス処理を行う必要が生じた場
合、CPUIは上記■〜■の処理手順に従って、まず共
通バス5を介してディスク制御部6ヘシーク起動命令を
発する。シーク起動命令を発した後、CPUIは、モー
ド判別を行う。即ち。
When it becomes necessary to perform an access process to the disk device 7, the CPU first issues a seek activation command to the disk control unit 6 via the common bus 5 in accordance with the processing steps ① to ② above. After issuing the seek activation command, the CPUI determines the mode. That is.

ディスク制御部6からの割込信号intが生じた場合に
次に行うべき処理モードを判別する。この場合、上記■
の処理を行うものである。この判別結果に基きCPUI
は、メモリ4上に設けられる割込ベクタテーブル3の該
当格納部(この場合■eco)のアドレス情報を、上記
■のセクタサーチ命令を発する処理を指示するアドレス
値に書換える。尚、テーブル3の各格納部VecQ、V
ec1.− は割込の種類(割込を発した入出力装置の
種類)に応じて設られる。従って、同一装置からの割込
み信号に対しては2割込制御部2から同一ベクタアドレ
スが発せられることは云うまでもない。
When an interrupt signal int is generated from the disk control unit 6, the processing mode to be performed next is determined. In this case, the above ■
This process performs the following processing. Based on this determination result, CPU
rewrites the address information in the corresponding storage section (in this case, ■eco) of the interrupt vector table 3 provided on the memory 4 to an address value that instructs the process of issuing the sector search command in (■) above. In addition, each storage unit VecQ, V of table 3
ec1. − is set depending on the type of interrupt (type of input/output device that issued the interrupt). Therefore, it goes without saying that the same vector address is issued from the two interrupt control sections 2 for interrupt signals from the same device.

格納部VecOのアドレスを書換えた後、  epul
はディスク制御部6或いは図示省略した他の入出力装置
からの割込を待つ状態に入る。その後シーク起動命令を
実行完了したディスク制御部6が割込信号intを出力
する。するとCPUIは。
After rewriting the address of the storage unit VecO, epul
enters a state in which it waits for an interrupt from the disk control unit 6 or another input/output device (not shown). Thereafter, the disk control unit 6 that has completed the execution of the seek start command outputs an interrupt signal int. Then the CPUI.

割込制御部2より与えられるベクタアドレスVAによっ
て示されるテーブル3上の格納部(この場合■eCO)
を参照する。この結果、格納部VecOで示されるアド
レスの処理を実行する。即ちCPUIは、上記■の処理
を直ちに行い2ディスク制御部6ヘセクタサーチ命令を
発することができる。以上の如く2本実施列によれば1
割込待ぢ状態の時間を用いて、入出力装置からの割込み
に対する各モード毎の処理を予め片息することができる
。この結果、従来割込発生後に重複して行っていたモー
ド判別処理の時間を省くことができ。
Storage area on table 3 indicated by vector address VA given by interrupt control unit 2 (in this case ■eCO)
See. As a result, the process at the address indicated by the storage unit VecO is executed. That is, the CPUI can immediately perform the process (2) above and issue a sector search command to the two-disk control unit 6. As mentioned above, according to the two-line implementation sequence, 1
By using the time in the interrupt waiting state, it is possible to take a break in advance in processing for each mode in response to interrupts from input/output devices. As a result, it is possible to save time for mode determination processing, which conventionally would be redundantly performed after an interrupt occurs.

割込処理の高速化を図ることができる。It is possible to speed up interrupt processing.

(6)発明の効果 以上詳述した如く本発明によれば、処理装置による割込
処理の時間を短縮でき、ひいてはシステム全体の処理効
率を向上させることができる。
(6) Effects of the Invention As detailed above, according to the present invention, the time required for interrupt processing by the processing device can be shortened, and the processing efficiency of the entire system can be improved.

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

第1図及至第3図は従来から用いられる割込処理動作を
説明する図、第4図は本発明が通用されるシステムの一
実施例を示す図、第5図は第4図実施例の動作を示すフ
ローチャートである。1はCPU (処理装置)、2は
割込制御部、3は割込ベクタテーブル、6はディスク制
御部である。 第1図     第2図 第3■ 第4図 第5図
1 to 3 are diagrams explaining conventionally used interrupt processing operations, FIG. 4 is a diagram showing an embodiment of a system to which the present invention is applicable, and FIG. 5 is a diagram illustrating an embodiment of the system shown in FIG. It is a flowchart showing the operation. 1 is a CPU (processing unit), 2 is an interrupt control section, 3 is an interrupt vector table, and 6 is a disk control section. Figure 1 Figure 2 Figure 3 ■ Figure 4 Figure 5

Claims (1)

【特許請求の範囲】 処理装置と、該処理装置へ供給される割込信号に対する
割込処理を指示する指示情報が格納される格納部とを有
し、該処理装置は、該格納部の指示情報を参照すること
により該指示情報で示される割込処理を実行するととも
に、該割込信号には複数の処理モードが存在し、該処理
モードに応じた割込処理を実行する割込処理システムに
おいて。 前記処理装置は1割込信号が供給される前に該割込信号
の有する処理モードを判別するよう構成し。 判別した処理モードに応じた割込処理を示す指示情報を
前記格納部に格納するようにしたことを特徴とする割込
処理方式。
[Scope of Claims] The processing device includes a processing device and a storage section in which instruction information instructing interrupt processing in response to an interrupt signal supplied to the processing device is stored, and the processing device An interrupt processing system that executes an interrupt process indicated by the instruction information by referring to the information, and also includes a plurality of processing modes for the interrupt signal and executes the interrupt process according to the processing mode. In. The processing device is configured to determine a processing mode of one interrupt signal before the interrupt signal is supplied. An interrupt processing method, characterized in that instruction information indicating interrupt processing according to the determined processing mode is stored in the storage section.
JP7320183A 1983-04-26 1983-04-26 Interruption processing system Pending JPS59200325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7320183A JPS59200325A (en) 1983-04-26 1983-04-26 Interruption processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7320183A JPS59200325A (en) 1983-04-26 1983-04-26 Interruption processing system

Publications (1)

Publication Number Publication Date
JPS59200325A true JPS59200325A (en) 1984-11-13

Family

ID=13511292

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7320183A Pending JPS59200325A (en) 1983-04-26 1983-04-26 Interruption processing system

Country Status (1)

Country Link
JP (1) JPS59200325A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61282936A (en) * 1985-06-07 1986-12-13 Sharp Corp Vector interruption system for microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61282936A (en) * 1985-06-07 1986-12-13 Sharp Corp Vector interruption system for microprocessor

Similar Documents

Publication Publication Date Title
JPS59200325A (en) Interruption processing system
JP2846760B2 (en) Programmable controller
JP2970082B2 (en) Virtual intercluster communication processor
JPS61184643A (en) Starting control system for virtual computer
JPS6074033A (en) Instruction readout system
JP2584528Y2 (en) Information processing device
JP2524620B2 (en) Input / output control method
JP2785855B2 (en) Information processing device
JPS5947626A (en) Instant reset type input and output driver
JPH01318128A (en) Cache error processing system
JPS6394339A (en) Virtual calculation system
JPS6072029A (en) Instruction processing system
JPS58129525A (en) Data input and output controlling method of data processing system
JPS6010342A (en) Reload control system of general-purpose register
JPS6160468B2 (en)
JPH04113432A (en) Virtual storage control method
JPS60196847A (en) Microprogram control system
JPH0612260A (en) Method and device for interruption processing
JPS59177658A (en) Debugging control system
JPH01251375A (en) Magnetic disk controller
JPS5968067A (en) Specifying system for number of run steps
JPS6136253B2 (en)
JPH0424733B2 (en)
JPH05274091A (en) Magnetic tape device
JPS63132368A (en) Interrupting system for multiprocessor