Skip to content

Commit c79e89e

Browse files
xypronpalmer-dabbelt
authored andcommitted
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: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Atish Patra <atish.patra@wdc.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Fixes: d707174 ("RISC-V: Add EFI stub support.") Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
1 parent 444818b commit c79e89e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • arch/riscv/include/asm

arch/riscv/include/asm/efi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md);
2727

2828
#define ARCH_EFI_IRQ_FLAGS_MASK (SR_IE | SR_SPIE)
2929

30-
/* Load initrd at enough distance from DRAM start */
30+
/* Load initrd anywhere in system RAM */
3131
static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)
3232
{
33-
return image_addr + SZ_256M;
33+
return ULONG_MAX;
3434
}
3535

3636
#define alloc_screen_info(x...) (&screen_info)

0 commit comments

Comments
 (0)