X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/48b4a227035048fdebcd32532deb7a857c6199ac..86a9cfeadbbe180abf6c8bd8c64c86957fdacfeb:/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..04f2f02 100644 --- a/lunaix-os/includes/lunaix/mm/mm.h +++ b/lunaix-os/includes/lunaix/mm/mm.h @@ -30,14 +30,18 @@ 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; };