JPH0612260A - Interrupt processing method and apparatus - Google Patents
Interrupt processing method and apparatusInfo
- Publication number
- JPH0612260A JPH0612260A JP16896492A JP16896492A JPH0612260A JP H0612260 A JPH0612260 A JP H0612260A JP 16896492 A JP16896492 A JP 16896492A JP 16896492 A JP16896492 A JP 16896492A JP H0612260 A JPH0612260 A JP H0612260A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- processing
- address
- occurs
- external
- 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
Links
Abstract
(57)【要約】
【目的】 現在発生している割込みの処理時に、次に発
生する割込みを認識して登録することにより、複数種の
手順の決まった割込みに対して割込み処理効率を上げる
ことができる割込み処理方法及び装置を提供することを
目的とする。
【構成】 割込みの発生順序が定められている複数種の
割込みに対して、その割込みの発生順序を割込み順序テ
ーブル8に記憶しておき、このテーブル8に記憶されて
いる情報を参照して、現在の割込み処理の次に発生する
割込みを認識する。そしてこれら認識された、次に発生
する割込みに対する処理アドレスを、割込みテーブル2
に登録する。これにより、次の割込みが発生すると、自
動的にその割込みに対応する処理アドレスより割込み処
理が開始される。
(57) [Summary] [Purpose] Improve the interrupt processing efficiency for interrupts with multiple types of procedures by recognizing and registering the next interrupt when processing the interrupt currently occurring. It is an object of the present invention to provide an interrupt processing method and device capable of performing the above. [Structure] For a plurality of types of interrupts in which the interrupt generation order is determined, the interrupt generation order is stored in an interrupt order table 8, and the information stored in the table 8 is referred to Recognize the interrupt that occurs next to the current interrupt process. Then, the recognized processing address for the next interrupt that occurs is set in the interrupt table 2
Register with. As a result, when the next interrupt occurs, the interrupt processing is automatically started from the processing address corresponding to the interrupt.
Description
【0001】[0001]
【産業上の利用分野】本発明は、割込みが発生すると、
その割込みに対応するアドレスにブランチして割込み処
理を行う割込み処理方法及び装置に関するものである。BACKGROUND OF THE INVENTION The present invention is
The present invention relates to an interrupt processing method and device for branching to an address corresponding to the interrupt and performing interrupt processing.
【0002】[0002]
【従来の技術】図4は従来の割込み処理方式を示す図で
ある。2. Description of the Related Art FIG. 4 is a diagram showing a conventional interrupt processing system.
【0003】図4において、401はCPU(中央処理
装置)、402はメモリ403に設けられた割込みテー
ブル、404はメモリ403の割込みテーブル402に
設けられている外部装置406用の装置割込み処理部で
ある。406は、CPU401に外部割込みを発生する
外部装置である。この状態で、外部装置406より外部
割込み407が発生すると、CPU401のレジスタに
より割込みテーブル402がポイントされる。412
は、この割込みテーブル402の割込み番号“2”のエ
ントリを示し、このエントリ412が装置割込み処理部
404をポイントしている。この様子を矢印413で示
している。In FIG. 4, 401 is a CPU (central processing unit), 402 is an interrupt table provided in the memory 403, and 404 is an apparatus interrupt processing unit for the external device 406 provided in the interrupt table 402 of the memory 403. is there. An external device 406 generates an external interrupt to the CPU 401. When an external interrupt 407 is generated from the external device 406 in this state, the interrupt table 402 is pointed to by the register of the CPU 401. 412
Indicates the entry with the interrupt number “2” in the interrupt table 402, and this entry 412 points to the device interrupt processing unit 404. This state is indicated by an arrow 413.
【0004】ここで、外部装置406から発生した外部
割込み407に対する処理手順を説明すると、いま、外
部装置406がI/O完了などによりCPU401に外
部割込み407を発生すると、CPU401は実行中の
命令を停止し、CPU401中にあるレジスタを参照し
て、411で示したように割込みテーブル402のアド
レスを求める。そして、CPU401は、外部割込み4
07に関連する割込み番号(もしくはCPU401が外
部割込み407によって自動生成した割込み番号)を認
識し、当該番号(この説明では2番としている)をイン
デックスとして、割込みテーブル402のエントリ41
2を求める。こうして、このエントリ412に登録され
ている装置割込み処理部404のアドレス(図4では4
13で示してある)を取り出し、このアドレスへプログ
ラムの実行を移行する。Here, the processing procedure for the external interrupt 407 generated from the external device 406 will be described. Now, when the external device 406 generates an external interrupt 407 to the CPU 401 due to I / O completion or the like, the CPU 401 outputs the instruction being executed. After stopping, the register in the CPU 401 is referred to and the address of the interrupt table 402 is obtained as indicated by 411. Then, the CPU 401 uses the external interrupt 4
The interrupt number associated with No. 07 (or the interrupt number automatically generated by the CPU 401 by the external interrupt 407) is recognized, and the corresponding number (No. 2 in this description) is used as an index to make the entry 41 of the interrupt table 402.
Ask for 2. Thus, the address of the device interrupt processing unit 404 registered in this entry 412 (4 in FIG.
(Indicated by 13), and execution of the program is transferred to this address.
【0005】これにより、装置割込み処理部404に制
御が移り、外部装置406から発生した外部割込み40
7が、装置割込み処理部404によって処理されること
になる。こうして装置割込み処理部404が外部割込み
407を処理した後、割込み復帰命令を実行することに
よって、CPU401は外部割込み407の発生した時
点に戻り、そこで停止させられている命令を実行する。As a result, control is transferred to the device interrupt processing unit 404, and the external interrupt 40 generated from the external device 406 is generated.
7 will be processed by the device interrupt processing unit 404. After the device interrupt processing unit 404 processes the external interrupt 407 in this way, the CPU 401 executes the interrupt return instruction, so that the CPU 401 returns to the time when the external interrupt 407 occurred and executes the instruction stopped there.
【0006】なお、ここでは外部装置406として、フ
ロッピーディスク・ドライブを例とした場合について以
下に説明する。いま、このディスク・ドライブに対っし
てCPU401よりリードを行う場合、シーク・コマン
ド、リード・コマンド及びステータス・リード・コマン
ドの3つのコマンドが順にCPU401より外部装置4
06に発行される。この場合、これら3つのコマンドに
対して、それぞれ対応する外部割込みが順次発生するこ
とになる。ここでは、これら割込みは同一の外部装置4
06から発生するので、1つの割込み処理部404にお
いて、これらの割込みが処理されることになる。この処
理手順を示したのが、図5のフローチャートである。A case where a floppy disk drive is used as the external device 406 will be described below. When the CPU 401 reads from this disk drive, three commands, a seek command, a read command, and a status read command, are sequentially sent from the CPU 401 to the external device 4
Issued on 06. In this case, external interrupts corresponding to these three commands are sequentially generated. Here, these interrupts are the same external device 4
Since these are generated from 06, one interrupt processing unit 404 processes these interrupts. This processing procedure is shown in the flowchart of FIG.
【0007】次に図5のフローチャートを参照して説明
する。外部割込みが発生して、CPU401によって制
御が移行した時点をステップS501で示している。ま
ずステップS502にて、割込み原因がシーク・コマン
ド割込かどうかをみる。シーク・コマンドならばステッ
プS504へ進み、シーク割込み処理を行う。一方、ス
テップS502で、割込み原因がシーク・コマンドによ
る割込みでないならばステップS503に進み、リード
・コマンドかどうかを判断する。ステップS503で割
込み原因がリード・コマンドによる割込みならばステッ
プS505へ進み、リード割込み処理を行う。また、ス
テップS503で割込み原因がリード・コマンド割込み
でないならばステップS506を実行し、ステータス・
リード割込み処理を行う。こうして、ステップS504
〜S506の実行が終了したら、ステップS507に移
行し、割込みよりの復帰命令を実行する。Next, description will be made with reference to the flowchart of FIG. The time point when the external interrupt occurs and the control is transferred by the CPU 401 is shown in step S501. First, in step S502, it is checked whether the interrupt cause is a seek command interrupt. If it is a seek command, the process advances to step S504 to perform seek interrupt processing. On the other hand, in step S502, if the cause of the interrupt is not a seek command interrupt, the process advances to step S503 to determine whether the command is a read command. If the cause of the interrupt is an interrupt due to a read command in step S503, the flow advances to step S505 to perform a read interrupt process. If the cause of the interrupt is not the read command interrupt in step S503, then step S506 is executed and the status
Perform read interrupt processing. Thus, step S504
When the execution of steps S506 to S506 is completed, the process proceeds to step S507, and a return instruction from an interrupt is executed.
【0008】[0008]
【発明が解決しようとする課題】このように上記従来例
では、同一の外部装置から複数種類の割込みが発生する
場合、CPUは外部割込み処理の中で常に割込みの種類
を問い合わせ、その割込みの種類を判断しなければなら
なかった。このため、外部割込み処理の実行に時間がか
かり、割込み処理の効率を向上することができなかっ
た。As described above, in the above-mentioned conventional example, when a plurality of types of interrupts are generated from the same external device, the CPU always inquires the type of the interrupt in the external interrupt processing, and the type of the interrupt. Had to judge. For this reason, it takes a long time to execute the external interrupt processing, and the efficiency of the interrupt processing cannot be improved.
【0009】本発明は上述従来例に鑑みてなされたもの
で、現在発生している割込みの処理時に、次に発生する
割込みを認識して登録することにより、複数種の手順の
決まった割込みに対して割込み処理効率を上げることが
できる割込み処理方法及び装置を提供することを目的と
する。The present invention has been made in view of the above-mentioned conventional example, and recognizes and registers the interrupt which will occur next during the processing of the interrupt which is currently occurring, so that the interrupts having a plurality of types of procedures can be determined. On the other hand, it is an object of the present invention to provide an interrupt processing method and device capable of improving interrupt processing efficiency.
【0010】[0010]
【課題を解決するための手段】上記目的を達成するため
に本発明の割込み処理装置は以下の様な構成からなる。
即ち、発生した割込みに対して割込みテーブルに登録さ
れたアドレスを参照して割込み処理を行う割込み処理装
置であって、割込みの発生順序が定められている複数種
の割込みに対して、その割込みの発生順序を記憶してい
る記憶手段と、前記記憶手段を参照して、現在の割込み
処理の次に発生する割込みを認識する認識手段と、前記
認識手段により認識された、次に発生する割込みに対す
る処理アドレスを前記割込みテーブルに登録する登録手
段とを有する。In order to achieve the above object, the interrupt processing device of the present invention has the following configuration.
That is, it is an interrupt processing device that performs interrupt processing by referring to an address registered in the interrupt table for an interrupt that has occurred. A storage unit that stores the order of occurrence, a recognition unit that refers to the storage unit to recognize an interrupt that occurs next to the current interrupt process, and an interrupt that occurs next that is recognized by the recognition unit Registration means for registering the processing address in the interrupt table.
【0011】上記目的を達成するために本発明の割込み
処理方法は以下の様な工程からなる。即ち、発生した割
込みに対して割込みテーブルに登録されたアドレスを参
照して割込み処理を行う割込み処理方法であって、割込
みの発生順序が予め定められている複数種の割込みに対
して、その割込みの発生順序を記憶する工程と、割込み
の発生時、前記発生順序を参照して次に発生する割込み
を認識する工程と、次に発生する割込みの処理アドレス
を割込みテーブルに登録する工程と、割込みの発生時、
前記割込みテーブルを参照して、その処理開始アドレス
を決定し発生した割込みに対応する割込みを処理を実行
する工程とを有する。In order to achieve the above object, the interrupt processing method of the present invention comprises the following steps. In other words, it is an interrupt processing method that performs interrupt processing by referring to the address registered in the interrupt table for the generated interrupt. The step of storing the occurrence order of the interrupt, the step of recognizing the interrupt that occurs next when the interrupt occurs, the step of registering the processing address of the interrupt that occurs next in the interrupt table, The occurrence of
Referring to the interrupt table, determining a processing start address, and executing an interrupt corresponding to the generated interrupt.
【0012】[0012]
【作用】以上の構成により、割込みの発生順序が定めら
れている複数種の割込みに対して、その割込みの発生順
序を記憶しておき、これら記憶情報を参照して、現在の
割込み処理の次に発生する割込みを認識する。そしてこ
れら認識された、次に発生する割込みに対する処理アド
レスを、割込みテーブルに登録するように動作する。こ
れにより、割込みが発生すると、自動的にその割込みに
対応する処理アドレスより割込み処理が開始される。With the above configuration, for a plurality of types of interrupts in which the interrupt generation order is determined, the interrupt generation order is stored, and the stored information is referred to to determine the next interrupt processing. Recognize interrupts that occur at. Then, it operates so as to register the recognized processing address for the next interrupt that occurs in the interrupt table. As a result, when an interrupt occurs, the interrupt processing is automatically started from the processing address corresponding to the interrupt.
【0013】[0013]
【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings.
【0014】図1は本実施例の割込み処理装置の構成を
示す模式図である。図1において、1はCPU、2はメ
モリ3に設けられた割込みテーブルである。52と53
は、割込みテーブル2のエントリ22がポイントするア
ドレスを示し、アドレス52は装置割込みA処理部42
を指定しており、アドレス53は装置割込みB処理部4
3を指定している。8は割込み順序テーブルであり、装
置割込みA処理部42が、この割込み順序テーブル8を
参照することにより、例えば割込みAの次には割込みB
が発生することを知ることができる。また同様に、装置
割込みB処理部43が、この割込み順次テーブル8を参
照することにより、例えば割込みBの次に割込みAが発
生することを知ることができる。このように、この割込
み順序テーブル8は、その割込みを処理する割込み処理
部のアドレスを知るためのテーブルである。FIG. 1 is a schematic diagram showing the structure of the interrupt processing device of this embodiment. In FIG. 1, 1 is a CPU and 2 is an interrupt table provided in the memory 3. 52 and 53
Indicates the address pointed to by the entry 22 in the interrupt table 2, and the address 52 is the device interrupt A processing unit 42.
Is specified, and the address 53 is the device interrupt B processing unit 4
3 is specified. Reference numeral 8 is an interrupt sequence table, and the device interrupt A processing unit 42 refers to the interrupt sequence table 8 so that, for example, interrupt A is followed by interrupt B.
Can be known to occur. Similarly, the device interrupt B processing unit 43 can know that the interrupt A occurs next to the interrupt B, for example, by referring to the interrupt sequential table 8. As described above, the interrupt sequence table 8 is a table for knowing the address of the interrupt processing unit that processes the interrupt.
【0015】9は割込みテーブル登録部で、装置割込み
A処理部42または装置割込みB処理部43が、割込み
順序テーブル8から読み込んだ、次に発生する割込みに
対する割込み処理部のアドレスを割込み番号に対応した
割込みテーブル2のエントリ22へ登録することにより
作成される。これにより、割込みテーブル登録部9に
は、次に発生する割込み対応したエントリアドレスが格
納される。Reference numeral 9 is an interrupt table registering unit, in which the device interrupt A processing unit 42 or the device interrupt B processing unit 43 reads the address of the interrupt processing unit for the next interrupt which is read from the interrupt sequence table 8 and corresponds to the interrupt number. It is created by registering it in the entry 22 of the interrupt table 2. As a result, the interrupt table registration unit 9 stores the entry address corresponding to the interrupt that will occur next.
【0016】ここで外部装置6から発生した外部割込み
7に対する処理手順を示す。なお、ここでは外部装置6
からの外部割込み7は、割込み種別A、割込み種別Bの
順で発生するものとする。また、初期値として割込みテ
ーブル2のエントリ22として、52で示したアドレ
ス、即ち、装置割込みA処理部42のアドレスが設定さ
れているものとする。Here, a processing procedure for the external interrupt 7 generated from the external device 6 will be shown. The external device 6 is used here.
The external interrupts 7 from 7 are generated in the order of interrupt type A and interrupt type B. Further, it is assumed that the address indicated by 52, that is, the address of the device interrupt A processing unit 42 is set as the entry 22 of the interrupt table 2 as an initial value.
【0017】いま外部装置6が外部割込み7(割込み
A)を発生すると、CPU1が実行中の命令を停止し、
CPU1中にあるレジスタの値に基づいて割込みアドレ
ス11を出力する。これにより、外部割込み7に付随す
る(もしくはCPU1が外部割込み7によって自動的に
生成した割込み番号)を認識し、この割込み番号(この
実施例では2番としている)をインデックスとして、割
込みテーブル2の中のエントリ22を求める。次に、こ
のエントリ22に登録されている装置割込みA処理部4
2のアドレス(図1では52で示してある)を取り出
し、このアドレスへ処理を移行する。これにより、外部
割込み7の割込み種別Aは、装置割込みA処理部42に
おいて処理される。こうして装置割込みA処理部42
は、外部割込み7の種別Aを処理した後、割込み順序テ
ーブル8を参照して、割込み種別Aの次には割込み種別
Bが発生することを知ることができる。これにより、種
別Bの割込み処理である装置割込みB処理部43のアド
レスを求め、割込みテーブル登録部9を呼び出す。When the external device 6 now generates an external interrupt 7 (interrupt A), the CPU 1 stops the instruction being executed,
The interrupt address 11 is output based on the value of the register in the CPU 1. As a result, the external interrupt 7 (or the interrupt number automatically generated by the CPU 1 by the external interrupt 7) is recognized, and this interrupt number (2 in this embodiment) is used as an index in the interrupt table 2. Request the entry 22 therein. Next, the device interrupt A processing unit 4 registered in this entry 22
The address 2 (indicated by 52 in FIG. 1) is taken out, and the processing shifts to this address. As a result, the interrupt type A of the external interrupt 7 is processed by the device interrupt A processing unit 42. Thus, the device interrupt A processing unit 42
After processing the type A of the external interrupt 7, by referring to the interrupt order table 8, it is possible to know that the interrupt type B occurs next to the interrupt type A. As a result, the address of the device interrupt B processing unit 43 that is the type B interrupt processing is obtained, and the interrupt table registration unit 9 is called.
【0018】この割込みテーブル登録部9は、割込みテ
ーブル2のエントリ22へ、前述の処理で求めた次に発
生する種別Bの割込み処理のアドレス53を登録し、装
置割込みA処理部42へ戻る。この後、装置割込みA処
理部42は割込み復帰命令を実行する。こうして、CP
U401は割込み復帰命令を実行すると、外部割込み7
種別Aの発生した時点で停止させられた命令を実行す
る。The interrupt table registration unit 9 registers the address 53 of the type-B interrupt process, which occurs next in the process, in the entry 22 of the interrupt table 2 and returns to the device interrupt A process unit 42. After that, the device interrupt A processing unit 42 executes an interrupt return instruction. Thus, CP
When U401 executes the interrupt return instruction, external interrupt 7
The instruction stopped when the type A occurs is executed.
【0019】こうしてその後、外部装置6から外部割込
み7の種別Bが発生すると、前記と同じ手順により、割
込みテーブル2のエントリ22に登録されているアドレ
スの示す(図1の53)装置割込みB処理部43へ制御
が移る。装置割込みB処理部43は、この外部割込みB
を処理後、前述の場合と同様にして、割込み順序テーブ
ル8を参照して、例えば割込み種別Bの次には割込み種
別Aが発生することを知ると、装置割込みA処理部42
のアドレスを割込みテーブル2のエントリ22へ登録す
るように割り込みテーブル登録部9へ依頼する。When a type B of the external interrupt 7 is generated from the external device 6 thereafter, the device interrupt B process indicated by the address registered in the entry 22 of the interrupt table 2 (53 in FIG. 1) is performed by the same procedure as described above. Control is transferred to the part 43. The device interrupt B processing unit 43 uses the external interrupt B
After processing the above, referring to the interrupt order table 8 in the same manner as described above, if it is found that the interrupt type A occurs next to the interrupt type B, for example, the device interrupt A processing unit 42
The interrupt table registration unit 9 is requested to register the address in the entry 22 of the interrupt table 2.
【0020】これにより割込みテーブル登録部9は、割
込みテーブルのエントリ22へ装置割込みA処理部42
のアドレスを登録し(図1の52)、装置割込みB処理
部43へ戻る。装置割込みB処理部43は、割込み復帰
命令を実行する。CPU401は、この割込み復帰命令
を実行すると、外部割込み種別Bの発生した時点で停止
させられた命令を実行する。As a result, the interrupt table registration unit 9 adds the device interrupt A processing unit 42 to the entry 22 of the interrupt table.
1 is registered (52 in FIG. 1), and the process returns to the device interrupt B processing unit 43. The device interrupt B processing unit 43 executes an interrupt return instruction. When the CPU 401 executes this interrupt return instruction, it executes the instruction stopped when the external interrupt type B occurs.
【0021】図3は本実施例での割込み順序テーブル8
の一例を示す図である。FIG. 3 shows the interrupt sequence table 8 in this embodiment.
It is a figure which shows an example.
【0022】この図3では、種別Aの割込みが発生する
と、次回に発生する割込みの種別がBであるとして登録
されており、次に発生する割込み処理部のアドレスとし
て、装置割込みB処理部43のアドレスが登録されてい
る。これと同様に、発生した割込みの種別Bに対して、
次に発生する割込みの種別がAで、その割込みA処理部
42のアドレスが登録されている。In FIG. 3, when an interrupt of type A occurs, the type of the interrupt that occurs next time is registered as B, and the device interrupt B processing unit 43 is used as the address of the interrupt processing unit that occurs next. The address of is registered. Similarly, for the type B of interrupt that occurred,
The type of interrupt that occurs next is A, and the address of the interrupt A processing unit 42 is registered.
【0023】ここでは、従来例で述べたのと同様に、外
部装置6としてフロッピーディスク・ドライブを例とし
た場合を述べる。このドライブに対するリード・アクセ
スはシーク・コマンド、リード・コマンド及びステータ
ス・リード・コマンドの3つのコマンドを順にCPU1
が外部装置6に発行し、これら3つのコマンドに対し
て、割込みが順に発生することになる。これら3つの割
込みに対して本実施例では、異なった種別の3つの割込
み処理部を持つが、各割込み処理部の処理手順は割込み
種別毎に割込み処理が異なるのみであるため、ここでは
シーク割込みに対しての処理手順を述べることする。こ
れを示したのが図2のフローチャートである。Here, a case where a floppy disk drive is taken as an example of the external device 6 will be described as in the case of the conventional example. For read access to this drive, three commands, a seek command, a read command, and a status read command, are sequentially processed by the CPU 1.
Is issued to the external device 6, and interrupts are sequentially generated for these three commands. In the present embodiment, three interrupt processing units of different types are provided for these three interrupts. However, since the processing of each interrupt processing unit differs only in the interrupt processing for each interrupt type, a seek interrupt is used here. The processing procedure for is described below. This is shown in the flowchart of FIG.
【0024】次に図2のフローチャートを説明する。Next, the flowchart of FIG. 2 will be described.
【0025】外部割込みが発生して、CPU1によって
制御が移行した時点をステップS1で示し、ここではシ
ーク割込みによって制御が移行されている。次にステッ
プS2に進み、このシーク割込みの処理を行う。次にス
テップS3に進み、割込み順序テーブル8を参照して次
に発生する割込みがリード割込みであることを知るとと
もに、その割込み処理部のアドレスを求める。次にステ
ップS4に進み、割込みテーブル登録部9を起動し、ス
テップS3で求めた割込み処理部のアドレスを割込みテ
ーブル2の、そのエントリに登録する。次にステップS
5に進み、割込みよりの復帰命令(リターン命令)を実
行する。これにより、この後、リード割込みが発生した
場合、割込みテーブル登録部9により登録されたエント
リで示されるアドレスに処理が移行し、対応するリード
割込み処理部が実行することになる。The time point at which control is transferred by the CPU 1 when an external interrupt is generated is indicated by step S1. Here, control is transferred by a seek interrupt. Next, in step S2, the seek interrupt process is performed. Next, in step S3, the interrupt sequence table 8 is referenced to know that the interrupt that will occur next is a read interrupt, and the address of the interrupt processing unit is obtained. Next, in step S4, the interrupt table registration unit 9 is activated, and the address of the interrupt processing unit obtained in step S3 is registered in that entry of the interrupt table 2. Then step S
In step 5, a return instruction (return instruction) from the interrupt is executed. As a result, when a read interrupt occurs thereafter, the process moves to the address indicated by the entry registered by the interrupt table registration unit 9, and the corresponding read interrupt processing unit executes it.
【0026】尚、本発明は、複数の機器から構成される
システムに適用しても1つの機器から成る装置に適用し
ても良い。また、本発明は、システム或は装置に、本発
明で規定された処理を実行するプログラムを供給するこ
とによって達成される場合にも適用できることはいうま
でもない。The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can also be applied to the case where it is achieved by supplying a system or apparatus with a program for executing the processing defined in the present invention.
【0027】以上説明したように本実施例によれば、同
一の外部装置からの複数種の割込みが所定の順序で発生
する場合、これら割込み処理のそれぞれが次に発生する
割込みの種類を認識し、割込みテーブルに次に発生する
割込み処理部のアドレスを登録することができる。これ
により、割込みが発生した時点で、その割込みの種類を
判別する処理が不要になるため、余分のオーバヘッドを
なくし、割込み処理の処理効率を上げることができる。As described above, according to the present embodiment, when a plurality of types of interrupts from the same external device occur in a predetermined order, each of these interrupt processes recognizes the type of interrupt that occurs next. , The address of the interrupt processing unit that occurs next can be registered in the interrupt table. This eliminates the need for the process of determining the type of the interrupt when the interrupt occurs, so that the extra overhead can be eliminated and the processing efficiency of the interrupt process can be improved.
【0028】[0028]
【発明の効果】以上説明したように本発明によれば、現
在発生している割込みの処理時に、次に発生する割込み
を認識して登録することにより、複数種の手順の決まっ
た割込みに対して割込み処理効率を上げることができる
効果がある。As described above, according to the present invention, when an interrupt that is currently occurring is processed and the interrupt that occurs next is recognized and registered, it is possible to deal with interrupts for which a plurality of types of procedures have been determined. This has the effect of improving the interrupt processing efficiency.
【図1】本実施例の割込み処理装置の構成を示す模式図
である。FIG. 1 is a schematic diagram showing a configuration of an interrupt processing device of the present embodiment.
【図2】本実施例の割込み処理装置におけるシーク割込
み処理を示すフローチャートである。FIG. 2 is a flowchart showing seek interrupt processing in the interrupt processing device of the present embodiment.
【図3】本実施例の割込み順序テーブルに登録されてい
るデータの一例を示す図である。FIG. 3 is a diagram showing an example of data registered in an interrupt sequence table of this embodiment.
【図4】従来の割込み処理装置の構成を示す概念図であ
る。FIG. 4 is a conceptual diagram showing a configuration of a conventional interrupt processing device.
【図5】従来の割込み処理装置における割込み処理を示
すフローチャートである。FIG. 5 is a flowchart showing interrupt processing in a conventional interrupt processing device.
1 CPU 2 割込みテーブル 3 メモリ 6 外部装置 7 外部割込み 8 割込み順序テーブル 9 割込みテーブル登録部 11 割込みアドレス 22 割込みテーブルのエントリ 42 装置割込み種別A処理部 43 装置割込み種別B処理部 1 CPU 2 Interrupt Table 3 Memory 6 External Device 7 External Interrupt 8 Interrupt Sequence Table 9 Interrupt Table Registration Unit 11 Interrupt Address 22 Interrupt Table Entry 42 Device Interrupt Type A Processing Unit 43 Device Interrupt Type B Processing Unit
Claims (2)
に登録されたアドレスを参照して割込み処理を行う割込
み処理装置であって、 割込みの発生順序が定められている複数種の割込みに対
して、その割込みの発生順序を記憶している記憶手段
と、 前記記憶手段を参照して、現在の割込み処理の次に発生
する割込みを認識する認識手段と、 前記認識手段により認識された、次に発生する割込みに
対する処理アドレスを前記割込みテーブルに登録する登
録手段と、 を有することを特徴とする割込み処理装置。1. An interrupt processing device for performing an interrupt process by referring to an address registered in an interrupt table for an interrupt that has occurred, and for a plurality of types of interrupts in which the interrupt generation order is determined, A storage unit that stores the order of occurrence of the interrupt, a recognition unit that refers to the storage unit and recognizes an interrupt that occurs next to the current interrupt process, and a next generation that is recognized by the recognition unit. An interrupt processing device for registering a processing address for the interrupt to be registered in the interrupt table.
に登録されたアドレスを参照して割込み処理を行う割込
み処理方法であって、 割込みの発生順序が予め定められている複数種の割込み
に対して、その割込みの発生順序を記憶する工程と、 割込みの発生時、前記発生順序を参照して次に発生する
割込みを認識する工程と、 次に発生する割込みの処理アドレスを割込みテーブルに
登録する工程と、 割込みの発生時、前記割込みテーブルを参照して、その
処理開始アドレスを決定し発生した割込みに対応する割
込みを処理を実行する工程と、 を有することを特徴とする割込み処理方法。2. An interrupt processing method for performing interrupt processing by referring to an address registered in an interrupt table for an interrupt that has occurred, and for a plurality of types of interrupts in which the interrupt generation order is predetermined. , A step of storing the interrupt generation order, a step of recognizing the interrupt which occurs next by referring to the generation order when the interrupt occurs, and a step of registering the processing address of the interrupt which occurs next in the interrupt table And, when an interrupt occurs, referring to the interrupt table, determining the processing start address, and executing an interrupt corresponding to the generated interrupt, the interrupt processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16896492A JPH0612260A (en) | 1992-06-26 | 1992-06-26 | Interrupt processing method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16896492A JPH0612260A (en) | 1992-06-26 | 1992-06-26 | Interrupt processing method and apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0612260A true JPH0612260A (en) | 1994-01-21 |
Family
ID=15877834
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16896492A Withdrawn JPH0612260A (en) | 1992-06-26 | 1992-06-26 | Interrupt processing method and apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0612260A (en) |
-
1992
- 1992-06-26 JP JP16896492A patent/JPH0612260A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS63142431A (en) | Pipeline control system | |
| JPH1196006A (en) | Information processing device | |
| JP2671160B2 (en) | Exception handling method | |
| JP2000194556A (en) | Instruction look-ahead system and hardware | |
| US5579495A (en) | Information processing in which a simulation of parallelism is achieved | |
| JPS59144955A (en) | Information processor | |
| JP3008890B2 (en) | Processing control unit | |
| JPS6022768B2 (en) | Data processing method | |
| JP2544533B2 (en) | Programmable controller sequence instruction processor | |
| JPH05241820A (en) | Micro program controller | |
| JP2860395B2 (en) | Channel command prefetch controller | |
| JPS6119072B2 (en) | ||
| JPS6212538B2 (en) | ||
| JP2594567B2 (en) | Memory access control device | |
| JPS6232507B2 (en) | ||
| JPH08297583A (en) | Interrupt handling apparatus and method thereof | |
| JPS59200325A (en) | Interruption processing system | |
| JPH04181321A (en) | Microprogram loading system | |
| JPH01163837A (en) | Stack consumption predicted control system for language processing system | |
| JPS62119657A (en) | Dma chain control system | |
| JPH05241986A (en) | I / O instruction retry method | |
| JPS59189452A (en) | Queue structure for data processor | |
| JP2000242527A (en) | Control method and apparatus for sequential processing | |
| JPH01240941A (en) | Information processor | |
| JPS61255440A (en) | Program interruption control system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19990831 |