JPH02121045A - Microprocessor with access protecting function - Google Patents
Microprocessor with access protecting functionInfo
- 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
Links
- 230000009191 jumping Effects 0.000 claims abstract description 4
- 230000006870 function Effects 0.000 claims description 2
- 230000005764 inhibitory process Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Storage Device Security (AREA)
Abstract
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.
従来、マイクロプロセッサのアクセスプロテクトは、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.
上述した従来のアクセスプロテクトは、第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.
本発明によるマイクロプロセッサは、上記欠点を解決す
るために、アドレスを登録するアクセスプロテクトレジ
スタによってアクセス禁止領域を設定する手段と、アク
セス禁止違反が発生した場合、マスク不可割り込みを発
生する手段と、アクセス禁止違反発生時、実際にメモリ
ヘノアクセスを行なわず、アクセスプロテクトレジスタ
に登録したアドレスヘジャンプする手段とによるアクセ
スプロテクト機能を有することを特徴とする。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.
群は領域上限レジスタ、領域下限レジスタ、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.
次に本発明の実施例について説明する。第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.
以上説明したように本発明は、アクセスプロテクトレジ
スタ群により容易にアクセス保護が行なえる。特に、フ
ルチタスク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.
第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)
よってアクセス禁止領域を設定する手段と、アクセス禁
止違反が発生した場合、マスク不可割り込みを発生する
手段と、前記アクセス禁止違反発生時、実際にメモリへ
のアクセスを行なわず、アクセスプロテクトレジスタに
登録したアドレスへジャンプする手段とを含むことを特
徴とするアクセスプロテクト機能を有するマイクロプロ
セッサ。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.
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)
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 |
-
1988
- 1988-10-31 JP JP27549088A patent/JPH02121045A/en active Pending
Cited By (4)
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 |