]> git.proxmox.com Git - pve-edk2-firmware.git/blob - debian/patches/ArmVirtPkg-disable-the-EFI_MEMORY_ATTRIBUTE-protocol.patch
bump version to 4.2023.08-4
[pve-edk2-firmware.git] / debian / patches / ArmVirtPkg-disable-the-EFI_MEMORY_ATTRIBUTE-protocol.patch
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
8
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 (
14 &mCpuHandle,
15 &gEfiCpuArchProtocolGuid,
16 &mCpu,
17 - &gEfiMemoryAttributeProtocolGuid,
18 - &mMemoryAttribute,
19 NULL
20 );
21
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
26 @@ -30,12 +30,9 @@
27 #include <Protocol/Cpu.h>
28 #include <Protocol/DebugSupport.h>
29 #include <Protocol/LoadedImage.h>
30 -#include <Protocol/MemoryAttribute.h>
31
32 extern BOOLEAN mIsFlushingGCD;
33
34 -extern EFI_MEMORY_ATTRIBUTE_PROTOCOL mMemoryAttribute;
35 -
36 /**
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
43 @@ -23,7 +23,6 @@
44 CpuDxe.h
45 CpuMmuCommon.c
46 Exception.c
47 - MemoryAttribute.c
48
49 [Sources.ARM]
50 Arm/Mmu.c
51 @@ -54,7 +53,6 @@
52
53 [Protocols]
54 gEfiCpuArchProtocolGuid
55 - gEfiMemoryAttributeProtocolGuid
56
57 [Guids]
58 gEfiDebugImageInfoTableGuid