Choco OS
V.0.16.9.0
Join to the chocolate world
|
configuration structure for the memory region More...
#include <oc_mcs.h>
Data Fields | |
const void * | BaseAddress |
Base address of the region - this must point to the start of the region. More... | |
oC_MemorySize_t | Size |
Size of the region. | |
bool | AlignSize |
True if the MCS should find the size nearest to the value given as the Size field. | |
oC_Power_t | Power |
Power state for the region (enabled or disabled) | |
oC_Access_t | UserAccess |
Definition of access for user space. | |
oC_Access_t | PrivilegedAccess |
Definition of access for privileged space (portable or core) | |
bool | Shareable |
For a shareable memory region that is implemented, the memory system provides data synchronization between bus masters in a system with multiple bus masters, for example, a processor with a DMA controller. More... | |
bool | Cacheable |
True if the region should be cacheable - If you set a region to be cacheable: When you load from that region, the cache is searched. More... | |
bool | Bufforable |
True if the region should be bufforable - Bufferable means whether a write to the address can be buffered. More... | |
uint32_t | RegionNumber |
Number of the region to configure. More... | |
The type is for storing configuration of the memory region for MPU
const void* BaseAddress |
bool Bufforable |
When you do a write to a memory (e.g. a STR instruction) the write gets placed into a buffer in the processor. The buffer continually drains the writes to the memory system - allowing the core to continue with the next instructions. Processors often have multiple buffers, for example one between the pipeline and L1 data cache, another between the L1 and L2 caches, another for main memory....
bool Cacheable |
If the item is found, it is loaded from the cache. If the item is not found, a complete cache line including the required address is loaded. Some other cache line is evicted from the cache, unless there is an unused cache line available. When you save to that region, the cache is searched. If the item is found, the save is made to the cache. If the item is not found, the save is made to memory.
uint32_t RegionNumber |
It is just ID index between 0 and oC_MCS_GetMaximumNumberOfRegions
bool Shareable |