ELECTRONIC CONTROL DEVICE AND CONTROL METHOD FOR ELECTRONIC CONTROL DEVICE

To provide an electronic control device that minimizes register replacement processing at task switching and function calling in an MPU and improves software execution efficiency.SOLUTION: An electronic control device includes: a register 410 for storing access authority information; a memory protec...

Full description

Saved in:
Bibliographic Details
Main Authors SERIZAWA HAJIME, TSUNODA MASANOBU, EBINA TOMOHITO
Format Patent
LanguageEnglish
Japanese
Published 28.03.2019
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:To provide an electronic control device that minimizes register replacement processing at task switching and function calling in an MPU and improves software execution efficiency.SOLUTION: An electronic control device includes: a register 410 for storing access authority information; a memory protection unit 400 having a memory protection violation detection unit 430 for determining whether an access is a memory protection violation on the basis of setting of the register 410; an unset determination unit 1510 for determining whether the memory protection violation is caused by unset of the access authority information; and a register setting unit 1530 for making an enable set to the register 410. The register 410 includes channels 0 to 3 to which at least the access authority information is set and channels 4 to 7 to which the access authority information is not set. The register setting unit 1530 sets the access authority information to any one of the channels 4 to 7 when the unset determination unit 1510 determines that the memory protection violation is based on unset of the access authority information to the register 410.SELECTED DRAWING: Figure 9 【課題】MPUでのタスク切り替えや関数呼び出しの際のレジスタ入れ替え処理を最小化し、ソフトウェア実行効率を向上させる。【解決手段】アクセス権限情報を記憶するレジスタ410と、レジスタ410の設定に基づき、アクセスがメモリ保護違反であるかを判定するメモリ保護違反検出部430と、を有するメモリ保護ユニット400と、メモリ保護違反が、アクセス権限の未設定に起因するかを判定する未設定判定部1510と、レジスタ410にイネーブルを設定するレジスタ設定部1530とを有する。レジスタ410は、少なくともアクセス権限が設定されたチャネル0〜3と、未設定のチャネル4〜7とを有している。レジスタ設定部1530は、未設定判定部1510により、メモリ保護違反がレジスタ410へのアクセス権限の未設定に基づくものであると判定した場合、チャネル4〜7の何れかにアクセス権限を設定する。【選択図】図9
Bibliography:Application Number: JP20170174696