]> git.proxmox.com Git - grub2.git/blobdiff - ChangeLog
Remove nested functions from USB iterators.
[grub2.git] / ChangeLog
index d83d10a6567d4f56cd1a00c61a00fb40a10354c4..08c2c9f605a603e561f47831799c1b67731e9e48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,396 @@
-2013-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
+2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
+
+       Remove nested functions from USB iterators.
+
+       * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
+       (grub_usb_controller_iterate_hook_t): Likewise.
+       (grub_usb_iterate): Add hook_data argument.
+       (grub_usb_controller_iterate): Likewise.
+       (struct grub_usb_controller_dev.iterate): Likewise.
+
+       Update all implementations and callers.
+
+2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
+       margin when not needed.
+
+2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Make color variables global instead of it being per-terminal.
+
+2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
+       asterisk.
+
+2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
+
+       Fix powerpc and sparc64 build failures caused by un-nesting memory
+       map iterators.
+
+2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
+       parameter declarations.
+
+2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/lsmmap.c: Fix unused variable on emu.
+
+2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Improve spkmomdem reliability by adding a separator between bytes.
+
+2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
+       an Acer registration utility with several sightings in the wild.
+       Reported by: Rickard Westman.  Fixes Ubuntu bug #987022.
+
+2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
+
+       Remove nested functions from filesystem directory iterators.
+
+       * include/grub/fs.h (grub_fs_dir_hook_t): New type.
+       (struct grub_fs.dir): Add hook_data argument.
+
+       Update all implementations and callers.
+
+2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
+
+       * docs/grub.texi (Multi-boot manual config): Fix typo for
+       "recommended".
+
+2013-01-20  Leif Lindholm  <leif.lindholm@arm.com>
+
+       * util/grub-mkimage.c (main): Postpone freeing arguments.output
+       until after its use in generate_image.
+
+2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
+       initrd size to addr_min, since the initrd will be allocated after
+       this address.
+
+2013-01-20  Andrey Borzenkov <arvidjaar@gmail.com>
+
+       * conf/Makefile.common: Fix autogen rules to pass definition
+       files on stdin; Makefile.util.am needs Makefile.utilgcry.def
+
+2013-01-20  Leif Lindholm  <leif.lindholm@arm.com>
+
+       * include/grub/elf.h: Update ARM definitions based on binutils.
+
+2013-01-20  Aleš Nesrsta  <starous@volny.cz>
+
+       Split long USB transfers into short ones.
+
+2013-01-20  Andrey Borzenkov <arvidjaar@gmail.com>
+
+       * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
+       is interrupted by ESC.
+
+2013-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-script-check.c (main): Uniform the error message.
+
+2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
+
+       Remove nested functions from ELF iterators.
+
+2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
+
+       Remove nested functions from device iterators.
+
+       * 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.
+
+2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
+
+       Fix typos for "developer" and "development".
+
+2013-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Add license header to spkmodem-recv.c.
+
+2013-01-17  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Rewrite spkmodem to use PIT for timing. Double the speed.
+
+2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Add new command pcidump.
+
+2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       New terminal outputs using serial: morse and spkmodem.
+
+2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Improve bidi handling in entry editor.
+
+2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
+       argument to prevent name collision.
+
+2013-01-15  Colin Watson  <cjwatson@ubuntu.com>
+
+       Remove nested functions from script reading and parsing.
+
+       * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
+       getline_data argument, passed to getline.
+       * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
+       getline_data argument, passed to grub_parser_split_cmdline.
+       * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
+       lexerstate->getline_data to lexerstate->getline.
+       (grub_script_lexer_init): Add getline_data argument, saved in
+       lexerstate->getline_data.
+       * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
+       argument, passed to grub_script_parse.
+       * grub-core/script/script.c (grub_script_parse): Add getline_data
+       argument, passed to grub_script_lexer_init.
+       * include/grub/parser.h (grub_parser_split_cmdline): Update
+       prototype.  Update all callers to pass appropriate getline data.
+       (struct grub_parser.parse_line): Likewise.
+       (grub_rescue_parse_line): Likewise.
+       * include/grub/reader.h (grub_reader_getline_t): Add void *
+       argument.
+       * include/grub/script_sh.h (struct grub_lexer_param): Add
+       getline_data member.
+       (grub_script_parse): Update prototype.  Update all callers to pass
+       appropriate getline data.
+       (grub_script_lexer_init): Likewise.
+       (grub_normal_parse_line): Likewise.
+
+       * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
+       data argument.
+       * grub-core/kern/parser.c (grub_parser_execute: getline): Make
+       static instead of nested.  Rename to ...
+       (grub_parser_execute_getline): ... this.
+       * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
+       data argument.
+       * grub-core/normal/main.c (read_config_file: getline): Make static
+       instead of nested.  Rename to ...
+       (read_config_file_getline): ... this.
+       (grub_normal_read_line): Add unused data argument.
+       * grub-core/script/execute.c (grub_script_execute_sourcecode:
+       getline): Make static instead of nested.  Rename to ...
+       (grub_script_execute_sourcecode_getline): ... this.
+       * util/grub-script-check.c (main: get_config_line): Make static
+       instead of nested.
+
+2013-01-15  Colin Watson  <cjwatson@ubuntu.com>
+
+       Remove nested functions from memory map iterators.
+
+       * 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.
+
+2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
+       delimit path in strings using quotes.
+       * util/getroot.c (grub_guess_root_devices): Likewise.
+       (grub_make_system_path_relative_to_its_root): Likewise.
+       * util/grub-probe.c (probe): Likewise.
+       * util/ieee1275/ofpath.c (find_obppath): Likewise.
+       (xrealpath): Likewise.
+
+2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Fix compilation with older compilers.
+
+       * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
+       * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
+       declarations.
+       * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
+       * grub-core/lib/posix_wrap/sys/types.h: Add common types.
+       * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
+       identifier with b.
+       * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
+       * include/grub/crypto.h: Add type defines.
+       * util/import_gcrypth.sed: Remove duplicate type defines.
+
+2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       New command list_trusted.
+
+       * grub-core/commands/verify.c (grub_cmd_list): New function.
+
+2013-01-13  Colin Watson  <cjwatson@ubuntu.com>
+
+       * util/grub-mkimage.c (generate_image): Fix "size of public key"
+       info message.
+
+2013-01-13  Colin Watson  <cjwatson@ubuntu.com>
+
+       Remove nested functions from PCI iterators.
+
+       * 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.
+
+2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/verify.c: Mark messages for translating.
+
+2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
+       fatal.
+
+2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
+       fatal.
+
+2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * autogen.sh: Do not try to delete nonexistant files.
        * util/import_gcrypth.sed: Add some missing header removals.