147133b76c
where appropriate. * Typedef'ed page_num_t to phys_addr_t and used it in more places in vm_page.{h,cpp}. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36937 a95241bf-73f2-0310-859d-f6bbb57e9c96
43 lines
1012 B
C
43 lines
1012 B
C
/*
|
|
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
* Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef KERNEL_ARCH_VM_H
|
|
#define KERNEL_ARCH_VM_H
|
|
|
|
|
|
#include <arch_vm.h>
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
struct kernel_args;
|
|
struct VMAddressSpace;
|
|
struct VMArea;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
status_t arch_vm_init(struct kernel_args *args);
|
|
status_t arch_vm_init_post_area(struct kernel_args *args);
|
|
status_t arch_vm_init_end(struct kernel_args *args);
|
|
status_t arch_vm_init_post_modules(struct kernel_args *args);
|
|
void arch_vm_aspace_swap(struct VMAddressSpace *from,
|
|
struct VMAddressSpace *to);
|
|
bool arch_vm_supports_protection(uint32 protection);
|
|
|
|
status_t arch_vm_set_memory_type(struct VMArea *area, phys_addr_t physicalBase,
|
|
uint32 type);
|
|
void arch_vm_unset_memory_type(struct VMArea *area);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* KERNEL_ARCH_VM_H */
|