JP3163196B2 - Instruction interruption information storage control method in virtual storage control - Google Patents

Instruction interruption information storage control method in virtual storage control

Info

Publication number
JP3163196B2
JP3163196B2 JP08058893A JP8058893A JP3163196B2 JP 3163196 B2 JP3163196 B2 JP 3163196B2 JP 08058893 A JP08058893 A JP 08058893A JP 8058893 A JP8058893 A JP 8058893A JP 3163196 B2 JP3163196 B2 JP 3163196B2
Authority
JP
Japan
Prior art keywords
instruction
address
area
memory
interruption 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.)
Expired - Fee Related
Application number
JP08058893A
Other languages
Japanese (ja)
Other versions
JPH06295265A (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
PFU Ltd
Original Assignee
Fujitsu Ltd
PFU 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, PFU Ltd filed Critical Fujitsu Ltd
Priority to JP08058893A priority Critical patent/JP3163196B2/en
Publication of JPH06295265A publication Critical patent/JPH06295265A/en
Application granted granted Critical
Publication of JP3163196B2 publication Critical patent/JP3163196B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ・システ
ムの仮想記憶制御技術に関するものであり、特にアドレ
ス変換処理時に変換例外が検出された際の命令中断情報
の効率的な格納制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a virtual storage control technique for a computer system, and more particularly to a method for efficiently storing instruction interruption information when a translation exception is detected during an address translation process.

【0002】[0002]

【従来の技術】仮想記憶方式のコンピュータ・システム
では、アプリケーションプログラム中の命令のアドレス
は仮想空間の論理アドレスで表されており、命令実行時
にメモリの実アドレスに変換してメモリアクセスが行わ
れる。仮想空間はセグメントおよびページを用いて管理
され、実メモリの実空間に対して動的に割り当てる仮想
記憶制御が行われる。
2. Description of the Related Art In a computer system of a virtual storage system, the address of an instruction in an application program is represented by a logical address in a virtual space, and is converted into a real address of a memory when the instruction is executed, and the memory is accessed. The virtual space is managed using segments and pages, and virtual storage control is performed to dynamically allocate the real space to the real space of the real memory.

【0003】アプリケーションプログラム中で発行され
た命令の論理アドレスを実アドレスに変換する処理にお
いて、変換先の実アドレスが存在しない場合、つまりそ
の仮想アドレスを含む仮想空間の仮想ページに対して実
メモリの実ページの割り当てが行われていないときは、
アドレス変換が不可能であるため変換例外として検出さ
れ、OSに割り込みが行われて実ページの割り当て処理
が行われる。
In the process of converting a logical address of an instruction issued in an application program into a real address, if there is no real address to be converted, that is, a virtual page of a virtual space containing the virtual address is stored in a real memory. When there is no real page allocation,
Since address translation is impossible, it is detected as a translation exception, and the OS is interrupted to perform real page allocation processing.

【0004】ところで単純な機能を実行する命令では、
処理の途中で変換例外が発生した場合でも実ページを割
り当てた後で再度最初から実行させることが可能であ
る。しかし、多くの機能を持たせた命令の処理の途中で
変換例外が発生した場合は、命令を最初から再実行する
ことができないことが多い。たとえば1つの領域の複数
のデータを他の領域に1命令で転送する機能をもつMO
VE(領域転送)命令の場合、途中のデータの転送先ア
ドレスの変換で変換例外が発生するとその時点では転送
元の領域の転送済みデータの一部が既に破壊されていて
命令の再実行が不可能となっていることがある。このた
め、変換例外による割り込みで命令処理を中断し、その
ときのCPU状態を復元するのに必要な中断情報を退避
しておいて、実ページの割り当て後にCPU状態を復元
し、命令処理を中断した時点から再開する制御が行われ
ている。次にその制御の詳細を説明する。
[0004] By the way, an instruction for executing a simple function is:
Even if a conversion exception occurs during the processing, it is possible to execute again from the beginning after allocating a real page. However, if a conversion exception occurs during the processing of an instruction having many functions, it is often impossible to re-execute the instruction from the beginning. For example, an MO having a function of transferring a plurality of data in one area to another area with one instruction.
In the case of a VE (area transfer) instruction, if a conversion exception occurs during the conversion of the transfer destination address of the intermediate data, at that point, part of the transferred data in the transfer source area has already been destroyed and the instruction cannot be re-executed. Sometimes it is possible. For this reason, the instruction processing is interrupted by the interruption due to the conversion exception, the interruption information necessary for restoring the CPU state at that time is saved, the CPU state is restored after the real page is allocated, and the instruction processing is interrupted. Control is performed to restart from the point in time. Next, details of the control will be described.

【0005】図3は従来例における命令中断情報の格納
制御方法を示す説明図である。図において、1はCPU
であり、ハードウェア機能を表している。2はOS(オ
ペレーティングシステム)であり、3はメモリ、4は命
令中断情報が退避される固定領域、5はタスクを管理す
る制御情報が設定されるタスク制御領域(TCB)を示
している。またないしは動作手順を表す番号であ
る。また図4は、固定領域とタスク制御領域の情報内容
を示す。
FIG. 3 is an explanatory diagram showing a method of controlling storage of instruction interruption information in a conventional example. In the figure, 1 is a CPU
And represents a hardware function. Reference numeral 2 denotes an OS (operating system), 3 denotes a memory, 4 denotes a fixed area in which instruction interruption information is saved, and 5 denotes a task control area (TCB) in which control information for managing tasks is set. It is a number representing an operation procedure. FIG. 4 shows the information contents of the fixed area and the task control area.

【0006】CPUは、命令処理中にアクセスする仮想
アドレスに実メモリが割り当てられていない場合、まず
命令処理を中断し、変換例外割り込みを発生させるが
、この時、同時に変換例外を発生した仮想アドレスと
命令の処理を再開するために必要なCPU内部の情報
(中断情報)をメモリ上の固定領域4に退避し、中断
状態であることを記憶するためプログラム状態語(PS
W)内に中断を表示するフラグ(IRフラグ)をセット
する。
When the CPU does not allocate a real memory to a virtual address to be accessed during instruction processing, the CPU first interrupts the instruction processing and generates a conversion exception interrupt. The information (interruption information) inside the CPU necessary to restart the instruction processing is saved in the fixed area 4 on the memory, and the program status word (PS
A flag (IR flag) indicating interruption is set in W).

【0007】オペレーティング・システム(OS)は変
換例外割り込みが発生すると例外を起こした仮想アドレ
スに実メモリを割り当てる処理を行う。この処理で入
出力が必要な場合は、中断情報をタスク制御領域(TC
B)の退避領域に転送して退避し、例外を発生したタス
クを待ち状態にして他のタスクを実行状態にする。
When a conversion exception interrupt occurs, an operating system (OS) performs a process of allocating a real memory to the virtual address where the exception has occurred. If input / output is required in this process, the interruption information is stored in the task control area (TC
The task is transferred to the save area B) and saved, and the task in which the exception has occurred is put into a waiting state, and another task is put into an execution state.

【0008】OSは、実メモリの割り当てが終了すると
中断情報をTCBからメモリ固定領域に復元し、例外を
発生させたタスクを実行状態に戻し、制御をタスクに渡
す。
When the real memory allocation is completed, the OS restores the interruption information from the TCB to the memory fixed area, returns the task in which the exception has occurred to the execution state, and passes control to the task.

【0009】CPUは、PSWのIRフラグによって中
断状態であることを判断し、中断情報から命令処理の状
態を復元し、例外が発生した所から処理を再開する。
ここで中断された命令を再開するために必要な中断情報
はCPUを構成するハードウェアのアーキテクチャによ
って異なってくる。一般にそのデータ量は数バイトから
数百バイトの範囲となる。たとえばMOVE命令の場合
は、アドレス2個とカウンタ1個分の領域が必要であ
り、10進系の演算命令の場合は、中間演算結果として
16桁のデータを格納する必要があるためデータ量は多
くなる。従来の仮想記憶制御装置においては、中断情報
を格納するための領域はCPUアーキテクチャで一義的
に規定されたメモリ固定領域(固定アドレス/固定長)
であった。
The CPU determines from the IR flag of the PSW that it is in the interrupted state, restores the instruction processing state from the interrupt information, and resumes processing from the point where the exception occurred.
Here, the interruption information necessary for resuming the interrupted instruction differs depending on the architecture of the hardware constituting the CPU. Generally, the amount of data ranges from several bytes to several hundred bytes. For example, in the case of the MOVE instruction, an area for two addresses and one counter is required, and in the case of a decimal operation instruction, the data amount is 16 since it is necessary to store 16-digit data as an intermediate operation result. More. In the conventional virtual storage control device, the area for storing the interruption information is a memory fixed area (fixed address / fixed length) uniquely defined by the CPU architecture.
Met.

【0010】このため、OSは、実際の中断情報の有効
長に係わらず、規定された固定長の領域をTCBなどの
領域に退避し、そこから復元しているが、退避/復元す
る情報に多くの無駄な部分を含む場合があった。また、
CPUを再設計した結果、CPUの内部状態を規定する
情報が増加した場合、中断情報も増加し、OSを変更す
る必要があった。
For this reason, the OS saves the specified fixed-length area to an area such as the TCB and restores it from the area regardless of the actual effective length of the interruption information. In some cases, it contained a lot of waste. Also,
As a result of the redesign of the CPU, if the information defining the internal state of the CPU increases, the interruption information also increases, and the OS needs to be changed.

【0011】[0011]

【発明が解決しようとする課題】本発明は、アドレス変
換の際の変換例外発生時に命令中断情報を格納するOS
の処理において無駄な転送処理をなくすとともに、OS
を改変することなく共通に適用できるCPUのアーキテ
クチャの範囲を拡大できるようにOSの処理を最適化す
ることを目的としている。
SUMMARY OF THE INVENTION The present invention relates to an OS for storing instruction interruption information when a translation exception occurs during address translation.
In addition to eliminating unnecessary transfer processing in
It is an object of the present invention to optimize the processing of the OS so as to expand the range of the architecture of the CPU that can be applied in common without modifying the OS.

【0012】[0012]

【課題を解決するための手段】本発明では、命令中断情
報を格納する退避領域として、CPUの命令中断情報の
最大情報量に見合った大きさの領域を、OSがタスク固
有の領域に設定する。一方、メモリの固定領域には、そ
のアドレスのみを格納してCPUから参照可能にする。
これによって、従来のように固定領域に命令中断情報を
格納してからタスク制御ブロック(TCB)などにさら
に転送する処理は不要となる。
According to the present invention, the OS sets an area having a size corresponding to the maximum information amount of the instruction interruption information of the CPU as a task-specific area as a save area for storing instruction interruption information. . On the other hand, in the fixed area of the memory, only the address is stored and can be referred to from the CPU.
This eliminates the need for processing for storing instruction suspension information in a fixed area and further transferring the information to a task control block (TCB) as in the related art.

【0013】また本発明では、あらかじめ特殊命令を用
いて命令中断情報の最大情報量をOSに通知しておき
OSは通知された最大情報量の値に基づいてタスク固有
領域内に設定する命令中断情報退避領域の大きさを定め
る。これにより、CPUのアーキテクチャの違いにより
命令中断情報の最大情報量が変わっても、OS自体を改
変することなく容易に適合させることができる。
In the present invention, a special instruction is used in advance.
And notifies the OS of the maximum information amount of the instruction interruption information,
The OS determines the size of the instruction interruption information save area to be set in the task unique area based on the notified maximum information amount value. Thus, even if the maximum information amount of the instruction interruption information changes due to a difference in the architecture of the CPU, it is possible to easily adapt without changing the OS itself.

【0014】それによる本発明の構成は、仮想記憶方式
のコンピュータ・システムで、かつ、発行された命令の
論理アドレスを実アドレスに変換するアドレス変換で変
換例外が検出された場合に中断される中央処理装置の状
態に関する命令中断情報をメモリ上に退避するシステム
の仮想記憶制御における命令中断情報格納制御方法にお
いて、OSは、タスク生成時に上記命令中断情報を格納
するメモリ上の退避領域をタスク固有領域内に設けると
ともに、該退避領域のアドレスをメモリ上の固定領域ま
たは中央処理装置の制御レジスタに設定し、中央処理装
置は、上記変換例外の検出時に命令処理を中断して上記
固定領域または中央処理装置の制御レジスタに設定され
ているアドレスを読み出し、該アドレスにより定まるメ
モリ上の退避領域に命令中断情報を格納する処理を行
い、中断した命令処理を再開する場合は上記固定領域
または中央処理装置の制御レジスタに設定されているア
ドレスにより定まるメモリ上の命令中断情報を読み出し
て、中央処理装置の内部状態を復旧する処理を行うこと
を特徴とする。さらにまた上記構成において、あらかじ
め特殊命令を用いて命令中断情報の最大情報量をOSに
通知しておき、OSは生成したタスク毎に該通知された
命令中断情報の最大情報量に見合う大きさの退避領域を
メモリ上のタスク固有領域内に設定することをも特徴と
する
According to the configuration of the present invention, a computer system of a virtual memory system, and a central processing unit which is interrupted when a translation exception is detected in an address translation for translating a logical address of an issued instruction into a real address. A system for saving instruction interruption information on the state of a processing unit in a memory
In the instruction interruption information storage control method in the virtual storage control , the OS provides a save area in the memory for storing the instruction interruption information in the task-specific area when the task is generated , It sets the address in the control register of the fixed region or the central processing unit in the memory, a central processing instrumentation
When the above conversion exception is detected, the instruction processing is interrupted to read the address set in the fixed area or the control register of the central processing unit, and the instruction is interrupted to the save area on the memory determined by the address. When the information processing is performed and the interrupted instruction processing is resumed, the instruction interruption information on the memory determined by the address set in the fixed area or the address set in the control register of the central processing unit is read, and the central processing unit It is characterized by performing processing for restoring the internal state. Furthermore, in the above configuration,
The maximum amount of instruction interruption information to the OS using special instructions
The OS has been notified for each task created.
A save area of a size commensurate with the maximum amount of instruction interruption information
The feature is that it is set in the task specific area on the memory.
I do .

【0015】図1は、本発明の原理説明図である。図に
おいて、1は仮想記憶方式のCPUであり、アプリケー
ションプログラムの命令を実行する際に命令中の論理ア
ドレスを実アドレスに変換するアドレス変換機構を備え
ている。該当する実ページが存在せず変換例外が検出さ
れると、その命令処理を中断し、OSに割り込む。実ペ
ージの割り当て処理が完了すると中断状態を復元し、命
令処理を再開する。
FIG. 1 is a diagram illustrating the principle of the present invention. In FIG. 1, reference numeral 1 denotes a CPU of a virtual storage system, which has an address conversion mechanism for converting a logical address in an instruction into a real address when executing an instruction of an application program. If the corresponding real page does not exist and a conversion exception is detected, the instruction processing is interrupted and the OS is interrupted. When the real page allocation processing is completed, the suspended state is restored, and the instruction processing is resumed.

【0016】2はOSであり、仮想空間を実メモリに割
り当てる仮想記憶制御機能をもつ。また変換例外発生時
にCPU1の命令中断情報を退避するための領域を、そ
の最大情報量として指定された大きさでかつCPU1か
ら参照可能に設定する機能をもつ。
Reference numeral 2 denotes an OS, which has a virtual storage control function for allocating a virtual space to a real memory. Further, it has a function of setting an area for saving instruction interruption information of the CPU 1 at the time of occurrence of a conversion exception with a size designated as the maximum information amount and referable to the CPU 1.

【0017】3はメモリであり、CPU1に対する主記
憶として機能する。6はタスク固有領域であり、OS2
がタスク毎に資源として獲得するタスク制御ブロック
(TCB)などの領域である。
Reference numeral 3 denotes a memory, which functions as a main memory for the CPU 1. Reference numeral 6 denotes a task-specific area.
Is an area such as a task control block (TCB) acquired as a resource for each task.

【0018】7は命令中断情報退避領域であり、OS2
によって設定され、変換例外発生時にCPU1によって
命令中断情報が格納される。8はメモリの固定領域であ
り、命令中断情報退避領域7の先頭アドレスがOS2に
よって設定され、CPU1によって命令中断時あるいは
命令中断復旧時に参照され、退避領域7にアクセスが行
われる。
Reference numeral 7 denotes an instruction interruption information save area, which is provided by OS2.
The instruction interruption information is stored by the CPU 1 when a conversion exception occurs. Reference numeral 8 denotes a fixed area of the memory. The start address of the instruction interrupt information save area 7 is set by the OS 2 and is referred to by the CPU 1 at the time of instruction interruption or instruction interruption recovery, and the save area 7 is accessed.

【0019】[0019]

【作用】図1に示されている本発明の動作を、図中の手
順番号ないしを参照して説明する。
The operation of the present invention shown in FIG. 1 will be described with reference to the procedure numbers and the like in the figure.

【0020】OS2は、アプリケーションプログラムの
ジョブ実行に際して、タスクを生成する毎にタスク資源
の1つとしてメモリ3にタスク固有領域6を獲得し、同
時に命令中断情報退避領域7の設定と、固定領域8への
アドレスの格納とを行う。OS2が設定する退避領域
7の大きさはコマンドにより外部から指定可能にされ、
CPUアーキテクチャの相違あるいは変更などによる命
令中断情報の最大情報量の変化に容易に適応できるよう
にする。
When executing a job of an application program, the OS 2 acquires a task specific area 6 in the memory 3 as one of task resources each time a task is generated, and simultaneously sets an instruction interruption information save area 7 and a fixed area 8 And store the address. The size of the save area 7 set by the OS 2 can be externally specified by a command,
It is possible to easily adapt to a change in the maximum information amount of instruction interruption information due to a difference or change in CPU architecture.

【0021】CPU1は、実行中の命令のアドレス変換
で論理アドレスを実アドレスに変換できずに、変換例外
を検出すると、命令処理を中断し、固定領域8からア
ドレスを読み出し、そのアドレスで退避領域7にアクセ
スして命令中断情報を格納し、OS2に割り込みを上
げる。
When the CPU 1 does not convert the logical address to the real address by the address conversion of the instruction being executed and detects a conversion exception, the CPU 1 interrupts the instruction processing, reads the address from the fixed area 8, and uses the address as the save area. 7 to store the instruction interruption information and raise an interrupt to OS2.

【0022】OS2は、変換例外による割り込みによ
り、変換例外となった変換対象の論理アドレスを含む仮
想ページに実ページを割り当て、必要であればページ・
イン/アウトの入出力処理を行う。この割り込み処理
が終了すると、CPU1は、再び固定領域8のアドレス
により退避領域7にアクセスし、命令中断情報を読み出
してCPUの中断状態を復元し、命令処理を再開する
The OS 2 assigns a real page to a virtual page including a logical address to be converted which has become a conversion exception by interruption due to a conversion exception, and if necessary,
Performs in / out input / output processing. When this interrupt processing is completed, the CPU 1 accesses the save area 7 again using the address of the fixed area 8, reads the instruction interruption information, restores the interrupted state of the CPU, and resumes the instruction processing.

【0023】このような動作を行うことによって、変換
例外の割り込み処理でOSが入出力処理を行う場合も命
令中断情報を再退避する必要がないため、処理時間が短
縮され、また命令中断情報の最大情報量をOSに指定で
きるため命令中断情報の最大情報量のみが異なるような
種々のCPUに対して同じOSを適用することが可能と
なる。
By performing such an operation, even when the OS performs input / output processing in the interrupt processing of the conversion exception, it is not necessary to save the instruction interruption information again, so that the processing time is shortened, and Since the maximum information amount can be specified to the OS, the same OS can be applied to various CPUs that differ only in the maximum information amount of the instruction interruption information.

【0024】[0024]

【実施例】図2に本発明の実施例を示す。図2におい
て、1はCPU、2はOS、3はメモリ、8は中断情報
退避領域のアドレスを格納する固定領域、9は中断情報
の最大バイト数をOSに通知するための特殊命令であ
り、10は中断情報の最大バイト数を設定するために用
意された固定領域である。11−0,11−1,…,1
1−Nは、それぞれタスク0,タスク1,…,タスクN
の資源つまりTCBなどのタスク固有の領域である。1
2−0,12−1,…,12−Nは、それぞれタスク
0,タスク1,…,タスクNの資源内に割り付けられた
中断情報退避領域であり、中断情報の最大バイト数分の
大きさをもつ。
FIG. 2 shows an embodiment of the present invention. In FIG. 2, 1 is a CPU, 2 is an OS, 3 is a memory, 8 is a fixed area for storing the address of the interrupt information save area, 9 is a special instruction for notifying the OS of the maximum number of bytes of the interrupt information, Reference numeral 10 denotes a fixed area prepared for setting the maximum number of bytes of the interruption information. 11-0, 11-1, ..., 1
1-N are task 0, task 1,..., Task N, respectively.
, Ie, a task-specific area such as TCB. 1
, 12-N are suspend information save areas allocated in the resources of task 0, task 1, ..., task N, respectively, and have a size corresponding to the maximum number of bytes of the suspend information. With.

【0025】特殊命令9は、オぺランド・アドレスで指
定したメモリの固定領域10にオペランドで指定した中
断情報最大バイト数の値を格納する命令であり、管理者
はこの特殊命令を発行して、CPU1のアーキテクチャ
に最適の中断情報最大バイト数をOS2に指示する。
The special instruction 9 is an instruction for storing the value of the maximum number of bytes of the interruption information specified by the operand in the fixed area 10 of the memory specified by the operand address, and the administrator issues this special instruction. Then, the OS 2 is instructed on the maximum number of bytes of interruption information that is optimal for the architecture of the CPU 1.

【0026】OS2は、タスクを生成するごとにメモリ
3上にタスク資源を11−0,11−1,…,11−N
のように割り付ける。その際、固定領域10を参照して
先に格納されている中断情報最大バイト数を読み出し、
その値の大きさ分の中断情報退避領域を、12−0,1
2−1,…,12−Nのようにそれぞれ各タスク資源1
1−0,11−1,…,11−N内に設定する。実行状
態にあるタスクの中断情報退避領域へのポインタとなる
アドレスは、OS2によって固定領域8に格納される。
OS2が実行するタスクを切り替えるとき、固定領域8
内のアドレスもタスク固有の退避領域に対応させて更新
する。CPU1のファームウェアあるいは制御プログラ
ムは、どのタスクを実行しているときでも、アドレス変
換時に変換例外が検出されると、固定領域8にアクセス
し、アドレスを読み出してそれがポイントするタスク資
源内の退避領域に中断情報を格納する。
Each time the OS 2 generates a task, the OS 2 stores the task resources on the memory 3 as 11-0, 11-1,.
Assign as follows. At that time, the maximum number of bytes of the interruption information stored earlier is read by referring to the fixed area 10, and
The interruption information saving area corresponding to the size of the value is set to 12-0, 1
Each task resource 1 such as 2-1,..., 12-N
1-0, 11-1,..., 11-N. The address serving as a pointer to the interruption information save area of the task in the execution state is stored in the fixed area 8 by the OS 2.
When the task executed by the OS 2 is switched, the fixed area 8
The addresses in the table are also updated corresponding to the task-specific save area. Regardless of which task is being executed, the firmware or the control program of the CPU 1 accesses the fixed area 8 when a translation exception is detected at the time of address translation, reads the address, and saves the address in the task resource pointed to by the address. To store the suspend information.

【0027】OS2が、変換例外の割り込み処理で変換
に失敗した論理アドレスのページに実ページを割り当て
た後、ディスク装置との間で入出力処理を行う必要が生
じた場合、実行中であったタスクを待ち状態にして他の
実行可能なタスクを起動するが、待ち状態にしたタスク
のメモリ資源の退避領域には既に中断情報が格納されて
いるので、図3の従来例のような転送処理を行う必要は
ない。
If the OS2 needs to perform input / output processing with the disk device after allocating a real page to the page of the logical address for which the conversion failed in the interrupt processing of the conversion exception, it was being executed. The task is placed in a waiting state and another executable task is started. However, since the suspend information is already stored in the save area of the memory resource of the task in the waiting state, the transfer processing as in the conventional example of FIG. 3 is performed. No need to do.

【0028】[0028]

【発明の効果】本発明によれば、変換例外が検出された
ときの中断情報は、固定領域にではなくタスク固有の領
域にCPUによって直接格納されるため処理が簡潔とな
り、効率化される。
According to the present invention, the interruption information when the conversion exception is detected is directly stored by the CPU in the task-specific area instead of the fixed area, so that the processing is simplified and the efficiency is improved.

【0029】また本発明では、CPUのアーキテクチャ
が変更されて中断情報の最大情報量が変化しても、前述
した特殊命令を発行してOSに新しい最大情報量を容易
に通知することができる。そのためOS自体を修正する
ことなくCPUアーキテクチャの変更あるいは異なるア
ーキテクチャのCPUに適応させることができ開発負担
を軽減させることができる。
According to the present invention, even if the maximum information amount of the interruption information changes due to a change in the architecture of the CPU, the above-described special instruction can be issued to notify the OS of the new maximum information amount easily. Therefore, it is possible to adapt to a change in the CPU architecture or a CPU having a different architecture without modifying the OS itself, thereby reducing the development burden.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明実施例の説明図である。FIG. 2 is an explanatory diagram of an embodiment of the present invention.

【図3】従来例の説明図である。FIG. 3 is an explanatory diagram of a conventional example.

【図4】従来例におけるメモリの固定領域とタスク制御
領域の情報内容の説明図である。
FIG. 4 is an explanatory diagram of information contents of a fixed area and a task control area of a memory in a conventional example.

【符号の説明】[Explanation of symbols]

1 CPU 2 OS 3 メモリ 6 タスク固有領域(TCB) 7 命令中断情報退避領域 8 メモリの固定領域 DESCRIPTION OF SYMBOLS 1 CPU 2 OS 3 Memory 6 Task specific area (TCB) 7 Instruction interrupt information save area 8 Fixed area of memory

───────────────────────────────────────────────────── フロントページの続き (72)発明者 荒木 悟 石川県河北郡宇ノ気町字宇野気ヌ98番地 の2 株式会社ピーエフユー内 (72)発明者 野田 敬人 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 浦田 正博 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 昭53−84540(JP,A) 特開 昭54−1873(JP,A) 特開 昭61−117635(JP,A) 特開 平5−143331(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 12/08 - 12/12 G06F 9/46 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Satoru Araki 98-2, Unoki-nu, Unoki-cho, Hebei-gun, Ishikawa Pref. Within Fujitsu Limited (72) Inventor Masahiro Urata 1015 Uedanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Within Fujitsu Limited (56) References JP-A-53-84540 (JP, A) JP-A-54-1873 (JP, A) JP-A-61-117635 (JP, A) JP-A-5-143331 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 12/08-12/12 G06F 9 / 46

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 仮想記憶方式のコンピュータ・システム
で、かつ、発行された命令の論理アドレスを実アドレス
に変換するアドレス変換で変換例外が検出された場合に
中断される中央処理装置の状態に関する命令中断情報を
メモリ上に退避するシステムの仮想記憶制御における命
令中断情報格納制御方法において、OSは、タスク生成時に上記 命令中断情報を格納するメ
モリ上の退避領域をタスク固有領域内に設けるととも
に、該退避領域のアドレスをメモリ上の固定領域または
中央処理装置の制御レジスタに設定し、中央処理装置は、上記変換例外の検出時に命令処理を中
断して上記 固定領域または中央処理装置の制御レジスタ
に設定されているアドレスを読み出し、該アドレスによ
り定まるメモリ上の退避領域に命令中断情報を格納する
処理を行い、中断した命令処理を再開する場合は上記
固定領域または中央処理装置の制御レジスタに設定され
ているアドレスにより定まるメモリ上の命令中断情報を
読み出して、中央処理装置の内部状態を復旧する処理を
行うことを特徴とする仮想記憶制御における命令中断情
報格納制御方法。
1. An instruction relating to a state of a central processing unit which is interrupted when a translation exception is detected in an address translation for translating a logical address of an issued instruction into a real address in a computer system of a virtual storage system. In virtual memory control of a system that saves suspend information on memory,
In the instruction interruption information storage control method , the OS provides a save area in the memory for storing the instruction interruption information when the task is generated in the task specific area, and stores the address of the save area in a fixed area in the memory or the central processing unit. The central processing unit performs instruction processing when the above conversion exception is detected.
Then, the address set in the fixed area or the control register of the central processing unit is read, the instruction interruption information is stored in the save area on the memory determined by the address, and the interrupted instruction processing is resumed. In the case, the virtual storage control is characterized by reading out the instruction interruption information on the memory determined by the address set in the fixed area or the control register of the central processing unit and restoring the internal state of the central processing unit. Control method for storing instruction interruption information.
【請求項2】 請求項1において、あらかじめ特殊命令
を用いて命令中断情報の最大情報量をOSに通知してお
き、OSは生成したタスク毎に該通知された命令中断情
報の最大情報量に見合う大きさの退避領域をメモリ上の
タスク固有領域内に設定することを特徴とする仮想記憶
制御における命令中断情報格納制御方法。
2. The method according to claim 1, wherein the special instruction is set in advance.
To notify the OS of the maximum amount of instruction interruption information
The OS sets an evacuation area of a size corresponding to the maximum information amount of the notified instruction interruption information in a task-specific area on a memory for each generated task. Storage control method.
JP08058893A 1993-04-07 1993-04-07 Instruction interruption information storage control method in virtual storage control Expired - Fee Related JP3163196B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08058893A JP3163196B2 (en) 1993-04-07 1993-04-07 Instruction interruption information storage control method in virtual storage control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08058893A JP3163196B2 (en) 1993-04-07 1993-04-07 Instruction interruption information storage control method in virtual storage control

Publications (2)

Publication Number Publication Date
JPH06295265A JPH06295265A (en) 1994-10-21
JP3163196B2 true JP3163196B2 (en) 2001-05-08

Family

ID=13722509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08058893A Expired - Fee Related JP3163196B2 (en) 1993-04-07 1993-04-07 Instruction interruption information storage control method in virtual storage control

Country Status (1)

Country Link
JP (1) JP3163196B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102569368B1 (en) 2016-01-06 2023-08-21 나가키 세이키 코포레이션 리미티드 Wire gripper

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5029333B2 (en) * 2007-12-07 2012-09-19 日本電気株式会社 Computer system, virtual storage control method, and program
JP6123626B2 (en) * 2013-10-08 2017-05-10 富士通株式会社 Process resumption method, process resumption program, and information processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102569368B1 (en) 2016-01-06 2023-08-21 나가키 세이키 코포레이션 리미티드 Wire gripper

Also Published As

Publication number Publication date
JPH06295265A (en) 1994-10-21

Similar Documents

Publication Publication Date Title
JP3546678B2 (en) Multi-OS configuration method
JPS62165250A (en) Virtual memory
US8738890B2 (en) Coupled symbiotic operating system
WO2001097029A2 (en) Method and apparatus for implementing an extended virtual machine
JP2010108271A (en) Method of controlling virtual machine, virtualization program, and virtual machine system
JPH0566621B2 (en)
JP4026667B2 (en) Multi-OS configuration method
CN114253713A (en) Asynchronous batch processing method and system based on reactivor
JP5131269B2 (en) Multi-processing system
JP3163196B2 (en) Instruction interruption information storage control method in virtual storage control
JP2001216172A (en) Multi-os constituting method
JP2001290678A (en) Asynchronous memory dump executing system
JPS603229B2 (en) Information processing method
JPS6097440A (en) Virtual multiprocessor device
JP3209560B2 (en) Interrupt management method for microprocessor system
JPH07114517A (en) Program execution control system of multiprocessor system
JPS63172346A (en) Stack allocating method
JP2535584B2 (en) Real memory fixed processing computer
JPH0554141B2 (en)
JP2020135555A (en) Processing execution method
JPH02219142A (en) Memory control system
JP2020086871A (en) Information processor, program, operating system, execution method, and program correction method
JPH076045A (en) Memory managing method of multi-processing system
JP2004038995A (en) Multiple operation system configuration method
JPH03182945A (en) Transfer system for data in main storage

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010206

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees