Some Qualcomm Snapdragon X Elite based machines like the Lenovo Thinkpad T14s
crash when trying to use memory above 0xffffffff.
Enforcing the same 4GB limit as we do on x86_64 fixes the issue.

Signed-off-by: Tobias Heider <tobias.hei...@canonical.com>
---
 include/grub/arm64/efi/memory.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/grub/arm64/efi/memory.h b/include/grub/arm64/efi/memory.h
index c6cb32417..2c64918e3 100644
--- a/include/grub/arm64/efi/memory.h
+++ b/include/grub/arm64/efi/memory.h
@@ -1,6 +1,6 @@
 #ifndef GRUB_MEMORY_CPU_HEADER
 #include <grub/efi/memory.h>
 
-#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffffffULL
+#define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff
 
 #endif /* ! GRUB_MEMORY_CPU_HEADER */
-- 
2.48.1


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to