Moved vm_translation_map_arch_info definition to the header.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,19 @@
|
|||||||
#include <arch/vm_translation_map.h>
|
#include <arch/vm_translation_map.h>
|
||||||
|
|
||||||
|
|
||||||
|
#define PAGE_INVALIDATE_CACHE_SIZE 64
|
||||||
|
|
||||||
|
struct page_directory_entry;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct vm_translation_map_arch_info {
|
||||||
|
struct page_directory_entry *pgdir_virt;
|
||||||
|
struct page_directory_entry *pgdir_phys;
|
||||||
|
int num_invalidate_pages;
|
||||||
|
addr_t pages_to_invalidate[PAGE_INVALIDATE_CACHE_SIZE];
|
||||||
|
} vm_translation_map_arch_info;
|
||||||
|
|
||||||
|
|
||||||
// quick function to return the physical pgdir of a mapping, needed for a context switch
|
// quick function to return the physical pgdir of a mapping, needed for a context switch
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
|
|||||||
@@ -63,18 +63,6 @@ typedef struct page_directory_entry {
|
|||||||
} page_directory_entry;
|
} page_directory_entry;
|
||||||
|
|
||||||
static page_table_entry *iospace_pgtables = NULL;
|
static page_table_entry *iospace_pgtables = NULL;
|
||||||
|
|
||||||
#define PAGE_INVALIDATE_CACHE_SIZE 64
|
|
||||||
|
|
||||||
// vm_translation object stuff
|
|
||||||
typedef struct vm_translation_map_arch_info {
|
|
||||||
page_directory_entry *pgdir_virt;
|
|
||||||
page_directory_entry *pgdir_phys;
|
|
||||||
int num_invalidate_pages;
|
|
||||||
addr_t pages_to_invalidate[PAGE_INVALIDATE_CACHE_SIZE];
|
|
||||||
} vm_translation_map_arch_info;
|
|
||||||
|
|
||||||
|
|
||||||
static page_table_entry *page_hole = NULL;
|
static page_table_entry *page_hole = NULL;
|
||||||
static page_directory_entry *page_hole_pgdir = NULL;
|
static page_directory_entry *page_hole_pgdir = NULL;
|
||||||
static page_directory_entry *sKernelPhysicalPageDirectory = NULL;
|
static page_directory_entry *sKernelPhysicalPageDirectory = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user