JPS60118955A - Main storage protecting device - Google Patents

Main storage protecting device

Info

Publication number
JPS60118955A
JPS60118955A JP22633883A JP22633883A JPS60118955A JP S60118955 A JPS60118955 A JP S60118955A JP 22633883 A JP22633883 A JP 22633883A JP 22633883 A JP22633883 A JP 22633883A JP S60118955 A JPS60118955 A JP S60118955A
Authority
JP
Japan
Prior art keywords
memory
access
main memory
address
mssa
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
JP22633883A
Other languages
Japanese (ja)
Inventor
Junichi Mizuno
水野 淳一
Yuji Kamisaka
神阪 裕士
Takahito Noda
野田 敬人
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 JP22633883A priority Critical patent/JPS60118955A/en
Publication of JPS60118955A publication Critical patent/JPS60118955A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

PURPOSE:To prevent a main storage area form being destroyed by providing a means comparing a memory address transmitted from a CPU and a main storage start address using in sharing and commoly one physical memory by a main storage and a control storage. CONSTITUTION:The CPU6 transmits a memory address (CPU-A) to a bus 19 at memory access. In case of CPUA<MSSA (main storage start address 8), an output of a comparator 10 only in a comparator circuit 9 and when the CPU6 requests a control storage access, since a signal line 20 is set, the access is permitted. In case of CPU=MSSA or CPUA>MSSA, either a coparator 11 or a comparator 12 is set and when the CPU6 request the main storage access, a signal line 21 is set, then the access is permitted.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、主記憶と制御記憶とで1つの物理メモリを分
割共用する計算機システムにおいて、主記憶領域が制御
記憶側の暴走等にょ9破壊されるのを防止するための主
記憶保護装置に関する。
Detailed Description of the Invention [Technical Field of the Invention] The present invention provides a computer system in which one physical memory is divided and shared between main memory and control memory. This invention relates to a main memory protection device for preventing

〔技術の背景〕[Technology background]

ファーム・ソフトを格納する制御記憶は拡張が必要とな
る場合が多く、そのような場合の1つの手段として、従
来、制御記憶のアドレス空間を多重化構造とするパンク
方式がとられている。
The control memory that stores firmware software often needs to be expanded, and as one means for such cases, conventionally, a puncturing method has been used in which the address space of the control memory has a multiplexed structure.

第1図は、パンク方式の制御記憶の場合のアドレス空間
上におけるマツピングを示したものである。図中、1は
アドレス空間、2は制御記憶アドレスレジスタ、3はパ
ンクアドレスレジスタ、4は主記憶アドレスレジスタ、
5は主記憶スタートアドレス(MSSA) レジスタを
示している。
FIG. 1 shows mapping on the address space in the case of puncture-based control storage. In the figure, 1 is an address space, 2 is a control storage address register, 3 is a puncture address register, 4 is a main storage address register,
5 indicates a main memory start address (MSSA) register.

制御記憶領域のN個のパンクはパンクアドレスレジスタ
3により指定され、各パンク内のアドレスは制御記憶ア
ドレスレジスタ2によシ指定される。一方主記憶領域の
アドレスは、主記憶アドレスレジスタ4のみにより絶対
的に指定される。
The N punctures in the control storage area are specified by the puncture address register 3, and the addresses within each puncture are specified by the control storage address register 2. On the other hand, the address of the main memory area is absolutely specified only by the main memory address register 4.

ここで、ハート°側ではパンクを最大N個すポートする
ことが可能であっても、ファーム・ソフト側ではパンク
7il−N個も必要としないか、あるいはアドレス空間
の絶対量の不足等の理由により、主記憶のスタートアド
レス(MSSA)が、主記憶スタートアドレスレジスタ
5によυ第2図に示すような位置にセットされた場合、
制御記憶のパンク3〜Nは、主記憶と同じアドレス空間
を有することになる。すなわち、パンク3の先頭アドレ
ス(MSSA)は、制御記憶アクセスの“MSSA″番
地、あるいは主記憶アクセスの゛l5SA″番地として
アクセスoJ能である。そのため、ファームの暴走等に
より、パンク3〜N指定の制御記憶アクセスで、主記憶
のデータが破壊される場合がおった0 〔発明の目的および構成〕 本発明の目的は、主記憶領域とパンク構造の制御記憶領
域とが隣接配置されるメモリにおいて、主記憶領域を制
御記憶のアクセスに対して保護する手段を提供すること
にアシ、そのため、CPUから送出されるメモリアドレ
スと主記憶スタートアドレスとを比較して、その結果に
よシ制御記憶アクセスと主記憶アクセスの許可/不許可
を行なうようにするものである。
Here, even if it is possible to port up to N punctures on the heart side, the firmware side may not need even 7il-N punctures, or there may be reasons such as a lack of absolute amount of address space. Accordingly, when the main memory start address (MSSA) is set to the position shown in Figure 2 by the main memory start address register 5,
Control memory punctures 3 to N will have the same address space as the main memory. In other words, the start address (MSSA) of Punk 3 can be accessed as the "MSSA" address for control memory access or the "15SA" address for main memory access. Therefore, due to a runaway of the firmware, etc., the Punk 3 to N specified [Objective and Structure of the Invention] An object of the present invention is to solve the problem in a memory in which a main storage area and a punctured control storage area are arranged adjacent to each other. The main purpose of this invention is to provide a means for protecting the main memory area against control memory access, and therefore compares the memory address sent from the CPU with the main memory start address and uses the result to protect the main memory area from control memory access. and allows/disallows main memory access.

