Savva Mitrofanov 6d20d2d56f User: Corrects ASSERT behavior in UserPcd
The CpuBreakPoint in UserMisc normally shouldn't enter dead-loop
condition, instead it should break the program using abort signal. Also
sets DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit by default in
PcdDebugPropertyMask. As a background was a problem with fuzzing when
program process falls into dead-loop condition instead of just to exit
with crash
2023-01-12 13:41:53 +03:00

46 lines
3.0 KiB
C

/** @file
Copyright (c) 2020, PMheart. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
**/
#include <UserPcd.h>
#include <Library/DebugLib.h>
#define _PCD_VALUE_PcdUefiLibMaxPrintBufferSize 320U
#define _PCD_VALUE_PcdUgaConsumeSupport ((BOOLEAN)1U)
#define _PCD_VALUE_PcdDebugPropertyMask (\
DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED \
| DEBUG_PROPERTY_DEBUG_PRINT_ENABLED \
| DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED )
#define _PCD_VALUE_PcdDebugClearMemoryValue 0xAFU
#define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0x80000002U
#define _PCD_VALUE_PcdDebugPrintErrorLevel 0x80000002U
#define _PCD_VALUE_PcdMaximumAsciiStringLength 0U
#define _PCD_VALUE_PcdMaximumUnicodeStringLength 1000000U
#define _PCD_VALUE_PcdMaximumLinkedListLength 1000000U
#define _PCD_VALUE_PcdVerifyNodeInList ((BOOLEAN)0U)
#define _PCD_VALUE_PcdCpuNumberOfReservedVariableMtrrs 0x2U
#define _PCD_VALUE_PcdMaximumDevicePathNodeCount 0U
UINT32 _gPcd_FixedAtBuild_PcdUefiLibMaxPrintBufferSize = _PCD_VALUE_PcdUefiLibMaxPrintBufferSize;
BOOLEAN _gPcd_FixedAtBuild_PcdUgaConsumeSupport = _PCD_VALUE_PcdUgaConsumeSupport;
UINT8 _gPcd_FixedAtBuild_PcdDebugPropertyMask = _PCD_VALUE_PcdDebugPropertyMask;
UINT8 _gPcd_FixedAtBuild_PcdDebugClearMemoryValue = _PCD_VALUE_PcdDebugClearMemoryValue;
UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
UINT32 _gPcd_FixedAtBuild_PcdDebugPrintErrorLevel = _PCD_VALUE_PcdDebugPrintErrorLevel;
UINT32 _gPcd_FixedAtBuild_PcdMaximumAsciiStringLength = _PCD_VALUE_PcdMaximumAsciiStringLength;
UINT32 _gPcd_FixedAtBuild_PcdMaximumUnicodeStringLength = _PCD_VALUE_PcdMaximumUnicodeStringLength;
UINT32 _gPcd_FixedAtBuild_PcdMaximumLinkedListLength = _PCD_VALUE_PcdMaximumLinkedListLength;
BOOLEAN _gPcd_FixedAtBuild_PcdVerifyNodeInList = _PCD_VALUE_PcdVerifyNodeInList;
UINT32 _gPcd_FixedAtBuild_PcdCpuNumberOfReservedVariableMtrrs = _PCD_VALUE_PcdCpuNumberOfReservedVariableMtrrs;
UINT32 _gPcd_FixedAtBuild_PcdMaximumDevicePathNodeCount = _PCD_VALUE_PcdMaximumDevicePathNodeCount;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderRtRelocAllowTargetMismatch = FALSE;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderHashProhibitOverlap = TRUE;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderLoadHeader = TRUE;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderSupportArmThumb = FALSE;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderForceLoadDebug = FALSE;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderTolerantLoad = TRUE;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderSupportDebug = FALSE;
BOOLEAN _gPcd_FixedAtBuild_PcdImageLoaderRemoveXForWX = FALSE;
UINT32 _gPcd_BinaryPatch_PcdSerialRegisterStride = 0;