JPH02268348A - Data processing system - Google Patents

Data processing system

Info

Publication number
JPH02268348A
JPH02268348A JP9137289A JP9137289A JPH02268348A JP H02268348 A JPH02268348 A JP H02268348A JP 9137289 A JP9137289 A JP 9137289A JP 9137289 A JP9137289 A JP 9137289A JP H02268348 A JPH02268348 A JP H02268348A
Authority
JP
Japan
Prior art keywords
memory
value
memory mapper
mapper
save
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
JP9137289A
Other languages
Japanese (ja)
Inventor
Ryuichi Negishi
根岸 龍一
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP9137289A priority Critical patent/JPH02268348A/en
Publication of JPH02268348A publication Critical patent/JPH02268348A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To quickly save and restore a memory mapper value to secure relations between the memory mapper value and the processing even at the time of multiple interrupts or the like by saving and restoring the memory mapper value by hardware independently of a CPU. CONSTITUTION:When a save instruction is issued, a transfer control part 16 independent of a hardware device 11 only for save and restore of a data processing system reads the memory mapper value from a memory mapper register 10 and stores it in a FIFO buffer 14. This memory mapper value is written in the position pointed by a pointer part 13 of the memory part 14 and the value of the pointer value 13 is incremented by one. The memory mapper value is saved and restored independently of a CPU 1 and software at a high speed which is not restricted by the instruction execution speed of the CPU 1 and is determined by the hardware device 11.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、メモリマツピングによるメモリ拡張を行うデ
ータ処理システムに関し、特に、メモリマツピングのだ
めのメモリマノパー値の退避・復元に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a data processing system that expands memory by memory mapping, and more particularly to saving and restoring memory manoper values for memory mapping.

従来の技術 第2図はこの種のデータ処理システムの従来例の概略構
成図であって、1はCPU、2はローカルバス、3はC
PUIの物理アドレス空間(O8管理下主記憶空間)に
置かれたローカルメモリ、4はキーボード、5はシステ
ムバス、6と7はそれぞれ拡張メモリ空間に置かれたシ
ステムメモリとデイスプレィ8のフレームメモリである
。9はCPU物理アドレス空間に拡張メモリ空間をマツ
ピングするためのメモリマツパ−である。
BACKGROUND ART FIG. 2 is a schematic configuration diagram of a conventional example of this type of data processing system, in which 1 is a CPU, 2 is a local bus, and 3 is a C
4 is the keyboard, 5 is the system bus, 6 and 7 are the system memory located in the extended memory space, and the frame memory of display 8, respectively. be. 9 is a memory mapper for mapping the extended memory space to the CPU physical address space.

CPU物理アドレス空間がIME、拡張メモリ空間が2
56MBの場合のメモリマツパ−9について、第3図に
よシ説明する。この場合、メモリマツパ−9は12ビツ
トのメモリマノパーレジスタ10を例えば16個内蔵し
、各メモリマツパ−レジスタlOはI10デバイスとし
てCPUIによシアクセスされる。
CPU physical address space is IME, extended memory space is 2
The memory mapper 9 in the case of 56 MB will be explained with reference to FIG. In this case, the memory mapper 9 includes, for example, 16 12-bit memory mapper registers 10, and each memory mapper register 10 is accessed by the CPU as an I10 device.

CPUIより拡張メモリ (システムメモリ6またはフ
レームメモリ7をアクセスする場合、ローカルバス2上
のアドレス信号の上位4ビツト(A16、・・・、A1
9)がデコードされて一つのメモリマツパ−レジスタl
Oが有効になシ、それに書き込まれているメモリマツパ
−値(12ピツト)がシステムバス5上の四ピットのア
ドレス信号の上位12ピツ)(A16.・・・、  A
27)に出力される。ローカルバス2上のアドレス信号
の下位16ビツト(AOl・・・、A15)はそのまま
システムバス5上のアドレス信号の下位16ビツ) (
AO,・・・ A15)となる。
When accessing the extended memory (system memory 6 or frame memory 7) from the CPU, the upper 4 bits of the address signal on the local bus 2 (A16, ..., A1
9) is decoded into one memory mapper register l.
If O is enabled, the memory mapper value (12 pits) written in it is the upper 12 pits of the 4-pit address signal on the system bus 5) (A16..., A
27). The lower 16 bits (AOl..., A15) of the address signal on the local bus 2 are directly used as the lower 16 bits of the address signal on the system bus 5) (
AO,...A15).

