[go: up one dir, main page]

JPH04321146A - Storage protection system - Google Patents

Storage protection system

Info

Publication number
JPH04321146A
JPH04321146A JP3090138A JP9013891A JPH04321146A JP H04321146 A JPH04321146 A JP H04321146A JP 3090138 A JP3090138 A JP 3090138A JP 9013891 A JP9013891 A JP 9013891A JP H04321146 A JPH04321146 A JP H04321146A
Authority
JP
Japan
Prior art keywords
address
lower limit
area
address range
registers
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
JP3090138A
Other languages
Japanese (ja)
Inventor
Shinya Kato
慎哉 加藤
Takahito Noda
野田 敬人
Yuji Kamisaka
神阪 裕士
Kazuyasu Nonomura
野々村 一泰
Takumi Takeno
巧 竹野
Toru Watabe
徹 渡部
Takumi Maruyama
拓巳 丸山
Chiyonsuwannapaisaan Poonshiyai
ポーンシャイ チョンスワンナパイサーン
Masaru Sakai
勝 酒井
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 JP3090138A priority Critical patent/JPH04321146A/en
Publication of JPH04321146A publication Critical patent/JPH04321146A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、記憶領域を保護する記
憶保護方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage protection system for protecting storage areas.

【0002】0002

【従来の技術】従来、プログラムが使用できる領域、例
えば図4の(イ)のユーザ領域について、1対のレジス
タに当該領域の上限アドレスおよび下限アドレスを設定
してこれら設定した範囲内のメモリアクセスのときにア
クセス許可信号を送出してアクセスし、領域保護を図る
ようにしていた。
2. Description of the Related Art Conventionally, for an area that can be used by a program, for example, the user area shown in FIG. When this happens, an access permission signal is sent to access the area in order to protect the area.

【0003】0003

【発明が解決しようとする課題】このため、図4の(イ
)のユーザ領域について、図4の(ロ)のユーザ領域に
示すように、プログラムが使用できるユーザ領域を拡張
しようとすると、OS用領域を移動させなけれならず、
単純にアドレス拡張できないという問題があった。
[Problem to be Solved by the Invention] Therefore, when trying to expand the user area that can be used by a program, as shown in the user area (b) of FIG. area of use must be moved,
The problem was that the address simply could not be expanded.

【0004】本発明は、アドレス範囲指定レジスタを少
なくとも2対設け、1対に基本域の領域の上限/下限ア
ドレスを設定、1対に拡張領域などの上限/下限アドレ
スを設定して記憶保護を行い、基本域のアドレス設定を
変えることなく簡単に拡張域の領域の記憶保護を可能に
することを目的としている。
[0004] The present invention provides at least two pairs of address range specification registers, sets upper and lower limit addresses for the basic area in one pair, and sets upper and lower limit addresses for the extended area in the other pair to protect memory. The purpose is to easily protect the memory of the extended area without changing the address settings of the basic area.

【0005】[0005]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、アドレス
範囲指定レジスタ3、2は、基本域内のプログラムが使
用できる上限アドレスおよび下限アドレスを設定するレ
ジスタである。アドレス範囲指定レジスタ5、4は、拡
張域内などのプログラムが使用できる上限アドレスおよ
び下限アドレスを設定するレジスタである。
[Means for Solving the Problems] Means for solving the problems will be explained with reference to FIG. In FIG. 1, address range designation registers 3 and 2 are registers for setting upper and lower limit addresses that can be used by programs within the basic area. Address range designation registers 5 and 4 are registers for setting upper and lower limit addresses that can be used by programs in the extended area and the like.

【0006】[0006]

【作用】本発明は、図1に示すように、プログラムが使
用しようとする基本域内の上限アドレスおよび下限アド
レスを1対のアドレス範囲指定レジスタ3、2に設定、
および拡張域内などの上限アドレスおよび下限アドレス
を少なくとも1対のアドレス範囲指定レジスタ5、4に
設定し、アクセスアドレスがアドレス範囲指定レジスタ
3、2あるいはアドレス範囲指定レジスタ5、4のいず
れかの対の範囲内のときにアクセス許可信号を送出して
アクセスするようにしている。
[Operation] As shown in FIG. 1, the present invention sets the upper limit address and lower limit address within the basic area that the program intends to use in a pair of address range specification registers 3 and 2.
and an upper limit address and a lower limit address such as within the extended area are set in at least one pair of address range specification registers 5 and 4, and the access address is set in any pair of address range specification registers 3 and 2 or address range specification registers 5 and 4. When within range, an access permission signal is sent to allow access.

【0007】従って、アドレス範囲指定レジスタを少な
くとも2対設け、基本域および拡張域内などのプログラ
ムが使用しようとする上限アドレス、下限アドレスを設
定し、これらのいずれかの範囲内のアクセスのときに許
可することにより、基本域のアドレス設定を変えること
なく簡単に拡張域の領域の記憶保護を行うことが可能と
なる。
[0007] Therefore, at least two pairs of address range specification registers are provided, upper and lower limit addresses are set for use by programs in the basic area and extended area, and permission is granted when accessing within any of these ranges. By doing so, it becomes possible to easily protect the memory of the extended area without changing the address settings of the basic area.

【0008】[0008]

【実施例】次に、図1から図3を用いて本発明の実施例
の構成および動作を順次詳細に説明する。図1において
、命令実行部1は、図示外の記憶保護対象のメモリから
命令を取り込んだり、アクセスして処理を行うものであ
る。
Embodiment Next, the structure and operation of an embodiment of the present invention will be explained in detail using FIGS. 1 to 3. In FIG. 1, an instruction execution unit 1 takes in and accesses instructions from a memory to be protected, which is not shown, and processes the instructions.

【0009】アドレス範囲指定レジスタ3、2は、基本
域内のプログラムが使用できるユーザ領域の上限アドレ
スおよび下限アドレスを設定するレジスタである(図2
参照)。アドレス範囲指定レジスタ5、4は、拡張域内
などのプログラムが使用できるユーザ領域の上限アドレ
スおよび下限アドレスを設定するレジスタである(図2
参照)。
Address range specification registers 3 and 2 are registers for setting the upper and lower limit addresses of the user area that can be used by programs in the basic area (see FIG.
reference). Address range specification registers 5 and 4 are registers for setting the upper and lower limit addresses of the user area that can be used by programs in the extended area, etc. (Figure 2
reference).

【0010】比較器6ないし9は、アドレス範囲指定レ
ジスタ2ないし5に設定されているアドレスと、命令実
行部1が図示外のメモリをアクセスしようとするメモリ
アクセスアドレスとを比較し、その大小、等しいを判別
するものである。AND回路10は、比較器6、7から
の信号の論理積演算を行うものであって、メモリアクセ
スアドレスがアドレス範囲指定レジスタ3、2に設定さ
れた上限アドレスと下限アドレスの範囲内のときに1を
出力するものである。
The comparators 6 to 9 compare the addresses set in the address range specification registers 2 to 5 with the memory access address at which the instruction execution unit 1 attempts to access a memory not shown, and determine whether the address is large or small. This is to determine equality. The AND circuit 10 performs a logical product operation of the signals from the comparators 6 and 7, and when the memory access address is within the range of the upper and lower limit addresses set in the address range designation registers 3 and 2. It outputs 1.

【0011】AND回路11は、比較器8、9からの信
号の論理積演算を行うものであって、メモリアクセスア
ドレスがアドレス範囲指定レジスタ5、4に設定された
上限アドレスと下限アドレスの範囲内のときに1を出力
するものである。OR回路12は、AND回路10、1
1からの信号を論理和演算するものであって、メモリア
クセスアドレスがアドレス範囲指定レジスタ3、2ある
いはアドレス範囲指定レジスタ5、4の上限アドレス、
下限アドレスの範囲内のいずれかに存在するときに1を
出力(メモリアクセス許可信号を出力)するものである
The AND circuit 11 performs a logical product operation of the signals from the comparators 8 and 9, and is configured to perform an AND operation on the signals from the comparators 8 and 9, and is configured to perform a logical product operation when the memory access address is within the range between the upper and lower limit addresses set in the address range designation registers 5 and 4. It outputs 1 when . The OR circuit 12 is the AND circuit 10, 1
1, and the memory access address is the upper limit address of address range specification registers 3 and 2 or address range specification registers 5 and 4,
It outputs 1 (outputs a memory access permission signal) when it exists somewhere within the lower limit address range.

