-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumps [edk2-pytool-library](https://github.com/tianocore/edk2-pytool-library) from 0.19.1 to 0.19.3. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ff8f8d3
commit a9a6067
Showing
8 changed files
with
3,434 additions
and
4 deletions.
There are no files selected for viewing
2,059 changes: 2,059 additions & 0 deletions
2,059
UefiTestingPkg/FunctionalSystemTests/MemoryProtectionTest/App/DxeMemoryProtectionTestApp.c
Large diffs are not rendered by default.
Oops, something went wrong.
81 changes: 81 additions & 0 deletions
81
UefiTestingPkg/FunctionalSystemTests/MemoryProtectionTest/App/DxeMemoryProtectionTestApp.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
## @file DxeMemoryProtectionTestApp.inf | ||
# | ||
# Tests for page guard, pool guard, NX protections, stack guard, and null pointer detection. | ||
## | ||
# Copyright (C) Microsoft Corporation. All rights reserved. | ||
## SPDX-License-Identifier: BSD-2-Clause-Patent | ||
## | ||
|
||
[Defines] | ||
INF_VERSION = 0x00010017 | ||
BASE_NAME = DxeMemoryProtectionTestApp | ||
FILE_GUID = 28C4CBBB-188F-460A-944A-DBE4A19D279E | ||
VERSION_STRING = 3.0 | ||
MODULE_TYPE = UEFI_APPLICATION | ||
ENTRY_POINT = MemoryProtectionTestAppEntryPoint | ||
|
||
# | ||
# The following information is for reference only and not required by the build tools. | ||
# | ||
# VALID_ARCHITECTURES = X64 AARCH64 | ||
# | ||
|
||
[Sources] | ||
DxeMemoryProtectionTestApp.c | ||
|
||
[Sources.X64] | ||
X64/X64Functions.c | ||
|
||
[Sources.AARCH64] | ||
AArch64/AArch64Functions.c | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec | ||
MdeModulePkg/MdeModulePkg.dec | ||
UefiCpuPkg/UefiCpuPkg.dec | ||
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec | ||
ShellPkg/ShellPkg.dec | ||
MsCorePkg/MsCorePkg.dec | ||
|
||
[LibraryClasses] | ||
DebugLib | ||
UefiApplicationEntryPoint | ||
UefiBootServicesTableLib | ||
UnitTestLib | ||
UnitTestPersistenceLib | ||
UnitTestBootLib | ||
PrintLib | ||
MemoryAllocationLib | ||
BaseLib | ||
ShellLib | ||
UefiLib | ||
HobLib | ||
ExceptionPersistenceLib | ||
|
||
[LibraryClasses.X64] | ||
HwResetSystemLib | ||
|
||
[Guids] | ||
gMemoryProtectionExceptionHandlerGuid ## CONSUMES | ||
gEfiHobMemoryAllocStackGuid ## CONSUMES | ||
|
||
[Protocols] | ||
gEfiCpuArchProtocolGuid ## CONSUMES | ||
gMemoryProtectionNonstopModeProtocolGuid ## CONSUMES | ||
gMemoryProtectionDebugProtocolGuid ## CONSUMES | ||
gEfiMemoryAttributeProtocolGuid ## CONSUMES | ||
gCpuMpDebugProtocolGuid ## CONSUMES | ||
|
||
[Guids] | ||
gEfiDebugImageInfoTableGuid ## SOMETIMES_CONSUMES ## GUID | ||
gEfiMemoryAttributesTableGuid | ||
gDxeMemoryProtectionSettingsGuid | ||
|
||
[BuildOptions] | ||
GCC:*_CLANG40WIN_AARCH64_CC_FLAGS = -Wno-infinite-recursion | ||
MSFT:*_*_*_CC_FLAGS = /wd4054 /wd4055 /wd4717 | ||
# An invalid opcode exception can be triggered during the NULL detection test on GCC5 builds | ||
# due to the instruction "ud2" being inserted by the compiler after a NULL pointer dereference. | ||
# Removing optimization prevents the invalid opcode instruction from being inserted and enables | ||
# the interrupt handler to clear the fault and return to the test. | ||
GCC:*_GCC5_X64_CC_FLAGS = -O0 |
Oops, something went wrong.