さて、このようなメモリマツパ−レジスタ10の値すな
わちメモリマツパ−値は、しばしば退避・復元の操作が
必要となる。例えば割込み処理においてメモリマツパ−
値の変更が一般に必要であシ、割込みによシ中断された
処理を正常に再開できるようにするために、割込み処理
プログラムの初めの段階でメモリマツパ−値を退避し、
次に割込み処理で使用するメモリマツパ−値をメモリマ
ツパ−レジスタlOにセットし、割込み処理プログラム
の最後の段階で退避しておいたメモリマツパ−値に復元
する必要がある。
Now, the value of the memory mapper register 10, that is, the memory mapper value, often needs to be saved and restored. For example, in interrupt processing, the memory mapper
Since changing the value is generally necessary, the memory mapper value is saved at the beginning of the interrupt handling program so that processing interrupted by an interrupt can be resumed normally.
Next, it is necessary to set the memory mapper value used in the interrupt processing in the memory mapper register IO and restore it to the memory mapper value saved at the last stage of the interrupt processing program.

従来、このようなメモリマツパ−値の退避・復元はソフ
トウェアによって実行されるようになりていた。メモリ
マツパ−値の退避領域はローカルメモリ3上に確保され
、退避時にそのアドレスが記憶され、復元時にはそのア
ドレスに基づいて退避領域からメモリマツパ−値が読み
出されてメモリマツパ−レジスタlOに書き込まれる。
Conventionally, such saving and restoring of memory mapper values has been performed by software. A save area for the memory mapper value is secured on the local memory 3, its address is stored at the time of save, and at the time of restore, the memory mapper value is read from the save area based on the address and written to the memory mapper register IO.

発明が解決しようとする課題 しかし、メモリマツパ−値の退避・復元のためにかなシ
の命令ステップ数が必要でソフトウェアの負担が大きく
、また、退避・復元操作の速度は命令実行速度に制約さ
れ、その操作時間のために割込み処理などが遅れるとい
う問題があった。特に割込み処理については、退避・復
元操作時間のための遅れによシ多重割込みが発生する確
率が増加し、その結果、割込み処理がさらに遅れるとい
う悪循環を招いている。
Problems to be Solved by the Invention However, a large number of instruction steps are required to save and restore memory mapper values, which places a heavy burden on the software, and the speed of the save and restore operations is limited by the instruction execution speed. There was a problem in that interrupt processing was delayed due to the operation time. In particular, with regard to interrupt processing, the probability of multiple interrupts occurring increases due to the delay due to the save/restore operation time, resulting in a vicious cycle in which interrupt processing is further delayed.

第4図はこのような多重割込みの例(4重割込み)を示
すフローチャートである。
FIG. 4 is a flowchart showing an example of such multiple interrupts (quadruple interrupts).

最初の割込み■が発生すると、その割込み処理プログラ
ムの初めの段階で、メモリマツパ−値の退避処理が実行
され、次に割込み処理で使用するメモリマツパ−値をメ
モリマッパーレジスタニ書き込む処理が実行され、その
後に実質的な割込み処理が実行され、最後にメモリマツ
パ−値の復元処理が実行されることになる。しかし、ソ
フトウェアに依存したメモリマツパ−値の退避・復元の
処理に時間がかかシ割込み処理時間が増加すると、途中
で例えば図示のようなタイミングで別の割込み■が発生
する確率が増加する。この割込み■の処理中においても
途中で別の割込み■が発生する確率が増加し、また同様
に割込み■が発生する。
When the first interrupt ■ occurs, the process to save the memory mapper value is executed at the beginning of the interrupt processing program, then the process to write the memory mapper value used in the interrupt processing to the memory mapper register, and then Substantive interrupt processing is then executed, and finally memory mapper value restoration processing is executed. However, it takes time to save and restore the memory mapper value depending on the software, and as the interrupt processing time increases, the probability that another interrupt (2) will occur at the timing shown in the figure increases, for example. Even during the processing of this interrupt (2), the probability that another interrupt (2) will occur increases, and another interrupt (2) will occur in the same way.

このように、メモリマツパ−値の退避・復元の操作によ
り割込み処理時間が増加すると、多重割込みが発生しゃ
すくなシ、発生時期の早い割込み(■など)の処理が著
しく遅くなってしまう。
As described above, when the interrupt processing time increases due to the operation of saving and restoring the memory mapper value, multiple interrupts are less likely to occur, and the processing of early-occurring interrupts (such as ■) becomes extremely slow.

本発明は、メモリマツピングによるメモリ拡張を行うデ
ータ処理システムにおいて、メモリマツパ−値の退避・
復元の操作による上述の割込み処理の遅れなどの問題点
を解決し、かつソフトウェアの負担を軽減することを目
的とする。
The present invention provides memory mapper value saving and
The purpose is to solve problems such as the delay in interrupt processing described above due to restoration operations, and to reduce the burden on software.

