Added definition for reserved region's ID.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7885 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -26,14 +26,16 @@
|
|||||||
#define WRITE_COUNT 1024
|
#define WRITE_COUNT 1024
|
||||||
#define READ_COUNT 1
|
#define READ_COUNT 1
|
||||||
|
|
||||||
|
#define RESERVED_REGION_ID -1
|
||||||
|
|
||||||
// page attributes (in addition to B_READ_AREA etc.)
|
// page attributes (in addition to B_READ_AREA etc.)
|
||||||
#define PAGE_MODIFIED 64
|
#define PAGE_MODIFIED 64
|
||||||
#define PAGE_ACCESSED 128
|
#define PAGE_ACCESSED 128
|
||||||
#define PAGE_PRESENT 256
|
#define PAGE_PRESENT 256
|
||||||
|
|
||||||
// Should only be used by vm internals
|
// Should only be used by vm internals
|
||||||
int vm_page_fault(addr address, addr fault_address, bool is_write, bool is_user, addr *newip);
|
int vm_page_fault(addr_t address, addr_t fault_address, bool is_write, bool is_user, addr_t *newip);
|
||||||
void vm_increase_max_commit(addr delta);
|
void vm_increase_max_commit(addr_t delta);
|
||||||
int vm_daemon_init(void);
|
int vm_daemon_init(void);
|
||||||
|
|
||||||
// used by the page daemon to walk the list of address spaces
|
// used by the page daemon to walk the list of address spaces
|
||||||
@@ -41,11 +43,11 @@ int vm_aspace_walk_start(struct hash_iterator *i);
|
|||||||
vm_address_space *vm_aspace_walk_next(struct hash_iterator *i);
|
vm_address_space *vm_aspace_walk_next(struct hash_iterator *i);
|
||||||
|
|
||||||
// get some data about the number of pages in the system
|
// get some data about the number of pages in the system
|
||||||
addr vm_page_num_pages(void);
|
addr_t vm_page_num_pages(void);
|
||||||
addr vm_page_num_free_pages(void);
|
addr_t vm_page_num_free_pages(void);
|
||||||
|
|
||||||
// allocates memory from the ka structure
|
// allocates memory from the ka structure
|
||||||
addr vm_alloc_from_ka_struct(kernel_args *ka, unsigned int size, int lock);
|
addr_t vm_alloc_from_ka_struct(kernel_args *ka, unsigned int size, int lock);
|
||||||
|
|
||||||
#endif
|
#endif /* _KERNEL_VM_PRIV_H */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user