未验证 提交 c79e89ec 编写于 作者: H Heinrich Schuchardt 提交者: Palmer Dabbelt

RISC-V: load initrd wherever it fits into memory

Requiring that initrd is loaded below RAM start + 256 MiB led to failure
to boot SUSE Linux with GRUB on QEMU, cf.
https://lists.gnu.org/archive/html/grub-devel/2021-06/msg00037.html

Remove the constraint.
Reported-by: NAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: NAtish Patra <atish.patra@wdc.com>
Acked-by: NArd Biesheuvel <ardb@kernel.org>
Fixes: d7071743 ("RISC-V: Add EFI stub support.")
Signed-off-by: NPalmer Dabbelt <palmerdabbelt@google.com>
上级 444818b5
......@@ -27,10 +27,10 @@ int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md);
#define ARCH_EFI_IRQ_FLAGS_MASK (SR_IE | SR_SPIE)
/* Load initrd at enough distance from DRAM start */
/* Load initrd anywhere in system RAM */
static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)
{
return image_addr + SZ_256M;
return ULONG_MAX;
}
#define alloc_screen_info(x...) (&screen_info)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册