使用mpu的一个region模拟缺页

This commit is contained in:
root
2023-08-27 16:52:53 +08:00
parent 32a77c697d
commit 363c2da50c
35 changed files with 496 additions and 78 deletions

View File

@@ -22,15 +22,18 @@ enum thread_state
THREAD_SUSPEND,
THREAD_READY,
};
typedef struct pf
typedef struct
{
umword_t rg1[8]; //!< r4-r11
umword_t rg0[4]; //!< r0-r3
umword_t r12;
umword_t lr;
umword_t pc;
umword_t xpsr;
} pf_s_t;
typedef struct pf
{
umword_t rg1[8]; //!< r4-r11
pf_s_t pf_s;
} pf_t;
typedef struct sp_info