2 * Copyright 2012, Alex Smith, alex@alex-smith.me.uk.
3 * Distributed under the terms of the MIT License.
9 #include "paging/x86_physical_page_mapper.h"
15 static X86PhysicalPageMapper sPhysicalPageMapper
;
16 static TranslationMapPhysicalPageMapper sKernelPageMapper
;
19 // #pragma mark - Initialization
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
;