diff --git a/headers/private/kernel/arch/x86/arch_vm_translation_map.h b/headers/private/kernel/arch/x86/arch_vm_translation_map.h index e2bc10cc89..29e4db0d9c 100644 --- a/headers/private/kernel/arch/x86/arch_vm_translation_map.h +++ b/headers/private/kernel/arch/x86/arch_vm_translation_map.h @@ -9,6 +9,19 @@ #include +#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 #ifdef __cplusplus extern "C" diff --git a/src/system/kernel/arch/x86/arch_vm_translation_map.cpp b/src/system/kernel/arch/x86/arch_vm_translation_map.cpp index 7f3cc4f6b0..22b9d30bd7 100644 --- a/src/system/kernel/arch/x86/arch_vm_translation_map.cpp +++ b/src/system/kernel/arch/x86/arch_vm_translation_map.cpp @@ -63,18 +63,6 @@ typedef struct page_directory_entry { } page_directory_entry; 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_directory_entry *page_hole_pgdir = NULL; static page_directory_entry *sKernelPhysicalPageDirectory = NULL;