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 /* PUBLIC FUNCTIONS ***********************************************************/
26 MmMapUserAddressesToPage(IN PVOID BaseAddress
,
27 IN SIZE_T NumberOfBytes
,
31 return STATUS_NOT_IMPLEMENTED
;
39 MmAdjustWorkingSetSize(IN SIZE_T WorkingSetMinimumInBytes
,
40 IN SIZE_T WorkingSetMaximumInBytes
,
42 IN BOOLEAN IncreaseOkay
)
45 return STATUS_NOT_IMPLEMENTED
;
53 MmSetAddressRangeModified(IN PVOID Address
,
65 MmIsAddressValid(IN PVOID VirtualAddress
)
68 // Just check the Valid bit in the Address' PDE and PTE
70 if ((MiAddressToPde(VirtualAddress
)->u
.Hard
.Valid
== 0) ||
71 (MiAddressToPte(VirtualAddress
)->u
.Hard
.Valid
== 0))
74 // Attempting to access this page is guranteed to result in a page fault
80 // This address is valid now, but it will only stay so if the caller holds
91 MmIsNonPagedSystemAddressValid(IN PVOID VirtualAddress
)
93 DPRINT1("WARNING: %s returns bogus result\n", __FUNCTION__
);
94 return MmIsAddressValid(VirtualAddress
);
102 MmSetBankedSection(IN HANDLE ProcessHandle
,
103 IN PVOID VirtualAddress
,
105 IN BOOLEAN ReadWriteBank
,
106 IN PVOID BankRoutine
,
110 return STATUS_NOT_IMPLEMENTED
;
118 MmIsRecursiveIoFault(VOID
)
120 PETHREAD Thread
= PsGetCurrentThread();
123 // If any of these is true, this is a recursive fault
125 return ((Thread
->DisablePageFaultClustering
) | (Thread
->ForwardClusterOnly
));
133 MmIsThisAnNtAsSystem(VOID
)
135 /* Return if this is a server system */
136 return MmProductType
;
144 MmQuerySystemSize(VOID
)
146 /* Return the low, medium or high memory system type */