Renamed vm.c to vm.cpp and made all the changes to let it compile without
errors. Also made the VM headers C++ safe. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12694 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -38,6 +38,11 @@
|
||||
#define PAGE_ACCESSED 0x2000
|
||||
#define PAGE_PRESENT 0x4000
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// 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);
|
||||
void vm_unreserve_memory(size_t bytes);
|
||||
@@ -51,5 +56,9 @@ vm_address_space *vm_aspace_walk_next(struct hash_iterator *i);
|
||||
// allocates memory from the kernel_args structure
|
||||
addr_t vm_alloc_from_kernel_args(kernel_args *args, size_t size, uint32 lock);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL_VM_PRIV_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user