在TI相关技术文档的内存章节有提到以下内容:
Segments are always a power-of-2 size and start on a corresponding power-of-2 boundary.
这段的意思是分配的内存区的起始地址和内存大小都必须是2次幂(字节)?这里的corresponding怎么理解?如果不是2次幂,会有什么问题?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在TI相关技术文档的内存章节有提到以下内容:
Segments are always a power-of-2 size and start on a corresponding power-of-2 boundary.
这段的意思是分配的内存区的起始地址和内存大小都必须是2次幂(字节)?这里的corresponding怎么理解?如果不是2次幂,会有什么问题?
我再确认一下给你答复。
另外你上面提到的不是二次幂是指下文的意思吗?
If an address matches multiple MPAXH registers (overlapping segment descriptors), the highest numbered MPAX register-pair is selected (that is, if the address matches BADDR in MPAXH5 and in MPAXH2, MPAXH5 is selected). Using this priority-based matching behavior, multiple MPAX entries can be programmed for overlapping segments to achieve either non-power-of-two sized segments or subsegments with different memory protection (and/or extension) parameters.