JPH01282646A - Fixing memory access system for segment base register - Google Patents

Fixing memory access system for segment base register

Info

Publication number
JPH01282646A
JPH01282646A JP63114309A JP11430988A JPH01282646A JP H01282646 A JPH01282646 A JP H01282646A JP 63114309 A JP63114309 A JP 63114309A JP 11430988 A JP11430988 A JP 11430988A JP H01282646 A JPH01282646 A JP H01282646A
Authority
JP
Japan
Prior art keywords
task
segment table
segment
base register
preparing
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
JP63114309A
Other languages
Japanese (ja)
Inventor
Yoshiaki Takano
高野 義明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP63114309A priority Critical patent/JPH01282646A/en
Publication of JPH01282646A publication Critical patent/JPH01282646A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To delete a use memory by copying a task corresponding segment table on a memory assigned at the time of preparing a task to a segment table area on the memory assigned to a system uniquely. CONSTITUTION:The title system has a task corresponding segment table preparing mean 1 to execute the preparing processs of the task corresponding segment table at the time of preparing a task and a segment table transferring means 2, and the task corresponding segment table on the memory assigned at the time of preparing the task is copied to a segment table area on the memory assigned to the system uniquely. Consequently, since an area for controlling a system space from an entry 1 of a segment table necessary for a task up to an entry 8 may be the system unique segment table only at the control system to change a segment base register, the use memory can be deleted. Since the segment base register is not changed, the system down can be deleted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、セグメントベースレジスタのメモリアクセス
方式、特にタスク生成時の処理およびタスクディスバッ
チ時の処理を行なうタスク管理に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory access method for segment-based registers, and particularly to task management that performs processing during task creation and processing during task dispatch.

〔従来の技術〕[Conventional technology]

従来のメモリアクセス方式は、セグメントベースレジス
タ(SBR)にタスク用のセグメントテーブル(ST)
アドレスの実アドレスを設定する制御が行なわれていた
The conventional memory access method stores a segment table (ST) for tasks in a segment base register (SBR).
Control was performed to set the real address of the address.

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

このため、本来−つだけ存在すればよいシステム空間用
セグメントテーブルが、タスク毎に必要となり、メモリ
を多く使用することになっていた。
For this reason, the system space segment table, which originally only needs to exist, is required for each task, and a large amount of memory is used.

走行タスクの切替えを行なうタスクディスバッチ処理に
おいて、セグメントベースレジスタにディスバッチ対象
タスクに格納されている自タスク用セグメントテーブル
アドレスを設定することで、タスクによるジョブの実行
が制御されているので、メモリ破壊により、タスクに格
納されているセグメントテーブルアドレスが破壊される
と、セグメントベースレジスタに異常な値を設定するこ
とになりシステムダウンとなる。
In task dispatch processing, which switches running tasks, job execution by tasks is controlled by setting the segment table address for the own task stored in the task to be dispatched in the segment base register. If the segment table address stored in the task is destroyed due to destruction, an abnormal value will be set in the segment base register and the system will go down.

〔課題を解決するための手段〕[Means to solve the problem]

本発明によれば、タスク生成時、タスク対応セグメント
テーブルの作成処理を行なうタスク対応セグメントテー
ブル作成手段と、セグメントテーブル転送手段とを有し
、テスク生成時に割当てられたメモリ上のタスク対応セ
グメントテーブルを、システム一意に割当てられている
メモリ上のセグメントテーブル領域にコピーすることを
特徴とするセグメントベースレジスタの固定化メモリア
クセス方式が得られる。
According to the present invention, the present invention includes a task-corresponding segment table creation means for creating a task-corresponding segment table at the time of task generation, and a segment table transfer means, and the task-corresponding segment table on the memory allocated at the time of task generation. , a fixed memory access method for segment-based registers is obtained, which is characterized by copying to a segment table area in memory that is uniquely allocated to the system.

〔実施例〕〔Example〕

次に1本発明の一実施例を示した図面を参照して、本発
明をより詳細に説明する。
Next, the present invention will be explained in more detail with reference to the drawings showing one embodiment of the present invention.

