btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / system / kernel / arch / x86 / paging / x86_physical_page_mapper_mapped.cpp
blob92df73a360e783c4042fe13074567eaff71b5cf6
1 /*
2 * Copyright 2012, Alex Smith, alex@alex-smith.me.uk.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <new>
9 #include "paging/x86_physical_page_mapper.h"
12 // #pragma mark -
15 static X86PhysicalPageMapper sPhysicalPageMapper;
16 static TranslationMapPhysicalPageMapper sKernelPageMapper;
19 // #pragma mark - Initialization
22 status_t
23 mapped_physical_page_ops_init(kernel_args* args,
24 X86PhysicalPageMapper*& _pageMapper,
25 TranslationMapPhysicalPageMapper*& _kernelPageMapper)
27 new(&sPhysicalPageMapper) X86PhysicalPageMapper;
28 new(&sKernelPageMapper) TranslationMapPhysicalPageMapper;
30 _pageMapper = &sPhysicalPageMapper;
31 _kernelPageMapper = &sKernelPageMapper;
32 return B_OK;