mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-08 22:34:24 +02:00
Introduce a driver that allows users to disable the EFI Memory Attribute protocol through an HII setup option, in order to work around a broken version of rhboot's shim used in some distros (e.g. CentOS Stream 9) which incorrectly invokes the protocol and results in a Synchronous Exception. Default is enabled, which can also be overridden at build time by changing `gEmbeddedTokenSpaceGuid.PcdMemoryAttributeEnabledDefault`. It is only applicable to ARM64 and there isn't any other technical reason for disabling this security feature. See: - https://github.com/microsoft/mu_silicon_arm_tiano/issues/124 - https://edk2.groups.io/g/devel/topic/99631663 - https://github.com/tianocore/edk2/pull/5840 Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
18 lines
481 B
C
18 lines
481 B
C
/** @file
|
|
|
|
Copyright (c) 2023-2024, Mario Bălănică <mariobalanica02@gmail.com>
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef MEMORY_ATTRIBUTE_MANAGER_FORMSET_H_
|
|
#define MEMORY_ATTRIBUTE_MANAGER_FORMSET_H_
|
|
|
|
#define MEMORY_ATTRIBUTE_MANAGER_FORMSET_GUID \
|
|
{ 0xefab3427, 0x4793, 0x4e9e, { 0xaa, 0x29, 0x88, 0x0c, 0x9a, 0x77, 0x5b, 0x5f } }
|
|
|
|
extern EFI_GUID gMemoryAttributeManagerFormSetGuid;
|
|
|
|
#endif // __MEMORY_ATTRIBUTE_MANAGER_FORMSET_H__
|