- 23 Feb, 2018 2 commits
-
-
Leif Lindholm authored
struct linux_kernel_header -> struct linux_i386_kernel_header Signed-off-by:
Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by:
Daniel Kiper <daniel.kiper@oracle.com>
-
Leif Lindholm authored
Rename GRUB_LINUX_MAGIC_SIGNATURE GRUB_LINUX_I386_MAGIC_SIGNATURE, to be usable in code that supports more than one image type. Signed-off-by:
Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by:
Daniel Kiper <daniel.kiper@oracle.com>
-
- 04 Apr, 2017 1 commit
-
-
Andrei Borzenkov authored
In util/getroot and efidisk slightly modify exitsing comment to mostly retain it but still make GCC7 compliant with respect to fall through annotation. In grub-core/lib/xzembed/xz_dec_lzma2.c it adds same comments as upstream. In grub-core/tests/setjmp_tets.c declare functions as "noreturn" to suppress GCC7 warning. In grub-core/gnulib/regexec.c use new __attribute__, because existing annotation is not recognized by GCC7 parser (which requires that comment immediately precedes case statement). Otherwise add FALLTHROUGH comment. Closes: 50598
-
- 08 Jan, 2017 1 commit
-
-
Andrei Borzenkov authored
Arguments were in reverse order which resulted in text is deprecated. Use set gfxpayload=vga=0 before linux command instead.
-
- 07 May, 2015 3 commits
-
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
-
Fu Wei authored
Signed-off-by:
Fu Wei <fu.wei@linaro.org>
-
- 14 Oct, 2014 1 commit
-
-
Andrei Borzenkov authored
struct ... foo = { 0, } is valid initializer, but older GCC emits warning which is fatal error due to -Werror=missing-field-initializer. So simply use full initializer to avoid these errors. This was fixed probably in GCC 4.7. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
-
- 22 Sep, 2014 1 commit
-
-
Andrey Borzenkov authored
This tries to catch all cases where grub_cpu_to_XXX was used for constant expressions (including sizeof).
-
- 21 Sep, 2014 1 commit
-
-
Peter Jones authored
Currently, if "linux" fails, the "goto fail;" in grub_cmd_initrd sends us into grub_initrd_close() without grub_initrd_init() being called, and thus it never clears initrd_ctx->components. grub_initrd_close() then frees that address, which is stale data from the stack. If the stack happens to have a stale *address* there that matches a recent allocation, then you'll get a double free later. So initialize the memory up front. Signed-off-by:
Peter Jones <pjones@redhat.com>
-
- 17 Dec, 2013 3 commits
-
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
in separate root.
-
Vladimir Serbinenko authored
-
- 15 Dec, 2013 3 commits
-
-
Vladimir Serbinenko authored
appropriate.
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
Just "packed" doesn't always pack the way we expect.
-
- 28 Oct, 2013 1 commit
-
-
Vladimir Serbinenko authored
a page in protected space.
-
- 19 Oct, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
bitmasks to small structures of size chosen to fit in registers.
-
- 14 Oct, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
module.
-
- 02 May, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
-
- 24 Apr, 2013 2 commits
-
-
Vladimir 'phcoder' Serbinenko authored
gfxpayload=keep if cbfb is active.
-
Vladimir 'phcoder' Serbinenko authored
-
- 14 Apr, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 22 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 20 Jan, 2013 1 commit
-
-
Colin Watson authored
initrd size to addr_min, since the initrd will be allocated after this address.
-
- 15 Jan, 2013 1 commit
-
-
Colin Watson authored
* grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data argument, passed to hook. * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Likewise. (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static instead of nested. (grub_machine_mmap_iterate): Add hook_data argument. * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate): Add hook_data argument, passed to hook. * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Likewise. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Likewise. * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Likewise. * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate): Likewise. * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate): Likewise. * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate): Likewise. * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise. (grub_machine_mmap_iterate): Likewise. * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise. * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update prototype. * include/grub/memory.h (grub_memory_hook_t): Add data argument. Remove NESTED_FUNC_ATTR from here and from all users. (grub_mmap_iterate): Update prototype. (grub_efi_mmap_iterate): Update prototype. Update all callers to pass appropriate hook data. (grub_machine_mmap_iterate): Likewise. * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make static instead of nested. * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise. Rename to ... (lsmmap_hook): ... this. * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook): Likewise. (grub_efiemu_mmap_fill: fill_hook): Likewise. * grub-core/kern/i386/coreboot/init.c (grub_machine_init: heap_init): Likewise. * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise. Rename to ... (mmap_iterate_hook): ... this. * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init): Likewise. * grub-core/lib/ieee1275/relocator.c (grub_relocator_firmware_get_max_events: count): Likewise. (grub_relocator_firmware_fill_events: fill): Likewise. Rename to ... (grub_relocator_firmware_fill_events_iter): ... this. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align: hook): Likewise. Rename to ... (grub_relocator_alloc_chunk_align_iter): ... this. * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise. Rename to ... (generate_e820_mmap_iter): ... this. * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise. Rename to ... (count_hook): ... this. (grub_linux_boot: hook): Likewise. Rename to ... (grub_linux_boot_mmap_find): ... this. (grub_linux_boot: hook_fill): Likewise. Rename to ... (grub_linux_boot_mmap_fill): ... this. * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap: hook): Likewise. Rename to ... (grub_fill_multiboot_mmap_iter): ... this. * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count: hook): Likewise. Rename to ... (count_hook): ... this. * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap: hook): Likewise. Rename to ... (grub_fill_multiboot_mmap_iter): ... this. * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_claimmap_iterate: alloc_mem): Likewise. * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose): Likewise. Rename to ... (alloc_phys_choose): ... this. (determine_phys_base: get_physbase): Likewise. * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register: find_hook): Likewise. * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise. (malloc_hook: count_hook): Likewise. * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook): Likewise. Rename to ... (lower_hook): ... this. (grub_mmap_get_upper: hook): Likewise. Rename to ... (upper_hook): ... this. (grub_mmap_get_post64: hook): Likewise. Rename to ... (post64_hook): ... this. * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook): Likewise. Rename to ... (lower_hook): ... this. (grub_mmap_get_upper: hook): Likewise. Rename to ... (upper_hook): ... this. * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise. (grub_mmap_iterate: fill_hook): Likewise. (fill_mask): Pass addr and mask within a single struct. (grub_cmd_badram: hook): Make static instead of nested. Rename to ... (badram_iter): ... this. (grub_cmd_cutmem: hook): Likewise. Rename to ... (cutmem_iter): ... this.
-
- 05 Oct, 2012 1 commit
-
-
Colin Watson authored
preferred_address. (grub_cmd_linux): Likewise. * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of preferred_lifetime. Update all users.
-
- 18 Sep, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
le-conversion. Reported by: BURETTE, Bernard.
-
- 02 Jul, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
efi_mmap_size. Reported by: Stuart Hayes.
-
- 27 Jun, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
additional size to 3 pages. Reported by: Stuart Hayes.
-
- 25 Jun, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
cast between linux_kernel_header and linux_kernel_params.
-
- 20 Jun, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
determining EFI memory map size.
-
- 31 May, 2012 3 commits
-
-
Vladimir 'phcoder' Serbinenko authored
(grub_cmd_linux): Likewise.
-
Peter Jones authored
* grub-core/loader/i386/linux.c (grub_linux_boot): Use v206. (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
-
Vladimir 'phcoder' Serbinenko authored
uninited variable. Allocate at least setup_sects.
-
- 30 May, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed. (real_mode_mem): Likewise. (real_mode_target): Likewise. (real_mode_pages): Likewise. (prot_mode_pages): Likewise. (linux_params): New var. (linux_cmdline): Likewise. (free_pages): Don't set real mode variables. (allocate_pages): Don't allocate real mode memory. (grub_e820_add_region): Remove the limit. (grub_linux_boot): Allocate and copy real mode memory. (grub_linux_unload): Free linux_cmdline. (grub_cmd_linux): Use temporary storage for parameters. (grub_cmd_initrd): Likewise. * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed. (linux_kernel_params): Make it 1K big.
-
- 17 Apr, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
boot services if we have no other choice.
-
- 11 Apr, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
kh.loadflags on pre-2.00 kernels.
-
- 11 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
beyond 4 GiB. (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable images independently of preffered adderss field.
-
- 07 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
(allocate_pages): Improve dprintf. (grub_cmd_linux): Fill prot_init_space. Fix improper usage of code32_start. Fill code32_start and kernel_alignment in params. (grub_cmd_initrd): Use prot_init_space.
-