1 Description: ArmVirtPkg: Disable the EFI memory attributes protocol
2 Temporarily disable the EFI_MEMORY_ATTRIBUTE_PROTOCOL to workaround
3 a bug in shim until distributions have had a chance to fix it.
4 Author: dann frazier <dannf@debian.org>
5 Bug-Debian: https://bugs.debian.org/1042438
6 Bug-Ubuntu: https://launchpad.net/bugs/2036604
7 Last-Update: 2023-09-23
9 Index: edk2-2023.05/ArmPkg/Drivers/CpuDxe/CpuDxe.c
10 ===================================================================
11 --- edk2-2023.05.orig/ArmPkg/Drivers/CpuDxe/CpuDxe.c
12 +++ edk2-2023.05/ArmPkg/Drivers/CpuDxe/CpuDxe.c
13 @@ -244,8 +244,6 @@ CpuDxeInitialize (
15 &gEfiCpuArchProtocolGuid,
17 - &gEfiMemoryAttributeProtocolGuid,
22 Index: edk2-2023.05/ArmPkg/Drivers/CpuDxe/CpuDxe.h
23 ===================================================================
24 --- edk2-2023.05.orig/ArmPkg/Drivers/CpuDxe/CpuDxe.h
25 +++ edk2-2023.05/ArmPkg/Drivers/CpuDxe/CpuDxe.h
27 #include <Protocol/Cpu.h>
28 #include <Protocol/DebugSupport.h>
29 #include <Protocol/LoadedImage.h>
30 -#include <Protocol/MemoryAttribute.h>
32 extern BOOLEAN mIsFlushingGCD;
34 -extern EFI_MEMORY_ATTRIBUTE_PROTOCOL mMemoryAttribute;
37 This function registers and enables the handler specified by InterruptHandler for a processor
38 interrupt or exception type specified by InterruptType. If InterruptHandler is NULL, then the
39 Index: edk2-2023.05/ArmPkg/Drivers/CpuDxe/CpuDxe.inf
40 ===================================================================
41 --- edk2-2023.05.orig/ArmPkg/Drivers/CpuDxe/CpuDxe.inf
42 +++ edk2-2023.05/ArmPkg/Drivers/CpuDxe/CpuDxe.inf
54 gEfiCpuArchProtocolGuid
55 - gEfiMemoryAttributeProtocolGuid
58 gEfiDebugImageInfoTableGuid