Author: axeld Date: 2009-11-17 15:54:32 +0100 (Tue, 17 Nov 2009) New Revision: 34089 Changeset: http://dev.haiku-os.org/changeset/34089/haiku Modified: haiku/trunk/src/system/kernel/arch/x86/x86_paging.h Log: * Minor cleanup. Modified: haiku/trunk/src/system/kernel/arch/x86/x86_paging.h =================================================================== --- haiku/trunk/src/system/kernel/arch/x86/x86_paging.h 2009-11-17 11:46:19 UTC (rev 34088) +++ haiku/trunk/src/system/kernel/arch/x86/x86_paging.h 2009-11-17 14:54:32 UTC (rev 34089) @@ -1,5 +1,5 @@ /* - * Copyright 2005-2006, Axel Dörfler, axeld@xxxxxxxxxxxxxxxxx All rights reserved. + * Copyright 2005-2009, Axel Dörfler, axeld@xxxxxxxxxxxxxxxxx * Distributed under the terms of the MIT License. * * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. @@ -8,6 +8,7 @@ #ifndef _KERNEL_ARCH_X86_PAGING_H #define _KERNEL_ARCH_X86_PAGING_H + #include <SupportDefs.h> #include <heap.h> @@ -16,8 +17,8 @@ #define PAGE_INVALIDATE_CACHE_SIZE 64 -#define ADDR_SHIFT(x) ((x)>>12) -#define ADDR_REVERSE_SHIFT(x) ((x)<<12) +#define ADDR_SHIFT(x) ((x) >> 12) +#define ADDR_REVERSE_SHIFT(x) ((x) << 12) #define VADDR_TO_PDENT(va) (((va) / B_PAGE_SIZE) / 1024) #define VADDR_TO_PTENT(va) (((va) / B_PAGE_SIZE) % 1024) @@ -56,14 +57,14 @@ struct vm_translation_map_arch_info : DeferredDeletable { - struct page_directory_entry* pgdir_virt; - struct page_directory_entry* pgdir_phys; - TranslationMapPhysicalPageMapper* page_mapper; - vint32 ref_count; - vint32 active_on_cpus; + page_directory_entry* pgdir_virt; + page_directory_entry* pgdir_phys; + TranslationMapPhysicalPageMapper* page_mapper; + vint32 ref_count; + vint32 active_on_cpus; // mask indicating on which CPUs the map is currently used - int num_invalidate_pages; - addr_t pages_to_invalidate[PAGE_INVALIDATE_CACHE_SIZE]; + int num_invalidate_pages; + addr_t pages_to_invalidate[PAGE_INVALIDATE_CACHE_SIZE]; vm_translation_map_arch_info(); virtual ~vm_translation_map_arch_info();