diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c index 185ca6332..57b9ff816 100644 --- a/grub-core/loader/arm64/linux.c +++ b/grub-core/loader/arm64/linux.c @@ -73,7 +73,7 @@ finalize_params_linux (void) void *fdt; - fdt = grub_fdt_load (0x400); + fdt = grub_fdt_load (GRUB_EFI_LINUX_FDT_EXTRA_SPACE); if (!fdt) goto failure; diff --git a/include/grub/fdt.h b/include/grub/fdt.h index 158b1bc4b..e609c7e41 100644 --- a/include/grub/fdt.h +++ b/include/grub/fdt.h @@ -22,6 +22,9 @@ #include #include +/* Space required when preparing the /chosen node after boot has been called. */ +#define GRUB_EFI_LINUX_FDT_EXTRA_SPACE 0x400 + #define FDT_MAGIC 0xD00DFEED typedef struct {