第1図を参照すると、本発明の一実施例は、タスク対応
にジョブ空間管理のセグメントテーブルを作成するタス
ク対応セグメントテーブル作成手段1と、タスク対応の
ジョブ空間管理のセグメントテーブルの対応領域に転送
または一意のセグメントテーブルのジョブ空間管理(セ
グメントテーブルエントリ9からセグメントテーブルエ
ントリ16)をタスク対応のセグメントテーブル格納領
域に転送するセグメントテーブル転送手段2とから構成
されている。
Referring to FIG. 1, one embodiment of the present invention includes task-compatible segment table creation means 1 that creates a segment table for job space management corresponding to a task, and transfers data to a corresponding area of the segment table for job space management corresponding to a task. Alternatively, the segment table transfer means 2 is configured to transfer job space management of a unique segment table (segment table entry 9 to segment table entry 16) to a segment table storage area corresponding to a task.

第2図はタスク対応セグメント作成手段1の処理内容を
表したものであり、タスクコントロールブロック(TC
B)の確保処理21およびタスクコントロールブロック
内全セグメントテーブルエントリーの初期化処理22か
ら構成されている。
FIG. 2 shows the processing contents of the task corresponding segment creation means 1, and shows the task control block (TC).
It consists of the securing process 21 of B) and the initializing process 22 of all segment table entries in the task control block.

第3図はセグメントテーブル転送手段2の内容を表した
ものであり、入力情報から走行開始か走行終了かの取得
処理31、走行開始か走行終了かの切分は処理32、走
行開始タスクのタスクコントロールブロック内セグメン
トテーブル情報のシステム一意セグメントテーブル域へ
の転送処理33およびシステム一意セグメントテーブル
域のタスク対応セグメントテーブル情報の走行終了タス
クのセグメントテーブル格納域への転送処理34から構
成されている。
FIG. 3 shows the contents of the segment table transfer means 2, in which a process 31 acquires whether the run is to start or end from the input information, a process 32 determines whether to start or end the run, and a task for the start task It consists of a process 33 for transferring the segment table information in the control block to the system-unique segment table area, and a process 34 for transferring the task-corresponding segment table information in the system-unique segment table area to the segment table storage area of the running end task.

次に本発明の動作について説明する。Next, the operation of the present invention will be explained.

(1)タスク対応セグメント作成手段1は、Sv”C命
令により起動されるタスク生成処理の一環として動作す
るものであり、処理21でタスクコントロールブロック
の領域を確保し、処理22で確保したタスクコントロー
ルブロック内全セグメントテーブルエントリー内の初期
化設定処理を行なう。
(1) The task corresponding segment creation means 1 operates as part of the task generation process activated by the Sv''C command, and secures an area for the task control block in process 21, and generates the task control block area secured in process 22. Performs initialization processing for all segment table entries in the block.

(2)セグメントテーブル転送手段2は、走行中のタス
クがCPUを放棄し、ウェイト状態になるとき、または
CPU待ちのレディ状態でタスクデイスパッチャにより
走行中タスクに移行するときにコールされ動作するもの
であり、処理31で入力情報から走行開始か走行終了が
の切分は情報を取得し、処理32で処理31の取得情報
により切分は処理を行ない、走行開始のとき処理33で
、走行開始タスクのタスクコントロールブロック内セグ
メントテーブル情報であるセグメントエントリ9からセ
グメントエントリ16までのジョブ空間情報をシステム
一意のセグメントテーブル域の対応する領域に転送する
。走行終了のとき、処理34でシステム一意のセグメン
トテーブル情報のセグメントエントリ9からセグメント
エントリ16までのジョブ空間管理情報をウェイト状態
にするタスクのタスクコントロールブロック内セグメン
トテーブル情報格納域に転送する。
(2) The segment table transfer means 2 is called and operates when a running task abandons the CPU and enters a wait state, or when a task dispatcher transfers to a running task in a ready state waiting for the CPU. In process 31, information on whether to start or end running is acquired from the input information, and in process 32, processing is performed based on the information obtained in process 31. The job space information from segment entry 9 to segment entry 16, which is the segment table information in the task control block of the start task, is transferred to the corresponding area of the system-unique segment table area. At the end of the run, in step 34, the job space management information from segment entry 9 to segment entry 16 of the system-unique segment table information is transferred to the segment table information storage area in the task control block of the task to be placed in a wait state.

