mpu缺页模拟完善

This commit is contained in:
zhangzheng
2025-01-26 11:54:01 +08:00
parent 5bce3adf01
commit 501482c512
53 changed files with 841 additions and 7595 deletions

View File

@@ -227,7 +227,7 @@ static int share_mem_alloc_pmem(share_mem_t *obj)
#else
align_size = obj->size;
#if CONFIG_MK_MPU_CFG
#if CONFIG_MPU
#if CONFIG_MPU_VERSION == 1
if (obj->size < (1UL << CONFIG_PAGE_SHIFT) || !is_power_of_2(obj->size))
{