git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Architectural Support: x86_64 (#37)
[lunaix-os.git]
/
lunaix-os
/
includes
/
usr
/
lunaix
/
mann_flags.h
diff --git
a/lunaix-os/includes/usr/lunaix/mann_flags.h
b/lunaix-os/includes/usr/lunaix/mann_flags.h
index 479c60b05e034e8f78daa628416f4d986528cf6d..dcd3a3479282c2252c8ac84637b79bd62cf66370 100644
(file)
--- a/
lunaix-os/includes/usr/lunaix/mann_flags.h
+++ b/
lunaix-os/includes/usr/lunaix/mann_flags.h
@@
-7,6
+7,7
@@
#define PROT_READ (1 << 2)
#define PROT_WRITE (1 << 3)
#define PROT_EXEC (1 << 4)
#define PROT_READ (1 << 2)
#define PROT_WRITE (1 << 3)
#define PROT_EXEC (1 << 4)
+#define PROT_NONE 0
// identity mapped to region attributes
// identity mapped to region attributes
@@
-16,6
+17,7
@@
#define MAP_PRIVATE MAP_RSHARED
#define MAP_EXCLUSIVE 0x0
#define MAP_ANON (1 << 5)
#define MAP_PRIVATE MAP_RSHARED
#define MAP_EXCLUSIVE 0x0
#define MAP_ANON (1 << 5)
+#define MAP_ANONYMOUS MAP_ANON
#define MAP_STACK 0 // no effect in Lunaix
// other MAP_* goes should beyond 0x20
#define MAP_STACK 0 // no effect in Lunaix
// other MAP_* goes should beyond 0x20
@@
-28,4
+30,14
@@
#define MS_INVALIDATE 0x4
#define MS_INVALIDATE_ALL 0x8
#define MS_INVALIDATE 0x4
#define MS_INVALIDATE_ALL 0x8
+struct usr_mmap_param
+{
+ void* addr;
+ unsigned long length;
+ int proct;
+ int flags;
+ int fd;
+ unsigned long offset;
+};
+
#endif /* __LUNAIX_MANN_FLAGS_H */
#endif /* __LUNAIX_MANN_FLAGS_H */