そして、それによる本発明の構成は、主記憶とパンク構
造の制御記憶とに分割して使用されるメモリと、主記憶
および制御記憶のいずれのアクセスであるかをそれぞれ
指示する信号手段金そなえたCPUとをそなえた計算機
システムにおいて、主記憶のスタートアドレスを保持す
るレジスタと、該主記憶のCPUから送出されたメモリ
アドレスとを比較する回路と、該比較の結果、メモリア
ドレスが主記憶スタートアドレスよりも小さい場合であ
って上記制御記憶アクセスを指示する信号手段が存在す
るとき該信号手段をメモリへ転送し、またメモリアドレ
スが主記憶スタートアドレスに等しいかあるいはそれよ
シも大きい場合であって上記主記憶アクセスを指示する
信号手段が存在するとき該信号手段全メモリへ転送する
論理回路とをそなえていることを特徴とするものである
Accordingly, the configuration of the present invention includes a memory that is divided into a main memory and a puncture-structured control memory, and a signal means for instructing whether to access the main memory or the control memory. In a computer system equipped with a CPU, a circuit that compares a register that holds a start address of a main memory with a memory address sent from the CPU of the main memory, and a circuit that compares a memory address that is a main memory start address as a result of the comparison. If the signal means for instructing the control memory access exists, the signal means is transferred to the memory, and the memory address is equal to or larger than the main memory start address. The present invention is characterized by comprising a logic circuit that transfers the signal means to all memories when the signal means for instructing main memory access is present.

〔発明の実施例〕[Embodiments of the invention]

以下に、本発明の詳細を実施例にしたがって説明する。 The details of the present invention will be explained below based on examples.

第3図は、本発明の1実施例装置の構成図である。図中
、6はC!PU、7はメモリ、8は主記憶スタートアド
レスレジスタ、9は比較回路、10乃i至12は比較器
、13はORダート、14は保護論理回路、15乃至1
7はANDf−ト、18は割シ込み要求レジスタ、19
はアドレスバス、20は制御記憶アクセス信号線、21
は主記憶アクセス信号線、22は割り込み信号線を示す
FIG. 3 is a configuration diagram of an apparatus according to an embodiment of the present invention. In the diagram, 6 is C! PU, 7 is a memory, 8 is a main memory start address register, 9 is a comparison circuit, 10 to i to 12 are comparators, 13 is an OR dirt, 14 is a protection logic circuit, 15 to 1
7 is ANDf-to, 18 is interrupt request register, 19
is an address bus, 20 is a control storage access signal line, 21
2 represents a main memory access signal line, and 22 represents an interrupt signal line.

C!PU6は、メモリアクセス時にアドレスバス19上
にメモリアドレス(以後、OPU Aという)を送出す
るとともに、それが制御記憶アクセスであるか主記憶ア
クセスであるかにより、信号線灰または21の一方をオ
ンにする。
C! The PU 6 sends a memory address (hereinafter referred to as OPU A) onto the address bus 19 during memory access, and turns on either signal line gray or 21 depending on whether it is a control memory access or a main memory access. Make it.

主記憶スタードアーレスレジスタ8には、予め主記憶ス
タートアドレス(以後MSSAという)がセットされて
いる。
A main memory start address (hereinafter referred to as MSSA) is set in the main memory start address register 8 in advance.

(3PU6は、主記憶アクセス時にCPU内部で使用し
ているメモリアドレスに、MSSAi加算したアドレス
CPU Aをメモリ7に送出する。
(The 3PU 6 sends the address CPU A, which is the memory address used inside the CPU when accessing the main memory plus MSSAi, to the memory 7.

比較回路9は、3個の比較器10 、11 、12によ
広開時に0PUAとMSSAとを比較する。比較器lO
はOPUA(MSSAのとき出力がオンとなシ、比較器
11はCPUA=MSSAのとき出力がオンとfX、シ
、そして比較器比はOPUA)MSSAのとき出力がオ
ンとなる。OPUA(MSSAの場合、比較器10のみ
の出力がオンとなり、保護論理回路14中のANDダー
ト15の一方の入力にオンのレベルが印加される。この
とき、0PU6が制御記憶アクセスを要求していた場合
には、制御記憶アクセス信号線20がオンとなっている
ため、ANDダート15の出力はオンとな5、CPU6
の制御記憶アクセスは許可され、メモリ7に通知される
。これが許可される理由は、0PUAがMSSAよりも
小さい限り、MSSAよりも常に大きい主記憶領域をア
クセスする筈がないからである。
Comparison circuit 9 compares 0PUA and MSSA using three comparators 10, 11, and 12 when wide open. Comparator lO
The output of the comparator 11 is on when CPUA=MSSA, and the output of the comparator 11 is on when CPUA=MSSA, and the comparator ratio is OPUA. In the case of OPUA (MSSA), only the output of comparator 10 is turned on, and an on level is applied to one input of AND dart 15 in protection logic circuit 14. At this time, 0PU6 is requesting control memory access. In this case, the control memory access signal line 20 is on, so the output of the AND dart 15 is on, and the CPU 6 is on.
control storage access is granted and the memory 7 is notified. This is allowed because as long as 0PUA is smaller than MSSA, there is no way that a main storage area that is always larger than MSSA will be accessed.

OPUA=MSSAまたはOPU A)Is S Aの
場合には、比較器11または比較器12のいずれかの出
力がオンとなり、ORダート13を介して、保護論理回
路14中のA−NDダー) 16および17の各一方の
入力をオンにする。このとき0PU6が主記憶アクセス
を要求している場合には、主記憶アクセス信号線21が
オンとなっているため、ANDゲート17の出力がオン
とな5.0PU6の主記憶アクセスは許可され、メモリ
7に通知される。他方、このとき0PU6が制御記憶ア
クセスを要求していた場合には、A、NDダート15に
おいて制御記憶アクセス信号は禁止され、代りにAND
ダート16の出力がオンとなり1割り込み要求レジスタ
18がセットされ、CPU6に対して、割り込み信号線
22を介してアクセス例外による割り込み信号が送出さ
れ、0PU6によ9割勺込み処理が行なわれる。
In the case of OPUA=MSSA or OPU A)IsSA, the output of either the comparator 11 or the comparator 12 is turned on, and the A-ND gate in the protection logic circuit 14 is output via the OR gate 13. and 17 are turned on. At this time, if 0PU6 requests main memory access, the main memory access signal line 21 is on, and the output of the AND gate 17 is on, allowing 5.0PU6 to access the main memory. The memory 7 is notified. On the other hand, if 0PU6 requests control memory access at this time, the control memory access signal is prohibited in A, ND dart 15, and the AND
The output of the dart 16 is turned on, the 1 interrupt request register 18 is set, an interrupt signal due to the access exception is sent to the CPU 6 via the interrupt signal line 22, and the 0PU6 performs 90% interrupt processing.

この後者の場合には、OPUA)MSSAである限り、
0PU6の制御記憶アクセスは主記憶領域に対して行な
われることになるため、このアクセスは不許可となる。
In this latter case, as long as OPUA)MSSA,
Since the control memory access of 0PU6 is to be made to the main memory area, this access is not permitted.

なお、CPU6が主記憶アクセス’Thff求している
ときには、C!PUAが必ずMSSAよりも太きいから
(前述したように0PU6はIs S Ai加算したア
ドレスを送出するため)、CPUA<MSSAの条件は
存在しない。
Note that when the CPU 6 requests main memory access 'Thff', C! Since PUA is always thicker than MSSA (as described above, 0PU6 sends out the address added by Is SAi), the condition CPUA<MSSA does not exist.

以上の説明をまとめると、次の表1のようになる0 表 1 〔発明の効果〕 本発明によれば、バンク構造の制御記憶をもつ計算機シ
ステムにおいて、ファームが暴走しても、主記憶へのア
クセスを、確実に防止することができ、シスチーの信頼
性を高めることができる。
The above explanation can be summarized as shown in Table 1 below.Table 1 [Effects of the Invention] According to the present invention, even if the firmware goes out of control in a computer system with bank-structured control memory, the main memory access can be reliably prevented and the reliability of the system can be increased.

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

第1図は・々ンク方式の制御記憶のアドレス空間の説明
図、第2図は主記憶のMSSAが制御記憶のバンク中に
設定された場合のアドレス空間の説明図、第3図は本発
明の1実施例装置の構成図である。 図中、6はCPU、7はメモリ、8は主記憶スタートア
ドレスレジス汽9は比較回路、14は保護論理回路、1
8は割り込み要求レジスタ、19はアドレスバス、2(
)は制御記憶アクセス信号線、21は主記憶アク−セス
信号線を表わす。 特許出願人 富士通株式会社 代理人弁理士 長谷用 文 廣 (外1名) 第1図 第2図
Fig. 1 is an explanatory diagram of the address space of the control memory of the bank system, Fig. 2 is an explanatory diagram of the address space when the MSSA of the main memory is set in the bank of the control memory, and Fig. 3 is an explanatory diagram of the address space of the control memory of the present invention. FIG. 1 is a configuration diagram of an embodiment of the device. In the figure, 6 is a CPU, 7 is a memory, 8 is a main memory start address register, 9 is a comparison circuit, 14 is a protection logic circuit, 1
8 is an interrupt request register, 19 is an address bus, and 2 (
) represents a control memory access signal line, and 21 represents a main memory access signal line. Patent applicant Fujitsu Ltd. Representative Patent Attorney Fumihiro Hase (1 other person) Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] 主記憶とパンク構造の制御記憶とに分割して使用される
メモリと、主記憶および制御記憶のいずれのアクセスで
あるかをそれぞれ指示する信号手段をそなえたCPUと
をそなえた計算機システムにおいて、主記憶のスタート
アドレスを保持するレジスタと、該主記憶のCPUから
送出されたメモリアドレスとを比較する回路と、該比較
の結果、メモリアドレスが主記憶スタートアドレスよシ
も小さい場合であって上記制御記憶アクセスを指示する
信号手段が存在するとき該信号手段をメモリへ転送し、
またメモリアドレスが主記憶スタートアドレスに等しい
かあるいはそれよりも大きい場合であって上記主記憶ア
クセスを指示する信号手段が存在するとき該信号手段を
メモリへ転送する論理回路とをそなえていることを特徴
とする計算機システムにおける主記憶保護装置。
In a computer system equipped with a memory that is divided into a main memory and a punctured control memory, and a CPU that is provided with a signal means for instructing whether to access the main memory or the control memory, A circuit that compares a register holding a memory start address with a memory address sent from a CPU of the main memory; forwarding the signal means to the memory when there is a signal means instructing the memory access;
Furthermore, when the memory address is equal to or larger than the main memory start address and there is a signal means for instructing the main memory access, a logic circuit is provided to transfer the signal means to the memory. A main memory protection device in a computer system characterized by:
JP22633883A 1983-11-30 1983-11-30 Main storage protecting device Pending JPS60118955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22633883A JPS60118955A (en) 1983-11-30 1983-11-30 Main storage protecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22633883A JPS60118955A (en) 1983-11-30 1983-11-30 Main storage protecting device

Publications (1)

Publication Number Publication Date
JPS60118955A true JPS60118955A (en) 1985-06-26

Family

ID=16843599

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22633883A Pending JPS60118955A (en) 1983-11-30 1983-11-30 Main storage protecting device

Country Status (1)

Country Link
JP (1) JPS60118955A (en)

Similar Documents

Publication Publication Date Title
US6449699B2 (en) Apparatus and method for partitioned memory protection in cache coherent symmetric multiprocessor systems
JPH05128010A (en) Address protecting circuit
US11567666B2 (en) Handling the migration of pages of memory accessible by input-output devices
US7555627B2 (en) Input-output control apparatus, input-output control method, process control apparatus and process control method
JPH01302444A (en) Logical address cache control system
EP0142819B1 (en) Access control system for storage having hardware area and software area
JPS60118955A (en) Main storage protecting device
JPS61105656A (en) Information processing device
JPS59117658A (en) Common bus access managing device of multimicroprocessor system
JP2868209B2 (en) Memory protection device in multiprocessor system
JPS6057091B2 (en) Common memory storage protection method
JP3256558B2 (en) Address translation method for electronic computers
JPS595495A (en) Storage area protecting system
JPS6035694B2 (en) Main memory protection method
JPS60215272A (en) Multi-processor system
JPS6129070Y2 (en)
JPH04130553A (en) Electronic computer
JPS59154698A (en) Protecting system of control storage
JPH02100741A (en) Information processor
JPH01320557A (en) Shared storage device
JPH06110818A (en) Information processor
JPS5918797B2 (en) Address check processing method
JPS63165951A (en) Common memory protecting system
JPH06309229A (en) Data processor
JPS6228853A (en) Information processor provided with memory protecting mechanism