課題を解決するための手段 本発明は上述の課題を解決するため、メモリマツピング
によシメモリ拡張を行うデータ処理システムにおいて、
メモリマツパ−値を蓄積するための・・−ドウエアの先
入れ・後出しく後入れ・先出し)バッファを設けるとと
もに、メモリマツパ−値の退避命令または復元命令がC
PUよシ発行されるとCPUとは独立に作動し、退避命
令に応答してメモリマツパ−レジスタに保持されている
メモリマツパ−値を読み取って前記先入れ・後出しバッ
ファに格納し、また復元命令に応答して前記先入れ・後
出しバッファよシメモリマッパー値ヲ取シ出して前記メ
モリマツパ−レジスタに設定fるハードウェア手段を設
けるという構成を備えたものである。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a data processing system that expands memory by memory mapping.
In addition to providing a buffer (first-in, last-out, last-in, first-out) for storing memory mapper values, a memory mapper value save or restore instruction is
When issued by the PU, it operates independently of the CPU, reads the memory mapper value held in the memory mapper register in response to the save command, stores it in the first-in/last-out buffer, and also responds to the restore command. In response, a hardware means is provided for fetching a memory mapper value from the first-in/last-out buffer and setting it in the memory mapper register.

作用 メモリマノパー値の退避・復元の操作はCPUとは独立
したハード・ウェアによって行われるので、その操作を
容易に高速化できる。また、メモリマツパ−値は先入れ
・後出し方式で蓄積されるため、多重割込み時のように
メモリマノパー値の退避・復元が多重的に行われる場合
においても、ソフトウェアは退避・復元の先後関係を意
識せず、単純に退避命令と復元命令を発行するだけでよ
い。しだがって、メモリマノパー値の退避・復元操作を
必要とする割込み処理等を高速化でき、かつソフトウェ
アの負担を軽減できる。
Since the operation of saving and restoring the working memory manoper value is performed by hardware independent of the CPU, the operation can be easily speeded up. In addition, since memory mapper values are accumulated using a first-in, last-out method, even when memory mapper values are saved and restored multiple times, such as in the case of multiple interrupts, the software is aware of the relationship between the save and restore. Instead, it is sufficient to simply issue an evacuation command and a restore command. Therefore, it is possible to speed up interrupt processing, etc. that require operations to save and restore memory manoper values, and to reduce the burden on software.

実施例 第1図は本発明の一実施例によるデータ処理システムの
概略構成図であって、第2図中の符号と同一の符号は同
等部を示す。
Embodiment FIG. 1 is a schematic configuration diagram of a data processing system according to an embodiment of the present invention, and the same reference numerals as those in FIG. 2 indicate equivalent parts.

このデータ処理システムは、メモリマノパー9内のメモ
リマノパーレジスタ10の値すなわちメモリマツパ−値
の退避・復元のために、専用のハードウェア装置11が
追加されている以外は、第2図に示した従来システムの
ハードウェア構成と同様である。
This data processing system is similar to the conventional data processing system shown in FIG. It is similar to the system hardware configuration.

このハードウェア装置11において、12はメモリマツ
パ−値の退避用メモリ部、13は退避用メモリ部12の
格納位置および取シ出し位置を管理するポインタ部であ
シ、これらは先入れ・後出しく後入れ・先出し)バッフ
ァ14を構成するものである。
In this hardware device 11, 12 is a memory section for saving memory mapper values, and 13 is a pointer section for managing the storage position and retrieval position of the saving memory section 12, and these are first-in/last-out. This constitutes the buffer 14 (last in/first out).

15ハローカルパス2(CPUバス)ニ対スルインタフ
ェース・レジスタ部、16は転送制御部である。
15 is a local path 2 (CPU bus) interface register section, and 16 is a transfer control section.

インタフェース・レジスタ部15は、入出力レジスタに
CPUIよりマツピング対応のビットが立てられること
によ、9、CPUIにより(ソフトウェアにより)発行
された命令が退避命令でちるか復元命令であるかを転送
制御部16へ知らせる。なお、退避命令と復元命令が発
行されたときは、その実行が終了するまでCPUIはロ
ーカルバス2を開放する。
The interface register unit 15 performs transfer control to determine whether the instruction issued by the CPUI (by software) is a save instruction or a restore instruction by setting a mapping compatible bit in the input/output register from the CPUI. Notify Department 16. Note that when the save command and the restore command are issued, the CPUI releases the local bus 2 until the execution of the commands is completed.

