X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/2e21eb2f39dd80aa166216381d5d402be943686e..0067bc210e621ccda286092d081a7890d65e1c18:/lunaix-os/includes/lunaix/mm/mm.h diff --git a/lunaix-os/includes/lunaix/mm/mm.h b/lunaix-os/includes/lunaix/mm/mm.h index 2ea1ac2..8318eaa 100644 --- a/lunaix-os/includes/lunaix/mm/mm.h +++ b/lunaix-os/includes/lunaix/mm/mm.h @@ -30,14 +30,17 @@ typedef struct */ #define REGION_WSHARED 0x2 -#define REGION_TYPE_CODE (0) -#define REGION_TYPE_DATA (1 << 2) +#define REGION_PERM_MASK 0x1c +#define REGION_READ (1 << 2) +#define REGION_WRITE (1 << 3) +#define REGION_EXEC (1 << 4) +#define REGION_RW REGION_READ | REGION_WRITE struct mm_region { - struct llist_header* head; - void* start; - void* end; + struct llist_header head; + unsigned long start; + unsigned long end; unsigned int attr; };