ReactOS  0.4.12-dev-918-g6c6e7b8
rtlcompat.c File Reference
#include "bl.h"
Include dependency graph for rtlcompat.c:

Go to the source code of this file.

Functions

PVOID NTAPI RtlpAllocateMemory (_In_ ULONG Bytes, _In_ ULONG Tag)
 
VOID NTAPI RtlpFreeMemory (_In_ PVOID Mem, _In_ ULONG Tag)
 
NTSTATUS NTAPI RtlpSafeCopyMemory (_Out_writes_bytes_all_(Length) VOID UNALIGNED *Destination, _In_reads_bytes_(Length) CONST VOID UNALIGNED *Source, _In_ SIZE_T Length)
 
VOID NTAPI RtlAssert (IN PVOID FailedAssertion, IN PVOID FileName, IN ULONG LineNumber, IN PCHAR Message OPTIONAL)
 
ULONG DbgPrint (const char *Format,...)
 
VOID NTAPI KeBugCheckEx (_In_ ULONG BugCheckCode, _In_ ULONG_PTR BugCheckParameter1, _In_ ULONG_PTR BugCheckParameter2, _In_ ULONG_PTR BugCheckParameter3, _In_ ULONG_PTR BugCheckParameter4)
 

Variables

PVOID MmHighestUserAddress = (PVOID)0xFFFFFFFF
 

Function Documentation

◆ DbgPrint()

ULONG DbgPrint ( const char Format,
  ... 
)

Definition at line 96 of file rtlcompat.c.

100 {
101  EfiPrintf(L"%S\r\n", Format);
102  return 0;
103 }
static const WCHAR L[]
Definition: oid.c:1250
VOID EfiPrintf(_In_ PWCHAR Format,...)
Definition: firmware.c:126

◆ KeBugCheckEx()

VOID NTAPI KeBugCheckEx ( _In_ ULONG  BugCheckCode,
_In_ ULONG_PTR  BugCheckParameter1,
_In_ ULONG_PTR  BugCheckParameter2,
_In_ ULONG_PTR  BugCheckParameter3,
_In_ ULONG_PTR  BugCheckParameter4 
)

Definition at line 107 of file rtlcompat.c.

113 {
114  __assume(0);
115 }

Referenced by _Function_class_(), ClasspReleaseQueue(), CmGetSystemControlValues(), CmGetSystemDriverList(), CmInitSystem1(), CmpHiveRootSecurityDescriptor(), CmpInitializeCache(), CmpInitializeHiveList(), CmpInitializeSystemHive(), CmpSecurityMethod(), CmpValueToData(), DoCrashCommand(), ExAllocatePoolWithTag(), ExFreePoolWithTag(), ExpCheckPoolAllocation(), ExpCheckPoolBlocks(), ExpCheckPoolHeader(), ExpCheckPoolIrqlLevel(), ExpCheckPoolLinks(), ExpCreateSystemRootLink(), ExpInitializeExecutive(), ExpInitNls(), ExpLoadInitialProcess(), ExpSystemErrorHandler(), ExpWorkerThreadEntryPoint(), ExQueueWorkItem(), ExReleaseResourceForThreadLite(), ExReturnPoolQuota(), ExSetResourceOwnerPointer(), FsRtlWorkerThread(), HalInitSystem(), HaliReadMPConfigTable(), HalpAcpiTableCacheInit(), HalpAllocateArray(), HalpCopyBufferMap(), HalpReportResourceUsage(), InitializePool(), IoAssignResources(), IoCancelFileOpen(), IoCancelIrp(), IofCallDriver(), IofCompleteRequest(), IopActionInterrogateDeviceStack(), IopInitializePlugPlayServices(), IopMarkBootPartition(), IopMountVolume(), IopParseDevice(), IopStartRamdisk(), IoReportTargetDeviceChange(), IoReportTargetDeviceChangeAsynchronous(), KeAcquireInStackQueuedSpinLockAtDpcLevel(), KeAcquireQueuedSpinLockAtDpcLevel(), KeAcquireSpinLockAtDpcLevel(), KeAttachProcess(), KefAcquireSpinLockAtDpcLevel(), KefReleaseSpinLockFromDpcLevel(), KeRaiseIrqlToSynchLevel(), KeReleaseInStackQueuedSpinLockFromDpcLevel(), KeReleaseQueuedSpinLockFromDpcLevel(), KeReleaseSpinLockFromDpcLevel(), KeRemoveQueue(), KeRundownThread(), KeStackAttachProcess(), KiDeliverApc(), KiDispatchException(), KiEspToTrapFrame(), KiExitSystemCallDebugChecks(), KiInitializeKernel(), KiInitMachineDependent(), KiSwapContextExit(), KiSwapContextResume(), KiSystemService(), KiUserModeCallout(), MiDecrementReferenceCount(), MiDecrementShareCount(), MiDeletePte(), MiFreeContiguousMemory(), MiInitializePfn(), MiInitializePfnAndMakePteValid(), MiInitializeSessionIds(), MiInsertPageInList(), MiMakeSystemAddressValid(), MiMakeSystemAddressValidPfn(), MiMapPfnDatabase(), MiniResetComplete(), MiRemoveFromSystemSpace(), MiSpecialPoolCheckPattern(), MmAllocateSpecialPool(), MmArmAccessFault(), MmArmInitSystem(), MmCommitSessionMappedView(), MmCreatePageFileMapping(), MmDeterminePoolType(), MmFreePagesFromMdl(), MmFreeSpecialPool(), MmMapLockedPagesSpecifyCache(), MmPageOutSectionView(), MmSetCleanPage(), MmSetDirtyPage(), MmZeroPageThread(), MupDereferenceVcb(), MxGetNextPage(), NdisIPnPStartDevice(), NdisMAllocateSharedMemory(), NtUserInitialize(), ObpCloseHandle(), ObpCloseHandleTableEntry(), PciAddDevice(), Phase1InitializationDiscard(), PnpRootAddDevice(), PopShutdownSystem(), PoShutdownBugCheck(), PsInitSystem(), PsLocateSystemDll(), PspCatchCriticalBreak(), PspExitThread(), PspInitializeSystemDll(), PspUnhandledExceptionInSystemThread(), RxAssert(), SeDefaultObjectMethod(), SeInitSystem(), USBPORT_FindUrbInIrpTable(), USBPORT_InsertIrpInTable(), USBPORT_SplitBulkInterruptTransfer(), USBPORT_SplitTransfer(), USBPORT_Unload(), UserInitialize(), vfatInitFcb(), and xHalTranslateBusAddress().

