1. 11 Oct, 2015 1 commit
  2. 10 Oct, 2015 1 commit
  3. 23 Jul, 2015 1 commit
    • Vladimir Serbinenko's avatar
      Remove mips_attributes. · eecdbebc
      Vladimir Serbinenko authored
      mips_attributes was introduced to work around clang problems with
      -msoft-float. Those problems are now fixed and moreover .gnu_attributes
      itself is unportable and creates problem with clang.
      
      Revert "mips: Fix soft-float handling."
      
      This partially reverts commit 6a4ecd27.
      eecdbebc
  4. 24 Feb, 2015 1 commit
    • Vladimir Serbinenko's avatar
      mips: Fix soft-float handling. · 6a4ecd27
      Vladimir Serbinenko authored
      Add -msoft-float alongside clang arguments to specify ABI.
      Specify ABI in asm files explicitly.
      This trigers asm warning due to gcc failing to propagate -msoft-float
      but it's tolerable.
      6a4ecd27
  5. 22 Feb, 2015 1 commit
  6. 26 Aug, 2014 1 commit
  7. 18 Dec, 2013 4 commits
  8. 08 Dec, 2013 1 commit
  9. 06 Dec, 2013 1 commit
  10. 23 Nov, 2013 1 commit
  11. 22 Nov, 2013 5 commits
  12. 18 Nov, 2013 1 commit
  13. 16 Nov, 2013 1 commit
  14. 10 Nov, 2013 1 commit
  15. 14 Aug, 2013 1 commit
  16. 31 May, 2013 1 commit
  17. 30 Apr, 2013 2 commits
  18. 29 Apr, 2013 2 commits
  19. 27 Apr, 2013 1 commit
  20. 26 Apr, 2013 1 commit
  21. 24 Apr, 2013 1 commit
  22. 20 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from device iterators. · 25239370
      Colin Watson authored
      * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
      (grub_arc_iterate_devs): Add hook_data argument.
      * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
      (struct grub_ata_dev.iterate): Add hook_data argument.
      * include/grub/device.h (grub_device_iterate_hook_t): New type.
      (grub_device_iterate): Add hook_data argument.
      * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
      (struct grub_disk_dev.iterate): Add hook_data argument.
      (grub_disk_dev_iterate): Likewise.
      * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
      Likewise.
      * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
      Likewise.
      * include/grub/partition.h (grub_partition_iterate_hook_t): New
      type.
      (struct grub_partition_map.iterate): Add hook_data argument.
      (grub_partition_iterate): Likewise.
      * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
      (struct grub_scsi_dev.iterate): Add hook_data argument.
      
      Update all callers.
      25239370
  23. 15 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from memory map iterators. · d0d4b8a0
      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.
      d0d4b8a0
  24. 13 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from PCI iterators. · ca3a7446
      Colin Watson authored
      * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
      passed to hook.  Update all callers to pass appropriate hook data.
      * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
      * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
      Remove NESTED_FUNC_ATTR from here and from all users.
      (grub_pci_iterate): Update prototype.
      * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
      instead of nested.  Rename to ...
      (grub_cs5536_find_iter): ... this.
      * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
      * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
      Likewise.
      * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
      Likewise.
      * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
      Likewise.
      * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
      Likewise.
      * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
      * grub-core/video/radeon_fuloong2e.c
      (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
      * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
      find_card): Likewise.
      * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
      Likewise.
      ca3a7446
  25. 27 Jun, 2012 1 commit
  26. 23 Jun, 2012 1 commit
  27. 12 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Remove non-functional EFI grub_get_rtc. Put a better fatal message · 7da036bb
      Vladimir 'phcoder' Serbinenko authored
      	than current grub_get_rtc() not implemented when booted with
      	coreboot without TSC.
      
      	* grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
      	Add machine/time.h to kernel headers on loongson.
      	* grub-core/Makefile.core.def (kernel): Remove
      	kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
      	* grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
      	(grub_get_rtc): Likewise.
      	* grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
      	* grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
      	* grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
      	* grub-core/kern/i386/tsc.c (grub_tsc_init)
      	[!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
      	rather than installing known non-working time source.
      	* grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
      	* grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
      	* include/grub/time.h: Don't include machine/time.h.
      	* include/grub/efi/time.h: Removed.
      	* include/grub/i386/efi/time.h: Likewise.
      	* include/grub/i386/ieee1275/time.h: Likewise.
      	* include/grub/powerpc/ieee1275/time.h: Likewise.
      	* include/grub/sparc64/ieee1275/time.h: Likewise.
      	* include/grub/x86_64/efi/time.h: Likewise.
      7da036bb
  28. 06 Jun, 2012 1 commit
  29. 27 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Remove grub_{modname}_init and grub_{modname}_fini. They should never · 036985b8
      Vladimir 'phcoder' Serbinenko authored
      	be used directly if it's really a module and GRUB_MOD_INIT shouldn't
      	be used on non-modules.
      
      	* grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
      	Rename to grub_boot_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
      	* grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
      	[LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
      	* grub-core/font/font_cmd.c (GRUB_MOD_INIT)
      	[LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
      	* grub-core/kern/mips/loongson/init.c: Replace explicit protos with
      	includes.
      	(grub_machine_init): Remove empty inits.
      	* grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
      	includes.
      	(grub_machine_init): Remove empty inits.
      	* grub-core/term/arc/console.c: Remove explicit proto.
      	* grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
      	[LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
      	grub_at_keyboard_fini.
      	* grub-core/term/gfxterm.c (GRUB_MOD_INIT)
      	[LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
      	grub_gfxterm_fini.
      	* grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
      	[LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
      	grub_vgatext_fini.
      	* grub-core/term/ieee1275/console.c: Remove explicit proto.
      	* grub-core/term/serial.c (GRUB_MOD_INIT)
      	[LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
      	grub_serial_fini.
      	* grub-core/term/terminfo.c (GRUB_MOD_INIT)
      	[LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
      	(GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
      	grub_terminfo_fini.
      	* grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
      	(GRUB_MOD_FINI): Likewise.
      	* grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
      	[LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
      	(GRUB_MOD_FINI) [LOONGSON]: Rename to
      	grub_video_radeon_fuloong2e_fini.
      	* grub-core/video/sis315pro.c (GRUB_MOD_INIT)
      	[LOONGSON]: Rename to grub_video_sis315pro_init.
      	(GRUB_MOD_FINI) [LOONGSON]: Rename to
      	grub_video_sis315pro_fini.
      	* grub-core/video/sm712.c (GRUB_MOD_INIT)
      	[LOONGSON]: Rename to grub_video_sm712_init.
      	(GRUB_MOD_FINI) [LOONGSON]: Rename to
      	grub_video_sm712_fini.
      	* include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
      	(grub_at_keyboard_fini): Likewise.
      	* include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
      	Don't declare grub_{modname}_init.
      	(GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
      	* include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
      	New proto.
      	(grub_keylayouts_fini) [!EMU]: Likewise.
      	* include/grub/serial.h (grub_serial_init) [!EMU]:
      	New proto.
      	(grub_serial_fini) [!EMU]: Likewise.
      	* include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
      	New proto.
      	(grub_terminfo_fini) [!EMU]: Likewise.
      	* include/grub/video.h (grub_font_init) [!EMU]:
      	New proto.
      	(grub_font_fini) [!EMU]: Likewise.
      	(grub_gfxterm_init) [!EMU]: Likewise.
      	(grub_gfxterm_fini) [!EMU]: Likewise.
      	(grub_video_sm712_init) [!EMU]: Likewise.
      	(grub_video_sm712_fini) [!EMU]: Likewise.
      	(grub_video_sis315pro_init) [!EMU]: Likewise.
      	(grub_video_sis315pro_fini) [!EMU]: Likewise.
      	(grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
      	(grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
      036985b8
  30. 26 Feb, 2012 1 commit
  31. 10 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Increase warning level. · ebcecdf1
      Vladimir 'phcoder' Serbinenko authored
      	* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
      	-Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
      	* configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
      	(TARGET_CFLAGS): Likewise.
      	(HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
      	* grub-core/Makefile.core.def (decompressor_xz): Add
      	-Wno-unreachable-code.
      	(normal): Add -Wno-redundant-decls.
      	(xzio): Add -Wno-unreachable-code.
      	(lzopio): Add -Wno-redundant-decls -Wno-error.
      	* grub-core/commands/acpi.c: Add exception to -Wcast-align.
      	* grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
      	* grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
      	* grub-core/kern/dl.c: Add exception to -Wcast-align.
      	* grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
      	* grub-core/kern/i386/coreboot/init.c: Add exception to
      	-Wsuggest-attribute=noreturn.
      	* grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
      	* grub-core/kern/ia64/dl_helper.c: Likewise.
      	* grub-core/kern/mips/dl.c: Likewise.
      	* grub-core/kern/sparc64/dl.c: Likewise.
      	* grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
      	* grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
      	(memcmp): Likewise.
      	* grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
      	* grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
      	* grub-core/loader/mips/linux.c: Likewise.
      	* grub-core/loader/multiboot_elfxx.c: Likewise.
      	* grub-core/script/parser.y: Add exception to -Wunreachable-code.
      	* grub-core/video/sm712.c: Add exception to -Wcast-align.
      	* util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
      	* grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
      	fixme.
      	* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
      	* grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
      	Fix prototype.
      ebcecdf1