【0012】図2は、本発明の動作説明図を示す。ここ
で、基本域のユーザ領域の上限アドレス(上限1)およ
び下限アドレス(下限1)を図1のアドレス範囲設定レ
ジスタ3およびアドレス範囲設定レジスタ2にそれぞれ
設定する。拡張域のユーザ領域の上限アドレス(上限2
)および下限アドレス(下限2)を図1のアドレス範囲
設定レジスタ5およびアドレス範囲設定レジスタ4にそ
れぞれ設定する。
FIG. 2 shows an operational diagram of the present invention. Here, the upper limit address (upper limit 1) and lower limit address (lower limit 1) of the user area of the basic area are set in the address range setting register 3 and the address range setting register 2 in FIG. 1, respectively. Upper limit address of user area in extended area (upper limit 2
) and the lower limit address (lower limit 2) are set in the address range setting register 5 and the address range setting register 4 in FIG. 1, respectively.

【0013】また、図2において、通常のアドレス時は
、基本域のみをプログラムが使用する場合を示す。この
場合には、基本域のユーザ領域の上限アドレス(上限1
)および下限アドレス(下限1)を図1のアドレス範囲
指定レジスタ3、2にそれぞれ設定する。アドレス拡張
時は、基本域および拡張域の両者をプログラムが使用す
る場合を示す。この場合には、基本域のユーザ領域の上
限アドレス(上限1)および下限アドレス(下限1)を
図1のアドレス範囲指定レジスタ3、2にそれぞれ設定
し、拡張域のユーザ領域の上限アドレス(上限2)およ
び下限アドレス(下限2)を図1のアドレス範囲指定レ
ジスタ5、4にそれぞれ設定する。
Further, FIG. 2 shows a case where the program uses only the basic area during normal addressing. In this case, the upper limit address of the user area of the basic area (upper limit 1
) and the lower limit address (lower limit 1) are set in the address range designation registers 3 and 2 in FIG. 1, respectively. When extending an address, the program uses both the basic area and the extended area. In this case, set the upper limit address (upper limit 1) and lower limit address (lower limit 1) of the user area of the basic area in the address range specification registers 3 and 2 in Figure 1, respectively, and set the upper limit address (upper limit 1) of the user area of the extended area to 2) and the lower limit address (lower limit 2) are set in the address range designation registers 5 and 4 in FIG. 1, respectively.

【0014】次に、図3のフローチャートに示す順序に
従い、図1および図2の構成の動作を詳細に説明する。 図3において、S1は、メモリアクセスアドレスを送出
する。これは、図1の命令実行部1が図2の右側の基本
域、拡張域をアクセスするアドレスを送出する。
Next, the operation of the configurations shown in FIGS. 1 and 2 will be explained in detail in accordance with the order shown in the flowchart shown in FIG. In FIG. 3, S1 sends out a memory access address. This sends out the address by which the instruction execution unit 1 in FIG. 1 accesses the basic area and extended area on the right side in FIG.

