Removed NewOS LOCK_KERNEL and LOCK_RW - replaced by B_READ_AREA, and friends.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7846 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -26,10 +26,10 @@
|
||||
#define WRITE_COUNT 1024
|
||||
#define READ_COUNT 1
|
||||
|
||||
// page attributes
|
||||
#define PAGE_MODIFIED 0x04
|
||||
#define PAGE_ACCESSED 0x08
|
||||
#define PAGE_PRESENT 0x10
|
||||
// page attributes (in addition to B_READ_AREA etc.)
|
||||
#define PAGE_MODIFIED 64
|
||||
#define PAGE_ACCESSED 128
|
||||
#define PAGE_PRESENT 256
|
||||
|
||||
// Should only be used by vm internals
|
||||
int vm_page_fault(addr address, addr fault_address, bool is_write, bool is_user, addr *newip);
|
||||
|
||||
@@ -189,13 +189,4 @@ enum {
|
||||
#define B_USER_PROTECTION (B_READ_AREA | B_WRITE_AREA | B_EXECUTE_AREA)
|
||||
#define B_KERNEL_PROTECTION (B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA | B_KERNEL_EXECUTE_AREA)
|
||||
|
||||
#define LOCK_RO 0
|
||||
#define LOCK_RW 1
|
||||
#define LOCK_KERNEL 2
|
||||
|
||||
#define PROTECTION_TO_LOCK(protection) \
|
||||
(protection & B_KERNEL_PROTECTION ? \
|
||||
((protection & B_KERNEL_WRITE_AREA ? LOCK_RW : LOCK_RO) | LOCK_KERNEL) \
|
||||
: (protection & B_WRITE_AREA ? LOCK_RW : LOCK_RO))
|
||||
|
||||
#endif /* _KERNEL_VM_TYPES_H */
|
||||
|
||||
Reference in New Issue
Block a user