Why does it crash? Is it because of MMU or is it because of relocations? Arm is trickier than x64 add we can't be sure that there is any memory under 4GiB mark. Entire memory may be married above 4GiB
Le lun. 7 avr. 2025, 21:31, Tobias Heider <tobias.hei...@canonical.com> a écrit : > 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 >
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel