[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JPH02121045A - Microprocessor with access protecting function - Google Patents

Microprocessor with access protecting function

Info

Publication number
JPH02121045A
JPH02121045A JP27549088A JP27549088A JPH02121045A JP H02121045 A JPH02121045 A JP H02121045A JP 27549088 A JP27549088 A JP 27549088A JP 27549088 A JP27549088 A JP 27549088A JP H02121045 A JPH02121045 A JP H02121045A
Authority
JP
Japan
Prior art keywords
access
address
register
contents
comparator
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
JP27549088A
Other languages
Japanese (ja)
Inventor
Toru Kobayashi
徹 小林
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 JP27549088A priority Critical patent/JPH02121045A/en
Publication of JPH02121045A publication Critical patent/JPH02121045A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To easily execute access protecting processing by generating a non maskable interrupt and jumping to an address registered in an NMI (Non Maskable Interrupt) register when a program generates an access contravention. CONSTITUTION:When the title microprocessor starts its memory access cycle, a comparator 7 compares an access address to be sent from an address generator 6 with the contents of an area upper limit register 2, and when the address is <= the contents, the comparator 7 compares the address with the contents of an area lower limit register 3. As the result, when the address is >= a lower limit value indicated in the area lower limit register 3, the comparator 7 sends a signal to indicate the occurrence of an address inhibition contravention to an NMI controller 9. At this time, the non maskable interrupt is generated, memory access is not actually executed, and jumping to the address registered in an NMI register 4 is executed. Thus, access can be easily protected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプロセッサに関し、特にメモリアクセ
ス時のアクセスプロテクト処理に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor, and particularly to access protection processing during memory access.

〔従来の技術〕[Conventional technology]

従来、マイクロプロセッサのアクセスプロテクトは、c
rtyの動作モードを変えてアクセス権を設定すること
によりアクセスプロテクトする第1の方式や、プログラ
ム中にあらかじめ成る種の命令を挿入しておいてアクセ
ス範囲をチエツクする第2の方式がとられている。
Conventionally, access protection for microprocessors is based on c
The first method is to protect access by changing the rty operation mode and setting access rights, and the second method is to insert certain kinds of instructions into the program in advance and check the access range. There is.

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

上述した従来のアクセスプロテクトは、第1の方式では
プロテクトの為の設定が大がかりなものとなってしまい
、−旦設定したものを変えるといったことが困難という
欠点がある。一方。
The above-mentioned conventional access protection has the drawback that the first method requires extensive settings for protection, and it is difficult to change the settings once they have been set. on the other hand.

第2の方式ではプログラム中にチエツク命令をあらかじ
め挿入しておく必要があり、適当な位置に挿入しておか
なければ意味をもたないという欠点がある。
The second method requires the check instruction to be inserted into the program in advance, and has the disadvantage that it has no meaning unless it is inserted at an appropriate position.

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

本発明によるマイクロプロセッサは、上記欠点を解決す
るために、アドレスを登録するアクセスプロテクトレジ
スタによってアクセス禁止領域を設定する手段と、アク
セス禁止違反が発生した場合、マスク不可割り込みを発
生する手段と、アクセス禁止違反発生時、実際にメモリ
ヘノアクセスを行なわず、アクセスプロテクトレジスタ
に登録したアドレスヘジャンプする手段とによるアクセ
スプロテクト機能を有することを特徴とする。
In order to solve the above-mentioned drawbacks, the microprocessor according to the present invention has a means for setting an access prohibited area using an access protect register in which an address is registered, a means for generating a non-maskable interrupt when an access prohibition violation occurs, and an access protection register that registers an address. The present invention is characterized in that it has an access protection function by means of jumping to an address registered in an access protection register without actually accessing the memory when a prohibition violation occurs.

〔作 用〕[For production]

群は領域上限レジスタ、領域下限レジスタ、NMIレジ
スタから成る。
The group consists of an area upper limit register, an area lower limit register, and an NMI register.

マイクロプロセッサがメモリアクセスを行なうと、メモ
リアドレスを領域上限レジスタの内容及び領域下限レジ
スタの内容と比較し、設定された領域内であればアクセ
ス禁止違反発生とみなしてNMエレジスタの内容をプロ
グラムカウンタにコピーする。つまり、プログラムがア
クセス違反を生じるとノンマスカブル(マスク不可)割
り込みが発生し、NMエレジスタに登録されているアド
レスヘジャンプする。
When the microprocessor accesses memory, it compares the memory address with the contents of the area upper limit register and the area lower limit register, and if it is within the set area, it is assumed that an access prohibition violation has occurred and the contents of the NM register are set to the program counter. make a copy. In other words, when a program causes an access violation, a non-maskable interrupt is generated and a jump is made to the address registered in the NM register.

〔実施例〕〔Example〕

次に本発明の実施例について説明する。第1図は本発明
の一実施例の概念図である。
Next, examples of the present invention will be described. FIG. 1 is a conceptual diagram of an embodiment of the present invention.

アクセスプロテクトレジスタ群A PR(Access
Protection RegiSters ) 1は
領域上限レジスタU LR(Upper Lim1t 
defihition Register ) 2と領
域下限レジスタLLR(LowerLimit def
inition Register ) 3及びNMエ
レジスタNMR(Non Maskable 1nte
rruptaddress Register) 4の
6つのレジスタから構成されている。
Access protection register group A PR (Access
Protection RegiStars) 1 is the area upper limit register ULR (Upper Lim1t
definition Register) 2 and area lower limit register LLR (LowerLimit def
initiation Register) 3 and NM Eregister NMR (Non Maskable 1nte)
It consists of six registers: 4 (rruptaddress Register).

マイクロプロセッサがメモリアクセスサイクルにはいる
と、比較器7はアドレス発生器6から送られてくるアク
セスすべきアドレスをまずULR2の内容と比較し、ア
ドレスがそれ以下であれば、比較器7は次にLLR3の
内容と比較する。その結果、アドレスがLLR3で示さ
れる下限値以上であれば、比較器7はアドレス禁止違反
発生を示す信号をNMエコントローラ9に送出する。こ
の時、NMエコントローラ9は現在のプログラムカウン
タP C(ProgramCounter ) 5とフ
ラグレジスタをスタックに回避した後、NMR4の内容
をプログラムカウンタ5にコピーする。
When the microprocessor enters a memory access cycle, the comparator 7 first compares the address to be accessed sent from the address generator 6 with the contents of ULR2, and if the address is less than that, the comparator 7 moves on to the next address. Compare with the contents of LLR3. As a result, if the address is greater than or equal to the lower limit indicated by LLR 3, comparator 7 sends a signal to NM controller 9 indicating that an address prohibition violation has occurred. At this time, the NM controller 9 saves the current program counter PC (Program Counter) 5 and flag register to the stack, and then copies the contents of the NMR 4 to the program counter 5.

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

以上説明したように本発明は、アクセスプロテクトレジ
スタ群により容易にアクセス保護が行なえる。特に、フ
ルチタスクOSにおいては。
As explained above, according to the present invention, access protection can be easily performed using a group of access protection registers. Especially in the Fullti Tasks OS.

各タスクにおいて独自にアクセスプロテクトを行なう事
ができるので、タスクの暴走時にシステム全体に与える
ダメージを少なくすることができる。又、タスク単位に
エラーリカバリーを行なうことができ、システム全体の
信頼性が向上するという効果もある。
Since access protection can be performed independently for each task, damage to the entire system can be reduced when a task goes out of control. Furthermore, error recovery can be performed on a task-by-task basis, which has the effect of improving the reliability of the entire system.

更に、デバッグ時にアクセスプロテクトレジスタのUL
RとLLRを同じ値にすることにより簡単なモニターで
アドレスブレークの処理ができる。そのため、デバッグ
用のソフトウェアの負担が軽減するといった効果もある
Furthermore, when debugging, the access protection register UL
By setting R and LLR to the same value, address breaks can be processed with a simple monitor. This also has the effect of reducing the burden on debugging software.

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

第1図は本発明の一実施例の概念図。 図中、1はアクセスプロテクトレジスタ群。 2は領域上限レジスタ、3は領域下限レジスタ。 4はNMエレジスタ、5はプログラムカウンタ。 6はアドレス発生器、7は比較器、9はNMエコントロ
ーラ。
FIG. 1 is a conceptual diagram of an embodiment of the present invention. In the figure, 1 is a group of access protection registers. 2 is an area upper limit register, and 3 is an area lower limit register. 4 is the NM register, and 5 is the program counter. 6 is an address generator, 7 is a comparator, and 9 is an NM controller.

Claims (1)

【特許請求の範囲】[Claims] 1、アドレスを登録するアクセスプロテクトレジスタに
よってアクセス禁止領域を設定する手段と、アクセス禁
止違反が発生した場合、マスク不可割り込みを発生する
手段と、前記アクセス禁止違反発生時、実際にメモリへ
のアクセスを行なわず、アクセスプロテクトレジスタに
登録したアドレスへジャンプする手段とを含むことを特
徴とするアクセスプロテクト機能を有するマイクロプロ
セッサ。
1. A means for setting an access prohibited area using an access protect register in which an address is registered, a means for generating a non-maskable interrupt when an access prohibition violation occurs, and a means for actually preventing access to memory when the access prohibition violation occurs. A microprocessor having an access protection function, characterized in that the microprocessor includes means for jumping to an address registered in an access protection register.
JP27549088A 1988-10-31 1988-10-31 Microprocessor with access protecting function Pending JPH02121045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27549088A JPH02121045A (en) 1988-10-31 1988-10-31 Microprocessor with access protecting function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27549088A JPH02121045A (en) 1988-10-31 1988-10-31 Microprocessor with access protecting function

Publications (1)

Publication Number Publication Date
JPH02121045A true JPH02121045A (en) 1990-05-08

Family

ID=17556241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27549088A Pending JPH02121045A (en) 1988-10-31 1988-10-31 Microprocessor with access protecting function

Country Status (1)

Country Link
JP (1) JPH02121045A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007207277A (en) * 2007-05-01 2007-08-16 Renesas Technology Corp Semiconductor information processing apparatus
JP2010165371A (en) * 2010-03-08 2010-07-29 Solid State Storage Solutions Llc Semiconductor information processor
WO2023119652A1 (en) * 2021-12-24 2023-06-29 日立Astemo株式会社 Electronic control device and access control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007207277A (en) * 2007-05-01 2007-08-16 Renesas Technology Corp Semiconductor information processing apparatus
JP4638467B2 (en) * 2007-05-01 2011-02-23 ソリッド ステート ストレージ ソリューションズ エルエルシー Semiconductor information processing equipment
JP2010165371A (en) * 2010-03-08 2010-07-29 Solid State Storage Solutions Llc Semiconductor information processor
WO2023119652A1 (en) * 2021-12-24 2023-06-29 日立Astemo株式会社 Electronic control device and access control method

Similar Documents

Publication Publication Date Title
EP2668578B1 (en) Controlling generation of debug exceptions
US4961161A (en) Arithmetic processor performing mask and trap operations for exceptions
JPH0877075A (en) Information processor
JPH08320794A (en) Microprocessor
JPH02121045A (en) Microprocessor with access protecting function
JPS599937B2 (en) information processing equipment
JP2653412B2 (en) How to set breakpoints
JPS61226843A (en) Device for detecting interruption abnormality
JPH08153018A (en) Semiconductor system
JPH04205144A (en) Microprocessor
JPH059815B2 (en)
JPS621042A (en) Electronic computer
JPH0683652A (en) Microcomputer system
JPS61133436A (en) Data processing unit
JPS61216059A (en) Storage data protection method
JPH0251742A (en) Preventing system for program runaway
JPS6341938A (en) Microcomputer
JPH0561693A (en) Electronic computer
JPH02129735A (en) Debug device
JPH045729A (en) Processor device
JPS63120336A (en) Switching system for memory access mode
JPH02278446A (en) Memory access control circuit
JPH02297629A (en) Microcomputer
JPH05143365A (en) Interruption table expansion/protection system
JPH03122723A (en) Interruption processor