以上で述べたセグメントテーブルの転送手段により、セ
グメントベースレジスタの内容を変更することなく、シ
ステム一意のセグメントテーブルを示すもので固定化し
たままで、システム一意のセグメントテーブルを変更す
ることにより、ジョブ空間の切分は制御を行なう。
By using the segment table transfer method described above, the system-unique segment table can be changed without changing the contents of the segment base register, and the system-unique segment table can be changed. The division of control performs control.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、セグメントベー
スレジスタを変更する制御方式ではタスク毎に必要とし
たセグメントテーブルのエントリ1からエントリ8まで
のシステム空間管理用の領域をシステム一意のセグメン
トテーブルだけでよいので、使用メモリの削減がはかれ
る。また、セグメントベースレジスタの変更を行なわな
いため、セグメントベースレジスタを破壊することがな
く、システムダウンを削減する効果がある。
As explained above, according to the present invention, in the control method that changes the segment base register, the area for system space management from entry 1 to entry 8 of the segment table required for each task is allocated only to the system unique segment table. , so the memory usage can be reduced. Furthermore, since the segment base register is not changed, the segment base register is not destroyed, which has the effect of reducing system downtime.

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

第1図は本発明の一実施例の全体構成図、第2図はタス
ク対応セグメントテーブル作成手段の処理内容を示す図
、第3図はセグメントテーブル転送手段の処理内容を示
す図、第4図は従来のセグメントレジスタの変更による
メモリアクセス方式を示す全体構成図である。 1:タスク対応セグメントテーブル作成手段、2:セグ
メントテーブル転送手段、 代理人 弁理士  内 原  音 菊Z図
FIG. 1 is an overall configuration diagram of an embodiment of the present invention, FIG. 2 is a diagram showing the processing contents of the task-corresponding segment table creation means, FIG. 3 is a diagram showing the processing contents of the segment table transfer means, and FIG. 4 is a diagram showing the processing contents of the segment table transfer means. 1 is an overall configuration diagram showing a conventional memory access method by changing segment registers; FIG. 1: Task-compatible segment table creation means, 2: Segment table transfer means, Patent attorney Uchihara Otokiku Z diagram

Claims (1)

【特許請求の範囲】[Claims] タスク生成時、タスク対応セグメントテーブルの作成処
理を行なうタスク対応セグメントテーブル作成手段と、
セグメントテーブル転送手段とを有し、テスク生成時に
割当てられたメモリ上のタスク対応セグメントテーブル
を、システム一意に割当てられているメモリ上のセグメ
ントテーブル領域にコピーすることを特徴とするセグメ
ントベースレジスタの固定化メモリアクセス方式。
task-compatible segment table creation means for creating a task-compatible segment table when a task is generated;
Fixing of a segment base register comprising a segment table transfer means and copying a task-corresponding segment table in memory allocated at the time of task generation to a segment table area in memory uniquely allocated in the system. memory access method.
JP63114309A 1988-05-10 1988-05-10 Fixing memory access system for segment base register Pending JPH01282646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63114309A JPH01282646A (en) 1988-05-10 1988-05-10 Fixing memory access system for segment base register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63114309A JPH01282646A (en) 1988-05-10 1988-05-10 Fixing memory access system for segment base register

Publications (1)

Publication Number Publication Date
JPH01282646A true JPH01282646A (en) 1989-11-14

Family

ID=14634642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63114309A Pending JPH01282646A (en) 1988-05-10 1988-05-10 Fixing memory access system for segment base register

Country Status (1)

Country Link
JP (1) JPH01282646A (en)

Similar Documents

Publication Publication Date Title
JP3253303B2 (en) Context switching apparatus and method
JP5131269B2 (en) Multi-processing system
JPH04284548A (en) Data base exclusive controlling system
JPH01282646A (en) Fixing memory access system for segment base register
EP0223463B1 (en) Multiprocessor data processing system
JPH0448352A (en) File decentralization system
JP2553526B2 (en) Multitasking processor
JPS62169243A (en) Program loading system
JP2001265750A (en) Memory controller
KR960012658B1 (en) Information processing system
JPH02139630A (en) Online task exchange device
JPH03111961A (en) Program loading system for multi-cpu
JPS58142451A (en) Interruption control system
JPH113231A (en) Software processing method
JPS63180156A (en) Program loading system
JPS63173129A (en) Information processor
JPH05173856A (en) Automatic file assignment system
JPS63245754A (en) Input/output control system for information processing system
JPH05342021A (en) Multitask computer
JPH02181831A (en) Program control method
JPH0782443B2 (en) Task management method for operating system
JPH0667903A (en) Pseudo task swapping system
JPH03224031A (en) Program starting system
JPH038010A (en) Spool print control system
JPS63113739A (en) Overlay system for os