1 /*
2 * COPYRIGHT: See COPYING.ARM in the top level directory
3 * PROJECT: ReactOS UEFI Boot Library
4 * FILE: boot/environ/lib/mm/stub/mm.c
5 * PURPOSE: Boot Library Memory Manager Skeleton Code
6 * PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include "bl.h"
12
13 BL_ADDRESS_RANGE MmArchKsegAddressRange;
14 ULONG_PTR MmArchTopOfApplicationAddressSpace;
15 ULONG MmArchLargePageSize;
16
17 /* FUNCTIONS *****************************************************************/
18
19 NTSTATUS
MmArchInitialize(_In_ ULONG Phase,_In_ PBL_MEMORY_DATA MemoryData,_In_ BL_TRANSLATION_TYPE TranslationType,_In_ BL_TRANSLATION_TYPE RequestedTranslationType)20 MmArchInitialize (
21 _In_ ULONG Phase,
22 _In_ PBL_MEMORY_DATA MemoryData,
23 _In_ BL_TRANSLATION_TYPE TranslationType,
24 _In_ BL_TRANSLATION_TYPE RequestedTranslationType
25 )
26 {
27 EfiPrintf(L" MmArchInitialize NOT IMPLEMENTED for this platform\r\n");
28 return STATUS_NOT_IMPLEMENTED;
29 }
30
31 NTSTATUS
MmMapPhysicalAddress(_Inout_ PPHYSICAL_ADDRESS PhysicalAddressPtr,_Inout_ PVOID * VirtualAddressPtr,_Inout_ PULONGLONG SizePtr,_In_ ULONG CacheAttributes)32 MmMapPhysicalAddress (
33 _Inout_ PPHYSICAL_ADDRESS PhysicalAddressPtr,
34 _Inout_ PVOID* VirtualAddressPtr,
35 _Inout_ PULONGLONG SizePtr,
36 _In_ ULONG CacheAttributes
37 )
38 {
39 EfiPrintf(L" MmMapPhysicalAddress NOT IMPLEMENTED for this platform\r\n");
40 return STATUS_NOT_IMPLEMENTED;
41 }
42
43 BOOLEAN
MmArchTranslateVirtualAddress(_In_ PVOID VirtualAddress,_Out_opt_ PPHYSICAL_ADDRESS PhysicalAddress,_Out_opt_ PULONG CachingFlags)44 MmArchTranslateVirtualAddress (
45 _In_ PVOID VirtualAddress,
46 _Out_opt_ PPHYSICAL_ADDRESS PhysicalAddress,
47 _Out_opt_ PULONG CachingFlags
48 )
49 {
50 EfiPrintf(L" MmMapPhysicalAddress NOT IMPLEMENTED for this platform\r\n");
51 return FALSE;
52 }
53