1. 27 Feb, 2016 1 commit
  2. 15 Dec, 2013 1 commit
  3. 05 Dec, 2013 1 commit
  4. 10 Nov, 2013 1 commit
  5. 26 Apr, 2013 1 commit
  6. 24 Apr, 2013 1 commit
  7. 07 Apr, 2013 1 commit
  8. 07 Mar, 2013 1 commit
  9. 30 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * grub-core/boot/i386/pc/lnxboot.S: Use · f37c87e1
      Vladimir 'phcoder' Serbinenko authored
      	GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
      	* grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
      	location.
      	* include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
      	definition.
      	(GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
      f37c87e1
  10. 24 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Eliminate fixed limit on reed solomon decoder length. · 2e13ede5
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
      	rather than hardcoding the address.
      	* grub-core/boot/i386/pc/startup_raw.S: Add new data field
      	no_reed_solomon_length.
      	Move gate_a20 to no-reed-solomon part.
      	Don't force a particular size of no reed-solomon part.
      	* include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
      	Removed.
      	(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
      	* util/grub-setup.c (setup): Read no_rs_length from the image itself.
      2e13ede5
  11. 15 Dec, 2011 1 commit
  12. 13 Nov, 2011 3 commits
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix MIPS compilation. · aa94b870
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
      	* include/grub/offsets.h: Rename decompressor fields from
      	GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
      	* util/grub-mkimage.c (image_targets): Use new names.
      aa94b870
    • Vladimir 'phcoder' Serbinenko's avatar
      Defer multiboot device parsing until we're in compressed part. · 5fbdac14
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
      	bsd_part. setdevice has fallen into disuse.
      	* grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
      	(bsd_part): Likewise.
      	(boot_dev): New variable.
      	(multiboot_trampoline): Don't parse multiboot device.
      	Pass multiboot device in %edx.
      	* grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
      	grub_boot_device.
      	* grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
      	Likewise.
      	* grub-core/kern/i386/pc/startup.S: Save edx.
      	(grub_boot_drive): Removed.
      	(grub_install_dos_part): Likewise.
      	(grub_install_bsd_part): Likewise.
      	(grub_boot_device): New variable.
      	* include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
      	(grub_install_bsd_part): Likewise.
      	(grub_boot_drive): Likewise.
      	(grub_boot_device): New variable.
      	* include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
      	Removed.
      	(GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
      	(GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
      	(GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
      	(GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
      	* util/grub-install.in: Remove redundant condition.
      5fbdac14
    • Vladimir 'phcoder' Serbinenko's avatar
      Use decompressors framework on i386-pc. It increases core size · 60240b8b
      Vladimir 'phcoder' Serbinenko authored
      	by 46 bytes but improves compatibility and maintainability.
      
      	* grub-core/Makefile.core.def (lzma_decompress): New image.
      	(kernel): Add i386_pc_ldflags.
      	* grub-core/kern/i386/pc/startup.S: Move intial part to ..
      	* grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
      	to real_to_prot, prot_to_real and device info.
      	* include/grub/offsets.h: Renamed decompressor offsets.
      	* util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
      	(image_target_desc): Remove raw_size and rename decompressor fields.
      	(compress_kernel): Handle lzma.
      	(generate_image): Handle decompressors on i386-pc.
      60240b8b
  13. 24 Oct, 2011 1 commit
  14. 20 Oct, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Remove redundant grub_kernel_image_size. · 766f7d08
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
      	_edata and _start.
      	* grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
      	the small code. It moves it only by few bytes but simplifies the code.
      	* grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
      	_start.
      	* grub-core/kern/i386/pc/startup.S: Use _edata and _start.
      	(grub_kernel_image_size): Removed.
      	* grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
      	(grub_kernel_image_size): Removed.
      	[APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
      	compiled with Apple toolchain.
      	* grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
      	* include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
      	* include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
      	(grub_total_module_size): Likewise.
      	* include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
      	Removed.
      	(GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
      	(GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
      	(GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
      	(GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
      	(GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
      	(GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
      	(GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
      	* include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
      	Removed.
      	(grub_total_module_size): Removed.
      	* util/grub-mkimage.c (image_target_desc): Remove image_size.
      	(image_targets): Likewise.
      	Set .compressed_size to no field on sparc.
      	(generate_image): Remove kernel_image_size handling.
      766f7d08
  15. 18 Oct, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Make grub_prefix into module to fix the arbitrary limit and save · a97501d2
      Vladimir 'phcoder' Serbinenko authored
      	some space.
      
      	* grub-core/kern/emu/main.c (grub_prefix): Removed.
      	* grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/mips/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
      	* grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
      	* grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
      	* include/grub/ia64/efi/kernel.h: Removed.
      	* include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
      	(grub_prefix): Removed.
      	* include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
      	(GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
      	(GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
      	(GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
      	(GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
      	(GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
      	(GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
      	(GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
      	(GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
      	(GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
      	(GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
      	(GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
      	(GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
      	(GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
      	(GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
      	(GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
      	(GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
      	(GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
      	(GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
      	(GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
      	(GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
      	(GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
      	(GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
      	(GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
      	(GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
      	(GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
      	(GRUB_KERNEL_MACHINE_PREFIX): Likewise.
      	(GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
      	* grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
      	from module.
      	* util/grub-mkimage.c (image_target_desc): Removed prefix and
      	prefix_end.
      	(image_targets): Likewise.
      	(generate_image): Put prefix as a module.
      a97501d2
  16. 05 Jul, 2011 1 commit
  17. 02 Jul, 2011 1 commit
  18. 18 May, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Reduce memory footprint on SGI by putting modules before the kernel · b772baed
      Vladimir 'phcoder' Serbinenko authored
      	as opposed to after.
      
      	* grub-core/Makefile.core.def (kernel): Increase linking address.
      	(none_decompress): Likewise.
      	(xz_decompress): Likewise.
      	* grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
      	address.
      	* grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
      	layout change.
      	(grub_arch_modules_addr): New function.
      	* grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
      	* grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
      	* grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
      	here.
      	* grub-core/kern/mips/startup.S (total_size): Rename to ...
      	(grub_total_modules_size): ... this. Make global.
      	[GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
      	* include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
      	New definition.
      	(GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
      	(GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
      	(GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
      	(GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
      	* util/grub-mkimage.c (image_target_desc): New flag
      	PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
      	(image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
      	(generate_image): Handle images with modules before kernel.
      b772baed
  19. 13 May, 2011 1 commit
  20. 06 Apr, 2011 1 commit
  21. 19 Feb, 2011 1 commit
  22. 14 Jan, 2011 1 commit
  23. 03 Jan, 2011 1 commit
  24. 21 Dec, 2010 1 commit
  25. 26 Sep, 2010 2 commits
  26. 25 Sep, 2010 1 commit
  27. 24 Sep, 2010 1 commit
  28. 21 Sep, 2010 1 commit
  29. 20 Sep, 2010 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Split config.h for util and core. · 742f9232
      Vladimir 'phcoder' Serbinenko authored
      	* acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
      	(ADDR32): Likewise.
      	(DATA32): Likewise.
      	(BSS_START_SYMBOL): Likewise.
      	(END_SYMBOL): Likewise.
      	(NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
      	(grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
      	* config.h.in: New file.
      	* configure.ac: Use config-util.h as config define file.
      	Rename MACHINE into GRUB_MACHINE. All users updated.
      	(NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
      	updated.
      	(NESTED_FUNC_ATTR): Likewise.
      	Substitue new variables.
      	(COND_HAVE_ASM_USCORE): New conditional.
      	* grub-core/Makefile.am (ASM_PREFIX): New variable.
      	(kernel_syms.lst): Use ASM_PREFIX.
      	* grub-core/kern/emu/console.c: Include config-util.h.
      	* grub-core/kern/emu/misc.c: Likewise.
      	* grub-core/kern/emu/mm.c: Likewise.
      	* include/grub/emu/misc.h: Likewise.
      	* include/grub/libgcc.h: Likewise.
      742f9232
  30. 03 Sep, 2010 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Compress grub_prefix. · c8e7bf5f
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/boot/i386/pc/lnxboot.S: Use
      	GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
      	* grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
      	* include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
      	GRUB_MACHINE_PREFIX_END. All users updated.
      	(GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
      	(GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
      	+ 0x40.
      	(GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
      	* util/grub-mkimage.c (image_target_desc): Change data_end to
      	prefix_end. All users updated.
      c8e7bf5f
  31. 29 Aug, 2010 1 commit
  32. 17 Aug, 2010 1 commit