【0015】S2は、下限1≦メモリアクセスアドレス
≦上限1か否かを判別する。これは、S1で送出された
アクセスメモリアドレスを比較器7、6に入力し、アド
レス範囲指定レジスタ3、2に設定された上限1、下限
1とそれぞれ比較し、両者の範囲内に存在するか否か(
図1のAND回路10の出力が1か否か)を判別する。 YESの場合には、S3でアクセス許可信号を送出し、
S4でメモリアクセスを実行する。一方、NOの場合に
は、S7に進む。
[0015] In S2, it is determined whether lower limit 1≦memory access address≦upper limit 1. This inputs the access memory address sent in S1 to the comparators 7 and 6, compares it with the upper limit 1 and lower limit 1 set in the address range specification registers 3 and 2, respectively, and determines whether the address exists within the range of both. or not(
It is determined whether the output of the AND circuit 10 in FIG. 1 is 1 or not. If YES, send an access permission signal in S3,
Memory access is executed in S4. On the other hand, in the case of NO, the process advances to S7.

【0016】S5は、下限2≦メモリアクセスアドレス
≦上限2か否かを判別する。これは、S1で送出された
アクセスメモリアドレスを比較器9、8に入力し、アド
レス範囲指定レジスタ5、4に設定された上限2、下限
2とそれぞれ比較し、両者の範囲内に存在するか否か(
図1のAND回路11の出力が1か否か)を判別する。 YESの場合には、S6でアクセス許可信号を送出し、
S4でメモリアクセスを実行する。一方、NOの場合に
は、S7に進む。
In S5, it is determined whether lower limit 2≦memory access address≦upper limit 2. This inputs the access memory address sent in S1 to the comparators 9 and 8, compares it with the upper limit 2 and lower limit 2 set in the address range specification registers 5 and 4, respectively, and determines whether it exists within the range of both. or not(
It is determined whether the output of the AND circuit 11 in FIG. 1 is 1 or not. If YES, send an access permission signal in S6,
Memory access is executed in S4. On the other hand, in the case of NO, the process advances to S7.

【0017】S7は、両者ともに範囲外ならば、アクセ
ス許可信号を抑止し、アクセスを不可とし、メモリの記
憶保護を行う。以上のように、基本域のユーザ領域の上
限1、下限1、および拡張域のユーザ領域の上限2、下
限2をそれぞれ設定するアドレス範囲指定レジスタ3、
2、およびアドレス範囲指定レジスタ5、4の2対を設
けてメモリアクセスアドレスとそれぞれ比較して範囲内
か否かを判別することにより、拡張域についても基本域
と同様に記憶保護を図ることが可能となる。
In step S7, if both are outside the range, the access permission signal is suppressed, access is disabled, and the memory is protected. As described above, the address range specification register 3 sets the upper limit 1 and lower limit 1 of the user area of the basic area, and the upper limit 2 and lower limit 2 of the extended area user area, respectively;
By providing two pairs of address range specification registers 5 and 4 and comparing them with the memory access address to determine whether or not they are within the range, storage protection can be achieved for the extended area in the same way as for the basic area. It becomes possible.

【0018】また、図2の左側の通常のアドレス時の場
合、図1のアドレス範囲指定レジスタ3、5に基本域の
ユーザ領域の上限アドレス(上限1)、アドレス範囲指
定レジスタ2、4に基本域のユーザ領域の下限アドレス
(下限1)をそれぞれ設定することにより、基本域のみ
の場合でも図1の回路構成のままで基本域のユーザ領域
以外へのアクセスを抑止して記憶保護を図ることが可能
となる。
In addition, in the case of the normal address shown on the left side of FIG. By setting the lower limit address (lower limit 1) of the user area of each area, even in the case of only the basic area, the circuit configuration shown in Figure 1 can be maintained and access to areas other than the user area of the basic area can be inhibited to protect the memory. becomes possible.

【0019】[0019]

【発明の効果】以上説明したように、本発明によれば、
アドレス範囲指定レジスタを少なくとも2対設け、基本
域および拡張域内などのプログラムが使用しようとする
上限アドレス、下限アドレスを設定し、これらのいずれ
かの範囲内のアクセスのときに許可する構成を採用して
いるため、基本域のアドレス設定を変えることなく簡単
に拡張域の領域の記憶保護を図ることができる。また、
少なくとも2対のアドレス範囲指定レジスタの上限アド
レスおよび下限アドレスを同一に設定することにより、
基本域のみの場合でも同様に記憶域保護を図ることがで
きる。
[Effects of the Invention] As explained above, according to the present invention,
At least two pairs of address range specification registers are provided, upper and lower limit addresses are set for use by programs in the basic area and extended area, and accesses within either of these ranges are permitted. Therefore, it is possible to easily protect the memory of the extended area without changing the address settings of the basic area. Also,
By setting the upper and lower limit addresses of at least two pairs of address range specification registers to be the same,
Storage area protection can be achieved in the same way even in the case of only the basic area.

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

【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of one embodiment of the present invention.

【図2】本発明の動作説明図である。FIG. 2 is an explanatory diagram of the operation of the present invention.

【図3】本発明の動作説明図フローチャートである。FIG. 3 is a flowchart illustrating the operation of the present invention.

【図4】従来技術の説明図である。FIG. 4 is an explanatory diagram of the prior art.

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

1:命令実行部 2ないし5:アドレス範囲指定レジスタ6ないし9:比
較器 10、11:AND回路 12:OR回路
1: Instruction execution unit 2 to 5: Address range specification register 6 to 9: Comparator 10, 11: AND circuit 12: OR circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  記憶領域を保護する記憶保護方式にお
いて、基本域内のプログラムが使用できる上限アドレス
および下限アドレスを設定する1対のアドレス範囲指定
レジスタ(3)、(2)と、拡張域内などのプログラム
が使用できる上限アドレスおよび下限アドレスを設定す
る少なくとも1対のアドレス範囲指定レジスタ(5)、
(4)とを備え、アクセスアドレスが上記アドレス範囲
指定レジスタ(3)、(2)、あるいは上記アドレス範
囲指定レジスタ(5)、(4)のいずれかの対の範囲内
のときにアクセス許可信号を送出してアクセスするよう
に構成したことを特徴とする記憶保護方式。
Claim 1: In a storage protection method that protects a storage area, a pair of address range specification registers (3) and (2) that set the upper and lower limit addresses that can be used by a program in the basic area, and a at least one pair of address range specification registers (5) for setting upper and lower limit addresses that can be used by the program;
(4), and when the access address is within the range of the above address range specification registers (3), (2) or any pair of the above address range specification registers (5), (4), an access permission signal is provided. A memory protection method characterized in that it is configured to be accessed by sending.
【請求項2】  上記1対のアドレス範囲指定レジスタ
(3)、(2)および上記少なくとも1対のアドレス範
囲指定レジスタ(5)、(4)の上限アドレスおよび下
限アドレスに同一のアドレスをそれぞれ設定するように
構成したことを特徴とする請求項第1項記載の記憶保護
方式。
2. Set the same address as the upper limit address and lower limit address of the pair of address range specification registers (3), (2) and the at least one pair of address range specification registers (5), (4), respectively. 2. The storage protection system according to claim 1, wherein the storage protection system is configured to:
JP3090138A 1991-04-22 1991-04-22 Storage protection system Pending JPH04321146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3090138A JPH04321146A (en) 1991-04-22 1991-04-22 Storage protection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3090138A JPH04321146A (en) 1991-04-22 1991-04-22 Storage protection system

Publications (1)

Publication Number Publication Date
JPH04321146A true JPH04321146A (en) 1992-11-11

Family

ID=13990152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3090138A Pending JPH04321146A (en) 1991-04-22 1991-04-22 Storage protection system

Country Status (1)

Country Link
JP (1) JPH04321146A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4829327A (en) * 1971-07-26 1973-04-18
JPH01201751A (en) * 1988-02-05 1989-08-14 Matsushita Electric Ind Co Ltd Memory protecting device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4829327A (en) * 1971-07-26 1973-04-18
JPH01201751A (en) * 1988-02-05 1989-08-14 Matsushita Electric Ind Co Ltd Memory protecting device

Similar Documents

Publication Publication Date Title
US20040177266A1 (en) Data processing system with peripheral access protection and method therefor
JPH0744455A (en) Address decoder
JPH04321146A (en) Storage protection system
JP3082701B2 (en) Memory protection device and memory protection method
JPH0447349A (en) Data storage device
JPS61143852A (en) Protecting method of interruption vector
JP2695463B2 (en) Microcomputer
JP3047992B2 (en) Main memory key control method
JPH03276357A (en) I/O address conversion method
JPS61188656A (en) Memory access device
JPH06110828A (en) Memory controller
JPH01219933A (en) Bus window circuit
JPS61195442A (en) Memory protection device
JP3448962B2 (en) Arithmetic processing unit
JPS62205443A (en) Address generation circuit
JPH01279343A (en) Main memory protection method for computer systems
JPH04160458A (en) Dma controller peripheral circuit
JPH04130553A (en) Electronic computer
JPS62212852A (en) Storage protecting system
JPH03269653A (en) memory control circuit
JPS63120336A (en) Switching system for memory access mode
JPH01183750A (en) Cache memory residency method
JPH02135554A (en) memory access control device
JPH05173886A (en) Writing device
JPS58139396A (en) Memory protection method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970114