転送制御部16は、退避命令が発行されたときには、メ
モリマツパ−レジスタlO(あらかじめ使用宣言がなさ
れたもの)よシメモリマツバー値を読み取弘それを先入
れ・後出しバッファ14へ格納する制御を行う。このメ
モリマツパ−値は、退避メモリ部14のポインタ部13
によって指示された位置に書き込まれ、ポインタ部13
の値は1だけインクリメントする。
When an evacuation command is issued, the transfer control unit 16 performs control to read the memory mapper value from the memory mapper register IO (which has been declared in use in advance) and store it in the first-in/last-out buffer 14. conduct. This memory mapper value is stored in the pointer section 13 of the save memory section 14.
is written to the position indicated by the pointer section 13.
The value of is incremented by 1.

退避命令が発行されたときには、転送制御部16は、先
入れ・後出しバッファ14より一つのメモリマノパー値
を取り出し、それをメモリマツパ−レジスタ10(使用
宣言がなされたもの)へ書き込む制御を行う。この時に
先入れ・後出しバッファ14よシ取シ出されるメモリマ
ツパ−値は、退避メモリ部12のポインタ部13によっ
て指示されている位置の一つ前の位置に格納されたもの
で、これは最後に格納されたメモリマツパ−値である。
When a save instruction is issued, the transfer control unit 16 takes out one memory mapper value from the first-in/last-out buffer 14 and controls writing it into the memory mapper register 10 (which has been declared for use). The memory mapper value taken out from the first-in/last-out buffer 14 at this time is the one stored in the location immediately before the location indicated by the pointer section 13 of the save memory section 12, and this is the last one. This is the memory mapper value stored in .

この取り出し後にポインタ部13の値は1だけデクリメ
ントする。
After this extraction, the value of the pointer section 13 is decremented by 1.

このようなメモリマンパー値の退避・復元操作は、CP
U1と独立に、すなわちソフトウェアとは独立に実行さ
れる。したがって、CPU1の命令実行速度に制約され
ずに、ノ・−ドウエア装置11によって決まる速度で退
避・復元を高速に行い、割込み処理などのメモリマノパ
ー値の退避・復元を伴う処理を高速化することができる
This kind of memory management value saving/restoring operation is performed by CP
It is executed independently of U1, ie independently of the software. Therefore, it is possible to perform fast saving and restoring at a speed determined by the hardware device 11 without being restricted by the instruction execution speed of the CPU 1, and to speed up processing that involves saving and restoring memory manoper values such as interrupt processing. can.

また、ソフトウェアは退避命令と復元命令を発行するだ
けでよい。これは第4図に示したような多重割込み処理
の場合でも同様であって、プログラム側では多重割込み
であることや割込みの先後を全く意識せずに単純に退避
命令と復元命令を発行すればよい。このようにしても、
後から退避されたメモリマツパ−値はど先に復元される
ため、メモリマツパ−値と処理との対応は保証される。
Further, the software only needs to issue an evacuation command and a restore command. This is the same in the case of multiple interrupt processing as shown in Figure 4, and if the program side simply issues save and restore instructions without being aware of the multiple interrupts or the destination of the interrupt, good. Even if you do this,
Since the memory mapper value saved later is restored at some point, the correspondence between the memory mapper value and the process is guaranteed.

このように、ソフトウェアの負担も軽減される。In this way, the burden on the software is also reduced.

なお、退避用メモリ部12は、ローカルメモリ3上に設
けてもよい。
Note that the save memory section 12 may be provided on the local memory 3.

発明の効果 以上の説明から明らかなように、本発明は、メモリマツ
パ−値の退避・復元をCPUから独立したハードウェア
によって実行するため、退避・復元を高速に行い割込み
処理などを高速化でき、またメモリマツパ−を先入れ・
後出しバッファに蓄積するため、多重割込みなどにおい
てもメモリマツバー値と処理との関係が保証され、ソフ
トウェアは単純に退避命令と復元命令を発行するだけで
よいので、その負担が軽減されるなどの効果を有するも
のである。
Effects of the Invention As is clear from the above explanation, the present invention saves and restores memory mapper values using hardware independent of the CPU, so it can save and restore at high speed and speed up interrupt processing. Also, put the memory mapper in advance.
Because it is stored in the post-output buffer, the relationship between the memory matsuba value and processing is guaranteed even in the case of multiple interrupts, and the burden on software is reduced because it only needs to issue save and restore instructions. It has the following effects.

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

