A memory allocation method for MPU memory protection unit

Xin Wang, Zhiqiang Wang, Qilong Hu, Lin Fan, Ling Yi, Jingben Xu
{"title":"A memory allocation method for MPU memory protection unit","authors":"Xin Wang, Zhiqiang Wang, Qilong Hu, Lin Fan, Ling Yi, Jingben Xu","doi":"10.1109/ICCECT57938.2023.10141446","DOIUrl":null,"url":null,"abstract":"At present, the Memory Protection Unit (MPU) of Cortex-M series processors needs to align the address with the rule of 2n when protecting the memory, but this method will cause memory waste in multi-task memory allocation. Therefore, this paper proposes a method that uses multiple MPU protected regions to concatenate and superimpose to protect a region simultaneously, which effectively reduces the memory waste caused by alignment. The experimental results show that, compared with using a single MPU protected region, using four regions for concatenation and superposition can reduce the memory waste by 63%, and effectively improve the memory utilization.","PeriodicalId":314504,"journal":{"name":"2023 IEEE International Conference on Control, Electronics and Computer Technology (ICCECT)","volume":"114 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-04-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE International Conference on Control, Electronics and Computer Technology (ICCECT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCECT57938.2023.10141446","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

At present, the Memory Protection Unit (MPU) of Cortex-M series processors needs to align the address with the rule of 2n when protecting the memory, but this method will cause memory waste in multi-task memory allocation. Therefore, this paper proposes a method that uses multiple MPU protected regions to concatenate and superimpose to protect a region simultaneously, which effectively reduces the memory waste caused by alignment. The experimental results show that, compared with using a single MPU protected region, using four regions for concatenation and superposition can reduce the memory waste by 63%, and effectively improve the memory utilization.
一种用于MPU内存保护单元的内存分配方法
目前,Cortex-M系列处理器的MPU (Memory Protection Unit)在保护内存时需要将地址与2n规则对齐,但这种方法在多任务分配内存时会造成内存浪费。因此,本文提出了一种利用多个MPU保护区域串联叠加同时保护一个区域的方法,有效地减少了对齐造成的内存浪费。实验结果表明,与使用单个MPU保护区域相比,使用四个区域进行连接和叠加可以减少63%的内存浪费,有效提高了内存利用率。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信