From dbe295f827020d6ee1e1a8f1c6ab4071a661fbe8 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 7 Oct 2008 11:49:13 +0000 Subject: [PATCH] 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 --- .../kernel/arch/x86/arch_vm_translation_map.h | 13 +++++++++++++ .../kernel/arch/x86/arch_vm_translation_map.cpp | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) 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;