[PATCH] loader/linux: Fix type error for reference variable

2021-01-10 Thread Tianjia Zhang
`relocatable` is defined as type grub_uint8_t, this is also one byte definition in linux boot protocol. by semantic definition, it is a bool type. It is not appropriate to treat it as a four bytes, this patch fix this issue. Signed-off-by: Tianjia Zhang --- grub-core/loader/i386/linux.c | 2 +-

[PATCH] loader/linux: Remove redundant code from in grub_cmd_linux()

2021-01-10 Thread Tianjia Zhang
`preferred_address` has been assigned to GRUB_LINUX_BZIMAGE_ADDR during initialization in grub_cmd_linux(). The assignment here is redundant and should be removed. Signed-off-by: Tianjia Zhang --- grub-core/loader/i386/linux.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/grub-core/loade

[PATCH] Remove unnecessary constraints on required_pages for EFI boot

2021-01-10 Thread Char, Hanson via Grub-devel
As reported earlier, when booted in UEFI mode, Grub would fail to load a ramdisk of size larger than "(total_pages >> 2)" with     "error: out of memory" (https://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/kern/efi/mm.c#n616) Further investigation into the EFI memory map indicates the cu