2002-07-09 16:24:59 +04:00
|
|
|
/*
|
2007-09-27 16:21:33 +04:00
|
|
|
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de.
|
2004-12-10 21:48:31 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
|
|
* Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
2003-05-03 18:12:16 +04:00
|
|
|
#ifndef KERNEL_ARCH_VM_H
|
|
|
|
#define KERNEL_ARCH_VM_H
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-10-29 00:10:00 +03:00
|
|
|
|
2004-12-10 21:48:31 +03:00
|
|
|
#include <arch_vm.h>
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2007-09-27 16:21:33 +04:00
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct kernel_args;
|
2009-12-01 20:27:09 +03:00
|
|
|
struct VMAddressSpace;
|
2009-12-01 20:40:04 +03:00
|
|
|
struct VMArea;
|
2007-09-27 16:21:33 +04:00
|
|
|
|
2003-05-03 18:12:16 +04:00
|
|
|
|
2003-10-29 00:10:00 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2004-10-20 03:19:10 +04:00
|
|
|
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);
|
2007-09-27 16:21:33 +04:00
|
|
|
status_t arch_vm_init_post_modules(struct kernel_args *args);
|
2009-12-01 20:27:09 +03:00
|
|
|
void arch_vm_aspace_swap(struct VMAddressSpace *from,
|
|
|
|
struct VMAddressSpace *to);
|
2005-04-05 17:50:37 +04:00
|
|
|
bool arch_vm_supports_protection(uint32 protection);
|
2005-12-12 20:04:36 +03:00
|
|
|
|
2009-12-01 20:40:04 +03:00
|
|
|
status_t arch_vm_set_memory_type(struct VMArea *area, addr_t physicalBase,
|
2007-09-27 16:21:33 +04:00
|
|
|
uint32 type);
|
2009-12-01 20:40:04 +03:00
|
|
|
void arch_vm_unset_memory_type(struct VMArea *area);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-10-29 00:10:00 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2003-05-03 18:12:16 +04:00
|
|
|
#endif /* KERNEL_ARCH_VM_H */
|