◆ RtlAssert()

VOID NTAPI RtlAssert ( IN PVOID  FailedAssertion,
IN PVOID  FileName,
IN ULONG  LineNumber,
IN PCHAR Message  OPTIONAL 
)

Definition at line 68 of file rtlcompat.c.

74 {
75  if (Message != NULL)
76  {
77  EfiPrintf(L"*** ASSERTION \'%S\' FAILED AT line %lu in %S (%S) ***\r\n",
78  (PCHAR)FailedAssertion,
79  LineNumber,
80  (PCHAR)FileName,
81  Message);
82  }
83  else
84  {
85  EfiPrintf(L"*** ASSERTION \'%S\' FAILED AT line %lu in %S ***\r\n",
86  (PCHAR)FailedAssertion,
87  LineNumber,
88  (PCHAR)FileName);
89  }
90 
91  /* Issue a breakpoint */
92  __debugbreak();
93 }
signed char * PCHAR
Definition: retypes.h:7
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698
smooth NULL
Definition: ftsmooth.c:416
CHAR Message[80]
Definition: alive.c:5
static const WCHAR L[]
Definition: oid.c:1250
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 LineNumber
Definition: acpixf.h:1194
VOID EfiPrintf(_In_ PWCHAR Format,...)
Definition: firmware.c:126

◆ RtlpAllocateMemory()

PVOID NTAPI RtlpAllocateMemory ( _In_ ULONG  Bytes,
_In_ ULONG  Tag 
)

Definition at line 34 of file rtlcompat.c.

38 {
40  return BlMmAllocateHeap(Bytes);
41 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
_In_ UINT Bytes
Definition: mmcopy.h:9
PVOID BlMmAllocateHeap(_In_ SIZE_T Size)
Definition: heapalloc.c:569
IN ULONG IN ULONG Tag
Definition: evtlib.h:159

Referenced by _Success_(), RtlAddRange(), RtlAllocateAndInitializeSid(), RtlCopyRangeList(), RtlpQueryRegistryDirect(), RtlpSysVolCheckOwnerAndSecurity(), and RtlpSysVolCreateSecurityDescriptor().

◆ RtlpFreeMemory()

VOID NTAPI RtlpFreeMemory ( _In_ PVOID  Mem,
_In_ ULONG  Tag 
)

◆ RtlpSafeCopyMemory()

NTSTATUS NTAPI RtlpSafeCopyMemory ( _Out_writes_bytes_all_(Length) VOID UNALIGNED Destination,
_In_reads_bytes_(Length) CONST VOID UNALIGNED Source,
_In_ SIZE_T  Length 
)

Definition at line 56 of file rtlcompat.c.

61 {
63  return STATUS_SUCCESS;
64 }
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Definition: rtlfuncs.h:2875
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3149
return STATUS_SUCCESS
Definition: btrfs.c:2725

Referenced by RtlLargeIntegerToChar().

Variable Documentation

◆ MmHighestUserAddress