第1図は本発明の一実施例によるデータ処理システムの
概略構成図、第2図は従来のデータ処理システムの一例
の概略構成図、第3図はメモリマノパーの説明図、第4
図は多重割込みの説明のためのフローチャートである。 1・・・CPU、2・・・ローカルバス、5・・・シス
テムバス、6・・・システムメモリ、9・・・メモリマ
ツパ−10・・・メモリマツパ−レジスタ、11・・・
退避・復元専用ハードウェア装置、12・・・退避用メ
モリ部、13・・・ポインタ部、14・・・先入れ・後
出しバッファ、15°パインタフエース・レジスタ部、
16・・・転送制御部。 代理人の氏名 弁理士 粟野重孝 ほか1名第 図
FIG. 1 is a schematic configuration diagram of a data processing system according to an embodiment of the present invention, FIG. 2 is a schematic configuration diagram of an example of a conventional data processing system, FIG. 3 is an explanatory diagram of a memory manoper, and FIG.
The figure is a flowchart for explaining multiple interrupts. 1...CPU, 2...Local bus, 5...System bus, 6...System memory, 9...Memory mapper 10...Memory mapper register, 11...
Hardware device dedicated to saving and restoring, 12... Memory unit for saving, 13... Pointer unit, 14... First-in/last-out buffer, 15° pint face register unit,
16...Transfer control unit. Name of agent: Patent attorney Shigetaka Awano and one other person

Claims (1)

【特許請求の範囲】[Claims] CPUの物理アドレス空間にその拡張メモリ空間をマッ
ピングするためのメモリマッパー値を蓄積するためのハ
ードウェアの先入れ・後出しバッファと、メモリマッパ
ー値の退避命令または復元命令が前記CPUより発行さ
れると前記CPUとは独立に作動し、前記退避命令に応
答してメモリマッパーレジスタに保持されているメモリ
マッパー値を読み取って前記先入れ・後出しバッファに
格納し、また前記復元命令に応答して前記先入れ・後出
しバッファよりメモリマッパー値を取り出して前記メモ
リマッパーレジスタに下書き込むハードウェア手段とを
有することを特徴とする、メモリマッピングによりメモ
リ拡張を行うデータ処理システム。
A hardware first-in/last-out buffer for storing memory mapper values for mapping the extended memory space to the physical address space of the CPU, and a memory mapper value save or restore instruction are issued by the CPU. and the CPU operate independently of the CPU, and read the memory mapper value held in the memory mapper register in response to the save instruction and store it in the first-in/last-out buffer, and in response to the restore instruction. A data processing system for expanding memory by memory mapping, comprising: hardware means for extracting a memory mapper value from the first-in/last-out buffer and writing it into the memory mapper register.
JP9137289A 1989-04-11 1989-04-11 Data processing system Pending JPH02268348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9137289A JPH02268348A (en) 1989-04-11 1989-04-11 Data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9137289A JPH02268348A (en) 1989-04-11 1989-04-11 Data processing system

Publications (1)

Publication Number Publication Date
JPH02268348A true JPH02268348A (en) 1990-11-02

Family

ID=14024547

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9137289A Pending JPH02268348A (en) 1989-04-11 1989-04-11 Data processing system

Country Status (1)

Country Link
JP (1) JPH02268348A (en)

Similar Documents

Publication Publication Date Title
JP2758311B2 (en) Log file control method in complex system
US7941652B2 (en) Apparatus and computer program product for implementing atomic data tracing
US6687763B2 (en) ATAPI command receiving method
US6233666B1 (en) Deferred disk drive space allocation for virtual memory pages with management of disk address recording in multipage tables without external process interrupts for table for input/output to memory
EP0430500B1 (en) System and method for atomic access to an input/output device with direct memory access
JPH02268348A (en) Data processing system
US6434592B1 (en) Method for accessing a network using programmed I/O in a paged, multi-tasking computer
JP3438503B2 (en) Display control device
JP2671160B2 (en) Exception handling method
JP2885210B2 (en) Graphic processing system
JPH0793215A (en) Semiconductor memory
JPH07152574A (en) Program loading system
CN100361105C (en) Method and apparatus for recovering access environment setting-up in interrupt processing
JP2830239B2 (en) Input display control device
JPS63101943A (en) Cache move-in control system
JP3077687B2 (en) Data transfer method and image processing apparatus
JPH0447350A (en) Main storage read/response control
JP2501393B2 (en) Direct memory access device
JPH02146631A (en) Register saving/restoring system
JP2737349B2 (en) Magnetic disk reformatting method
JPH09244605A (en) Computer device
JP2718676B2 (en) Virtual memory dump processing method
JPS63153650A (en) Memory dump system
JPH0335339A (en) Settlement processing system for occurrence of os fault
JPH10247157A (en) Transaction processing system and its recovering method