Method for protecting all memory space addresses based on limited MPU configuration areas
The invention provides a method for protecting all memory space addresses based on limited MPU (Microprocessor Unit) configuration areas, which comprises the following steps: setting a configuration area (X-1) and 0 to be inaccessible, and dynamically accessing the configuration area (X-1) through a...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a method for protecting all memory space addresses based on limited MPU (Microprocessor Unit) configuration areas, which comprises the following steps: setting a configuration area (X-1) and 0 to be inaccessible, and dynamically accessing the configuration area (X-1) through an exception handling function, thereby realizing different access authority configuration for all memory addresses. The problem that many scattered memory address spaces cannot be protected due to the fact that the number of hardware MPU configuration areas is limited in a traditional scheme can be effectively solved, the steps of configuration of memory attributes and authority can be simplified, and the development efficiency of embedded software is improved.
本发明提供了一种基于有限个MPU配置区域保护所有内存空间地址的方法,通过设置配置区域(X-1)和0不可访问,再通过异常处理函数对配置区域(X-1)动态访存,实现对所有内存地址不同的访问权限配置的方法,可以有效解决传统方案中由于硬件MPU配置区域个数受限而导致无法对很多零散的内存地址空间进行保护的问题,还可以简化内存属性和权限的配置的步骤,提高嵌入式软件开发的效率。 |
---|