Skip to content

Commit

Permalink
edk2: Disable memory protocol on Arm (again)
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Sep 20, 2023
1 parent 63dc68b commit 5a66740
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ jobs:
patch -p1 < "${REPO}/patches/edk2-0003-boot-delay.patch"
patch -p1 < "${REPO}/patches/edk2-0004-gcc-errors.patch"
patch -p1 < "${REPO}/patches/edk2-0005-Revert-ArmVirtPkg-make-EFI_LOADER_DATA-non-executabl.patch"
patch -p1 < "${REPO}/patches/edk2-0006-disable-EFI-memory-attributes-protocol.patch"
if [ "$(uname -m)" = "x86_64" ]; then
cp ../seabios/out/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
Expand Down
30 changes: 30 additions & 0 deletions patches/edk2-0006-disable-EFI-memory-attributes-protocol.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From daa59fad9d3718c1e41b67b8719c408c36f05129 Mon Sep 17 00:00:00 2001
From: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Date: Thu, 7 Sep 2023 09:07:08 +0200
Subject: [PATCH] edk2: disable EFI memory attributes protocol

https://github.com/canonical/lxd/issues/12211

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
---
ArmPkg/Drivers/CpuDxe/CpuDxe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ArmPkg/Drivers/CpuDxe/CpuDxe.c b/ArmPkg/Drivers/CpuDxe/CpuDxe.c
index fc63e52784..ffb33c51ba 100644
--- a/ArmPkg/Drivers/CpuDxe/CpuDxe.c
+++ b/ArmPkg/Drivers/CpuDxe/CpuDxe.c
@@ -331,8 +331,8 @@ CpuDxeInitialize (
&mCpuHandle,
&gEfiCpuArchProtocolGuid,
&mCpu,
- &gEfiMemoryAttributeProtocolGuid,
- &mMemoryAttribute,
+// &gEfiMemoryAttributeProtocolGuid,
+// &mMemoryAttribute,
NULL
);

--
2.39.2

0 comments on commit 5a66740

Please sign in to comment.