Introduced new B_KERNEL_AREA_FLAGS and B_USER_AREA_FLAGS that can be used
instead B_KERNEL_PROTECTION and B_USER_PROTECTION. Unlike before, B_USER_CLONEABLE_AREA is now only in B_KERNEL_AREA_FLAGS, but no longer in B_KERNEL_PROTECTION. This fixes a couple of problems when B_USER_CLONEABLE_AREA was defined without specifing read/write access. PAGE_PRESENT|MODIFIED|ACCESSED are in the same "namespace" as the protection flags, and therefore, shouldn't overlap. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12154 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -32,9 +32,9 @@
|
||||
#define RESERVED_REGION_ID -1
|
||||
|
||||
// page attributes (in addition to B_READ_AREA etc.)
|
||||
#define PAGE_MODIFIED 64
|
||||
#define PAGE_ACCESSED 128
|
||||
#define PAGE_PRESENT 256
|
||||
#define PAGE_MODIFIED 0x1000
|
||||
#define PAGE_ACCESSED 0x2000
|
||||
#define PAGE_PRESENT 0x4000
|
||||
|
||||
// Should only be used by vm internals
|
||||
status_t vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser, addr_t *newip);
|
||||
|
||||
Reference in New Issue
Block a user