使用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

@@ -7,6 +7,7 @@
#define TASK_PROT 3
#define LOG_PROT 4
#define IPC_PROT 5
#define MM_PROT 6
typedef struct msg_tag
{
@@ -27,3 +28,6 @@ typedef struct msg_tag
#define msg_tag_init3(t, t2, p) \
msg_tag_init(((umword_t)(t)&0xf) | (((umword_t)(t2)&0xff) << 4) | (((umword_t)(p)) << 12))
#define msg_tag_get_prot(tag) \
((mword_t)((tag).prot))