Created a new arch-specific vm_translation.h header - it's not included
in this file. Moved the vm_translation_map_get_pgdir() function to the x86 specific header. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5066 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <lock.h>
|
#include <lock.h>
|
||||||
|
|
||||||
|
|
||||||
struct kernel_args;
|
struct kernel_args;
|
||||||
|
|
||||||
|
|
||||||
@@ -20,6 +21,7 @@ typedef struct vm_translation_map_struct {
|
|||||||
struct vm_translation_map_arch_info_struct *arch_data;
|
struct vm_translation_map_arch_info_struct *arch_data;
|
||||||
} vm_translation_map;
|
} vm_translation_map;
|
||||||
|
|
||||||
|
|
||||||
// table of operations the vm may want to do to this mapping
|
// table of operations the vm may want to do to this mapping
|
||||||
typedef struct vm_translation_map_ops_struct {
|
typedef struct vm_translation_map_ops_struct {
|
||||||
void (*destroy)(vm_translation_map *);
|
void (*destroy)(vm_translation_map *);
|
||||||
@@ -45,8 +47,7 @@ void vm_translation_map_module_init_post_sem(struct kernel_args *ka);
|
|||||||
int vm_translation_map_quick_map(struct kernel_args *ka, addr va, addr pa,
|
int vm_translation_map_quick_map(struct kernel_args *ka, addr va, addr pa,
|
||||||
unsigned int attributes, addr (*get_free_page)(kernel_args *));
|
unsigned int attributes, addr (*get_free_page)(kernel_args *));
|
||||||
|
|
||||||
// quick function to return the physical pgdir of a mapping, needed for a context switch
|
#include <arch_vm_translation_map.h>
|
||||||
addr vm_translation_map_get_pgdir(vm_translation_map *map);
|
|
||||||
|
|
||||||
#endif /* KERNEL_VM_TRANSLATION_MAP_H */
|
#endif /* KERNEL_VM_TRANSLATION_MAP_H */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user