diff options
author | Richard Braun <rbraun@sceen.net> | 2013-06-15 17:16:26 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-06-15 17:16:26 +0200 |
commit | 44f8bf7d26bf21cc66d2fc8c14a924ed2e1b4f0f (patch) | |
tree | 1e63214f90c0c46140ff0e3c70c24f45052d3b15 /vm/vm_inherit.h | |
parent | cb92d9b44686dae10f94a410c5cab93ff29f7208 (diff) |
vm/vm_map: rework flags
Add vm/vm_adv.h for VM_ADV_xxx advice macros, and directly use
VM_{ADV,INHERIT,PROT}_xxx macros in the "packed" format used for mapping
requests and in map entries. This allows simpler comparisons between
stored flags and user provided values.
Diffstat (limited to 'vm/vm_inherit.h')
-rw-r--r-- | vm/vm_inherit.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vm/vm_inherit.h b/vm/vm_inherit.h index b50d490d..0ef4616c 100644 --- a/vm/vm_inherit.h +++ b/vm/vm_inherit.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012 Richard Braun. + * Copyright (c) 2011, 2012, 2013 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,11 +19,11 @@ #define _VM_VM_INHERIT_H /* - * Inheritance flags. + * Inheritance values. */ -#define VM_INHERIT_SHARE 0 -#define VM_INHERIT_COPY 1 -#define VM_INHERIT_NONE 2 +#define VM_INHERIT_NONE 0 +#define VM_INHERIT_SHARE 1 +#define VM_INHERIT_COPY 2 #define VM_INHERIT_DEFAULT VM_INHERIT_COPY #endif /* _VM_VM_INHERIT_H */ |