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

@@ -10,15 +10,15 @@
typedef struct mem_heap
{
uint32_t magic;
// union
// {
// char name[MEM_HEAP_NAME];
// };
struct mem_heap *next;
struct mem_heap *prev;
umword_t size;
uint16_t used;
umword_t size; // 可用的大小
uint32_t used;
uint32_t magic;
} mem_heap_t;
#define MEM_HEAP_STRUCT_SIZE ALIGN(sizeof(struct mem_heap), 4) //!< 对齐大小