JPH0690671B2 - I / O device access method - Google Patents

I / O device access method

Info

Publication number
JPH0690671B2
JPH0690671B2 JP62231826A JP23182687A JPH0690671B2 JP H0690671 B2 JPH0690671 B2 JP H0690671B2 JP 62231826 A JP62231826 A JP 62231826A JP 23182687 A JP23182687 A JP 23182687A JP H0690671 B2 JPH0690671 B2 JP H0690671B2
Authority
JP
Japan
Prior art keywords
input
interrupt
output
interrupt processing
address
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 - Fee Related
Application number
JP62231826A
Other languages
Japanese (ja)
Other versions
JPS6474650A (en
Inventor
紀子 桑本
金一郎 増田
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 JP62231826A priority Critical patent/JPH0690671B2/en
Publication of JPS6474650A publication Critical patent/JPS6474650A/en
Publication of JPH0690671B2 publication Critical patent/JPH0690671B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Description

【発明の詳細な説明】 概要 直接記憶アクセス方式をとるコンピュータシステムの入
出力装置のアクセス方法に関し、 高速な入出力処理ができる入出力装置のアクセス方法を
提供することを目的とし、 応用プログラムからの入出力要求により、物理入出力命
令をチャネル装置に発行し、チャネル装置からの割込み
により、割込みベクタテーブルを参照して、該当レベル
の割込み処理ルーチンに制御を渡し、割込み処理ルーチ
ンで装置管理テーブルを参照して割込み処理部を起動す
るようにした直接記憶アクセス方式をとるコンピュータ
システムの入出力装置のアクセス方法において、割込み
処理部で、割込みベクタテーブルの該当レベルの割込み
処理ルーチンのアドレスを、現在実行中の割込み処理部
の先頭アドレスに書換え、チャネル装置からの割込みに
より、割込み処理部に直接制御を渡し、入出力処理の完
了と同時に割込みベクタテーブルの該当レベルのアドレ
スを元の割込み処理ルーチンのアドレスに復元して構成
する。
The present invention relates to an input / output device access method for a computer system that employs a direct storage access method, and an object of the present invention is to provide an input / output device access method capable of high-speed input / output processing. A physical I / O instruction is issued to the channel device in response to an I / O request, an interrupt from the channel device refers to the interrupt vector table, and control is passed to the interrupt processing routine of the relevant level, and the device management table is set in the interrupt processing routine. In the access method of the input / output device of the computer system which adopts the direct storage access method in which the interrupt processing unit is activated by reference, the interrupt processing unit currently executes the address of the interrupt processing routine of the corresponding level in the interrupt vector table. Channel device When the input / output processing is completed, the address of the corresponding level in the interrupt vector table is restored to the address of the original interrupt processing routine by the interrupt from the control section, and the input / output processing is completed.

産業上の利用分野 本発明は直接記憶アクセス方式をとるコンピュータシス
テムの入出力装置のアクセス方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an access method for an input / output device of a computer system that employs a direct storage access method.

コンピュータシステムを効率良く利用しようとする時、
問題となるのが演算とフロッピーディスク等の入出力装
置の動作時間のアンバランスである。セントラル・プロ
セッサ・ユニット(以下CPUという)の処理速度に対し
て入出力動作は機械的な動作を伴うため著しく遅い。こ
れによりプログラムの実行途中に入出力命令があるとCP
Uが遊んでしまうため、CPUとは機能的に独立したチャネ
ル装置等を設けた直接記憶アクセス方式をとるシステム
が広く利用されている。CPUは入出力動作の開始をチャ
ネル装置等に指示すると、チャネル装置等からの入出力
完了割込みがあるまで他の命令を取出して実行するの
で、CPUが遊んでしまうことがなく、効率の良い処理が
行える。
When trying to use a computer system efficiently,
The problem is the imbalance between the operation time and the operation time of input / output devices such as floppy disks. The input / output operations are mechanically slow compared to the processing speed of the central processor unit (hereafter referred to as the CPU), which is extremely slow. As a result, if there is an input / output instruction during program execution, CP
Because U is idle, a system that uses a direct memory access method that is provided with a channel device that is functionally independent of the CPU is widely used. When the CPU instructs the channel device to start the I / O operation, other instructions are fetched and executed until there is an I / O completion interrupt from the channel device, so the CPU does not idle and efficient processing Can be done.

また、消防設備の出動管理システムや座席予約システム
等のように遠方で発生したデータを受けて即時に処理
し、結果を送り帰すリアルタイムシステム等において
は、応答時間(レスポンスタイム)に対する要求が厳し
く、前記のチャネル装置等からの割込み後の処理等の入
出力処理の効率化及び高速化が要求されている。
Also, in a real-time system such as a dispatch control system of firefighting equipment and a seat reservation system that immediately receives data that has occurred in a distant place and sends back the result, the request for response time (response time) is strict, There is a demand for more efficient and faster input / output processing such as processing after interruption from the channel device.

従来の技術 従来の直接記憶アクセス方式をとるコンピュータシステ
ムの入出力装置のアクセス方法を第2図に示す。
2. Description of the Related Art FIG. 2 shows a conventional method of accessing an input / output device of a computer system which employs a direct storage access method.

応用プログラム10が入出力装置12を使用するときは、OS
(オペレーティング・システム)の各タスクのスケジュ
ール管理を行なっているスケジュール管理部14を介して
入出力実行部16に対して、入出力要求18を発行する。入
出力実行部16は、発行された入出力要求18に対し、入出
力装置12の状態を調べ、その入出力装置12が他のタスク
によって使用中であればこれを持たせ、使用可能であれ
ば、物理入出力命令20を入出力装置12を制御するチャネ
ル装置22に発行し、入出力動作を起動する。
When the application program 10 uses the I / O device 12, the OS
An input / output request 18 is issued to the input / output execution unit 16 via the schedule management unit 14 that manages the schedule of each task (operating system). The I / O execution unit 16 checks the status of the I / O device 12 in response to the issued I / O request 18, and if the I / O device 12 is in use by another task, it holds it and is ready to use it. For example, the physical I / O command 20 is issued to the channel device 22 that controls the I / O device 12, and the I / O operation is started.

チャネル装置22は入出力装置と主記憶装置間でデータを
所定の単位(フロッピーディスク等においては512,1024
バイト等、端末やラインプリンタ等においては1文字
等)で転送し、転送が終了すると割込み信号24をCPUに
送ると共に、割込みの各レベルに対応する割込み処理ル
ーチン26のアドレス28等が記憶されている割込みベクタ
テーブル30を参照して、該当レベルの割込み処理ルーチ
ン26に制御を渡す(矢印32)。
The channel device 22 transfers data between the input / output device and the main storage device in a predetermined unit (512,1024 in a floppy disk or the like).
When the transfer is completed, the interrupt signal 24 is sent to the CPU, and the address 28 of the interrupt processing routine 26 corresponding to each interrupt level is stored. Control is passed to the interrupt processing routine 26 of the relevant level by referring to the interrupt vector table 30 (arrow 32).

割込み処理ルーチン26では、各入出力装置あるいはグル
ープ化した入出力装置毎に割込みレジスタのアドレスや
割込み処理部のアドレス等が記憶されている装置管理テ
ーブルを参照して、割込み処理部34を起動する(矢印3
6)。割込み処理部34では割込みレジスタのクリア等の
割込みに対する処理37を行い、応用プログラム10の入出
力要求18に対する入出力が完了しているか否かをチェッ
クして、完了している場合は入出力完了待ち状態にある
入出力実行部16に完了を通知する(矢印38)。次に、制
御を割込み処理ルーチン26に戻し(矢印40)、割込み処
理ルーチン26からスケジュール管理部14へ復帰する(矢
印42)。スケジュール管理部14では、この入出力処理と
実行待ちの他のタスクとの優先度を調べ、入出力処理の
優先度が高ければ再び入出力実行部16に制御を渡す。
In the interrupt processing routine 26, the interrupt processing unit 34 is activated by referring to the device management table that stores the address of the interrupt register and the address of the interrupt processing unit for each input / output device or grouped input / output device. (Arrow 3
6). The interrupt processing unit 34 performs processing 37 for the interrupt such as clearing the interrupt register, checks whether the input / output for the input / output request 18 of the application program 10 is completed, and if it is completed, completes the input / output. The input / output execution unit 16 in the waiting state is notified of the completion (arrow 38). Next, control is returned to the interrupt processing routine 26 (arrow 40), and the interrupt processing routine 26 is returned to the schedule management unit 14 (arrow 42). The schedule management unit 14 checks the priorities of this input / output process and other tasks waiting to be executed, and if the priority of the input / output process is high, the control is passed again to the input / output execution unit 16.

入出力実行部16では、入出力完了が通知されているか否
かを調べ、通知されていたら応用プログラムに完了を通
知し(矢印44)、入出力完了が通知されていなければ再
度物理入出力命令20をチャネル装置22に発行し、以下同
様の処理過程を経て応用プログラム10からの入出力要求
18に対する入出力が完了するまでこれらの処理を繰返す
ことにより、入出力処理が実行されるようになってい
る。
The I / O execution unit 16 checks whether or not I / O completion has been notified, and if so, notifies the application program of completion (arrow 44). If I / O completion has not been notified, a physical I / O instruction is issued again. 20 is issued to the channel device 22, and the input / output request from the application program 10 is made through the same processing steps.
By repeating these processes until the input / output to / from 18 is completed, the input / output process is executed.

発明が解決しようとする問題点 しかし、上述したような従来の直接記憶アクセス方式を
とるコンピュータシステムの入出力装置のアクセス方法
では、装置管理テーブルの参照等の割込み処理ルーチン
における処理に時間がかかり、入出力処理が遅いという
問題点があった。
Problems to be Solved by the Invention However, in the access method of the input / output device of the computer system that adopts the conventional direct storage access method as described above, it takes time to perform the process in the interrupt processing routine such as the reference of the device management table, There was a problem that input / output processing was slow.

本発明はこのような点に鑑みて、成されたものであり、
その目的とするところは、高速な入出力処理ができる入
出力装置のアクセス方法を提供することである。
The present invention has been made in view of the above points,
It is an object of the invention to provide an access method for an input / output device capable of high-speed input / output processing.

問題点を解決するための手段 第1図は本発明の直接記憶アクセス方式をとるコンピュ
ータシステムの入出力装置のアクセス方法の原理図であ
る。
Means for Solving the Problems FIG. 1 is a principle diagram of an access method of an input / output device of a computer system adopting the direct storage access method of the present invention.

応用プログラム50が入出力装置52を使用するときは、OS
の各タスクのスケジュール管理を行なっているスケジュ
ール管理部54を介して入出力実行部56に対して、入出力
要求58を発行する。入出力実行部56は、発行された入出
力要求58に対し、入出力装置52の状態を調べ、その入出
力装置52が他のタスクによって使用中であればこれを待
たせ、使用可能であれば、物理入出力命令60を入出力装
置52を制御するチャネル装置62に発行し、入出力動作を
起動する。
When the application program 50 uses the I / O device 52,
The input / output request 58 is issued to the input / output execution unit 56 via the schedule management unit 54 that manages the schedule of each task. The I / O execution unit 56 checks the status of the I / O device 52 in response to the issued I / O request 58, and if the I / O device 52 is being used by another task, waits for this to be used. For example, the physical input / output instruction 60 is issued to the channel device 62 that controls the input / output device 52 to start the input / output operation.

チャネル装置62は入出力装置と主記憶装置間でデータを
所定の単位(フロッピーディスク等においては512,1024
バイト等、端末やラインプリンタ等においては1文字
等)で転送し、転送が終了すると割り込み信号64をCPU
に送ると共に、割込みの各レベルに対応する割込み処理
ルーチン66のアドレス68等が記憶されている割込みベク
タテーブル70を参照して、該当レベルの割込み処理ルー
チン66に制御を渡す(矢印72)。割込み処理ルーチン66
では、各入出力装置あるいはグループ化した入出力装置
毎に割込みレジスタのアドレスや割込み処理部のアドレ
ス等が記憶されている装置管理テーブルを参照して、入
出力装置に対応した割込み処理部74を起動する(矢印7
6)。割込み処理部74ではまず、割込みベクタテーブル7
0の該当レベルの割込み処理ルーチン66のアドレス68
を、現在実行中の割込み処理部74の先頭アドレスに書換
え(78参照)、割込みレジスタのクリア等の割込みに対
する処理(80参照)を行い、応用プログラム50による入
出力要求58に対する入出力処理が完了しているか否かを
チェックして、完了している場合は、割込みベクタテー
ブル70の該当アドレス68を元の割込み処理ルーチン66の
アドレスに復元して(82参照)、入出力完了待ち状態に
ある入出力実行部56に完了を通知する(矢印84)。次
に、制御を割込み処理ルーチン66に渡し(矢印86)、割
込み処理ルーチン66からスケジュール管理部54へ復帰す
る(矢印88)。スケジュール管理部54では、この入出力
処理と実行待ちの他のタスクとの優先度を調べ、この入
出力処理の優先度が高ければ再び入出力実行部56に制御
を渡す。
The channel device 62 transfers data between the input / output device and the main storage device in a predetermined unit (512,1024 in a floppy disk or the like).
Bytes, etc. are transferred as 1 character in terminals or line printers, etc., and when the transfer is completed, the interrupt signal 64 is sent to the CPU.
To the interrupt processing routine 66 corresponding to each level of the interrupt and the address 68 of the interrupt processing routine 66 is stored, and control is passed to the interrupt processing routine 66 of the corresponding level (arrow 72). Interrupt processing routine 66
Then, the interrupt processing unit 74 corresponding to the input / output device is referenced by referring to the device management table in which the address of the interrupt register, the address of the interrupt processing unit, etc. are stored for each input / output device or for each grouped input / output device. Start (Arrow 7
6). In the interrupt processing unit 74, first, the interrupt vector table 7
Address 68 of interrupt processing routine 66 of the corresponding level of 0
To the start address of the interrupt processing unit 74 currently being executed (see 78), and processing for interrupts such as clearing the interrupt register (see 80) is completed, and the input / output processing for the input / output request 58 by the application program 50 is completed. If it is completed, the corresponding address 68 of the interrupt vector table 70 is restored to the original address of the interrupt processing routine 66 (see 82), and the I / O completion wait state is set. The input / output execution unit 56 is notified of the completion (arrow 84). Next, control is passed to the interrupt processing routine 66 (arrow 86), and the interrupt processing routine 66 returns to the schedule management unit 54 (arrow 88). The schedule management unit 54 checks the priorities of this input / output process and other tasks waiting to be executed, and if the priority of this input / output process is high, the control is passed again to the input / output execution unit 56.

入出力実行部56では、入出力完了が通知されているか否
かを調べ、通知されていたら応用プログラム50に完了を
通知し(矢印90)、入出力完了が通知されていなければ
再度物理入出力命令60をチャネル装置62に発行する。
The I / O execution unit 56 checks whether or not the I / O completion is notified, and if so, notifies the application program 50 of the completion (arrow 90). If the I / O completion is not notified, the physical I / O is again performed. Issue instruction 60 to channel device 62.

チャネル装置62はCPUに割込み信号64を送り、割込みベ
クタテーブル70を参照すると、該当レベルのアドレスは
直前に実行した割込み処理部74の先頭アドレスに書換え
られているので、制御は割込み処理部74に渡される(矢
印92)。以下同様の処理を応用プログラム50からの入出
力要求58に対する入出力処理が完了するまで繰返し、入
出力処理を行うようにして、入出力処理の高速化を達成
する。
When the channel device 62 sends the interrupt signal 64 to the CPU and refers to the interrupt vector table 70, the address of the relevant level is rewritten to the start address of the interrupt processing unit 74 executed immediately before, so control is given to the interrupt processing unit 74. Passed (arrow 92). Thereafter, similar processing is repeated until the input / output processing for the input / output request 58 from the application program 50 is completed and the input / output processing is performed, thereby achieving the speedup of the input / output processing.

作用 本発明によれば、応用プログラムの入出力要求により処
理が行われ、割込み処理部で、割込みベクタテーブルの
該当レベルのアドレスを現在実行中の割込み処理部の先
頭アドレスに書換え、入出力完了時に元の割込み処理ル
ーチンのアドレスに戻すようにしたので、2回め以降の
処理の時に、入出力実行部で物理入出力命令を発行し、
チャネル装置で所定の処理が完了した後、割込みベクタ
テーブルを参照し制御を渡す際に、割込み処理ルーチン
を通らずに直接割込み処理部に制御が渡るので、割込み
処理ルーチンで実行される装置管理テーブルの参照等を
省略することができ、入出力処理の速度を向上すること
ができる。
Effect According to the present invention, the processing is performed by the input / output request of the application program, and the interrupt processing unit rewrites the address of the corresponding level of the interrupt vector table to the start address of the interrupt processing unit currently being executed, and when the input / output is completed. Since the address is returned to the original interrupt processing routine address, the physical I / O instruction is issued by the I / O execution unit during the second and subsequent processing.
After the predetermined processing is completed in the channel device, when the control is passed by referring to the interrupt vector table, the control is directly passed to the interrupt processing unit without passing through the interrupt processing routine. Therefore, the device management table executed in the interrupt processing routine Can be omitted, and the speed of input / output processing can be improved.

発明の効果 本発明は以上詳述したように構成したので、入出力処理
の一部の処理をスキップすることができ、入出力処理を
高速化することができるという効果を奏する。
EFFECTS OF THE INVENTION Since the present invention is configured as described above in detail, there is an effect that a part of the input / output processing can be skipped and the input / output processing can be speeded up.

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

第1図は本発明の原理説明図、 第2図は従来技術の説明図である。 10、50……応用プログラム、 12、52……入出力装置、 14、54……スケジュール管理部、 16、56……入出力実行部、 22、62……チャネル装置、 26、66……割込み処理ルーチン、 30、70……割込みベクタテーブル、 34、74……割込み処理部。 FIG. 1 is an explanatory diagram of the principle of the present invention, and FIG. 2 is an explanatory diagram of a conventional technique. 10, 50 …… Application program, 12, 52 …… I / O device, 14, 54 …… Schedule management unit, 16, 56 …… I / O execution unit, 22, 62 …… Channel device, 26, 66 …… Interrupt Processing routine, 30, 70 ... Interrupt vector table, 34, 74 ... Interrupt processing unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】応用プログラム(50)からの入出力要求
(58)により、入出力実行部(56)で物理入出力命令
(60)をチャネル装置(62)に発行し、チャネル装置
(62)からの割込み(64)により、割込みベクタテーブ
ル(70)を参照して、該当レベルの割込み処理ルーチン
(66)に制御を渡し、割込み処理ルーチン(66)で装置
管理テーブルを参照して割込み処理部(74)を起動する
ようにした直接記憶アクセス方式をとるコンピュータシ
ステムの入出力装置のアクセス方法において、 割込み処理部(74)で、割込みベクタテーブル(70)の
該当レベルの割込み処理ルーチン(66)のアドレスを、
現在実行中の割込み処理部(74)の先頭アドレスに書換
え、チャネル装置(62)からの割込み(64)により、割
込み処理ルーチン(66)を介さずに割込み処理部(74)
に直接制御を渡すようにし、 入出力処理の完了と同時に割込みベクタテーブル(70)
の該当レベルのアドレスを元の割込み処理ルーチン(6
6)のアドレスに復元することを特徴とする入出力装置
のアクセス方法。
1. An input / output request (58) from an application program (50) issues a physical input / output instruction (60) to a channel device (62) in an input / output execution part (56), and the channel device (62). From the interrupt vector table (70), the control is passed to the interrupt processing routine (66) of the corresponding level, and the interrupt processing routine (66) refers to the device management table and the interrupt processing unit In an access method of an input / output device of a computer system that employs a direct storage access method in which (74) is activated, an interrupt processing routine (66) of a corresponding level of an interrupt vector table (70) in an interrupt processing unit (74). Address of
The interrupt processing unit (74) is rewritten to the start address of the interrupt processing unit (74) that is currently being executed, and the interrupt (64) from the channel device (62) bypasses the interrupt processing routine (66).
Control is passed directly to the interrupt vector table (70) when the I / O processing is completed.
The interrupt handling routine (6
A method for accessing an input / output device, which is characterized by restoring to the address of 6).
JP62231826A 1987-09-16 1987-09-16 I / O device access method Expired - Fee Related JPH0690671B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62231826A JPH0690671B2 (en) 1987-09-16 1987-09-16 I / O device access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62231826A JPH0690671B2 (en) 1987-09-16 1987-09-16 I / O device access method

Publications (2)

Publication Number Publication Date
JPS6474650A JPS6474650A (en) 1989-03-20
JPH0690671B2 true JPH0690671B2 (en) 1994-11-14

Family

ID=16929624

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62231826A Expired - Fee Related JPH0690671B2 (en) 1987-09-16 1987-09-16 I / O device access method

Country Status (1)

Country Link
JP (1) JPH0690671B2 (en)

Also Published As

Publication number Publication date
JPS6474650A (en) 1989-03-20

Similar Documents

Publication Publication Date Title
US6553487B1 (en) Device and method for performing high-speed low overhead context switch
JPH0594317A (en) Input output interrupt processing system of virtual machine
JP2821345B2 (en) Asynchronous I / O control method
JPH0690671B2 (en) I / O device access method
JPH10260850A (en) Virtual computer system
JP2003005987A (en) Emulation device
JPS58192152A (en) System for monitoring completion of process
JP2961542B2 (en) Data processing system
JP2581327B2 (en) Virtual machine I / O interrupt handling method
JP2872042B2 (en) Shared memory access method
JPS6252900B2 (en)
JPS61288232A (en) Output instruction control system
JPH02282855A (en) Dma transfer control method
JPH0375832A (en) Virtual machine control system
JPH03182945A (en) Transfer system for data in main storage
JPH02181849A (en) Information processing device provided with mimic function of input/output device
JP2001014177A (en) Method for processing asynchronous data input and output and program recording medium
JPH0612364A (en) Data transfer circuit
JPH0380339A (en) Information processor having input/output device simulating function
JPS6347861A (en) Input/output control method for electronic computer
JPH0348938A (en) Virtual computer system
JPH06259380A (en) Remote procedure calling device
JPH0772874B2 (en) Interrupt receiving device
JPH08212082A (en) Data processor and interruption control method
JPH0380340A (en) Information processor having input/output device simulating function

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees