X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/12293ed1d71cd306ed9a5d021a79ba945fe4e680..c50b9a23b03c677efa3842536c363d368542e30b:/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 060b881..07d3d79 100644 --- a/lunaix-os/includes/lunaix/mm/mm.h +++ b/lunaix-os/includes/lunaix/mm/mm.h @@ -3,6 +3,8 @@ #include #include +#include +#include typedef struct { @@ -33,6 +35,7 @@ typedef struct #define REGION_WSHARED 0x2 #define REGION_PERM_MASK 0x1c +#define REGION_MODE_MASK 0x3 #define REGION_READ (1 << 2) #define REGION_WRITE (1 << 3) @@ -47,9 +50,11 @@ typedef struct struct mm_region { struct llist_header head; - unsigned long start; - unsigned long end; - unsigned int attr; + struct v_file* mfile; + u32_t offset; + ptr_t start; + ptr_t end; + u32_t attr; }; #endif /* __LUNAIX_MM_H */