[FORMATTING] Remove trailing whitespace. Addendum to 34593d93.

Excluded: 3rd-party code (incl. wine) and most of the win32ss.
This commit is contained in:
Hermès Bélusca-Maïto 2021-09-13 03:33:14 +02:00
parent bbabe2489e
commit 9393fc320e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
701 changed files with 14685 additions and 14693 deletions

View file

@ -320,7 +320,7 @@ BmFwInitializeBootDirectoryPath (
/* Try to open the boot device */
Status = BlpDeviceOpen(BlpBootDevice,
BL_DEVICE_READ_ACCESS,
0,
0,
&DeviceHandle);
if (!NT_SUCCESS(Status))
{
@ -2007,7 +2007,7 @@ Quickie:
return Status;
}
NTSTATUS
NTSTATUS
BmLaunchRecoverySequence (
_In_ PBL_LOADED_APPLICATION_ENTRY BootEntry,
_In_ ULONG LaunchCode
@ -2095,7 +2095,7 @@ BmLaunchRecoverySequence (
Quickie:
/* Did we have a sequence of entries? */
if (Sequence)
{
{
/* Loop through each one */
for (RecoveryIndex = 0; RecoveryIndex < Count; RecoveryIndex++)
{
@ -2118,7 +2118,7 @@ Quickie:
/* Free it */
BlMmFreeHeap(RecoverySequence);
}
/* Return back to caller */
return Status;
}
@ -2840,7 +2840,7 @@ BmMain (
/* Copy the library parameters and add the re-initialization flag */
RtlCopyMemory(&LibraryParameters,
&BlpLibraryParameters,
&BlpLibraryParameters,
sizeof(LibraryParameters));
LibraryParameters.LibraryFlags |= (BL_LIBRARY_FLAG_REINITIALIZE_ALL |
BL_LIBRARY_FLAG_REINITIALIZE);

View file

@ -29,7 +29,7 @@ BOOT_APPLICATION_PARAMETER_BLOCK_SCRATCH EfiInitScratch;
/*++
* @name AhCreateLoadOptionsList
*
* The AhCreateLoadOptionsList routine
* The AhCreateLoadOptionsList routine
*
* @param CommandLine
* UEFI Image Handle for the current loaded application.
@ -68,7 +68,7 @@ AhCreateLoadOptionsList (
/*++
* @name EfiInitpAppendPathString
*
* The EfiInitpAppendPathString routine
* The EfiInitpAppendPathString routine
*
* @param DestinationPath
* UEFI Image Handle for the current loaded application.
@ -177,7 +177,7 @@ EfiInitpAppendPathString (
/*++
* @name EfiInitpConvertEfiDevicePath
*
* The EfiInitpConvertEfiDevicePath routine
* The EfiInitpConvertEfiDevicePath routine
*
* @param DevicePath
* UEFI Image Handle for the current loaded application.
@ -294,7 +294,7 @@ Quickie:
/*++
* @name EfiInitpGetDeviceNode
*
* The EfiInitpGetDeviceNode routine
* The EfiInitpGetDeviceNode routine
*
* @param DevicePath
* UEFI Image Handle for the current loaded application.
@ -332,7 +332,7 @@ EfiInitpGetDeviceNode (
/*++
* @name EfiInitTranslateDevicePath
*
* The EfiInitTranslateDevicePath routine
* The EfiInitTranslateDevicePath routine
*
* @param DevicePath
* UEFI Image Handle for the current loaded application.
@ -455,7 +455,7 @@ EfiInitTranslateDevicePath (
/* Copy the signature GUID */
RtlCopyMemory(&DeviceEntry->Partition.Gpt.PartitionGuid,
DiskPath->Signature,
DiskPath->Signature,
sizeof(GUID));
DeviceEntry->Flags |= 4u;
@ -491,7 +491,7 @@ EfiInitTranslateDevicePath (
/*++
* @name EfiInitpConvertEfiDevicePath
*
* The EfiInitpConvertEfiDevicePath routine
* The EfiInitpConvertEfiDevicePath routine
*
* @param DevicePath
* UEFI Image Handle for the current loaded application.
@ -560,7 +560,7 @@ Quickie:
/*++
* @name EfiInitpCreateApplicationEntry
*
* The EfiInitpCreateApplicationEntry routine
* The EfiInitpCreateApplicationEntry routine
*
* @param SystemTable
* UEFI Image Handle for the current loaded application.

View file

@ -206,7 +206,7 @@ OslpRemoveInternalApplicationOptions (
Status = STATUS_SUCCESS;
/* Remove attempts to disable integrity checks or ELAM driver load */
BlRemoveBootOption(BlpApplicationEntry.BcdData,
BlRemoveBootOption(BlpApplicationEntry.BcdData,
BcdLibraryBoolean_DisableIntegrityChecks);
BlRemoveBootOption(BlpApplicationEntry.BcdData,
BcdOSLoaderBoolean_DisableElamDrivers);

File diff suppressed because it is too large Load diff

View file

@ -177,7 +177,7 @@ C_ASSERT(BL_MM_INCLUDE_ONLY_FIRMWARE_MEMORY == 0x240);
#define BL_LOAD_PE_IMG_VIRTUAL_BUFFER BL_LOAD_IMG_VIRTUAL_BUFFER
#define BL_LOAD_PE_IMG_CHECK_MACHINE 0x02
#define BL_LOAD_PE_IMG_EXISTING_BUFFER BL_LOAD_IMG_EXISTING_BUFFER
#define BL_LOAD_PE_IMG_EXISTING_BUFFER BL_LOAD_IMG_EXISTING_BUFFER
#define BL_LOAD_PE_IMG_COMPUTE_HASH 0x10
#define BL_LOAD_PE_IMG_CHECK_SUBSYSTEM 0x80
#define BL_LOAD_PE_IMG_SKIP_RELOCATIONS 0x100
@ -2411,7 +2411,7 @@ BlDisplayInvalidateOemBitmap (
PBITMAP
BlDisplayGetOemBitmap (
_Out_ PCOORD Offset,
_Out_ PCOORD Offset,
_Out_opt_ PULONG Flags
);
@ -2806,7 +2806,7 @@ ConsolepClearBuffer (
_In_ ULONG ScanlineWidth,
_In_ ULONG PixelDepth
);
NTSTATUS
ConsolepConvertColorToPixel (
_In_ BL_COLOR Color,

View file

@ -30,7 +30,7 @@ _Archx86TransferTo32BitApplicationAsm:
push esi
push edi
push ebx
/* Save data segments */
push es
push ds

View file

@ -422,7 +422,7 @@ BlGetApplicationIdentifier (
NTSTATUS
BlGetApplicationBaseAndSize (
_Out_ PVOID* ImageBase,
_Out_ PVOID* ImageBase,
_Out_ PULONG ImageSize
)
{

View file

@ -367,8 +367,8 @@ Quickie:
NTSTATUS
EfiOpenProtocol (
_In_ EFI_HANDLE Handle,
_In_ EFI_GUID *Protocol,
_In_ EFI_HANDLE Handle,
_In_ EFI_GUID *Protocol,
_Outptr_ PVOID* Interface
)
{
@ -971,7 +971,7 @@ EfiGetMemoryMap (
NTSTATUS
EfiFreePages (
_In_ ULONG Pages,
_In_ ULONG Pages,
_In_ EFI_PHYSICAL_ADDRESS PhysicalAddress
)
{
@ -1295,7 +1295,7 @@ EfiGopGetFrameBuffer (
NTSTATUS
EfiGopGetCurrentMode (
_In_ EFI_GRAPHICS_OUTPUT_PROTOCOL *GopInterface,
_Out_ UINTN* Mode,
_Out_ UINTN* Mode,
_Out_ EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Information
)
{
@ -2256,7 +2256,7 @@ LoopAgain:
MmMdFreeDescriptor(Descriptor);
goto Quickie;
}
/* Add it back as free memory */
Status = MmMdAddDescriptorToList(MemoryMap,
Descriptor,

View file

@ -1521,7 +1521,7 @@ BlockIoFirmwareOpen (
/* Free the device handle buffer array */
BlMmFreeHeap(DeviceHandles);
/* Return status */
return Status;
}
@ -2260,7 +2260,7 @@ BlpDeviceOpen (
/* It's a network device, call the UDP device handler */
Status = UdpFunctionTable.Open(Device, DeviceEntry);
}
else
else
{
/* Unsupported type of device */
Status = STATUS_NOT_IMPLEMENTED;

View file

@ -478,7 +478,7 @@ DsppReinitialize (
{
return Status;
}
/* Now check our current graphical resolution */
Status = ((PBL_GRAPHICS_CONSOLE_VTABLE)GraphicsConsole->TextConsole.Callbacks)->GetGraphicalResolution(GraphicsConsole,
&CurrentResolution);

View file

@ -197,7 +197,7 @@ ConsoleEfiTextGetStateFromMode (
NTSTATUS
ConsoleFirmwareTextSetState (
_In_ PBL_TEXT_CONSOLE TextConsole,
_In_ UCHAR Mask,
_In_ UCHAR Mask,
_In_ PBL_DISPLAY_STATE State
)
{
@ -554,8 +554,8 @@ ConsoleInputLocalEraseBuffer (
}
NTSTATUS
ConsoleFirmwareTextClear (
_In_ PBL_TEXT_CONSOLE Console,
ConsoleFirmwareTextClear (
_In_ PBL_TEXT_CONSOLE Console,
_In_ BOOLEAN LineOnly
)
{
@ -573,7 +573,7 @@ ConsoleFirmwareTextClear (
/* Get the current column and row */
Column = Console->State.XPos / TextWidth;
Row = Console->State.YPos / TextHeight;
/* Loop over every remaining character */
for (i = 0; i < Console->DisplayMode.HRes - Column - 1; i++)
{

View file

@ -427,7 +427,7 @@ ConsoleGraphicalEnable (
NTSTATUS
ConsoleGraphicalGetGraphicalResolution (
_In_ PBL_GRAPHICS_CONSOLE Console,
_In_ PBL_GRAPHICS_CONSOLE Console,
_In_ PBL_DISPLAY_MODE DisplayMode
)
{
@ -445,7 +445,7 @@ ConsoleGraphicalGetGraphicalResolution (
NTSTATUS
ConsoleGraphicalGetOriginalResolution (
_In_ PBL_GRAPHICS_CONSOLE Console,
_In_ PBL_GRAPHICS_CONSOLE Console,
_In_ PBL_DISPLAY_MODE DisplayMode
)
{

View file

@ -184,7 +184,7 @@ ConsolepFindResolution (
return FALSE;
}
BL_INPUT_CONSOLE_VTABLE ConsoleInputLocalVtbl =
BL_INPUT_CONSOLE_VTABLE ConsoleInputLocalVtbl =
{
(PCONSOLE_DESTRUCT)ConsoleInputLocalDestruct,
(PCONSOLE_REINITIALIZE)ConsoleInputBaseReinitialize,

View file

@ -333,7 +333,7 @@ Quickie:
NTSTATUS
EtfspSearchForDirent (
_In_ PBL_FILE_ENTRY DirectoryEntry,
_In_ PBL_FILE_ENTRY DirectoryEntry,
_In_ PWCHAR FileName,
_Out_ PRAW_DIR_REC *DirEntry,
_Out_ PULONG DirentOffset
@ -435,7 +435,7 @@ EtfspCachedSearchForDirent (
NTSTATUS
EtfsRead (
_In_ PBL_FILE_ENTRY FileEntry,
_In_ PVOID Buffer,
_In_ PVOID Buffer,
_In_ ULONG Size,
_Out_opt_ PULONG BytesReturned
)
@ -538,7 +538,7 @@ NTSTATUS
EtfsOpen (
_In_ PBL_FILE_ENTRY Directory,
_In_ PWCHAR FileName,
_In_ ULONG Flags,
_In_ ULONG Flags,
_Out_ PBL_FILE_ENTRY *FileEntry
)
{

View file

@ -169,7 +169,7 @@ FileTableCompareWithSameAttributes (
NTSTATUS
FileTableDestroyEntry (
_In_ PBL_FILE_ENTRY FileEntry,
_In_ PBL_FILE_ENTRY FileEntry,
_In_ ULONG Index
)
{

View file

@ -15,7 +15,7 @@
VOID
BiNotifyEnumerationError (
_In_ HANDLE ObjectHandle,
_In_ HANDLE ObjectHandle,
_In_ PWCHAR ElementName,
_In_ NTSTATUS Status
)
@ -78,7 +78,7 @@ BiConvertRegistryDataToElement (
case BCD_TYPE_DEVICE:
/* First, make sure it's at least big enough for an empty descriptor */
if (DataLength < FIELD_OFFSET(BCD_DEVICE_OPTION,
if (DataLength < FIELD_OFFSET(BCD_DEVICE_OPTION,
DeviceDescriptor.Unknown))
{
return STATUS_OBJECT_TYPE_MISMATCH;
@ -172,7 +172,7 @@ BiConvertRegistryDataToElement (
Status = STATUS_BUFFER_TOO_SMALL;
break;
}
/* Yep, copy the GUID */
RtlInitUnicodeString(&GuidString, BcdString);
Status = RtlGUIDFromString(&GuidString, ElementGuid);
@ -350,7 +350,7 @@ NTSTATUS
BiConvertBcdElements (
_In_ PBCD_PACKED_ELEMENT Elements,
_Out_opt_ PBCD_ELEMENT Buffer,
_Inout_ PULONG BufferSize,
_Inout_ PULONG BufferSize,
_Inout_ PULONG ElementCount
)
{
@ -627,10 +627,10 @@ BiEnumerateSubElements (
_Out_ PULONG ElementCount
)
{
NTSTATUS Status;
NTSTATUS Status;
PBCD_PACKED_ELEMENT Element;
HANDLE ObjectHandle;
ULONG ParsedElements, RequiredSize;
ULONG ParsedElements, RequiredSize;
/* Assume empty */
*ElementCount = 0;
@ -698,7 +698,7 @@ BiEnumerateSubObjectElements (
NTSTATUS Status;
ULONG SubElementCount, TotalSize, RequiredSize, CurrentSize, i;
PBCD_PACKED_ELEMENT PreviousElement;
/* Assume empty list */
*ElementCount = 0;
Status = STATUS_SUCCESS;
@ -1199,7 +1199,7 @@ BiGetObjectDescription (
/* Read the type */
Length = 0;
Status = BiGetRegistryValue(DescriptionHandle,
L"Type",
L"Type",
REG_DWORD,
(PVOID*)&Data,
&Length);

View file

@ -351,7 +351,7 @@ BiInitializeAndValidateHive (
if (NT_SUCCESS(Status))
{
/* Cleanup volatile/old data */
CmPrepareHive(&Hive->Hive.Hive); // CmCheckRegistry
CmPrepareHive(&Hive->Hive.Hive); // CmCheckRegistry
Status = STATUS_SUCCESS;
}

View file

@ -65,7 +65,7 @@ BfLoadFontFile (
/* Zero it out */
RtlZeroMemory(DeferredFont, sizeof(*DeferredFont));
/* Allocate a copy for the file path */
FontPathSize = sizeof(WCHAR) * wcslen(FontPath) + sizeof(UNICODE_NULL);
DeferredFont->FontPath = (PWCHAR)BlMmAllocateHeap(FontPathSize);
@ -74,7 +74,7 @@ BfLoadFontFile (
BfiFreeDeferredFontFile(DeferredFont);
return STATUS_NO_MEMORY;
}
/* Allocate a copy for the device */
DeferredFont->Device = BlMmAllocateHeap(Device->Size);
if (!DeferredFont->Device)
@ -113,7 +113,7 @@ BfLoadDeferredFontFiles (
{
/* Get the font */
DeferredFont = CONTAINING_RECORD(NextEntry, BL_DEFERRED_FONT_FILE, ListEntry);
/* Move to the next entry and remove this one */
NextEntry = NextEntry->Flink;
RemoveEntryList(&DeferredFont->ListEntry);

View file

@ -607,7 +607,7 @@ Quickie:
return Status;
}
PIMAGE_SECTION_HEADER
PIMAGE_SECTION_HEADER
BlImgFindSection (
_In_ PVOID ImageBase,
_In_ ULONG ImageSize
@ -650,11 +650,11 @@ BlImgFindSection (
VOID
BlImgQueryCodeIntegrityBootOptions (
_In_ PBL_LOADED_APPLICATION_ENTRY ApplicationEntry,
_Out_ PBOOLEAN IntegrityChecksDisabled,
_Out_ PBOOLEAN IntegrityChecksDisabled,
_Out_ PBOOLEAN TestSigning
)
{
NTSTATUS Status;
BOOLEAN Value;
@ -1656,7 +1656,7 @@ NTSTATUS
ImgpInitializeBootApplicationParameters (
_In_ PBL_BUFFER_DESCRIPTOR ImageParameters,
_In_ PBL_APPLICATION_ENTRY AppEntry,
_In_ PVOID ImageBase,
_In_ PVOID ImageBase,
_In_ ULONG ImageSize
)
{
@ -1704,8 +1704,8 @@ ImgpInitializeBootApplicationParameters (
BlpBootDevice->Size +
MemoryParameters.BufferSize +
sizeof(*ReturnArguments) +
sizeof(*MemoryData) +
sizeof(*FirmwareParameters) +
sizeof(*MemoryData) +
sizeof(*FirmwareParameters) +
sizeof(*ParameterBlock);
/* Check if this gives us enough space */

View file

@ -152,12 +152,12 @@ ResFindDirectoryEntry (
NTSTATUS
ResFindDataEntryFromImage (
_In_opt_ PVOID ImageBase,
_In_opt_ PVOID ImageBase,
_In_opt_ ULONG ImageSize,
_In_ USHORT DirectoryId,
_In_ PUSHORT EntryId,
_In_ PUSHORT EntryId,
_In_ PWCHAR Name,
_Out_ PIMAGE_RESOURCE_DATA_ENTRY *DataEntryOut,
_Out_ PIMAGE_RESOURCE_DATA_ENTRY *DataEntryOut,
_Out_ PVOID* ResourceOut
)
{
@ -445,7 +445,7 @@ BlResourceFindMessage (
(MsgId <= MsgData->Blocks[j].HighId))
{
/* Get the first entry */
MsgEntry = (PMESSAGE_RESOURCE_ENTRY)((ULONG_PTR)MsgData +
MsgEntry = (PMESSAGE_RESOURCE_ENTRY)((ULONG_PTR)MsgData +
MsgData->Blocks[j].OffsetToEntries);
/* Loop till we find the right one */

View file

@ -40,7 +40,7 @@ BlUtlGetAcpiTable (
NTSTATUS Status;
PRSDT Rsdt;
PXSDT Xsdt;
PHYSICAL_ADDRESS PhysicalAddress;
PHYSICAL_ADDRESS PhysicalAddress;
PDESCRIPTION_HEADER Header;
Header = 0;

View file

@ -208,7 +208,7 @@ MmMdCountList (
{
PLIST_ENTRY First, NextEntry;
ULONG Count;
/* Iterate the list */
for (Count = 0, First = MdList->First, NextEntry = First->Flink;
NextEntry != First;
@ -220,7 +220,7 @@ MmMdCountList (
VOID
MmMdInitializeList (
_In_ PBL_MEMORY_DESCRIPTOR_LIST MdList,
_In_ PBL_MEMORY_DESCRIPTOR_LIST MdList,
_In_ ULONG Type,
_In_ PLIST_ENTRY ListHead
)
@ -247,10 +247,10 @@ MmMdInitializeList (
NTSTATUS
MmMdCopyList (
_In_ PBL_MEMORY_DESCRIPTOR_LIST DestinationList,
_In_ PBL_MEMORY_DESCRIPTOR_LIST DestinationList,
_In_ PBL_MEMORY_DESCRIPTOR_LIST SourceList,
_In_opt_ PBL_MEMORY_DESCRIPTOR ListDescriptor,
_Out_ PULONG ActualCount,
_Out_ PULONG ActualCount,
_In_ ULONG Count,
_In_ ULONG Flags
)
@ -286,7 +286,7 @@ MmMdCopyList (
Count = MmGlobalMemoryDescriptorCount;
ListDescriptor = MmGlobalMemoryDescriptors;
}
/* Never truncate descriptors during a list copy */
Flags |= BL_MM_ADD_DESCRIPTOR_NEVER_TRUNCATE_FLAG;
@ -640,7 +640,7 @@ MmMdAddDescriptorToList (
ThisDescriptor = CONTAINING_RECORD(ThisEntry, BL_MEMORY_DESCRIPTOR, ListEntry);
/* Is the address smaller, or equal but more important? */
if ((MemoryDescriptor->BasePage < ThisDescriptor->BasePage) ||
if ((MemoryDescriptor->BasePage < ThisDescriptor->BasePage) ||
((MemoryDescriptor->BasePage == ThisDescriptor->BasePage) &&
(MmMdpHasPrecedence(MemoryDescriptor->Type, ThisDescriptor->Type))))
{
@ -789,7 +789,7 @@ MmMdRemoveRegionFromMdlEx (
{
Descriptor->VirtualPage += RegionSize;
}
/* Initialize a descriptor for the start of the region */
NewDescriptor = MmMdInitByteGranularDescriptor(Descriptor->Flags,
Descriptor->Type,
@ -958,8 +958,8 @@ Quickie:
PBL_MEMORY_DESCRIPTOR
MmMdFindDescriptorFromMdl (
_In_ PBL_MEMORY_DESCRIPTOR_LIST MdList,
_In_ ULONG Flags,
_In_ PBL_MEMORY_DESCRIPTOR_LIST MdList,
_In_ ULONG Flags,
_In_ ULONGLONG Page
)
{
@ -987,7 +987,7 @@ MmMdFindDescriptorFromMdl (
IsVirtual = TRUE;
NextEntry = MdList->First->Flink;
}
/* Check if this is a physical search */
if (!IsVirtual)
{
@ -1047,7 +1047,7 @@ MmMdFindDescriptorFromMdl (
PBL_MEMORY_DESCRIPTOR
MmMdFindDescriptor (
_In_ ULONG WhichList,
_In_ ULONG WhichList,
_In_ ULONG Flags,
_In_ ULONGLONG Page
)

View file

@ -106,8 +106,8 @@ MmDefZeroVirtualAddressRange (
BOOLEAN
MmArchTranslateVirtualAddress (
_In_ PVOID VirtualAddress,
_Out_opt_ PPHYSICAL_ADDRESS PhysicalAddress,
_In_ PVOID VirtualAddress,
_Out_opt_ PPHYSICAL_ADDRESS PhysicalAddress,
_Out_opt_ PULONG CachingFlags
)
{
@ -526,7 +526,7 @@ MmMapPhysicalAddress (
PhysicalAddressPtr->QuadPart = PhysicalAddress;
*VirtualAddressPtr = VirtualAddress;
*SizePtr = Size;
/* Flush the TLB if paging is enabled */
if (BlMmIsTranslationEnabled())
{
@ -545,7 +545,7 @@ Mmx86MapInitStructure (
)
{
NTSTATUS Status;
/* Make a virtual mapping for this physical address */
Status = MmMapPhysicalAddress(&PhysicalAddress, &VirtualAddress, &Size, 0);
if (!NT_SUCCESS(Status))
@ -938,7 +938,7 @@ MmDefInitializeTranslation (
RtlZeroMemory(MmArchReferencePage, MmArchReferencePageSize);
/* Allocate 4MB worth of self-map pages */
Status = MmPaReserveSelfMapPages(&Mmx86SelfMapBase,
Status = MmPaReserveSelfMapPages(&Mmx86SelfMapBase,
(4 * 1024 * 1024) >> PAGE_SHIFT,
(4 * 1024 * 1024) >> PAGE_SHIFT);
if (!NT_SUCCESS(Status))

View file

@ -22,8 +22,8 @@ ULONG MmDescriptorCallTreeCount;
NTSTATUS
TrpGenerateMappingTracker (
_In_ PVOID VirtualAddress,
_In_ ULONG Flags,
_In_ PVOID VirtualAddress,
_In_ ULONG Flags,
_In_ LARGE_INTEGER PhysicalAddress,
_In_ ULONGLONG Size
)
@ -50,7 +50,7 @@ TrpGenerateMappingTracker (
InsertTailList(ListHead, &Descriptor->ListEntry);
goto Quickie;
}
/* Otherwise, go to the last descriptor */
NextDescriptor = CONTAINING_RECORD(NextEntry,
BL_MEMORY_DESCRIPTOR,
@ -540,7 +540,7 @@ BlMmTranslateVirtualAddress (
NTSTATUS
BlpMmInitialize (
_In_ PBL_MEMORY_DATA MemoryData,
_In_ BL_TRANSLATION_TYPE TranslationType,
_In_ BL_TRANSLATION_TYPE TranslationType,
_In_ PBL_LIBRARY_PARAMETERS LibraryParameters
)
{

View file

@ -178,7 +178,7 @@ MmPapAllocateRegionFromMdl (
_In_ PBL_MEMORY_DESCRIPTOR_LIST NewList,
_Out_opt_ PBL_MEMORY_DESCRIPTOR Descriptor,
_In_ PBL_MEMORY_DESCRIPTOR_LIST CurrentList,
_In_ PBL_PA_REQUEST Request,
_In_ PBL_PA_REQUEST Request,
_In_ BL_MEMORY_TYPE Type
)
{
@ -220,7 +220,7 @@ MmPapAllocateRegionFromMdl (
FoundDescriptor = CONTAINING_RECORD(NextEntry,
BL_MEMORY_DESCRIPTOR,
ListEntry);
/* See if it matches the request */
if (MmMdFindSatisfyingRegion(FoundDescriptor,
&LocalDescriptor,
@ -379,7 +379,7 @@ MmPapAllocateRegionFromMdl (
NTSTATUS
MmPaAllocatePages (
_In_ PBL_MEMORY_DESCRIPTOR_LIST NewList,
_In_ PBL_MEMORY_DESCRIPTOR Descriptor,
_In_ PBL_MEMORY_DESCRIPTOR Descriptor,
_In_ PBL_MEMORY_DESCRIPTOR_LIST CurrentList,
_In_ PBL_PA_REQUEST Request,
_In_ BL_MEMORY_TYPE MemoryType
@ -442,7 +442,7 @@ MmPapAllocatePhysicalPagesInRange (
_In_ ULONG Attributes,
_In_ ULONG Alignment,
_In_ PBL_MEMORY_DESCRIPTOR_LIST NewList,
_In_opt_ PBL_ADDRESS_RANGE Range,
_In_opt_ PBL_ADDRESS_RANGE Range,
_In_ ULONG RangeType
)
{
@ -994,7 +994,7 @@ MmPaInitialize (
}
NTSTATUS
BlMmAllocatePhysicalPages(
BlMmAllocatePhysicalPages(
_In_ PPHYSICAL_ADDRESS Address,
_In_ BL_MEMORY_TYPE MemoryType,
_In_ ULONGLONG PageCount,
@ -1563,7 +1563,7 @@ MmPaReleaseSelfMapPages (
NTSTATUS
MmPaReserveSelfMapPages (
_Inout_ PPHYSICAL_ADDRESS PhysicalAddress,
_In_ ULONG Alignment,
_In_ ULONG Alignment,
_In_ ULONG PageCount
)
{
@ -1624,7 +1624,7 @@ Quickie:
NTSTATUS
MmSelectMappingAddress (
_Out_ PVOID* MappingAddress,
_In_ PVOID PreferredAddress,
_In_ PVOID PreferredAddress,
_In_ ULONGLONG Size,
_In_ ULONG AllocationAttributes,
_In_ ULONG Flags,
@ -1694,7 +1694,7 @@ MmSelectMappingAddress (
PreferredAddress = (PVOID)((ULONG_PTR)PreferredAddress +
BYTE_OFFSET(PhysicalAddress.QuadPart));
}
Success:
/* Return the mapping address and success */
*MappingAddress = PreferredAddress;

View file

@ -42,8 +42,8 @@ MmMapPhysicalAddress (
BOOLEAN
MmArchTranslateVirtualAddress (
_In_ PVOID VirtualAddress,
_Out_opt_ PPHYSICAL_ADDRESS PhysicalAddress,
_In_ PVOID VirtualAddress,
_Out_opt_ PPHYSICAL_ADDRESS PhysicalAddress,
_Out_opt_ PULONG CachingFlags
)
{