* vm.h no longer includes vm_types.h - only those that actually need access
to the private VM types are including vm_types.h now. * Removed vm_page, vm_area, vm_cache, and vm_address_space typedefs; it's cleaner this way, and the actual types are only used in C++ files now, anyway. * And that caused changes in many files... * Made commpage.h self-containing. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22329 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2005, Axel Dörfler, [email protected].
|
||||
* Copyright 2002-2007, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
@@ -9,9 +9,15 @@
|
||||
#define KERNEL_ARCH_VM_H
|
||||
|
||||
|
||||
#include <vm.h>
|
||||
#include <arch_vm.h>
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
struct kernel_args;
|
||||
struct vm_area;
|
||||
struct vm_address_space;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -20,12 +26,13 @@ extern "C" {
|
||||
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(kernel_args *args);
|
||||
void arch_vm_aspace_swap(vm_address_space *aspace);
|
||||
status_t arch_vm_init_post_modules(struct kernel_args *args);
|
||||
void arch_vm_aspace_swap(struct vm_address_space *aspace);
|
||||
bool arch_vm_supports_protection(uint32 protection);
|
||||
|
||||
status_t arch_vm_set_memory_type(vm_area *area, addr_t physicalBase, uint32 type);
|
||||
void arch_vm_unset_memory_type(vm_area *area);
|
||||
status_t arch_vm_set_memory_type(struct vm_area *area, addr_t physicalBase,
|
||||
uint32 type);
|
||||
void arch_vm_unset_memory_type(struct vm_area *area);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -5,7 +5,12 @@
|
||||
#ifndef _KERNEL_ARCH_x86_COMMPAGE_H
|
||||
#define _KERNEL_ARCH_x86_COMMPAGE_H
|
||||
|
||||
/* some systemwide commpage constants, used in the kernel and libroot */
|
||||
/*! Some systemwide commpage constants, used in the kernel and libroot */
|
||||
|
||||
#ifndef _ASSEMBLER
|
||||
# include <SupportDefs.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* be careful what you put here, this file is included from assembly */
|
||||
#define COMMPAGE_ENTRY_MAGIC 0
|
||||
@@ -23,5 +28,4 @@
|
||||
status_t commpage_init(void);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL_ARCH_x86_COMMPAGE_H */
|
||||
|
||||
Reference in New Issue
Block a user