2 * PROJECT: ReactOS Kernel
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: ntoskrnl/mm/ARM3/mmsup.c
5 * PURPOSE: ARM Memory Manager Support Routines
6 * PROGRAMMERS: ReactOS Portable Systems Group
9 /* INCLUDES *******************************************************************/
15 #line 15 "ARMĀ³::MMSUP"
16 #define MODULE_INVOLVED_IN_ARM3
17 #include "../ARM3/miarm.h"
19 /* GLOBALS ********************************************************************/
21 BOOLEAN IsThisAnNtAsSystem
= FALSE
;
22 MM_SYSTEMSIZE MmSystemSize
= MmSmallSystem
;
24 /* PUBLIC FUNCTIONS ***********************************************************/
31 MmMapUserAddressesToPage(IN PVOID BaseAddress
,
32 IN SIZE_T NumberOfBytes
,
36 return STATUS_NOT_IMPLEMENTED
;
44 MmAdjustWorkingSetSize(IN SIZE_T WorkingSetMinimumInBytes
,
45 IN SIZE_T WorkingSetMaximumInBytes
,
47 IN BOOLEAN IncreaseOkay
)
50 return STATUS_NOT_IMPLEMENTED
;
58 MmSetAddressRangeModified(IN PVOID Address
,
70 MmIsAddressValid(IN PVOID VirtualAddress
)
73 // Just check the Valid bit in the Address' PDE and PTE
75 if ((MiAddressToPde(VirtualAddress
)->u
.Hard
.Valid
== 0) ||
76 (MiAddressToPte(VirtualAddress
)->u
.Hard
.Valid
== 0))
79 // Attempting to access this page is guranteed to result in a page fault
85 // This address is valid now, but it will only stay so if the caller holds
96 MmIsNonPagedSystemAddressValid(IN PVOID VirtualAddress
)
98 DPRINT1("WARNING: %s returns bogus result\n", __FUNCTION__
);
99 return MmIsAddressValid(VirtualAddress
);
107 MmSetBankedSection(IN HANDLE ProcessHandle
,
108 IN PVOID VirtualAddress
,
110 IN BOOLEAN ReadWriteBank
,
111 IN PVOID BankRoutine
,
115 return STATUS_NOT_IMPLEMENTED
;
123 MmIsRecursiveIoFault(VOID
)
125 PETHREAD Thread
= PsGetCurrentThread();
128 // If any of these is true, this is a recursive fault
130 return ((Thread
->DisablePageFaultClustering
) | (Thread
->ForwardClusterOnly
));
138 MmIsThisAnNtAsSystem(VOID
)
141 // Return if this is a server system
143 return IsThisAnNtAsSystem
;
151 MmQuerySystemSize(VOID
)
154 // Return the low, medium or high memory system type