1 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3 Make color variables global instead of it being per-terminal.
5 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
10 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
12 Fix powerpc and sparc64 build failures caused by un-nesting memory
15 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
17 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
18 parameter declarations.
20 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
24 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26 Improve spkmomdem reliability by adding a separator between bytes.
28 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
30 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
31 an Acer registration utility with several sightings in the wild.
32 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
34 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
36 Remove nested functions from filesystem directory iterators.
38 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
39 (struct grub_fs.dir): Add hook_data argument.
41 Update all implementations and callers.
43 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
45 * docs/grub.texi (Multi-boot manual config): Fix typo for
48 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
50 * util/grub-mkimage.c (main): Postpone freeing arguments.output
51 until after its use in generate_image.
53 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
55 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
56 initrd size to addr_min, since the initrd will be allocated after
59 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
61 * conf/Makefile.common: Fix autogen rules to pass definition
62 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
64 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
66 * include/grub/elf.h: Update ARM definitions based on binutils.
68 2013-01-20 Aleš Nesrsta <starous@volny.cz>
70 Split long USB transfers into short ones.
72 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
74 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
75 is interrupted by ESC.
77 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
79 * util/grub-script-check.c (main): Uniform the error message.
81 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
83 Remove nested functions from ELF iterators.
85 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
87 Remove nested functions from device iterators.
89 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
90 (grub_arc_iterate_devs): Add hook_data argument.
91 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
92 (struct grub_ata_dev.iterate): Add hook_data argument.
93 * include/grub/device.h (grub_device_iterate_hook_t): New type.
94 (grub_device_iterate): Add hook_data argument.
95 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
96 (struct grub_disk_dev.iterate): Add hook_data argument.
97 (grub_disk_dev_iterate): Likewise.
98 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
100 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
102 * include/grub/partition.h (grub_partition_iterate_hook_t): New
104 (struct grub_partition_map.iterate): Add hook_data argument.
105 (grub_partition_iterate): Likewise.
106 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
107 (struct grub_scsi_dev.iterate): Add hook_data argument.
111 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
113 Fix typos for "developer" and "development".
115 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
117 Add license header to spkmodem-recv.c.
119 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
121 Rewrite spkmodem to use PIT for timing. Double the speed.
123 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
125 Add new command pcidump.
127 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
129 New terminal outputs using serial: morse and spkmodem.
131 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
133 Improve bidi handling in entry editor.
135 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
137 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
138 argument to prevent name collision.
140 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
142 Remove nested functions from script reading and parsing.
144 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
145 getline_data argument, passed to getline.
146 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
147 getline_data argument, passed to grub_parser_split_cmdline.
148 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
149 lexerstate->getline_data to lexerstate->getline.
150 (grub_script_lexer_init): Add getline_data argument, saved in
151 lexerstate->getline_data.
152 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
153 argument, passed to grub_script_parse.
154 * grub-core/script/script.c (grub_script_parse): Add getline_data
155 argument, passed to grub_script_lexer_init.
156 * include/grub/parser.h (grub_parser_split_cmdline): Update
157 prototype. Update all callers to pass appropriate getline data.
158 (struct grub_parser.parse_line): Likewise.
159 (grub_rescue_parse_line): Likewise.
160 * include/grub/reader.h (grub_reader_getline_t): Add void *
162 * include/grub/script_sh.h (struct grub_lexer_param): Add
164 (grub_script_parse): Update prototype. Update all callers to pass
165 appropriate getline data.
166 (grub_script_lexer_init): Likewise.
167 (grub_normal_parse_line): Likewise.
169 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
171 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
172 static instead of nested. Rename to ...
173 (grub_parser_execute_getline): ... this.
174 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
176 * grub-core/normal/main.c (read_config_file: getline): Make static
177 instead of nested. Rename to ...
178 (read_config_file_getline): ... this.
179 (grub_normal_read_line): Add unused data argument.
180 * grub-core/script/execute.c (grub_script_execute_sourcecode:
181 getline): Make static instead of nested. Rename to ...
182 (grub_script_execute_sourcecode_getline): ... this.
183 * util/grub-script-check.c (main: get_config_line): Make static
186 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
188 Remove nested functions from memory map iterators.
190 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
191 argument, passed to hook.
192 * grub-core/kern/i386/coreboot/mmap.c
193 (grub_linuxbios_table_iterate): Likewise.
194 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
196 (grub_machine_mmap_iterate): Add hook_data argument.
197 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
198 Add hook_data argument, passed to hook.
199 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
201 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
203 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
205 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
207 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
209 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
211 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
212 (grub_machine_mmap_iterate): Likewise.
213 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
214 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
216 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
217 Remove NESTED_FUNC_ATTR from here and from all users.
218 (grub_mmap_iterate): Update prototype.
219 (grub_efi_mmap_iterate): Update prototype. Update all callers to
220 pass appropriate hook data.
221 (grub_machine_mmap_iterate): Likewise.
223 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
224 static instead of nested.
225 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
227 (lsmmap_hook): ... this.
228 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
230 (grub_efiemu_mmap_fill: fill_hook): Likewise.
231 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
232 heap_init): Likewise.
233 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
235 (mmap_iterate_hook): ... this.
236 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
238 * grub-core/lib/ieee1275/relocator.c
239 (grub_relocator_firmware_get_max_events: count): Likewise.
240 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
242 (grub_relocator_firmware_fill_events_iter): ... this.
243 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
244 hook): Likewise. Rename to ...
245 (grub_relocator_alloc_chunk_align_iter): ... this.
246 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
248 (generate_e820_mmap_iter): ... this.
249 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
251 (count_hook): ... this.
252 (grub_linux_boot: hook): Likewise. Rename to ...
253 (grub_linux_boot_mmap_find): ... this.
254 (grub_linux_boot: hook_fill): Likewise. Rename to ...
255 (grub_linux_boot_mmap_fill): ... this.
256 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
257 hook): Likewise. Rename to ...
258 (grub_fill_multiboot_mmap_iter): ... this.
259 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
260 hook): Likewise. Rename to ...
261 (count_hook): ... this.
262 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
263 hook): Likewise. Rename to ...
264 (grub_fill_multiboot_mmap_iter): ... this.
265 * grub-core/loader/powerpc/ieee1275/linux.c
266 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
267 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
268 Likewise. Rename to ...
269 (alloc_phys_choose): ... this.
270 (determine_phys_base: get_physbase): Likewise.
271 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
272 find_hook): Likewise.
273 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
274 (malloc_hook: count_hook): Likewise.
275 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
276 Likewise. Rename to ...
277 (lower_hook): ... this.
278 (grub_mmap_get_upper: hook): Likewise. Rename to ...
279 (upper_hook): ... this.
280 (grub_mmap_get_post64: hook): Likewise. Rename to ...
281 (post64_hook): ... this.
282 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
283 Likewise. Rename to ...
284 (lower_hook): ... this.
285 (grub_mmap_get_upper: hook): Likewise. Rename to ...
286 (upper_hook): ... this.
287 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
288 (grub_mmap_iterate: fill_hook): Likewise.
289 (fill_mask): Pass addr and mask within a single struct.
290 (grub_cmd_badram: hook): Make static instead of nested. Rename
292 (badram_iter): ... this.
293 (grub_cmd_cutmem: hook): Likewise. Rename to ...
294 (cutmem_iter): ... this.
296 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
298 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
299 delimit path in strings using quotes.
300 * util/getroot.c (grub_guess_root_devices): Likewise.
301 (grub_make_system_path_relative_to_its_root): Likewise.
302 * util/grub-probe.c (probe): Likewise.
303 * util/ieee1275/ofpath.c (find_obppath): Likewise.
304 (xrealpath): Likewise.
306 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
308 Fix compilation with older compilers.
310 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
311 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
313 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
314 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
315 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
317 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
318 * include/grub/crypto.h: Add type defines.
319 * util/import_gcrypth.sed: Remove duplicate type defines.
321 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
323 New command list_trusted.
325 * grub-core/commands/verify.c (grub_cmd_list): New function.
327 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
329 * util/grub-mkimage.c (generate_image): Fix "size of public key"
332 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
334 Remove nested functions from PCI iterators.
336 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
337 passed to hook. Update all callers to pass appropriate hook data.
338 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
339 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
340 Remove NESTED_FUNC_ATTR from here and from all users.
341 (grub_pci_iterate): Update prototype.
342 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
343 instead of nested. Rename to ...
344 (grub_cs5536_find_iter): ... this.
345 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
346 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
348 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
350 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
352 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
354 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
355 * grub-core/video/radeon_fuloong2e.c
356 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
357 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
358 find_card): Likewise.
359 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
362 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
364 * grub-core/commands/verify.c: Mark messages for translating.
366 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
368 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
371 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
373 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
376 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
378 * autogen.sh: Do not try to delete nonexistant files.
379 * util/import_gcrypth.sed: Add some missing header removals.
381 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
383 Clean up dangling references to grub-setup.
384 Fixes Ubuntu bug #1082045.
386 * docs/grub.texi (Images): Refer generally to grub-install rather
387 than directly to grub-setup.
388 (Installing GRUB using grub-install): Remove direct reference to
390 (Device map) Likewise.
391 (Invoking grub-install): Likewise.
392 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
393 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
394 * util/grub-install.in (usage): Likewise.
396 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
397 Apply to grub-bios-setup and grub-sparc64-setup rather than to
399 * configure.ac: Remove grub_setup output variable.
401 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
403 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
404 grub-setup to grub-sparc64-setup.
406 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
408 Import gcrypt public-key cryptography and implement signature checking.
410 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
412 * grub-core/fs/ntfs.c: Ue more appropriate types.
413 * grub-core/fs/ntfscomp.c: Likewise.
414 * include/grub/ntfs.h: Likewise.
416 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
418 Support Apple FAT binaries on non-Apple platforms.
420 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
421 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
423 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
426 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
428 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
431 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
433 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
434 explicitly zeroing elements.
435 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
436 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
437 of elements in a structure already allocated using grub_zalloc.
438 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
440 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
442 * docs/grub.texi (grub_cpu): New subsection.
443 (grub_platform): Likewise.
445 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
447 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
449 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
451 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
454 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
456 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
457 * grub-core/fs/ntfscomp.c: Likewise.
458 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
459 (grub_ntfs_comp): Likewise.
461 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
463 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
465 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
466 of groups_per_block. All users updated.
468 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
470 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
472 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
473 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
475 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
477 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
479 Reported by: Yuta Satoh.
481 2013-01-03 Yuta Satoh <nigoro>
483 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
486 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
488 * configure.ac: Extend -Wno-trampolines to host.
490 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
492 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
495 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
497 * docs/grub.texi (Invoking grub-mkrelpath): New section.
498 (Invoking grub-script-check): Likewise.
500 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
502 * docs/grub.texi (Invoking grub-mount): New section.
503 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
505 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
507 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
508 test failures, so that a failing unit test correctly causes 'make
511 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
513 Fix failing printf test.
515 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
516 '$' in the correct order when collecting type information.
518 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
520 * docs/grub.texi (configfile): Explain environment variable
522 (source): New section.
523 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
525 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
527 Remove several trivially-unnecessary uses of nested functions.
529 * grub-core/commands/i386/pc/sendkey.c
530 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
532 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
534 (legacy_file_getline): ... this.
535 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
537 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
538 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
540 (probe_dummy_iter): ... this.
541 * grub-core/kern/i386/coreboot/mmap.c
542 (grub_linuxbios_table_iterate: check_signature): Likewise.
543 * grub-core/kern/parser.c (grub_parser_split_cmdline:
544 check_varstate): Likewise. Mark inline.
545 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
546 an additional parameter.
547 (find_long: fnd_long): Likewise. Pass two additional parameters.
548 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
549 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
550 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
551 Likewise. Rename to ...
552 (grub_cmos_find_port_iter): ... this.
553 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
555 (find_rtc_iter): ... this.
557 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
558 function directly into the function body, since it is only called
561 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
563 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
564 __attribute__ ((unused)).
565 * grub-core/video/bochs.c (find_card): Likewise.
566 * grub-core/video/cirrus.c (find_card): Likewise.
567 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
568 * grub-core/video/sis315pro.c (find_card): Likewise.
569 * grub-core/video/sm712.c (find_card): Likewise.
571 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
573 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
574 Fixes Savannah bug #37821.
576 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
578 Apply program name transformations at build-time rather than at
579 run-time. Fixes Debian bug #696465.
581 * acinclude.m4 (grub_TRANSFORM): New macro.
582 * configure.ac: Create output variables with transformed names for
584 * util/bash-completion.d/grub-completion.bash.in: Use
585 pre-transformed variables for program names.
586 * util/grub-install.in: Likewise.
587 * util/grub-kbdcomp.in: Likewise.
588 * util/grub-mkconfig.in: Likewise.
589 * util/grub-mkconfig_lib.in: Likewise.
590 * util/grub-mknetdir.in: Likewise.
591 * util/grub-mkrescue.in: Likewise.
592 * util/grub-mkstandalone.in: Likewise.
593 * util/grub-reboot.in: Likewise.
594 * util/grub-set-default.in: Likewise.
595 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
596 * tests/util/grub-shell-tester.in: Remove unused assignment.
597 * tests/util/grub-shell.in: Likewise.
598 * util/grub.d/00_header.in: Likewise.
600 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
602 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
604 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
606 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
608 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
610 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
611 Reported by: Eriks Latosheks <foresterlv>.
613 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
615 * docs/grub.texi (Network): Update instructions on generating netboot
618 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
620 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
621 around device name if necessarry.
623 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
625 * util/grub-install.in: Follow the symbolic link parameter added
628 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
630 * util/grub-install.in: Remove stale TODO.
632 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
634 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
635 dynamic allocation for the bootpath buffer.
637 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
639 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
642 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
644 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
645 argument rather than font name. All users updated.
646 (grub_gfxterm_set_window): Likewise.
648 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
650 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
653 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
655 * util/getroot.c (convert_system_partition_to_system_disk): Support
658 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
660 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
661 infinite loop on corrupted FS.
663 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
665 Fix big-endian mtime.
667 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
668 together sec and usec.
669 (grub_ufs_dir): Use correct byteswapping for UFS time.
671 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
673 Support big-endian UFS1.
675 * Makefile.util.def (libgrubmods): Add ufs_be.c
676 * grub-core/Makefile.core.def (ufs1_be): New module.
677 * grub-core/fs/ufs_be.c: New file.
678 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
681 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
683 * include/grub/types.h: Fix functionality unaffecting typo in
684 GRUB_TARGET_WORDSIZE conditional macro.
686 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
688 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
690 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
692 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
693 that /netbsd appears first (when it exists).
695 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
697 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
698 Fixes Savannah bug #37558.
700 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
702 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
703 description of extract_entries_configfile.
705 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
707 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
709 (grub_cmd_linux): Likewise.
710 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
711 preferred_lifetime. Update all users.
713 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
715 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
716 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
718 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
720 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
721 errors from grub-probe to /dev/null, not stdout.
723 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
725 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
728 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
730 * util/grub-install.in: Make the error message if $source_dir
731 doesn't exist more useful.
733 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
735 Fix grub-emu build on FreeBSD.
737 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
738 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
740 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
741 implementation is currently Linux-specific.
742 * util/getroot.c (exec_pipe): Define only on Linux or when either
743 libzfs or libnvpair is unavailable.
744 (find_root_devices_from_poolname): Remove unused path variable.
746 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
748 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
749 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
750 should fit before end == 63.
752 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
754 * util/grub-setup.c (write_rootdev): Remove unused core_img
755 parameter. Update all callers.
756 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
757 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
760 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
762 * util/grub-mkconfig_lib.in (grub_tab): New variable.
763 (grub_add_tab): New function.
764 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
765 * util/grub.d/10_illumos.in: Likewise.
766 * util/grub.d/10_kfreebsd.in: Likewise.
767 * util/grub.d/10_linux.in: Likewise.
768 * util/grub.d/10_netbsd.in: Likewise.
769 * util/grub.d/10_windows.in: Likewise.
770 * util/grub.d/10_xnu.in: Likewise.
771 * util/grub.d/20_linux_xen.in: Likewise.
772 * util/grub.d/30_os-prober.in: Likewise.
774 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
776 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
777 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
778 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
779 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
780 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
782 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
783 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
785 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
787 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
789 Reported by: BURETTE, Bernard.
791 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
793 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
796 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
798 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
799 IEEE1275 machines. Fixes powerpc-emu compilation.
800 * include/grub/terminfo.h: Likewise.
802 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
804 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
806 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
808 (efiemu_set_variable): Make vendor_guid a const pointer.
810 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
812 Don't require grub-mkconfig_lib to generate manpages for programs.
814 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
815 dependencies, don't add grub-mkconfig_lib.
816 (program): Pass empty adddeps.
817 (script): Pass grub-mkconfig_lib as adddeps.
819 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
821 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
822 * util/getroot.c (grub_find_device): Likewise.
823 (get_mdadm_uuid): Likewise.
824 (grub_util_is_imsm): Likewise.
825 (grub_util_pull_device): Likewise.
826 * util/grub-probe.c (probe): Likewise.
828 2012-09-10 Benoit Gschwind <gschwind>
830 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
831 (devs): Add devpath_8.
833 2012-09-08 Peter Jones <pjones@redhat.com>
835 * grub-core/Makefile.core.def (efifwsetup): New module.
836 * grub-core/commands/efi/efifwsetup.c: New file.
837 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
838 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
840 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
842 2012-09-05 Jiri Slaby <jslaby@suse.cz>
844 * configure.ac: Add SuSe path.
846 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
850 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
852 * util/import_gcry.py: Sort cipher_files, to make build system
853 generation more deterministic.
855 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
857 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
858 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
859 (grub_set_datetime): Likewise.
861 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
863 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
866 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
868 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
870 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
872 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
874 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
876 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
877 required for checkouts from bzr, but it may be useful for users or
878 distributors wishing to update translations against a tarball
879 distribution, and it can be helpful for the tarball to be a superset
882 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
884 * Makefile.am (EXTRA_DIST): Add
885 grub-core/tests/boot/linux.init-mips.S,
886 grub-core/tests/boot/linux.init-ppc.S, and
887 grub-core/tests/boot/linux-ppc.cfg.
889 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
891 * grub-core/mmap/mips/loongson: Remove empty directory.
893 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
895 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
898 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
900 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
903 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
905 * configure.ac: Strengthen the test for working -nostdinc -isystem.
907 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
909 * po/POTFILES.in: Regenerated.
911 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
913 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
914 (NetBSD): New subsection.
916 2012-07-22 Ales Nesrsta <starous@volny.cz>
918 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
919 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
921 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
923 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
924 * util/grub.d/10_hurd.in: Add missing quoting.
925 * util/grub.d/10_illumos.in: Likewise.
926 * util/grub.d/10_kfreebsd.in: Likewise.
927 * util/grub.d/10_linux.in: Likewise.
928 * util/grub.d/20_linux_xen.in: Likewise.
930 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
934 * grub-core/Makefile.core.def (lsefi): New module.
935 * grub-core/commands/efi/lsefi.c: New file.
936 * include/grub/efi/api.h: Add more GUIDs.
938 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
940 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
941 (grub_bsd_elf32_hook): Likewise.
942 (grub_bsd_elf64_size_hook): Likewise.
943 (grub_bsd_elf64_hook): Likewise.
944 (grub_bsd_load_elf): Likewise.
946 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
948 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
949 if hash function is unavailable.
950 (dec_stream_header): Likewise.
952 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
954 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
957 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
959 Fix coreboot compilation.
961 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
962 (grub_vga_text_init_real): ... this.
963 (grub_vga_text_fini): Rename to ...
964 (grub_vga_text_fini_real): ... this.
966 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
968 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
970 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
972 * grub-core/lib/legacy_parse.c: Support clear and testload.
974 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
976 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
978 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
980 * grub-core/fs/ext2.c: Experimental support for 64-bit.
982 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
984 * grub-core/net/tftp.c (ack): Fix endianness problem.
985 (tftp_receive): Likewise.
986 Reported by: Michael Davidsaver.
988 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
990 * gentpl.py: Make mans depend on grub-mkconfig_lib.
992 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
994 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
995 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
996 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
998 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1000 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1002 Reported by: Stuart Hayes.
1004 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1006 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1008 * grub-core/Makefile.core.def (mda_text): New module.
1009 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1010 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1011 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1012 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1014 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1015 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1016 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1018 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1020 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1022 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1024 * grub-core/term/i386/vga_common.c: Removed.
1025 * include/grub/i386/vga_common.h: Likewise.
1026 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1027 (grub_vga_cr_bw_read): Likewise.
1028 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1029 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1030 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1031 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1032 grub_vga_cr_read/grub_vga_cr_write.
1033 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1035 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1037 * configure.ac: Bump version to 2.00.
1038 * grub-core/normal/main.c (features): Add feature_200_final.
1040 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1041 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1043 * NEWS: Fix unclarity and language mistakes.
1045 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1047 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1048 additional size to 3 pages.
1049 Reported by: Stuart Hayes.
1051 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1053 * NEWS: Add 2.00 entry.
1055 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1057 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1058 put explicit "/" for empty path.
1059 (wildcard_expand): Improve dprintf.
1061 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1063 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1064 it's equal to currnode. This can happen with "" symlink.
1066 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1068 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1069 echo shell command by printf command.
1071 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1073 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1074 the value returned by firmware is the maximal position, not diumension.
1075 (grub_terminfo_output_state): Use a more sane fallback.
1077 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1079 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1081 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1083 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1084 frequency to 150 MHz.
1086 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1090 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1092 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1094 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1096 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1098 Handle slash in HFS label.
1100 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1101 (grub_hfs_dir): Tanslate slash.
1102 (grub_hfs_label): Don't translate slash.
1104 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1106 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1107 network protocol listing since it introduces problematic dependency on
1110 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1112 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1114 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1116 Init video early on yeeloong to avoid being rebooted by watchdog.
1118 * grub-core/Makefile.am (gensm712): New target.
1119 (sm712_start.S): Likewise.
1120 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1121 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1122 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1124 * include/grub/vga.h: Move registry definitions to...
1125 * include/grub/vgaregs.h: ... here.
1127 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1129 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1132 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1134 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1135 platforms with firmware disk drivers in the core.
1137 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1139 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1140 informative verbose message.
1141 (read_lv): Handle 64-bit segment size.
1143 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1145 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1147 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1149 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1150 character but still remove trainling spaces.
1151 (grub_fat_label): Ignore archive flag.
1153 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1155 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1156 cast between linux_kernel_header and linux_kernel_params.
1158 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1160 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1162 (grub_raid6_recover_func_t): Likewise.
1163 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1164 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1166 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1168 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1170 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1174 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1175 [__NetBSD__]: Add explicit cast before bitshift.
1177 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1179 * configure.ac: Bump to 2.00~rc1.
1181 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1183 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1186 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1187 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1189 * docs/grub.texi: Fix search syntax.
1190 (Multi-boot manual config): Put msdos rather than GPT example.
1191 Grammar corrections.
1193 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1195 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1197 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1199 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1201 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1203 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1204 message on double free. Put the value of magic in case of mismatch.
1206 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1208 Speed-up video on yeeloong.
1210 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1212 (grub_video_sm712_video_fini): Unmap cached_ptr.
1213 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1214 (grub_video_sm712_set_active_render_target): Removed.
1215 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1216 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1219 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1221 Avoid flushing the same line multiple times on loongson.
1223 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1224 Step in 32 bytes and not 1 byte.
1225 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1228 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1230 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1233 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1235 Implement flow control for http.
1237 * grub-core/net/http.c (parse_line): Handle response 206.
1238 (http_receive): Stall if too many packets are in the queue.
1239 (http_establish): Fix range header.
1240 (http_seek): Fix double free.
1241 (http_close): Likewise.
1242 (http_packets_pulled): New function.
1243 (grub_http_protocol): Set http_seek
1244 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1245 (ack_real): Set window depending on i_stall.
1246 (grub_net_send_tcp_packet): Likewise.
1247 (grub_net_tcp_stall): New function.
1248 (grub_net_tcp_unstall): Likewise.
1249 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1250 (grub_net_tcp_unstall): Likewise.
1252 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1254 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1256 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1258 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1260 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1262 * tests/util/grub-shell.in: Fix a typo.
1264 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1266 Implement flow control for tftp.
1268 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1269 packets but stop only if stop condition is satisfied.
1270 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1271 `stall' instead of `eof' as stop condition.
1272 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1273 (http_err): Likewise.
1274 * grub-core/net/tftp.c (ack): Replace the first argument with data
1276 (tftp_receive): Stall if too many packets are in wait queue.
1277 (tftp_packets_pulled): New function.
1278 (grub_tftp_protocol): Set packets_pulled.
1279 * include/grub/net.h (grub_net_packets): New field count.
1280 (grub_net_put_packet): Increment count.
1281 (grub_net_remove_packet): Likewise.
1282 (grub_net_app_protocol): New field `packets_pulled'.
1283 (grub_net): New field `stall'.
1285 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1287 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1288 sync part to handle them.
1290 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1292 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1293 * grub-core/net/drivers/ieee1275/ofnet.c
1294 (grub_ieee1275_net_config_real): Likewise.
1296 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1298 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1299 the direct route for server/gateway.
1301 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1303 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1304 IP address to server name since we may not hame the DNS.
1306 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1308 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1309 freeing random buffer on failure.
1310 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1312 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1314 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1316 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1318 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1320 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1321 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1322 Handle malloc error correctly.
1324 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1326 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1329 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1331 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1334 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1336 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1337 none is explicitly specified.
1339 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1341 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1344 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1346 Respect netmask from bootp/dhcp.
1348 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1349 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1350 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1352 (grub_net_add_ipv4_local): ... this.
1353 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1354 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1355 (grub_net_add_ipv4_local): New proto.
1357 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1359 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1360 determining EFI memory map size.
1362 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1364 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1366 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1368 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1369 when looking for partition separator.
1371 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1373 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1376 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1378 Restructure FAT driver to avoid hook in label reading as it hits a
1381 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1382 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1383 (grub_fat_iterate_dir): Split into ...
1384 (grub_fat_iterate_init): ... this, ...
1385 (grub_fat_iterate_fini): ... this, ...
1386 (grub_fat_iterate_dir_next): ... and this. All users updated.
1388 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1390 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1391 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1392 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1393 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1394 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1395 New fields last_key and last_key_time.
1396 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1397 extended key-esc into extended key-extended key.
1399 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1401 Avoid unnecessary memcpy of whole video buffer.
1403 * grub-core/video/fb/video_fb.c (dirty): New struct.
1404 (framebuffer): Add members current_dirty and previous_dirty.
1405 (dirty): New function.
1406 (grub_video_fb_fill_rect): Update dirty.
1407 (common_blitter): Likewise.
1408 (grub_video_fb_scroll): Likewise.
1409 (doublebuf_blit_update_screen): Copy only dirty part.
1410 (doublebuf_pageflipping_update_screen): Likewise.
1411 (grub_video_fb_doublebuf_blit_init): Init dirty.
1412 (doublebuf_pageflipping_init): Likewise.
1413 (grub_video_fb_setup): Likewise.
1415 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1417 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1420 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1422 Fix wildcard regexp dot and other special characters handling.
1423 Reported by: Robert Mabee.
1425 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1426 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1427 (split_path): Trigger expansion on '?'.
1428 (unescape): New function.
1429 (wildcard_expand): Unescape parts copied without globbing.
1430 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1431 (grub_script_arglist_to_argv): Don't unescape expansions.
1433 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1435 * include/grub/net.h (grub_net_card): New member txbufsize.
1436 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1437 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1438 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1439 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1441 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1442 compatible property to check for macs. Set
1443 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1444 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1445 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1446 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1447 (send_card_buffer): Use txbuf.
1448 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1449 nested function out of the parent while on it.
1451 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1453 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1455 (grub_ieee1275_net_config_real): Fix config pointer.
1457 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1459 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1460 filename parsing to non-block devices.
1462 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1464 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1466 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1468 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1471 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1473 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1474 UUID search command even if hints probing failed.
1476 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1478 * po/POTFILES.in: Regenerated.
1480 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1482 Speed-up video on fuloong.
1484 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1486 (grub_pci_device_unmap_range): Handle non-cached address.
1487 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1489 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1490 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1491 (grub_video_sis315pro_set_active_render_target): Removed.
1492 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1493 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1494 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1496 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1499 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1501 * docs/grub.texi (Multi-boot manual config): New section.
1503 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1505 Avoid slow read-back from VRAM.
1507 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1509 * grub-core/video/fb/video_fb.c
1510 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1511 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1512 (front_target): Remove front_target. Add pages.
1513 (grub_video_fb_init): Skip setting front_pages.
1514 (grub_video_fb_fini): Likewise.
1515 (doublebuf_blit_update_screen): Use pages.
1516 (grub_video_fb_doublebuf_blit_init): Likewise.
1517 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1518 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1519 (grub_video_fb_setup): Prefer doublebuffing.
1521 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1523 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1526 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1530 * tests/util/grub-shell.in: Handle loongson.
1531 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1533 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1534 Reboot instead of shutdown if REBOOT is defined.
1536 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1538 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1539 sized ports since unlike on real hardware qemu supports only 32-bit
1542 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1544 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1545 * util/grub-mkrescue.in: Handle loongson.
1547 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1549 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1550 Set is_part appropriately.
1551 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1552 names. Canonicalize partition without full disk.
1554 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1556 Revert usb-quiesce since it's wrong.
1558 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1559 (grub_ofdisk_init): Don't do quiesce.
1561 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1563 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1564 PowerMac workaround to Xserves as well.
1565 Information supplied by: Benjamin Herrenschmidt.
1567 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1569 Don't assume that beginning address is also the entry point on ppc.
1571 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1572 (grub_linux_boot): Use linux_entry.
1573 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1574 (grub_linux_load64): Likewise.
1576 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1578 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1580 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1582 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1583 needlessly lose the console.
1585 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1587 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1590 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1592 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1593 than current grub_get_rtc() not implemented when booted with
1594 coreboot without TSC.
1596 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1597 Add machine/time.h to kernel headers on loongson.
1598 * grub-core/Makefile.core.def (kernel): Remove
1599 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1600 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1601 (grub_get_rtc): Likewise.
1602 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1603 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1604 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1605 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1606 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1607 rather than installing known non-working time source.
1608 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1609 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1610 * include/grub/time.h: Don't include machine/time.h.
1611 * include/grub/efi/time.h: Removed.
1612 * include/grub/i386/efi/time.h: Likewise.
1613 * include/grub/i386/ieee1275/time.h: Likewise.
1614 * include/grub/powerpc/ieee1275/time.h: Likewise.
1615 * include/grub/sparc64/ieee1275/time.h: Likewise.
1616 * include/grub/x86_64/efi/time.h: Likewise.
1618 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1620 Remove dot on i and j when combining with above diacritics.
1622 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1624 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1625 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1626 with dotless variants when any combining above is present.
1628 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1630 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1631 text and not binary.
1633 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1635 Stop polling as soon as we have the packet we were waiting for.
1637 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1639 * grub-core/net/arp.c (have_pending): New var.
1640 (pending_req): Likewise.
1641 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1643 (grub_net_arp_receive): Set have_pending.
1644 * grub-core/net/dns.c (recv_data): New field stop.
1645 (recv_hook): Set stop.
1646 (grub_net_dns_lookup): Init stop and use as stop condition.
1647 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1649 * grub-core/net/net.c (grub_net_poll_cards): New argument
1650 stop_condition. Stop when it goes true.
1651 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1653 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1655 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1657 Keep TX and RX buffers on EFI rather than always allocate new ones.
1659 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1660 card. All users updated.
1661 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1662 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1663 (get_card_packet): Likewise.
1664 (grub_efinet_findcards): Init new fields.
1666 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1668 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1669 compilation error on sparc64.
1671 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1673 Use ITC on IA64 rather than broken routine based on daytime.
1675 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1677 (grub_get_rtc) [__ia64__]: Likewise.
1678 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1679 (get_itc): New function.
1680 (grub_rtc_get_time_ms): Likewise.
1681 (grub_machine_init): Calibrate ITC.
1682 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1683 Keep only on non-ia64. Don't export since it's broken and used only
1684 if TSC is unavailable.
1686 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1688 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1690 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1691 Skip if parent is unused.
1693 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1695 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1697 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1699 Fix wildcard escaping.
1701 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1702 * grub-core/script/execute.c (wildcard_escape): .. to here.
1704 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1705 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1707 * grub-core/script/execute.c (gettext_append): Always escape.
1708 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1709 * grub-core/script/yylex.l: Don't cut away the escaping.
1710 * tests/grub_script_echo1.in: Add tests with wildcard.
1712 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1714 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
1715 (ftdi_hw_configure): Likewise.
1716 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
1718 (real_config): Handle 1.5 stop bits.
1719 (pl2303_hw_configure): Likewise.
1721 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1723 * Makefile.am: Add ppc linux bootcheck.
1724 * grub-core/tests/boot/linux-ppc.cfg: New file.
1725 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
1727 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1729 * tests/grub_script_expansion.in: Skip network protocols.
1731 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1733 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
1735 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1737 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
1741 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1743 ESCC serial driver for conducting sautomated tests in qemu.
1744 Not tested on real hardware.
1746 * include/grub/serial.h (grub_serial_port): New field escc_desc.
1747 * grub-core/term/ieee1275/escc.c: New file.
1748 * grub-core/Makefile.core.def (escc): New module.
1750 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1752 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
1754 (serial_hw_fetch): Don't read invalid handle.
1755 (serial_hw_put): Don't write into invalid handle.
1757 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1759 Add a 1.5 stop bits value.
1761 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
1762 * include/grub/serial.h (grub_serial_stop_bits_t): Add
1763 GRUB_SERIAL_STOP_BITS_1_5.
1765 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1767 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
1768 value rather than let it uninited.
1770 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1772 * grub-core/commands/wildcard.c (+check_file): New function.
1773 (wildcard_expand): Don't expand to non-existing files, expand with
1774 suffix and not attempt to expand if not needed.
1776 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1778 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
1779 out of partitions containing other partitions.
1781 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1783 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
1784 on some qemu versions with GRUB.
1786 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
1788 (grub_openbsd_bootarg_pcibios): New struct.
1789 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
1792 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1794 * tests/util/grub-shell.in: Trim firmware output on EFI.
1796 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1798 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
1799 and coreboot since it's already in kernel.
1801 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1803 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
1804 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1805 to here. New return value start. All users updated.
1806 Recursively scan linear mappings.
1807 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
1809 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1810 Use grub_util_get_dm_node_linear_info.
1811 * util/getroot.c (convert_system_partition_to_system_disk): Use
1812 grub_util_info rather than grub_dprintf.
1813 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
1815 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1817 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
1819 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
1820 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
1822 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1824 * include/grub/types.h (grub_set_unaligned64): New function.
1825 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
1828 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1830 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
1831 (grub_ofdisk_fini): Quiesce USB devices.
1833 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1835 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
1838 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1840 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
1842 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1844 * grub-core/disk/pata.c (grub_pata_pio_read)
1845 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
1846 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1848 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1850 Extend automated tests to qemu-mips.
1852 * Makefile.am: reorganise tests and enable qemu-mips.
1853 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
1854 * grub-core/tests/boot/linux.init-mips.S: New file.
1855 * tests/partmap_test.in: Handle ata0 disks.
1856 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
1859 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1861 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
1863 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
1866 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1868 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
1869 (grub_halt): Likewise.
1870 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
1872 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1874 * grub-core/term/serial.c (grub_serial_register)
1875 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
1876 the behaviour in line with x86 platforms.
1878 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1880 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
1881 (grub_ata_strncpy): Likewise.
1882 (grub_ata_identify): Add missing byteswaps.
1884 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1886 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
1888 (screen_read_char): Likewise.
1889 (grub_vga_text_cls): Likewise.
1891 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1893 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
1895 (make_file_path): Likewise.
1897 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1899 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
1901 Tested by: Paulo Flabiano Smorigo.
1902 Crucial information about API supplied by: Coleen <Last name unknown>.
1903 Reviewed by: Coleen <Last name unknown>.
1905 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1907 * util/grub-mkimage.c: Disable -Wcast-align.
1909 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1911 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
1914 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1916 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
1918 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1920 * util/grub-probe.c (escape_of_path): Fix double free.
1922 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1924 * grub-core/commands/videoinfo.c (hook): Show pitch.
1926 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1928 * util/grub.d/20_linux_xen.in: Skip xen-syms.
1930 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1932 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
1933 (probe): Add ieee1275 to OFW devices.
1935 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1937 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
1939 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1941 Handle IBM OFW path.
1943 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
1945 (of_path_of_scsi): Handle vdevice.
1947 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1949 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
1950 Allocate in multiples of 16 to avoid adding a few bytes free region the
1953 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1955 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
1956 Allocate in multiples of 16 to avoid adding a few bytes free region the
1958 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
1960 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1962 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
1964 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
1965 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
1967 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
1969 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
1971 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1973 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
1974 resulted in \\ at the end of the line.
1976 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1978 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
1979 (grub_parser_cmdline_state): Likewise.
1980 (grub_parser_split_cmdline): Likewise.
1982 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1984 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
1985 /dev/root and /dev/dm-*.
1987 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1989 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
1990 fix partially stale display.
1992 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1994 * grub-core/normal/menu_entry.c (backward_char): Use right line for
1997 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1999 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2000 Fix MBR remapping workaround.
2001 (grub_util_biosdisk_read) [__linux__]: Likewise.
2003 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2005 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2007 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2009 * configure.ac: Bump to beta6.
2011 2012-05-31 Christer Weinigel <christer@weinigel.se>
2013 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2015 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2017 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2018 (grub_cmd_linux): Likewise.
2020 2012-05-31 Christer Weinigel <christer@weinigel.se>
2024 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2025 (GRUB_EHCI_MULT_TWO): Likewise.
2026 (GRUB_EHCI_MULT_THREE): Likewise.
2027 (GRUB_EHCI_CMASK_MASK): New enum value.
2028 (GRUB_EHCI_SMASK_MASK): Likewise.
2029 (GRUB_EHCI_CMASK_OFF): Likewise.
2030 (GRUB_EHCI_SMASK_OFF): Likewise.
2031 (grub_ehci_pci_iter): Enable periodic schedule.
2032 (grub_ehci_parse_notrun): Likewise.
2033 (grub_ehci_restore_hw): Likewise.
2034 (grub_ehci_setup_qh): Set flags for low speed transfers.
2035 (grub_ehci_find_qh): Use periodic list for low speed.
2036 (grub_ehci_setup_transfer): Check periodic queue as well.
2037 (grub_ehci_check_transfer): Likewise.
2038 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2040 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2042 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2045 2012-05-31 Peter Jones <pjones@redhat.com>
2047 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2048 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2049 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2051 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2053 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2054 uninited variable. Allocate at least setup_sects.
2056 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2058 Fix handling of EFI with big memory maps.
2060 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2061 (real_mode_mem): Likewise.
2062 (real_mode_target): Likewise.
2063 (real_mode_pages): Likewise.
2064 (prot_mode_pages): Likewise.
2065 (linux_params): New var.
2066 (linux_cmdline): Likewise.
2067 (free_pages): Don't set real mode variables.
2068 (allocate_pages): Don't allocate real mode memory.
2069 (grub_e820_add_region): Remove the limit.
2070 (grub_linux_boot): Allocate and copy real mode memory.
2071 (grub_linux_unload): Free linux_cmdline.
2072 (grub_cmd_linux): Use temporary storage for parameters.
2073 (grub_cmd_initrd): Likewise.
2074 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2075 (linux_kernel_params): Make it 1K big.
2077 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2079 * Makefile.util.def: Remove -Wno-format.
2080 * grub-core/Makefile.core.def: Likewise.
2082 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2084 * tests/cmp_unit_test.c: Add missing failure message.
2085 * tests/example_unit_test.c: Likewise.
2086 * tests/printf_unit_test.c: Likewise.
2088 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2090 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2091 relaxation of protective MBR requirements.
2093 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2095 * configure.ac: Add condition for COND_HOST_XNU.
2096 * Makefile.util.def (10_xnu): New script.
2097 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2099 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2101 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2104 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2106 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2107 Binary on other platforms stays identical.
2109 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2111 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2114 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2116 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2118 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2120 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2121 rather than defining size_t ourselves to avoid conflict.
2123 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2125 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2126 initialisation to avoid __bzero reference.
2128 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2130 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2132 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2133 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2134 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2135 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2136 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2138 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2140 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2141 * grub-core/kern/misc.c: Likewise.
2142 * grub-core/loader/i386/xnu.c: Likewise.
2143 * include/grub/i386/tsc.h: Likewise.
2144 * include/grub/symbol.h: Likewise.
2146 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2148 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2149 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2152 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2154 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2155 Implement Apple flavour.
2156 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2158 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2160 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2161 (memmove) [__APPLE__]: Likewise.
2162 (memcpy) [__APPLE__]: Likewise.
2163 (memset) [__APPLE__]: Likewise.
2164 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2165 (memmove) [__APPLE__]: Likewise.
2166 (memcpy) [__APPLE__]: Likewise.
2167 (memset) [__APPLE__]: Likewise.
2169 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2171 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2174 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2176 * grub-core/normal/main.c (read_config_file): Provide config_file and
2178 * util/grub.d/41_custom.in: Use config_directoy when available.
2180 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2182 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2183 (grub_bfs_dir): Likewise.
2185 2012-05-27 Peter Jones <pjones@redhat.com>
2187 The old code gives arguments to a printf function which can't work
2188 correctly, and the compiler complains.
2190 * grub-core/tests/example_functional_test.c (example_test): Add
2192 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2193 * include/grub/test.h (grub_test_assert_helper): New declaration.
2194 (grub_test_assert): Use grub_test_assert_helper.
2196 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2198 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2199 (exfctest): ... this to avoid overlong filenames.
2202 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2204 Handle "." and ".." on squashfs.
2206 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2207 Make inode numbers into stack.
2208 (grub_squash_read_symlink): Use stack.
2209 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2210 (make_root_node): Fill stack.
2211 (grub_squash_open): Use stack.
2213 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2215 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2218 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2220 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2221 stderr on test calls.
2223 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2225 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2227 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2229 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2231 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2236 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2238 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2239 (grub_hfsplus_iterate_dir): Add "." and "..".
2241 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2243 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2244 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2246 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2248 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2249 (find_path): Handle "." and "..".
2251 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2253 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2254 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2255 (grub_affs_iterate_dir): Handle hardlinks.
2257 2012-05-26 Matthew Garrett <mjg@redhat.com>
2259 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2260 (grub_efi_console_fini): Likewise.
2261 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2262 (grub_video_gop_fill_mode_info): Rename to ...
2263 (grub_video_gop_fill_real_mode_info): ... this.
2264 (grub_video_gop_fill_mode_info): New function.
2265 (grub_video_gop_setup): Setup double framebuffer.
2266 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2268 (grub_video_gop_swap_buffers): Copy framebuffer.
2269 (grub_video_gop_fini): Free offscreen buffer.
2270 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2272 (grub_efi_gop_blt_pixel): New struct.
2274 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2276 * gentpl.py: Remove error disabling for objconv.
2278 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2280 * configure.ac: Remove -Wunitialized as it's not available on older
2283 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2285 Fix extent overflow comparator.
2287 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2288 (grub_hfsplus_read_block): Set type.
2289 (grub_hfsplus_cmp_extkey): Compare type.
2291 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2293 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2295 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2297 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2300 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2302 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2303 (dejavu_bold_14.pf2): New target.
2305 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2307 * configure.ac: Fix djvu font detection.
2309 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2311 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2312 ext* instead of ext2.
2314 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2316 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2319 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2321 * docs/grub-dev.texi: Remove dot from .png.
2323 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2325 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2326 protective entry in any slot.
2327 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2328 if protective entry is found in any slot.
2330 Protective entry in non-first slot make no sense but is a widespread
2333 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2335 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2337 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2339 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2341 (grub_reiserfs_open): Don't free root.
2343 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2345 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2346 after freeing for safety.
2348 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2350 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2351 Reported by: Jordan Uggla.
2353 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2355 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2356 actual implementation. Specifically, clarify that the grub menu will
2357 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2360 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2362 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2365 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2367 Remove unjustified hard dependency of normal.mod on gfxterm.
2369 * include/grub/term.h (grub_term_output): New member fullscreen.
2370 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2371 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2372 (grub_gfxterm): Set .fullscreen.
2373 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2374 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2376 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2378 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2379 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2380 Mention case-insensitive AFFS, SFS and JFS.
2382 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2384 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2386 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2388 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2391 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2393 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2394 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2396 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2398 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2399 (grub_jfs_mount): Fill caseins.
2400 (grub_jfs_find_file): Respect caseins.
2402 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2404 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2407 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2409 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2410 New argument origpath. All users updated.
2412 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2414 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2415 (read_attr): Ensure that we read start of possibly compressed block.
2417 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2419 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2420 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2423 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2425 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2426 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2427 (dejavu.pf2): Replace with ...
2428 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2431 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2433 * util/grub.d/20_linux_xen.in: Add missing line.
2435 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2437 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2438 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2439 (grub_utf16_to_utf8): Likewise.
2441 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2443 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2444 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2445 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2446 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2448 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2450 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2452 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2455 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2457 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2458 (grub_udf_read_symlink): Handle read_string failure.
2460 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2462 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2465 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2467 Fix handling of UDF symlinks.
2469 * grub-core/fs/udf.c (read_string): New argument outbuf.
2471 (grub_ufs_read_symlink): Rename to ...
2472 (grub_udf_read_symlink): ... this. All users updated.
2473 Handle symlinks with more than one component.
2475 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2477 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2478 symlinks. Replace leading colon with a slash.
2480 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2482 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2485 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2487 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2488 match in inner node.
2490 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2492 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2493 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2494 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2495 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2496 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2497 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2498 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2499 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2500 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2502 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2504 Use grub-probe and not cmp to check that disk is empty.
2506 * util/grub-install.in: Use grub-probe for zero-check.
2507 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2508 (probe): Handle PRINT_ZERO_CHECK.
2509 (argp_parser): Handle -t zero_check.
2511 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2513 Flush block cache on adding disk to device map.
2515 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2516 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2518 (read_device_map): Likewise.
2519 (open_device): Flush on opening.
2521 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2523 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2524 (handle_symlink): Fix off-by-one error.
2525 Canonicalize the target.
2526 (grub_cpio_dir): Canonicalize the name.
2529 (grub_cpio_open): Canonicalize the name.
2531 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2533 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2536 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2538 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2539 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2541 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2543 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2544 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2547 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2549 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2552 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2554 Fix UFS1 big file support.
2556 * grub-core/fs/ufs.c (INODE): Removed.
2557 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2559 (INODE_MODE): Simplify.
2560 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2561 (grub_ufs_lookup_symlink): Don't use INODE.
2563 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2565 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2567 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2568 (grub_minix_data): Replace log_block_size with block_size.
2569 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2570 (grub_minix_mount): Fill block_size.
2572 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2574 * configure.ac: Bump to beta5.
2576 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2578 Fix wrapped HFS+ handling.
2580 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2581 blocks_start. All users updated.
2582 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2584 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2586 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2588 Fix long symlinks on reiserfs.
2590 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2591 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2592 (grub_reiserfs_iterate_dir): Save size for non-directories.
2593 (grub_reiserfs_open): Don't reread stat block as we already know the
2595 (grub_reiserfs_read): Split into...
2596 (grub_reiserfs_read_real): ... and ...
2597 (grub_reiserfs_read): ...this.
2599 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2601 Fix non-indexed JFS.
2603 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2604 (grub_jfs_data): New field namecomponentlen.
2605 (grub_jfs_mount): Fill namecomponentlen.
2606 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2608 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2610 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2611 * tests/grub_script_echo1.in: Add tests.
2613 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2615 * util/grub-install.in: Ignore empty devicetree directory.
2617 2012-05-08 Bean <bean123ch@gmail.com>
2619 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2621 (free_rsm): Free header as well.
2622 (free_old_fragments): Fix memory leak.
2623 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2624 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2625 (destroy_pq): Likewise.
2626 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2628 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2630 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2631 resulting hash as a precaution.
2633 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2635 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2636 '_' in variable names.
2637 * grub-core/net/net.c (grub_net_network_level_interface_register):
2640 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2642 Fix AFFS with non-512B blocks.
2644 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2645 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2646 (grub_affs_data): Replace blocksize with log_blocksize.
2647 (grub_affs_read_block): Fix non-512B blocks.
2648 (grub_affs_read_symlink): Likewise.
2649 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2650 (grub_affs_read): Fix non-512B blocks.
2651 (grub_affs_label): Likewise.
2652 (grub_affs_mtime): Likewise.
2653 (grub_affs_mount): Fix block detection routine.
2655 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2657 Add filesystem mtime to AFFS.
2659 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2660 (aftime2ctime): New function.
2661 (grub_affs_dir): Use aftime2ctime.
2662 (grub_affs_label): Fix return value.
2663 (grub_affs_mtime): New function.
2664 (grub_affs_fs): Add mtime.
2666 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2668 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2671 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2673 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2676 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2678 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2680 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2682 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2684 (FLAGS_CASE_SENSITIVE): New enum value.
2685 (cache_entry): New struct.
2686 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2687 cache_size and cache.
2688 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2689 Add log_blocksize and fshelp_flags.
2690 (grub_sfs_read_extent): Handle non-512 blocks.
2691 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2692 (grub_sfs_read_file): Handle non-512 blocks.
2693 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2695 (grub_sfs_read_symlink): Handle non-512 blocks.
2696 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2697 (grub_sfs_dir): Free cache.
2698 (grub_sfs_close): Likewise.
2700 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2702 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2705 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2707 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2709 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2711 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2713 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2715 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
2716 (grub_sfs_read_extent): Likewise.
2717 (grub_sfs_read_block): Likewise.
2718 (grub_sfs_mount): Likewise.
2719 (grub_sfs_iterate_dir): Likewise.
2720 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
2721 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2723 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2725 Fix errors on compressed NTFS with 512B clusters.
2727 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
2729 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
2731 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
2732 Relax check for inline extents.
2733 (ntfscomp): Return correct -1 on error and not 0.
2735 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2737 * util/grub-install.in: Fix handling of prefix containing spaces.
2739 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2741 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
2742 (grub_squash_read_data): Fix offset byte-swapping.
2744 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2746 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
2747 per common usage and preffered in several parts of code.
2748 (grub_memcmp): Likewise.
2749 (grub_strncmp): Likewise.
2750 * include/grub/misc.h (grub_strcasecmp): Likewise.
2751 (grub_strncasecmp): Likewise.
2752 * Makefile.util.def (cmp_test): New test.
2753 (grub_script_strcmp): Likewise.
2754 * tests/cmp_unit_test.c: New file.
2755 * tests/grub_script_strcmp.in: Likewise.
2756 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2758 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2760 * include/grub/pci.h: Move enums into no-asm part.
2762 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2764 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2766 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2768 * util/getroot.c (find_hurd_root_device): Try to make error message
2769 and comments to translators clearer.
2771 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2773 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
2775 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2777 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
2780 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2782 * docs/grub.cfg: Update.
2784 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2786 * docs/grub.texi (PXE): Remove not present variables.
2788 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2790 * grub-core/net/net.c (defserver_set_env): New function.
2791 (defserver_get_env): Likewise.
2792 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
2794 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2796 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
2799 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2801 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
2802 * grub-core/kern/emu/hostdisk.c: Likewise.
2804 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2806 Handle hurd userspace partitions.
2808 * util/getroot.c (find_hurd_root_device): New function.
2809 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2811 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2813 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
2815 Reported by: Bastian Blank.
2817 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2819 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
2820 crossing page boundary.
2822 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2824 Fix B-tree search in BFS, especially in presence of non-ASCII
2827 * grub-core/fs/bfs.c (bfs_strcmp): New function.
2828 (find_in_b_tree): Use standard bsearch + btree algorithm.
2830 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2832 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
2835 2012-05-03 Matthew Garrett <mjg@redhat.com>
2836 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2838 Suspend broadcom cards in order to stop their DMA.
2840 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
2841 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
2842 (pci): Don't build on x86 EFI.
2843 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
2844 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
2846 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
2847 stop_broadcom if running on EFI.
2848 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
2849 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
2850 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
2851 (grub_pci_find_capability): New proto.
2853 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2855 * docs/grub.texi: Remove dot from the extension as it apparently
2856 doesn't work with some makeinfo versions.
2858 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2860 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
2861 with GRUB expectance.
2863 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2865 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2867 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2869 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
2870 zero after directory block since last entry may be not 0-terminated if
2871 it ends on block boundary. Use continue instead of if spanning whole
2874 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2876 Support 4K sectors UDF inline files.
2878 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
2879 (grub_udf_extended_file_entry): Likewise.
2880 (grub_fshelp_node): Name the anonymous union. Put block at the end.
2882 (get_fshelp_size): New function.
2883 (grub_udf_read_icb): Read whole block.
2884 (grub_udf_iterate_dir): Likewise.
2885 (grub_udf_dir): Likewise.
2886 (grub_udf_open): Likewise.
2888 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2890 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2892 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2894 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
2895 inline symlinks in addition to workaround.
2897 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2899 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2901 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2903 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2905 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2907 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2909 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2911 Fix reiserfs big seek times.
2913 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
2914 exact. All users updated.
2915 (grub_reiserfs_read): Use nearest btree search for seeking.
2916 Fix return value on error.
2918 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2920 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
2922 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
2923 * docs/grub.texi: Update menuentry description.
2925 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2927 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
2928 crash when embedding onto filesystem.
2930 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2932 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
2935 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2937 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2939 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2941 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
2944 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2945 2012-05-01 Bean <bean123ch@gmail.com>
2947 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
2949 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2951 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
2952 Special behaviour for len = 0 to read whole file isn't used anywhere and
2953 can cause buffer ovewrflows in several places.
2955 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2959 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2961 Handle RAIDZ on non-512B sectors.
2963 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
2964 max_children_ashift.
2965 (fill_vdev_info_real): Fill max_children_ashift.
2966 (read_device): Use max_children_ashift.
2968 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2970 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2972 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2974 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
2976 * docs/grub.texi: Update device.map parts.
2978 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2980 Don't scan into non-diskfilter devices having diskfilter names.
2982 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
2983 (scan_disk): New argument accept_diskfilter. Fix recursion depth
2985 (scan_disk_hook): New function.
2987 2012-04-29 Bean <bean123ch@gmail.com>
2989 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
2992 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
2994 * configure.ac: Detect starfield theme font path
2995 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2997 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2999 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3000 geometry on serial consoles.
3002 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3004 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3005 because of network consoles.
3007 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3009 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3012 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3014 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3017 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3019 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3020 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3022 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3024 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3025 Allocate at lest 8192 for temporary buffer as required for lzo.
3027 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3029 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3030 to cluster_bits, since it's already added in.
3031 (grub_fat_read_data): Likewise.
3033 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3035 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3036 as long as cluster size is multiple of 512 bytes.
3038 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3040 * util/grub-mkrescue.in: Fix locale directory.
3042 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3044 * grub-core/kern/emu/hostdisk.c (map): Make static.
3046 2012-04-23 Bean <bean123ch@gmail.com>
3048 * util/grub-fstest.c (fstest): Add missing break.
3050 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3054 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3055 not define nr variable.
3056 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3057 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3058 grub_find_device): Do not define.
3060 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3062 Fix kfreebsd compile and behaviour.
3064 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3066 * util/getroot.c: Fix wait.h include.
3067 (grub_guess_root_devices): Error if grub_find_device fails.
3068 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3069 (grub_util_get_dev_abstraction): Likewise.
3070 (grub_util_pull_device): Likewise.
3071 (grub_util_get_grub_dev): Likewise.
3072 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3074 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3076 Fix and unify wholedisk detection.
3078 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3079 is_part. All users updated.
3080 (device_is_wholedisk): Removed.
3081 (grub_util_biosdisk_get_grub_dev): Use is_part.
3083 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3085 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3088 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3090 * configure.ac: Bump to beta4.
3092 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3094 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3095 --fs-uuid --set UUID syntax.
3097 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3099 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3102 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3104 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3106 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3108 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3110 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3112 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3114 2012-04-18 Bean <bean123ch@gmail.com>
3116 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3119 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3121 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3123 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3124 corresponding to GRUB partitions.
3125 (grub_util_biosdisk_write): Likewise.
3127 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3129 Scan mdraid before LVM.
3131 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3132 (grub_diskfilter_register_front): ... this.
3133 (grub_diskfilter_register_back): New function.
3134 All users of grub_diskfilter_register updated.
3136 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3138 * util/grub-install.in: Fix an automatic target detection bug.
3140 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3142 * util/grub-install.in: New option --efi-directory.
3144 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3147 boot services if we have no other choice.
3149 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3151 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3153 * tests/util/grub-shell.in: Update to --directory.
3155 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3157 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3159 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3161 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3162 (grub_minix_read_file): Likewise.
3163 (grub_minix_read_inode): Likewise.
3164 (grub_minix_find_file): Likewise.
3165 (grub_minix_dir): Likewise.
3167 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3169 * util/grub-setup.c (setup): Fix partition handling and blocklist
3172 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3174 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3175 redundant buggy overlap check.
3177 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3179 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3182 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3184 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3185 kh.loadflags on pre-2.00 kernels.
3187 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3189 Terminate UNDI and PXE before launching the payload to avoid problems
3192 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3193 (grub_loader_flags): ... this. All users updated.
3194 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3195 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3196 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3197 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3199 (grub_pxe_restore): Likewise.
3200 (fini_hnd): New var.
3201 (GRUB_MOD_INIT): Register shutdown hook.
3202 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3203 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3204 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3205 (grub_loader_set): Rename second argument to flags.
3207 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3209 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3211 (grub_get_num_of_utf8_bytes): New function.
3212 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3213 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3215 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3216 (grub_ucs4_to_utf8): Change return type.
3218 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3220 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3222 * grub-core/fs/bfs.c (hop_level): Likewise.
3223 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3225 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3227 * grub-core/lib/adler32.c: Recode due to license unclearness.
3229 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3231 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3232 (test_header): Likewise.
3234 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3236 Fix --help formatting.
3238 * util/grub-mkconfig_lib.in (print_option_help): New function.
3239 (grub_fmt): Likewise.
3240 * util/grub-install.in: Use print_option_help and grub_fmt.
3241 * util/grub-kbdcomp.in: Likewise.
3242 * util/grub-mkconfig.in: Likewise.
3243 * util/grub-mknetdir.in: Likewise.
3244 * util/grub-mkrescue.in: Likewise.
3245 * util/grub-mkstandalone.in: Likewise.
3246 * util/grub-reboot.in: Likewise.
3247 * util/grub-set-default.in: Likewise.
3248 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3250 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3252 * linguas.sh: Remove autogenerated *.po.
3254 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3256 * po/README: Move language fetcing to ...
3257 * linguas.sh: ... here.
3258 * po/README: Point to linguas.sh.
3260 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3262 * po/README: Exclude ko.po due to disclaimer problems.
3264 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3266 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3268 (grub_gettext_translate_real): Handle 0th string.
3269 (grub_gettext_translate): Ensure that "" isn't translated.
3271 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3273 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3274 TRANSLATORS comment.
3275 (grub_diskfilter_print_partmap): Propagate changing of error into
3278 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3280 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3281 to uint64_t to prevent overflow.
3282 (grub_diskfilter_lv): Increase start_extent and extent_count
3283 to uint64_t to prevent overflow.
3285 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3287 * configure.ac: Increase version.
3289 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3291 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3293 * po/Rules-translit: New file.
3294 * po/arabic.sed: Likewise.
3295 * po/cyrillic.sed: Likewise.
3296 * po/greek.sed: Likewise.
3297 * po/hebrew.sed: Likewise.
3298 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3299 * po/Makefile.in.in: Add extra_dist4.
3301 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3303 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3305 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3306 modify names. Introduce MODE_BIGENDIAN.
3307 * grub-core/fs/minix_be.c: New file.
3308 * grub-core/fs/minix2_be.c: Likewise
3309 * grub-core/fs/minix3_be.c: Likewise.
3310 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3312 * grub-core/Makefile.core.def (minix_be): New module.
3313 (minix2_be): Likewise.
3314 (minix3_be): Likewise.
3316 2012-04-01 Felix <email@hamburg.de>
3318 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3319 (devs): Add MBP 2011.
3321 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3323 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3325 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3327 * grub-core/normal/cmdline.c (print_completion): New field
3329 (grub_cmdline_get): Handle width properly.
3331 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3333 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3335 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3337 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3338 after 29th of February.
3340 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3342 Fix exfat endianness handling.
3344 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3345 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3346 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3347 Byte-swap utf16 when necessary.
3348 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3350 2012-03-31 Anton Blanchard <anton@samba.org>
3351 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3353 Fix btrfs endianness handling.
3355 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3356 (lower_bound): Make root uint64_t. Use root in le.
3357 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3358 (find_path): Fix template key init.
3359 (grub_btrfs_dir): Fix mtime byteswap.
3360 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3362 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3364 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3365 recursion_depth. Break infinite resursions. All users updated.
3367 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3369 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3371 Reported by: Peter Jones.
3373 2012-03-31 Anton Blanchard <anton@samba.org>
3375 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3378 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3380 * util/grub-install.in: Fix nvram call for PreP.
3382 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3384 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3385 the error when some elements are missing into a warning.
3387 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3389 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3391 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3393 * docs/grub.texi (Invoking grub-probe): New section.
3394 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3396 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3398 Fix tab and wide character handling in editor and menu.
3400 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3401 agglomerate control characters with combining marks.
3402 (bidi_line_wrap): Allow break on tab.
3403 (grub_unicode_get_comb_start): New function.
3404 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3406 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3408 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3409 fixed_tab_size. All users updated.
3410 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3411 (grub_term_getcharwidth): Handle \t.
3412 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3415 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3417 Handle big-endian mdraid.
3419 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3420 * grub-core/Makefile.core.def (mdraid09_be): New module.
3421 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3422 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3423 * grub-core/disk/mdraid_linux_be.c: New file.
3425 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3429 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3431 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3432 missing quotes which caused confusion among translators.
3434 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3436 * util/grub-mkconfig_lib.in: Fix typo.
3438 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3440 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3442 * tests/grub_script_leading_whitespace.in: New file.
3443 * Makefile.util.def (grub_script_leading_whitespace): New test.
3445 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3447 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3450 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3452 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3453 starts with control character.
3455 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3457 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3459 (grub_gdb_outbuf): Likewise.
3461 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3463 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3464 zero terminator. Fixes a crash.
3466 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3468 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3470 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3471 images independently of preffered adderss field.
3473 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3475 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3476 * grub-core/commands/regexp.c: Likewise.
3477 * grub-core/loader/i386/linux.c: Likewise.
3478 * grub-core/partmap/msdos.c: Likewise.
3479 * grub-core/script/execute.c: Likewise.
3480 * grub-core/term/gfxterm.c: Likewise.
3482 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3484 Add variable parsing in $"..." and fix several mismatches with bash.
3486 * Makefile.util.def (grub_script_gettext): New test.
3487 * grub-core/script/execute.c (parse_string): New function.
3488 (gettext_append): Likewise.
3489 (grub_script_arglist_to_argv): Use gettext_append.
3490 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3491 * tests/grub_script_gettext.in: New file.
3493 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3495 Fix handling of leading spaces in scripts.
3497 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3499 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3500 other than skipping \r. All users updated.
3501 * tests/grub_script_echo1.in: Add space-related tests.
3502 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3504 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3506 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3508 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3510 * configure.ac: Bump up the version to beta2.
3512 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3514 Fix gettext reload bugs (e.g. inability to disable gettext
3517 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3518 main_context and secondary_context. All functions updated.
3519 (grub_gettext_translate): Rename to ...
3520 (grub_gettext_translate_real): ... this. Return NULL on failed
3522 (grub_gettext_translate): Handle secondary context.
3523 (grub_gettext_delete_list): Close file and zero-out the context.
3524 (grub_mofile_open): Don't call grub_gettext_delete_list.
3526 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3527 if locale="" to avoid pointless error message.
3528 (grub_gettext_env_write_lang): Update lang even if load fails.
3529 Handle secondary context.
3530 (grub_gettext_reread_prefix): New function.
3531 (read_main): Likewise.
3532 (read_secondary): Likewise.
3533 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3534 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3535 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3536 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3538 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3540 * configure.ac: Decrease warning level to avoid spurious warnings and
3541 to be able to compile with GCC 4.2.
3542 * Makefile.util.def: Remove -Wno-error=logical-op.
3544 2012-03-10 William Bittner <william.bittner@gmail.com>
3546 * util/import_unicode.py: Add missing brackets around string for
3549 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3551 Fix efi chainloader on network root.
3553 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3555 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3558 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3560 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3561 unused show_text member.
3562 * docs/grub.texi: Document "text" property.
3564 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3566 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3569 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3571 Fix IMSM handling on Fedora.
3573 * util/getroot.c (grub_util_is_imsm): New function.
3574 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3576 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3578 * Makefile.am: Strip gold section.
3579 * conf/Makefile.common: Likewise.
3580 * gentpl.py: Likewise.
3581 * grub-core/Makefile.core.def: Likewise.
3582 * grub-core/genmod.sh.in: Likewise.
3584 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3586 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3587 * util/grub.d/20_linux_xen.in: Likewise.
3588 Based on Debian patch.
3590 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3592 * util/grub.d/10_linux.in: Fix syntax error resulting in
3593 Richard Laager's patch.
3594 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3596 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3598 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3601 2012-03-10 Richard Laager <rlaager@wiktel.com>
3603 * util/grub.d/10_linux.in: Fix ZFS root passing.
3605 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3607 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3608 * grub-core/commands/xnu_uuid.c: Likewise.
3609 * grub-core/loader/efi/appleloader.c: Likewise.
3610 * grub-core/script/execute.c: Likewise.
3611 * grub-core/script/main.c: Likewise.
3612 * util/grub-mkfont.c: Likewise.
3614 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3616 * util/grub-mkfont.c (options): Use more appropriate "select" that
3617 "set" for face index.
3619 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3621 * util/grub-editenv.c (options): Gettextize command summaries.
3623 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3625 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3626 "out of memory" error messagge.
3628 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3630 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3631 of diskfilter for diskfilter on diskfilter support.
3633 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3635 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3637 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3639 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3642 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3644 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3646 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3648 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3650 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3652 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3655 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3657 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3659 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3661 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3663 * util/grub-install.in: Fix and gettextize error message.
3665 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3667 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3669 * util/grub-mount.c (options): Likewise.
3671 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3673 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3675 * grub-core/commands/search_wrap.c (options): Likewise.
3677 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3679 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3681 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3683 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3685 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3688 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3690 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3691 "temporary" since it's used in identifier and is limited in space.
3693 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3695 * po/POTFILES.in: Regenerate. Include *.h since they contain
3696 translatable strings as well.
3698 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3700 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3701 byte-swap on big-endian.
3702 Reported by: Lennart Sorensen
3704 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3706 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3707 (allocate_pages): Improve dprintf.
3708 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3709 code32_start. Fill code32_start and kernel_alignment in params.
3710 (grub_cmd_initrd): Use prot_init_space.
3712 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3714 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
3716 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3718 * util/grub-install.in: Add missing dot at the end of sentence.
3720 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3722 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3723 * grub-core/commands/videotest.c: Likewise.
3724 * grub-core/loader/i386/linux.c: Likewise.
3726 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3728 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
3730 Reported by: Milo Casagrande.
3732 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3734 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
3735 * grub-core/commands/gptsync.c: Likewise.
3736 * grub-core/commands/hashsum.c: Likewise.
3737 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3738 * grub-core/commands/legacycfg.c: Likewise.
3739 * grub-core/io/gzio.c: Likewise.
3740 * grub-core/net/net.c: Likewise.
3741 * grub-core/term/gfxterm.c: Likewise.
3742 * grub-core/term/terminfo.c: Likewise.
3743 * grub-core/tests/test_blockarg.c: Likewise.
3744 * grub-core/video/video.c: Likewise.
3745 * util/grub-install.in: Likewise.
3746 * util/grub-mkfont.c: Likewise.
3748 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3750 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
3752 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3754 * grub-core/commands/search_wrap.c (options): Fix a typo.
3755 Reported by: David Prévot.
3757 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3759 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
3762 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3764 * util/grub-script-check.c (main): Fix a syntax error message which was
3767 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3769 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
3771 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3773 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
3776 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3778 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
3780 * util/grub-mount.c (options): Likewise.
3782 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3784 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
3786 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3788 * grub-core/net/http.c: Add TRANSLATORS comments.
3789 * grub-core/normal/cmdline.c: Likewise.
3790 * grub-core/normal/misc.c: Likewise.
3791 * grub-core/partmap/msdos.c: Likewise.
3792 * grub-core/parttool/msdospart.c: Likewise.
3793 * grub-core/script/execute.c: Likewise.
3794 * grub-core/script/main.c: Likewise.
3795 * grub-core/term/terminfo.c: Likewise.
3796 * grub-core/video/bitmap.c: Likewise.
3797 * util/grub-install.in: Likewise.
3798 * util/grub-mkimage.c: Likewise.
3799 * util/grub-mklayout.c: Likewise.
3800 * util/grub-setup.c: Likewise.
3802 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3804 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
3805 with similar messages in grub-fstest.
3807 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3809 * util/grub-install.in: Unify "option requires an argument" message
3810 with similar messages in other files.
3811 * util/grub-mkconfig.in: Likewise.
3813 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3815 * util/grub-set-default.in: Replace printf with gettext_printf (the
3816 string in in question is already translated from grub-reboot)
3818 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3820 * configure.ac: Bump up the version to beta1.
3822 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3824 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
3825 case when min_align = 0.
3827 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
3830 and fix a case when line_start overflows.
3832 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3834 * util/grub-reboot.in (usage): Mention id posibility.
3835 * util/grub-set-default.in (usage): Likewise.
3837 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3839 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
3840 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
3841 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3842 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3843 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3844 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3845 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3847 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3849 * grub-core/commands/menuentry.c (options): Remove
3850 GRUB_ARG_OPTION_REPEATABLE.
3851 Reported by: Andreas Vogel
3853 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
3855 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
3857 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
3859 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
3862 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3864 Use sort -V by the idea of Georgi Georgiev.
3866 * util/grub-mkconfig_lib.in (version_sort): New function.
3867 (version_test_numeric): Use version_sort.
3869 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3871 Use submenus in grub-mkconfig.
3873 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
3874 * util/grub-mkconfig_lib.in (grub_quote): New function.
3875 (gettext_printf): Use gettext and not gettext_quoted to fix several
3877 * util/grub.d/10_hurd.in: Use submenus.
3878 * util/grub.d/10_kfreebsd.in: Likewise.
3879 * util/grub.d/10_linux.in: Likewise.
3880 * util/grub.d/10_netbsd.in: Likewise.
3881 * util/grub.d/20_linux_xen.in: Likewise.
3882 * util/grub.d/30_os-prober.in: Likewise.
3883 * util/grub.d/10_illumos.in: Add missing quoting.
3884 * util/grub.d/10_windows.in: Likewise.
3886 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3888 Fix menu title instability bug.
3890 * grub-core/commands/menuentry.c (options): New option --id.
3891 (grub_normal_add_menu_entry): New argument id. All users updated.
3892 (grub_cmd_menuentry): Handle --id.
3893 (grub_menu_init): Accept unknown arguments.
3894 * grub-core/normal/main.c (features): Add feature_menuentry_id and
3895 feature_menuentry_options.
3896 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
3898 (get_entry_number): Match with id as well.
3899 * include/grub/menu.h (grub_menu_entry): New member id.
3900 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
3901 * util/grub.d/00_header.in: Define menuentry_id_option.
3902 * util/grub.d/10_hurd.in: Define id.
3903 * util/grub.d/10_illumos.in: Likewise.
3904 * util/grub.d/10_kfreebsd.in: Likewise.
3905 * util/grub.d/10_linux.in: Likewise.
3906 * util/grub.d/10_netbsd.in: Likewise.
3907 * util/grub.d/10_windows.in: Likewise.
3908 * util/grub.d/20_linux_xen.in: Likewise.
3909 * util/grub.d/30_os-prober.in: Likewise.
3911 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3913 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
3914 "scope" with "body".
3916 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3918 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
3919 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
3920 prot_size and prot_file_size.
3922 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3924 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
3925 All users updated. If easily=1 require raid-5/-6 to be full.
3926 (is_node_readable): Likewise.
3927 (scan_devices): Scan incomplete but readable LVs at the end.
3928 (grub_diskfilter_memberlist): Pull missing devices.
3929 (insert_array): Skip scanning until device is complete or scan is
3931 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
3933 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
3934 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
3936 2012-03-03 Matthew Garrett <mjg@redhat.com>
3937 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3939 Avoid EFI boot services when loading Linux.
3941 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
3942 avoid_efi_bootservices. All users updated.
3943 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
3944 argument avoid_efi_bootservices. All users updated.
3945 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
3946 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
3947 align, min_align, relocatable, prefered_address. All users updated.
3948 Allocate avoiding boot services if kernel is relocatable.
3949 (grub_cmd_linux): Check if kernel is relocatable.
3950 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
3951 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
3952 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
3953 avoid_efi_boot_services.
3954 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
3955 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
3956 (linux_kernel_params): Likewise.
3958 2012-03-03 Matthew Garrett <mjg@redhat.com>
3959 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3963 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
3965 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
3966 modes. Set gop_handle.
3967 (grub_video_gop_get_edid): New function.
3968 (grub_gop_get_preferred_mode): Likewise.
3969 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
3970 (grub_video_efi_gop_adapter): Set .get_edid.
3971 * include/grub/efi/edid.h: New file.
3972 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
3974 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3976 * util/grub-install.in: Load efivars unconditionally.
3978 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3980 * po/Rules-piglatin: Change suffix from .po-update-en to
3981 .po-update-en-piglatin.
3983 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3987 * po/piglatin.sed: New file.
3988 * po/en@piglatin.header: Likewise.
3989 * po/Rules-piglatin: Likewise.
3990 * po/README: Add en@piglatin to autogenerated languages.
3992 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3994 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
3996 * grub-core/commands/hdparm.c (options): Use "Display" rather than
3997 "Check" since we don't check anything.
3998 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4000 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4001 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4002 (grub_md_sha512_real): Likewise.
4004 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4006 * grub-core/commands/gptsync.c: Fix typographic quoting.
4007 * grub-core/commands/ieee1275/suspend.c: Likewise.
4008 * grub-core/commands/parttool.c: Likewise.
4009 * grub-core/commands/search_wrap.c: Likewise.
4010 * grub-core/commands/videoinfo.c: Likewise.
4011 * grub-core/gfxmenu/gui_label.c: Likewise.
4012 * grub-core/hello/hello.c: Likewise.
4013 * grub-core/kern/emu/main.c: Likewise.
4014 * grub-core/net/net.c: Likewise.
4015 * grub-core/normal/menu.c: Likewise.
4016 * grub-core/normal/menu_text.c: Likewise.
4017 * grub-core/normal/misc.c: Likewise.
4018 * util/grub-editenv.c: Likewise.
4019 * util/grub-install.in: Likewise.
4020 * util/grub-kbdcomp.in: Likewise.
4021 * util/grub-mkconfig.in: Likewise.
4022 * util/grub-mknetdir.in: Likewise.
4023 * util/grub-mkrescue.in: Likewise.
4024 * util/grub-mkstandalone.in: Likewise.
4025 * util/grub-reboot.in: Likewise.
4026 * util/grub-set-default.in: Likewise.
4027 * util/grub-setup.c: Likewise.
4028 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4030 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4032 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4033 * grub-core/commands/keystatus.c: Likewise.
4034 * grub-core/commands/loadenv.c: Likewise.
4035 * grub-core/commands/probe.c: Likewise.
4036 * grub-core/commands/regexp.c: Likewise.
4037 * grub-core/commands/true.c: Likewise.
4038 * grub-core/commands/videoinfo.c: Likewise.
4039 * grub-core/disk/cryptodisk.c: Likewise.
4040 * grub-core/disk/ldm.c: Likewise.
4041 * grub-core/disk/loopback.c: Likewise.
4042 * grub-core/disk/luks.c: Likewise.
4043 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4044 * grub-core/kern/disk.c: Likewise.
4045 * grub-core/kern/emu/hostdisk.c: Likewise.
4047 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4049 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4050 * util/grub-install.in: Add missing quote in the comment.
4052 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4055 * grub-core/commands/lsmmap.c: Likewise.
4056 * grub-core/commands/minicmd.c: Likewise.
4057 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4058 * grub-core/commands/regexp.c: Likewise.
4059 * grub-core/gdb/gdb.c: Likewise.
4060 * grub-core/term/gfxterm.c: Likewise.
4061 * util/grub-mkconfig.in: Likewise.
4062 * util/grub-mkfont.c: Likewise.
4063 * util/grub-mklayout.c: Likewise.
4064 * util/grub-mknetdir.in: Likewise.
4065 * util/grub-mkrescue.in: Likewise.
4066 * util/grub.d/30_os-prober.in: Likewise.
4068 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4070 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4071 with "Direct color" and "Packed" with "Packed pixel".
4072 (grub_cmd_videoinfo): Simplify legend.
4074 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4076 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4077 absolutely unclear error message.
4079 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4081 * util/grub-mkstandalone.in: Remove confusing leftover print.
4083 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4085 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4087 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4088 (GRUB_MOD_INIT): Likewise.
4089 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4091 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4093 * util/grub-install.in (usage): Likewise.
4094 Spell ID in whole letters.
4095 Add missing ending dot.
4097 * util/grub-reboot.in: Fix capitalisation.
4098 * util/grub-set-default.in: Likewise.
4100 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4102 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4103 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4104 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4105 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4106 Disable -Werror for -Wdeprecated-declarations.
4107 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4108 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4109 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4110 (grub_util_get_grub_dev): Make luks handling dependent on
4111 HAVE_DEVICE_MAPPER and not __linux__.
4112 (get_win32_path): Fix format security.
4113 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4114 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4115 Don't try grub_find_zpool_from_dir.
4116 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4117 #ifdef-out paresdir.
4119 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4121 * util/grub-pe2elf.c (usage): Add missing noreturn.
4122 (write_section_data): Rename name to shname to avoid shadowing.
4123 (write_symbol_table): Rename name to symname to avoid shadowing.
4124 Fix write_reloc_section call.
4126 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4128 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4129 to ensure that it's after the last byte of .text.
4131 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4133 * util/ieee1275/ofpath.c (my_isdigit): New function.
4134 (trailing_digits): Use my_isdigit.
4135 (strip_trailing_digits): Likewise.
4137 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4139 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4140 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4142 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4144 * grub-core/kern/i386/pc/startup.S: Define __start.
4146 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4148 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4149 strip already transforms he format.
4151 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4153 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4155 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4157 * util/grub-install.in: Add missing gettext init.
4158 * util/grub-kbdcomp.in: Likewise.
4159 * util/grub-mkconfig.in: Likewise.
4160 * util/grub-mknetdir.in: Likewise.
4161 * util/grub-mkrescue.in: Likewise.
4162 * util/grub-mkstandalone.in: Likewise.
4163 * util/grub-reboot.in: Likewise.
4164 * util/grub-set-default.in: Likewise.
4165 * util/grub.d/00_header.in: Likewise.
4166 * util/grub.d/10_hurd.in: Likewise.
4167 * util/grub.d/10_windows.in: Likewise.
4168 * util/grub.d/30_os-prober.in: Likewise.
4169 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4171 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4173 * po/Rules-swiss: Fix header comment.
4175 2012-02-29 Andreas Vogel <anvoit>
4177 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4178 resulted in leak of arguments.
4180 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4182 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4183 reed_solomon_size const definition instead of computing it since
4184 Apple assembler doesn't support the later.
4186 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4188 * gentpl.py (kernel): Rewrite Apple part.
4190 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4192 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4194 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4196 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4198 (load_image): Likewise.
4200 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4202 * configure.ac: Fix a typo in previous commit.
4204 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4206 Don't add -Wl,-N on Apple platform.
4208 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4209 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4211 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4213 * grub-core/Makefile.core.def (lzma_decompress): Use
4214 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4216 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4218 * grub-core/genmod.sh.in: Rewrite the Apple part.
4220 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4222 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4225 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4227 * acinclude.m4 (grub_CHECK_PIC): New test.
4228 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4230 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4232 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4233 to avoid the warning.
4235 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4237 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4238 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4239 after. All users updated.
4241 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4243 Use the common size routine in hostfs so we can read disks as well.
4245 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4246 (grub_util_get_fd_size): ... this. Return size in bytes.
4248 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4249 grub_util_get_fd_size.
4251 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4253 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4254 Add blocksize retrieval.
4256 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4258 * configure.ac: Restore CFLAGS after efiemu check.
4260 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4262 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4265 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4267 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4269 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4271 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4272 (grub_cmd_halt): Likewise.
4274 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4276 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4277 for local arithmetics.
4278 Break %sp init into 2 instructions.
4279 Add 0 byte at the end.
4281 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4283 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4286 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4288 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4291 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4293 * grub-core/disk/ldm.c (make_vg): Init part.name.
4294 (grub_ldm_detect): Silence spurious warning.
4295 (grub_util_is_ldm): Likewise.
4297 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4299 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4300 sane value to avoid a spurious warning.
4302 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4304 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4305 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4307 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4309 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4310 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4312 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4314 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4315 hardcoding the relevant info.
4317 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4319 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4320 missing const qualifiers.
4321 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4323 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4325 * util/getroot.c [__APPLE__]: Add missing includes.
4326 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4328 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4330 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4332 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4334 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4337 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4339 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4341 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4343 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4344 and grub_file_close call.
4346 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4348 Add LZSS Mach-O support (needed for new xnu kernelcache).
4350 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4351 * grub-core/loader/lzss.c: New file.
4352 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4353 on Mach-O open failure.
4354 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4355 Don't free cmdsXX in uncompressedXX is set.
4356 (grub_macho_file): Init new fields.
4357 New argument is_64bit. All users updated.
4358 Handle compressed. Error out if no suitable architecture is found.
4360 (grub_macho_open): New argument is_64bit. All users updated.
4361 * grub-core/loader/macho32.c: Add defines for new fields.
4362 * grub-core/loader/macho64.c: Likewise.
4363 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4364 (grub_macho_parse): Handle compressed.
4365 Defer actual processing if compressed.
4366 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4367 "filename". All users updated.
4368 (grub_macho_size): New argument "filename". All users updated.
4369 (grub_macho_get_entry_point): Likewise.
4370 (grub_macho_load): Handle compressed.
4371 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4372 (GRUB_MACHO_LZSS_OFFSET): New define.
4373 (grub_decompress_lzss): New proto.
4374 * include/grub/machoload.h (grub_macho_file): New fields to handle
4376 (grub_macho_contains_macho64): Remove proto.
4377 (grub_macho_contains_macho32): Likewise.
4378 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4380 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4382 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4384 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4388 * Makefile.am (starfield_theme_files): New var.
4389 (starfield_DATA): Use starfield_theme_files.
4390 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4391 Add bootcheck-related files.
4392 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4393 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4394 and font_char_metrics.txt.
4395 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4396 (setjmp): Add lib/ia64/longjmp.S.
4397 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4398 * po/POTFILES.in: Regenerate.
4399 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4400 DISTFILES.common.extra1.
4401 * util/devicemap.c: Removed.
4402 * grub-core/lib/i386/relocator_backward.S: Likewise.
4403 * util/import_gcry.py: Remove unused files. Add extra_dist for
4406 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4408 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4409 grub_gettext_delete_list before changing grub_gettext_max to avoid
4410 running out of array bounds.
4412 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4414 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4415 grub_vga_text_init/grub_vga_text_fini.
4417 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4419 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4421 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4423 * configure.ac: Bump to 2.00~beta0.
4425 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4427 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4428 missing initialisation.
4430 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4432 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4434 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4436 Support v2 xnu boot arguments.
4438 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4439 New argument fsbfreq_out.
4440 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4441 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4443 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4445 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4446 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4447 (grub_xnu_boot_params): Rename to ...
4448 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4449 (grub_xnu_boot_params_v2): New struct.
4451 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4454 zeroing of CRC field before computing CRC.
4456 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4458 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4459 Change order of allocations to decrease fragmentation.
4461 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4463 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4465 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4467 Use write-combining MTRR to speed up video with buggy BIOSes.
4469 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4470 (cpuid): New define.
4473 (mtrr_base): Likewise.
4474 (mtrr_mask): Likewise.
4475 (grub_vbe_enable_mtrr_entry): New function.
4476 (grub_vbe_enable_mtrr): Likewise.
4477 (grub_vbe_disable_mtrr): Likewise.
4478 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4479 control off to BIOS.
4480 (grub_video_vbe_init): Fill mtrr.
4481 (grub_video_vbe_fini): Disable mtrr.
4482 (grub_video_vbe_get_info_and_fini): Likewise.
4483 (grub_video_vbe_setup): Enable mtrr.
4485 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4487 * include/grub/partition.h (grub_partition_map): Change prototype of
4488 embed to take a maximum value for nsectors.
4489 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4490 * include/grub/fs.h (grub_fs): Likewise.
4491 * grub-core/partmap/msdos.c (embed_signatures): New array.
4492 (pc_partition_map_embed): Check for and avoid sectors matching any
4493 of the signatures in embed_signatures, up to max_nsectors.
4494 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4495 returned sector map to max_nsectors.
4496 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4497 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4498 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4499 * util/grub-setup.c (setup): Allow for the embedding area being
4500 split into multiple blocklists. Tell dest_partmap->embed the
4501 maximum number of sectors we care about.
4503 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4505 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4506 Specify blocklist_install and reserver_first_sector for all fs.
4507 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4510 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4512 * util/grub-install.in: Clarify strings.
4513 Fix source dir check.
4515 2012-02-27 Richard Laager <rlaager@wiktel.com>
4517 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4518 "zfs" and "fuse.zfs" as synonyms.
4520 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4522 * configure.ac: Put platform and target_cpu substitutions back since
4523 they are used for directories.
4525 2012-02-27 Richard Laager <rlaager@wiktel.com>
4526 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4528 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4529 * util/grub.d/20_linux_xen.in: Likewise.
4531 2012-02-27 Richard Laager <rlaager@wiktel.com>
4533 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4536 2012-02-27 Richard Laager <rlaager@wiktel.com>
4538 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4541 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4543 Don't use insecure popen in getroot.
4545 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4546 (exec_pipe): ... here.
4547 (find_root_devices_from_poolname): Use exec_pipe.
4549 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4551 Remove platform and target_cpu replacement.
4553 * configure.ac: Remove platform and target_cpu substitutions.
4554 * tests/util/grub-shell.in: Use modinfo.
4555 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4558 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4560 Autodetect platform in grub-install but allow override.
4562 * util/grub-install.in: Autodetect platform. Support --target and
4563 --directory. Read platform from modinfo.sh.
4565 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4567 Support btrfs multi-volume probe.
4569 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4570 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4571 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4572 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4573 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4574 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4575 grub_find_root_devices_from_btrfs if on btrfs.
4577 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4579 Remove any awareness of *.c util files about target.
4581 * Makefile.util.def (grub-setup): Split to ...
4582 (grub-bios-setup): ... and this.
4583 (grub-sparc64-setup): ... and this.
4584 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4585 * docs/man/grub-setup.h2m: Split into ...
4586 * docs/man/grub-sparc64-setup.h2m: ... this.
4587 * docs/man/grub-bios-setup.h2m: ... and this.
4588 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4589 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4590 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4591 (grub_target_addr_t): Remove.
4592 (grub_target_size_t): Remove.
4593 (grub_target_ssize_t): Remove.
4594 * util/grub-install.in: Use new grub-*-setup.
4595 * util/grub-mkimagexx.c (Elf_Word): New define.
4596 (Elf_Half): Likewise.
4597 (Elf_Section): Likewise.
4598 (ELF_ST_TYPE): Likewise.
4599 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4600 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4602 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4604 Replace grub_target_addr with more appropriate types.
4606 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4607 grub_target_addr with grub_addr.
4608 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4609 grub_target_addr with grub_port.
4610 (grub_cmd_write): Likewise.
4611 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4612 grub_target_addr with grub_addr.
4613 (grub_cmd_write): Likewise.
4614 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4616 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4618 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4619 const qualifier for vendor_guid.
4621 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4623 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4625 (efiemu_memequal): Likewise.
4626 (find_variable): Likewise.
4628 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4630 Fix missing console prototype on qemu-mips.
4632 * include/grub/mips/qemu_mips/console.h: New file.
4634 2012-02-27 Matthew Garrett <mjg@redhat.com>
4635 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4637 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4638 * include/grub/efi/efi.h: Likewise.
4639 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4640 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4641 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4642 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4643 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4644 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4646 2012-02-27 Matthew Garrett <mjg@redhat.com>
4648 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4650 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4652 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4655 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4657 * configure.ac: Remove inappropriate use of program_transform_name
4658 on grubdir and bootdir but allow explicit specification of those
4661 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4663 * util/grub-mknetdir.in (grub_prefix): Removed.
4664 (subdir): Use @bootdirname@ and @grubdirname@.
4666 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4668 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4670 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4672 * po/POTFILES.in: Regenerated.
4674 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4676 Remove improper use of program_transform_name on pkglibrootdir.
4678 * configure.ac (pkglibrootdir): Removed.
4679 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4680 * util/grub-mkimage.c: Likewise.
4682 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4684 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4687 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4689 * util/grub-install.in: Use file identifier if no UUID is available
4690 or user explicitly prompted for it.
4692 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4694 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4695 (freebsd_get_zfs): New function.
4696 (grub_freebsd_boot): Pass zfs UUID.
4697 (grub_cmd_freebsd): Set zfs UUID.
4699 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4701 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4704 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4706 Add configure flag to control libzfs integration.
4708 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4712 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
4714 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
4717 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4719 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4720 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
4721 be used on non-modules.
4723 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
4724 Rename to grub_boot_init.
4725 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
4726 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
4727 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
4728 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
4729 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
4730 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
4731 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
4732 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
4734 (grub_machine_init): Remove empty inits.
4735 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
4737 (grub_machine_init): Remove empty inits.
4738 * grub-core/term/arc/console.c: Remove explicit proto.
4739 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
4740 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
4741 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4742 grub_at_keyboard_fini.
4743 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
4744 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
4745 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4747 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
4748 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
4749 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4751 * grub-core/term/ieee1275/console.c: Remove explicit proto.
4752 * grub-core/term/serial.c (GRUB_MOD_INIT)
4753 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
4754 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4756 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
4757 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
4758 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4760 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
4761 (GRUB_MOD_FINI): Likewise.
4762 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
4763 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
4764 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4765 grub_video_radeon_fuloong2e_fini.
4766 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
4767 [LOONGSON]: Rename to grub_video_sis315pro_init.
4768 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4769 grub_video_sis315pro_fini.
4770 * grub-core/video/sm712.c (GRUB_MOD_INIT)
4771 [LOONGSON]: Rename to grub_video_sm712_init.
4772 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4773 grub_video_sm712_fini.
4774 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
4775 (grub_at_keyboard_fini): Likewise.
4776 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
4777 Don't declare grub_{modname}_init.
4778 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
4779 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
4781 (grub_keylayouts_fini) [!EMU]: Likewise.
4782 * include/grub/serial.h (grub_serial_init) [!EMU]:
4784 (grub_serial_fini) [!EMU]: Likewise.
4785 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
4787 (grub_terminfo_fini) [!EMU]: Likewise.
4788 * include/grub/video.h (grub_font_init) [!EMU]:
4790 (grub_font_fini) [!EMU]: Likewise.
4791 (grub_gfxterm_init) [!EMU]: Likewise.
4792 (grub_gfxterm_fini) [!EMU]: Likewise.
4793 (grub_video_sm712_init) [!EMU]: Likewise.
4794 (grub_video_sm712_fini) [!EMU]: Likewise.
4795 (grub_video_sis315pro_init) [!EMU]: Likewise.
4796 (grub_video_sis315pro_fini) [!EMU]: Likewise.
4797 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
4798 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
4800 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4802 Make nand a prefix for nand devices.
4804 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
4806 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4808 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
4809 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
4811 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4813 * include/grub/env.h (grub_env_find): Remove prototype.
4814 * grub-core/kern/env.c (grub_env_find): Make static.
4815 (grub_env_set): Remove useless set.
4817 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4819 * grub-core/kern/i386/realmode.S: Remove useless align.
4821 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4823 * include/grub/dl.h (grub_dl_load_file): Don't export.
4825 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4827 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
4830 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4832 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
4834 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
4835 not reloading whole superblock but only the part which is really needed.
4836 Remove useless grub_errors.
4837 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
4840 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4842 Don't export grub_get_rtc.
4844 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
4845 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
4847 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4849 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
4851 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4853 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
4854 argument since it can be deduced from diskfilter. All users updated.
4856 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4860 * include/grub/list.h (grub_prio_list): Removed.
4861 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
4862 GRUB_COMMAND_PRIO_MASK.
4863 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
4864 GRUB_COMMAND_FLAG_ACTIVE.
4865 (grub_prio_list_insert): Removed.
4866 (grub_prio_list_remove): Likewise.
4867 (GRUB_AS_PRIO_LIST): Likewise.
4868 (GRUB_AS_PRIO_LIST_P): Likewise.
4869 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
4870 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
4871 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
4872 * grub-core/kern/command.c (grub_register_command_prio): Inline
4874 (grub_unregister_command): Likewise.
4876 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4878 Fix interrupt mixup from previous commit.
4880 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
4881 (grub_realidt): New var.
4882 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
4884 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
4886 (grub_relocator16_boot): Set grub_relocator16_idt.
4887 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
4888 (LOCAL(realidt)): ... this.
4889 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
4890 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
4891 (grub_realidt): New variable.
4893 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4895 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
4896 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
4897 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
4898 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
4900 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
4901 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
4902 * po/POTFILES.in: Regenerate.
4904 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4906 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
4909 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4911 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
4913 (add_length): Likewise.
4915 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4916 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
4918 GDB serial and backtrace support.
4920 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
4921 (prot_to_real): Likewise.
4922 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
4923 * grub-core/Makefile.core.def (backtrace): New module.
4925 * grub-core/gdb/cstub.c: New file.
4926 * grub-core/gdb/gdb.c: Likewise.
4927 * grub-core/gdb/i386/idt.c: Likewise.
4928 * grub-core/gdb/i386/machdep.S: Likewise.
4929 * grub-core/gdb/i386/signal.c: Likewise.
4930 * grub-core/lib/i386/backtrace.c: Likewise.
4931 * grub-core/lib/backtrace.c: Likewise.
4932 * include/grub/backtrace.h: Likewise.
4933 * include/grub/gdb.h: Likewise.
4934 * include/grub/i386/gdb.h: Likewise.
4936 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4938 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
4940 (add_length): Likewise.
4941 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
4942 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
4944 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
4945 __argp_get_display_len.
4947 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4949 $"..." support in scripts.
4951 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
4952 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
4953 * grub-core/script/yylex.l: Likewise.
4954 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
4957 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4959 * gentpl.py: Remove obsolete pkglib_DATA handling.
4961 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4963 Don't transform PACKAGE_TARNAME following a discussion on autoconf
4966 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
4967 * util/grub-kbdcomp.in: Likewise.
4968 * util/grub-mkconfig.in: Likewise.
4969 * util/grub-mkconfig_lib.in: Likewise.
4970 * util/grub-mknetdir.in: Likewise.
4971 * util/grub-mkrescue.in: Likewise.
4972 * util/grub-mkstandalone.in: Likewise.
4973 * util/grub-reboot.in: Likewise.
4974 * util/grub-set-default.in: Likewise.
4975 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4977 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4981 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
4982 * util/grub.d/00_header.in: Compute prefix in the only place it's still
4983 used for backward compatibility.
4985 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4987 Add new all_video module.
4989 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
4990 * grub-core/Makefile.core.def (all_video): New module.
4991 * grub-core/genmoddep.awk: Generate dependency of all_video from
4993 * grub-core/lib/fake_module.c: New file.
4994 * grub-core/normal/main.c (features): Add feature_all_video_module.
4995 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
4996 don't do explicit search again.
4997 insmod all_video in load_video if available.
4999 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5001 Another round of string clarification and adding TRANSLATORS comments.
5003 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5005 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5007 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5009 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5011 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5012 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5014 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5016 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5017 trailing newline implicitly. All users updated.
5019 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5021 Implement serial on IEEE1275 and EFI.
5023 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5024 on emu. Mention arc and emu as the only platforms without serial
5026 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5028 * grub-core/term/efi/serial.c: New file.
5029 * grub-core/term/ieee1275/serial.c: Likewise.
5030 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5031 specification if no ns8250 driver is available.
5032 (grub_cmd_serial): Likewise.
5033 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5034 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5035 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5036 (grub_efi_parity_type_t): New type.
5037 (grub_efi_stop_bits_t): Likewise.
5038 (grub_efi_serial_io_interface): New struct.
5039 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5040 available for all interfaces.
5041 Add EFI and IEEE1275 fields.
5042 (grub_ofserial_init): New proto.
5043 (grub_efiserial_init): Likeiwse.
5044 * util/grub.d/00_header.in: Don't check for the presence of serial
5047 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5049 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5050 name as if it was an alias.
5052 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5054 * grub-core/commands/lsacpi.c (options): Fix typo.
5056 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5058 Convert grub-emu to argp.
5060 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5062 * util/argp_common.c: Rename to ...
5063 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5064 Add missing includes.
5065 * grub-core/kern/emu/main.c: Convert to argp.
5066 * po/POTFILES.in: Regenerate.
5067 * util/grub-install.in (usage): Make first letter lowcase in messages
5069 * util/grub-setup.c (options): Likewise.
5071 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5073 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5074 Put back accidently commented-out code.
5076 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5078 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5079 loop check using Brent algorithm.
5080 (grub_hfsplus_btree_search): Likewise.
5082 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5084 * util/grub-install.in: Fix usage of wrong device for PreP install.
5086 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5088 * conf/Makefile.common (CFLAGS_GNULIB): Add
5089 -Wno-unsafe-loop-optimizations.
5090 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5092 * grub-core/commands/legacycfg.c: Add pragma to skip
5093 -Wunsafe-loop-optimizations.
5094 (check_password_md5_real): Fix loop counter type.
5095 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5097 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5098 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5100 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5101 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5102 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5104 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5105 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5106 avoid possible infinite loops.
5107 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5108 and -Wunsafe-loop-optimizations.
5109 * grub-core/script/yylex.l: Likewise.
5110 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5111 (print_glyphs): Avoid infinite loops.
5112 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5114 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5116 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5117 to avoid infinite loop.
5118 (disp_acpi_rsdt_table): Likewise.
5120 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5122 * grub-core/font/font.c (grub_font_load): Add support for default
5123 path for fonts ($prefix/fonts).
5124 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5125 for checking if string is a path.
5126 * grub-core/normal/main.c (features): Add feature_default_font_path.
5127 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5128 * util/grub.d/00_header.in: Use default directory if possible.
5129 * util/grub-install.in: Install unicode.pf2.
5131 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5133 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5134 * po/Rules-swiss: New file.
5135 * po/swiss.sed: Likewise.
5137 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5139 * grub-core/fs/btrfs.c (find_device): Fix typos.
5140 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5141 * util/grub-mkrelpath.c (argp_parser): Likewise.
5142 Reported by: Yuri Chornoivan.
5144 2012-02-23 Dalet Omega <daletomega@gmail.com>
5146 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5147 for usual informative messages.
5149 2012-02-23 Dalet Omega <daletomega@gmail.com>
5153 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5154 * conf/Makefile.common: Define starfielddir.
5155 * configure.ac: Configure starfield.
5156 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5157 * themes/starfield/README: Likewise.
5158 * themes/starfield/blob_w.png: Likewise.
5159 * themes/starfield/boot_menu_c.png: Likewise.
5160 * themes/starfield/boot_menu_e.png: Likewise.
5161 * themes/starfield/boot_menu_n.png: Likewise.
5162 * themes/starfield/boot_menu_ne.png: Likewise.
5163 * themes/starfield/boot_menu_nw.png: Likewise.
5164 * themes/starfield/boot_menu_s.png: Likewise.
5165 * themes/starfield/boot_menu_se.png: Likewise.
5166 * themes/starfield/boot_menu_sw.png: Likewise.
5167 * themes/starfield/boot_menu_w.png: Likewise.
5168 * themes/starfield/slider_c.png: Likewise.
5169 * themes/starfield/slider_n.png: Likewise.
5170 * themes/starfield/slider_s.png: Likewise.
5171 * themes/starfield/src/blob_nw.xcf: Likewise.
5172 * themes/starfield/src/bootmenu/: Likewise.
5173 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5174 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5175 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5176 * themes/starfield/src/slider_c.xcf: Likewise.
5177 * themes/starfield/src/slider_n.xcf: Likewise.
5178 * themes/starfield/src/slider_s.xcf: Likewise.
5179 * themes/starfield/src/terminalbox/: Likewise.
5180 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5181 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5182 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5183 * themes/starfield/starfield.png: Likewise.
5184 * themes/starfield/terminal_box_c.png: Likewise.
5185 * themes/starfield/terminal_box_e.png: Likewise.
5186 * themes/starfield/terminal_box_n.png: Likewise.
5187 * themes/starfield/terminal_box_ne.png: Likewise.
5188 * themes/starfield/terminal_box_nw.png: Likewise.
5189 * themes/starfield/terminal_box_s.png: Likewise.
5190 * themes/starfield/terminal_box_se.png: Likewise.
5191 * themes/starfield/terminal_box_sw.png: Likewise.
5192 * themes/starfield/terminal_box_w.png: Likewise.
5193 * themes/starfield/theme.txt: Likewise.
5195 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5197 * util/grub.d/00_header.in: Add missing export theme.
5199 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5201 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5203 Reported by: Eren D.
5205 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5207 * conf/Makefile.common (grubdatadir): Removed.
5208 (Makefile.am): Move eveything grubdata to pkgdata.
5210 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5212 * grub-core/commands/acpihalt.c (get_sleep_type):
5213 Remove unused variable.
5215 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5217 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5218 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5219 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5220 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5221 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5222 i18n with gettext no-op.
5223 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5224 GRUB_ACPI_OPCODE_STRING_CONST.
5225 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5226 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5228 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5230 * po/POTFILES.in: Regenerate.
5232 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5234 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5235 -Wno-error=missing-noreturn.
5237 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5239 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5240 condition to avoid possibly infinite loops.
5241 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5242 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5244 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5246 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5247 condition to avoid possibly infinite loops.
5249 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5251 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5254 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5256 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5258 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5260 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5262 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5264 * util/bin2h.c (usage): Add missing attribute noreturn.
5266 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5268 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5269 if the size isn't divisible by 512.
5271 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5273 Make list_push and list_remove functions rather than inline functions
5274 to decrease size and avoid aliasing violations.
5276 * include/grub/list.h (grub_list_push): Move to ...
5277 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5278 * include/grub/list.h (grub_list_remove): Move to ...
5279 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5281 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5283 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5284 and -Wunused-result.
5286 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5288 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5289 Reported by: Seth Goldberg
5291 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5293 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5295 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5297 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5298 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5300 * docs/grub.texi (Simple configuration): Document
5301 GRUB_CMDLINE_GNUMACH.
5303 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5305 * conf/Makefile.common (platform_SCRIPTS): New variable.
5306 (platform_PROGRAMS): Likewise.
5307 * gentpl.py: Mark *,module and *.image for install.
5308 * grub-core/gdb_grub.in: Add a notice of expected environment.
5309 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5310 (gmodule.pl): Likewise.
5312 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5314 Replace grub_checkkey with grub_getkey_noblock.
5316 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5317 (grub_getkey_noblock): ... this. All users updated.
5319 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5321 * grub-core/kern/emu/console.c: Move to ...
5322 * grub-core/term/emu/console.c: ...here.
5323 (grub_ncurses_getkey): Fix return value if no key is detected.
5325 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5327 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5328 (grub_unit_test_fini): Likewise.
5329 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5331 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5333 * include/grub/test.h (GRUB_UNIT_TEST)
5335 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5337 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5338 Better error handling.
5339 (grub_script_return): Likewise.
5340 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5342 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5344 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5345 rimplicit redifinition.
5347 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5349 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5352 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5354 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5355 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5358 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5360 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5361 as GRUB_ERR_BUG. Don't malloc if no device is available.
5363 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5365 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5366 Mark calling with invalid term as GRUB_ERR_BUG.
5368 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5370 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5371 packets rather than raising an error.
5373 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5375 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5378 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5380 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5381 diagnostic to dprintf.
5382 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5384 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5386 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5389 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5391 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5392 (grub_ntfs_iterate_dir): Likewise.
5394 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5396 Efiemu stylistic fixes and gettext.
5398 * grub-core/efiemu/i386/loadcore32.c
5399 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5400 * grub-core/efiemu/i386/loadcore64.c
5401 (grub_arch_efiemu_relocate_symbols64): Likewise.
5402 * grub-core/efiemu/i386/pc/cfgtables.c
5403 (grub_machine_efiemu_init_tables): Likewise.
5404 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5405 (grub_efiemu_loadcore_initXX): Add a filename argument.
5407 Improved error message.
5408 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5409 Add a filename argument.
5411 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5412 Reclassify double relocation as GRUB_ERR_BUG.
5414 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5416 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5419 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5421 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5424 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5426 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5428 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5430 Improve string. Gettextize.
5432 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5434 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5436 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5438 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5440 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5441 [GRUB_UTIL]: New function.
5442 (insert_array) [GRUB_UTIL]: Store partmaps.
5443 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5445 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5446 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5447 (probe_abstraction): Print diskfilter and not raid.
5448 Reported by: Lennart Sorensen
5450 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5452 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5453 * util/grub-mkimagexx.c (MASK3): New define.
5454 (add_value_to_slot_20b): Use MASK3.
5455 (add_value_to_slot_21): Likewise.
5456 (relocate_addresses): Fix format specification.
5457 (load_image): Explicitly init symtab_section.
5459 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5461 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5462 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5464 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5466 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5468 Reported by: Lennart Sorensen
5470 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5472 * gentpl.py: Add missing license header.
5473 * docs/grub.texi: Update copyright year.
5475 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5477 Source grub-mkconfig_lib from the build directory at build time.
5478 Suggested by: Vladimir Serbinenko.
5480 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5481 * util/grub-install.in: Define pkgdatadir if not already set, and source
5482 grub-mkconfig_lib from there.
5483 * util/grub-kbdcomp.in: Likewise.
5484 * util/grub-mkconfig.in: Likewise.
5485 * util/grub-mknetdir.in: Likewise.
5486 * util/grub-mkrescue.in: Likewise.
5487 * util/grub-mkstandalone.in: Likewise.
5488 * util/grub-reboot.in: Likewise.
5489 * util/grub-set-default.in: Likewise.
5490 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5492 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5494 Increase warning level.
5496 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5497 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5498 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5499 (TARGET_CFLAGS): Likewise.
5500 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5501 * grub-core/Makefile.core.def (decompressor_xz): Add
5502 -Wno-unreachable-code.
5503 (normal): Add -Wno-redundant-decls.
5504 (xzio): Add -Wno-unreachable-code.
5505 (lzopio): Add -Wno-redundant-decls -Wno-error.
5506 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5507 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5508 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5509 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5510 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5511 * grub-core/kern/i386/coreboot/init.c: Add exception to
5512 -Wsuggest-attribute=noreturn.
5513 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5514 * grub-core/kern/ia64/dl_helper.c: Likewise.
5515 * grub-core/kern/mips/dl.c: Likewise.
5516 * grub-core/kern/sparc64/dl.c: Likewise.
5517 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5518 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5520 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5521 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5522 * grub-core/loader/mips/linux.c: Likewise.
5523 * grub-core/loader/multiboot_elfxx.c: Likewise.
5524 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5525 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5526 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5527 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5529 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5530 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5533 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5535 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5538 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5540 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5541 Avoid improper use of strings.
5542 (grub_cmd_legacy_initrdnounzip): Likewise.
5544 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5546 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5548 (grub_util_info): Likewise.
5549 (grub_util_error): Likewise.
5551 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5553 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5554 * util/grub-fstest.c (fstest): Likewise.
5556 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5558 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5559 (grub_md_sha512_real): Likewise.
5560 (grub_util_get_geli_uuid): Likewise.
5561 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5562 (grub_util_biosdisk_open): Fix format specification.
5563 Respect format security.
5564 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5565 (xrealloc): Likewise.
5566 (xasprintf): Likewise.
5568 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5570 * util/import_gcry.py: Include grub/crypto.h in init.c.
5572 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5574 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5575 (generate_image): Make prefix a const char *.
5576 Fix format specifications. Respect format security.
5577 Avoid void * arithmetics.
5579 (argp_parser): Remove unused variable. Respect format security.
5580 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5581 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5582 (count_funcs): Remove unused variable.
5583 (relocate_addresses): Fix format specification.
5584 Disable x86-64 with elf32. Remove unused variables.
5585 (add_fixup_entry): Avoid shadowing.
5586 (make_reloc_section): Fix format specification.
5588 (locate_sections): Fix format specifications.
5589 (load_image): Avoid shadowing.
5591 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5593 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5594 Fix format specifications. Respect format security.
5595 Don't translate already translated grub_errmsg.
5596 (argp_parser): Remove unused variable
5598 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5600 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5602 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5604 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5605 (main): Likewise. Use xmalloc. Respect format security.
5607 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5609 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5611 (argp_parser): Remove unused variable.
5613 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5615 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5616 (add_pixel): Make static.
5617 (add_font): Likewise.
5618 (write_string_section): Make name and str a const char *.
5619 (write_be16_section): Make name a const char *.
5620 (print_glyphs): Make static.
5621 (write_font_ascii_bitmap): Likewise.
5622 (write_font_width_spec): Likewise.
5623 (write_font_pf2): Likewise.
5624 (argp_parser): Remove unused variable.
5625 Respect format security.
5626 (main): Avoid shadowing. Respect format security.
5628 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5630 * util/grub-editenv.c (argp_parser): Make static.
5631 (create_envblk_file): Use xmalloc.
5632 (open_envblk_file): Likewise.
5633 Resepect format security.
5634 (set_variables): Respect format security.
5636 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5638 * util/getroot.c (grub_find_device): Respect format security.
5639 (get_mdadm_uuid): Remove unused variable.
5640 (grub_util_pull_device): Dont call gettext on already translated
5642 (find_system_device): Remove unused variable.
5643 (grub_util_get_grub_dev): Likewise.
5644 (grub_make_system_path_relative_to_its_root): Respect format security.
5646 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5648 * util/grub-fstest.c (execute_command): Make first argument
5650 (read_file): Avoid shadowing.
5651 Reuse underlying error message if device open fails.
5652 (cmd_cmp): Respect format security.
5653 (root): Make const char *.
5654 (fstest): Remove args argument and use global copy.
5655 Respect format security.
5656 (argp_parser): Make static.
5657 (main): Make default_root const char *.
5659 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5661 * util/grub-mount.c (root): Make const char *.
5662 (execute_command): Make first argument a const char *.
5663 (fuse_init): Respect format security.
5664 (argp_parser): Make static. Remove unused variable.
5665 (main): Make default_root a const char *.
5666 Respect format security.
5668 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5670 * util/grub-probe.c (probe): Don't call gettext on already translated
5672 Remove unused variables.
5673 (argp_parser): Remove unused variable.
5675 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5677 * util/grub-script-check.c (argp_parser): Remove unused variable.
5678 (main): Rename read to curread to avoid shadowing.
5680 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5682 * util/misc.c (grub_util_write_image_at): Fix format specification.
5683 (grub_util_write_image): Likewise.
5684 (grub_script_execute_argument_to_string): Removed (unused).
5685 (grub_script_execute_menuentry): Likewise.
5686 (grub_putchar): Likewise.
5688 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5690 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5691 (FUNCTION) [GRUB_UTIL]: Likewise.
5692 (VARIABLE) [GRUB_UTIL]: Likewise.
5694 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5696 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5697 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5699 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5701 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5704 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5706 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5707 (LzmaEnc_SaveState): Removed (unused).
5708 (LzmaEnc_RestoreState): Likewise.
5709 (LzmaEnc_InitPriceTables): Made static.
5710 (LzmaEnc_Construct): Likewise.
5711 (LzmaEnc_FreeLits): Likewise.
5712 (LzmaEnc_Destruct): Likewise.
5713 (LzmaEnc_Init): Likewise.
5714 (LzmaEnc_InitPrices): Likewise.
5715 (LzmaEnc_Finish): Likewise.
5716 (LzmaEnc_PrepareForLzma2): Removed (unused).
5717 (LzmaEnc_MemPrepare): Likewise.
5718 (LzmaEnc_GetNumAvailableBytes): Likewise.
5719 (LzmaEnc_GetCurBuf): Likewise.
5720 (LzmaEnc_CodeOneMemBlock): Likewise.
5722 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5724 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
5725 (grub_util_ldm_embed): Likewise.
5727 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5729 * util/grub-editenv.c (print_var): Rename name to varname to
5731 (main): Rename index to curindex to avoid shadowing.
5732 Make filename a const char *.
5734 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5736 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5737 to arg_getline to avoid shadowing.
5739 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5741 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
5742 disk_ to avoid shadowing.
5744 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5746 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
5747 curindex to avoid shadowing.
5749 (MatchFinder_GetNumAvailableBytes): Make static.
5751 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5753 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
5756 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5758 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
5759 argument from encrypt to do_encrypt to avoid shadowing.
5761 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5763 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
5764 incorrect nesting of #if's.
5766 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5768 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
5769 checks which are always false on some platforms.
5770 (grub_cmd_lsacpi): Likewise.
5771 * grub-core/kern/misc.c (grub_strtoul): Likewise.
5772 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
5775 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5777 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
5778 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
5780 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5782 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
5783 re_dfa_t to avoid breaking alignment invariants.
5784 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
5785 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
5787 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5789 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
5790 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
5792 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5794 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
5797 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5799 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
5800 conserve alignment invariants.
5801 (grub_ehci_ehcc_read16): Likewise.
5802 (grub_ehci_oper_read32): Likewise.
5803 (grub_ehci_oper_write32): Likewise.
5804 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
5805 Conserve alignment invariants.
5807 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5809 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
5810 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
5813 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5815 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
5816 Remove unused variable.
5818 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5820 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
5823 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5825 * include/grub/net.h: Remove double declarations.
5827 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5829 Remove "payload" command in ia64 Linux loader since I couldn't
5830 find any evidence of it being used for anything.
5831 Replace "relocate" command with an environment variable
5833 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
5835 (ia64_boot_payload): Removed.
5836 (last_payload): Likewise.
5837 (RELOCATE_OFF): Likewise.
5838 (RELOCATE_ON): Likewise.
5839 (RELOCATE_FORCE): Likewise.
5840 (relocate): Likewise.
5841 (free_pages): Don't free payloads.
5842 (grub_load_elf64): Use common error messages.
5843 Use "linux_relocate" variable.
5844 Increase the space after boot_params.
5845 (grub_cmd_payload): Removed.
5846 (grub_cmd_relocate): Likewise.
5847 (grub_cmd_fpswa): Improve messages.
5848 (cmd_payload): Removed.
5849 (cmd_relocate): Likewise.
5850 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
5851 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
5853 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5855 Convert UHCI to DMA framework.
5857 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
5858 (grub_uhci_pci_iter): Fill new members
5859 (grub_alloc_td): Use P2V and V2P functions.
5860 (grub_free_queue): Likewise.
5861 (grub_alloc_qh): Likewise.
5862 (grub_uhci_setup_transfer): Likewise.
5863 (grub_uhci_check_transfer): Likewise.
5865 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5867 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
5868 Remove assignment in if while on it.
5870 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5872 * util/grub-mkstandalone.in: Fix modules directory.
5874 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5876 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
5878 (argp_parser): Accept "auto" as compression specification.
5880 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5882 Fix `help' with unloaded modules.
5884 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
5885 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
5886 (grub_dyncmd_dispatcher): Small stylistic fix.
5887 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
5888 explicit help is requested.
5890 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5892 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
5893 Explicitly init restart while on it.
5895 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5897 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
5900 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5902 * util/grub-mknetdir.in: Use . rather than source for POSIX
5905 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5907 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
5909 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5911 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
5914 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5916 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
5919 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5921 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
5923 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5925 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
5926 iteration of partitions.
5928 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5930 Improve gettext support. Stylistic fixes and error handling fixes while
5933 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
5935 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
5936 part. Instead setup the correct stack in RM.
5937 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
5939 * include/grub/i386/relocator_private.h: New file.
5941 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5943 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
5945 * util/grub-fstest.c (options): Add missing DEVICE part.
5947 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5949 Clarify and unify messages.
5951 * grub-core/commands/hashsum.c (options): Unify messages.
5952 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
5953 literal-only message as translatable.
5954 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
5955 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
5956 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
5958 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
5959 key, not the key used to unlock. Clarify what it's used for.
5960 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
5961 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
5962 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
5963 * util/grub-editenv.c (options): Unify "verbose" message.
5964 * util/grub-fstest.c (read_file): Unify error message.
5965 (fstest): Add quotes around commands.
5966 (options): Unify "verbose" message.
5967 * util/grub-install.in: Add quotes around variable name.
5968 * util/grub-kbdcomp.in: Unify error message.
5969 * util/grub-mkfont.c (main): Likewise.
5970 * util/grub-mkrescue.in: Likewise.
5971 * util/grub-mklayout.c (options): Unify "verbose" message.
5972 * util/grub-mkstandalone.in: Unify help and verbose messages.
5973 * util/grub-mount.c (options): Unify "verbose" message.
5974 * util/grub-probe.c (options): Likewise.
5975 * util/grub-script-check.c (options): Likewise.
5976 * util/grub-setup.c (setup): Unify no-terminator message.
5977 (options): Use DEVICE and not DEV.
5978 Unify "verbose" message.
5979 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
5981 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5983 Improve and unify messages.
5985 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
5986 name. All users updated.
5987 Print filename in error.
5988 (read_device_map): Print filename in error.
5989 * util/getroot.c (grub_guess_root_devices): Print filename in error.
5990 (grub_util_get_os_disk): Likewise.
5991 (grub_util_biosdisk_get_grub_dev): Likewise.
5992 (grub_util_check_block_device): Likewise.
5993 (grub_util_check_char_device): Likewise.
5994 (grub_make_system_path_relative_to_its_root): Likewise.
5995 * util/grub-editenv.c (create_envblk_file): Likewise.
5996 (open_envblk_file): Likewise.
5997 (write_envblk): Likewise.
5998 * util/grub-fstest.c (cmd_cp): Likewise.
5999 (cmd_cat): Likewise.
6000 (cmd_cmp): Likewise.
6001 * util/grub-menulst2cfg.c (main): Likewise.
6002 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6003 (write_font_width_spec): Likewise.
6004 (write_font_pf2): Likewise.
6005 * util/grub-mkimage.c (generate_image): New argument outname.
6007 Remove unreacheable message.
6008 (options): Unify messages.
6009 (help_filter): Likewise.
6010 * util/grub-mklayout.c (usage): Removed (unused).
6011 (main): Print filename in error.
6012 * util/grub-mkrescue.in: Fix wrong quoting.
6013 * util/grub-setup.c (setup): Print filename in error.
6014 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6015 (check_sas): Likewise.
6016 * util/misc.c (grub_util_get_fp_size): Removed.
6017 (grub_util_get_image_size): Print filename in error.
6018 (grub_util_read_at): Removed.
6019 (grub_util_read_image): Print filename in error.
6020 (grub_util_load_image): Likewise.
6021 (grub_util_write_image_at): New argument filename. All users updated.
6022 Print filename in error.
6023 (grub_util_write_image): New argument filename. All users updated.
6024 Print filename in error.
6025 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6026 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6028 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6030 * grub-core/Makefile.core.def (pxechain): New module.
6031 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6032 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6034 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6035 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6037 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6039 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6040 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6041 * include/grub/err.h (grub_error_saved): New struct.
6042 (grub_errmsg): Make array size explicit.
6043 * include/grub/misc.h (grub_error_save): New function.
6044 (grub_error_load): Likewise.
6045 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6046 (grub_error_push): Update `errno' member name.
6047 (grub_error_pop): Likewise
6048 * grub-core/net/tftp.c (tftp_data): New member save_err.
6049 (tftp_receive): Save error.
6050 (tftp_open): Restore error.
6052 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6054 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6055 to real mode down to execute A20-related code in protected mode as
6058 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6060 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6061 NULL when the argument `level' has an unexpected value.
6063 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6065 Move platform-dependent files from $prefix to $prefix/$platform.
6067 * config.h.in (GRUB_TARGET_CPU): New definition.
6068 (GRUB_PLATFORM): Likewise.
6069 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6070 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6071 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6072 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6073 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6074 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6075 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6076 * grub-core/normal/term.c (read_terminal_list): Likewise.
6077 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6079 (grub_gettext_init_ext): Likewise.
6080 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6082 * util/grub-install.in: Update directories.
6083 * util/grub-mknetdir.in: Likewise.
6084 * util/grub-mkrescue.in: Likewise.
6086 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6088 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6089 grub_error framework. All users updated.
6091 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6093 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6094 lists (by always binsearching), improve caching (cache strings
6095 used for binsearch, not only results), improve
6096 maintainability (by using more structured binary search) and correct
6099 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6101 * grub-core/script/execute.c (grub_script_return): Fix warning.
6103 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6105 * grub-core/script/execute.c (grub_script_return): Fix potential
6107 Reported by: Jim Meyering.
6109 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6111 * po/POTFILES.in: Regenerate.
6112 * util/grub-install.in: Gettextize the strings missed in first pass.
6114 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6116 * Makefile.util.def (grub-mkdevicemap): Removed.
6117 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6118 * include/grub/util/deviceiter.h: Removed.
6119 * util/deviceiter.c: Likewise.
6120 * util/getroot.c (grub_util_get_os_disk): New function.
6121 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6122 replacement for EFI.
6123 * util/grub-mkdevicemap.c: Removed.
6124 * util/grub-probe.c (probe): Handle PRINT_DISK.
6125 (argp_parser): Handle -t disk.
6127 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6129 * util/grub-mkfont.c: Migrate to argp.
6130 * util/grub-mklayout.c: Likewise.
6131 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6132 * util/grub-mkrelpath.c: Likewise.
6133 * util/grub-probe.c: Likewise.
6134 * util/grub-script-check.c: Likewise.
6136 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6138 * util/grub-reboot.in: Add missing datarootdir.
6139 Add missing newline.
6140 * util/grub-set-default.in: Add missing datarootdir.
6141 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6142 * util/grub-mkrescue.in: Likewise.
6144 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6146 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6148 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6150 * util/grub-kbdcomp.in: Add decent help and gettextize.
6151 * docs/man/grub-kbdcomp.h2m: New file.
6153 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6155 Migrate grub-mkimage.c to argp.
6157 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6158 (grub-setup): Likewise.
6159 * util/grub-setup.c (print_version): Move to ...
6160 * util/argp_common.c (print_version): ... here.
6161 * util/grub-setup.c (argp_program_version_hook): Move to ...
6162 * util/argp_common.c (argp_program_version_hook): ... here.
6163 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6165 * util/grub-mkimage.c (main): Migrate to argp.
6167 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6169 * util/grub-mkrescue.in: Use same message as
6170 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6171 for better translations.
6173 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6175 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6176 options with generic grub-mkrescue.in with the goal of future
6179 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6181 * grub-core/kern/mm.c: Add missing include of i18n.h
6182 * grub-core/lib/relocator.c: Likewise.
6184 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6186 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6188 (allocate_pages): Check return value.
6189 Replace fatal with error.
6190 (grub_linux_boot): Replace printf with dprintf.
6191 Check find_mmap_size return value.
6192 Replace fatal with error.
6193 Don't call grub_machine_fini.
6194 (grub_load_elf64): Replace printf with dprintf.
6195 (grub_cmd_linux): Likewise.
6196 (grub_cmd_initrd): Likewise.
6197 (grub_cmd_payload): Likewise.
6199 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6201 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6203 * grub-core/video/radeon_fuloong2e.c
6204 (grub_video_radeon_fuloong2e_setup): Likewise.
6205 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6206 * grub-core/video/video.c (grub_video_set_mode): Don't override
6207 standard out of memory message.
6209 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6211 NetBSD disk wedge support.
6213 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6214 [__NetBSD__]: Handle NetBSD disk wedges.
6215 * util/getroot.c (convert_system_partition_to_system_disk)
6216 [__NetBSD__]: Likewise.
6218 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6220 * util/grub-mkconfig.in: Use umask rather than chmod to create
6221 grub.cfg.new to avoid insecure grub.cfg.
6223 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6225 * grub-core/commands/ls.c: Gettextize.
6226 * grub-core/commands/setpci.c: Likewise.
6227 * grub-core/commands/videotest.c: Likewise.
6228 * grub-core/disk/geli.c: Likewise.
6229 * grub-core/kern/mm.c: Likewise.
6230 * grub-core/lib/relocator.c: Likewise.
6231 * grub-core/loader/efi/appleloader.c: Likewise.
6232 * grub-core/loader/i386/xnu.c: Likewise.
6233 * grub-core/loader/ia64/efi/linux.c: Likewise.
6234 * grub-core/loader/xnu.c: Likewise.
6235 * grub-core/net/dns.c: Likewise.
6236 * grub-core/net/net.c: Likewise.
6237 * grub-core/script/lexer.c: Likewise.
6238 * grub-core/script/parser.y: Likewise.
6239 * grub-core/script/yylex.l: Likewise.
6240 * util/getroot.c: Likewise.
6241 * util/grub-setup.c: Likewise.
6243 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6245 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6248 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6250 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6252 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6254 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6256 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6257 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6259 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6261 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6262 * util/grub-install.in: Gettextize.
6263 * util/grub-mkconfig.in: Likewise.
6264 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6266 (grub_warn): Gettextize.
6267 * util/grub-mknetdir.in: Gettextize.
6268 * util/grub-mkrescue.in: Likewise.
6269 * util/grub-mkstandalone.in: Likewise.
6270 * util/grub-reboot.in: Likewise.
6271 * util/grub-set-default.in: Likewise.
6272 * util/grub.d/00_header.in: Likewise.
6273 * util/grub.d/10_hurd.in: Likewise.
6274 * util/grub.d/10_kfreebsd.in: Likewise.
6275 * util/grub.d/10_linux.in: Likewise.
6276 * util/grub.d/10_netbsd.in: Likewise.
6277 * util/grub.d/10_windows.in: Likewise.
6278 * util/grub.d/20_linux_xen.in: Likewise.
6279 * util/grub.d/30_os-prober.in: Likewise.
6280 * po/POTFILES-shell.in: Regenerate.
6282 2012-02-03 Richard Laager <rlaager@wiktel.com>
6284 * util/grub-mkimage.c (main): Fix format-security warning.
6285 * util/grub-mkrelpath.c (main): Likewise.
6286 * util/grub-probe.c (main): Likewise.
6288 2012-02-03 Richard Laager <rlaager@wiktel.com>
6290 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6292 Put back lost PRINT_DRIVE.
6294 2012-02-03 Richard Laager <rlaager@wiktel.com>
6296 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6297 (grub_guess_root_devices): Replace strlen with sizeof.
6299 (find_root_devices_from_poolname): Remove unused variable.
6302 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6304 Support install on multi-device filesystems.
6306 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6307 (grub_guess_root_devices): ...this. Return char **. All users updated.
6308 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6310 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6311 (find_root_devices_from_poolname): ... here.
6312 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6314 (grub_guess_root_device): Rename to ...
6315 (grub_guess_root_devices): ... this. Return char **. All users updated.
6316 * util/grub-install.in: Handle multi-device filesystems.
6317 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6318 argument. All users updated.
6319 Handle multi-device filesystems.
6320 Use 'delim' as separator.
6321 Remove device check to allow filesystems on file.
6322 (main): Support -0 argument. Handle multi-device.
6323 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6324 Fix a cross-device check while on it.
6325 (arguments): Remove root_dev.
6326 (argp_parser): Remove -r.
6327 (main): Remove root_dev.
6329 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6331 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6333 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6335 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6337 Reported by: NODA, Kai <nodakai>.
6339 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6343 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6345 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6346 (grub_ehci_setup_qh): Likewise.
6347 (grub_ehci_find_qh): Likewise.
6348 (grub_ehci_transaction): Likewise.
6349 (grub_ehci_setup_transfer): Likewise.
6350 (grub_ehci_check_transfer): Likewise.
6351 (grub_ehci_portstatus): Likewise.
6352 (grub_ehci_detect_dev): Likewise.
6353 (grub_ehci_transfer_controller_data): New field td_last_phys.
6354 (grub_ehci_setup_transfer): Fill td_last_phys.
6355 (grub_ehci_check_transfer): Use td_last_phys.
6357 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6359 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6360 if no submenu is present.
6362 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6366 * include/grub/usb.h (grub_usbms_protocol_t): New values
6367 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6368 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6369 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6370 (grub_usbms_dev): Add subclass, protocol and intrpt.
6371 Remove in_maxsz and out_maxsz.
6372 (grub_usbms_reset): Rename to ...
6373 (grub_usbms_bo_reset): .. this.
6374 (grub_usbms_cbi_cmd): New function.
6375 (grub_usbms_cbi_reset): Likewise.
6376 (grub_usbms_reset): Likewise.
6377 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6378 (grub_usbms_transfer): Rename to ...
6379 (grub_usbms_transfer_bo): ... this.
6380 (grub_usbms_transfer_cbi): Likewise.
6381 (grub_usbms_transfer): Likewise.
6383 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6384 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6386 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6387 the support for the CS5536 modification thereos and few bugfixes.
6389 * grub-core/Makefile.core.def (ehci): New module.
6390 * grub-core/bus/usb/ehci.c: New file.
6391 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6392 port and hubaddr. All users updated.
6393 Save port and hubaddr into dev structure.
6394 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6396 * include/grub/pci.h (grub_dma_phys2virt): New function.
6397 (grub_dma_virt2phys): Likewise.
6398 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6400 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6402 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6403 check as some mkfs implementations omit it.
6405 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6407 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6409 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6411 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6412 Add new member volname2.
6413 (grub_jfs_label): Use volname2 if available.
6415 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6417 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6418 over last_mounted as seen in image generated by mkfs.nilfs2.
6419 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6421 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6423 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6424 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6425 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6427 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6429 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6432 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6434 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6435 subvolume name (by removing a bogus and useless check).
6437 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6439 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6442 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6444 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6445 (grub_scsi_read_capacity10): ... this.
6446 (grub_scsi_read_capacity16): New function.
6447 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6449 Fix off-by-one error.
6450 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6452 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6453 (grub_scsi_read_capacity10): ... this.
6454 (grub_scsi_read_capacity_data): Rename to ...
6455 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6456 (grub_scsi_read_capacity16): New struct.
6457 (grub_scsi_read_capacity16_data): Likewise.
6458 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6459 grub_scsi_cmd_read_capacity10.
6460 New command grub_scsi_cmd_read_capacity16.
6462 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6466 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6467 (grub_scsi_write16): Likewise.
6468 (grub_scsi_read): Use read16 when necessary.
6469 (grub_scsi_write): Likewise.
6470 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6471 (grub_scsi_write16): Likewise.
6472 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6474 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6476 SCSI write support (for usbms mainly).
6478 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6480 (grub_scsi_write): Implement.
6481 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6483 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6485 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6488 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6490 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6492 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6494 * po/POTFILES.in: Regenerate.
6496 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6498 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6499 with grub_printf to avoid unnecessary fatal failure.
6501 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6503 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6504 (INT_MAX): Likewise.
6505 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6506 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6507 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6511 (strncpy): Likewise.
6513 (strncat): Likewise.
6514 (strcoll): Likewise.
6515 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6516 (GRUB_INT_MAX): Likewise.
6518 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6520 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6522 (optimize_utf8): Likewise.
6523 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6525 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6527 * grub-core/boot/i386/pc/lnxboot.S: Use
6528 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6529 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6531 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6533 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6535 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6537 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6538 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6539 now to avoid double free.
6540 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6542 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6543 * util/grub-probe.c (escape_of_path): Always return a new copy.
6544 (print_full_name): Escape path.
6545 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6546 Fix hints on abstractions.
6548 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6550 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6551 Don't add "root" line if no compatibility hont is available.
6552 Suggested by: Seth Goldberg.
6554 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6556 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6557 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6558 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6559 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6561 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6563 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6565 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6567 * util/grub-pe2elf.c (ehdr): Make static.
6569 (num_sections): Likewise.
6572 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6574 Eliminate ofpath limits and possible overflows.
6576 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6577 (OF_PATH_MAX): Removed.
6578 (MAX_DISK_CAT): New const.
6579 (find_obppath): Use allocated rather than preallocated buffer.
6580 Return result. Argument of_path removed. All users updated.
6582 (xrealpath): New function.
6583 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6584 Allocate rather than use preallocated buffer. All users updated.
6585 (__of_path_common): Use allocated rather than preallocatecd buffer.
6586 Return result. Argument of_path removed. All users updated.
6587 (vendor_is_ATA): Read only needed part form the file.
6588 (check_sas): Allocate depending on contents rather than fixed.
6589 (main) [STANDALONE]: Handle NULL result.
6591 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6593 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6595 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6597 Cryptodisk write support.
6599 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6600 (grub_cryptodisk_decrypt): Moved logic to ...
6601 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6602 (grub_cryptodisk_write): Implement.
6603 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6604 (grub_util_fd_write): ... this. Make global.
6605 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6607 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6609 * include/grub/list.h (grub_list_remove): Don't crash if element is
6612 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6614 Rename ofconsole to console.
6616 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6617 as sysnonym to console.
6618 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6619 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6620 Rename grub_ofconsole_ to grub_console_. All users updated
6621 (grub_console_term_output): Rename "ofconsole" to "console".
6622 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6625 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6627 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6629 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6630 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6631 GRUB_DISK_DEVICE_FILE_ID.
6633 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6635 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6636 and improve performance.
6638 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6640 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6641 missing ieee1275/ prefix on whole disk.
6643 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6645 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6646 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6648 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6650 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6652 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6654 Merge common RAID and LVM logic to an abstract diskfilter.
6655 Add LDM support using the same framework.
6657 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6658 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6659 (libgrubmods): Remove grub-core/disk/raid.c and
6660 grub-core/partmap/gpt.c.
6661 * grub-core/Makefile.core.def (ldm): New module.
6662 (raid): Renamed to diskfilter. All users updated.
6663 * grub-core/disk/raid.c: Moved to ...
6664 * grub-core/disk/diskfilter.c: ... here.
6665 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6667 (find_array): Renamed to ...
6668 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6669 (grub_is_array_readable): Renamed to ...
6670 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6671 (insert_array): New argument id.
6672 (is_node_readable): New function.
6673 (scan_device): Rename to ...
6674 (scan_disk): .. this. Restrict to one disk.
6675 (scan_devices): New function.
6676 (grub_diskfilter_iterate): Support multi-LV.
6677 Skip invisible and nameless LVs.
6678 (grub_diskfilter_memberlist): Support multi-LV.
6679 (grub_diskfilter_read_node): New function.
6680 (grub_raid_read): Most of logic moved to ...
6681 (read_segment): ... here
6682 (read_lv): New function.
6683 (grub_diskfilter_get_vg_by_uuid): New function.
6684 (grub_diskfilter_make_raid): Likewise.
6685 * grub-core/disk/ldm.c: New file.
6686 * grub-core/disk/lvm.c (vg_list): Removed.
6687 (lv_count): Likewise.
6688 (scan_depth): Likewise.
6689 (is_lv_readable): Likewise.
6690 (grub_lvm_getvalue): Advance pointer past the number.
6692 (do_lvm_scan): Refactored into ...
6693 (grub_lvm_detect): ... this. Support raid.
6694 (grub_lvm_iterate): Removed.
6695 (grub_lvm_memberlist): Likewise.
6696 (grub_lvm_open): Likewise.
6697 (grub_lvm_close): Likewise.
6698 (read_lv): Likewise.
6699 (read_node): Likewise.
6700 (is_node_readable): Likewise.
6701 (is_lv_readable): Likewise.
6702 (grub_lvm_read): Likewise.
6703 (grub_lvm_write): Likewise.
6704 (grub_lvm_dev): Use diskfilter
6705 (GRUB_MOD_INIT): Likewise.
6706 (GRUB_MOD_FINI): Likewise.
6707 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6709 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
6710 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6711 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
6712 grub_diskfilter_read_node.
6714 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
6715 grub_diskfilter_read_node.
6716 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
6717 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
6718 (grub_disk_dev_iterate): Move from here...
6719 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
6720 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6722 (grub_hostdisk_find_partition_start): Likewise.
6723 (grub_hostdisk_os_dev_to_grub_drive): New function.
6724 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
6725 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
6726 * util/getroot.c (make_device_name): ... here.
6727 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6729 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
6730 * grub-core/kern/emu/hostdisk.c
6731 (convert_system_partition_to_system_disk): Move to ...
6732 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
6733 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
6734 * util/getroot.c (device_is_wholedisk): ... here.
6735 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
6736 * util/getroot.c (find_system_device): ... here.
6737 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
6739 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
6740 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
6742 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
6744 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6746 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
6747 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
6748 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
6750 * include/grub/raid.h: Renamed to ...
6751 * include/grub/diskfilter.h: ... this.
6752 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
6753 (GRUB_RAID_LAYOUT_*): Make into array.
6754 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
6755 (grub_diskfilter_vg): New struct.
6756 (grub_diskfilter_pv_id): Likewise.
6757 (grub_raid_member): Removed.
6758 (grub_raid_array): Likewise.
6759 (grub_diskfilter_pv): New struct.
6760 (grub_diskfilter_lv): Likewise.
6761 (grub_diskfilter_segment): Likewise.
6762 (grub_diskfilter_node): Likewise.
6763 (grub_diskfilter_get_vg_by_uuid): New proto.
6764 (grub_raid_register): Inline.
6765 (grub_diskfilter_unregister): Likewise.
6766 (grub_diskfilter_make_raid): New proto.
6767 (grub_diskfilter_vg_register): Likewise.
6768 (grub_diskfilter_read_node): Likewise.
6769 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
6770 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
6771 (grub_util_is_ldm): Likewise.
6772 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
6773 (grub_hostdisk_find_partition_start): Likewise.
6774 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
6775 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
6777 (grub_gpt_partition_map_iterate): New proto.
6778 * include/grub/lvm.h (grub_lvm_vg): Removed.
6779 (grub_lvm_pv): Likewise.
6780 (grub_lvm_lv): Likewise.
6781 (grub_lvm_segment): Likewise.
6782 (grub_lvm_node): Likewise.
6783 * util/getroot.c [...]
6784 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
6785 (probe_abstraction): Likewise.
6786 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
6787 (main): Remove dead logic.
6789 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
6791 Simplify root device discover and don't fail when trying to open
6794 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
6796 (get_diskname_from_path): Likewise.
6797 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
6800 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6802 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
6804 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6806 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6809 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6811 * util/grub-install.in: Add missing \.
6812 Reported by: gentoofan
6814 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6816 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
6817 (direct_read): Use correct compressed size.
6818 (grub_squash_read_data): Likewise.
6820 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6822 * docs/grub.texi (Platform limitations): New section.
6823 (Platform-specific operations): Likewise.
6824 * docs/grub-dev.texi (Porting): Likewise.
6826 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6828 IEEE1275 disk write support.
6830 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
6832 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
6833 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
6834 and seek loginc to ...
6835 (grub_ofdisk_prepare): ... here.
6836 (grub_ofdisk_write): Implement.
6838 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6840 ARC disk write support.
6842 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
6843 (reopen): New argument writable. All users updated.
6844 Handle required access mode.
6845 (grub_arcdisk_write): Implement.
6846 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
6847 (grub_arc_firmware_vector): Make buffer to write a const buffer.
6849 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6851 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
6852 (read_sblock): Don't attempt to read superblocks outside the disk size.
6854 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6856 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
6857 first superblock to find the second one when possible.
6859 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6861 * util/grub-install.in: Fix an ARC bug.
6862 Print a warning if no platform-specific setup is available.
6864 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6866 Use static allocation rather than scratch pointer in reed_solomon.
6867 It decreases its size significantly and avoids a variable in .text.
6869 * grub-core/lib/reed_solomon.c (scratch): Removed.
6870 (chosenstat): New const or static array.
6876 (errvals): Likewise.
6878 (pol_evaluate): Replace x with log_x argument. All users updated.
6879 (syndroms): Removed.
6880 (gauss_solve): Use statically allocated arrays.
6881 (rs_recover): Likewise.
6882 Calculate syndroms directly.
6883 (decode_block): Use statically allocated arrays.
6884 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
6885 (main) [TEST]: Allow -DTEST -DSTANDALONE.
6887 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6889 Eliminate fixed limit on reed solomon decoder length.
6891 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
6892 rather than hardcoding the address.
6893 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
6894 no_reed_solomon_length.
6895 Move gate_a20 to no-reed-solomon part.
6896 Don't force a particular size of no reed-solomon part.
6897 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6899 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
6900 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
6902 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6904 * grub-core/commands/wildcard.c (match_files): Handle filenames
6905 without explicit device.
6906 (wildcard_expand): Don't add explicit device if not already present.
6907 * tests/grub_script_echo1.in: Add a new expansion test.
6909 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6911 Replace single-linked with double-linked lists. It results in more
6912 compact and more efficient code.
6914 * grub-core/kern/list.c (grub_list_push): Moved from here ...
6915 * include/grub/list.h (grub_list_push): ... to here. Set prev.
6916 (grub_list_remove): Moved from here ...
6917 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
6918 (grub_prio_list_insert): Set prev.
6919 * include/grub/list.h (grub_list): Add prev. All users updated.
6921 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6923 Handle newer autotools. Add some missing quotes while on it.
6925 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
6926 (pkglib_DATA): Move grub-mkconfig_lib from here ...
6927 (pkgdata_DATA): ... here.
6928 * Makefile.util.def (update-grub_lib): Removed.
6929 * conf/Makefile.common (pkglib_DATA): Removed.
6930 (pkglib_SCRIPTS): Likewise.
6931 (pkgdata_DATA): New variable.
6932 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
6935 Remove unused variable while on it.
6936 * tests/util/grub-shell.in: Likewise.
6937 * util/grub-install.in: Likewise.
6938 * util/grub-mkconfig.in: Likewise.
6939 * util/grub-mknetdir.in: Likewise.
6940 * util/grub-mkrescue.in: Likewise.
6941 * util/grub-mkstandalone.in: Likewise.
6942 * util/grub.d/00_header.in: Likewise.
6943 * util/grub.d/10_hurd.in: Likewise.
6944 * util/grub.d/10_illumos.in: Likewise.
6945 * util/grub.d/10_kfreebsd.in: Likewise.
6946 * util/grub.d/10_linux.in: Likewise.
6947 * util/grub.d/10_netbsd.in: Likewise.
6948 * util/grub.d/10_windows.in: Likewise.
6949 * util/grub.d/20_linux_xen.in: Likewise.
6950 * util/grub.d/30_os-prober.in: Likewise.
6951 * util/update-grub_lib.in: Removed.
6953 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
6955 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
6956 a workaround for intel problem.
6958 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
6959 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6960 2012-01-23 pfsmorigo
6962 * util/grub-install.in: Support dd'in into PreP partition.
6963 * util/grub-probe.c (probe): Support discovering partition type.
6964 (main): Support -t msdos_parttype.
6966 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6968 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
6969 infinite recursion using counter.
6970 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
6971 init to skip it if the magic check fails.
6972 (dec_stream_header): Init s->crc32.
6974 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6975 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
6976 2012-01-22 Richard Laager <rlaager@wiktel.com>
6978 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
6980 (find_bestub): Determine correct size.
6981 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
6982 (scan_disk): Align the size down.
6983 Call check pool before find_bestub to have ashift.
6985 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6987 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
6988 dprintf in no-malloc zone.
6990 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
6992 * configure.ac: Add back in test for limits.h.
6994 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6996 Support 4K-sector NTFS.
6998 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
6999 (grub_ntfs_data): Remove blocksize.
7000 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7001 Remove data argument. All users updated.
7003 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7005 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7006 being in .text to avoid dprel references.
7007 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7008 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7009 (grub_arch_highmemsize): Likewise.
7010 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7011 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7012 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7014 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7016 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7018 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7019 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7021 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7023 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7025 (grub_set_datetime_cmos): Likewise.
7027 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7029 Make XZ compression parameters dependent on target and not host CPU.
7031 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7032 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7034 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7036 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7037 set but not used variable.
7039 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7041 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7042 created when no uuid support is compiled into mkfs.reiser.
7044 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7046 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7047 (utf8_to_macroman): Do the opposite.
7048 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7050 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7052 * configure.ac: Refise build qemu_mips w/o unifont.
7054 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7056 Eliminate grub_min/grub_max prone to overflow usage.
7058 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7059 (poll_nonroot_hub): Likewise.
7060 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7061 (grub_affs_label): Likewise.
7062 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7063 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7064 (grub_hfs_label): Likewise.
7065 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7066 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7067 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7068 (zap_leaf_array_get): Likewise.
7069 (dnode_get_path): Likewise.
7070 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7071 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7072 * grub-core/script/execute.c (grub_script_break): Likewise.
7073 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7075 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7076 * include/grub/misc.h (grub_min): Removed.
7077 (grub_max): Likewise.
7079 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7081 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7084 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7086 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7088 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7090 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7092 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7094 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7095 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7097 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7099 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7100 rather than a hack for grub_strncasemap.
7102 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7104 Support multiple initrds
7105 Note: part of this was accidently committed in r3739.
7107 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7109 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7110 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7111 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7112 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7113 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7115 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7117 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7118 disks with unknown size.
7119 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7121 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7123 Remove defines pertaining to arbitrary limits not affecting GRUB
7126 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7127 (EXT2_MAX_SYMLINKCNT): Likewise.
7128 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7129 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7130 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7131 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7132 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7133 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7134 (DN_MAX_OBJECT_SHIFT): Likewise.
7135 (DN_MAX_OFFSET_SHIFT): Likewise.
7136 (DN_MAX_OBJECT): Likewise.
7137 (DNODES_PER_LEVEL_SHIFT): Likewise.
7138 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7139 (SPA_MAXBLOCKSIZE): Likewise.
7140 (SPA_BLOCKSIZES): Likewise.
7141 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7142 (MZAP_MAX_BLKSZ): Likewise.
7144 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7146 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7147 handle NULL appropriately.
7150 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7154 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7156 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7157 * configure.ac: Fix efiemu check.
7159 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7161 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7163 Reported by: adamwill
7165 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7167 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7169 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7171 Fix handling of wide characters in gfxterm.
7173 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7174 (clear_char): Likewise.
7175 (paint_char): Skip code == NULL chars.
7176 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7178 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7180 * grub-core/normal/charset.c: Move comment to right place.
7182 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7184 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7185 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7186 (grub_affs_mount): Revert the correct version checking.
7188 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7190 * docs/grub.texi (Unicode): Mention several other unsupported features.
7192 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7194 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7195 case statements as compile-time one.
7196 (direct_read): Prevent spurious warnings.
7197 (grub_squash_read_data): Likewise.
7199 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7201 Various squash4 fixes and LZO and XZ support.
7203 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7204 Add xzembed source files.
7205 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7206 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7207 (grub_squash_inode): New subtype long_dir.
7208 (SQUASH_TYPE_LONG_DIR): New inode type.
7209 (COMPRESSION): New enum.
7210 (XZBUFSIZ): New const.
7211 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7212 (read_chunk): Use data->decompress.
7213 (zlib_decompress): New function.
7214 (lzo_decompress): Likewise.
7215 (xz_decompress): Likewise.
7216 (squash_mount): Set new data fields.
7217 (grub_squash_iterate_dir): Handle long dir.
7218 (squash_unmount): Free xzdec and xzbuf.
7219 (grub_squash_open): Check ino type.
7220 (direct_read): Stylistic fixes. Use data->decompress.
7221 (grub_squash_read_data): Likewise.
7222 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7223 (get_byte): Likewise.
7224 (grub_zlib_disk_read): Removed.
7225 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7226 (GRUB_POSIX_BOOL_DEFINED): New define.
7227 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7228 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7229 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7230 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7232 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7234 Don't override more informative errors.
7236 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7237 * grub-core/font/font.c (open_section): Likewise.
7238 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7239 filename. Don't override errors.
7240 (grub_cmd_openbsd_ramdisk): Don't override errors.
7241 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7242 (grub_cmd_initrd): Likewise.
7243 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7244 (grub_cmd_initrd): Likewise.
7245 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7246 (grub_cmd_linux): Likewise.
7247 (grub_cmd_initrd): Likewise.
7248 (grub_cmd_payload): Likewise.
7249 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7250 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7251 (grub_cmd_module): Likewise.
7252 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7253 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7254 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7255 (grub_cmd_xnu_mkext): Likewise.
7256 (grub_cmd_xnu_ramdisk): Likewise.
7257 (grub_xnu_check_os_bundle_required): Likewise.
7258 (grub_xnu_load_kext_from_dir): Likewise.
7259 (grub_cmd_xnu_kextdir): Likewise.
7260 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7262 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7264 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7265 as 1024 in block size field. Found on one of my test images.
7266 Small optimisation while on it.
7268 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7270 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7271 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7272 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7273 performance fixes while on it.
7274 (grub_sfs_close): Fix memory leak while on it.
7275 (grub_sfs_label): Convert Latin1 to UTF-8.
7277 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7279 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7280 space to avoid overflows.
7281 (grub_hfs_label): Convert from macroman to UTF-8.
7283 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7285 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7287 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7289 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7291 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7293 * unicode: Import Unicode 6.0 data.
7295 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7297 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7300 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7302 Avoid cutting in the middle of UTF-8 character.
7304 * include/grub/charset.h (grub_getend): New function.
7305 * grub-core/script/function.c (grub_script_function_find): Use
7307 * grub-core/normal/completion.c (add_completion): Likewise.
7309 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7311 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7312 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7313 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7314 (GRUB_UNICODE_TAG_END): Likewise.
7315 (GRUB_UNICODE_LAST_VALID): Likewise.
7317 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7319 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7320 len and make it smaller. All users updated.
7321 * util/import_unicode.py: Put length and not end character.
7324 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7326 Make better Unicode-compliant and unify some UTF-8 code pathes.
7328 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7330 (grub_is_valid_utf8): Use grub_utf8_process.
7331 Check resulting code range.
7332 (grub_utf8_to_ucs4): Use grub_utf8_process.
7333 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7336 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7338 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7340 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7342 * docs/grub.texi (Filesystems): Mention AFS.
7344 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7346 * docs/grub.texi (Filesystems): Clarify restrictions.
7347 (Regexp): Mention non-Unicode regexp behaviour.
7348 (Other): Mention non-Unicode matching behaviour.
7350 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7352 Make HFS implementation use MacRoman.
7354 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7355 (macroman): New const array.
7356 (macroman_to_utf8): New function.
7357 (utf8_to_macroman): Likewise.
7358 (grub_hfs_find_dir): Use utf8_to_macroman.
7359 (grub_hfs_dir): Use macroman_to_utf8.
7360 Set case_insensitive.
7362 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7364 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7366 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7368 Integrate hints into autogeneration scripts.
7370 * docs/grub.texi (Filesystems): Add a hostdisk example.
7371 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7372 (grub-probe): Add ofpath.
7373 * gentpl.py: Remove group nosparc64.
7374 * grub-core/commands/search.c (cache_entry): New struct.
7376 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7377 * grub-core/commands/search_wrap.c (options): Add platform-specific
7379 (grub_cmd_search): Handle platform-specific hints.
7380 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7381 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7382 (grub_util_biosdisk_data): Likewise.
7383 (grub_util_biosdisk_open): Set device_map.
7384 (read_device_map): Handle "" as indication of no map.
7386 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7387 (grub_util_biosdisk_get_compatibility_hint): New function.
7388 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7389 * include/grub/emu/hostdisk.h
7390 (grub_util_biosdisk_get_compatibility_hint): New proto.
7391 * util/grub-install.in: Don't call grub-mkdevicemap.
7392 Add platform-specific hint to load.cfg.
7393 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7394 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7395 hints. Set root preliminary to compatibility hint, not to OS name.
7396 * util/grub-probe.c (PRINT_*): Add hints.
7397 (print): Make static.
7398 (escape_of_path): New function.
7399 (guess_bios_drive): Likewise.
7400 (guess_efi_drive): Likewise.
7401 (guess_baremetal_drive): Likewise.
7402 (print_full_name): Likewise.
7403 (probe): Handle hints.
7405 * util/ieee1275/devicemap.c: Removed.
7406 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7408 (grub_util_devname_to_ofpath): Return NULL on failure.
7410 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7412 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7414 * po/POTFILES.in: Regenerated.
7416 Allow purely long options
7418 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7419 (SHORT_ARG_USAGE): Likewise.
7420 (grub_arg_show_help): Compare opt with help_options.
7421 (parse_option): Receive opt as argument. If makes big simplificatons.
7424 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7426 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7427 Restructure to avoid warning.
7429 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7431 * util/grub-install.in: Account for possible escaped comma in device
7434 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7436 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7439 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7441 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7442 allocation and zero-setting.
7443 (grub_ieee1275_get_devname): Check that alias is complete.
7445 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7447 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7450 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7452 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7454 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7455 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7456 Add ieee1275 prefix.
7458 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7460 * docs/grub.texi (Filesystems): Update.
7462 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7464 Support odc, newc and bigendian cpio formats.
7466 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7467 * grub-core/Makefile.core.def (newc): New module.
7469 (cpio_be): Likewise.
7470 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7473 (head) [MODE_ODC]: Adapt for the format.
7474 (head) [MODE_NEWC]: Likewise.
7475 (head) [!MODE_*]: Write fields of interest as arrays.
7476 (MAGIC_USTAR): Removed.
7477 (read_number) [MODE_NEWC]: Change to hex.
7478 (read_number) [!MODE_*]: Parse binary arrays.
7479 (grub_cpio_find_file): Factor out the code for better structure and
7480 always use read_number.
7481 (grub_cpio_mount): Use MAGIC and MAGIC2.
7482 (grub_cpio_dir): Exit on first hook non-0 return.
7483 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7484 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7485 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7486 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7487 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7488 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7489 * grub-core/fs/newc.c: New file.
7490 * grub-core/fs/odc.c: Likewise.
7491 * grub-core/fs/cpio_be.c: Likewise.
7493 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7495 Fix handling of tar numbers occupying the whole field.
7497 * grub-core/fs/cpio.c (read_number): New function.
7498 (grub_cpio_find_file): Use read_number instead of strtoull.
7500 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7503 occupying the whole field size.
7505 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7507 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7509 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7511 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7513 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7515 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7518 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7520 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7521 (mountinfo_entry): Increase the field size to take escaping into
7523 (find_root_device_from_libzfs): Add one byte to size of strings for
7526 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7528 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7530 * util/grub-setup.c (setup): Likewise.
7532 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7534 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7537 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7539 * docs/grub.texi (Internationalisation): New section.
7541 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7543 * docs/grub.texi (Loopback booting): New section.
7545 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7547 * util/grub-mkstandalone.in: Fix minor typo errors.
7549 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7551 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7553 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7554 net/icmp.c and net/icmp6.c.
7556 (priority_queue): Likewise.
7557 * grub-core/io/bufio.c: Rewritten.
7558 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7559 TYPE_WITH_CONFIGFILE_OPTION.
7560 (legacy_commands): Add bootp and dhcp.
7561 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7562 (grub_legacy_parse): Likewise.
7563 * grub-core/lib/priority_queue.c: New file.
7564 * grub-core/net/arp.c: Add missing license header.
7565 (arp_find_entry): Removed.
7566 (arp_find_entry): Likewise.
7567 (grub_net_arp_resolve): Rename to ...
7568 (grub_net_arp_send_request): ...this.
7569 (grub_net_arp_receive): New card argument.
7570 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7571 Set router and DNS server.
7572 (grub_net_configure_by_dhcp_ack): Handle routing information.
7573 (grub_cmd_bootp): Set checksum.
7574 (grub_bootp_init): Remove net_dhcp.
7575 * grub-core/net/dns.c: New file.
7576 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7578 (get_card_packet): Handle allocation.
7579 (grub_efinet_findcards): Set mtu.
7580 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7581 (get_card_packet): Handle allocation.
7583 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7584 (GRUB_MOD_INIT): Set mtu.
7585 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7587 (get_card_packet): Handle allocation.
7588 (grub_ofnet_findcards): Set mtu.
7589 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7591 (grub_net_recv_ethernet_packet): Handle IPv6.
7592 * grub-core/net/http.c: New file.
7593 * grub-core/net/icmp.c: Likewise.
7594 * grub-core/net/icmp6.c: Likewise.
7595 * grub-core/net/ip.c (ip6addr): New type.
7597 (reassemble): Likewise.
7598 (cmp): New function.
7599 (reassembles): New variable.
7600 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7602 (send_fragmented): New function.
7603 (grub_net_send_ip_packet): Rename to ...
7604 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7606 (grub_net_recv_ip_packets): Rename to ...
7607 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7608 (free_rsm): New function.
7609 (free_old_fragments): Likewise.
7610 (grub_net_recv_ip4_packets): New function.
7611 (grub_net_send_ip6_packet): Likewise.
7612 (grub_net_send_ip_packet): Likewise.
7613 (grub_net_recv_ip6_packets): Likewise.
7614 (grub_net_recv_ip_packets): Likewise.
7615 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7616 (LINK_LAYER_CACHE_SIZE): New const.
7617 (link_layer_find_entry): New function.
7618 (grub_net_link_layer_add_address): Likewise.
7619 (grub_net_link_layer_resolve_check): Likewise.
7620 (grub_net_link_layer_resolve): Likewise.
7621 (grub_net_ipv6_get_slaac): Likewise.
7622 (grub_net_ipv6_get_link_local): Likewise.
7623 (grub_cmd_ipv6_autoconf): Likewise.
7624 (parse_ip): Handle one number representation.
7625 (parse_ip6): New functoion.
7626 (match_net): Handle IPv6.
7627 (grub_net_resolve_address): Handle IPv6 and DNS.
7628 (grub_net_resolve_net_address): Handle IPv6.
7629 (route_cmp): New function.
7630 (grub_net_route_address): Find best route.
7631 (grub_net_addr_to_str): Handle IPv6.
7632 (grub_net_addr_cmp): New function.
7633 (grub_net_add_addr): Register local route.
7634 (print_net_address): Handle net address.
7635 (grub_net_poll_cards): Retransmit TCP.
7636 (grub_net_poll_cards_idle_real): Likewise.
7637 (have_ahead): New function.
7638 (grub_net_seek_real): Use underlying seek.
7639 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7640 * grub-core/net/tcp.c: New file.
7641 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7642 (cmp): New function.
7644 (tftp_receive): Handle unordered input.
7645 (destroy_pq): New function.
7646 (tftp_close): Close pq.
7647 * grub-core/net/udp.c: Put missing license header.
7648 (grub_net_udp_socket): New function.
7649 (udp_socket_register): Likewise.
7650 (grub_net_udp_close): Likewise.
7651 (grub_net_recv_udp_packet): Check checksum.
7652 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7653 * include/grub/misc.h (grub_memchr): New function.
7654 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7655 (grub_net_card_driver): Return buf in recv.
7656 (grub_net_slaac_mac_list): New struct.
7657 (grub_network_level_protocol_id): Add ipv6.
7658 (grub_net_network_level_addr): Likewise.
7659 (grub_net_network_level_net_addr): Likewise.
7660 (grub_net_app_protocol): Add seek.
7661 (grub_net_socket): Removed.
7662 (grub_net_sockets): Likewise.
7663 (grub_net_socket_register): Likewise.
7664 (grub_net_socket_unregister): Likewise.
7665 (FOR_NET_SOCKETS): Likewise.
7666 (grub_net_add_addr): Add const.
7667 (GRUB_NET_BOOTP_*): New enum.
7668 (grub_net_addr_cmp): New proto.
7669 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7670 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7671 (grub_net_hwaddr_to_str): NEw proto.
7672 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7673 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7674 (grub_dns_init): New proto.
7675 (grub_dns_fini): Likewise.
7676 (grub_net_tcp_retransmit): Likewise.
7677 (grub_net_link_layer_add_address): Likewise.
7678 (grub_net_link_layer_resolve_check): Likewise.
7679 (grub_net_link_layer_resolve): Likewise.
7680 (grub_net_dns_lookup): Likewise.
7681 (grub_net_add_dns_server): Likewise.
7682 (grub_net_remove_dns_server): Likewise.
7683 (GRUB_NET_TRIES): New const.
7684 (GRUB_NET_INTERVAL): Likewise.
7685 * include/grub/net/arp.h: Mostly rewritten.
7686 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7687 * include/grub/net/ip.h: Mostly rewritten.
7688 * include/grub/net/netbuff.h: Indent.
7689 * include/grub/net/tcp.h: New file.
7690 * include/grub/net/udp.h: Mostly rewritten.
7691 * include/grub/priority_queue.h: New file.
7692 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7693 (grub_swap_bytes64_compile_time): Likewise.
7694 (grub_cpu_to_be16_compile_time): Likewise.
7695 (grub_cpu_to_be32_compile_time): Likewise.
7696 (grub_cpu_to_be64_compile_time): Likewise.
7697 (grub_be_to_cpu64_compile_time): Likewise.
7699 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7701 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7702 UINT_TO_PTR with cast.
7704 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7706 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7709 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7711 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
7714 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7716 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
7719 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7721 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
7722 Add missing const attribute.
7723 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
7725 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
7728 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7730 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
7732 (serpent_setkey): Likewise.
7733 (serpent_encrypt_internal): Likewise.
7734 (serpent_decrypt_internal): Likewise.
7735 (serpent_encrypt): Don't put an alignment-increasing cast.
7736 (serpent_decrypt): Likewise.
7737 (serpent_test): Likewise.
7739 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7741 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
7743 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7745 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
7747 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
7749 (PTR_TO_UINT64): Likewise.
7750 (PTR_TO_UINT32): Likewise.
7752 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7754 * util/grub-mkimage.c (generate_image): Decrease the higher limit
7756 * util/grub-setup.c (setup): Don't add redundancy past the higher load
7759 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7761 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
7762 text_width > available width a bit more gracefully.
7764 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7766 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
7767 current address calculation.
7769 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7771 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
7773 (encode_block): Likewise.
7775 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7777 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
7780 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7782 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
7783 non-RS part to avoid RS messing with GDT.
7784 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7785 Increase to suit in realmode routines.
7787 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7789 * grub-core/kern/i386/realmode.S: Increase alignment.
7790 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
7792 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7794 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
7796 (syndroms): Compute 0 syndrom.
7797 (rs_recover): Use 0 syndrom.
7799 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7801 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
7803 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7805 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
7808 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7810 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
7812 (get_top_pad): Likewise.
7813 (get_right_pad): Likewise.
7814 (get_bottom_pad): Likewise.
7816 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7818 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
7820 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7822 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
7823 attribute as the structure isn't guaranteed to be properly aligned.
7824 (grub_efi_pci_device_path): Likewise.
7825 (grub_efi_pccard_device_path): Likewise.
7826 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
7827 specify the size of `memory_type'.
7828 (grub_efi_vendor_device_path): Likewise.
7829 (grub_efi_controller_device_path): Likewise.
7830 (grub_efi_acpi_device_path): Likewise.
7831 (grub_efi_expanded_acpi_device_path): Likewise.
7832 (grub_efi_atapi_device_path): Likewise.
7833 (grub_efi_scsi_device_path): Likewise.
7834 (grub_efi_fibre_channel_device_path): Likewise.
7835 (grub_efi_1394_device_path): Likewise.
7836 (grub_efi_usb_device_path): Likewise.
7837 (grub_efi_usb_class_device_path): Likewise.
7838 (grub_efi_i2o_device_path): Likewise.
7839 (grub_efi_mac_address_device_path): Likewise.
7840 (grub_efi_ipv4_device_path): Likewise.
7841 (grub_efi_ipv6_device_path): Likewise.
7842 (grub_efi_infiniband_device_path): Likewise.
7843 (grub_efi_uart_device_path): Likewise.
7844 (grub_efi_vendor_messaging_device_path): Likewise.
7845 (grub_efi_hard_drive_device_path): Likewise.
7846 (grub_efi_cdrom_device_path): Likewise.
7847 (grub_efi_vendor_media_device_path): Likewise.
7848 (grub_efi_file_path_device_path): Likewise.
7849 (grub_efi_protocol_device_path): Likewise.
7850 (grub_efi_piwg_device_path): Likewise.
7851 (grub_efi_bios_device_path): Likewise.
7853 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7855 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
7856 (grub_ucs4_to_utf8_alloc): Likewise.
7857 (grub_ucs4_to_utf8): Likewise.
7858 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
7859 (grub_ucs4_to_utf8_alloc): Likewise.
7861 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7863 AFFS never uses unicode.
7865 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
7866 (grub_latin1_to_utf8): New inline function.
7867 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
7869 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7871 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
7874 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7876 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
7877 (grub_squash_dirent_header): Likewise.
7878 (read_chunk): Don't double swap.
7879 (grub_squash_iterate_dir): Fix swap sizes.
7881 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7883 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
7885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7887 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
7888 (grub_hfs_iterate_dir): Likewise.
7890 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7892 Fix video on platforms where unaligned access is forbidden.
7893 Make several optimisations while on it.
7895 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
7896 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7897 (grub_video_fbblit_replace_32bit_1bit): Likewise.
7898 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7900 (grub_video_fbblit_replace_16bit_1bit):
7901 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7902 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7903 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
7904 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
7905 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7906 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7907 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
7908 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
7909 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
7910 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
7911 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
7912 (grub_video_fbblit_replace_index_RGB888): Likewise.
7913 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
7914 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
7915 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
7916 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
7917 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
7918 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7919 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7921 (grub_video_fbblit_blend_XXX565_1bit):
7922 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7923 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
7924 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
7926 * grub-core/video/fb/video_fb.c (common_blitter)
7927 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
7928 (grub_video_fb_create_render_target_from_pointer)
7929 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7930 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
7931 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
7933 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
7935 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7937 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
7938 HH22 and HM10 relocations.
7940 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7942 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
7944 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7946 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
7947 allocation succeeded.
7949 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7951 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
7952 argument a u8 pointer. All users updated.
7953 Handle unaligned buffers.
7955 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7957 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
7958 add_part to workaround compiler bug.
7960 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7962 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
7964 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7966 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
7967 Reserve alignment invariants.
7968 (grub_multiboot_load): Likewise.
7969 (retrieve_video_parameters): Likewise.
7970 (grub_multiboot_make_mbi): Likewise.
7972 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7974 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
7977 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7979 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
7980 (grub_pata_pio_write): Likewise.
7982 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7984 Add noreturn attributes and remove unreachable code.
7986 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
7988 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
7989 code. Mark as noreturn.
7990 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
7991 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
7992 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
7994 * grub-core/kern/main.c (grub_main): Mark as noreturn.
7995 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
7996 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
7997 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
7998 * include/grub/kernel.h (grub_main): Mark as noreturn.
7999 * include/grub/reader.h (grub_rescue_run): Likewise.
8001 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8003 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8004 redundant declaration.
8006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8008 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8009 redundant declaration.
8010 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8014 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8015 to ensure alignment.
8016 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8017 alignment. Ensure tmp alignment.
8018 (grub_cmd_hdparm): Ensure buf alignment.
8019 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8020 to ensure alignment.
8021 (grub_ata_dumpinfo): Ensure text alignment.
8022 (grub_atapi_identify): Preserve alignment invariant.
8023 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8025 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8027 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8028 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8029 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8030 * include/grub/misc.h (grub_reboot)
8031 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8032 (grub_halt) [__mips__]: Likewise.
8034 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8036 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8037 Remove redundant declaration.
8038 (grub_mmap_get_post64): Likewise.
8039 (grub_mmap_get_upper): Likewise.
8040 (grub_mmap_get_lower): Likewise.
8042 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8044 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8045 uint32_t * to ensure alignment.
8046 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8048 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8050 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8051 uint16_t * to ensure alignment.
8052 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8055 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8057 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8058 to ensure alignment.
8059 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8061 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8063 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8064 Handle unaligned pointers.
8067 (fixup): Use byte access instead of v16at.
8068 (find_attr): Fix imporper usage of v32at.
8069 (read_data): Likewise.
8070 (list_file): Handle byte-swapping and unaligned strings.
8071 (grub_ntfs_label): Likewise.
8073 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8075 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8076 as it's not necessarily aligned.
8078 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8080 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8081 redundant declaration.
8082 (grub_serial_init): Likewise.
8083 (grub_terminfo_init): Likewise.
8085 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8087 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8089 (ZAP_HASH_IDX): Likewise.
8090 (ZAP_LEAF_HASH_SHIFT): Likewise.
8091 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8092 (LEAF_HASH): Likewise.
8093 (ZAP_LEAF_NUMCHUNKS): Likewise.
8094 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8095 alignment invariants. Return pointer. All users updated.
8096 (ZAP_LEAF_ENTRY): Make into inline function.
8099 (xor_out): Use grub_crypto_xor.
8100 (dnode_get_path): Use grub_get_unaligned.
8101 (nvlist_find_value): Likewise.
8102 (grub_zfs_nvlist_lookup_uint64): Likewise.
8103 (grub_zfs_nvlist_lookup_string): Likewise.
8104 (get_nvlist_size): Likewise.
8105 (grub_zfs_open): Likewise.
8106 (fill_fs_info): Likewise.
8107 (grub_zfs_dir): Likewise.
8108 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8109 alignment invariants.
8110 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8111 necessarily aligned.
8113 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8115 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8117 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8119 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8120 arithmetic to conserve alignment invariants.
8122 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8124 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8125 redundant declaration.
8126 (grub_efiemu_mm_obtain_request): Likewise.
8127 (grub_efiemu_prepare): Likewise.
8129 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8131 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8134 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8136 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8137 case of aunaligned recptr.
8138 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8140 (grub_hfsplus_btree_search): Handle unaligned index.
8142 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8144 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8145 to get freetag and skip.
8147 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8149 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8151 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8152 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8154 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8157 name for checksum and fix allocation algorithm.
8159 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8161 * include/grub/types.h (grub_properly_aligned_t): New type.
8162 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8163 (grub_get_unaligned16): Add explicit casts.
8164 (grub_get_unaligned32): Likewise.
8165 (grub_get_unaligned64): Likewise.
8166 (grub_set_unaligned16): New function.
8167 (grub_set_unaligned32): Likewise.
8169 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8171 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8173 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8175 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8176 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8177 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8179 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8181 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8184 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8186 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8187 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8189 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8191 Unify and improve RAID and crypto xor.
8193 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8194 changed to grub_crypto_xor
8195 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8196 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8197 Use bigger types when possible.
8199 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8201 * grub-core/disk/raid.c (scan_devices): Fix condition.
8203 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8205 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8206 Make name a const ptr.
8208 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8210 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8211 first argument a const pointer.
8212 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8213 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8215 (grub_children_iterate): Likewise.
8216 (grub_machine_mmap_iterate): Remove redundant declaration.
8218 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8220 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8221 (grub_cmd_acpi) [!x86]: Disable EBDA.
8223 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8225 Enable UTF8 in gnulib regexp.
8227 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8228 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8229 (isupper): Use grub_isupper.
8230 (isascii): New inline function.
8231 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8232 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8233 * grub-core/normal/charset.c (grub_utf8_process): New function.
8234 (grub_utf8_to_utf16): Use grub_utf8_process.
8235 (grub_encode_utf8_character): New function.
8236 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8237 * include/grub/charset.h (grub_utf8_process): New declaration.
8238 (grub_encode_utf8_character): Likewise.
8239 * include/grub/misc.h (grub_islower): New inline function.
8240 (grub_isupper): Likewise.
8241 (grub_strchrsub): Moved down to fix the definitions.
8243 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8245 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8248 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8250 * include/grub/loader.h (grub_loader_register_preboot_hook):
8251 Use struct preboot * and not void * for handle. All users updated.
8252 (grub_loader_unregister_preboot_hook): Likewise.
8254 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8256 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8257 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8258 UTF-16-BE. All users updated.
8259 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8260 (grub_hfsplus_iterate_dir): Likewise.
8261 (grub_hfsplus_label): Likewise.
8263 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8265 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8267 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8269 Add missing const qualifiers.
8271 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8272 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8273 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8274 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8275 (grub_lvm_check_flag): Likewise.
8276 * grub-core/efiemu/i386/coredetect.c
8277 (grub_efiemu_get_default_core_name): Likewise
8278 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8279 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8280 * grub-core/fs/ntfs.c (fixup): Likewise.
8281 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8282 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8283 (fzap_lookup): Likewise.
8284 (zap_lookup): Likewise.
8285 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8286 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8287 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8288 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8289 (grub_freebsd_add_meta_module): Likewise.
8290 (grub_cmd_freebsd_module): Likewise.
8291 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8292 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8293 (grub_xnu_writetree_get_size): Likewise.
8294 (grub_xnu_writetree_toheap_real): Likewise.
8295 (grub_xnu_find_key): Likewise.
8296 (grub_xnu_create_key): Likewise.
8297 (grub_xnu_create_value): Likewise.
8298 (grub_xnu_register_memory): Likewise.
8299 (grub_xnu_check_os_bundle_required): Likewise.
8300 (grub_xnu_scan_dir_for_kexts): Likewise.
8301 (grub_xnu_load_kext_from_dir): Likewise.
8302 * grub-core/normal/color.c (color_list): Likewise.
8303 * grub-core/normal/completion.c (current_word): Likewise.
8304 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8305 * grub-core/term/serial.c (grub_serial_find): Likewise.
8306 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8307 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8309 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8310 (grub_freebsd_add_meta_module): Likewise.
8311 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8312 * include/grub/net.h (grub_net_card_driver): Likewise.
8313 (grub_net_card): Likewise.
8314 (grub_net_app_protocol): Likewise.
8315 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8316 * include/grub/serial.h (grub_serial_find): Likewise.
8317 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8318 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8319 (grub_xnu_create_value): Likewise.
8320 (grub_xnu_find_key): Likewise.
8321 (grub_xnu_scan_dir_for_kexts): Likewise.
8322 (grub_xnu_load_kext_from_dir): Likewise.
8324 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8325 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8326 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8328 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8330 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8332 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8334 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8336 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8337 (read_device): Fix size calculation.
8339 2011-11-25 Robert Millan <rmh@gnu.org>
8341 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8342 (find_root_device_from_libzfs): Add zpool output parser to be used
8343 as fallback when libzfs isn't available.
8345 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8347 * po/Makefile.in.in: Add missing escape-continuation.
8349 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8351 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8353 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8355 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8357 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8359 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8361 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8363 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8365 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8367 * grub-core/lib/adler32.c: Add missing license specification.
8368 * grub-core/lib/crc64.c: Likewise.
8369 * grub-core/loader/i386/pc/plan9.c: Likewise.
8370 * grub-core/partmap/plan.c: Likewise.
8372 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8374 Add facility to debug GRUB with gdb under qemu.
8376 * grub-core/gdb_grub.in: New file.
8377 * grub-core/gmodule.pl.in: Likewise.
8378 * grub-core/Makefile.core.def (gmodule.pl): New script.
8379 (gdb_grub): Likewise.
8381 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8383 * util/grub-mount.c (argp_parser): Accept relative pathes.
8384 * util/grub-fstest.c (argp_parser): Likewise.
8386 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8390 * Makefile.util.def (libgrubmods): Add
8391 grub-core/partmap/plan.c.
8392 * docs/grub.texi: Notice Plan9 support.
8393 * grub-core/Makefile.core.def (plan9): New module.
8394 (part_plan): Likewise.
8395 * grub-core/loader/i386/pc/plan9.c: New file.
8396 * grub-core/partmap/plan.c: Likewise.
8397 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8399 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8400 * include/grub/mm.h (grub_extend_alloc): New inline function.
8402 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8404 Make Reed-Solomon faster by using power of generator representation of
8407 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8408 (gf_double_t): Likewise.
8409 (gf_invert): Removed.
8410 (gf_powx): New array.
8411 (gf_powx_inv): Likewise.
8412 (scratch): Move higher.
8413 (gf_reduce): Removed.
8415 (gf_invert): Likewise.
8416 (init_inverts): Replaced with ...
8417 (init_powx): ...this. All users updated.
8418 (pol_evaluate): Replace multiplications with additions.
8419 (rs_encode): Likewise.
8420 (gauss_eliminate): Call gf_invert.
8421 (grub_reed_solomon_add_redundancy): Call init_powx.
8422 (grub_reed_solomon_recover): Call init_powx unconditionally.
8424 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8426 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8428 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8430 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8431 disk->partiton for safety.
8433 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8435 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8437 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8439 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8441 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8443 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8445 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8447 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8449 Fix spaces handling in proc/self/mountinfo.
8451 * util/getroot.c (unescape): New function.
8452 (grub_find_root_device_from_mountinfo): Use unescape.
8454 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8456 Support ZFS embedding.
8458 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8459 (grub_zfs_fs): Register grub_zfs_embed.
8461 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8463 Fix MIPS compilation.
8465 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8466 * include/grub/offsets.h: Rename decompressor fields from
8467 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8468 * util/grub-mkimage.c (image_targets): Use new names.
8470 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8472 Defer multiboot device parsing until we're in compressed part.
8474 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8475 bsd_part. setdevice has fallen into disuse.
8476 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8477 (bsd_part): Likewise.
8478 (boot_dev): New variable.
8479 (multiboot_trampoline): Don't parse multiboot device.
8480 Pass multiboot device in %edx.
8481 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8483 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8485 * grub-core/kern/i386/pc/startup.S: Save edx.
8486 (grub_boot_drive): Removed.
8487 (grub_install_dos_part): Likewise.
8488 (grub_install_bsd_part): Likewise.
8489 (grub_boot_device): New variable.
8490 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8491 (grub_install_bsd_part): Likewise.
8492 (grub_boot_drive): Likewise.
8493 (grub_boot_device): New variable.
8494 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8496 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8497 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8498 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8499 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8500 * util/grub-install.in: Remove redundant condition.
8502 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8504 Fix bug introduced by previous commit.
8506 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8508 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8510 Use decompressors framework on i386-pc. It increases core size
8511 by 46 bytes but improves compatibility and maintainability.
8513 * grub-core/Makefile.core.def (lzma_decompress): New image.
8514 (kernel): Add i386_pc_ldflags.
8515 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8516 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8517 to real_to_prot, prot_to_real and device info.
8518 * include/grub/offsets.h: Renamed decompressor offsets.
8519 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8520 (image_target_desc): Remove raw_size and rename decompressor fields.
8521 (compress_kernel): Handle lzma.
8522 (generate_image): Handle decompressors on i386-pc.
8524 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8526 * configure.ac: Add -fno-asynchronous-unwind-tables.
8528 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8530 Move assembly code to C by using intwrap. It increases core size
8531 by 88 bytes but improves compatibility and maintainability.
8533 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8534 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8535 ... here. Translated to C.
8536 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8537 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8538 ... here. Translated to C.
8539 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8540 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8541 ... here. Translated to C.
8542 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8543 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8544 ... here. Translated to C.
8545 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8546 * grub-core/term/i386/pc/console.c (grub_console_cls):
8547 ... here. Translated to C.
8548 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8549 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8550 ... here. Translated to C.
8551 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8552 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8554 * grub-core/term/i386/pc/console.c (int10_9): New function.
8555 (grub_console_putchar): Likewise.
8556 * include/grub/i386/pc/console.h: Removed the not anymore shared
8559 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8561 Move grub_chainloader_real_boot out of the kernel.
8563 * grub-core/Makefile.am: Remove machine/loader.h.
8564 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8566 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8568 (grub_relocator16_keep_a20_enabled): Likewise.
8569 (grub_relocator16_boot): Fill new variables.
8570 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8571 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8573 (grub_chainloader_unload): Likewise.
8574 (grub_chainloader_cmd): Likewise.
8575 * include/grub/i386/pc/loader.h: Removed.
8576 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8577 and esi. All initialisers updated.
8579 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8580 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8582 * Makefile.util.def (grub-mount): New util.
8583 * .bzrignore: Add grub-mount.
8584 * configure.ac: Check for fuse and enable grub-mount if available.
8585 * docs/man/grub-mount.h2m: New file.
8586 * util/grub-mount.c: Likewise.
8588 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8590 * grub-core/commands/efi/fixvideo.c: Gettextize.
8591 * grub-core/commands/hashsum.c: Likewise.
8592 * grub-core/commands/i386/cmostest.c: Likewise.
8593 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8594 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8595 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8596 * grub-core/commands/lsmmap.c: Likewise.
8597 * grub-core/commands/menuentry.c: Likewise.
8598 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8599 * grub-core/commands/setpci.c: Likewise.
8600 * grub-core/loader/i386/bsd.c: Likewise.
8601 * grub-core/loader/i386/linux.c: Likewise.
8602 * util/getroot.c: Likewise.
8603 * util/grub-editenv.c: Likewise.
8604 * util/grub-fstest.c: Likewise.
8605 * util/grub-mkfont.c: Likewise.
8606 * util/grub-mkimage.c: Likewise.
8607 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8608 * util/grub-pe2elf.c: Likewise.
8609 * util/grub-probe.c: Likewise.
8610 * util/grub-setup.c: Likewise.
8611 * util/ieee1275/ofpath.c: Likewise.
8612 * util/misc.c: Likewise.
8613 * util/raid.c: Likewise.
8615 2011-11-11 Robert Millan <rmh@gnu.org>
8617 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8618 __attribute__((unused)) from `os_dev', which *is* being used.
8620 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8622 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8624 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8625 GRUB_IA64_DL_GOT_ALIGN.
8626 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8627 GRUB_IA64_DL_TRAMP_ALIGN.
8629 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8631 Replace grub_fatal with normal errors in i386 linux loader.
8633 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8634 (allocate_pages): Check find_efi_mmap_size return value.
8635 (grub_e820_add_region): Return error.
8636 (grub_linux_boot): Check mmap return value.
8638 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8640 * grub-core/commands/acpihalt.c: Gettextized.
8641 * grub-core/commands/cacheinfo.c: Likewise.
8642 * grub-core/commands/cmp.c: Likewise.
8643 * grub-core/commands/efi/loadbios.c: Likewise.
8644 * grub-core/commands/gptsync.c: Likewise.
8645 * grub-core/commands/ieee1275/suspend.c: Likewise.
8646 * grub-core/commands/legacycfg.c: Likewise.
8647 * grub-core/commands/memrw.c: Likewise.
8648 * grub-core/commands/minicmd.c: Likewise.
8649 * grub-core/commands/parttool.c: Likewise.
8650 * grub-core/commands/time.c: Likewise.
8651 * grub-core/commands/videoinfo.c: Likewise.
8652 * grub-core/disk/geli.c: Likewise.
8653 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8654 * grub-core/disk/luks.c: Likewise.
8655 * grub-core/disk/lvm.c: Likewise.
8656 * grub-core/font/font_cmd.c: Likewise.
8657 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8658 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8659 * grub-core/gfxmenu/view.c: Likewise.
8660 * grub-core/kern/emu/hostdisk.c: Likewise.
8661 * grub-core/kern/emu/main.c: Likewise.
8662 * grub-core/kern/emu/misc.c: Likewise.
8663 * grub-core/kern/emu/mm.c: Likewise.
8664 * grub-core/kern/mips/arc/init.c: Likewise.
8665 * grub-core/kern/mips/loongson/init.c: Likewise.
8666 * grub-core/kern/partition.c: Likewise.
8667 * grub-core/lib/i386/halt.c: Likewise.
8668 * grub-core/lib/mips/arc/reboot.c: Likewise.
8669 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8670 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8671 * grub-core/loader/i386/xnu.c: Likewise.
8672 * grub-core/loader/multiboot.c: Likewise.
8673 * grub-core/net/bootp.c: Likewise.
8674 * grub-core/net/net.c: Likewise.
8675 * grub-core/normal/term.c: Likewise.
8676 * grub-core/partmap/bsdlabel.c: Likewise.
8677 * grub-core/parttool/msdospart.c: Likewise.
8678 * grub-core/term/gfxterm.c: Likewise.
8679 * grub-core/term/terminfo.c: Likewise.
8680 * grub-core/video/i386/pc/vbe.c: Likewise.
8681 * util/grub-menulst2cfg.c: Likewise.
8682 * util/grub-mkdevicemap.c: Likewise.
8683 * util/grub-mklayout.c: Likewise.
8684 * util/grub-mkrelpath.c: Likewise.
8685 * util/grub-script-check.c: Likewise.
8686 * util/ieee1275/grub-ofpathname.c: Likewise.
8687 * util/resolve.c: Likewise.
8689 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8691 Support %1$d syntax.
8693 * tests/printf_unit_test.c: New file.
8694 * Makefile.util.def (printf_test): New test.
8695 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8697 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8699 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8702 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8704 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8706 * grub-core/font/font.c (grub_font_load): Likewise.
8708 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8710 * util/grub-macho2img.c: Add comment concerning gettext.
8711 * grub-core/lib/legacy_parse.c: Likewise.
8713 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8715 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
8716 (grub_xvasprintf): Likewise.
8718 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8720 Add const keyword to grub_env_get and gettextize week days.
8722 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
8723 (grub_read_hook_datetime): Return const char *.
8724 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
8726 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8728 (grub_get_weekday_name): Return const char *. Call gettext.
8729 * grub-core/script/argv.c (grub_script_argv_append): Receive const
8730 char * and len as the argument. All users updated.
8731 (grub_script_argv_split_append): Receive const char *.
8732 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
8733 * include/grub/env.h (grub_env_get): Likewise.
8734 (grub_env_read_hook_t): Return const char *.
8735 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
8736 (grub_script_argv_split_append): Likewise.
8738 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8740 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
8742 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8744 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
8745 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
8747 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8749 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
8752 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8754 Fix mips compilation.
8756 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
8758 (hashes): Use in embed decoder as well (for sizes).
8759 (dec_stream_header): Fix embed decompressor logic.
8760 (dec_stream_footer): Likewise.
8762 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8764 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
8765 an error and not a fatal on unrecognised relocation types.
8767 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8769 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
8770 Issue error rather than printf on unknown arguments.
8772 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8774 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
8777 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8779 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
8782 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8784 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
8785 leftover debug printf.
8787 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8789 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
8791 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8793 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
8796 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8798 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
8800 2011-11-10 Shea Levy <slevy@tieronedesign.com>
8802 Allow all modules to perform serial IO
8804 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
8805 * include/grub/serial.h (grub_serial_port_configure): New inline
8807 (grub_serial_port_fetch): Likewise.
8808 (grub_serial_port_put): Likewise.
8809 (grub_serial_port_fini): Likewise.
8810 (grub_serial_find): New proto.
8812 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8814 Put symlink at the end of the node and fix a potential
8817 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
8818 Make symlink into an array.
8819 (set_rockridge): Set have_symlink and alloc_dirents.
8820 (grub_iso9660_read_symlink): Use new layout.
8821 (grub_iso9660_iterate_dir): Fix memory corruption.
8823 (grub_iso9660_dir): Set have_symlink.
8824 (grub_iso9660_open): Likewise.
8826 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8828 Remove local keyword.
8830 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
8831 (version_test_gt): Likewise.
8832 (version_find_latest): Likewise.
8833 (gettext_printf): Likewise.
8834 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
8836 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8838 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
8840 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8842 Fix ZFS memory and resource leaks.
8844 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
8847 (fill_vdev_info): New parameter inserted. All users updated.
8848 (check_pool_label): Likewise.
8849 (scan_disk): Likewise.
8850 (scan_devices): Close non-inserted disks.
8851 (fzap_iterate): Free l.
8852 (unmount_device): Free children descripto memory.
8854 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8856 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
8857 argument (access out of bounds).
8859 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
8864 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8866 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
8869 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8871 Fix several memory leaks.
8873 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
8874 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
8875 (grub_cpio_dir): Likewise.
8876 * grub-core/fs/fat.c (grub_fat_label): Likewise.
8877 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
8878 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
8879 (grub_romfs_label): Likewise.
8880 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
8881 (squash_unmount): New function.
8882 (grub_squash_dir): Fix memory leak.
8883 (grub_squash_open): Likewise.
8884 (grub_squash_read): Likewise.
8885 (grub_squash_mtime): Likewise.
8886 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
8887 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
8888 * util/grub-fstest.c (fstest): Likewise.
8890 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8892 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
8893 avoid accessing beyond the array.
8895 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8897 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
8899 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8903 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
8904 (GRUB_AFFS_FLAG_FFS): Removed.
8905 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
8906 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
8907 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
8908 (grub_fshelp_node): Make block 32-bit.
8909 Add block_cache and last_block_cache.
8910 (grub_affs_read_block): Fill and use block cache.
8911 (grub_affs_read_file): Removed.
8912 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
8914 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
8916 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
8918 (grub_affs_close): Free block cache.
8919 (grub_affs_read): Use grub_fshelp_read_file directly.
8921 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8923 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
8926 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8928 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
8930 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
8933 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8935 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
8937 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
8938 byteswap when needed.
8940 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8942 Fix FreeBSD compilation.
8944 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
8945 to avoid circular dependency.
8946 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
8947 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
8948 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
8950 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8952 Fix ZFS crypto error types.
8954 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
8955 (grub_gcm_decrypt): Likewise.
8956 (grub_zfs_load_key_real): Fix error code type. Handle possible error
8959 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8963 * Makefile.util.def (10_illumos): New script.
8964 * configure.ac: Set COND_HOST_ILLUMOS.
8965 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
8966 Support Illumos calls.
8967 (find_partition_start) [__sun__]: Likewise.
8968 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
8969 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
8970 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
8971 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
8973 * util/grub-probe.c (probe) [__sun__]: Do character check.
8974 * util/grub.d/10_illumos.in: New file.
8976 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8978 Support escaped commas in hostdisk.
8980 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
8981 (find_grub_drive): Use unescape_cmp.
8982 (make_device_name): Escape commas.
8984 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8986 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
8988 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8990 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
8993 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8995 Support trampoline jumps on powerpc.
8997 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
8999 (grub_dl_load_segments): Set mod->sz.
9000 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9002 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9004 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9006 (trampoline): New struct.
9007 (trampoline_template): New const.
9008 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9009 * include/grub/dl.h (grub_dl): Add sz element.
9010 [__powerpc__]: Follow __ia64__.
9011 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9012 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9013 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9014 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9016 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9020 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9021 * grub-core/Makefile.core.def (zfscrypt): New module.
9022 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9023 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9024 it. All users updated.
9025 (grub_zfs_decrypt): New var.
9026 (grub_zfs_load_key): Likewise.
9027 (zio_checksum_functions): Add SHA256+MAC.
9028 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9029 (zio_read): Handle encrypted blocks.
9030 (zap_verify): Remove incorrect check.
9031 (fzap_iterate): Handle non-standard fzap.
9032 (zap_iterate): Likewise.
9033 (zap_iterate_u64): New function.
9034 (dnode_get_fullpath): Load keys.
9035 * grub-core/fs/zfs/zfscrypt.c: New file.
9036 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9037 (grub_crypto_ecb_encrypt): Make input const.
9038 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9039 (grub_crypto_ecb_encrypt): Make input const.
9040 (GRUB_CIPHER_AES): New macro.
9041 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9042 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9043 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9044 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9045 prefix. All users updated.
9046 (grub_zfs_add_key): New proto.
9047 (grub_zfs_decrypt): Likewise.
9048 (grub_zfs_load_key): Likewise.
9049 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9050 * util/grub-fstest.c (options): Add -K option.
9051 (argp_parser): Likewise.
9053 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9055 Support zle compression on ZFS.
9057 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9058 (decomp_table): Add zle.
9059 * include/grub/zfs/zio.h (zio_compress): Add zle.
9061 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9063 Support BtrFS embedding.
9065 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9066 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9067 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9068 * util/grub-setup.c (setup): Use fs embedding if available.
9069 Add additional sanity check.
9071 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9073 * util/grub-install.in: Fix condition for config_opt.
9075 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9077 Support third redundancy strip on raidz3.
9079 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9080 Return error on singularity. All users updated.
9081 (read_device): Don't stop on 3rd failure on raidz3.
9083 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9085 Support case-insensitive ZFS subvolumes.
9087 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9089 (zap_hash): Likewise.
9090 (name_cmp): New function.
9091 (zap_leaf_array_equal): New parameter case_insensitive.
9093 (zap_leaf_lookup): Likewise.
9094 (fzap_lookup): Likewise.
9095 (zap_lookup): Likewise.
9096 (dnode_get_path): New parameter case_insensitive. Retrieve case
9097 sensitiviness of a volume. All users updated.
9098 (dnode_get_fullpath): New parameter case_insensitive.
9100 (grub_zfs_dir): Set info.case_insensitiveness.
9102 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9104 Support second redundancy strip on raidz(2,3).
9106 * grub-core/fs/zfs/zfs.c (powx): New array.
9107 (powx_inv): Likewise.
9109 (xor_out): New function.
9111 (recovery): Likewise.
9112 (read_device): Use second redundancy strip.
9114 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9116 Use a power of generator representation of GF(256) multiplication group
9117 to save space time and complexity.
9119 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9120 (raid6_table2): Likewise.
9122 (powx_inv): Likewise.
9124 (grub_raid_block_mul): Replace with ...
9125 (grub_raid_block_mulx): ...this.
9126 (grub_raid6_init_table): Rewritten.
9127 (grub_raid6_recover): Use power of generator representation.
9129 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9131 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9132 for the right device.
9134 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9136 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9137 expected by grub-mkimage and it's more clear since there is no implicit
9140 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9142 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9144 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9146 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9148 * util/grub-mkrescue.in: Fix handling xorriso option.
9150 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9152 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9155 2011-11-03 crocket <crockabiscuit@gmail.com>
9157 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9159 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9161 XZ CRC64 and SHA256 support.
9163 * Makefile.util.def (libgrubmods): Add crc64.c.
9164 * grub-core/Makefile.core.def (crc64): New module.
9165 * grub-core/lib/crc64.c: New file.
9166 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9167 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9169 (MAX_HASH_SIZE): New define.
9170 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9171 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9172 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9173 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9174 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9175 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9176 Handle non-crc32 hashes.
9177 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9178 (dec_stream_header): Handle non-crc32 hashes.
9179 (dec_stream_footer): Likewise.
9180 (dec_block_header): Likewise.
9181 (dec_main): Likewise.
9182 (xz_dec_init): Likewise.
9183 (xz_dec_reset): Likewise.
9184 (xz_dec_end): Likewise.
9185 * util/import_gcry.py: Add CRC64 line.
9187 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9189 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9192 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9194 Make reiserfs label retrieval similar to other *_label functions.
9196 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9197 (REISERFS_MAX_LABEL_LENGTH): Removed.
9198 (REISERFS_LABEL_OFFSET): Likewise.
9199 (grub_reiserfs_label): Rewritten.
9201 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9203 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9206 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9208 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9210 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9212 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9213 drive failure on both raidz and raidz2.
9215 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9217 Fix RAIDZ(2) for >= 5 devices.
9219 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9220 asize argument. All users updated.
9222 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9226 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9227 (fill_vdev_info_real): Set ashift.
9228 (read_device): Rewrite RAIDZ part based on reverse engineering.
9230 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9232 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9233 don't report potentially unavialiable fields in debug output.
9234 (find_path): Fix double-free and memory leak.
9236 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9240 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9241 (grub_ufs_fs): Always set .label.
9243 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9247 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9248 (grub_ufs_data): New field log2_blksz.
9249 (grub_ufs_read_file): Use shifts.
9250 (grub_ufs_mount): Check block size and logarithm it.
9252 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9254 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9257 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9259 Handle symlinks and long names on tar and cpio.
9261 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9262 (ATTR_FILE): Likewise.
9263 (ATTR_DIR): Likewise.
9264 (ATTR_LNK): Likewise.
9265 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9266 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9268 (grub_cpio_mount): Zero-fill data.
9269 (handle_symlink): New function.
9270 (grub_cpio_dir): Handle symlinks.
9271 (grub_cpio_open): Likewise.
9272 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9274 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9276 Fix iso9660 filename limitations and fix memory leaks.
9278 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9279 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9281 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9283 Fix JFS file name length limitations.
9285 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9286 (grub_jfs_diropen): Fix maximum filename length.
9287 (grub_jfs_getent): Fix filename length.
9288 (grub_jfs_lookup_symlink): Fix size checks.
9290 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9292 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9295 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9297 Leverage BFS implementation to read AFS.
9299 * Makefile.util.def (libgrubmods): Add afs.c.
9300 * grub-core/Makefile.core.def (afs): New module
9301 * grub-core/fs/afs.c: New file.
9302 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9304 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9306 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9308 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9310 * grub-core/fs/bfs.c: Run indent.
9312 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9314 BFS implementation based on the specification.
9316 * grub-core/fs/bfs.c: New file.
9317 * Makefile.util.def (libgrubmods): Add bfs.c.
9318 * grub-core/Makefile.core.def (bfs): New module.
9320 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9322 * util/grub-fstest.c (cmd_cp): Clarify error message.
9323 (cmd_cmp): Likewise.
9325 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9327 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9330 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9332 Remove afs and befs because of copyright problem.
9334 * grub-core/fs/afs.c: Removed.
9335 * grub-core/fs/afs_be.c: Removed.
9336 * grub-core/fs/befs.c: Removed.
9337 * grub-core/fs/befs_be.c: Removed.
9338 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9339 * grub-core/Makefile.core.def (afs): Removed.
9342 (befs_be): Likewise.
9344 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9346 Prefer rockridge over Joliet.
9348 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9350 (set_rockridge): ... here.
9351 (grub_iso9660_mount): Check rockridge on the primary label when
9352 discovering. Ignore Joliet if Rockridge is present.
9354 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9356 Use shifts in nilfs2.
9358 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9359 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9360 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9361 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9362 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9363 (grub_nilfs2_entries_per_block): Replaced with ...
9364 (grub_nilfs2_log_entries_per_block_log): ... this.
9365 (grub_nilfs2_blocks_per_group): Replaced with ...
9366 (grub_nilfs2_blocks_per_group_log): ... this.
9367 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9368 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9369 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9370 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9371 (grub_nilfs2_palloc_entry_offset): Replaced ...
9372 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9373 (grub_nilfs2_dat_translate): Use shifts.
9374 (grub_nilfs2_read_inode): Likewise.
9375 (GRUB_MOD_INIT): Ensure that logs are correct.
9377 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9379 Use shifts in minix filesystem.
9381 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9382 (GRUB_MINIX_ZONE2SECT): Likewise.
9383 (grub_minix_data): Replace block_size with log_block_size.
9384 (grub_minix_read_file): Use shifts.
9385 (grub_minix_mount): Check block size and take a logarithm.
9387 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9389 Use shifts in squash4.
9391 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9392 (squash_mount): Check block size and take logarithm.
9393 (direct_read): Use shifts.
9395 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9397 Correct befs block counting logic.
9399 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9400 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9401 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9402 (grub_afs_read_inode): Use block_shift.
9403 (RANGE_SHIFT): New definition.
9404 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9405 unexpected conditions, use shifts and appropriate types.
9406 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9408 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9410 * grub-core/disk/raid.c (scan_devices): Check partition.
9411 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9413 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9415 Support BFS (befs) UUID.
9417 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9418 (grub_afs_small_data_element_header): New struct.
9419 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9420 (grub_afs_read_attribute) [MODE_BFS]: New function.
9421 (grub_afs_iterate_dir): Allocate for complete inode.
9422 (grub_afs_mount): Likewise.
9423 (grub_afs_uuid) [MODE_BFS]: New function.
9424 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9426 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9428 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9429 (zfs_unmount): Fix memory leak.
9431 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9433 Support NTFS reparse points.
9435 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9436 (symlink_descriptor): New struct.
9437 (grub_ntfs_read_symlink): New function.
9438 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9439 (grub_ntfs_open): Likewise.
9441 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9443 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9445 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9447 fstest xnu_uuid subcommand.
9449 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9450 grub-core/commands/xnu_uuid.c.
9451 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9452 (fstest): Handle xnu_uuid.
9453 (options): Document xnu_uuid.
9454 (argp_parser): Parse xnu_uuid.
9456 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9458 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9459 -l argument. Add newline at the end if printing.
9460 (GRUB_MOD_INIT): Document -l.
9462 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9464 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9466 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9468 ZFS multi-device and version 33 support.
9470 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9471 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9472 (grub_zfs_data): Add multidev-ice-related fields.
9473 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9474 (dva_get_offset): Make dva const.
9475 (zfs_fetch_nvlist): New function.
9476 (fill_vdev_info_real): Likewise.
9477 (fill_vdev_info): Likewise.
9478 (check_pool_label): Likewise.
9479 (scan_disk): Likewise.
9480 (scan_devices): Likewise.
9481 (read_device): Likewise.
9482 (read_dva): Likewise.
9483 (zio_read_gang): Use read_dva.
9484 (zio_read_data): Likewise.
9485 (zap_leaf_lookup): Add missing endian conversion.
9486 (zap_verify): Add missing endian conversion. All users updated.
9487 (fzap_lookup): Likewise.
9488 (fzap_iterate): Likewise.
9489 (dnode_get_path): Handle SA bonus.
9490 (nvlist_find_value): Make input const. All users updated.
9491 (unmount_device): New function.
9492 (zfs_unmount): Use unmount_device.
9493 (zfs_mount): Use scan_disk.
9494 (zfs_mtime): New function.
9495 (grub_zfs_open): Handle system attributes.
9496 (fill_fs_info): Likewise.
9497 (grub_zfs_dir): Likewise.
9498 (grub_zfs_fs): Add mtime.
9499 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9500 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9501 (SA_MTIME_OFFSET): Likewise.
9502 (SA_SYMLINK_OFFSET): Likewise.
9503 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9504 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9505 (fstest): Support zfsinfo.
9506 (argp_parser): Likewise.
9508 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9510 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9513 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9517 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9518 sharing the same block. Iterate over correct number of indices.
9519 (dnode_get_path): Handle symlinks correctly.
9521 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9523 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9525 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9529 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9530 (grub_hfsplus_btree_search): Fix types.
9531 (grub_hfsplus_label): Implement.
9533 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9535 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9537 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9539 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9541 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9543 Fix symlink handling on iso9660.
9545 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9547 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9548 (grub_iso9660_read_symlink): Moved most of code ...
9549 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9551 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9553 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9554 Use union to avoid breaking strict-aliasing rules.
9556 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9558 Support multi-extent iso files.
9560 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9562 (grub_fshelp_node): Revamp. All users updated.
9564 (read_node): New function.
9565 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9567 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9568 (get_node_size): New function.
9569 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9571 Fix memory leak on . and ..
9572 (grub_iso9660_read): Use read_node.
9573 (grub_iso9660_close): Free node.
9575 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9577 Fix tar 4G limit and handle paths containing dot.
9579 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9580 (canonicalize): New function.
9581 (grub_cpio_find_file): Use canonicalize. Store offs in
9583 (grub_cpio_dir): Use grub_disk_addr_t.
9584 (grub_cpio_open): Likewise.
9586 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9588 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9590 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9592 (grub_squash_inode): Add long_file and block_size.
9593 (grub_squash_cache_inode): New struct.
9594 (grub_squash_dirent): Make types into enum.
9595 (SQUASH_TYPE_LONG_REGULAR): New type.
9596 (grub_squash_frag_desc): Add field size.
9597 (SQUASH_BLOCK_FLAGS): New enum.
9598 (grub_squash_data): Use grub_squash_cache_inode.
9599 (grub_fshelp_node): Make ino_chunk 64-bit.
9600 (read_chunk): Minor argument change. All users updated.
9601 (squash_mount): Use correct le_to_cpu.
9602 (grub_squash_open): Handle LONG_REGULAR.
9603 (direct_read): New function.
9604 (grub_squash_read_data): Handle blocks correctly.
9606 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9608 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9610 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9612 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9614 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9616 Fix 2G limit on ZFS.
9618 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9620 (uberblock_verify): Likewise.
9621 (dmu_read): Likewise.
9622 (grub_zfs_read): Likewise. Remove invalid cast.
9624 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9626 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9627 (grub_jfs_blkno): Fix incorrect shift.
9628 (grub_jfs_read_file): Use more appropriate types.
9630 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9632 Support triple indirect on minix2 and minix3.
9634 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9635 Declare triple_indir_zone.
9636 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9639 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9643 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9644 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9645 Rename ctime to mtime. All users updated.
9646 (grub_minix_get_file_block): Fix types and double indirect computations.
9648 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9650 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9651 if no label is found.
9652 (grub_fat_iterate_dir): Fix file size type.
9653 (grub_fat_iterate_dir): Likewise.
9655 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9657 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9659 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9660 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9662 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9664 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9666 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9668 * util/import_gcry.py: Accept space between # and include.
9670 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9672 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9674 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9676 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9678 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9679 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9681 * grub-core/script/yylex.l: Add fine-grained #pragma.
9683 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9685 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9686 New inline function.
9687 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9689 (memset) [GRUB_UTIL]: Likewise.
9690 (memcmp) [GRUB_UTIL]: Likewise.
9692 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9694 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9695 inline function rather than a define.
9697 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9699 * util/grub-setup.c: Add missing include.
9701 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9703 * util/ieee1275/grub-ofpathname.c: Add missing include.
9705 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9707 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9708 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9711 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9713 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
9716 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9718 * util/grub-install.in: Add datarootdir as per automake manual
9720 * util/grub-mknetdir.in: Likewise.
9722 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9724 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
9726 * util/grub.d/10_kfreebsd.in: Likewise.
9727 * util/grub.d/10_linux.in: Likewise.
9728 * util/grub.d/10_netbsd.in: Likewise.
9729 * util/grub.d/10_windows.in: Likewise.
9730 * util/grub.d/20_linux_xen.in: Likewise.
9732 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
9734 Remove redundant grub_kernel_image_size.
9736 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
9738 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
9739 the small code. It moves it only by few bytes but simplifies the code.
9740 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
9742 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
9743 (grub_kernel_image_size): Removed.
9744 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
9745 (grub_kernel_image_size): Removed.
9746 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
9747 compiled with Apple toolchain.
9748 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
9749 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
9750 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
9751 (grub_total_module_size): Likewise.
9752 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
9754 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
9755 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
9756 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9757 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
9758 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
9759 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
9760 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
9761 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
9763 (grub_total_module_size): Removed.
9764 * util/grub-mkimage.c (image_target_desc): Remove image_size.
9765 (image_targets): Likewise.
9766 Set .compressed_size to no field on sparc.
9767 (generate_image): Remove kernel_image_size handling.
9769 2011-10-19 Szymon Janc <szymon@janc.net.pl>
9771 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
9772 NULL pointer dereference.
9774 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9776 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
9777 done with a dedicated section.
9779 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
9780 Ensure the correct position of boot_path.
9781 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
9782 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
9784 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
9785 * include/grub/boot.h: Removed. All references removed.
9786 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9788 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
9790 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9792 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
9795 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9797 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
9799 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9801 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9802 Don't add the bogus brackets.
9804 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9808 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
9809 * grub-core/Makefile.core.def (exfat): New module.
9810 * grub-core/fs/exfat.c: New file.
9811 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
9812 (GRUB_FAT_ATTR_*): Make into an enum.
9813 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
9814 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
9815 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
9816 (GRUB_FAT_MAXFILE): Removed.
9817 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
9818 (grub_current_fat_bpb_t): New type.
9819 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
9820 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
9821 (grub_fat_dir_node_t): New type.
9822 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
9823 (fat_log2) [MODE_EXFAT]: Removed.
9824 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
9825 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
9826 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
9827 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
9828 (grub_fat_label) [MODE_EXFAT]: New function.
9829 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
9830 reserved_first_sector to 0.
9832 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9834 Move grub_reboot out of the kernel.
9836 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
9837 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
9838 * grub-core/lib/efi/reboot.c: ... here.
9839 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
9840 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
9841 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
9842 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
9843 * grub-core/lib/i386/reboot_trampoline.S: ... here.
9844 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
9845 * grub-core/lib/ieee1275/reboot.c: ... here.
9846 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
9847 * grub-core/lib/mips/arc/reboot.c: ... here.
9848 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
9849 * grub-core/lib/mips/loongson/reboot.c: ...here.
9850 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
9851 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
9852 * include/grub/emu/misc.h (grub_reboot): New function declaration.
9853 * include/grub/i386/reboot.h: New file.
9854 * include/grub/mips/loongson/ec.h: Fix includes.
9855 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
9856 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
9857 * grub-core/lib/i386/reboot.c: New file.
9859 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
9861 Make grub_prefix into module to fix the arbitrary limit and save
9864 * grub-core/kern/emu/main.c (grub_prefix): Removed.
9865 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
9866 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
9867 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
9868 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
9869 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
9870 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
9871 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
9872 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9873 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
9874 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
9875 * include/grub/ia64/efi/kernel.h: Removed.
9876 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
9877 (grub_prefix): Removed.
9878 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
9879 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
9880 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
9881 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
9882 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
9883 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
9884 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
9885 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
9886 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
9887 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
9888 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
9889 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
9890 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
9891 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
9892 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
9893 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
9894 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
9895 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
9896 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
9897 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
9898 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
9899 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
9900 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
9901 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
9902 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
9903 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
9904 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
9905 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
9906 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
9908 * util/grub-mkimage.c (image_target_desc): Removed prefix and
9910 (image_targets): Likewise.
9911 (generate_image): Put prefix as a module.
9913 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9915 Replace grub_module_iterate with FOR_MODULES.
9917 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
9918 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
9919 (grub_efi_modules_addr): ...this.
9920 * grub-core/kern/efi/init.c (grub_modbase): New variable.
9921 (grub_efi_init): Set grub_modbase.
9922 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
9923 (grub_modbase): New variable.
9924 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
9925 (grub_modbase): New variable.
9926 (grub_machine_init): Set grub_modbase.
9927 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
9928 (grub_modbase): New variable.
9929 (grub_machine_init): Set grub_modbase.
9930 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
9931 (grub_modbase): New variable.
9932 (grub_machine_init): Set grub_modbase.
9933 * grub-core/kern/main.c (grub_module_iterate): Remove.
9934 (grub_modules_get_end): Use grub_modbase.
9935 (grub_load_modules): Use FOR_MODULES.
9936 (grub_load_config): Likewise.
9937 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
9938 (grub_modbase): New variable.
9939 (grub_machine_init): Set grub_modbase.
9940 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
9941 (grub_modbase): New variable.
9942 (grub_machine_init): Set grub_modbase.
9943 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
9945 (grub_modbase): New variable.
9946 (grub_machine_init): Set grub_modbase.
9947 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
9948 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
9949 (grub_module_iterate): Likewise.
9950 (grub_modbase): New variable declaration.
9951 (FOR_MODULES): New macro.
9953 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9955 * configure.ac: Check for __ctzdi2 and __ctzsi2.
9956 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
9958 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9960 Fix few obvious type discrepancies.
9962 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
9963 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
9964 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
9966 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
9967 and connected types.
9968 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
9970 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
9971 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
9972 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
9973 and connected types.
9975 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9977 Fix python 3.x incompatibilities.
9979 * gentpl.py: Put brackets around print strings.
9980 * util/import_gcry.py: Open explicitly as utf-8.
9981 Use in instead of has_key.
9983 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9985 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
9986 (GRUB_XFS_INO_AGBITS): Make into inline function.
9987 (GRUB_XFS_INO_INOINAG): Likewise.
9988 (GRUB_XFS_INO_AG): Likewise.
9989 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9990 (GRUB_XFS_EXTENT_OFFSET): Likewise.
9991 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9992 (GRUB_XFS_EXTENT_SIZE): Likewise.
9993 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
9994 (GRUB_XFS_NEXT_DIRENT): Likewise.
9995 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
9996 (grub_xfs_read_file): Fix offset type.
9998 2011-10-15 Robert Millan <rmh@gnu.org>
10000 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10002 2011-10-15 Robert Millan <rmh@gnu.org>
10004 Fix build problem on FreeBSD and GNU/kFreeBSD.
10006 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10008 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10010 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10012 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10014 (grub_hfsplus_btree_recoffset): Likewise.
10015 (grub_hfsplus_btree_recptr): Likewise.
10016 (grub_hfsplus_find_block): Likewise.
10017 (grub_hfsplus_btree_search): Likewise.
10018 (grub_hfsplus_read_block): Likewise.
10019 (grub_hfsplus_read_file): Likewise.
10020 (grub_hfsplus_mount): Likewise.
10021 (grub_hfsplus_btree_iterate_node): Likewise.
10022 (grub_hfsplus_btree_search): Likewise.
10023 (grub_hfsplus_iterate_dir): Likewise.
10024 (grub_hfsplus_read): A small code simplification.
10026 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10028 * grub-core/kern/emu/hostdisk.c
10029 (convert_system_partition_to_system_disk): Don't assume that children
10030 of mapper nodes are mapper nodes.
10032 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10034 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10035 * include/grub/misc.h (grub_isxdigit): New function.
10036 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10037 switched to grub_isxdigit.
10038 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10039 number starting with a letter.
10041 2011-10-09 Robert Millan <rmh@gnu.org>
10043 LVM support for FreeBSD and GNU/kFreeBSD.
10045 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10047 (LVM_DEV_MAPPER_STRING): Move from here ...
10048 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10049 * util/getroot.c: Include `<grub/util/lvm.h>'.
10050 (grub_util_get_dev_abstraction): Enable
10051 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10052 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10053 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10054 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10056 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10058 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10059 when LVM abstraction is required for ${GRUB_DEVICE}.
10061 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10063 Add support for LZO compression in GRUB:
10064 - import of minilzo library,
10065 - LZO decompression for btrfs,
10066 - lzop files decompression.
10068 * grub-core/io/lzopio.c: New file.
10069 * grub-core/lib/adler32.c: Likewise.
10070 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10071 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10072 * grub-core/lib/minilzo/minilzo.c: Likewise.
10073 * grub-core/lib/minilzo/minilzo.h: Likewise.
10074 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10075 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10076 grub-core/lib/minilzo/minilzo.c to common.
10077 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10078 cflags in cppflags.
10079 * grub-core/Makefile.core.def (btrfs): Likewise.
10080 * grub-core/Makefile.core.def (lzopio): New module.
10081 (adler32): Likewise.
10082 * grub-core/fs/btrfs.c: Include minilzo.h.
10083 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10084 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10085 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10086 (grub_btrfs_lzo_decompress): New function.
10087 (grub_btrfs_extent_read): Add support for LZO compression type.
10088 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10089 (GRUB_USHRT_MAX): Likewise.
10090 (GRUB_UINT_MAX): Likewise.
10091 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10092 (UINT_MAX): Likewise.
10093 (CHAR_BIT): Likewise.
10094 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10095 grub-core/lib/posix_wrap/limits.h
10096 (UCHAR_MAX): Likewise.
10097 * include/grub/file.h (grub_file_filter_id): New compression filter
10098 GRUB_FILE_FILTER_LZOPIO.
10099 * include/grub/file.h (grub_file_filter_id): Set
10100 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10101 * include/grub/types.h (grub_get_unaligned16): New function.
10102 (grub_get_unaligned32): Likewise.
10103 (grub_get_unaligned64): Likewise.
10104 * util/import_gcry.py (cryptolist): Add adler32.
10106 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10108 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10109 in perspective decreases the complexity of build system and fixes
10110 compilation right now.
10112 2011-10-01 Ales Nesrsta <starous@volny.cz>
10114 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10115 (fixed problem related to using UHCI with coreboot).
10117 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10119 * gentpl.py: Use Autogen macros so that the output template file
10120 (Makefile.tpl) size is reduced.
10122 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10124 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10127 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10129 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10130 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10132 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10134 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10137 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10139 Remove extra declaration of sleep for mingw32.
10141 * util/misc.c (sleep) [__MINGW32__]: Removed.
10142 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10144 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10146 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10148 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10150 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10151 (grub_netbsd_btinfo_bootwedge): New struct.
10152 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10154 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10156 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10158 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10161 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10163 Fix incorrect identifiers in bash-completion.
10165 * util/bash-completion.d/grub-completion.bash.in
10166 (_grub_mkpasswd-pbkdf2): Rename to ...
10167 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10168 (_grub_script-check): Rename to ...
10169 (_grub_script_check): ... this. All users updated.
10171 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10173 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10174 Return 0 if disk isn't biosdisk.
10176 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10178 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10180 * Makefile.util.def (grub-fstest): Likewise.
10182 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10184 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10185 Get sector size from disk label.
10187 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10189 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10190 */README* as well as README*.
10191 Reported by: Axel Beckert.
10193 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10195 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10196 case of less than 256 MiB of RAM.
10198 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10200 * grub-core/commands/wildcard.c (make_regex): Handle @.
10202 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10204 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10206 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10208 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10209 AC_LANG_CONFTEST macros.
10211 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10213 Add grub-fstest option to uncompress data for commands.
10215 * util/grub-fstest.c (uncompress): New var.
10216 (options): New option -u.
10218 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10220 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10221 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10223 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10225 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10226 file type was not recognized correctly (not gzip or corrupted).
10228 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10230 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10231 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10233 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10235 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10237 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10238 video_radeon_fuloong2e.
10239 * grub-core/video/radeon_fuloong2e.c: New file.
10240 * include/grub/video.h (grub_video_id_t): Add new ID
10241 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10243 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10245 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10247 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10248 that PRID matches the detected subplatform and reset the subplatform
10251 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10253 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10255 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10257 Fix PCI iterating on functions >= 4.
10259 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10260 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10262 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10263 (grub_pci_read): Fix bitmask.
10264 (grub_pci_read_word): Likewise.
10265 (grub_pci_read_byte): Likewise.
10266 (grub_pci_write): Likewise.
10267 (grub_pci_write_word): Likewise.
10268 (grub_pci_write_byte): Likewise.
10270 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10272 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10273 can still be specified in TARGET_CFLAGS)
10275 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10277 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10279 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10280 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10281 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10282 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10283 (FULOONG): Rename to ...
10284 (FULOONG2F): ... this. All users updated.
10285 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10286 (machtype_fuloong2f_str): ... this.
10287 (machtype_fuloong2e_str): New string.
10288 Check for machtype_fuloong2e_str.
10289 * grub-core/loader/mips/linux.c (loongson_machtypes)
10290 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10291 * grub-core/term/serial.c (loongson_defserial)
10292 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10293 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10294 loongson_defserial.
10295 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10297 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10298 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10299 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10300 to IMAGE_FULOONG2F_FLASH. All users updated.
10301 (image_targets): Rename images.
10302 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10304 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10306 Make enable of disk cache statistics code configurable.
10308 * configure.ac: --enable-cache-stats added.
10309 * config.h.in (DISK_CACHE_STATS): New define.
10310 * grub-core/Makefile.core.def (cacheinfo): New command.
10311 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10312 * grub-core/commands/cacheinfo.c: New file.
10313 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10314 moved to cacheinfo.c.
10315 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10317 * include/grub/disk.h: Likewise.
10319 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10321 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10322 * grub-core/Makefile.am: Likewise.
10324 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10326 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10329 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10331 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10333 (grub_jfs_lookup_symlink): Use correct starting inode.
10335 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10337 * util/grub-setup.c (main): Add missing gcry initialisation.
10339 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10341 Don't accept text modes on EFI when booting Linux.
10343 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10344 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10346 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10347 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10349 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10350 use of "/path/.." as in grub-install for EFI as well as handling
10351 symlinks correctly.
10352 Fixes Debian bug #637768.
10354 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10356 * util/grub-probe.c: Remove duplicate #include.
10358 2011-08-10 Robert Millan <rmh@gnu.org>
10360 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10362 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10364 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10365 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10367 2011-08-03 Robert Millan <rmh@gnu.org>
10369 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10370 la_array as packed.
10371 Reported by: Zachary Bedell
10373 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10375 * configure.ac: The Loongson port requires grub-mkfont due to its
10376 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10379 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10381 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10382 processing arguments (otherwise help2man fails when GRUB has not yet
10385 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10387 New script grub-mkstandalone.
10389 * Makefile.util.def (grub-mkstandalone): New script.
10390 * docs/man/grub-mkstandalone.h2m: New file.
10391 * util/grub-mkstandalone.in: Likewise.
10393 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10395 Support ATA disks with 4K sectors.
10397 * include/grub/ata.h (grub_ata): New member log_sector_size.
10398 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10399 (grub_ata_identify): Read sector size.
10400 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10402 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10404 * util/grub-install.in: Don't use uhci outside of x86.
10406 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10408 * util/grub-mkrescue.in: Add missing quotes.
10410 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10412 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10415 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10417 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10419 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10421 * include/grub/video.h: add missing EXPORT_FUND on
10422 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10424 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10426 * include/grub/mips/kernel.h: Fix define conflict.
10428 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10430 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10433 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10435 Preferred resolution detection for VBE.
10437 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10438 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10439 the Flat Panel extension, in line with the X.org VESA driver.
10440 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10442 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10443 (grub_vbe_bios_read_edid): Likewise.
10444 (grub_vbe_get_preferred_mode): Likewise.
10445 (grub_video_vbe_setup): When the mode is "auto", try to get the
10446 preferred mode from VBE, and use the largest mode that is no larger
10447 than the preferred mode (some BIOSes expose a preferred mode that is
10448 not in their mode list!). If this fails, fall back to 640x480 as a
10449 safe conservative choice.
10450 (grub_video_vbe_get_edid): New function.
10451 (grub_video_vbe_adapter): Add get_edid.
10452 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10453 (struct grub_video_adapter): Add get_edid.
10454 (grub_video_edid_checksum): Add prototype.
10455 (grub_video_edid_preferred_mode): Likewise.
10456 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10459 * grub-core/commands/videoinfo.c (print_edid): New function.
10460 (grub_cmd_videoinfo): Print EDID if available.
10462 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10463 is more appropriate on a wider range of platforms than 640x480.
10464 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10467 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10469 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10471 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10473 * po/POTFILES.in: Regenerate.
10475 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10477 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10478 incorrect memory usage.
10480 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10482 * util/grub-install.in: Source grub-mkconfig_lib.
10484 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10486 Remove getroot.c from core on emu platform.
10488 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10490 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10492 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10493 * util/getroot.c (get_win32_path): ... here.
10494 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10495 * util/getroot.c (fini_libzfs): ... here.
10496 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10497 * util/getroot.c (grub_get_libzfs_handle): ... here.
10498 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10500 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10501 * grub-core/kern/emu/misc.c
10502 (grub_make_system_path_relative_to_its_root): Moved from here...
10503 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10504 * grub-core/kern/emu/getroot.c: Moved from here ...
10505 * util/getroot.c: ... here. All users updated.
10506 * grub-core/kern/emu/raid.c: Moved from here ...
10507 * util/raid.c: ... here. All users updated.
10509 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10511 * po/POTFILES.in: Regenerate.
10513 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10515 Fix compilation on GNU/Linux.
10517 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10519 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10520 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10521 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10523 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10524 2011-07-07 Michael Gorven <michael@gorven.za.net>
10525 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10527 LUKS and GELI support.
10529 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10530 grub-core/disk/luks.c, grub-core/disk/geli.c,
10531 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10532 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10533 grub-core/lib/arg.c.
10534 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10535 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10536 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10537 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10538 (grub-bin2h): Add libgcry.a.
10539 (grub-mkimage): Likewise.
10540 (grub-mkrelpath): Likewise.
10541 (grub-script-check): Likewise.
10542 (grub-editenv): Likewise.
10543 (grub-mkpasswd-pbkdf2): Likewise.
10544 (grub-pe2elf): Likewise.
10545 (grub-fstest): Likewise.
10546 (grub-mkfont): Likewise.
10547 (grub-mkdevicemap): Likewise.
10548 (grub-probe): Likewise.
10549 (grub-ofpath): Likewise.
10550 (grub-mklayout): Likewise.
10551 (example_unit_test): Likewise.
10552 (grub-menulst2cfg): Likewise.
10553 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10554 * grub-core/Makefile.core.def (cryptodisk): New module.
10557 * grub-core/disk/AFSplitter.c: New file.
10558 * grub-core/disk/cryptodisk.c: Likewise.
10559 * grub-core/disk/geli.c: Likewise.
10560 * grub-core/disk/luks.c: Likewise.
10561 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10563 (grub_util_get_dm_abstraction): New function.
10564 (grub_util_follow_gpart_up): Likewise.
10565 (grub_util_get_geom_abstraction): Likewise.
10566 (grub_util_get_dev_abstraction): Use new functions.
10567 (grub_util_pull_device): Pull GELI and LUKS.
10568 (grub_util_get_grub_dev): Handle LUKS and GELI.
10569 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10570 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10571 (follow_geom_up): Removed.
10572 (grub_util_fd_seek): New function.
10573 (open_device): Use grub_util_fd_seek.
10574 (nread): Rename to ..
10575 (grub_util_fd_read): ... this. All users updated.
10576 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10577 (grub_crypto_cbc_decrypt): Likewise.
10578 (grub_crypto_hmac_write): Likewise.
10579 (grub_crypto_hmac_buffer): Likewise.
10580 (grub_password_get): Extend to util.
10581 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10582 New member modname.
10583 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10584 * include/grub/cryptodisk.h: New file.
10585 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10586 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10588 (grub_util_follow_gpart_up): New proto.
10589 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10590 (grub_util_fd_read): Likewise.
10591 (grub_cryptodisk_cheat_mount): Likewise.
10592 (grub_util_cryptodisk_print_uuid): Likewise.
10593 (grub_util_get_fd_sectors): Likewise.
10594 * util/grub-fstest.c (mount_crypt): New var.
10595 (fstest): Mount crypto if requested.
10596 (options): New option -C.
10597 (argp_parser): Parse -C.
10598 (main): Init and fini gcry.
10599 * util/grub-install.in: Support cryptodisk install.
10600 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10601 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10603 (prepare_grub_to_access_device): Likewise.
10604 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10605 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10606 (probe_cryptodisk_uuid): New function.
10607 (probe_abstraction): Likewise.
10608 (probe): Use new functions.
10609 * util/import_gcry.py: Create Makefile.utilgcry.def.
10610 Add modname member.
10612 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10614 Lazy device scanning.
10616 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10617 (grub-setup): Remove util/raid.c.
10618 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10619 * grub-core/disk/lvm.c (scan_depth): New variable.
10620 (grub_lvm_iterate): Rescan if necessary.
10621 (find_lv): New function based on grub_lvm_open.
10622 (grub_lvm_open): Use find_lv. Rescan on error.
10623 (is_node_readable): New function.
10624 (is_lv_readable): Likewise.
10625 (grub_lvm_scan_device): Skip already found disks.
10626 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10627 Stop if searched device is found and readable.
10628 * grub-core/disk/raid.c (inscnt): New variable.
10629 (scan_depth): Likewise.
10630 (scan_devices): New function based on grub_raid_register. Abort if
10631 looked for device is found.
10632 (grub_raid_iterate): Rescan if needed.
10633 (find_array): NEw function based on -grub_raid_open.
10634 (grub_raid_open): Use find_array and rescan.
10635 (insert_array): Set became_readable_at.
10636 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10637 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10639 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10640 (grub_util_pull_device): New function.
10641 (grub_util_get_grub_dev): Call grub_util_pull_device.
10642 * util/raid.c: Moved to ..
10643 * grub-core/kern/emu/raid.c: ... here.
10644 (grub_util_raid_getmembers): New parameter "bootable".
10645 All users updated. Support 1.x.
10646 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10648 * include/grub/disk.h (grub_disk_pull_t): New enum.
10649 (grub_disk_dev): Change iterate prototype.
10651 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10653 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10654 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10655 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10656 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10658 * include/grub/util/raid.h: Removed.
10660 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10662 * po/POTFILES.in: Regenerate.
10664 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10666 Unify sparc init with other ieee1275.
10668 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10669 instead of kern/sparc64/ieee1275/init.c.
10670 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10671 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10672 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10673 grub/machine/kernel.h.
10674 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10675 (grub_claim_heap) [__sparc__]: Use sparc version.
10676 (grub_machine_init): Moved args parsing to
10677 (grub_parse_cmdline): ...this.
10678 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10679 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10681 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10683 Move BOOTP to separate file.
10685 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10686 * grub-core/net/net.c: Move all BOOTP functions to
10687 * grub-core/net/bootp.c: ... here.
10689 Use frame interface on PXE.
10691 * grub-core/Makefile.core.def (pxecmd): Removed.
10692 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10693 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10694 * grub-core/i386/pc/pxe.c: Moved from here ...
10695 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10696 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10697 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10699 EFI network support.
10701 * grub-core/Makefile.core.def (efinet): New module.
10702 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10704 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10706 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10707 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10708 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10709 * grub-core/net/drivers/efi/efinet.c: New file.
10710 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
10711 (grub_efi_net_config): New extern var.
10713 Various cleanups and bugfixes.
10715 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
10717 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
10718 disk declared as partition.
10719 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
10721 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
10722 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
10723 (grub_debug_zalloc): Likewise.
10724 (grub_debug_realloc): Likewise.
10725 (grub_debug_memalign): Likewise.
10726 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
10727 Check that target is IPv4.
10728 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
10729 local-mac-address as fallback.
10730 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
10732 * grub-core/net/ip.c (ipchksum): Rename to ...
10733 (grub_net_ip_chksum): ... this. All users updated.
10734 (grub_net_recv_ip_packets): Special handling for DHCP.
10735 * util/grub-mkimage.c (generate_image): Zero-out aout header.
10737 Unify prefix handling
10739 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
10740 (grub_machine_get_bootlocation): ... this.
10741 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
10742 (grub_machine_get_bootlocation): ... this.
10743 (grub_prefix): New variable.
10745 (root_dev): New variable.
10747 (main): Use new variables.
10748 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
10750 (grub_machine_get_bootlocation): ... this.
10751 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
10752 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
10753 (grub_machine_get_bootlocation): ... this.
10754 (grub_machine_set_prefix): Removed.
10755 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
10756 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
10758 (grub_machine_get_bootlocation): ... this.
10759 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
10760 (grub_set_prefix_and_root): ... this. All users updated.
10761 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
10763 (grub_machine_get_bootlocation): ... this.
10764 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
10765 (grub_machine_get_bootlocation): New proto.
10766 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
10768 Less intrusive and more reliable seek on network implementation.
10770 * grub-core/kern/file.c (grub_file_net_seek): Removed.
10771 (grub_file_seek): Don't call grub_file_net_seek.
10772 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
10773 (grub_net_fs_read_real): .. this.
10774 (grub_net_seek_real): Use net->offset.
10775 (grub_net_fs_read): Seek if necessary.
10777 Unify IEEE1275 netwotk config with the other platforms.
10779 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
10781 (grub_machine_get_bootlocation): Support network.
10782 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10783 Support type and device parsing.
10784 (grub_ieee1275_get_device_type): New function.
10785 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
10787 (grub_ieee1275_net_config_real): ... this.
10788 (grub_ofnet_probecards): Removed.
10789 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
10790 * include/grub/ieee1275/ofnet.h: Removed.
10791 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
10793 (grub_ieee1275_get_device_type): New function.
10795 Unify network device closing across platforms and make more robust.
10797 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
10799 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
10801 * grub-core/net/net.c (grub_net_network_level_interface_register):
10803 (grub_net_card_unregister): Close all interfaces.
10804 (receive_packets): Don't poll if no iterfaces are registered.
10806 (grub_net_fini_hw): New function.
10807 (grub_net_restore_hw): Likewise.
10808 (fini_hnd): New variable.
10809 (GRUB_MOD_INIT): Register preboot hook.
10810 (GRUB_MOD_FINI): Run and unregister preboot hook.
10812 Poll network cards when idle.
10814 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
10815 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
10816 * grub-core/net/net.c (receive_packets): Save last poll time.
10817 (grub_net_poll_cards_idle_real): New function.
10818 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
10819 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
10820 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
10822 Rename ofnet interfaces.
10824 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
10825 (grub_ofnet_findcards): Use ofnet_%s names.
10827 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
10829 Cleanup socket opening.
10831 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
10832 (grub_net_fs_close): Likewise.
10833 (grub_net_fs_read_real): Use eof member.
10834 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
10835 (+grub_net_udp_close): New inline function.
10837 * include/grub/net/tftp.h: Moved to the top of ...
10838 * grub-core/net/tftp.c: ... here.
10839 * include/grub/net/ip.h: Moved mostly to the top of ...
10840 * grub-core/net/ip.c: ... here.
10841 * include/grub/net/ethernet.h: Moved mostly to the top of ...
10842 * grub-core/net/ethernet.c: ... here.
10844 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
10846 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
10849 * include/grub/net/ip.h (ipv4_ini): Removed.
10850 (ipv4_fini): Likewise.
10852 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
10853 (grub_net_send_ip_packets): Likewise.
10855 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10857 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
10858 grub_read_cmos prototype.
10860 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10862 VGA text support in qemu-mips
10864 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
10865 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
10866 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
10868 * grub-core/kern/i386/qemu/init.c: Renamed to ...
10869 * grub-core/kern/vga_init.c: ... this.
10870 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
10871 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
10872 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
10874 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
10875 GRUB_MACHINE_PCI_IO_BASE.
10877 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10879 MIPS qemu flash support.
10881 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
10883 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
10884 (grub_machine_init): Probe memory if its size isn't known.
10885 * util/grub-mkimage.c (image_targets): Add flash targets.
10886 (generate_image): Handle flash targets.
10888 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10890 MIPS qemu at_keyboard support.
10892 * gentpl.py (videoinkernel): Add qemu-mips.
10893 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
10894 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
10895 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
10897 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
10898 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
10899 * grub-core/term/serial.c (grub_serial_register)
10900 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
10902 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10904 CMOS support on sparc.
10906 * gentpl.py (cmos): Add powerpc and sparc.
10907 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
10909 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
10910 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
10911 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
10912 grub_set_datetime_cmos.
10913 * grub-core/lib/ieee1275/cmos.c: New file.
10914 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
10915 (find_rtc): Set no_ieee1275_rtc on error.
10916 (grub_get_datetime): Call grub_get_datetime_cmos on error.
10917 (grub_set_datetime): Call grub_set_datetime_cmos on error.
10918 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
10919 fail. Move value to argument. All users updated
10920 (grub_cmos_write): Likewise.
10921 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
10922 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
10923 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
10924 grub_get_datetime_cmos and grub_set_datetime_cmos.
10926 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10928 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
10929 sourcing grub-mkconfig_lib.
10930 * util/update-grub_lib.in: Likewise.
10931 * util/grub.d/00_header.in: Likewise.
10932 * util/grub.d/10_hurd.in: Likewise.
10933 * util/grub.d/10_kfreebsd.in: Likewise.
10934 * util/grub.d/10_linux.in: Likewise.
10935 * util/grub.d/10_netbsd.in: Likewise.
10936 * util/grub.d/10_windows.in: Likewise.
10937 * util/grub.d/20_linux_xen.in: Likewise.
10938 * util/grub.d/30_os-prober.in: Likewise.
10940 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
10942 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
10943 default_bg_color rather than black.
10944 (grub_gfxterm_fullscreen): Likewise.
10945 (grub_gfxterm_background_color_cmd): Save new background color in
10948 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10950 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
10952 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10954 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
10957 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10959 Chainloading on coreboot support.
10961 * grub-core/Makefile.core.def (chain): Add coreboot.
10962 * grub-core/loader/i386/coreboot/chainloader.c: New file.
10964 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10966 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
10969 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10971 Implement time command.
10973 * grub-core/Makefile.core.def (time): New module.
10974 * grub-core/commands/time.c: New file.
10975 * grub-core/script/parser.y: Remove "time" keyword.
10976 * grub-core/script/yylex.l: Likewise.
10978 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10980 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
10982 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10984 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
10985 when handling leftovers.
10987 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10989 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
10990 so that help2man doesn't fail.
10992 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10994 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
10995 type in pointers on sparc64.
10996 (get_card_packet): Likewise.
10998 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11000 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11002 (grub_cmd_videoinfo): Fetch current video mode.
11004 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11006 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11007 because of underlying system restrictions.
11009 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11011 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11014 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11016 Coreboot video support.
11018 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11020 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11021 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11023 * grub-core/kern/i386/int.S: ... here.
11024 * grub-core/video/i386/pc/vbe.c: Updated includes.
11025 * grub-core/video/i386/pc/vga.c: Likewise.
11026 * include/grub/i386/coreboot/memory.h
11027 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11028 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11029 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11030 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11031 Disable interrupts.
11032 * include/grub/i386/pc/vga.h: Removed. All users updated.
11034 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11036 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11037 definitions for dprintf.
11038 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11040 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11042 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11044 (get_card_packet): Likewise.
11046 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11048 Display the path of the file when file is not found
11050 * grub-core/fs/fat.c: Display the filename when file is not found.
11051 * grub-core/fs/fshelp.c: Likewise.
11052 * grub-core/fs/hfs.c: Likewise.
11053 * grub-core/fs/jfs.c: Likewise.
11054 * grub-core/fs/minix.c: Likewise.
11055 * grub-core/fs/ufs.c: Likewise.
11056 * grub-core/fs/btrfs.c: Likewise.
11057 * grub-core/commands/i386/pc/play.c: Likewise.
11059 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11061 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11062 pointer checks before calling grub_free().
11063 * grub-core/commands/wildcard.c (match_devices): Likewise.
11064 * grub-core/commands/wildcard.c (match_files): Likewise.
11065 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11066 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11067 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11068 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11069 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11070 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11071 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11072 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11073 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11075 2011-06-25 Patrick <p55@mailinator.com>
11077 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11079 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11081 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11082 (grub_pxe_send): Likewise.
11083 (GRUB_MOD_INIT): Fix types.
11085 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11087 * grub-core/io/xzio.c: Fix code style issues
11089 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11090 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11092 Network infrastructure.
11093 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11095 * include/grub/net/arp.h: New file.
11096 * include/grub/net/device.h: Likewise.
11097 * include/grub/net/ethernet.h: Likewise.
11098 * include/grub/net/ip.h: Likewise.
11099 * include/grub/net/netbuff.h: Likewise.
11100 * include/grub/net/tftp.h: Likewise.
11101 * include/grub/net/udp.h: Likewise.
11102 * include/grub/ieee1275/ofnet.h: Likewise.
11103 * include/grub/emu/export.h: Likewise.
11104 * include/grub/net.h: Likewise.
11105 * grub-core/net/arp.c: Likewise.
11106 * grub-core/net/ethernet.c: Likewise.
11107 * grub-core/net/ip.c: Likewise.
11108 * grub-core/net/udp.c: Likewise.
11109 * grub-core/net/tftp.c: Likewise.
11110 * grub-core/net/netbuff.c: Likewise.
11111 * grub-core/net/net.c: Likewise.
11112 * grub-core/net/drivers/emu/emunet.c: Likewise.
11113 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11114 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11116 * grub-core/Makefile.core.def (net): New module.
11119 (emunet): Likewise.
11120 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11122 * grub-core/kern/device.c (grub_net_open) : New variable.
11123 (grub_device_open): Handle network device.
11124 (grub_device_close): Likewise.
11125 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11126 (grub_grubnet_fini): Likewise.
11127 (grub_file_seek): Seek in network device.
11128 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11129 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11131 (grub_machine_fini): Call grub_grubnet_fini.
11132 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11134 (grub_ieee1275_get_aliasdevname): New function.
11135 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11136 Add unofficial Solaris network info.
11137 (grub_multiboot_make_mbi): Likewise.
11138 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11139 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11140 * include/grub/device.h (grub_fs): Removed.
11141 * include/grub/err.h (grub_err_t): Add network-related values.
11142 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11143 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11144 (grub_ieee1275_get_aliasdevname): New proto.
11145 * include/grub/net.h: Rewritten.
11147 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11149 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11152 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11154 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11155 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11156 it truncates the output.
11157 Reported by: Ximin Luo.
11159 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11161 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11163 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11165 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11166 partmap before abstraction.
11168 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11170 * util/grub-mkconfig_lib.in: Add missing quotes.
11172 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11174 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11175 old method if mountinfo would return /dev/root and /dev/root doesn't
11178 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11182 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11183 (decomp_table): Add zlib entries.
11184 (zio_read): USe 8 bits for compression function rather than 3.
11185 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11187 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11189 * grub-core/disk/ahci.c: Add missing license statements.
11190 * grub-core/fs/romfs.c: Likewise.
11191 * grub-core/lib/ia64/setjmp.S: Likewise.
11192 * grub-core/loader/i386/pc/freedos.c: Likewise.
11193 * grub-core/loader/ia64/efi/linux.c: Likewise.
11194 * grub-core/video/colors.c: Likewise.
11195 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11197 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11201 * grub-core/Makefile.core.def (ata_pthru): Removed.
11202 (ahci): New module.
11204 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11206 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11208 (grub_hdparm_do_check_powermode_cmd): Likewise.
11209 (grub_hdparm_do_smart_cmd): Likewise.
11210 (grub_hdparm_set_val_cmd): Likewise.
11211 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11212 * grub-core/disk/ahci.c: New file.
11213 * grub-core/disk/ata.c: Factor out the low-level part into ...
11214 * grub-core/disk/pata.c: ... here.
11215 * grub-core/disk/ata_pthru.c: Contents moved to ...
11216 * grub-core/disk/pata.c: ... here.
11217 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11218 (grub_scsi_iterate): Use grub_scsi_names.
11219 (grub_scsi_open): Likewise.
11220 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11221 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11222 (grub_ata_regs_t): New struct.
11223 (grub_disk_ata_pass_through_parms): Likewise.
11224 (grub_ata_device): Renamed to ...
11225 (grub_ata): ... this.
11226 (grub_ata_dev): New struct.
11227 Removed all low-level inline functions.
11228 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11229 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11230 iterate hooks and open. All users updated.
11231 * util/grub-install.in: Handle AHCI disk module.
11233 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11235 Add support for DRI and RSTn markers in JPEG files.
11237 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11238 (JPEG_MARKER_RST0): Likewise.
11239 (JPEG_MARKER_RST1): Likewise.
11240 (JPEG_MARKER_RST2): Likewise.
11241 (JPEG_MARKER_RST3): Likewise.
11242 (JPEG_MARKER_RST4): Likewise.
11243 (JPEG_MARKER_RST5): Likewise.
11244 (JPEG_MARKER_RST6): Likewise.
11245 (JPEG_MARKER_RST7): Likewise.
11246 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11247 (grub_jpeg_decode_dri): New function.
11248 (grub_jpeg_decode_sos): Move image data related part into
11249 grub_jpeg_decode_data function.
11250 (grub_jpeg_decode_data): New function.
11251 (grub_jpeg_reset): New function.
11252 (grub_jpeg_decode_jpeg): Handle new markers.
11254 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11256 * util/ieee1275/ofpath.c (check_sas): Close fd.
11257 (main): Free of_path.
11258 Reported by: David Volgyes <dvolgyes>.
11260 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11262 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11263 Reported by: David Volgyes <dvolgyes>.
11265 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11267 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11269 Reported by: David Volgyes <dvolgyes>.
11271 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11273 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11275 Reported by: David Volgyes <dvolgyes>.
11277 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11279 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11280 Prevent memory leak.
11282 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11284 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11285 (main): Close file.
11286 Reported by: David Volgyes <dvolgyes>.
11288 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11290 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11291 to continue if allocation is failed.
11293 Reported by: David Volgyes <dvolgyes>.
11295 2011-06-23 David Volgyes <dvolgyes>
11297 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11300 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11302 Fix spurious warning.
11304 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11305 (acorn_partition_map_find): Use .bin member.
11307 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11309 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11310 /dev/root as a valid device.
11312 2011-06-23 Jim Meyering <meyering@redhat.com>
11314 Avoid NULL deref in grub_device_open.
11316 * grub-core/kern/device.c (grub_device_open): Don't dereference
11317 a NULL pointer upon failed grub_env_get.
11319 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11321 Support non-512B sectors and agglomerate reads.
11323 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11324 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11325 (disk_io_guid): Removed.
11326 (make_devices): Locate solely by BlockIO.
11327 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11328 (grub_efidisk_read): Use read_blocks.
11329 (grub_efidisk_write): Use write_blocks.
11330 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11332 (get_safe_sectors): Handle non-512B sectors.
11333 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11335 (grub_biosdisk_write): Handle non-512B sectors.
11336 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11337 (grub_scsi_read): Remove special non-512B block handling (now handled
11339 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11340 and do sanity checks.
11341 (grub_disk_adjust_range): Handle non-512B sectors.
11342 (transform_sector): New function.
11343 (grub_disk_read_small): Likewise.
11344 (grub_disk_read): Rewritten.
11345 (grub_disk_write): Handle non-512B sectors.
11346 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11348 (open_device): Use log_sector_size.
11349 (grub_util_biosdisk_read): Likewise.
11350 (grub_util_biosdisk_write): Likewise.
11351 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11353 (pc_partition_map_embed): Likewise.
11354 * include/grub/disk.h (grub_disk): New field log_sector_size.
11355 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11356 (GRUB_DISK_CACHE_BITS): Increased to 6.
11357 * util/grub-fstest.c (fstest): New command testload.
11358 (argp_parser): Likewise.
11360 2011-06-16 Robert Millan <rmh@gnu.org>
11362 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11363 `ata' driver on kernel of FreeBSD 9.
11365 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11366 (get_ataraid_disk_name): New functions.
11367 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11368 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11369 get_ataraid_disk_name() and get_ada_disk_name().
11371 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11373 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11376 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11378 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11379 `ftp.gnu.org' for `alpha.gnu.org'.
11381 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11383 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11384 partitions under /dev/disk/by-id/.
11386 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11388 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11389 after ten consecutive open failures. Scanning all the way up to
11390 10000 is excessive and can cause serious performance problems in
11391 some configurations.
11392 Fixes Ubuntu bug #787461.
11394 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11396 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11399 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11400 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11402 Don't stat devices unless we have to.
11404 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11405 dir == /dev/mapper.
11406 (grub_guess_root_device): Use already known os_dev if possible.
11407 * grub-core/kern/emu/hostdisk.c
11408 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11409 if device is known to be a dm one.
11411 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11413 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11414 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11415 Reported by: Pawel Tecza.
11417 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11419 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11420 (lsefisystab): Likewise.
11422 (lsefimmap): Likewise.
11423 (hdparm): Enable on qemu-mips.
11424 (setjmp): Add ia64 nodist.
11425 (serial): Simplify tags.
11427 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11429 * Makefile.util.def (grub-ofpathname): Install manual page.
11431 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11433 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11435 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11437 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11439 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11441 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11444 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11446 Use full 64-bit division.
11448 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11449 (grub_divmod64): ... this.
11450 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11453 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11455 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11458 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11460 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11461 to avoid accidents when debugging with 'sh -x'.
11462 * grub-core/gensyminfo.sh.in: Likewise.
11463 * tests/example_scripted_test.in: Likewise.
11464 * tests/grub_cmd_regexp.in: Likewise.
11465 * tests/grub_script_blanklines.in: Likewise.
11466 * tests/grub_script_dollar.in: Likewise.
11467 * tests/grub_script_expansion.in: Likewise.
11468 * tests/grub_script_final_semicolon.in: Likewise.
11469 * tests/partmap_test.in: Likewise.
11470 * tests/util/grub-shell-tester.in: Likewise.
11471 * tests/util/grub-shell.in: Likewise.
11473 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11475 Move gfxmenu color handling to video, so that gfxterm can use it
11478 * grub-core/gfxmenu/named_colors.c: Move to ...
11479 * grub-core/video/colors.c: ... here. Rename
11480 grub_gui_get_named_color to grub_video_get_named_color.
11481 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11482 * grub-core/video/colors.c (my_isxdigit): ... here.
11483 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11485 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11486 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11488 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11490 * include/grub/gui.h (grub_gui_color_t): Move to ...
11491 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11492 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11493 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11494 * include/grub/gui.h (grub_gui_map_color): Move to ...
11495 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11496 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11498 * include/grub/video.h (grub_video_get_named_color): ... here.
11499 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11500 * include/grub/video.h (grub_video_parse_color): ... here.
11502 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11504 (gfxmenu): Remove gfxmenu/named_colors.c.
11505 (video) [videomodules]: Add video/colors.c.
11507 Add a background_color command.
11509 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11511 (GRUB_MOD_INIT): Register background_color command.
11512 (GRUB_MOD_FINI): Unregister background_color command.
11513 (redraw_screen_rect): Allow blend/replace of text layer to be
11514 controlled independently from whether there is a background bitmap.
11515 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11518 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11520 Patch BPB in ntldr and chainloader --bpb.
11522 * grub-core/fs/fat.c: Include grub/fat.h.
11523 (grub_fat_bpb): Moved to ...
11524 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11525 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11527 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11529 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11531 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11533 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11534 (GRUB_MOD_INIT): Show --bpb.
11535 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11536 * grub-core/normal/main.c (features): New variable.
11537 (GRUB_MOD_INIT): Set feature_* variables.
11538 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11540 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11542 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11544 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11547 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11549 FreeDOS direct loading support.
11551 * docs/grub.texi (Supported OS): Add FreeDOS.
11552 * grub-core/Makefile.core.def (freedos): New module.
11553 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11555 (grub_relocator16_boot): Handle %ebx.
11556 * grub-core/lib/i386/relocator16.S: Likewise.
11557 * grub-core/loader/i386/pc/freedos.c: New file.
11559 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11561 Long Linux command line support.
11563 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11564 (maximal_cmdline_size): New variable.
11565 (allocate_pages): Use maximal_cmdline_size.
11566 (grub_cmd_linux): Set and use maximal_cmdline_size.
11567 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11568 (allocate_pages): Use maximal_cmdline_size.
11569 (grub_cmd_linux): Set and use maximal_cmdline_size.
11570 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11571 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11574 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11575 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11577 Improve devmapper support
11579 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11580 (grub_util_is_lvm): New function.
11581 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11582 than lvm if not dmraid.
11583 Handle mapped md nodes.
11584 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11585 (grub_util_device_is_mapped): ... this. Make always available. All users
11587 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11588 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11590 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11592 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11594 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11596 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11597 * grub-core/modinfo.sh.in: New file.
11598 * grub-core/Makefile.core.def (modinfo.sh): New script.
11599 * util/grub-mknetdir.in: Use modinfo.sh.
11600 * util/grub-mkrescue.in: Likewise.
11602 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11604 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11605 Fix potential usage of Elf32 instead of Elf64 when compiling on
11606 32-bit architecture. Add endianness macros while on it.
11608 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11610 Use mipsel- rather than mips- in directories involving mipsel ports to
11611 allow both endiannesses coexist.
11613 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11614 mips. All conditions adjusted.
11615 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11617 * util/grub-install.in: Adjust conditions to take renaming into account.
11618 * util/grub-mkimage.c (image_targets): Likewise. New target
11619 mips-qemu_mips-elf for bigendian mips.
11621 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11623 Avoid unnecessary copying on MIPS.
11625 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11626 early if src == dest.
11627 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11628 compression is none.
11630 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11632 Reduce memory footprint on SGI by putting modules before the kernel
11633 as opposed to after.
11635 * grub-core/Makefile.core.def (kernel): Increase linking address.
11636 (none_decompress): Likewise.
11637 (xz_decompress): Likewise.
11638 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11640 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11642 (grub_arch_modules_addr): New function.
11643 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11644 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11645 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11647 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11648 (grub_total_modules_size): ... this. Make global.
11649 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11650 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11652 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11653 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11654 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11655 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11656 * util/grub-mkimage.c (image_target_desc): New flag
11657 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11658 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11659 (generate_image): Handle images with modules before kernel.
11661 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11663 Prevent potential loss of memory map by overwrite on qemu-mips.
11665 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11666 Save ram size in $s4.
11667 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11668 All users changed to grub_arch_memsize.
11669 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11671 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11672 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11673 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11676 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11678 * .bzrignore: Remove grub-dumpbios.
11680 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11682 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11683 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11684 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11685 existing options which append).
11686 * docs/grub.texi (Simple configuration): Document new options.
11687 Reported by: Ian Jackson. Fixes Debian bug #617538.
11689 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11691 * util/grub-fstest.c (cmd_cat): New function.
11692 (fstest): Handle CMD_CAT.
11693 (options): Add cat.
11694 (argp_parser): Handle cat.
11696 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11698 * Makefile.util.def (grub-bin2h): Don't install.
11699 * docs/man/grub-bin2h.h2m: Remove.
11701 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11703 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11706 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11708 Reenable qemu-mips port.
11710 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
11711 Fix small arc bug while on it.
11712 * gentpl.py: Handle qemu_mips.
11713 * grub-core/Makefile.am: Likewise.
11714 * grub-core/Makefile.core.def: Likewise.
11715 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
11716 inappropriate includes.
11717 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
11718 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
11719 * grub-core/kern/main.c (grub_modules_get_end)
11720 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
11721 * grub-core/kern/mips/qemu-mips: Moved to ..
11722 * grub-core/kern/mips/qemu_mips: ... this.
11723 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
11724 (grub_machine_init): Call terminfo_init and serial_init.
11725 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
11726 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11728 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
11730 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
11731 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
11732 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
11733 * include/grub/mips/qemu_mips/cmos.h: New file.
11734 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
11735 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
11737 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
11738 Use correct mips-style address.
11739 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
11740 (GRUB_TICKS_PER_SECOND): Removed.
11741 (grub_get_rtc): Likewise.
11742 (grub_cpu_idle): Likewise.
11743 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
11745 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
11746 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
11747 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
11748 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
11749 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11750 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11751 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
11752 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
11754 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11758 * Makefile.util.def (libgrubmods.a): Add dvh.c.
11759 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
11761 * configure.ac: New target mips-arc.
11762 * gentpl.py: Likewise.
11763 * grub-core/Makefile.am: Likewise.
11764 * grub-core/Makefile.core.def: Likewise.
11765 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
11766 (none_decompress): Likewise.
11767 (lsdev): New module.
11768 (datetime): Use lib/arc/datetime.c on ARC.
11769 (part_dvh): New module.
11770 * grub-core/commands/arc/lsdev.c: New file.
11771 * grub-core/disk/arc/arcdisk.c: Likewise.
11772 * grub-core/kern/mips/arc/init.c: Likewise.
11773 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
11775 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
11777 (grub_arch_dl_relocate_symbols): Likewise.
11778 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
11779 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
11780 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
11782 * grub-core/lib/arc/datetime.c: New file.
11783 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
11784 pci.h on non-loongson.
11785 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
11786 (grub_linux_boot): Set unused registers to 0.
11787 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
11788 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
11789 * grub-core/mmap/mips/uppermem.c: ...here.
11790 * grub-core/partmap/dvh.c: New file.
11791 * grub-core/term/arc/console.c: Likewise.
11792 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
11793 (grub_terminfo_set_current): Add terminal "arc".
11794 (grub_terminfo_readkey): Support ARC sequences.
11795 * include/grub/arc/arc.h: New file.
11796 * include/grub/arc/console.h: Likewise.
11797 * include/grub/disk.h (grub_disk_dev_id): Add
11798 GRUB_DISK_DEVICE_ARCDISK_ID.
11799 * include/grub/mips/arc/kernel.h: New file.
11800 * include/grub/mips/arc/memory.h: Likewise.
11801 * include/grub/mips/arc/time.h: Likewise.
11802 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
11803 * include/grub/mips/kernel.h (grub_halt): ... here.
11804 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
11806 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
11807 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
11808 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
11809 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
11811 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
11813 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
11814 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
11815 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
11816 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
11817 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
11818 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
11819 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
11820 (grub_phys_addr_t): Moved from here ...
11821 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
11822 (grub_vtop): Moved from here ...
11823 * include/grub/mips/memory.h (grub_vtop): ... here.
11824 (grub_map_memory): Moved from here ...
11825 * include/grub/mips/memory.h (grub_map_memory): ... here.
11826 (grub_unmap_memory): Moved from here ...
11827 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
11828 (grub_machine_mmap_iterate): Moved from here ...
11829 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
11830 (grub_mmap_get_lower): Moved from here ...
11831 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
11832 (grub_mmap_get_upper): Moved from here ...
11833 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
11834 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11836 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11837 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
11839 * include/grub/mips/time.h (grub_get_rtc): ... here.
11840 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11842 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11843 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
11845 * include/grub/mips/time.h (grub_cpu_idle): ... here.
11846 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
11848 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
11849 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
11850 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
11851 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
11852 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11853 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11854 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
11855 (GRUB_MACHINE_LINK_ADDR): Likewise.
11856 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
11858 * util/grub-install.in: Run dvhtool on ARC.
11859 * util/grub-mkimage.c (image_targets): Add mips-arc.
11860 (generate_image): Handle ECOFF output for mips-arc.
11862 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11864 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
11867 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11869 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
11870 after enabling port.
11872 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11874 Skip incorrect USB devices.
11876 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
11878 * include/grub/usb.h (grub_usb_err_t): New enum value
11879 GRUB_USB_ERR_BADDEVICE.
11881 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11883 Fuloong video init support.
11885 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
11887 (grub_vga_read_arx): New function.
11888 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
11890 (framebuffer): New members io, mmioptr and mmiobase.
11891 (read_sis_cmd): New function.
11892 (write_sis_cmd): Likewise.
11893 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
11894 rather than 640x400.
11895 * grub-core/video/sis315_init.c: New file.
11897 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11899 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
11901 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
11902 to grub_dl_register_symbol.
11904 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11906 Fix compilation errors.
11908 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
11909 potentially unused.
11910 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
11911 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
11912 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
11913 to loongson machines.
11915 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11917 Several FS mtime support.
11919 * grub-core/fs/affs.c (grub_affs_time): New struct.
11920 (grub_affs_file): New field mtime.
11921 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
11922 type. Removed 'size'. New field 'di'. All users updated.
11923 (grub_affs_mount): Simplify checsum checking.
11924 (grub_affs_iterate_dir): New helper grub_affs_create_node.
11925 (grub_affs_dir): Handle mtime.
11926 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
11927 (grub_cpio_dir): Likewise.
11928 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
11929 (grub_hfs_filerec): New field mtime.
11930 (grub_hfs_dir): Handle mtime.
11931 (grub_hfs_mtime): New function.
11932 (grub_hfs_fs): Register grub_hfs_mtime.
11933 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
11934 (grub_iso9660_dir): New field mtime.
11935 (grub_fshelp_node): New field dirent.
11936 (iso9660_to_unixtime): New function.
11937 (iso9660_to_unixtime2): Likewise.
11938 (grub_iso9660_read_symlink): Use node->dirent.
11939 (grub_iso9660_iterate_dir): Likewise.
11940 (grub_iso9660_dir): Set mtime.
11941 (grub_iso9660_mtime): New function.
11942 (grub_iso9660_fs): Register grub_iso9660_mtime.
11943 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
11944 (grub_jfs_inode): New fields atime, ctime and mtime.
11945 (grub_jfs_dir): Set mtime.
11946 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11947 * grub-core/fs/ntfs.c (list_file): Set mtime.
11948 (grub_ntfs_dir): Likewise.
11949 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
11950 (grub_reiserfs_iterate_dir): Set mtime.
11951 (grub_reiserfs_dir): Likewise.
11952 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
11953 (grub_fshelp_node): Likewise.
11954 (grub_sfs_iterate_dir): Set mtime.
11955 (grub_sfs_dir): Likewise.
11956 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
11957 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
11958 (grub_xfs_inode): New fields atime, mtime, ctime.
11959 (grub_xfs_dir): Set mtime.
11960 * include/grub/datetime.h (grub_datetime2unixtime): New function.
11961 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
11962 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
11964 Support UDF symlinks.
11966 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
11967 (grub_ufs_read_symlink): New function. All users updated.
11969 Check amiga partmap checksum.
11971 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
11972 (grub_amiga_partition): Likewise.
11973 (amiga_partition_map_checksum): New function.
11974 (amiga_partition_map_iterate): Check checksum.
11976 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11980 * Makefile.util.def (libgrubmods.a): Add romfs.
11981 * grub-core/Makefile.core.def (romfs): New module.
11982 * grub-core/fs/romfs.c: New file.
11984 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11986 Squashfs v4 support.
11988 * Makefile.util.def (libgrubmods.a): Add squash4.
11989 * grub-core/Makefile.core.def (squash4): New module.
11990 * grub-core/fs/squash4.c: New file.
11991 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
11992 disk_input_start, disk_input.
11993 (get_byte): Handle disk_input.
11994 (grub_zlib_disk_read): New function.
11995 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
11997 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11998 2011-05-15 Feiran Zheng <famcool@gmail.com>
12000 * Makefile.util.def (libgrubmods.a): Add minix3.
12001 * grub-core/Makefile.core.def (minix3): New module.
12002 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12003 (GRUB_MINIX_BSIZE): Removed.
12004 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12005 (grub_minix_ino_t): New type.
12006 (grub_minix_le_to_cpu_ino): New macro.
12007 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12008 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12009 (grub_minix_data): New field block_size.
12010 (grub_minix_read_file): Handle 64-bit correctly.
12011 * grub-core/fs/minix3.c: New file.
12013 2011-05-15 Tristan Gingold <gingold@free.fr>
12014 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12015 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12019 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12020 * configure.ac: Add ia64-efi target.
12021 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12022 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12023 * gentpl.py: Add ia64_efi platform.
12024 Rename x86_efi to efi and Add ia64-efi. All users updated.
12025 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12026 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12027 Remove kern/generic/rtc_get_time_ms.c on EFI.
12028 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12029 kern/ia64/dl_helper.c on ia64-efi.
12030 Add kern/emu/cache.c on emu.
12031 (linux): Use on loader/ia64/efi/linux.c on ia64.
12032 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12033 whether symbol is a function.
12034 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12035 (grub_symbol): New field 'isfunc'.
12036 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12037 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12038 (grub_dl_load_segments): Place all sections into the same region.
12039 [__ia64__]: Create trampolines and got.
12040 [GRUB_MACHINE_EMU]: Call mprotect.
12041 (grub_dl_resolve_symbols): Resolve symbol type as well.
12042 [__ia64__]: Create function descriptors.
12043 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12044 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12045 (grub_get_rtc): New function.
12046 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12047 * grub-core/kern/emu/cache.S: Renamed to ...
12048 * grub-core/kern/emu/cache_s.S: ... this.
12049 [__ia64__]: Add a nop.
12050 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12051 [__ia64__]: New function.
12052 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12053 * grub-core/kern/ia64/dl.c: New file.
12054 * grub-core/kern/ia64/dl_helper.c: Likewise.
12055 * grub-core/kern/ia64/efi/init.c: New file.
12056 * grub-core/kern/ia64/efi/startup.S: Likewise.
12057 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12058 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12059 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12060 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12061 * grub-core/loader/ia64/efi/linux.c: New file.
12062 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12063 (GRUB_MOD_DEP): Likewise.
12064 (grub_dl) [__ia64__]: New fields got and tramp.
12065 (grub_dl): New field 'base'.
12066 (grub_dl_register_symbol): New argument isfunc. All users updated.
12067 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12068 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12069 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12070 (grub_ia64_dl_get_tramp_got_size): New proto.
12071 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12072 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12073 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12074 * include/grub/efi/api.h: Skip call wrappers on ia64.
12075 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12076 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12077 * include/grub/elf.h (ELF_ST_INFO): New definition.
12078 * include/grub/ia64/efi/kernel.h: New file.
12079 * include/grub/ia64/efi/memory.h: Likewise.
12080 * include/grub/ia64/efi/time.h: Likewise.
12081 * include/grub/ia64/kernel.h: Likewise.
12082 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12083 * include/grub/ia64/time.h: New file.
12084 * include/grub/ia64/types.h: Likewise.
12085 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12086 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12088 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12089 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12090 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12091 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12093 (EFI64_HEADER_SIZE): New definition. All users updated.
12094 (image_targets): Add ia64-efi.
12095 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12096 jumpers_addr. All users updated.
12097 Create function descriptors.
12098 (count_funcs): New function.
12099 (unaligned_uint32): New struct.
12100 (MASK20): New definition.
12101 (MASK19): Likewise.
12102 (MASKF21): Likewise.
12103 (add_value_to_slot_20b): New function.
12104 (add_value_to_slot_21_real): Likewise.
12105 (add_value_to_slot_21): Likewise.
12106 (ia64_kernel_trampoline): New struct.
12107 (nopm): New variable.
12109 (make_trampoline): New function.
12110 (relocate_addresses): Handle ia64.
12111 (make_reloc_section): Likewise.
12112 (load_image): Likewise.
12114 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12116 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12117 warning. Move variables before code while on it.
12119 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12123 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12124 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12125 * grub-core/boot/mips/loongson/fuloong.S: New file.
12126 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12127 Explicitly init CS5536.
12128 [FULOONG]: Don't use serial until CS5536 is available.
12129 Set GPIO based on dumps.
12130 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12131 [FULOONG]: Handle GPIO and memory controller differences.
12132 Parse machine type in $a2.
12133 * grub-core/boot/mips/startup_raw.S: Determine and save the
12135 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12136 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12137 init on architecture type.
12138 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12139 SIS315E. Don't init at_keyboard on fuloong.
12140 (grub_halt): Support Fuloong.
12141 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12142 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12143 (loongson_machtypes): New array.
12144 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12146 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12147 config. All users updated. Handle CS5536 serial.
12148 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12149 default port on machine type. Register serial as inactive.
12150 * grub-core/video/sis315pro.c: New file.
12151 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12153 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12154 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12155 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12156 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12157 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12158 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12160 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12161 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12163 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12164 (grub_arch_machine): New extern var.
12165 * include/grub/mips/loongson/serial.h
12166 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12167 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12168 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12169 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12170 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12171 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12172 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12173 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12174 * include/grub/term.h (grub_term_register_input_inactive): New inline
12176 (grub_term_register_output_inactive): Likewise.
12177 * include/grub/video.h (grub_video_driver_id): New value
12178 GRUB_VIDEO_DRIVER_SIS315PRO.
12179 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12180 New field "names". All users updated.
12181 New field value IMAGE_FULOONG_FLASH.
12182 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12184 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12186 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12187 and add some clarification.
12189 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12191 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12192 platforms if kernel is compressed.
12194 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12196 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12197 unused modules since currently referrence counter isn't reliable and
12198 there isn't much memory to recover there anyway.
12200 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12202 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12203 rather than resetting it to allow modules to reference themselves
12206 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12208 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12209 counter on dependencies since grub_dl_unref already handles this.
12211 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12213 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12214 on error if not already done.
12216 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12218 Fix few potential memory misusage.
12220 * grub-core/font/font.c (load_font_index): Don't free char_index to
12222 (grub_font_load): Zero-fill font at alloc for safety.
12223 Close file on error.
12224 (free_font): Free bmp_idx.
12226 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12228 * docs/grub.texi (Installation): Fix several outdated claims.
12230 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12232 Handle module_license on windows.
12234 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12236 (insert_string): Make argument const char * instead of char *.
12237 (write_section_data): Handle long section names.
12238 Handle module_license.
12240 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12242 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12243 handle class-free menuentries.
12244 (grub_normal_add_menu_entry): Add a check to be sure.
12246 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12248 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12251 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12253 * configure.ac: Bump version to 1.99.
12255 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12257 Give ATA device a bit more time on first try in order to allow disks
12260 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12261 if dev->present is 1. Reset dev->present on failure.
12262 (grub_ata_device_initialize): Set dev->present to 1.
12263 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12264 (grub_ata_device): New member 'present'.
12266 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12268 * util/grub-mkimage.c (generate_image): Update hash.
12270 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12272 Flush caches on DMA memory.
12274 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12275 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12276 (grub_dma_free): Likewise.
12277 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12279 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12281 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12282 to avoid asm treating ld and sd as macros.
12284 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12286 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12289 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12291 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12292 grub_decompress_core since later would fail if grub_decompress_core
12295 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12297 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12298 R_MIPS_JALR since it's used by newer compiler.
12300 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12302 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12304 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12306 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12307 file_path to 0 for surety.
12308 (grub_chainloader_boot): Set exit_data to NULL.
12309 Unset the loader once done.
12310 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12312 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12314 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12315 unknown key into a dprintf.
12317 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12319 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12320 on first non-existant partition.
12322 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12324 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12326 Reported by: Mark Korenberg.
12328 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12330 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12333 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12335 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12336 before closing to ensure that it will be readable by grub-setup.
12338 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12340 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12341 (devpath_1): Use MAKE_PIWG_PATH.
12342 (devpath_2): Likewise.
12343 (devpath_3): Likewise.
12344 (devpath_4): Likewise.
12345 (devpath_5): Likewise.
12346 (devpath_6): Likewise.
12348 The appleldr.mod was checked that to be binary identical to previous
12351 2011-05-05 Zach <mikezackles>
12353 Support 2010 Macbooks.
12355 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12356 (devs): Add devpath_6.
12358 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12360 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12361 /dev/random. /dev/urandom is good enough for our purposes (salting).
12363 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12365 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12367 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12369 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12372 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12374 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12375 and not 0 on failure.
12377 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12379 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12380 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12381 disk; otherwise grub_fs_probe will not fall back to the next
12383 (grub_pxefs_open): Likewise, for consistency.
12384 Reported and tested by: Ezekiel Grave.
12386 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12388 * tests/partmap_test.in: Don't hardcode path to parted.
12389 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12391 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12393 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12394 of `ls' to find out which devices are available.
12396 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12398 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12399 than source address for efi mmap buffer.
12401 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12403 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12404 wrong action on non-detecting the magic.
12406 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12408 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12409 already supplied by another part of the module (fixes compilation on
12412 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12414 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12415 match the one used by mdadm.
12417 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12419 * po/README: Add instructions for creating po/LINGUAS.
12421 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12423 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12426 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12427 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12428 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12429 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12430 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12431 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12432 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12433 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12434 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12435 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12436 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12437 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12438 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12439 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12440 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12441 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12442 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12443 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12444 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12445 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12446 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12447 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12449 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12451 * grub-core/kern/emu/getroot.c
12452 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12453 test that was incorrectly reintroduced in r3214.
12454 Reported by: Ian Dall. Fixes Savannah bug #33133.
12456 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12458 Fix stack pointer handling in 16-bit relocator.
12460 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12461 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12462 Fixes Ubuntu bug #683904.
12464 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12466 * configure.ac: Bump version to 1.99~rc2.
12468 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12470 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12471 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12472 * grub-core/lib/x86_64/setjmp.S: Likewise.
12473 * grub-core/lib/mips/setjmp.S: Likewise.
12474 * grub-core/lib/powerpc/setjmp.S: Likewise.
12475 * grub-core/lib/sparc64/setjmp.S: Likewise.
12477 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12479 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12480 * grub-core/lib/efi/datetime.c: Likewise.
12482 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12484 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12486 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12487 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12488 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12490 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12492 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12494 (grub_gfxterm_term_init): Likewise.
12496 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12498 Take into account the decorations the computing menu entry width.
12500 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12501 (grub_gfxmenu_create_box): Register get_border_width.
12502 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12504 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12507 2011-04-18 Endres Puschner <code@e7p.de>
12509 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12510 Don't skip first class.
12512 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12514 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12516 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12518 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12520 Complete 64-bit division support.
12522 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12523 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12524 * include/grub/misc.h (grub_divmod64): Rename to ...
12525 (grub_divmod64_full): ... this.
12526 (grub_divmod64): New inline function.
12528 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12530 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12532 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12534 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12535 performing the necessary test.
12537 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12539 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12540 (kfreebsd.elf): Likewise.
12541 (pc-chainloader.elf): Likewise.
12542 (ntldr.elf): Likewise.
12544 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12546 Identify RAID by its UUID rather than (guessed) name.
12548 * grub-core/disk/raid.c (ascii2hex): New function.
12549 (grub_raid_open): Accept mduuid/%s specification.
12550 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12551 (get_mdadm_uuid): ... this.
12552 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12554 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12556 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12559 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12561 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12563 * util/grub.d/20_linux_xen.in: Likewise.
12565 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12567 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12568 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12570 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12571 Build a list of relevant visible mounts using the mnt_id and
12572 parent_mnt_id fields, and then scan that list at the end.
12574 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12576 * docs/grub.texi (normal): New section.
12577 (normal_exit): New section.
12578 (Embedded configuration): Add reference to normal.
12579 (GRUB only offers a rescue shell): Likewise.
12580 * docs/grub-dev.texi (Error Handling): Fix typo.
12582 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12584 * NEWS: Drop obsolete entry about probe-only btrfs support.
12586 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12588 * util/import_gcry.py: Fix typo.
12590 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12592 * NEWS: Add btrfs support.
12594 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12595 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12597 BtrFS support. Written by me (Vladimir) with important bugfixes and
12598 even more important testing by Colin.
12600 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12601 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12602 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12603 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12604 mem_input_off and mem_input. All users updated to accept in-RAM input.
12605 (gzio_seek): New function.
12606 (test_zlib_header): Likewise.
12607 (grub_gzio_read): Likewise.
12608 (grub_zlib_decompress): Likewise.
12609 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12610 Accept partial and non-virtual mounts.
12611 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12612 avoid receiving /dev/dm-X as device.
12613 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12614 Handle bind and partial mounts.
12615 * grub-core/lib/crc.c: New file.
12616 * include/grub/deflate.h: Likewise.
12617 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12619 * include/grub/lib/crc.h: New file.
12621 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12623 Implement automatic module license checking according to new GNU
12626 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12627 (grub_dl_load_core): Use grub_dl_check_license.
12628 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12629 (GRUB_MOD_LICENSE): Likewise.
12630 (GRUB_MOD_DUAL_LICENSE): Likewise.
12631 All modules updated.
12633 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12635 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12636 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12638 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12640 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12642 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12644 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12646 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12649 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12651 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12652 parenthesis in the middle of the filename.
12654 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12656 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12657 rather than trying to put initrd way too high.
12658 Reported by: Ryan Lortie <desrt@desrt.ca>
12660 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12662 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12663 improperly removed string.
12665 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12667 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12669 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12670 (open_device) Likewise.
12671 (grub_util_biosdisk_close): Likewise.
12672 Reported by: Mark Korenberg.
12674 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12676 * util/grub-mkconfig_lib.in: Add missing quotes.
12678 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12680 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12683 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12685 Dynamically count the number of lines for the lower banner.
12687 * grub-core/normal/menu_entry.c (per_term_screen): New member
12689 (print_down): Use num_entries.
12690 (update_screen): Likewise.
12691 (grub_menu_entry_run): Set num_entries.
12692 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12694 (grub_print_message_indented): Move real part to ...
12695 (grub_print_message_indented_real): ... here. Additional argument
12697 (draw_border): Additional argument num_entries.
12698 (print_message): Additional argument dry_run.
12699 (print_entries): Receive menu viewer data.
12700 (grub_menu_init_page): New argment num_entries.
12701 (menu_text_set_chosen_entry): Use num_entries.
12702 (grub_menu_try_text): Likewise.
12703 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12705 (grub_ucs4_count_lines): New function.
12706 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12707 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12708 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12709 (grub_term_border_height): Likewise.
12710 (grub_term_num_entries): Likewise.
12712 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12714 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
12715 Remove now unused string.
12717 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12719 * docs/grub-dev.texi (Finding your way around): Update for 1.99
12721 (Getting started): GRUB is developed in Bazaar now, not Subversion.
12723 (Comment): Fix typo.
12724 (Getting started): General copy-editing.
12725 (Typical Development Experience): Likewise.
12726 (Error Handling): Likewise.
12727 (Video API): Likewise.
12729 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12731 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
12734 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12736 * util/grub-mkimage.c (main): Handle special naming of yeeloong
12739 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12741 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
12742 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
12745 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12747 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
12748 grub_strcpy since the lines aren't necessarily 0-terminated.
12750 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12752 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
12755 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12757 * grub-core/commands/probe.c (options): Argument to set isn't optional.
12758 (GRUB_MOD_INIT): DEVICE isn't optional.
12760 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12762 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
12763 word on new line if it's too long anyway. Fixes a hang.
12765 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12767 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
12769 * util/grub-setup.c (main): Reuse md device name if available.
12770 * util/raid.c (grub_util_raid_getmembers): Receive device name and
12771 not GRUB name as argument.
12772 Based on patch by: Florian Wagner <fwagner>.
12774 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12776 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12777 Place mbi on low memory for better compatibility.
12779 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12781 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
12783 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12784 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12786 * autogen.sh: Ensure that collate and ctype locale is C.
12787 * conf/Makefile.common: Likewise.
12789 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12791 * grub-core/normal/menu.c: Add missing include.
12793 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12795 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
12797 2011-04-08 Martin Zuther <mzuther@mzuther.de>
12799 * util/grub-mkconfig.in: Ignore emacsen backup.
12801 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12803 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
12805 (grub_util_biosdisk_close): Likewise.
12807 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12809 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
12810 const attribute and use grub_isdigit.
12812 2011-04-06 Andrey <dev_null@ukr.net>
12814 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
12817 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12819 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
12820 useful grub_dprintf's.
12822 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12824 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
12826 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12828 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
12830 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12832 Output errors if theme loading failed.
12834 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
12835 grub_gfxterm_fullscreen on error paths to ...
12836 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
12837 theme loading error.
12839 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12841 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
12842 space for older compilers.
12843 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12845 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12847 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
12848 and report them as not RAID members since they are useless for GRUB.
12849 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12851 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12853 Increase LVM implementation robustness in order not to crash on
12854 configurations like pvmove. Previously code assumed that in some places
12855 only lvs or only pvs are used whereas it seems that they are used
12858 * grub-core/disk/lvm.c (read_node): New function.
12859 (read_lv): Use read_node.
12860 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
12861 Match volumes only at the end when all lvs are found. Take both
12862 pvs (first) and lvs (second) into account.
12863 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
12864 mirror_* into node_*. All users updated.
12865 (grub_lvm_stripe): Merge this ...
12866 (grub_lvm_mirror): ... and this ...
12867 (grub_lvm_node): ... into this. All users updated.
12869 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12871 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
12872 of function to allow further scanning for LVMs.
12874 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12876 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
12877 on failed seek as it breaks open fd reusage.
12879 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12881 * util/grub-install.in: Add a recommendation to use --recheck before
12884 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12886 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
12889 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12891 GRUB developper manual based on existing Internals section and
12892 contributions by the various authors with active copyright assignment.
12894 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
12895 * docs/font_char_metrics.png: New file.
12896 * docs/font_char_metrics.txt: Likewise.
12897 * docs/grub-dev.texi: Likewise.
12898 * docs/grub.texi (Internals): Move from here ...
12899 * docs/grub-dev.texi: ... here.
12901 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12903 Store the loopback device as data on loopback grub_disk structures,
12904 rather than the file it points to. This fixes use of freed memory
12905 if an existing loopback device is replaced.
12907 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
12908 disk->data, not dev->file.
12909 (grub_loopback_read): Adjust file assignment to match.
12910 Fixes Ubuntu bug #742967.
12912 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12914 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
12915 when replacing an existing device.
12917 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
12919 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
12920 memory corruptions.
12922 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
12924 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
12925 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
12926 (grub_jfs_read_inode): Likewise.
12927 (grub_jfs_opendir): Likewise. Remove now useless casts.
12928 (grub_jfs_getent): Likewise.
12929 Make ino a grub_uint32_t rather than int.
12930 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
12931 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
12932 division and module with bit operations.
12933 (grub_jfs_find_file): Make ino a grub_uint32_t.
12934 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
12936 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12938 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
12939 warning. (This was in fact always initialised before use, but GCC
12940 wasn't smart enough to prove that.)
12941 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12943 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12945 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
12947 (efi_wrap_1): Likewise.
12948 (efi_wrap_2): Likewise.
12949 (efi_wrap_3): Likewise.
12950 (efi_wrap_4): Likewise.
12951 (efi_wrap_5): Likewise.
12952 (efi_wrap_6): Likewise.
12953 (efi_wrap_10): Likewise.
12954 Based on information by: Red Hat/Peter Jones.
12956 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12958 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
12959 set-but-not-used variable.
12961 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12963 * docs/grub.texi (Simple configuration): Be more explicit about
12964 GRUB_DEFAULT, and add an example.
12965 Reported by: Leslie Rhorer.
12967 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12969 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
12972 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12974 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
12975 * util/grub.d/20_linux_xen.in: Likewise.
12977 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12979 * util/grub.d/10_linux.in: Try alternative config filenames where
12980 we parse config file.
12981 * util/grub.d/20_linux_xen.in: Likewise.
12983 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12985 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
12986 * util/grub.d/20_linux_xen.in: Likewise.
12988 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12990 * grub-core/disk/raid.c (insert_array): Add few potentially
12991 useful grub_util_info.
12992 (grub_raid_register): Likewise.
12994 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12996 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
12997 Preserve partition number in mdadm code path.
12999 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13001 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13002 few potentially useful grub_util_info.
13004 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13006 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13008 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13010 * docs/grub.texi (default): Use @example rather than nested
13011 itemized lists to avoid breaking gendocs.
13013 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13015 * docs/grub.texi (Future): Update.
13017 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13019 * docs/grub.texi (Environment): New chapter.
13020 (Changes from GRUB Legacy): Link to "Environment block" section for
13021 details of limitations.
13022 (Simple configuration): Likewise. Link to documentation of gfxmode
13023 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13025 (Shell-like scripting): Note that normal variables are stored in the
13027 (gettext): Link to documentation of lang and locale_dir.
13028 (list_env): New section.
13029 (load_env): New section.
13030 (save_env): New section.
13032 (Reporting bugs): Fix typo.
13034 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13036 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13039 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13041 * grub-core/term/at_keyboard.c (set_scancodes)
13042 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13044 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13046 * docs/grub.texi (Menu-specific commands): Remove some semantics
13047 that were true in GRUB Legacy but not in GRUB 2.
13048 (submenu): New section.
13049 (false): New section.
13050 (read): New section.
13051 (true): New section.
13053 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13055 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13057 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13059 * docs/grub.texi (Simple configuration): Explain some of the
13060 current limitations of grub-mkconfig.
13061 Reported by: Leslie Rhorer.
13063 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13065 Old macs search for boot.efi rather than for bootia32.efi.
13067 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13068 * util/grub-mkrescue.in: Likewise.
13069 Suggested by: Peter Jones.
13071 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13073 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13075 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13077 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13078 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13079 (grub_lvm_mirror): New struct.
13080 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13081 (grub_lvm_iterate): Iterate only visible volumes.
13082 (grub_lvm_read): Factor out to ..
13083 (read_lv): ... this. Support mirrors.
13084 (grub_lvm_read): New wrapper function.
13085 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13086 stripped or mirrored.
13088 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13090 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13092 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13094 * docs/grub.texi (loopback): New section.
13096 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13098 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13101 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13103 * docs/grub.texi (BIOS installation): New section, partly based on
13104 previous text in other sections.
13105 (Installing GRUB using grub-install): Replace BIOS discussion with a
13107 (Images): Likewise.
13109 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13111 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13112 [HAVE_DIOCGDINFO]: Add safety checks.
13114 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13116 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13117 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13119 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13121 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13122 real_sb->size is zero (e.g. RAID-0), get the disk size from
13123 real_sb->data_size instead.
13124 Fixes Ubuntu bug #743136.
13126 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13128 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13129 printf clauses for printing size and start.
13131 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13133 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13134 Reported and tested by: Timothy Nikkel.
13136 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13138 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13139 (dirty_region_add_real): ... this.
13140 (dirty_region_add): Don't discard margin refresh when performing
13143 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13145 * grub-core/lib/relocator.c (allocate_regstart)
13146 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13147 terminals are capabple of malloc-free operation.
13148 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13149 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13151 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13153 * util/grub-setup.c: Copy the partition table zone if floppy support
13154 is disabled, even if no partition table is found.
13156 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13157 during POST if an invalid partition table is contained in the PBR
13158 of the active partition when GRUB is installed to a partition.
13160 2011-03-28 Colin Watson <cjwatson@debian.org>
13162 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13165 2011-03-28 Colin Watson <cjwatson@debian.org>
13167 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13168 to be specific about what kind of RAID device we're scanning for.
13170 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13172 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13173 return freed string.
13175 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13177 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13179 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13181 Use libgeom on FreeBSD to detect partitions.
13183 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13184 (grub-mkrelpath): Likewise.
13185 (grub-script-check): Likewise.
13186 (grub-editenv): Likewise.
13187 (grub-mkpasswd-pbkdf2): Likewise.
13188 (grub-fstest): Likewise.
13189 (grub-mkfont): Likewise.
13190 (grub-mkdevicemap): Likewise.
13191 (grub-probe): Likewise.
13192 (grub-setup): Likewise.
13193 (grub-ofpathname): Likewise.
13194 (grub-mklayout): Likewise.
13195 (example_unit_test): Likewise.
13196 (grub-menulst2cfg): Likewise.
13197 * grub-core/Makefile.core.def (grub-emu): Likewise.
13198 (grub-emu-lite): Likewise.
13199 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13200 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13201 define HAVE_DIOCGDINFO.
13202 (follow_geom_up) [FreeBSD]: New function.
13203 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13204 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13205 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13206 unconditionally of HAVE_DIOCGDINFO.
13208 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13210 Fix FreeBSD compilation problem.
13212 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13213 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13215 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13217 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13218 Switch back to page zero before loading a kernel, since some kernel
13219 drivers expect that.
13220 Thanks to: Felix Kuehling.
13222 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13224 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13225 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13226 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13228 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13230 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13231 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13233 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13235 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13236 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13237 malloc is disabled.
13239 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13241 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13242 for modules headers when counting the needed allocation size.
13244 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13246 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13247 if no ASCII character is found to prevent crash.
13249 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13251 * grub-core/video/bitmap.c (match_extension): Ignore case.
13253 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13255 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13257 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13259 * grub-core/script/parser.y: Declare "time" as valid argument.
13261 2011-03-23 Peter Jones <pjones@redhat.com>
13263 Fix incorrect assert failure reporting.
13265 * grub-core/tests/example_functional_test.c (example_test): Add
13267 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13268 (failure_start): ...this. Check that malloc succeeded.
13269 Don't call xvasprintf. Return failure struct.
13270 (failure_append_vtext): New function.
13271 (failure_append_text): Likewise.
13272 (add_failure): Likewise.
13273 (grub_test_assert_helper): Likewise.
13274 * include/grub/test.h (grub_test_assert_helper): New declaration.
13275 (grub_test_assert): Macro rewritten.
13277 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13279 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13281 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13283 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13285 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13287 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13288 into GRUB-style one.
13290 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13292 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13293 error and not grub_errno.
13294 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13296 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13298 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13299 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13301 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13303 * grub-core/efiemu/i386/pc/cfgtables.c
13304 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13305 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13306 (grub_xnu_unlock): Likewise.
13307 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13309 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13311 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13312 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13313 * grub-core/commands/hashsum.c (aliases): Likewise.
13314 * grub-core/commands/setpci.c (pci_registers): Likewise.
13315 * grub-core/disk/usbms.c (attach_hook): Likewise.
13316 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13317 (zio_checksum_table): Likewise.
13318 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13319 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13320 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13321 * grub-core/lib/relocator.c (leftovers): Likewise.
13322 (extra_blocks): Likewise.
13323 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13324 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13325 (modules_last): Likewise.
13326 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13327 (devices): Likewise.
13328 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13329 (modules_last): Likewise.
13330 * grub-core/normal/auth.c (users): Likewise.
13331 * grub-core/normal/context.c (initial_menu): Likewise.
13332 (current_menu): Likewise.
13333 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13334 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13335 (grub_serial_terminfo_input_template): Likewise.
13336 (grub_serial_terminfo_output_template): Likewise.
13337 (grub_serial_terminfo_input): Likewise.
13338 (grub_serial_terminfo_output): Likewise.
13339 (registered): Likewise.
13340 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13342 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13344 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13345 grub_video_mode_type_t.
13346 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13347 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13348 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13350 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13352 * util/grub-install.in: Correct the x86-64 name as x86_64.
13354 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13356 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13357 initial chunk read from the kernel always includes GRUB's multiboot
13358 header, which is now outside the first sector.
13360 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13362 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13363 cached mmap_size, so that this works correctly when called multiple
13365 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13367 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13369 * docs/grub.texi (Simple configuration): Tidy up formatting.
13371 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13373 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13374 Set-but-not-used variable removed.
13376 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13378 Workaround yet another IEEE1275 bug.
13380 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13381 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13382 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13383 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13385 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13386 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13388 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13390 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13393 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13395 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13396 empty, since in that case we can only generate either nothing or a
13397 syntactically invalid configuration file.
13398 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13400 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13402 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13403 (Making a GRUB bootable CD-ROM): Likewise.
13404 (Invoking grub-mkrescue): New section.
13405 Reported by: Yann Dirson. Fixes Debian bug #612585.
13407 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13409 * util/grub-install.in: Remove unnecessary brackets from tr
13411 * util/grub.d/10_hurd.in: Likewise.
13412 * util/grub.d/10_kfreebsd.in: Likewise.
13413 * util/grub.d/10_linux.in: Likewise.
13414 * util/grub.d/20_linux_xen.in: Likewise.
13415 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13417 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13419 * include/grub/file.h (not_easly_seekable): Rename to ...
13420 (not_easily_seekable): ... this. Update all users.
13422 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13424 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13427 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13429 * util/grub-mkimage.c (generate_image): Refuse to create the images
13430 bigger than the actual flash (512K) in Loongson machines. 512K is also
13431 the biggest chip supported by them.
13433 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13435 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13437 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13439 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13440 super_offset field.
13442 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13444 * util/grub-install.in: Ignore install device on platforms
13445 where it doesn't make sense. Always use UUIDs except on pc, efi and
13447 Reported by: Daniel Kahn Gillmor.
13449 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13451 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13453 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13455 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13456 (iterate_real): Don't rely on partition being non-NULL.
13458 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13460 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13461 supported platforms. Put a compile time assert for this rather than
13462 generate a warning with 32-bit shift.
13464 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13466 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13467 logical expression more readable.
13469 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13471 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13472 even if some elements have a name.
13473 Reported by: Alexander GQ Gerasiov.
13475 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13477 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13478 path unreadable if `grub-probe -t abstraction' fails, for example if
13479 memberlist fails on an LVM volume group.
13480 Reported by: Darius Jahandarie.
13482 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13484 * docs/grub.texi (Simple configuration): Document
13485 GRUB_PRELOAD_MODULES.
13487 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13489 * .bzrignore: Remove nonexistent grub-pbkdf2.
13491 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13493 * configure.ac: Bump version to 1.99~rc1.
13495 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13497 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13500 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13502 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13505 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13507 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13509 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13511 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13514 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13516 Fix compilation on cygwin.
13518 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13519 -R .drectve on cygwin.
13520 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13521 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13522 (COND_CYGWIN): New condition.
13523 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13524 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13525 not @TARGET_OBJ2ELF@.
13526 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13527 type to determine whether aux is to be used.
13529 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13531 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13532 realpath'ed device string.
13533 Handle floppy (somewhat).
13534 Issue error in unknown case rather than garbage.
13535 Reported by: Axel Beckert.
13537 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13539 * util/grub.d/00_header.in (load_video): Handle the case when no video
13541 Thanks to: Axel Beckert.
13543 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13545 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13546 variable. Fixes problem on big endian platforms.
13548 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13550 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13551 It doesn't work well there.
13553 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13555 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13557 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13558 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13561 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13563 Use alias->path rather than buggy "canon".
13565 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13566 (ofdisk_hash_add): New argument curcan. All users updated.
13568 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13570 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13572 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13574 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13575 loadmask before doing any calculations. Use correct type for offset.
13576 (grub_linux_load64): Likewise.
13578 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13580 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13582 (console_grub_equivalences_unshift): Likewise.
13583 Reported by: Daniel Dehennin.
13585 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13587 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13588 (set_env_limn_ro): Likewise.
13589 (GRUB_MOD_INIT): Likewise.
13590 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13591 ARRAY_SIZE while on it.
13592 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13593 * grub-core/normal/context.c (grub_env_export): Move from here ...
13594 * grub-core/kern/env.c (grub_env_export): ... here.
13595 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13597 * grub-core/kern/main.c (grub_main): Export root and prefix.
13598 * include/grub/env.h (grub_env_export): Export.
13599 Reported by: Seth Goldberg.
13601 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13603 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13604 Take into account space used by ELF sections and multiboot palette.
13605 Reported by: Grégoire Sutre.
13607 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13611 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13613 Pass more appropriate video id to Linux.
13615 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13616 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13618 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13619 shift params->lfb_size.
13620 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13622 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13624 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13626 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13628 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13629 separator and pass bootpath/devid even if only one of them is available.
13630 Reported by: Seth Goldberg.
13632 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13634 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13635 implementations bug on them.
13637 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13639 (filter_memory_map): Likewise.
13641 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13643 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13644 Reported by: nebuchadnezzar.
13646 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13648 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13649 Reported by: nebuchadnezzar.
13651 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13653 Submenu default support.
13655 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13656 auto_boot. All users updated.
13658 Handle chosen and default with submenus.
13659 (grub_menu_execute_with_fallback): Declared static.
13660 Don't notify failure if autobooted. Upper level does it.
13661 (menuentry_eq): New function.
13662 (get_entry_number): Use menuentry_eq.
13663 (show_menu): New parameter "autobooted". All users updated.
13664 (grub_show_menu): Likewise.
13665 * include/grub/normal.h (grub_show_menu): Likewise.
13666 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13667 (grub_menu_execute_with_fallback): Likewise.
13669 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13671 * util/grub-mklayout.c (usage): Update help text.
13673 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13675 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13677 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13679 * util/grub-menulst2cfg.c (main): Trim the line.
13681 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13683 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13684 (grub_machine_init): Don't check amount of low memory as reportedly
13685 INT 12h can be broken and if low memory is too low we wouldn't have
13686 gotten into grub_machine_init anyway.
13688 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13690 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13691 (grub_machine_mmap_iterate): Take low memory into account
13693 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13695 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13697 Reported by: TiCPU.
13699 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13701 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13704 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13706 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13707 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13709 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13711 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
13712 openbsd and netbsd types being in part_bsd module.
13714 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13716 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
13717 (_FILE_OFFSET_BITS): Likewise.
13718 Reported by: Seth Goldberg.
13720 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13722 * configure.ac: Check for libdevmapper header.
13724 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13726 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
13728 (fzap_lookup): Likewise.
13729 (dnode_get): Likewise.
13730 (make_mdn): Likewise.
13731 (zfs_mount): Likewise.
13732 (fzap_iterate): Use temporary pointer to avoid aliasing.
13733 (grub_zfs_read): Likewise.
13734 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
13735 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
13736 pointers to avoid aliasing.
13737 (grub_cmd_xnu_kernel64): Likewise.
13738 (grub_xnu_load_driver): Likewise.
13740 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13742 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
13744 (grub_cmd_terminal_output): Likewise.
13745 Reported and tested by: Grégoire Sutre.
13747 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13749 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
13751 Reported and tested by: Grégoire Sutre.
13753 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13755 * configure.ac: Do CPU substitution even if it's specified explicitly.
13756 Reported and tested by: Alain Greppin.
13758 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13760 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
13761 Reported and tested by: Alain Greppin.
13763 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13765 Satisfy some bison versions need for inttypes.h.
13767 * grub-core/lib/posix_wrap/inttypes.h: New file.
13768 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
13769 (int16_t): Likewise.
13770 (int32_t): Likewise.
13771 (int64_t): Likewise.
13772 Reported and tested by: Alain Greppin.
13774 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13776 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
13777 Silence spurious warning.
13778 Reported and tested by: Alain Greppin.
13780 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13782 * docs/grub.texi (Support automatic decompression): Update with xz
13783 decompression support.
13785 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13787 Improve loaders' kernel command line handling.
13789 * grub-core/lib/cmdline.c: New file.
13790 * include/grub/lib/cmdline.h: Likewise.
13791 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
13792 grub_create_loader_cmdline to create kernel command line.
13793 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13794 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
13795 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
13796 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
13797 (linux): Add lib/cmdline.c on common.
13799 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13801 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
13802 inopos might be unaligned.
13804 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13806 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
13807 endian transformations.
13808 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13809 Based on report by: Doug Nazar.
13811 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
13813 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
13814 array->members[i].start_sector.
13815 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
13817 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13819 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
13820 Reported and tested by: Grégoire Sutre.
13822 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13824 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
13825 avoid causing test failures by clearing the screen.
13827 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13829 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13830 Fix prefix check to handle the case where dir ends with a slash
13831 (most significantly, "/" itself).
13832 Reported by: Michael Vogt.
13834 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13836 Run terminfo_cls on initing terminfo output to clear the screen and
13837 move the cursor to (0,0).
13839 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
13840 Call grub_terminfo_output_init.
13841 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
13842 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
13843 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
13845 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13847 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
13850 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13852 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
13855 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13857 The E820 type 5 is BADRAM, not EXEC_CODE.
13859 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13860 (GRUB_E820_BADRAM): New define.
13861 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
13862 into reserved. Propagate BADRAM.
13863 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13864 (GRUB_E820_BADRAM): New define.
13866 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13868 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
13869 Ignore the memory post-4G.
13870 (grub_relocator_firmware_alloc_region): Additional debug statement.
13872 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13874 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
13876 Reported by: David Pravec.
13878 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13880 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
13883 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13885 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
13887 (grub_reed_solomon_recover): Likewise.
13889 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13891 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
13893 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13895 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
13898 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
13900 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
13901 descriptions of extract_legacy_entries_source and
13902 extract_legacy_entries_configfile.
13903 Reported by: Seung Soo, Ha.
13905 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
13907 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
13908 on devices that do not implement function 0.
13910 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
13912 * grub-core/fs/hfsplus.c: Make parent unsigned.
13913 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
13915 (grub_hfsplus_cmp_extkey): Likewise
13917 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13919 * util/grub-install.in: Correctly use bootloader_id and not
13920 GRUB_DISTRIBUTOR on efibootmgr line.
13922 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13924 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
13926 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
13928 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
13929 Xen and reorder menu item wording to make it clearer that this entry
13930 will launch Xen. Print separate messages when loading Xen and
13933 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13935 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
13936 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
13937 loop in case of incorrect amiga partmap.
13939 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13941 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
13942 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
13945 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13947 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
13949 Reported by: crocket
13951 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13953 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
13955 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
13957 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13959 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
13961 (grub_cmd_xnu_kextdir): Likewise.
13962 (grub_cmd_xnu_splash): Likewise.
13964 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13966 Avoid using Reed-Solomon with 0 redundancy.
13968 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
13969 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
13971 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
13972 (grub_reed_solomon_recover): Likewise.
13974 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13976 Don't use disk subsystem in freebsd_boot.
13978 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
13979 (freebsd_biosdev): Likewise.
13980 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
13981 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
13983 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13985 Handling of files of unknown size is currently limited. They can't be
13986 used e.g. for initrd or modules. Moreover gzip handling of not
13987 easily seekable files is buggy. Disable unknown file size for now. May
13988 be inefficient but works.
13990 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
13991 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
13993 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
13995 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
13998 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14000 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14002 2010-12-25 Shea Levy <shlevy>
14004 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14006 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14008 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14009 Windows Server 2008.
14010 Reported by: Devin Giddings.
14012 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14014 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14015 writing an error message because of async power management.
14016 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14017 (grub_reboot): Likewise.
14019 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14021 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14022 keep unit tests from failing when they shouldn't.
14024 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14026 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14027 previous patch increased the size of the RS code by 20 bytes (at
14028 least with gcc-4.4), so increase this by 20 bytes to match.
14029 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14031 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14033 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14034 scratch area. Make sure to initialise chosen in standalone mode as
14035 well as non-standalone.
14036 Reported by: Robert Hooker and Andy Whitcroft.
14037 Tested by: Andy Whitcroft.
14039 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14041 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14042 constructing a new unescaped string and passing it to grub_xputs in
14043 one go, rather than passing characters to grub_printf one at a time.
14045 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14047 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14048 initialising utf16.
14050 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14052 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14053 comment. Add an extra layer of quotation, requiring the output of
14054 this function to be used in a printf format string.
14055 (gettext_printf): New function.
14056 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14057 Extract translatable strings from here-documents and use a temporary
14058 variable instead, so that xgettext can find them.
14059 * util/grub.d/10_kfreebsd.in: Likewise.
14060 * util/grub.d/10_linux.in: Likewise.
14061 * util/grub.d/20_linux_xen.in: Likewise.
14063 * po/grub.d.sed: New file.
14064 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14065 arguments. Set c-format flags on all strings extracted from
14066 util/grub.d/ (xgettext refuses to include these itself for strings
14067 it extracted from a shell file, but these really are c-format).
14069 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14071 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14072 Avoid next pointing to nowhere.
14074 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14076 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14077 rather than assuming than rootblock is exactly in the middle.
14078 (grub_affs_label): Likewise.
14080 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14082 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14083 reserved_first_sector to 0.
14084 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14085 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14086 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14088 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14090 Fix handling of UTF-16 UDF labels.
14092 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14093 (read_string): .. here.
14094 (grub_udf_label): Use read_string.
14096 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14098 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14099 editor under argument scope.
14100 Reported by: Jordan Uggla
14102 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14104 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14106 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14108 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14109 line, and other keys scroll an entire page (previous handling was
14110 for \r and \n to scroll a page and other keys to scroll two lines).
14112 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14114 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14115 Set ptrdest to correct get_physical_target_address rather than
14116 incorrect get_virtual_current_address.
14118 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14120 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14121 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14123 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14125 * .bzrignore: Ignore grub-core/rs_decoder.S.
14127 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14129 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14130 .mo/.mo.gz opening sequence to ...
14131 (grub_mofile_open_lang): ... here.
14132 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14133 * util/grub.d/00_header.in (grub_lang): Include country part of
14135 Reported by: Mario Limonciello.
14137 2010-12-09 Robert Millan <rmh@gnu.org>
14139 * NEWS: Document addition of ZFS support.
14141 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14143 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14144 rather than `/ 2', as the latter requires -Wa,--divide which would
14145 require bumping our minimum binutils version.
14147 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14149 * util/grub-script-check.c (main): Print script line number on
14152 2010-12-01 Robert Millan <rmh@gnu.org>
14154 * grub-core/fs/zfs/zfs.c: New file.
14155 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14156 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14157 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14158 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14160 * include/grub/zfs/dmu.h: Likewise.
14161 * include/grub/zfs/dmu_objset.h: Likewise.
14162 * include/grub/zfs/dnode.h: Likewise.
14163 * include/grub/zfs/dsl_dataset.h: Likewise.
14164 * include/grub/zfs/dsl_dir.h: Likewise.
14165 * include/grub/zfs/sa_impl.h: Likewise.
14166 * include/grub/zfs/spa.h: Likewise.
14167 * include/grub/zfs/uberblock_impl.h: Likewise.
14168 * include/grub/zfs/vdev_impl.h: Likewise.
14169 * include/grub/zfs/zap_impl.h: Likewise.
14170 * include/grub/zfs/zap_leaf.h: Likewise.
14171 * include/grub/zfs/zfs.h: Likewise.
14172 * include/grub/zfs/zfs_acl.h: Likewise.
14173 * include/grub/zfs/zfs_znode.h: Likewise.
14174 * include/grub/zfs/zil.h: Likewise.
14175 * include/grub/zfs/zio.h: Likewise.
14176 * include/grub/zfs/zio_checksum.h: Likewise.
14178 * Makefile.util.def: Build ZFS into libgrubmods.
14179 * grub-core/Makefile.core.def: Build zfs.mod.
14181 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14183 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14185 * grub-core/commands/wildcard.c (match_files): Likewise.
14187 2010-11-30 Robert Millan <rmh@gnu.org>
14189 * grub-core/loader/i386/bsd.c
14190 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14191 whether kernel is loaded using grub_loader_is_loaded(), rather
14192 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14193 certain error conditions.
14195 2010-11-30 Robert Millan <rmh@gnu.org>
14197 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14198 (grub_cmd_echo): Call grub_refresh() after printing a message.
14200 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14202 Avoid using tricks for initialising endian variables.
14204 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14206 (GRUB_MOD_INIT): Don't byte-swap.
14207 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14208 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14209 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14210 (grub_swap_bytes32_compile_time): Likewise.
14211 (grub_cpu_to_le32_compile_time): Likewise.
14212 (grub_cpu_to_le16_compile_time): Likewise.
14214 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14216 * util/grub-setup.c (setup): Stop recommending --force. People who
14217 understand the dangers of blocklists are able to find this option
14218 anyway and the ones who don't shouldn't use it anyway.
14220 2010-11-26 Robert Millan <rmh@gnu.org>
14222 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14225 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14227 Fix LVM-on-RAID probing.
14229 * util/grub-probe.c (probe): Remember which disk was detected as
14230 RAID (perhaps an LVM physical volume). Use that disk's raidname
14231 rather than that of the top-level disk.
14233 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14235 Fix cmdline argument quotes for setparams command of menuentry
14238 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14239 quotes for arguments.
14240 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14241 grub_strchrsub function instead.
14243 * include/grub/misc.h (grub_strchrsub): New function.
14245 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14247 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14248 effort by skipping "." and ".." entries up-front.
14249 Suggested by: Michael Lazarev.
14251 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14253 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14254 ldflags to ldadd, to fix link line ordering.
14255 (none_decompress): Likewise.
14257 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14259 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14261 (grub-emu-lite): Remove kern/emu/cache.S.
14263 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14265 * util/deviceiter.c (compare_devices): If the by-id link for a
14266 device couldn't be resolved, fall back to sorting by the by-id link
14267 rather than segfaulting.
14268 Reported and tested by: Daniel Mierswa.
14270 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14272 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14273 ldflags, to fix link line ordering.
14275 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14277 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14278 linkers are picky about this.
14280 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14282 * grub-core/Makefile.am (command.lst): Adjust sed expression
14283 ordering so that extended and priority commands aren't treated as
14286 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14288 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14289 Remove byte-swapping function calls, which are not valid in
14290 structure initialisers.
14291 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14293 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14294 grub_gpt_partition_type_bios_boot.
14296 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14298 Fix test program build on GNU/kFreeBSD.
14300 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14301 $(LIBNVPAIR)' library dependencies.
14303 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14305 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14307 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14309 * util/grub-install.in: Remove excessive quoting that broke
14310 installations to RAID devices.
14312 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14314 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14315 bootloader version instead of 0.
14317 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14319 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14322 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14324 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14325 retrieve the metadat sector if size isn't known.
14326 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14328 2010-11-18 Robert Millan <rmh@gnu.org>
14330 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14331 with grub_memcmp().
14333 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14335 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14337 Reported by: Jordan Uggla.
14339 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14341 Make better UTF compliant.
14343 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14344 sequences as incorrect.
14345 (grub_is_valid_utf8): Likewise.
14346 (grub_utf8_to_ucs4): Likewise.
14347 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14348 (grub_ucs4_to_utf8_alloc): Likewise.
14349 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14351 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14353 Make legacy_source behave like source.
14355 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14357 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14359 2010-11-16 Colin Watson <cjwatson@debian.org>
14361 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14362 (-Wunused implies -Wunused-parameter, but not vice versa).
14364 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14366 * configure.ac: Make error messages less confusing by testing for
14367 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14368 accepted, but produces a diagnostic if something else is wrong).
14370 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14372 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14373 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14375 (grub_keyboard_controller_init)
14376 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14377 read the initial state since controller isn't inited yet.
14379 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14381 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14382 allocate_regbeg may need to create new chunk header.
14384 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14386 Fix quoting in legacy parser.
14388 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14390 (grub_legacy_parse): Likewise.
14391 Reported by: Jordan Uggla.
14392 Tested by: Jordan Uggla.
14394 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14396 Don't add -lgcc on i386 and x86_64.
14398 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14399 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14400 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14402 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14404 * configure.ac: Add -Wno-trampolines when supported.
14406 2010-11-14 Modestas Vainius <modax@debian.org>
14408 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14411 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14413 Add generic logical block size support for UDF.
14415 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14416 (GRUB_UDF_BLKSZ): Removed.
14417 (struct grub_udf_data): New field "lbshift" to hold the logical block
14418 size of the file system in log2 format. All users updated.
14419 (sblocklist): Change type to unsigned.
14420 (grub_udf_mount): Change type of "sblklist" to unsigned.
14421 Move AVDP search before VRS recognition, because the latter requires
14422 knowledge of the logical block size, which is detected during the
14424 Detect and validate logical block size during AVDP search, adding
14425 support for block sizes 512, 1024 and 4096.
14426 Make VRS recognition independent of block size.
14428 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14430 Properly handle deleted files on UDF.
14432 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14433 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14436 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14438 Support reading files larger than 2 GiB.
14440 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14441 "offset" to grub_off_t.
14442 (grub_udf_read_file): Likewise for parameter "pos".
14444 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14446 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14448 (Simple configuration): Refer to Changes from GRUB Legacy about
14449 save_env availability.
14451 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14453 * util/grub-install.in: Ignore empty partition table detection
14454 instead of trying to include part_ module.
14456 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14458 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14459 LVM on RAID support.
14461 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14463 Properly define WORDS_BIGENDIAN in wrapped environments.
14465 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14467 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14469 Reported by: Manoel Rebelo Abranches.
14470 Tested by: Manoel Rebelo Abranches.
14472 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14474 * util/grub-mkconfig.in: Fix quoting.
14476 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14478 Support big ext2 files.
14480 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14481 (grub_ext2_read_block): Support triple indirect blocks.
14482 (grub_ext2_read_file): Use 64-bit types and read size_high.
14483 (grub_ext2_open): Read size_high.
14484 Reported by: Ximin Luo.
14485 Tested by: Manoel Rebelo Abranches.
14487 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14489 * util/grub-install.in: Handle filenames containing spaces.
14490 Reported by: Jordan Uggla.
14491 Tested by: Jordan Uggla.
14493 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14495 * util/grub-mkconfig.in (grub_script_check): New variable.
14496 Use grub_script_check instead of grub-script-check.
14497 Reported by: Barry Jackson.
14499 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14501 * docs/grub.texi (menu): Correct the order.
14502 Reported by: D. Hugh Redelmeier.
14504 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14506 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14509 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14511 * include/grub/elfload.h (grub_elf32_size): New parameter.
14513 Return maximum segments alignment.
14514 (grub_elf64_size): Likewise.
14515 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14516 Return maximum segments alignment.
14517 (grub_elf64_size): Likewise.
14518 * grub-core/loader/powerpc/ieee1275/linux.c:
14519 (grub_linux_claimmap_iterate): New function. Uses the
14520 "available" property in the "memory" node for memory allocation
14521 for kernel in the PowerPC loader.
14522 (grub_linux_load32): Correctly find linux entry point offset.
14523 (grub_linux_load64): Likewise.
14525 2010-11-07 Robert Millan <rmh@gnu.org>
14527 On mips-yeeloong, build with -march=loongson2f when this flag is
14528 available (GCC >= 4.4).
14529 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14531 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14532 or otherwise add -march=mips3.
14534 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14536 Suppress shell expansion on echo '*' and echo "*" like cases.
14537 Reported by: Jordan Uggla.
14539 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14540 string arguments before shell expansion.
14541 * tests/grub_cmd_echo.in: New testcases.
14543 2010-11-07 Robert Millan <rmh@gnu.org>
14545 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14548 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14550 * grub-core/kern/emu/hostdisk.c
14551 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14553 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14555 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14556 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14557 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14559 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14561 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14563 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14565 * util/grub-install.in: Replace useless recomendation to pass
14566 --modules with a recomendation to report a bug.
14568 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14570 Properly register serial terminfo.
14571 Reported by: Jordan Uggla
14573 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14575 (grub_serial_terminfo_output_template): Likewise.
14576 (grub_cmd_serial): Register "serial" with terminfo.
14577 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14578 grub_serial_terminfo_output.
14580 2010-11-05 Robert Millan <rmh@gnu.org>
14582 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14585 2010-11-05 Robert Millan <rmh@gnu.org>
14587 On Yeeloong, pass machine type information to Linux.
14589 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14590 (LOONGSON_MACHTYPE): New macro, set to
14591 "machtype=lemote-yeeloong-2f-8.9inches".
14592 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14593 additional argument to Linux.
14595 2010-11-04 Robert Millan <rmh@gnu.org>
14597 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14598 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14599 (its SATA disks are detected as slaveless IDE master drives on
14601 Reported by Carsten Aulbert.
14603 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14605 * util/bin2h.c (main): Fix spelling error in generated output.
14607 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14609 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14611 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14613 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14614 vga= option is supplied.
14616 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14618 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14619 * util/grub.d/10_kfreebsd.in: Likewise.
14620 * util/grub.d/10_linux.in: Likewise.
14621 * util/grub.d/20_linux_xen.in: Likewise.
14623 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14625 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14626 argument as an argument to no-argument option.
14628 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14630 * util/grub.d/10_linux.in: Add missing load_video with explicit
14631 GRUB_GFXPAYLOAD_LINUX.
14633 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14635 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14637 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14639 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14640 elements with invlid index.
14641 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14642 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14644 * include/grub/raid.h (grub_raid_member): New struct.
14645 (grub_raid_array): Transform devices and start_sector into usage of
14646 grub_raid_member. All users updated
14647 (allocated_devs): New member.
14649 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14651 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14654 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14656 NetBSD build fix for getline function conflict from gnulib.
14658 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14659 components that depend on gnulib headers.
14660 (libgrubmods.a): Renamed from earlier libgrub.a.
14661 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14663 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14665 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14666 install rather than creating a broken install.
14668 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14670 * util/grub-setup.c (argp): Remove misleading example of installing to
14673 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14675 * util/grub-setup.c (setup): Clarify the error message.
14677 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14679 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14681 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14683 * grub-core/kern/emu/misc.c
14684 (grub_make_system_path_relative_to_its_root)
14685 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14687 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14689 * grub-core/kern/emu/misc.c
14690 (grub_make_system_path_relative_to_its_root): Revert r2882.
14692 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14694 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14695 useless field head. All users updated.
14696 (free_subchunk): Correct handling of IN_REGION subchunk.
14698 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14700 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14701 (Supported kernels): Likewise.
14703 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14705 Make mktemp invocations portable.
14707 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14708 exit if mktemp fails.
14709 * tests/grub_script_blockarg.in: Likewise.
14710 * tests/partmap_test.in: Likewise.
14711 * tests/util/grub-shell-tester.in: Likewise.
14712 * tests/util/grub-shell.in: Likewise.
14713 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14714 * Makefile.am: Likewise, and chain shell commands with `&&'
14716 * util/grub-mkrescue.in: Use the same explicit template as above, and
14717 exit if mktemp fails.
14719 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
14721 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
14722 Linux kernel, reported by Dennis Schridde.
14724 2010-10-17 Szymon Janc <szymon@janc.net.pl>
14726 * grub-core/normal/auth.c (grub_auth_check_authentication):
14727 Set-but-not-used variable removed.
14729 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14731 * docs/grub.texi (GNU/Linux): Document APM unavailability with
14732 32-bit linux protocol.
14734 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14736 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
14737 cursor shape for sanity.
14739 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14741 * docs/grub.texi (Installation): Document buggy BIOS install.
14743 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14745 * docs/grub.texi (Installation): Indent.
14747 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14749 * util/grub-setup.c (setup): New parameter allow_floppy.
14750 (arguments): New member allow_floppy.
14751 (argp_parser): Handle --allow-floppy.
14752 (main): Pass allow_floppy.
14753 * util/grub-install.in: New option --allow-floppy passed though to
14756 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14758 * util/grub-install.in: Handle partitionless disks.
14760 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14762 * util/grub-setup.c (setup): Don't clean blocklists before readability
14765 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14767 * docs/grub.texi (Installation): Document embedding zone. Remove
14768 obsolete grub-install example.
14770 2010-10-16 Szymon Janc <szymon@janc.net.pl>
14772 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
14773 Set-but-not-used variable ifdef'ed.
14774 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
14775 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
14777 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
14778 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
14779 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14780 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
14781 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
14782 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
14783 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
14784 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
14785 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
14786 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
14787 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
14790 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14792 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
14793 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
14796 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14798 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
14799 synonym to _S5_. Needed for some DSDTs.
14801 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14803 Userspace ACPI parser debugging.
14805 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
14806 headers and add relevant defines. Don't include standard headers.
14807 (main) [GRUB_DSDT_TEST]: New function.
14808 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
14809 Don't declare functions.
14811 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14813 Remove dead grub_efi_mm_fini.
14815 * grub-core/kern/efi/mm.c (allocated_page): Removed.
14816 (ALLOCATED_PAGES_SIZE): Likewise.
14817 (MAX_ALLOCATED_PAGES): Likewise.
14818 (allocated_pages): Likewise.
14819 (grub_efi_allocate_pages): Don't record allocated pages.
14820 (grub_efi_free_pages): Likewise.
14821 (grub_efi_mm_init): Likewise.
14822 (grub_efi_mm_fini): Removed.
14824 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14826 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
14827 (grub_efi_mm_init): Take into account the memory map size increase.
14829 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14831 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
14832 (serial_hw_put): Wait based on real time rather than port reads. Don't
14834 * include/grub/serial.h (grub_serial_port): New field broken.
14836 2010-10-16 Robert Millan <rmh@gnu.org>
14838 * grub-core/kern/emu/misc.c
14839 (grub_make_system_path_relative_to_its_root): Fix premature return
14840 when processing non-root ZFS filesystems.
14841 Reported by Sergio Talens-Oliag.
14843 2010-10-15 Robert Millan <rmh@gnu.org>
14845 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
14846 guarantee compressed ones are processed first.
14848 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14850 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
14851 grub_efiemu_autocore.
14853 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14855 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
14857 (grub_console_getkey): Use correct jae opcode rather than ja.
14859 2010-10-12 Robert Millan <rmh@gnu.org>
14861 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
14862 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
14863 variable. All references updated.
14865 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
14867 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
14869 Correctly distinguish mdraid flavours.
14871 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
14872 (insert_array): New argument raid.
14873 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
14874 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
14875 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
14877 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
14879 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
14880 handling of special keys.
14882 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14884 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
14885 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
14887 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14889 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
14890 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
14892 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
14893 Use right endpoint when querying descriptor.
14895 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14897 Clear out 0x80 color bit on EFI.
14899 Reported by: decoder and meta tech.
14901 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
14902 (grub_console_setcolorstate): Clear out 0x80 bit.
14903 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
14904 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
14905 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
14907 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14909 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
14912 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14914 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
14915 mo_file after freeing.
14917 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14919 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
14921 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14923 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
14926 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14928 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
14931 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14933 Put terminfo into core on ieee1275 and yeeloong (needed for console).
14935 * gentpl.py: New groups terminfoinkernel and terminfomodule.
14936 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
14937 and terminfo.h when needed.
14938 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
14939 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
14940 (terminfo): Enable only on terminfokernel.
14941 (extcmd): Likewise.
14942 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
14943 * include/grub/lib/arg.h: Likewise.
14944 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
14945 incorrect usage of ->.
14947 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14949 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
14950 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
14952 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14954 Fix coreboot compilation.
14956 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14957 Take VBE info into account even if only text is supported.
14958 (fill_vbe_info): Take into account the case when only VGA text
14960 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
14961 on coreboot, multiboot and qemu.
14963 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14965 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
14967 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
14969 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14971 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
14974 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14976 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
14977 if they were BSD-style.
14979 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14981 * grub-core/boot/i386/pc/lnxboot.S: Replace
14982 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
14983 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
14985 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14987 Write embedding zone using Reed-Solomon.
14989 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
14990 * grub-core/Makefile.am (rs_decoder.S): New target.
14991 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
14992 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
14993 (multiboot): Move to RS part.
14994 (post_reed_solomon): New label.
14995 (grub_boot_drive): Move to non-RS part since it's modified in memory
14997 Include rs_decoder.S.
14998 * grub-core/lib/reed_solomon.c: New file.
14999 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15001 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15002 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15003 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15004 * include/grub/partition.h (grub_partition_map): Change prototype of
15005 embed to allow returning additional sectors.
15006 * include/grub/reed_solomon.h: New file.
15007 * util/grub-setup.c (setup): Handle Reed-Solomon.
15009 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15011 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15012 i386 and x86-64 definedness tests.
15014 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15016 Fix generation of kernel_syms.lst
15018 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15021 2010-09-26 Robert Millan <rmh@gnu.org>
15023 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15025 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15026 the pool is an array of devices, iterate through it and return the
15027 first device that passes a stat() test (instead of blindly returning
15030 2010-09-26 Robert Millan <rmh@gnu.org>
15032 Build fixes for GNU/kFreeBSD.
15034 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15035 to programs that require ZFS conversion.
15036 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15037 kernels that don't have FLOPPY_MAJOR.
15039 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15041 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15043 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15045 Fix grub-emu build.
15047 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15048 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15049 mdraid09 and mdraid1x.
15051 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15053 Re-enable grub-extras.
15055 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15056 avoid confusing Automake. Run autogen only twice, once for the top
15057 level and once for grub-core. Add Makefile.util.def and
15058 Makefile.core.def from extra modules to the appropriate autogen
15059 invocations. If Makefile.common exists in an extra module, include
15060 it in both Makefile.util.am and grub-core/Makefile.core.am;
15061 similarly, include any Makefile.util.common file in Makefile.util.am
15062 and any Makefile.core.common file in grub-core/Makefile.core.am.
15063 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15064 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15065 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15066 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15068 * gentpl.py (gvar_add): Turn GVARS into a set.
15069 (global_variable_initializers): Sort global variables on output.
15070 (vars_init): New function.
15071 (first_time): Likewise.
15072 (library): Ensure that non-global variable initialisations are
15073 emitted before the first time we emit code for a library block.
15074 Append to variables rather than setting them. Only emit
15075 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15076 each conditional path.
15077 (program): installdir() emits an Autogen macro, so must be passed to
15078 var_add rather than gvar_add.
15080 (script): Likewise.
15081 (rules): New function, centralising handling for different target
15082 types. Set up Guile association lists for first_time and vars_init,
15083 and send most output to a diversion so that variable initialisations
15084 can be emitted first.
15085 (module_rules): Use new rules function.
15086 (kernel_rules): Likewise.
15087 (image_rules): Likewise.
15088 (library_rules): Likewise.
15089 (program_rules): Likewise.
15090 (script_rules): Likewise.
15091 (data_rules): Likewise.
15093 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15095 * .bzrignore: Add contrib and grub-core/contrib. Remove
15096 grub-core/Makefile.gcry.am.
15098 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15100 * grub-core/lib/LzFind.c: Add missing include.
15101 * grub-core/lib/LzmaEnc.c: Likewise.
15102 * grub-core/script/lexer.c: Likewise.
15103 * grub-core/script/yylex.l: Likewise.
15104 * util/grub-macho2img.c: Likewise.
15105 * util/grub-menulst2cfg.c: Likewise.
15106 * util/grub-mklayout.c: Likewise.
15107 * util/grub-mkpasswd-pbkdf2.c
15108 * util/grub-mkrelpath.c: Likewise.
15109 * util/resolve.c: Likewise.
15111 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15113 * Makefile.util.def (example_unit_test): Add
15114 grub-core/gnulib/libgnu.a.
15116 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15118 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15120 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15122 Support xz compression on yeeloong.
15124 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15125 * configure.ac: Check for LZMA.
15126 * grub-core/Makefile.core.def (xz_decompress): New target.
15127 (none_decompress): Likewise.
15128 * grub-core/boot/decompressor/minilib.c: New file.
15129 * grub-core/boot/decompressor/none.c: Likewise.
15130 * grub-core/boot/decompressor/xz.c: Likewise.
15131 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15132 * grub-core/kern/mips/cache_flush.S: Likewise.
15133 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15134 * grub-core/kern/mips/startup.S: Move first stage to ...
15135 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15137 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15138 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15139 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15140 Allocate statically.
15141 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15142 Allocate statically or use scratch. Don't check CRC32.
15143 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15144 Allocate statically. Don't check CRC32.
15145 * include/grub/decompressor.h: New file.
15146 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15148 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15149 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15150 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15151 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15152 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15153 * util/grub-mkimage.c (grub_compression_t): New type.
15154 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15155 (image_target_desc): New field default_compression.
15156 (image_targets): Adjust yeeloong targets.
15157 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15158 (compress_kernel): New parameter comp.
15159 (generate_image): Likewise. Handle new compression case.
15160 (options): New option --compression
15162 (main): Handle new option.
15164 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15166 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15168 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15170 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15171 typo in __i386__ conditional.
15173 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15175 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15178 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15180 Implement EFI and ACPI multiboot2 extensions.
15182 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15183 new tags as supported.
15184 (acpiv2_size): New function.
15185 (grub_multiboot_get_mbi_size): Take new tags into account.
15186 (grub_multiboot_make_mbi): Add new tags.
15187 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15189 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15191 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15192 Added missing configuration of USB device.
15194 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15196 * grub-core/normal/menu_entry.c (run): Make sure we always return
15199 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15201 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15202 NumberOfPages is UINT64 according to the UEFI specification, not
15203 UINTN. Fix printf format.
15205 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15207 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15208 `err' to grub_usb_err_t.
15209 Reported and tested by: KESHAV P.R.
15211 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15213 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15214 tpart non-const, so that we can assign to it. (Since this is a
15215 typedef, the constness refers to the pointer rather than what it
15218 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15220 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15221 $(top_srcdir)/grub-core/gnulib as well as
15222 $(top_builddir)/grub-core/gnulib.
15223 Reported by: KESHAV P.R.
15225 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15227 * util/grub-install.in: Fix the bootloader ID option to be
15228 consistently --bootloader-id, not --bootloader_id.
15229 Reported by: KESHAV P.R.
15231 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15233 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15234 check hash checksum." consistently translatable.
15236 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15238 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15241 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15243 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15244 (GRUB_MOD_INIT): Register sha1sum command.
15245 (GRUB_MOD_FINI): Unregister sha1sum command.
15247 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15249 Keep boot and grub directory names in sync with utils scripts
15251 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15252 * config.h.in: Add previous macros.
15253 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15254 * util/grub-install.in: Use $bootdir and $grubdir variables.
15256 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15258 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15259 convert partition names to disk names if the new `convert' parameter
15261 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15262 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15263 disk in its own right. This can happen with Xen disk images.
15265 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15267 * util/grub-editenv.c: Update strings to avoid warnings when generating
15269 * util/grub-setup.c: Likewise.
15271 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15273 * configure.ac: Change version to 1.99~beta0.
15275 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15277 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15279 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15281 * include/multiboot.h: Resynced with specification.
15282 * include/multiboot2.h: Likewise.
15284 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15286 Fix po directory handling.
15288 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15289 * grub-core/gnulib/Makefile.am: Import gettext module.
15290 * m4/gnulib-cache.m4: Likewise.
15291 * m4/gnulib-comp.m4: Likewise.
15292 * m4/gettext.m4: New file, from gnulib.
15293 * m4/glibc2.m4: Likewise.
15294 * m4/iconv.m4: Likewise.
15295 * m4/intdiv0.m4: Likewise.
15296 * m4/intl.m4: Likewise.
15297 * m4/intldir.m4: Likewise.
15298 * m4/intlmacosx.m4: Likewise.
15299 * m4/intmax.m4: Likewise.
15300 * m4/inttypes-pri.m4: Likewise.
15301 * m4/lcmessage.m4: Likewise.
15302 * m4/lib-ld.m4: Likewise.
15303 * m4/lib-link.m4: Likewise.
15304 * m4/lib-prefix.m4: Likewise.
15305 * m4/lock.m4: Likewise.
15306 * m4/nls.m4: Likewise.
15307 * m4/po.m4: Likewise.
15308 * m4/printf-posix.m4: Likewise.
15309 * m4/progtest.m4: Likewise.
15310 * m4/threadlib.m4: Likewise.
15311 * m4/uintmax_t.m4: Likewise.
15312 * m4/visibility.m4: Likewise.
15313 * po/Makefile.am: Remove.
15314 * po/Makefile.in.in: New file, from gettext.
15315 ($(DOMAIN).pot-update): Support POTFILES-shell.
15316 * po/Makevars: New file.
15317 * po/POTFILES-shell: Rename to ...
15318 * po/POTFILES-shell.in: ... this. Update.
15319 * po/POTFILES: Rename to ...
15320 * po/POTFILES.in: ... this. Update.
15321 * po/Rules-quot: New file, from gettext.
15322 * po/boldquot.sed: Likewise.
15323 * po/en@boldquot.header: Likewise.
15324 * po/en@quot.header: Likewise.
15325 * po/insert-header.sin: Likewise.
15326 * po/quot.sed: Likewise.
15327 * po/remove-potcdate.sin: Likewise.
15329 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15331 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15333 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15335 * util/grub.d/20_linux_xen.in: Use submenus.
15337 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15341 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15342 parameter submenu. All users updated.
15343 * grub-core/normal/main.c (free_menu): Rename to ...
15344 (grub_normal_free_menu): ... this. Made global.
15345 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15347 * grub-core/normal/menu_entry.c (screen): New field submenu.
15348 (make_screen): Set submenu.
15349 (run): Open new context if requested.
15350 * include/grub/menu.h (grub_menu_entry): New field submenu.
15351 * include/grub/normal.h (grub_normal_free_menu): New proto.
15353 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15355 Menu entries extractor.
15357 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15359 (GRUB_MOD_INIT): Register new variants.
15360 (GRUB_MOD_FINI): Unregister new variants.
15361 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15362 into grub_cmd_legacy_source.
15363 (grub_cmd_legacy_source): Implement extractor variants.
15364 (GRUB_MOD_INIT): Register new variants.
15365 (GRUB_MOD_FINI): Unregister new variants.
15366 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15368 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15369 search as an extractor.
15370 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15371 test as an extractor.
15372 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15374 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15375 (grub_env_new_context): New function.
15376 (grub_env_context_open): Likewise.
15377 (grub_env_extractor_open): Likewise.
15378 (grub_env_extractor_close): Likewise.
15379 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15380 grub_extractor_level.
15381 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15382 * include/grub/env.h (grub_env_extractor_open): New proto.
15383 (grub_env_extractor_close): Likewise.
15384 * include/grub/normal.h (grub_extractor_level): New external variable.
15386 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15388 Make cutmem accept a region specification.
15389 Suggested by: Samuel Thibault
15391 * grub-core/mmap/mmap.c (parsemem): New function.
15392 (grub_cmd_cutmem): Handle new arguments.
15394 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15396 New command cutmem.
15398 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15399 (GRUB_MOD_INIT): Register new command.
15400 (GRUB_MOD_FINI): Unregister new command.
15402 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15404 Support some annoying BSD and Minix subpartitions.
15406 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15407 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15408 Properly handle concatenation.
15409 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15410 * grub-core/normal/completion.c (iterate_partition): Likewise.
15411 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15412 contain partition. All users updated.
15413 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15415 (grub_openbsdlabel_partition_map): Likewise.
15416 (bsdlabel_partition_map_iterate): Rename to ..
15417 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15418 (bsdlabel_partition_map_iterate): New function.
15419 (netopenbsdlabel_partition_map_iterate): Likewise.
15420 (netbsdlabel_partition_map_iterate): Likewise.
15421 (openbsdlabel_partition_map_iterate): Likewise.
15422 (GRUB_MOD_INIT): Register new partmaps.
15423 (GRUB_MOD_FINI): Unregister new partmaps.
15424 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15425 (grub_partition_msdos_iterate): ... this. All users updated.
15426 Don't support embedding other than in a minix partition.
15427 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15429 * include/grub/partition.h (grub_partition): New field msdostype.
15430 * util/grub-install.in: Handle openbsd and netbsd types being in
15433 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15435 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15437 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15438 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15439 (mdraid09): ... this.
15440 (mdraid1x): New module.
15441 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15442 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15444 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15446 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15449 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15451 * grub-core/commands/efi/lsefimmap.c: Correct header.
15454 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15456 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15457 as printf format strings; the translations might contain '%' which
15458 could cause a crash.
15460 * util/grub-fstest.c (argp_parser): Likewise.
15461 * util/grub-setup.c (argp_parser): Likewise.
15464 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15466 Use argp in grub-fstest.
15468 * util/grub-fstest.c: Don't include getopt.h.
15470 (root): New variable.
15471 (args_count): Likewise.
15473 (num_disks): Likewise.
15474 (images): Likewise.
15476 (debug_str): Likewise.
15478 (options): Transformed to argp.
15480 (main): Split argument parsing into ...
15481 (argp_parser): ... this. Changed to argp format.
15482 (argp): New variable.
15483 (main): Use argp_parse.
15485 2010-09-20 Tristan Gingold <gingold@free.fr>
15486 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15487 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15489 * grub-core/commands/efi/lsefimmap.c: New file.
15490 * grub-core/Makefile.core.def (lsefimmap): New module.
15491 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15493 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15495 Pause the execution (10s max) if any errors are displayed so the user
15496 has a chance to see them.
15498 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15499 (grub_print_error): Increment grub_err_printed_errors.
15500 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15501 execution if any errors were displayed.
15502 (show_menu): Remove old code for pause.
15503 * grub-core/normal/menu_entry.c (run): Likewise.
15504 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15506 (grub_normal_get_char_counter): Likewise.
15507 * include/grub/err.h (grub_err_printed_errors): New external variable.
15508 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15510 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15512 Support multiboot VBE info.
15514 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15515 Take VBE info into account.
15516 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15517 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15518 Call fill_vbe_info when appropriate.
15519 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15520 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15522 (grub_multiboot_get_mbi_size): Take new tags into account.
15523 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15524 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15525 Call fill_vbe_tag when appropriate.
15526 (grub_multiboot_make_mbi): Properly align tags.
15527 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15529 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15531 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15533 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15535 Suport manual terminal geometry specification.
15537 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15538 Save state in grub_ofconsole_terminfo_output.
15539 (grub_ofconsole_term): Use grub_terminfo_getwh.
15540 (grub_ofconsole_getwh): Removed.
15541 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15542 (grub_serial_term): Use grub_terminfo_getwh.
15543 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15544 (options): New struct.
15545 (OPTION_*): New enum.
15546 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15547 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15549 (grub_terminfo_getwh): New proto.
15550 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15552 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15554 Handle legacy "terminal" command.
15556 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15558 (legacy_commands): Add terminal and title.
15559 (grub_legacy_parse): Handle terminal. Simplify title handling.
15561 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15563 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15564 parameters overflow.
15566 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15568 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15571 * docs/grub.texi (Shell-like scripting): Document `!'.
15572 (Network): Simplify using new i386-pc-pxe format. Mention
15577 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15579 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15580 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15583 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15585 * grub-core/commands/efi/lsefisystab.c: Correct header.
15586 * grub-core/commands/efi/lssal.c: Likewise.
15587 * grub-core/commands/testload.c: Likewise.
15589 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15591 * util/grub-mkrescue.in: Add explicit root argument to --set to
15592 prevent the UUID being interpreted as an argument to --set (matches
15593 previous change to prepare_grub_to_access_device).
15595 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15597 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15598 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15599 the verbosity of later #ifs.
15600 (find_partition_start): Define this function on FreeBSD too.
15601 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15603 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15606 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15608 * util/grub-editenv.c: Use argp instead of getopt.
15610 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15612 * util/grub-setup.c: Use argp instead of getopt.
15614 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15616 Use gnulib-tool to create gnulib source files.
15618 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15619 grub-core/gnulib directories
15620 * .bzignore: Add **/.deps and autogenerated gnulib files
15621 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15622 of gnulib macros, add grub-core/gnulib/Makefile
15623 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15624 include m4 directory to aclocal.
15625 * Makefile.util.def: Remove direct compilation of gnulib source files
15626 and use the new grub-core/gnulib/libgnu.a.
15627 * build-aux/config.rpath: move config.rpath from top directory to
15629 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15631 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15632 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15633 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15635 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15638 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15640 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15641 grub-core/genmod.sh and grub-core/gensyminfo.sh
15643 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15645 Add a test for echo command options.
15647 * tests/grub_cmd_echo.in: New test.
15648 * Makefile.util.def: Rules for new test.
15650 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15652 Remove crc.mod and move crc command to hashsum.mod.
15653 Remove lib/crc.c - users updated to use gcrypt implementation.
15655 * grub-core/commands/crc.c: Removed.
15656 * grub-core/Makefile.core.def (crc): Module removed.
15657 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15658 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15659 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15660 * grub-core/lib/crc.c: Removed.
15661 * include/grub/lib/crc.h: Removed.
15662 * Makefile.util.def (crc): Remove lib/crc.c
15663 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15664 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15665 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15666 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15667 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15668 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15670 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15672 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15674 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15676 Split config.h for util and core.
15678 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15679 (ADDR32): Likewise.
15680 (DATA32): Likewise.
15681 (BSS_START_SYMBOL): Likewise.
15682 (END_SYMBOL): Likewise.
15683 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15684 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15685 * config.h.in: New file.
15686 * configure.ac: Use config-util.h as config define file.
15687 Rename MACHINE into GRUB_MACHINE. All users updated.
15688 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15690 (NESTED_FUNC_ATTR): Likewise.
15691 Substitue new variables.
15692 (COND_HAVE_ASM_USCORE): New conditional.
15693 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15694 (kernel_syms.lst): Use ASM_PREFIX.
15695 * grub-core/kern/emu/console.c: Include config-util.h.
15696 * grub-core/kern/emu/misc.c: Likewise.
15697 * grub-core/kern/emu/mm.c: Likewise.
15698 * include/grub/emu/misc.h: Likewise.
15699 * include/grub/libgcc.h: Likewise.
15701 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15703 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15705 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15706 Fix GRUB_TERM_KEY_* constants usage.
15707 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15709 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15711 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
15713 * grub-core/bus/usb/uhci.c: Remove empty define.
15714 (grub_uhci_check_transfer): Add missing cast.
15715 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
15717 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
15719 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
15721 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15723 * grub-core/Makefile.core.def (legacycfg): Add
15724 lib/i386/pc/vesa_modes_table.c on emu.
15726 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15728 Reduce number of temporary files generated by build system.
15730 * grub-core/gencmdlist.sh: Removed.
15731 * grub-core/genfslist.sh: Removed.
15732 * grub-core/genhandlerlist.sh: Removed.
15733 * grub-core/genmodsrc.sh: Removed.
15734 * grub-core/genpartmaplist.sh: Removed.
15735 * grub-core/genparttoollist.sh: Removed.
15736 * grub-core/gentermiinallist.sh: Removed.
15737 * grub-core/genvideolist.sh: Removed.
15739 * grub-core/genmod.sh.in: New file.
15740 * grub-core/gensyminfo.sh.in: New file.
15742 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
15743 * conf/Makefile.extra-dist: Update with new files.
15744 * gentpl.py: Remove rules related to unnecessary temporary files.
15745 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
15747 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
15749 * grub-core/bus/usb/uhci.c: Remove empty #define.
15750 * grub-core/genmoddep.awk: Updated with new syminfo format.
15751 * util/bash-completion.d/Makefile.am: Add config.log to
15754 2010-09-19 Yves Blusseau <blusseau@zetam.org>
15756 * Makefile.util.def: Add forgotten $(LIBINTL) library.
15758 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15760 * util/grub-mkconfig.in: Check the config script for syntax errors
15763 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
15764 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15766 * Makefile.util.def (grub-install): Use util/grub-install.in on all
15768 * util/grub-install.in: Add EFI and IEEE1275 support.
15769 * util/i386/efi/grub-install.in: Removed.
15770 * util/ieee1275/grub-install.in: Likewise.
15772 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15774 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
15775 (grub_cmd_cmosclean): Likewise.
15776 (GRUB_MOD_INIT): Register command cmosclean.
15777 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
15778 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
15780 2010-09-18 Carles Pina i Estany <carles@pina.cat>
15781 2010-09-18 Aleš Nesrsta <starous@volny.cz>
15782 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15784 Add keyboard layouts support.
15786 * Makefile.util.def (grub-mklayout): New file.
15787 (grub-kbdcomp): New script.
15788 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
15789 Add keyboard_layouts.h.
15790 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
15791 commands/boot.c on yeeloong.
15792 (keylayouts): New module.
15793 * grub-core/bus/usb/ohci.c
15794 * grub-core/bus/usb/uhci.c
15795 * grub-core/bus/usb/usbhub.c (rescan): New variable.
15796 (grub_usb_add_hub): Poll interrupt pipe for device handling.
15797 (attach_root_port): Likewise.
15798 (poll_nonroot_hub): Likewise.
15799 (grub_usb_poll_devices): Likewise.
15800 (detach_device): Close transfer.
15801 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
15803 (grub_usb_bulk_setup_readwrite): Likewise.
15804 (grub_usb_bulk_finish_readwrite): Likewise.
15805 * grub-core/commands/keylayouts.c: New file.
15806 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
15807 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
15809 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
15810 support scancode 2.
15811 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
15812 * include/grub/keyboard_layouts.h: New file.
15813 * util/grub-mklayout.c: New file.
15814 * util/grub-kbdcomp.in: Likewise.
15816 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15818 Unify memory types.
15820 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
15821 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
15823 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
15824 (grub_upper_mem): Likewise.
15825 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
15826 * include/grub/memory.h (grub_memory_type_t): New enum.
15829 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15831 * grub-core/Makefile.core.def (lsapm): New module.
15832 * grub-core/commands/i386/pc/lsapm.c: New file.
15833 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
15834 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
15836 * include/grub/i386/pc/apm.h: New file.
15837 * include/multiboot.h (multiboot_apm_info): New struct.
15839 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15841 GRUB-legacy configuration file support.
15843 * Makefile.util.def (grub-menulst2cfg): New util.
15844 * docs/man/grub-menulst2cfg.h2m: New file.
15845 * grub-core/Makefile.core.def (legacycfg): New module.
15846 * grub-core/commands/legacycfg.c: New file.
15847 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
15848 (grub_normal_add_menu_entry): ... this.
15849 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
15850 (grub_normal_set_password): ...this.
15851 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
15852 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
15853 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
15854 * grub-core/lib/legacy_parse.c: New file.
15855 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
15856 * include/grub/i386/pc/vesa_modes_table.h: New file.
15857 * include/grub/legacy_parse.h: Likewise.
15858 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
15859 * util/grub-menulst2cfg.c: New file.
15861 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15863 * grub-core/kern/emu/hostdisk.c
15864 (convert_system_partition_to_system_disk): Initialise node.
15866 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15868 * grub-core/kern/emu/hostdisk.c
15869 (convert_system_partition_to_system_disk): Fix devmapper memory pool
15871 Reported and based on patch by: Modestas Vainius.
15873 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15875 Fix DM-RAID probing with recent versions of device-mapper udev
15878 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
15879 canonicalise device paths under /dev/mapper/.
15880 (convert_system_partition_to_system_disk): Compare the
15881 uncanonicalised path to /dev/mapper/ rather than the canonicalised
15882 path, since device nodes under /dev/mapper/ are often symlinks.
15884 2010-09-17 Yves Blusseau <blusseau@zetam.org>
15886 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
15888 2010-09-16 Yves Blusseau <blusseau@zetam.org>
15890 * configure.ac: Avoid some annoying error messages if freetype-config
15891 program is not found.
15893 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15895 Support RAID on virtio devices, and others.
15897 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
15899 [__MINGW32__] (grub_find_device): ... this.
15900 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
15901 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
15902 reasonable default if dir is NULL.
15903 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
15905 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
15906 (grub_guess_root_device): Update callers.
15907 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
15909 * util/raid.c (grub_util_getdiskname): Remove.
15910 (grub_util_raid_getmembers): Use grub_find_device rather than
15911 grub_util_getdiskname.
15913 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15915 * docs/grub.texi (serial): Remove obsolete comment about GRUB
15916 needing to be compiled with serial support.
15917 (ls): Indicate that multiple files are accepted.
15918 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
15919 indicate that multiple files are accepted.
15921 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15923 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
15924 libgrub_a_init.c, and util/bash-completion.d/grub.
15926 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15928 * util/grub-setup.c (setup): Fix incorrect container semantics.
15930 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15932 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
15934 Reported by: J. Nick Terry
15936 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15938 Move embedding routines to partmap sources files.
15940 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
15941 [GRUB_UTIL]: New variable.
15942 (gpt_partition_map_iterate): Set part.parent.
15943 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
15944 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
15945 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
15947 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
15948 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
15949 (grub_partition_map) [GRUB_UTIL]: New field embed.
15950 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
15951 (setup): Use ->embed.
15953 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15955 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
15957 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
15958 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
15960 2010-09-15 Yves Blusseau <blusseau@zetam.org>
15962 Add function to get completions from usage.
15964 * util/bash-completion.d/grub-completion.bash.in: Add function to get
15965 completions from usage. Use LC_ALL=C to get options properly.
15967 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15969 * grub-core/gnulib/basename-lgpl.c: Imported.
15970 * grub-core/gnulib/basename.c: Likewise.
15971 * grub-core/gnulib/dirname-lgpl.c: Likewise.
15972 * grub-core/gnulib/dirname.c: Likewise.
15973 * grub-core/gnulib/dirname.h: Likewise.
15974 * grub-core/gnulib/stripslash.c: Likewise.
15976 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15978 * grub-core/gnulib/error.c: Resynced.
15979 * grub-core/gnulib/getopt.c: Likewise.
15980 * grub-core/gnulib/getopt_int.h: Likewise.
15981 * grub-core/gnulib/regex.h: Likewise.
15982 * grub-core/gnulib/regex_internal.c: Likewise.
15983 * grub-core/gnulib/regex_internal.h: Likewise.
15985 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15987 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
15988 CRC calculations and validity checks.
15989 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
15992 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15994 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
15996 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15998 Fix incorrect echo options handling.
15999 Reported by: Yves Blusseau.
16001 * include/grub/command.h (grub_command_flags_t): New flags
16002 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16003 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16004 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16006 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16008 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16010 (GRUB_COMMAND_FLAG_MENU): Likewise.
16011 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16012 (GRUB_COMMAND_FLAG_TITLE): Removed.
16013 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16014 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16015 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16016 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16017 (grub_command_flags_t): New enum. All users updated.
16019 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16021 Fix solaris compilation.
16023 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16024 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16025 (grub-emu-list): Likewise.
16027 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16029 Remove deprecated root command.
16031 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16034 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16036 * util/i386/pc/grub-setup.c: Merge this ...
16037 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16038 * util/grub-setup.c: ... into this.
16039 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16042 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16044 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16047 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16049 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16052 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16054 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16055 explicit root argument to set to prevent UUID to be interpreted as
16058 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16060 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16062 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16064 Don't export grub_gate_a20.
16066 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16067 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16069 (grub_gate_a20): ... this. All users updated.
16070 * include/grub/i386/pc/init.h: Removed. All users updated.
16072 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16074 Create euro.pf2 which supports most European languages.
16076 * Makefile.am (grubdata_DATA): Add euro.pf2.
16077 (euro.pf2): New target.
16078 (CLEANFILES): Add euro.pf2.
16080 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16082 * configure.ac: Disable emu-usb by default to prevent inadvertent
16085 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16087 Disable usbserial on grub-emu since our libusb code isn't good enough
16090 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16091 (usbserial_pl2303): Likewise.
16092 (usbserial_ftdi): Likewise.
16094 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16096 * include/grub/disk.h (grub_disk): Remove has_partitions.
16098 * disk/loopback.c (grub_loopback): Remove has_partitions.
16100 (options): Remove partitions. All users updated.
16101 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16102 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16103 actual partition table is found.
16105 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16107 Remove readability checks (too many false negatives).
16109 * util/grub-install.in: Remove readability checks.
16110 * util/grub-mkconfig.in: Likewise.
16111 * util/grub.d/10_hurd.in: Likewise.
16112 * util/grub.d/10_kfreebsd.in: Likewise.
16113 * util/grub.d/10_linux.in: Likewise.
16114 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16117 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16119 Enable acpi shutdown on all ACPI platforms.
16121 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16122 on coreboo, multiboot and EFI.
16123 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16124 (grub_acpi_halt): Likewise.
16125 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16126 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16127 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16128 * grub-core/lib/i386/halt.c (grub_halt)
16129 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16131 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16133 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16136 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16138 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16139 * grub-core/video/efi_uga.c: Likewise.
16141 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16143 Filter devaliases and never open same device twice.
16145 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16146 (last_ihandle): Likewise.
16147 (ofdisk_hash_ent): New member shortest.
16148 (ofdisk_hash_add): Add canonical path too.
16149 (scan): New function.
16150 (grub_ofdisk_iterate): Iterate over hashed entries.
16151 (compute_dev_path): Don't add :0.
16152 (grub_ofdisk_open): Don't really open the disk.
16153 (grub_ofdisk_close): Avoid closing unrelated disk.
16154 (grub_ofdisk_read): Implement reopen logic.
16155 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16157 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16160 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16164 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16165 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16166 right address. Add sparc64_ieee1275_ldflags.
16167 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16168 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16169 to grub_host_to_target_addr
16170 (load_image): Likewise.
16172 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16174 * grub-core/normal/completion.c (complete_file): Handle device
16176 Fix based on patch by Doug Nazar.
16178 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16180 grub-mknetdir script.
16182 * Makefile.util.def (grub-mknetdir): New module.
16183 * tests/util/grub-shell.in: Support boot=net
16184 * util/grub-mknetdir.in: New file.
16186 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16188 videoinfo on non-vbe.
16190 * grub-core/Makefile.core.def (vbeinfo): Removed.
16191 (vbetest): Removed.
16192 (videoinfo): New module.
16193 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16194 * grub-core/commands/i386/pc/vbetest.c: Removed.
16195 * grub-core/commands/videoinfo.c: New file.
16196 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16198 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16200 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16201 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16202 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16203 mode_number. New parameter mode. All users updated.
16204 (grub_video_gop_iterate): New function.
16205 (grub_video_efi_gop): New member iterate.
16206 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16207 (grub_vbe_set_video_mode): Remove setting useless fields.
16208 (vbe2videoinfo): New function.
16209 (grub_video_vbe_iterate): Likewise.
16210 (grub_video_vbe_setup): Use vbe2videoinfo.
16211 (grub_video_vbe_print_adapter_specific_info): New function.
16212 (grub_video_vbe_adapter): New fields iterate and
16213 print_adapter_specific_info.
16214 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16216 (grub_video_mode_info): New field mode_number.
16217 (grub_video_adapter): New fields iterate and
16218 print_adapter_specific_info.
16220 2010-09-13 Tristan Gingold <gingold@free.fr>
16221 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16222 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16224 * grub-core/commands/efi/lsefisystab.c: New file.
16225 * grub-core/commands/efi/lssal.c: Likewise.
16226 * grub-core/Makefile.core.def (lsacpi): New module.
16227 (lsefisystab): Likewise.
16228 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16229 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16230 (grub_efi_sal_system_table): New struct.
16231 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16232 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16233 (grub_efi_sal_system_table_platform_features): Likewise.
16234 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16235 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16236 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16237 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16239 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16241 Support explicit user claim that a device is BIOS-visible.
16243 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16244 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16245 * grub-core/kern/emu/hostdisk.c
16246 (convert_system_partition_to_system_disk): Support mdX.
16247 (find_system_device): New parameter add. All users updated.
16248 (grub_util_biosdisk_is_present): New function.
16249 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16252 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16254 Search hints support.
16256 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16259 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16261 Bash completion script for util commands
16263 * Makefile.am: Add util/bash-completion.d directory
16264 * configure.ac: Likewise.
16265 * util/bash-completion.d/Makefile.am: New file.
16266 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16268 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16270 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16271 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16272 Reported by: Yves Blusseau.
16274 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16276 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16277 partition size and offset.
16279 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16281 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16283 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16285 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16287 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16289 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16290 (grub_xvasprintf): Likewise.
16292 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16294 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16296 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16298 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16299 args ending with NULL.
16301 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16303 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16306 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16308 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16310 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16312 Shutdown using ACPI.
16314 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16315 * grub-core/commands/acpihalt.c: New file.
16316 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16317 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16318 (grub_acpi_halt): New proto.
16319 (GRUB_ACPI_SLP_EN): New const.
16320 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16321 (GRUB_ACPI_OPCODE_*): New enum.
16322 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16324 2010-09-11 Tristan Gingold <gingold@free.fr>
16325 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16326 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16328 * commands/lsacpi.c: New file.
16329 * grub-core/Makefile.core.def (lsacpi): New module.
16330 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16331 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16332 (grub_acpi_madt_entry_header): New struct.
16333 (grub_acpi_madt): Likewise.
16334 (grub_acpi_madt_entry_interrupt_override): Likewise.
16335 (grub_acpi_madt_entry_sapic): Likewise.
16336 (grub_acpi_madt_entry_lsapic): Likewise.
16337 (grub_acpi_madt_entry_platform_int_source): Likewise.
16338 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16339 (PRIuGRUB_UINT32_T): Likewise.
16340 (PRIxGRUB_UINT64_T): Likewise.
16342 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16344 Implement loading palette on ieee1275_fb.
16346 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16347 (have_setcolors): Likewise.
16348 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16349 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16350 (grub_video_ieee1275_set_palette): Implement.
16352 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16353 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16355 * util/grub-install.in (grub_partition): New variable.
16356 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16357 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16358 Fixes a bug reported by Yves Blusseau.
16360 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16364 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16365 =grub_cpu_flush_cache on all mips and not only yeeloong.
16366 * configure.ac (COND_mips): New conditional.
16367 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16369 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16370 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16371 [GRUB_LINKER_HAVE_INIT]: New function.
16372 (grub_emu_post_init): Likewise.
16373 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16374 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16375 * include/grub/cache.h (_mips): Include mips/cache.h.
16376 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16377 LVM and RAID prototypes.
16378 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16379 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16382 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16384 * util/grub-install.in: Don't try to verify core.img until after
16385 running grub-mkimage to create it.
16387 2010-09-10 Robert Millan <rmh@gnu.org>
16389 * util/grub.d/10_hurd.in: Add misc readability checks.
16390 * util/grub.d/10_kfreebsd.in: Likewise.
16391 * util/grub.d/10_linux.in: Likewise.
16393 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16395 * util/grub-install.in: ${imgext} won't be defined here until the
16396 install branch is merged. For the meantime, only verify core.img on
16397 i386-pc and sparc64-ieee1275 platforms.
16399 2010-09-10 Robert Millan <rmh@gnu.org>
16401 Solaris support in grub_find_zpool_from_dir(). Thanks
16402 Seth Goldberg for referring to getextmntent() facility.
16404 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16406 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16408 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16409 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16410 method for finding zpool name.
16412 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16414 grub-fstest needs the host and hostfs modules while other utilities
16415 actively require those modules to be absent, so grub-fstest needs
16416 its own initialisation and finalisation code.
16418 * Makefile.am (grub_fstest.pp): New target.
16419 (grub_fstest_init.lst): Likewise.
16420 (grub_fstest_init.c): Likewise.
16421 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16423 2010-09-10 Robert Millan <rmh@gnu.org>
16425 * configure.ac: Check for `struct statfs.f_fstypename' and
16426 `struct statfs.f_mntfromname'.
16428 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16429 kFreeBSD-specific code.
16431 2010-09-10 Robert Millan <rmh@gnu.org>
16433 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16434 on ZFS. Now non-main filesystems are supported as / too.
16436 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16438 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16439 and grub-core/disk/host.c to ...
16440 (grub-fstest): ... here. Having the host disk implementation
16441 present confuses grub-probe and other utility programs.
16443 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16444 when writing to a file, not when writing to stdout.
16446 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16448 * tests/partmap_test.in: New test for partitions.
16449 * Makefile.util.def: Rules for new test.
16451 2010-09-09 Robert Millan <rmh@gnu.org>
16453 * util/grub-probe.c (probe): Fix a pair of unhandled error
16456 2010-09-09 Robert Millan <rmh@gnu.org>
16458 Basic Btrfs support (detection and UUID).
16460 * grub-core/fs/btrfs.c: New file.
16461 * Makefile.util.def (library): Register btrfs.c.
16462 * grub-core/Makefile.core.def: Likewise.
16464 2010-09-08 Robert Millan <rmh@gnu.org>
16466 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16467 with (optional) parameters to specify device and relative path.
16468 * util/grub-install.in: Use is_path_readable_by_grub() to
16469 verify readability of a few critical files.
16470 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16471 verify readability of grub.cfg.new.
16473 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16475 Split minix.mod into minix.mod and minix2.mod.
16477 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16478 * grub-core/Makefile.core.def (minix2): New module.
16479 * grub-core/fs/minix.c: Use definitions instead of runtime version
16481 * grub-core/fs/minix2.c: New file.
16483 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16485 Add new --boot-directory option to replace --root-directory
16487 * util/grub-install.in: Add new --boot-directory option
16488 * util/grub-reboot.in: Likewise.
16489 * util/grub-set-default.in: Likewise.
16491 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16493 * util/grub-mkconfig.in: Use new variable.
16495 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16497 * configure.ac: Define some useful variables.
16499 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16501 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16502 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16503 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16504 Use terminfo and don't use cursor-on/cursor-off unless it's known
16506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16507 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16509 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16511 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16512 starts with "(,", fill the drive containing the loaded image in
16513 between those two characters, but expect that a full partition
16514 specification including partition map names will follow.
16516 2010-09-08 Robert Millan <rmh@gnu.org>
16518 * configure.ac: Remove `--enable-grub-fstest' option.
16519 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16521 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16522 `grub-fstest' instead of `grub-probe' for readability verification.
16523 * util/grub-probe.c (probe): Remove readability verification kludge.
16525 2010-09-08 Robert Millan <rmh@gnu.org>
16527 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16528 initializing `GRUB_FS'.
16530 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16532 Not command (!) support to GRUB script.
16534 * tests/grub_script_not.in: New test.
16535 * Makefile.util.def: Rules for new test.
16537 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16538 ! command as a special case.
16539 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16541 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16543 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16546 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16548 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16550 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16552 * docs/grub.texi (Shell-like scripting): Documentation for break,
16553 continue, shift and return commands.
16555 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16557 Rename CD-ROM to cd on BIOS.
16559 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16561 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16563 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16565 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16566 * util/grub-probe.c (main): Likewise.
16567 * util/i386/pc/grub-setup.c (main): Likewise.
16568 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16569 Reported and debugged by: alexxy
16571 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16573 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16576 2010-09-05 Jo Shields <directhex@apebox.org>
16578 * util/grub.d/30_os-prober.in: Add missing classes.
16580 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16582 * docs/grub.texi (Theme file format): Document new position format.
16584 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16586 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16587 a table. Use @code instead of @verbatim.
16589 2010-09-05 Colin D Bennett <colin@gibibit.com>
16591 Gfxmenu documentation.
16593 * docs/grub.texi (Theme file format): New chapter.
16595 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16597 * grub-core/Makefile.core.def (xzio): New module.
16598 * grub-core/io/xzio.c: New file.
16599 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16600 * grub-core/lib/xzembed/xz_config.h: Likewise.
16601 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16602 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16603 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16604 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16605 * grub-core/lib/xzembed/xz_private.h: Likewise.
16606 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16607 * include/grub/file.h (grub_file_filter_id): New compression filter
16608 GRUB_FILE_FILTER_XZIO.
16610 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16612 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16613 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16616 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16618 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16619 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16621 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16623 Uncompressed checksum support.
16625 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16626 (check_list): New parameter uncompress.
16627 (grub_cmd_hashsum): Handle --uncompress.
16629 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16631 Reintroduce testload.
16633 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16635 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16636 (GRUB_MOD_INIT): New function.
16637 (GRUB_MOD_FINI): Likewise.
16638 * grub-core/Makefile.core.def (testload): New module.
16640 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16642 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16643 (uint8_t): New type.
16644 (uint16_t): Likewise.
16645 (uint32_t): Likewise.
16646 (uint64_t): Likewise.
16648 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16650 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16652 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16654 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16656 (grub_gzfile_open): Removed. All users updated.
16657 (GRUB_MOD_INIT): New function.
16658 (GRUB_MOD_FINI): Likewise.
16659 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16660 (grub_file_filters_enabled): Likewise.
16661 (grub_file_open): Handle filters.
16662 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16663 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16664 * include/grub/file.h (grub_file_filter_id_t): New type.
16665 (grub_file_filter_t): Likewise.
16666 (grub_file_filters_all): New extern variable.
16667 (grub_file_filters_enabled): Likewise.
16668 (grub_file_filter_register): New inline function.
16669 (grub_file_filter_unregister): Likewise.
16670 (grub_file_filter_disable): Likewise.
16671 (grub_file_filter_disable_compression): Likewise.
16672 * include/grub/gzio.h: Removed.
16674 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16676 Filename expansion support for wildcards in GRUB script.
16678 * tests/grub_script_expansion.in: New test.
16679 * Makefile.util.def: Rule for new test.
16681 * grub-core/commands/wildcard.c: New file, implements filename
16682 expansion support for GRUB script.
16683 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16684 * grub-core/script/argv.c: Cosmetic changes.
16685 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16686 Refactored to perform wildcard expansion on arguments.
16687 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16690 * tests/util/grub-shell.in: Fix quoting for read input.
16692 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16694 Support for updating environment variables with matched substrings
16697 * tests/grub_cmd_regexp.in: New test.
16698 * Makefile.util.def: Rule for new test.
16700 * grub-core/commands/regexp.c: New option -s to update environment
16701 variables with regexp matches.
16703 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16705 * include/grub/file.h (grub_file): New member not_easly_seekable.
16706 (grub_file_seekable): New inline function.
16707 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16709 (grub_gzio_open): Set not_easly_seekable.
16710 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
16711 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
16713 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16715 Support for options to appear multiple times on cmdline.
16717 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
16718 * grub-core/commands/extcmd.c: Support for repeatable option.
16719 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
16720 repeatable option support.
16722 Refactor menuentry into a regular command.
16724 * grub-core/commands/menuentry.c: New file, menuentry command
16726 * grub-core/Makefile.core.def: Rule update for normal.mod.
16727 * grub-core/normal/main.c: Moved menuentry creation to
16728 grub-core/commands/menuentry.c.
16729 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
16730 (grub_menu_execute_entry_real): Removed.
16731 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
16733 (grub_script_execute_menuentry): Removed.
16734 * grub-core/script/parser.y (menuentry): Removed.
16735 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
16736 * grub-core/script/yylex.l (menuentry): Removed.
16737 * include/grub/menu.h (grub_menu_init): New prototype.
16738 (grub_menu_fini): New prototype.
16739 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
16740 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
16741 (grub_script_execute_sourcecode): New prototype.
16743 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16745 "return" command for GRUB script functions.
16747 * tests/grub_script_return.in: New test.
16748 * Makefile.util.def: Rules for new test.
16750 * grub-core/script/execute.c (grub_script_return): New function.
16751 * grub-core/script/main.c: Register/unregister return commaond.
16752 * include/grub/script_sh.h (grub_script_return): New prototype.
16754 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16756 "setparams" command to update positional parameters.
16758 * tests/grub_script_setparams.in: New test.
16759 * Makefile.util.def: Rules for new test.
16761 * grub-core/script/argv.c (grub_script_argv_make): New function.
16762 * grub-core/script/execute.c (replace_scope): New function.
16763 (grub_script_setparams): New function.
16764 * grub-core/script/lexer.c: Remove unused variables.
16765 * grub-core/script/main.c: Register/unregister setparams command.
16766 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
16767 (grub_script_setparams): New prototype.
16769 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16771 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
16774 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16776 Support for passing block of commands as an argument to extcmds.
16778 * Makefile.util.def: Rules for new test.
16779 * tests/grub_script_blockarg.in: New test.
16780 * grub-core/tests/test_blockarg.c: New file, block argument
16781 command used in the test.
16783 * include/grub/extcmd.h (grub_extcmd_context): New struct.
16784 (grub_register_extcmd_prio): New function prototype.
16785 (grub_extcmd_dispatcher): New function prototype.
16786 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
16788 * include/grub/script_sh.h (struct grub_script): New members
16789 `children', `next_siblings' and `refcnt' for block arguments and
16790 reference counting.
16791 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
16792 (grub_script_arg): New member `script' for block argument.
16793 (grub_script_argv): New member `script' for block argument.
16794 (grub_parser_param): New member `scripts' for block argument.
16795 (grub_script_mem_free): New extern function prototype.
16796 (grub_script_ref): New function prototype.
16797 (grub_script_unref): New function prototype.
16799 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
16800 extcmd form to support block arguments.
16801 * grub-core/script/argv.c: Block arguments support.
16802 * grub-core/script/execute.c: Likewise.
16803 * grub-core/script/lexer.c: Likewise.
16804 * grub-core/script/main.c: Likewise.
16805 * grub-core/script/script.c: Likewise.
16806 * grub-core/script/parser.y: Likewise. New `block' and `block0'
16809 * grub-core/commands/acpi.c: Update extcmd implementations with
16810 grub_extcmd_context_t.
16811 * grub-core/commands/cat.c: Likewise.
16812 * grub-core/commands/echo.c: Likewise.
16813 * grub-core/commands/extcmd.c: Likewise.
16814 * grub-core/commands/hashsum.c: Likewise.
16815 * grub-core/commands/hdparm.c: Likewise.
16816 * grub-core/commands/help.c: Likewise.
16817 * grub-core/commands/hexdump.c: Likewise.
16818 * grub-core/commands/i386/cpuid.c: Likewise.
16819 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16820 * grub-core/commands/i386/pc/halt.c: Likewise.
16821 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16822 * grub-core/commands/iorw.c: Likewise.
16823 * grub-core/commands/keystatus.c: Likewise.
16824 * grub-core/commands/loadenv.c: Likewise.
16825 * grub-core/commands/ls.c: Likewise.
16826 * grub-core/commands/lspci.c: Likewise.
16827 * grub-core/commands/memrw.c: Likewise.
16828 * grub-core/commands/probe.c: Likewise.
16829 * grub-core/commands/search_wrap.c: Likewise.
16830 * grub-core/commands/setpci.c: Likewise.
16831 * grub-core/commands/sleep.c: Likewise.
16832 * grub-core/disk/loopback.c: Likewise.
16833 * grub-core/hello/hello.c: Likewise.
16834 * grub-core/loader/i386/bsd.c: Likewise.
16835 * grub-core/loader/xnu.c: Likewise.
16836 * grub-core/term/gfxterm.c: Likewise.
16837 * grub-core/term/serial.c: Likewise.
16838 * grub-core/tests/lib/functional_test.c: Likewise.
16840 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16842 Multi-line quoted strings support.
16844 * grub-core/script/lexer.c (append_newline): Removed.
16845 (grub_script_lexer_yywrap): Refactored.
16846 (grub_script_lexer_init): Refactored.
16847 * grub-core/script/yylex.l (yywrap): New function.
16848 (grub_lexer_resplit): New function.
16849 (grub_lexer_unput): New function.
16850 * include/grub/script_sh.h (grub_lexer_param): New members, unput
16852 * tests/grub_script_echo1.in: Added few more testcases.
16854 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16856 * grub-core/kern/misc.c: Don't add abort alias in utils.
16857 Reported by: echoline.
16859 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
16861 Add missing files into "make dist" tarball for other platforms.
16863 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
16864 * conf/Makefile.common (dist_noinst_DATA): New variable.
16865 * conf/Makefile.extra-dist: Added missing make dist files.
16866 * grub-core/Makefile.core.def: Likewise.
16868 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16870 Compress grub_prefix.
16872 * grub-core/boot/i386/pc/lnxboot.S: Use
16873 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
16874 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
16875 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
16876 GRUB_MACHINE_PREFIX_END. All users updated.
16877 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
16878 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
16880 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16881 * util/grub-mkimage.c (image_target_desc): Change data_end to
16882 prefix_end. All users updated.
16884 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16886 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
16888 (grub_openbsd_boot): Likewise.
16889 (grub_netbsd_boot): Likewise.
16890 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
16891 (grub_xnu_boot): Likewise.
16893 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16895 * configure.ac: Clean LIBS variable after tests.
16897 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16899 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
16901 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16903 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
16904 echo if libdevmapper will be used.
16906 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
16908 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
16909 constant for the same file.
16911 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16913 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
16915 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16917 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
16920 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16922 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
16923 required by the boot protocol.
16925 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
16926 ebp and edi members.
16927 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
16928 state.ebp and state.edi.
16929 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
16930 %ebp and %edi according to grub_relocator32_ebp and
16931 grub_relocator32_edi respectively.
16932 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
16935 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16937 Add i386-pc-pxe image target.
16939 * util/grub-mkimage.c (image_target_desc): New enum value
16941 (image_targets): New target i386-pc-pxe.
16942 (generate_image): Handle i386-pc-pxe image.
16944 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16948 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
16949 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
16951 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
16952 (grub_pxe_pxenv): Correct type.
16954 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16956 * NEWS: Document most of the important changes since 1.98.
16958 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16960 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
16961 generated manual page) a little.
16963 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16965 * docs/grub.texi: Add myself as an author.
16967 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16969 * Makefile.util.def (libgrub.a): Add missing sunpc.
16970 Reported by: Seth Goldberg.
16972 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16974 Interrupt wrapping and code simplifications.
16976 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
16977 x86_noieee1275 which are functionaly equivalent in this case.
16978 (grub-install): Make source on each platform explicit. Enable on
16980 * gentpl.py (x86_efi_pc): Removed group.
16981 (x86_noefi): Likewise.
16982 (i386_noefi): Likewise.
16983 (x86_noieee1275): Likewise.
16984 (i386_noieee1275): Likewise.
16985 (i386_noefi_noieee1275): Likewise.
16986 (i386_pc_qemu_coreboot): Likewise.
16987 (i386_coreboot_multiboot): Likewise.
16988 (i386_pc_coreboot_multiboot_qemu): Likewise.
16989 (x86_noefi_mips): Likewise.
16990 (noieee1275): Likewise.
16991 (ieee1275_mips): Likewise.
16992 (noemu_noieee1275): Likewise.
16995 (videoinkernel): Likewise.
16996 (videomodules): Likewise.
16997 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
16998 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
16999 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17000 include/grub/loader.h, include/grub/msdos_partition.h,
17001 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17002 include/grub/machine/console.h, include/grub/machine/vga.h,
17003 include/grub/machine/vbe.h, include/grub/machine/init.h,
17004 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17005 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17006 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17007 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17008 * grub-core/Makefile.core.def (kernel): Explicit the source for
17009 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17010 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17011 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17012 Use videoinkernel tag.
17013 (usb): Enable on all usb.
17014 (usbserial_common): Likewise.
17015 (usbserial_pl2303): Likewise.
17016 (usbserial_ftdi): Likewise.
17017 (uhci): Enable on all x86.
17018 (ohci): Enable on all pci.
17019 (cmostest): Enable on all CMOS.
17020 (acpi): Include commands/acpi.c on all platforms.
17021 (halt): Add relevant lib/*/halt.c.
17022 (hdparm): Enable on all pci.
17024 (usbtest): Enable on all usb.
17025 (ata): Enable on all pci.
17026 (ata_pthru): Likewise.
17027 (usbms): Enable on all usb.
17028 (usb_keyboard): Likewise.
17029 (font): Use tag videomodules.
17031 (datetime): Use tag cmos. Enable on all noemu.
17032 (mmap): Use tags common and x86.
17033 (gfxterm): Use tag videomodules.
17034 (bitmap): Likewise.
17035 (bitmap_scale): Likewise.
17036 (video_fb): Likewise.
17038 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17039 adjust padding accordingly. All users updated.
17040 (grub_ohci_transaction): Fix bad format specification.
17041 (GRUB_MOD_INIT): Add asserts for struct size.
17042 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17043 (grub_alloc_td): Likewise.
17044 (grub_free_queue): Likewise.
17045 (grub_uhci_transfer): Likewise.
17046 (grub_uhci_transaction): Fix bad format specification.
17047 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17048 (grub_usb_bulk_readwrite): Likewise.
17049 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17050 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17052 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17054 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17055 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17056 Transformed into C.
17057 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17058 Moved from here ...
17059 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17060 ... here. Transformed into C. Made static.
17061 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17062 Moved from here ...
17063 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17064 ... here. Transformed into C. Made static.
17065 * grub-core/kern/i386/pc/startup.S
17066 (grub_biosdisk_check_int13_extensions): Moved from here ...
17067 * grub-core/disk/i386/pc/biosdisk.c
17068 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17070 * grub-core/kern/i386/pc/startup.S
17071 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17072 * grub-core/disk/i386/pc/biosdisk.c
17073 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17074 Transformed into C. Made static.
17075 * grub-core/kern/i386/pc/startup.S
17076 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17077 * grub-core/disk/i386/pc/biosdisk.c
17078 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17079 Transformed into C. Made static.
17080 * grub-core/kern/i386/pc/startup.S
17081 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17082 * grub-core/disk/i386/pc/biosdisk.c
17083 (grub_biosdisk_get_diskinfo_standard): ... here.
17084 Transformed into C. Made static.
17085 * grub-core/kern/i386/pc/startup.S
17086 (grub_biosdisk_get_num_floppies): Moved from here ...
17087 * grub-core/disk/i386/pc/biosdisk.c
17088 (grub_biosdisk_get_num_floppies): ... here.
17089 Transformed into C. Made static.
17090 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17092 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17093 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17094 Transformed into C. Made static.
17095 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17096 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17097 Transformed into C. Made static.
17098 * grub-core/kern/i386/ieee1275/init.c: Removed.
17099 * grub-core/kern/i386/misc.S: Likewise.
17100 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17101 Splitted from here ...
17102 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17103 Transformed into C. Made static. All users updated.
17104 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17105 Transformed into C. Made static. All users updated.
17106 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17108 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17109 Transformed into C. Made static. All users updated.
17110 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17112 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17113 Transformed into C. Made static. All users updated.
17114 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17115 Removed (replaced by C version).
17116 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17118 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17119 Transformed into C. Made static.
17120 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17122 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17123 ... here. Transformed into C.
17124 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17126 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17127 ... here. Transformed into C.
17128 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17130 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17131 ... here. Transformed into C. Made static.
17132 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17134 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17135 ... here. Transformed into C.
17136 * grub-core/kern/i386/pc/startup.S
17137 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17138 * grub-core/video/i386/pc/vbe.c
17139 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17140 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17142 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17143 ... here. Transformed into C.
17144 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17146 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17147 ... here. Transformed into C.
17148 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17150 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17151 ... here. Transformed into C.
17152 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17154 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17155 ... here. Transformed into C.
17156 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17158 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17159 ... here. Transformed into C. Made static.
17160 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17162 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17163 ... here. Transformed into C. Made static.
17164 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17166 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17167 ... here. Transformed into C. Made static.
17168 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17169 pxe_rm_entry as third argument.
17170 (grub_bios_interrupt): New function.
17171 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17172 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17173 of calling grub_stop.
17174 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17175 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17176 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17177 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17178 * grub-core/lib/i386/halt.c: Moved from here ...
17179 * grub-core/lib/i386/halt.c: ... here.
17180 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17181 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17182 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17184 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17185 * include/grub/i386/coreboot/init.h: Removed.
17186 * include/grub/i386/multiboot/init.h: Likewise.
17187 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17188 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17189 * include/grub/i386/pc/int.h: New file.
17190 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17191 (grub_pxe_scan): Removed.
17192 (grub_pxe_call): Update prototype.
17193 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17195 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17196 * include/grub/i386/qemu/init.h: Removed.
17197 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17199 (grub_halt): Likewise.
17200 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17201 (grub_reboot): Likewise.
17202 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17203 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17204 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17206 2010-08-30 Robert Millan <rmh@gnu.org>
17208 * NEWS: Document addition of ZFS support in `grub-install' and
17211 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17213 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17216 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17218 Remove leftover embedding of font objects.
17220 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17221 * util/grub-install.in (font): Removed.
17222 * util/grub-mkimage.c (generate_image): Remove font support. All users
17225 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17227 Remove leftover embedding of font objects.
17229 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17230 * util/grub-install.in (font): Removed.
17231 * util/grub-mkimage.c (generate_image): Remove font support. All users
17234 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17236 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17237 Reported by: Ian Turner
17239 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17241 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17242 timeout to avoid indefinite boot stalling.
17244 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17246 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17247 (grub_env_write_color_highlight): Likewise.
17249 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17251 * grub-core/normal/term.c (print_more): Return to normal and not
17252 to standard state after printing "---MORE---".
17254 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17256 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17257 Mask out the bit 0x80 since it has other meaning that specifiing color.
17259 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17261 New relocator. Allows for more kernel support and more straightforward
17264 * Makefile.am (BOOTTARGET): New variable.
17265 (QEMU32): Likewise.
17266 (linux.init.x86_64): New target.
17267 (linux.init.i386): Likewise.
17268 (multiboot.elf): Likewise.
17269 (kfreebsd.elf): Likewise.
17270 (kfreebsd.aout): Likewise.
17271 (pc-chainloader.elf): Likewise.
17272 (pc-chainloader.bin): Likewise.
17273 (ntldr.elf): Likewise.
17274 (ntldr.bin): Likewise.
17275 (multiboot2.elf): Likewise.
17276 (kfreebsd.init.x86_64): Likewise.
17277 (kfreebsd.init.i386): Likewise.
17278 (knetbsd.init.i386): Likewise.
17279 (kopenbsd.init.i386): Likewise.
17280 (knetbsd.init.x86_64): Likewise.
17281 (kopenbsd.init.x86_64): Likewise.
17282 (linux-initramfs.i386): Likewise.
17283 (linux-initramfs.x86_64): Likewise.
17284 (kfreebsd-mfsroot.i386.img): Likewise.
17285 (knetbsd.image.i386): Likewise.
17286 (kopenbsd.image.i386): Likewise.
17287 (kopenbsd.image.x86_64): Likewise.
17288 (knetbsd.miniroot-image.i386.img): Likewise.
17289 (kfreebsd-mfsroot.x86_64.img): Likewise.
17290 (knetbsd.image.x86_64): Likewise.
17291 (knetbsd.miniroot-image.x86_64.img): Likewise.
17292 (kfreebsd-mfsroot.i386.gz): Likewise.
17293 (bootcheck-kfreebsd-i386): Likewise.
17294 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17295 (bootcheck-kfreebsd-x86_64): Likewise.
17296 (knetbsd.miniroot-image.i386.gz): Likewise.
17297 (bootcheck-knetbsd-i386): Likewise.
17298 (bootcheck-kopenbsd-i386): Likewise.
17299 (bootcheck-kopenbsd-x86_64): Likewise.
17300 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17301 (bootcheck-knetbsd-x86_64): Likewise.
17302 (bootcheck-linux-i386): Likewise.
17303 (bootcheck-linux-x86_64): Likewise.
17304 (bootcheck-linux16-i386): Likewise.
17305 (bootcheck-linux16-x86_64): Likewise.
17306 (bootcheck-multiboot): Likewise.
17307 (bootcheck-multiboot2): Likewise.
17308 (bootcheck-kfreebsd-aout): Likewise.
17309 (bootcheck-pc-chainloader): Likewise.
17310 (bootcheck-ntldr): Likewise.
17311 (CLEANFILES): Add new targets.
17312 (BOOTCHECKS): New variable.
17313 (.PHONY): Add bootchecks.
17314 (SUCCESSFUL_BOOT_STRING): New variable.
17315 (BOOTCHECK_TIMEOUT): Likewise.
17316 (bootcheck): New target
17317 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17318 * configure.ac: Correct efiemu excuse.
17319 * docs/grub.texi (Supported kernels): New chapter.
17320 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17321 include/grub/mm_private.h. Simplify inclusion of
17322 include/grub/boot.h, include/grub/loader.h
17323 and include/grub/msdos_partition.h
17324 (KERNEL_HEADER_FILES) [i386_coreboot]:
17325 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17326 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17327 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17328 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17329 include/grub/machine/loader.h.
17330 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17331 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17333 (pci.mod): Enable on i386-multiboot.
17334 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17335 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17337 (relocator.mod): Rewritten.
17338 (aout.mod): Enable on all x86.
17339 (bsd.mod): Likewise.
17340 (ntldr.mod): New module.
17341 (linux.mod): Use loader/i386/linux.c on all x86.
17342 (xnu.mod): Enable on all x86.
17343 (vga_text.mod): disable on EFI and QEMU.
17344 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17345 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17346 * grub-core/efiemu/loadcore.c: Likewise.
17347 * grub-core/efiemu/main.c: Likewise.
17348 (grub_efiemu_exit_boot_services): Removed.
17349 (grub_efiemu_finish_boot_services): Likewise.
17350 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17352 * grub-core/efiemu/i386/nocfgtables.c: New file.
17353 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17354 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17355 (grub_efi_finish_boot_services): Moved from here ...
17356 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17357 Fille finish memory map and related data.
17358 (finish_mmap_buf): New variable.
17359 (grub_efi_uintn_t finish_mmap_size): Likewise.
17360 (grub_efi_uintn_t finish_key): Likewise.
17361 (grub_efi_uintn_t finish_desc_size): Likewise.
17362 (grub_efi_uint32_t finish_desc_version): Likewise.
17363 (grub_efi_is_finished): Likewise.
17364 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17366 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17367 (grub_elf64_phdr_iterate): Likewise.
17368 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17369 (grub_os_area_size): Likewise.
17370 (grub_machine_init): Don't reserve os area.
17371 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17372 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17373 * grub-core/kern/i386/loader.S: Removed.
17374 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17375 (grub_os_area_size): Likewise.
17376 (grub_machine_init): Don't reserve os area.
17377 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17378 Don't call grub_dl_unload_all.
17379 Don't include loader.S.
17380 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17381 Declare the memory after _end as available.
17382 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17383 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17384 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17385 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17386 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17387 * include/grub/mm_private.h (grub_mm_header): ... here.
17388 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17389 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17390 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17391 (grub_mm_region): ..here. Removed addr. Added pre_size.
17393 * grub-core/kern/mm.c (base): Renamed to ...
17394 (grub_mm_base): ... this. Made global.
17395 (grub_real_malloc): Alloc from end of region.
17396 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17397 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17398 * grub-core/kern/powerpc/cache_flush.S: ... here.
17399 * grub-core/lib/efi/relocator.c: New file.
17400 * grub-core/lib/i386/relocator.c: Rewritten.
17401 * grub-core/lib/i386/relocator16.S: New file.
17402 * grub-core/lib/i386/relocator32.S: Likewise.
17403 * grub-core/lib/i386/relocator64.S: Likewise.
17404 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17405 * grub-core/lib/i386/relocator_common.S: New file.
17406 * grub-core/lib/ieee1275/relocator.c: Likewise.
17407 * grub-core/lib/mips/relocator.c: Rewritten.
17408 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17409 stylistic adjustments.
17410 * grub-core/lib/powerpc/relocator.c: New file.
17411 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17412 * grub-core/lib/relocator.c: Rewritten.
17413 * grub-core/lib/x86_64/relocator_asm.S: New file.
17414 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17415 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17416 (bsd_tag): New struct.
17417 (tags): New variable.
17418 (tags_last): Likewise.
17419 (netbsd_module): New struct.
17420 (netbsd_mods): New variable.
17421 (netbsd_mods_last): Likewise.
17422 (openbsd_opts): New parameter "serial".
17423 (OPENBSD_SERIAL_ARG): New definition.
17424 (netbsd_opts): New parameter "serial".
17425 (NETBSD_SERIAL_ARG): New definition.
17426 (grub_freebsd_add_meta): Reorganised into ...
17427 (grub_bsd_add_meta): ...this. All users updated.
17428 (grub_freebsd_add_mmap): Reorganised into ...
17429 (generate_e820_mmap): ...this...
17430 (grub_bsd_add_mmap): ...and this. All users updated.
17431 (grub_freebsd_list_modules): Use tags.
17432 (grub_netbsd_add_meta_module): New function.
17433 (grub_netbsd_list_modules): Likewise.
17434 (grub_freebsd_boot): Use relocator and finish EFI.
17435 (grub_openbsd_boot): Likewise.
17436 (grub_netbsd_setup_video): New function.
17437 (grub_netbsd_add_modules): Likewise.
17438 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17440 (grub_bsd_unload): Unload tags.
17441 (grub_bsd_load_aout): Use relocator.
17442 (grub_bsd_elf32_size_hook): New function.
17443 (grub_bsd_elf32_hook): Use relocator.
17444 (grub_bsd_elf64_size_hook): New function.
17445 (grub_bsd_elf64_hook): Use relocator.
17446 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17447 (grub_bsd_load): Zero-out openbsd_ramdisk.
17448 (grub_bsd_load): Use relocator.
17449 (grub_cmd_openbsd): Support serial.
17450 (grub_cmd_netbsd): Support modules.
17451 (grub_cmd_freebsd_module): Use relocator.
17452 (grub_netbsd_module_load): New function.
17453 (grub_cmd_netbsd_module): Likewise.
17454 (grub_cmd_openbsd_ramdisk): Likewise.
17455 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17457 (GRUB_MOD_FINI): Unregister new commands.
17458 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17459 (grub_freebsd_load_elfmodule_obj): Use relocator.
17460 (grub_freebsd_load_elfmodule): Likewise.
17461 (grub_freebsd_load_elf_meta): Likewise.
17462 (grub_netbsd_load_elf_meta): New function.
17463 (grub_openbsd_find_ramdisk): Likewise.
17464 * grub-core/loader/i386/bsd_helper.S: Removed.
17465 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17466 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17467 * grub-core/loader/i386/efi/linux.c: Likewise.
17468 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17469 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17470 (DEFAULT_VIDEO_MODE): Likewise.
17471 (real_mode_target): New variable.
17472 (prot_mode_target): Likewise.
17473 (initrd_mem_target): Likewise.
17474 (relocator): Likewise.
17475 (efi_mmap_buf): Likewise.
17476 (efi_mmap_size): Likewise.
17477 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17478 (free_pages): Use relocator.
17479 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17480 (grub_linux_setup_video): Return error.
17481 (grub_linux_trampoline_start): Removed.
17482 (grub_linux_trampoline_end): Likewise.
17483 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17484 andd video parameters depending on firmware.
17485 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17486 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17487 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17488 (grub_cmd_initrd): Use relocator.
17489 * grub-core/loader/i386/linux_trampoline.S: Removed.
17490 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17491 (elf_sec_entsize): Likewise.
17492 (elf_sec_shstrndx): Likewise.
17493 (elf_sections): Likewise.
17494 (grub_multiboot_load): Use relocator.
17495 (grub_multiboot_get_mbi_size): Account for sections.
17496 (grub_multiboot_make_mbi): Use relocator and support sections.
17497 (grub_multiboot_add_elfsyms): New function.
17498 (grub_multiboot_free_mbi): Free sections.
17499 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17500 (grub_linux_real_target): Likewise.
17501 (grub_linux_real_chunk): Likewise.
17502 (grub_linux16_prot_size): Likewise.
17503 (grub_linux16_boot): Use relocator.
17504 (grub_linux_unload): Unload relocator.
17505 (grub_cmd_linux): Use relocator.
17506 (grub_cmd_initrd): Likewise.
17507 * grub-core/loader/i386/pc/ntldr.c: New file.
17508 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17509 Don't try to guess CPU frequency.
17510 (grub_xnu_set_video): Stretch bitmap.
17511 (grub_xnu_boot): Use relocator.
17512 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17513 (grub_linux_unload): Free relocator.
17514 (grub_linux_load32): Use relocator.
17515 (grub_linux_load64): Likewise.
17516 (grub_cmd_initrd): Likewise.
17517 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17518 (grub_multiboot_unload): Unload relocator.
17519 (grub_cmd_multiboot): Use relocator.
17520 (grub_cmd_module): Likewise.
17521 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17522 Use relocator and support sections.
17523 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17524 (elf_sec_entsize): Likewise.
17525 (elf_sec_shstrndx): Likewise.
17526 (elf_sections): Likewise.
17527 (grub_multiboot_load): Use relocator.
17528 (grub_multiboot_get_mbi_size): Account for sections.
17529 (grub_multiboot_make_mbi): Use relocator and support sections.
17530 (grub_multiboot_add_elfsyms): New function.
17531 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17532 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17533 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17534 Prototype changed. All users updated.
17535 (grub_xnu_align_heap): Simplified.
17536 (grub_xnu_writetree_toheap): Likewise.
17537 (grub_xnu_unload): Unload relocator.
17538 (grub_cmd_xnu_kernel): Use relocator.
17539 (grub_cmd_xnu_kernel64): Likewise.
17540 (grub_xnu_register_memory): Simplified.
17541 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17542 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17544 (grub_console_checkkey): Likewise.
17545 (grub_console_getkey): Likewise.
17546 (grub_console_getwh): Likewise.
17547 (grub_console_getxy): Likewise.
17548 (grub_console_gotoxy): Likewise.
17549 (grub_console_cls): Likewise.
17550 (grub_console_setcolorstate): Likewise.
17551 (grub_console_setcursor): Likewise.
17552 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17553 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17554 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17555 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17556 * grub-core/tests/boot/kernel-8086.S: Likewise.
17557 * grub-core/tests/boot/kernel-i386.S: Likewise.
17558 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17559 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17560 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17561 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17562 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17563 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17564 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17565 * grub-core/tests/boot/linux.cfg: Likewise.
17566 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17567 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17568 * grub-core/tests/boot/linux16.cfg: Likewise.
17569 * grub-core/tests/boot/multiboot.cfg: Likewise.
17570 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17571 * grub-core/tests/boot/ntldr.cfg: Likewise.
17572 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17573 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17574 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17576 * include/grub/dl.h (grub_dl_unload_all): Removed.
17577 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17578 (grub_efi_finish_boot_services): Change prototype.
17579 (grub_efi_is_finished): New variable.
17580 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17582 (grub_efiemu_finish_boot_services): Removed.
17583 (grub_machine_efiemu_init_tables): New prototype.
17584 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17585 (grub_elf64_phdr_iterate): Likewise.
17586 * include/grub/i386/bsd.h: Include relocator.h.
17587 (freebsd_tag_header): New struct.
17588 (grub_openbsd_bios_mmap): Removed.
17589 (grub_unix_real_boot): Removed.
17590 (grub_freebsd_load_elfmodule32): Changed prototype.
17591 (grub_freebsd_load_elfmodule_obj64): Likewise.
17592 (grub_freebsd_load_elf_meta32): Likewise.
17593 (grub_freebsd_load_elf_meta64): Likewise.
17594 (grub_freebsd_add_meta): Removed.
17595 (grub_netbsd_load_elf_meta32): New prototype.
17596 (grub_netbsd_load_elf_meta64): Likewise.
17597 (grub_bsd_add_meta): Likewise.
17598 (grub_openbsd_ramdisk_descriptor): New struct.
17599 (grub_openbsd_find_ramdisk32): New prototype.
17600 (grub_openbsd_find_ramdisk64): Likewise.
17601 * include/grub/i386/coreboot/loader.h: Removed.
17602 * include/grub/i386/efi/loader.h: Likewise.
17603 * include/grub/i386/ieee1275/loader.h: Likewise.
17604 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17606 * include/grub/i386/loader.h: Removed.
17607 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17609 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17610 (grub_phys_addr_t): New type.
17611 (grub_vtop): New inline function.
17612 (grub_map_memory): Likewise.
17613 (grub_unmap_memory): Likewise.
17614 * include/grub/i386/multiboot/loader.h: Removed.
17615 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17616 (NETBSD_BTINFO_CONSOLE): New definition.
17617 (NETBSD_BTINFO_SYMTAB): Likewise.
17618 (NETBSD_BTINFO_MODULES): Likewise.
17619 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17620 (grub_netbsd_bootinfo): New struct.
17621 (grub_netbsd_btinfo_common): Use explicit bitsize.
17622 (grub_netbsd_btinfo_mmap_entry): Removed.
17623 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17624 (grub_netbsd_btinfo_bootdisk): New struct.
17625 (grub_netbsd_btinfo_symtab): Likewise.
17626 (grub_netbsd_btinfo_serial): Likewise.
17627 (grub_netbsd_btinfo_modules): Likewise.
17628 (grub_netbsd_btinfo_framebuf): Likewise.
17629 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17630 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17632 (grub_openbsd_bootargs): Use explicit bitsize.
17633 (grub_openbsd_bootarg_console): New struct.
17634 (GRUB_OPENBSD_COM_MAJOR): New definition.
17635 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17636 * include/grub/i386/pc/efiemu.h: Removed.
17637 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17638 * include/grub/i386/qemu/loader.h: Removed.
17639 * include/grub/i386/relocator.h: Rewritten.
17640 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17641 * include/grub/mips/memory.h: New file.
17642 * include/grub/mips/multiboot.h: Rewritten.
17643 * include/grub/mips/relocator.h: Rewritten.
17644 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17645 (grub_vtop): New function.
17646 (grub_map_memory): Likewise.
17647 (grub_unmap_memory): Likewise.
17648 * include/grub/misc.h (ALIGN_DOWN): New definition.
17649 * include/grub/mm.h (grub_mm_check_real): New proto.
17650 (GRUB_MM_CHECK): New definition.
17651 * include/grub/mm_private.h: New file.
17652 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17653 (grub_multiboot_get_mbi_size): Removed.
17654 (grub_multiboot_make_mbi): Change prottype.
17655 (grub_multiboot_set_accepts_video): New proto.
17656 (grub_multiboot_add_elfsyms): Likewise.
17657 (grub_multiboot_payload_eip): New variable.
17658 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17660 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17662 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17663 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17664 * include/grub/powerpc/ieee1275/loader.h: Removed.
17665 * include/grub/powerpc/memory.h: New file.
17666 * include/grub/powerpc/relocator.h: Likewise.
17667 * include/grub/relocator.h: Likewise.
17668 * include/grub/relocator_private.h: Likewise.
17669 * include/grub/sparc64/ieee1275/loader.h: Removed.
17670 * include/grub/x86_64/memory.h: New file.
17671 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17672 (grub_xnu_heap_malloc): Likewise.
17673 (grub_xnu_heap_real_start): Removed.
17674 (grub_xnu_heap_start): Likewise.
17675 (grub_xnu_relocator): New variable.
17676 (grub_xnu_heap_target_start): Likewise.
17677 * tests/util/grub-shell.in: Support non-pc.
17678 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17680 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17682 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17684 (grub_bidi_logical_to_visual): Check that malloc succeded.
17685 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17687 (grub_xputs_normal): Likewise.
17689 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17691 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17694 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17696 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17698 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17700 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17702 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17704 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17707 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17709 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
17711 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17713 * grub-core/normal/term.c (print_more): Fix a memory leak.
17714 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
17715 (grub_xputs_normal): Likewise.
17717 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17719 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
17720 the begining of the string
17722 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17724 * grub-core/script/script.c (grub_script_parse): Free parsed on
17727 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17729 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
17732 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17734 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
17737 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17739 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
17740 (scroll_up): Fix a memory leak.
17742 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17744 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
17747 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
17749 Handle USB pendrives exposed as floppies.
17751 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
17753 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17754 Check for partitions on all devices.
17756 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17758 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
17759 (readkey): Likewise.
17761 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17763 Multiple variable names support to "export" command.
17765 * normal/context.c (grub_cmd_export): "export" command supports
17766 multiple variable names.
17768 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
17770 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
17771 --target=drive output to Mach device name.
17773 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17775 New Automake based build system for GRUB.
17777 * ABOUT-NLS: New file.
17778 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
17779 in Makefile.util.def file.
17780 * Makefile.util.def: New file. Autogen build definitions file for
17782 * conf/Makefile.common: New file. Common variables for GRUB host
17783 utils and target modules.
17784 * conf/Makefile.extra-dist: New file. Extra files for make dist.
17785 * docs/Makefile.am: New file. Automake file for docs.
17786 * gentpl.py: New file. Python script to generate Autogen
17788 * grub-core/Makefile.am: New file. GRUB target modules' rules
17789 that doesn't fit in Makefile.core.def file.
17790 * grub-core/Makefile.core.def: New file. Autogen build
17791 definitions file for GRUB target modules.
17792 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
17793 specific setjmp.S file.
17794 * po/Makefile.am: New file.
17796 * .bzrignore: New ignores.
17797 * INSTALL: New requirements, without Ruby.
17798 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
17799 * autogen.sh: Updated to invoke autogen as necessary.
17800 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
17801 and defines for Automake conditionals.
17802 * geninit.sh: Refactoring.
17804 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
17806 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
17809 * include/grub/test.h: Fix functional test modules' naming.
17810 * grub-core/tests/example_functional_test.c: Fix test module name.
17812 * util/misc.c: Hosted versions' of grub functions for libgrub.a
17813 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
17814 * util/grub-editenv.c: Likewise.
17815 * util/grub-fstest.c: Likewise.
17816 * util/grub-mkdevicemap.c: Likewise.
17817 * util/grub-mkfont.c: Likewise.
17818 * util/grub-mkimage.c: Likewise.
17819 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17820 * util/grub-probe.c: Likewise.
17821 * util/grub-script-check.c: Likewise.
17822 * util/i386/pc/grub-setup.c: Likewise.
17823 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17825 * tests/util/grub-shell.in: Fix override directory path.
17826 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
17827 * util/import_gcry.py: Create Makefile.gcry.def file instead.
17829 * util/lvm.c: Update #includes.
17830 * util/raid.c: Likewise.
17831 * util/resolve.c: Likewise.
17832 * grub-core/bus/emu/pci.c: Likewise.
17833 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
17834 * grub-core/lib/posix_wrap/string.h: Likewise.
17835 * grub-core/kern/emu/main.c: Likewise.
17837 * grub-core/gensymlist.sh: New file. Script for generating kernel
17839 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
17841 * grub-core/gentrigtables.c: Fix unused variable warnings.
17843 * Makefile.in: Removed.
17844 * conf/any-emu.rmk: Removed.
17845 * conf/common.rmk: Removed.
17846 * conf/i386-coreboot.rmk: Removed.
17847 * conf/i386-efi.rmk: Removed.
17848 * conf/i386-ieee1275.rmk: Removed.
17849 * conf/i386-multiboot.rmk: Removed.
17850 * conf/i386-pc.rmk: Removed.
17851 * conf/i386-qemu.rmk: Removed.
17852 * conf/i386.rmk: Removed.
17853 * conf/mips-yeeloong.rmk: Removed.
17854 * conf/mips.rmk: Removed.
17855 * conf/powerpc-ieee1275.rmk: Removed.
17856 * conf/sparc64-ieee1275.rmk: Removed.
17857 * conf/tests.rmk: Removed.
17858 * conf/x86-efi.rmk: Removed.
17859 * conf/x86_64-efi.rmk: Removed.
17860 * gendistlist.sh: Removed.
17861 * geninitheader.sh: Removed.
17862 * genkernsyms.sh.in: Removed.
17863 * genmk.rb: Removed.
17864 * gensymlist.sh.in: Removed.
17865 * mkinstalldirs: Removed.
17867 * grub-core/boot: ... to here.
17869 * grub-core/bus: ... to here.
17870 * commands: Moved ...
17871 * grub-core/commands: ... to here.
17873 * grub-core/disk: ... to here.
17874 * efiemu: Moved ...
17875 * grub-core/efiemu: ... to here.
17877 * grub-core/font: ... to here.
17879 * grub-core/fs: ... to here.
17880 * gencmdlist.sh: Moved ...
17881 * grub-core/gencmdlist.sh: ... to here.
17882 * genemuinit.sh: Moved ...
17883 * grub-core/genemuinit.sh: ... to here.
17884 * genemuinitheader.sh: Moved ...
17885 * grub-core/genemuinitheader.sh: ... to here.
17886 * genfslist.sh: Moved ...
17887 * grub-core/genfslist.sh: ... to here.
17888 * genhandlerlist.sh: Moved ...
17889 * grub-core/genhandlerlist.sh: ... to here.
17890 * genmoddep.awk: Moved ...
17891 * grub-core/genmoddep.awk: ... to here.
17892 * genmodsrc.sh: Moved ...
17893 * grub-core/genmodsrc.sh: ... to here.
17894 * genpartmaplist.sh: Moved ...
17895 * grub-core/genpartmaplist.sh: ... to here.
17896 * genparttoollist.sh: Moved ...
17897 * grub-core/genparttoollist.sh: ... to here.
17898 * genterminallist.sh: Moved ...
17899 * grub-core/genterminallist.sh: ... to here.
17900 * gentrigtables.c: Moved ...
17901 * grub-core/gentrigtables.c: ... to here.
17902 * genvideolist.sh: Moved ...
17903 * grub-core/genvideolist.sh: ... to here.
17904 * gettext: Moved ...
17905 * grub-core/gettext: ... to here.
17906 * gfxmenu: Moved ...
17907 * grub-core/gfxmenu: ... to here.
17908 * gnulib: Moved ...
17909 * grub-core/gnulib: ... to here.
17911 * grub-core/hello: ... to here.
17913 * grub-core/hook: ... to here.
17915 * grub-core/io: ... to here.
17917 * grub-core/kern: ... to here.
17919 * grub-core/lib: ... to here.
17920 * loader: Moved ...
17921 * grub-core/loader: ... to here.
17923 * grub-core/mmap: ... to here.
17924 * normal: Moved ...
17925 * grub-core/normal: ... to here.
17926 * partmap: Moved ...
17927 * grub-core/partmap: ... to here.
17928 * parttool: Moved ...
17929 * grub-core/parttool: ... to here.
17930 * script: Moved ...
17931 * grub-core/script: ... to here.
17933 * grub-core/term: ... to here
17934 * tests/example_functional_test.c: Moved ...
17935 * grub-core/tests/example_functional_test.c: ... to here.
17936 * tests/lib/functional_test.c: Moved ...
17937 * grub-core/tests/lib/functional_test.c: ... to here.
17938 * tests/lib/test.c: Moved ...
17939 * grub-core/tests/lib/test.c: ... to here.
17941 * grub-core/video: ... to here.
17943 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17945 Replace --enable-grub-emu-modules with grub-emu-lite.
17947 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
17950 * include/grub/emu/misc.h (grub_emu_init): New prototype.
17951 * kern/emu/full.c: New file. For grub-emu specific initialization.
17952 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
17953 * kern/emu/main.c: Call initialization function grub_emu_init.
17955 * Makefile.in: Include grub-emu-lite in install.
17956 * commands/parttool.c: Use grub_no_autoload to differentiate
17957 between grub-emu and grub-emu-lite.
17958 * include/grub/misc.h: New variable grub_no_autoload.
17960 * conf/any-emu.rmk: New rules for grub-emu-lite.
17961 * configure.ac: Remove --enable-grub-emu-modules.
17962 * genmk.rb: Cleanup unnecessary rules.
17963 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
17965 * normal/main.c: Don't load list files on grub-emu-lite.
17966 * util/misc.c (grub_arch_sync_caches): Removed.
17968 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
17970 * kern/mips/startup.S (grub_prefix): Update comment to refer to
17971 grub-mkimage rather than grub-mkelfimage.
17972 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17974 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17976 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
17977 a key after CapsLock or NumLock. It's just a qemu bug.
17979 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17981 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
17982 needed by libusb wrapper.
17984 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17986 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
17988 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17990 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
17991 --nounzip is passed.
17993 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
17995 USB hotunplugging and USB serial support.
17997 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
17998 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
17999 (grub_uhci_transfer): Respect timeout and set *actual.
18000 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18001 non-standard length.
18002 (grub_usb_device_attach): Autoload modules.
18003 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18004 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18005 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18007 (grub_usb_add_hub): Fill nports and children.
18008 (attach_root_port): Receive hub instead of controller.
18009 All users updated. Fill hub->devices.
18010 (grub_usb_root_hub): Allocate hub->devices.
18011 (detach_device): New function.
18012 (poll_nonroot_hub): Fill children and detach devices.
18013 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18014 actual arguments. All users updated.
18015 (grub_usb_bulk_read_extended): New function.
18016 * bus/usb/serial/common.c: New file.
18017 * bus/usb/serial/ftdi.c: Likewise.
18018 * bus/usb/serial/pl2303.c: Likewise.
18019 * commands/terminal.c (handle_command): Support wildcard.
18020 * commands/usbtest.c: Output "Unknown" instead of empty string.
18021 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18022 (usbserial_common_mod_SOURCES): New variable.
18023 (usbserial_common_mod_CFLAGS): Likewise.
18024 (usbserial_common_mod_LDFLAGS): Likewise.
18025 (pkglib_MODULES): Add usbserial_pl2303.mod.
18026 (usbserial_pl2303_mod_SOURCES): New variable.
18027 (usbserial_pl2303_mod_CFLAGS): Likewise.
18028 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18029 (pkglib_MODULES): Add usbserial_ftdi.mod.
18030 (usbserial_ftdi_mod_SOURCES): New variable.
18031 (usbserial_ftdi_mod_CFLAGS): Likewise.
18032 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18033 (pkglib_MODULES): Add serial.mod.
18034 (serial_mod_SOURCES): New variable.
18035 (serial_mod_CFLAGS): Likewise.
18036 (serial_mod_LDFLAGS): Likewise.
18037 * conf/i386-pc.rmk: Likewise.
18038 * conf/mips-yeeloong.rmk: Likewise.
18039 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18040 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18041 * disk/usbms.c (first_available_slot): New variable.
18042 (grub_usbms_attach): Don't reuse free slots due to potential cache
18044 * include/grub/serial.h: Moved to ..
18045 * include/grub/ns8250.h: ...this.
18046 * include/grub/serial.h: New file.
18047 * include/grub/term.h (grub_term_poll_usb): New variable.
18048 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18049 readkey. All users updated.
18050 (grub_terminfo_output_state): Pass term to put.
18051 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18052 (grub_usb_controller_dev): Add timeout and actual arguments to
18053 transfer. All users updated.
18054 (grub_usb_interface): New field detach_data.
18055 (grub_usb_device): New fields children and nports.
18056 (grub_usb_ep_type_t): New type.
18057 (grub_usb_get_ep_type): New function.
18058 (grub_usb_bulk_read_extended): Likewise.
18059 * include/grub/usbdesc.h (grub_usb_desc): New type.
18060 * include/grub/usbserial.h: New file.
18061 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18062 * kern/term.c (grub_term_poll_usb): New variable.
18063 (grub_getkey): Call grub_term_poll_usb if set.
18064 (grub_checkkey): Likewise.
18065 (grub_getkeystatus): Likewise.
18066 * term/serial.c: Moved controller-specific parts to ...
18067 * term/ns8250.c: ... here.
18068 * term/serial.c: Mostly rewritten.
18069 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18072 2010-08-20 Robert Millan <rmh@gnu.org>
18074 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18075 a separate module and maybe other interesting combinations.
18077 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18078 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18079 (kfreebsd_entry): Add generic filesystem module load routine.
18080 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18082 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18084 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18085 "numcenter" (I misunderstood the purpose of this entry).
18086 * docs/grub.texi (sendkey): Likewise.
18088 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18090 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18091 status flag options; simply omitting the option is equivalent and
18092 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18093 (keysym_table): Rename "num5numlock" to "numlock".
18094 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18095 can uniformly say that only the last of multiple `sendkey'
18096 invocations has any effect.
18097 * docs/grub.texi (sendkey): New section.
18099 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18101 * commands/i386/pc/sendkey.c (options): Fix three typos.
18103 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18105 Implement sendkey support.
18107 * commands/i386/pc/sendkey.c: New file.
18108 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18109 (sendkey_mod_SOURCES): New variable.
18110 (sendkey_mod_CFLAGS): Likewise.
18111 (sendkey_mod_LDFLAGS): Likewise.
18113 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18115 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18116 fix warnings from Autoconf.
18118 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18120 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18121 to avoid false positives with some assemblers that output things
18122 like "someprefix_func" as part of their output.
18124 2010-08-15 Robert Millan <rmh@gnu.org>
18126 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18128 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18129 grub_get_libzfs_handle() errors.
18131 2010-08-14 Robert Millan <rmh@gnu.org>
18133 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18134 filesystem is not ZFS.
18136 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18138 Fix for misspelled color names defaulting to black/black (bug
18139 reported by Doug Nazar)
18141 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18142 status to prototype.
18143 * normal/color.c (grub_parse_color_name_pair): Return failure
18145 (grub_env_write_color_normal): Ignore bad color names.
18146 (grub_env_write_color_highlight): Likewise.
18147 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18149 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18151 "shift" command support to GRUB script.
18153 * include/grub/script_sh.h (grub_script_shift): New prototype.
18154 * script/execute.c (grub_script_shift): New function.
18155 * script/main.c (grub_script_init): Register shift command.
18156 (grub_script_fini): Unregister shift command.
18157 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18159 * tests/grub_script_shift.in: New testcase.
18160 * conf/tests.rmk: Rules for new testcase.
18162 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18164 "continue" command support to GRUB script.
18166 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18167 (grub_script_break): Continue support.
18168 * script/main.c (grub_script_init): Register continue command.
18169 (grub_script_fini): Unregister continue command.
18171 * tests/grub_script_continue.in: New testcase.
18172 * conf/tests.rmk: Rules for new testcase.
18174 2010-08-12 BVK Chaitanya <bvk@dbook>
18176 "break" command support to GRUB script.
18178 * conf/common.rmk: Rule updates to grub-script-check.
18179 * include/grub/misc.h (grub_min): New function.
18180 * include/grub/script_sh.h (grub_script_init): New prototype.
18181 (grub_script_fini): New prototype.
18182 (grub_script_break): New prototype.
18183 * script/main.c (grub_script_init): New function.
18184 (grub_script_fini): New function.
18185 * script/execute.c (grub_script_break): New function.
18186 * normal/main.c: Calls to grub_script_{init,fini}.
18187 * util/grub-script-check.c (grub_script_break): New function.
18189 * tests/grub_script_break.in: New testcase.
18190 * conf/tests.rmk: Rules for new test case.
18192 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18194 Function parameters support to GRUB script.
18196 * script/yylex.l (VARIABLE): Regular expression update.
18197 * script/function.c (grub_script_function_call): Moved ...
18198 * script/execute.c (grub_script_function_call): ... to here.
18199 (grub_script_execute_arglist_to_argv): Removed.
18200 (grub_script_arglist_to_argv): New function.
18201 * script/argv.c: New file.
18202 (grub_script_argv_free): New function.
18203 (grub_script_argv_next): Likewise.
18204 (grub_script_argv_append): Likewise.
18205 (grub_script_argv_split_append): Likewise.
18206 * include/grub/script_sh.h (grub_script_argv): New struct.
18207 (grub_script_argv_free): New function.
18208 (grub_script_argv_next): Likewise.
18209 (grub_script_argv_append): Likewise.
18210 (grub_script_argv_split_append): Likewise.
18212 * conf/common.rmk (normal.mod): New source script/argv.c.
18214 * tests/grub_script_echo1.in: More tests.
18215 * tests/grub_script_vars1.in: Likewise.
18216 * tests/grub_script_functions.in: New test case.
18217 * conf/tests.rmk: Rules for new testcase.
18219 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18221 Remove grub_script_cmdblock struct.
18223 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18224 * script/parser.y: Likewise.
18225 * script/execute.c: Rename cmdblock suffix to cmdlist.
18226 * script/script.c: Likewise.
18227 * util/grub-script-check.c: Likewise.
18229 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18231 * .bzrignore: add grub-macho2img
18233 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18235 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18237 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18239 Remove the dump of sm712 initialisation sequence.
18241 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18242 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18243 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18244 (GRUB_VGA_CR_*): Added many registers.
18245 (GRUB_VGA_SR_*): Likewise.
18246 (GRUB_VGA_GR_*): Likewise.
18247 (grub_vga_write_arx): New function.
18248 (grub_video_hw_config): New struct.
18249 (grub_vga_set_geometry): New function.
18250 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18251 GRUB_PCI_CLASS_SUBCLASS_VGA.
18252 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18253 * video/sm712.c (grub_sm712_write_reg): New function
18254 (grub_sm712_read_reg): Likewise.
18255 (grub_sm712_sr_write): Likewise.
18256 (grub_sm712_gr_write): Likewise.
18257 (grub_sm712_cr_write): Likewise.
18258 (grub_sm712_write_arx): Likewise.
18259 (grub_sm712_cr_shadow_write): Likewise.
18260 (grub_sm712_write_dda_lookup): Likewise.
18261 (grub_video_sm712_setup): Initialise the video rather then
18262 blindly replay the dump.
18263 (main) [TEST]: Add a routine to be able to compile as standalone for
18265 * video/sm712_init.c (sm712_init): Removed.
18266 (sm712_sr_seq1): New array.
18267 (sm712_sr_seq2): Likewise.
18269 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18271 * include/grub/vga.h: Add missing grub/pci.h include.
18273 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18275 * util/grub-macho2img.c (main): fix typo
18277 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18279 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18280 (grub_vga_gr_read): Likewise.
18281 (grub_vga_cr_write): Likewise.
18282 (grub_vga_cr_read): Likewise.
18283 (grub_vga_sr_write): Likewise.
18284 (grub_vga_sr_read): Likewise.
18285 (grub_vga_palette_read): Likewise.
18286 (grub_vga_palette_write): Likewise.
18287 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18288 (grub_sm712_sr_read): New function.
18289 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18290 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18292 2010-08-09 Robert Millan <rmh@gnu.org>
18294 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18295 out unused variables on non-ZFS build.
18297 2010-08-08 Robert Millan <rmh@gnu.org>
18299 Fix path generation for sub-filesystems in ZFS.
18301 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18304 2010-08-08 Robert Millan <rmh@gnu.org>
18306 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18308 2010-08-08 Robert Millan <rmh@gnu.org>
18310 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18311 exist, issue a proper error message (rely on `ls' for translated
18314 2010-08-08 Robert Millan <rmh@gnu.org>
18316 Fix grub-probe invocation.
18318 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18320 2010-08-04 Robert Millan <rmh@gnu.org>
18322 * configure.ac: Remove checks for getfsstat() and getmntany().
18323 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18324 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18325 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18326 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18327 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18329 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18330 via find_mount_point_from_dir() and getfsstat() / getmntany().
18332 2010-08-04 Robert Millan <rmh@gnu.org>
18334 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18335 (grub_find_zpool_from_mount_point): Merge into ...
18336 (grub_find_zpool_from_dir): ... this.
18337 * kern/emu/misc.c: Likewise.
18340 (grub_make_system_path_relative_to_its_root): Replace
18341 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18342 with grub_find_zpool_from_dir().
18343 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18345 2010-08-04 Robert Millan <rmh@gnu.org>
18347 Support OpenSolaris in ZFS device resolution.
18349 * configure.ac: Check for getmntany().
18350 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18351 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18354 2010-08-03 Robert Millan <rmh@gnu.org>
18356 Fix grub-emu build.
18358 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18359 * include/grub/emu/misc.h: ... here.
18361 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18362 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18364 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18365 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18366 (grub_get_libzfs_handle): Move to ...
18367 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18368 (grub_get_libzfs_handle): ... here.
18370 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18372 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18373 as command name case.
18375 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18377 * disk/raid.c (insert_array): Select unique numbers for named arrays
18378 as well, for use as keys in the disk cache.
18380 2010-08-01 Robert Millan <rmh@gnu.org>
18382 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18383 kFreeBSD device name, except on ZFS where the filesystem label is
18385 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18386 `/boot/zfs/zpool.cache'.
18387 Set mountfrom kernel variable using ${kfreebsd_device}.
18389 2010-08-01 Robert Millan <rmh@gnu.org>
18391 Make it even harder to use uninitialized `libzfs_handle' (and
18392 make the interface a bit simpler).
18394 * include/grub/util/misc.h (grub_util_init_libzfs)
18395 (libzfs_handle): Remove.
18396 (grub_get_libzfs_handle): New prototype.
18398 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18400 (grub_util_init_libzfs): Remove.
18401 (grub_get_libzfs_handle): New function.
18403 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18404 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18405 accessing `libzfs_handle' directly.
18407 2010-08-01 Robert Millan <rmh@gnu.org>
18409 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18410 (grub_find_zpool_from_mount_point): New function prototypes.
18412 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18413 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18415 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18416 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18417 `static' attribute.
18419 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18420 finding zpool from mount point into ...
18421 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18423 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18424 requested path is part of a ZFS pool, use
18425 grub_find_zpool_from_mount_point() to detect its filesystem name,
18426 and generate a path with `/fsname@path' syntax.
18428 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18430 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18431 (void) rather than () so that this is a proper prototype.
18433 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18435 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18437 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18439 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18440 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18442 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18444 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18446 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18448 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18450 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18452 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18453 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18454 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18455 disable gfxpayload.
18456 (Shell-like scripting): Add real content.
18457 (Serial terminal): Suggest `terminal_input serial; terminal_output
18458 serial' rather than putting the two commands on separate lines,
18459 since console input will be inoperative after the first command.
18460 (menuentry): Document --class, --users, and --hotkey options.
18461 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18462 Vladimir Serbinenko).
18464 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18465 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18467 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18469 2010-08-01 Robert Millan <rmh@gnu.org>
18471 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18472 (grub_find_zpool_from_mount_point): New function prototypes.
18474 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18475 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18477 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18478 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18479 `static' attribute.
18481 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18482 finding zpool from mount point into ...
18483 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18485 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18486 requested path is part of a ZFS pool, use
18487 grub_find_zpool_from_mount_point() to detect its filesystem name,
18488 and generate a path with `/fsname@path' syntax.
18490 2010-08-01 Robert Millan <rmh@gnu.org>
18492 Prevent accidental use of uninitialized libzfs_handle.
18494 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18495 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18496 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18498 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18500 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18501 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18503 2010-08-01 Robert Millan <rmh@gnu.org>
18505 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18507 2010-07-31 Robert Millan <rmh@gnu.org>
18509 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18511 2010-07-31 Robert Millan <rmh@gnu.org>
18513 * kern/emu/misc.c: Add missing license header.
18515 2010-07-31 Robert Millan <rmh@gnu.org>
18517 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18519 * include/grub/util/libnvpair.h: Include `<config.h>'.
18520 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18521 declaring libnvpair prototypes ourselves.
18522 * include/grub/util/libzfs.h: Include `<config.h>'.
18523 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18524 declaring libzfs prototypes ourselves.
18526 (libzfs_handle): Moved to ...
18527 * include/grub/util/misc.h (libzfs_handle): ... here.
18528 Include `<grub/util/libzfs.h>'.
18530 2010-07-30 Robert Millan <rmh@gnu.org>
18532 * include/grub/emu/misc.h: Add missing license header.
18534 2010-07-30 Robert Millan <rmh@gnu.org>
18536 Enable `grub-probe -t device' resolution on ZFS.
18538 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18539 * include/grub/util/libnvpair.h: New file.
18540 * include/grub/util/libzfs.h: New file.
18542 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18543 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18544 `<grub/util/libnvpair.h>'.
18545 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18547 (find_mount_point_from_dir): New static function.
18548 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18550 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18551 find_root_device_from_libzfs() before ressorting to find_root_device().
18553 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18555 * util/misc.c: Include `<grub/util/libzfs.h>'.
18556 (grub_util_init_libzfs): New function.
18557 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18558 [HAVE_LIBZFS] (fini_libzfs): New static function.
18559 (grub_util_init_libzfs): New function.
18560 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18562 2010-07-30 Robert Millan <rmh@gnu.org>
18564 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18565 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18566 `warn_unused_result' attribute.
18567 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18568 (grub_xasprintf, grub_xvasprintf): Likewise.
18569 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18571 2010-07-29 Robert Millan <rmh@gnu.org>
18573 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18574 (probe): Handle `PRINT_FS_LABEL'.
18575 (main): Handle `-t fs_label'.
18577 2010-07-29 Robert Millan <rmh@gnu.org>
18579 * configure.ac: Remove grub-mkisofs checks.
18581 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18583 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18584 Reported by: Lennart Sorensen.
18586 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18588 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18589 prior to terminal_input/terminal_output separation. It's been over 1.5
18590 years and those versions weren't widely deployed.
18592 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18594 * disk/raid.c (insert_array): Don't count named arrays when looking
18595 for unused array numbers.
18596 Reported and tested by: Michael Guntsche.
18598 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18600 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18601 implementation of this so that grub-emu links again, with a note
18602 that this should support hotplugging in the future.
18604 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18606 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18608 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18610 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18612 (grub_loopback_close): Remove empty function.
18613 (grub_loopback_dev): Remove close method.
18615 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18617 Disable EFI cursor when the EFI console becomes inactive.
18619 * term/efi/console.c (grub_efi_console_init): New function.
18620 (grub_efi_console_fini): New function.
18621 (grub_console_term_output): Register init and fini methods.
18623 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18625 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18628 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18630 * disk/loopback.c (grub_loopback): Replace filename with file.
18631 (delete_loopback): Handle new semantics.
18632 (grub_cmd_loopback): Likewise.
18633 (grub_loopback_iterate): Likewise.
18634 (grub_loopback_close): Likewise.
18636 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18638 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18640 Reported by: Tito Keitel.
18642 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18644 * docs/grub.texi (Naming convention): Document new naming convention.
18646 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18647 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18649 Generate device.map in something closer to the old ordering.
18651 * util/deviceiter.c (struct device): New declaration.
18652 (compare_file_names): Rename to ...
18653 (compare_devices): ... this. Sort by kernel name in preference to
18654 the stable by-id name, but keep the latter as a fallback comparison.
18655 Update header comment.
18656 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18657 of `struct device' rather than of plain file names.
18659 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18661 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18664 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18666 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18668 (setv1table): Likewise.
18670 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18672 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18673 removing the homehost if present.
18674 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18675 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18676 removing the homehost if present.
18677 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18679 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18681 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18682 parameter. Set its pointer target to 0.
18683 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18684 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18685 `data_offset' value from the superblock for 1.x metadata.
18686 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18687 data on the device.
18688 (insert_array): Record the start sector of data on the device.
18689 (grub_raid_register): Pass start_sector parameters to
18690 grub_raid_list->detect and insert_array.
18691 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18693 (struct grub_raid): Add start_sector parameter to `detect'.
18695 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18696 __attribute__ ((packed)), leaving a comment.
18697 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18698 (grub_mdraid_detect_09): ... here and ...
18699 (grub_mdraid_detect_1x): ... here.
18701 2010-07-20 Peter Henn <peter.henn@web.de>
18703 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18704 chunk size and disk size, which are already given as sector counts
18705 as distinct from the 0.90 units. Fetch the correct device number
18706 from the role table instead of using the table index.
18708 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18710 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
18711 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
18712 (WriteMostly1): New macro.
18713 Set array->name to NULL for metadata format 0.90. Add support for
18714 metadata 1.x. Fix some comments.
18715 * disk/raid.c (): Add support for name based RAID arrays. Fix a
18717 * util/getroot.c (grub_util_get_grub_dev): Add support for
18718 /dev/md/name style devices.
18720 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18722 * .bzrignore: Ignore 20_linux_xen.
18724 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
18726 * util/import_unicode.py: Remove unnecessary imports.
18728 2010-07-17 Aleš Nesrsta <starous@volny.cz>
18730 Hotplugging and USB hub support.
18732 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
18733 (grub_ohci): Likewise.
18734 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
18735 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
18736 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
18737 (GRUB_OHCI_CTRL_EDS): Likewise.
18738 (GRUB_OHCI_BULK_EDS): Likewise.
18739 (GRUB_OHCI_TDS): Likewise.
18740 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
18741 (grub_ohci_ed_phys2virt): New function.
18742 (grub_ohci_virt_to_phys): Likewise.
18743 (grub_ohci_td_phys2virt): Likewise.
18744 (grub_ohci_td_virt2phys): Likewise.
18745 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
18747 (grub_ohci_find_ed): New function.
18748 (grub_ohci_alloc_td): Likewise.
18749 (grub_ohci_free_td): Likewise.
18750 (grub_ohci_free_tds): Likewise.
18751 (grub_ohci_transfer): Use previously allocated memory.
18752 (grub_ohci_portstatus): Reset status changed bit.
18753 (grub_ohci_detect_dev): Supply status changed.
18754 (grub_ohci_fini_hw): Free memory.
18755 (grub_ohci_restore_hw): Reallocate memory.
18756 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
18757 Reset status change.
18758 (grub_uhci_detect_dev): Supply status_change.
18759 * bus/usb/usb.c (attach_hooks): New var.
18760 (grub_usb_device_attach): New function.
18761 (grub_usb_register_attach_hook_class): Likewise.
18762 (grub_usb_unregister_attach_hook_class): Likewise.
18763 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
18764 (grub_usb_add_hub): Reset connection changed bit.
18765 (attach_root_port): New function.
18766 (grub_usb_root_hub): Likewise.
18767 (poll_nonroot_hub): Likewise.
18768 (grub_usb_poll_devices): Likewise.
18769 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
18770 * disk/usbms.c (grub_usbms_open): Use device hooks.
18771 (grub_usbms_iterate) :Poll devices.
18772 (grub_usbms_finddevs): Split into ...
18773 (grub_usbms_attach): ... this ...
18774 (grub_usbms_attach): ... and this.
18775 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
18777 (grub_usb_interface): New fields attached and detach_hook.
18778 (grub_usb_attach_hook_class): New type.
18779 (grub_usb_attach_desc): New struct.
18780 (grub_usb_register_attach_hook_class): New function.
18781 (grub_usb_unregister_attach_hook_class): Likewise.
18782 (grub_usb_poll_devices): Likewise.
18783 (grub_usb_device_attach): Likewise.
18784 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
18785 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
18787 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18789 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
18790 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
18791 delta determination style. Works with most NetBSD partitions too.
18793 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18795 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
18796 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
18798 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18800 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
18802 2010-07-14 Anton Blanchard <anton@samba.org>
18804 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
18807 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18809 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
18811 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18813 * kern/partition.c (grub_partition_check_containment): New function to
18814 check that a partition is physically contained in a parent. Since
18815 offsets are relative (and non-negative), this reduces to checking that
18816 the partition ends before its parent.
18817 (grub_partition_map_probe): Discard out-of-range sub-partitions.
18818 (grub_partition_iterate): Likewise.
18819 * include/grub/partition.h (grub_partition_map): Slightly more detailed
18821 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
18822 partitions that start before their parent, and add debug printfs.
18824 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18826 * Makefile.in (.SUFFIX): Spell correctly, as ...
18827 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
18828 bare module name without `.mod', e.g. `test') tried to invoke a
18831 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18833 * README: Point to the Info manual.
18835 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
18837 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
18838 2nd superblock position from partition size.
18840 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
18842 * Makefile.in (MAINTAINER_CLEANFILES): Remove
18843 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
18844 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
18847 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18849 Restructure SCSI .id handling.
18850 Reported and tested by: Aleš Nesrsta.
18852 * disk/ata.c (grub_atapi_close): Removed. All users updated.
18853 (grub_atapi_dev): Changed .name to "ata". New field .id.
18854 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
18855 (grub_usbms_dev): New field .id.
18856 * disk/scsi.c (grub_scsi_iterate): Generate name.
18857 (grub_scsi_open): Parse name.
18858 * include/grub/scsi.h (grub_make_scsi_id): New function.
18859 (grub_scsi_dev): Change iterate and open to number instead of naming
18860 busses. All users updated.
18861 (grub_scsi): Remove name. Add .bus.
18863 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18865 * commands/help.c (grub_cmd_help): Fix a typo.
18867 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18869 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
18870 Reported and tested by: Colin Watson.
18872 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18874 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
18877 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18879 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
18881 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
18883 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
18886 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18888 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
18889 and disk/raid6_recover.c.
18890 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18891 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18893 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18895 * term/gfxterm.c (repaint_schedulded): Rename to ...
18896 (repaint_scheduled): ... this. Update all callers.
18897 (repaint_was_schedulded): Rename to ...
18898 (repaint_was_scheduled): ... this. Update all callers.
18900 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18902 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
18903 which we expect to be handled by upper layers.
18905 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
18907 * bus/usb/usbhub.c: #include time.h header.
18909 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18911 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
18912 entry_name also for entries without stat blocks (e.g. ".."); fixes
18913 corruption of the first entry in a directory.
18915 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18917 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
18918 after setting gfxterm as the active terminal. GRUB_BACKGROUND
18919 doesn't work otherwise.
18921 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18923 * docs/grub.texi (Features): Update list of supported file systems.
18924 (GNU/Linux): Update for GRUB 2.
18925 (Serial terminal): Remove mention of --disable-serial, which was a
18926 GRUB Legacy configure option. Update instructions to use
18927 `terminal_input' and `terminal_output' rather than `terminal'.
18928 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
18929 configuration' and `Installing GRUB using grub-install'.
18930 (Menu entry editor): Update for GRUB 2.
18931 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
18932 Document new -a, -u, and -v options.
18933 (initrd): New section.
18934 (initrd16): New section.
18935 (linux): New section.
18936 (linux16): New section.
18937 (search): The `var' argument to `--set' is optional.
18938 (GRUB only offers a rescue shell): Go into a little more detail on
18941 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18943 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
18945 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18947 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
18948 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
18950 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18952 * util/i386/pc/grub-setup.c (setup): Rename prefix to
18953 install_prefix, in line with install_dos_part and install_bsd_part.
18954 Add new prefix variable, which is copied to install_prefix after
18955 comparing core.img in memory with the one read from disk in the
18956 no-embedding case, and use that rather than overwriting
18957 install_prefix immediately when installing to a partition.
18958 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
18961 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18963 * configure.ac: Avoid == in test command, it's not portable.
18964 * util/grub.d/30_os-prober.in: Likewise.
18966 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
18968 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
18970 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18972 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
18973 multiple (top-level) partmaps.
18975 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18977 * util/i386/efi/grub-install.in: Don't use empty grub_device.
18978 Reported by: Tino Keitel.
18980 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18982 Bidi and diacritics support.
18984 * Makefile.in (widthspec.bin): New target.
18985 (widthspec.h): Likewise.
18986 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
18987 * autogen.sh: Generate unidata.c.
18988 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
18989 * commands/ls.c (grub_ls_list_devices): Likewise.
18990 (grub_ls_list_files): Likewise.
18991 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18992 (grub_mini_cmd_lsmod): Likewise.
18993 * commands/read.c: Likewise.
18994 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
18995 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
18996 * lib/arg.c (grub_arg_show_help): Likewise.
18997 * lib/crypto.c (grub_password_get): Likewise.
18998 * normal/auth.c (grub_username_get): Likewise.
18999 * normal/misc.c (grub_normal_print_device_info): Likewise.
19000 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19001 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19002 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19003 (normal/charset.c_DEPENDENCIES): New variable.
19004 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19005 (pkglib_MODULES): Remove charset.mod.
19006 (charset_mod_SOURCES): Removed.
19007 (charset_mod_CFLAGS): Likewise.
19008 (charset_mod_LDFLAGS): Likewise.
19009 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19010 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19012 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19013 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19014 (kernel_img_HEADERS): Add terminfo.h.
19015 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19016 Fill ->font. Reverse ascii bitmaps.
19017 (grub_font_get_xheight): New function.
19018 * font/font.c (grub_font_get_string_width): Moved from here ...
19019 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19020 * font/font.c (grub_font_draw_string): Moved from here ...
19021 * gfxmenu/font.c (grub_font_draw_string): ... here.
19022 * font/font.c (grub_font_dup_glyph): New function.
19023 (grub_font_blit_glyph): Likewise.
19024 (grub_font_blit_glyph_mirror): Likewise.
19025 (blit_comb): Likewise.
19026 (grub_font_construct_dry_run): Likewise.
19027 (grub_font_get_constructed_device_width): Likewise.
19028 (grub_font_construct_glyph): Likewise.
19029 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19030 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19031 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19032 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19033 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19034 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19035 (grub_font_get_xheight): New proto.
19036 (grub_font_get_constructed_device_width): Likewise.
19037 (grub_font_construct_glyph): Likewise.
19038 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19039 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19040 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19041 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19042 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19043 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19044 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19045 (grub_console_getcharwidth): Likewise.
19046 * include/grub/misc.h (grub_xputs): New proto.
19047 (grub_puts): Inlined.
19048 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19049 (grub_normal_get_line_counter): Removed.
19050 (grub_install_newline_hook): Likewise.
19051 (grub_normal_get_char_counter): New proto.
19052 (grub_normal_reset_more): Likewise.
19053 (grub_xputs_normal): Likewise.
19054 * include/grub/powerpc/ieee1275/console.h: Removed.
19055 * include/grub/sparc64/ieee1275/console.h: Likewise.
19056 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19057 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19058 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19059 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19060 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19061 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19062 (grub_term_input): Pass reference to self. All users updated.
19063 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19064 Pass reference to self. New fields normal_color, highlight_color and
19065 data. All users updated.
19066 (grub_putchar): Removed.
19067 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19068 (grub_unicode_estimate_width): New function.
19069 (grub_term_getcharwidth): Add defaults.
19070 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19071 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19072 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19073 (grub_cls): Remove EXPORT_FUNC.
19074 (grub_setcolorstate): Inline.
19075 (grub_newline_hook): Removed.
19076 * include/grub/terminfo.h: Rewritten. All users updated.
19077 * include/grub/unicode.h: New file.
19078 * include/grub/video.h (grub_video_signed_rect): New type.
19079 * kern/emu/console.c (grub_console_highlight_color): Removed.
19080 (grub_console_normal_color): Likewise.
19081 (grub_console_standard_color): Made static.
19082 (grub_ncurses_putchar): Remove mapping.
19083 (grub_ncurses_getcharwidth): Removed.
19084 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19085 (grub_ncurses_setcolor): Removed.
19086 (grub_ncurses_getcolor): Likewise.
19087 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19088 (grub_console_putchar): ... this.
19089 (grub_console_putchar): Handle argument difference.
19090 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19091 console_init_early and console_init_lately.
19092 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19093 * kern/misc.c (grub_puts): Removed.
19094 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19095 (grub_vsnprintf_real): Remove str = NULL support.
19096 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19097 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19098 * kern/term.c (grub_putcode): Renamed to ...
19099 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19100 (grub_putchar): Removed.
19101 (grub_xputs_dumb): New function.
19102 (grub_xputs): New variable.
19103 * lib/charset.c: Move from here ...
19104 * normal/charset.c: ... to here.
19105 (grub_ucs4_to_utf8): New function.
19106 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19107 (join_types): New variable.
19108 (unpack_join): New function.
19109 (bidi_types): New variable.
19110 (unpack_bidi): New function.
19111 (get_bidi_type): Likewise.
19112 (get_join_type): Likewise.
19113 (is_mirrored): Likewise.
19114 (grub_unicode_get_comb_type): Likewise.
19115 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19116 (is_type_after): Likewise.
19117 (grub_unicode_aglomerate_comb): Likewise.
19118 (bidi_line_wrap): Likewise.
19119 (grub_bidi_line_logical_to_visual): Likewise.
19120 (grub_bidi_logical_to_visual): Likewise.
19121 (grub_unicode_mirror_code): Likewise.
19122 (grub_unicode_shape_code): Likewise.
19123 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19124 Don't use grub_putchar.
19125 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19126 (grub_normal_reader_init): Likewise.
19127 (grub_xputs_saved): New variable.
19128 (GRUB_MOD_INIT): Set grub_xputs.
19129 (GRUB_MOD_FINI): Restore grub_xputs.
19130 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19131 (menu_init): Avoid printing gfxmenu error.
19132 (show_menu): Use grub_normal_get_char_counter.
19133 * normal/menu_entry.c (update_screen): Fix out-of-array.
19134 (complete): Avoid NULL dereferencing.
19135 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19136 * normal/menu_text.c (print_spaces): Removed.
19137 (grub_print_ucs4): Likewise.
19138 (grub_print_message_indented): Use grub_print_ucs4.
19139 (print_message): Use grub_putcode.
19140 (print_entry): Hanlde diacritics.
19141 * normal/term.c (term_state): New type.
19142 (grub_more_lines): Removed.
19143 (term_states): New variable.
19144 (grub_normal_line_counter): Renamed to ..
19145 (grub_normal_char_counter): ...this. All users updated.
19146 (grub_normal_get_line_counter): Renamed to ...
19147 (grub_normal_get_char_counter): ... this.
19148 (grub_normal_reset_more): New function.
19149 (process_newline): Removed.
19150 (print_more): New function.
19151 (grub_install_newline_hook): Removed.
19152 (map_code): New function.
19153 (grub_puts_terminal): Use grub_print_ucs4.
19154 (putglyph): New function.
19155 (putcode_real): Likewise.
19156 (grub_putcode): Use putcode_real.
19157 (get_maxwidth): New function.
19158 (get_startwidth): Likewise.
19159 (print_ucs4_terminal): Likewise.
19160 (find_term_state): Likewise.
19161 (put_glyphs_terminal): Likewise.
19162 (print_backlog): Likewise.
19163 (print_ucs4_real): Likewise.
19164 (grub_print_ucs4): Likewise.
19165 (grub_xputs_normal): Likewise.
19166 * term/efi/console.c (grub_console_putchar): Output diacritics.
19167 (grub_console_getcharwidth): Removed.
19168 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19169 * term/gfxterm.c (clear_char): Free chars.
19170 (scroll_up): Avoid leaking memory.
19171 (grub_gfxterm_putchar): Support diacritics.
19172 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19173 * term/i386/pc/console.c (grub_console_term_output): Declare as
19174 GRUB_TERM_CODE_TYPE_VGA.
19175 * term/i386/pc/vga.c (grub_vga_term): Declare as
19176 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19177 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19178 GRUB_TERM_CODE_TYPE_VGA.
19179 * term/i386/vga_common.c (map_char): Removed.
19180 (grub_console_putchar): Likewise.
19181 (grub_console_getcharwidth): Likewise.
19182 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19183 (colors): Reordered to match terminfo.
19184 (grub_ofconsole_normal_color): Removed.
19185 (grub_ofconsole_writeesc): Likewise.
19186 (grub_ofconsole_highlight_color): Likewise.
19187 (grub_ofconsole_getcharwidth): Likewise.
19188 (grub_ofconsole_setcolorstate): Likewise.
19189 (grub_ofconsole_setcolor): Likewise.
19190 (grub_ofconsole_getcolor): Likewise.
19191 (grub_ofconsole_readkey): Renamed to ...
19192 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19194 (grub_ofconsole_checkkey): Removed.
19195 (grub_ofconsole_getkey): Likewise.
19196 (grub_ofconsole_getxy): Likewise.
19197 (grub_ofconsole_gotoxy): Likewise.
19198 (grub_ofconsole_cls): Likewise.
19199 (grub_ofconsole_refresh): Likewise.
19200 (grub_ofconsole_terminfo_input): New struct.
19201 (grub_ofconsole_terminfo_output): Likewise.
19202 (grub_ofconsole_term_input): Use terminfo.
19203 (grub_ofconsole_term_output): Likewise.
19204 (grub_console_init): Split into ...
19205 (grub_console_init_early): ...this and ...
19206 (grub_console_init_lately): ...this. Use terminfo.
19207 (grub_ofconsole_putchar): Renamed to ...
19208 (put): ... this. Remove mapping.
19209 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19210 * term/serial.c: Simplify using terminfo.
19213 (keep_track): Likewise.
19214 (registered): Likewise.
19215 (input_buf): Likewise.
19216 (npending): Likewise.
19217 (serial_translate_key_sequence): Likewise.
19218 (fill_input_buf): Likewise.
19219 (grub_serial_checkkey): Likewise.
19220 (grub_serial_getkey): Likewise.
19221 (grub_serial_getxy): Likewise.
19222 (grub_serial_gotoxy): Likewise.
19223 (grub_serial_putchar): Likewise.
19224 (grub_serial_cls): Likewise.
19225 (grub_serial_setcolorstate): Likewise.
19226 (grub_serial_setcursor): Likewise.
19227 (serial_hw_init): Use serial_hw_fetch.
19228 (grub_serial_terminfo_input): New variable.
19229 (grub_serial_terminfo_output): Likewise.
19230 (grub_serial_term_input): Use terminfo.
19231 (grub_serial_term_output): Likewise.
19232 * term/terminfo.c (putstr): Use put.
19233 (grub_terminfo_all_free): New function
19234 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19235 (grub_terminfo_output_register): New function.
19236 (grub_terminfo_output_unregister): Likewise.
19237 (grub_terminfo_getxy): Likewise.
19238 (grub_terminfo_readkey): Likewise.
19239 (grub_terminfo_checkkey): Likewise.
19240 (grub_terminfo_getkey): Likewise.
19241 (grub_terminfo_input_init): Likewise.
19242 (print_terminfo): Likewise.
19243 (grub_cmd_terminfo): Handle encoding.
19244 (grub_terminfo_gotoxy): Track position.
19245 (grub_terminfo_cls): Likewise.
19246 (grub_terminfo_putchar): Likewise.
19247 (grub_terminfo_setcolorstate): Handle colors
19248 (grub_terminfo_cursor_on): This ...
19249 (grub_terminfo_cursor_off): ... and this merged into ...
19250 (grub_terminfo_setcursor): ... this.
19251 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19252 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19253 * unicode/BidiMirroring.txt: Likewise.
19254 * unicode/UnicodeData.txt: Likewise.
19255 * unicode/COPYING: Likewise.
19256 * util/grub-editenv.c (grub_putchar): Removed.
19257 (grub_xputs_real): New function.
19258 (grub_xputs): New variable.
19259 * util/grub-fstest.c (grub_putchar): Removed.
19260 (grub_xputs_real): New function.
19261 (grub_xputs): New variable.
19262 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19263 (grub_xputs_real): New function.
19264 (grub_xputs): New variable.
19265 * util/grub-probe.c (grub_putchar): Removed.
19266 (grub_xputs_real): New function.
19267 (grub_xputs): New variable.
19268 * util/grub-script-check.c (grub_putchar): Removed.
19269 (grub_xputs_real): New function.
19270 (grub_xputs): New variable.
19271 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19272 (grub_xputs_real): New function.
19273 (grub_xputs): New variable.
19274 * util/import_unicode.py: New file.
19275 * util/grub-mkfont.c (ft_errmsgs): New array.
19276 (grub_glyph_info): Make bitmap a pointer.
19277 (file_formats): New type WIDTH_SPEC.
19278 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19279 (options): Add width-spec.
19281 (add_char): Renamed to ...
19282 (add_glyph): ... this.
19283 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19284 (glyph_replace): New type.
19285 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19286 (add_char): New function.
19287 (add_subst): Likewise.
19288 (process_cursive): Likewise.
19289 (add_font): Handle GSUB.
19290 (write_font_width_spec): New function.
19291 (main): Sort glyphs.
19292 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19293 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19294 * kern/term.c (grub_cls): Moved from here...
19295 * normal/term.c (grub_cls): ... here.
19297 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19299 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19300 suitable for using within the format argument of printf when
19301 converting grub_size_t.
19302 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19303 "x" to convert grub_size_t arguments.
19305 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19307 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19309 (list_get_minimal_size): Take selection box into account.
19311 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19313 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19316 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19318 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19319 devices when iterating over /dev/disk/by-id; they will be handled
19320 later if appropriate, which they aren't always (e.g. LVM).
19322 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19324 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19325 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19327 (grub_halt): Likewise.
19328 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19330 (grub_halt): Don't return, even if all of shut-down, power-off, and
19333 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19335 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19336 arguments, not three.
19338 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19340 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19341 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19342 LVM-on-RAID is handled correctly.
19344 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19346 * docs/grub.texi (Changes from GRUB Legacy): New section.
19347 (Future): Fix typo.
19349 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19351 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19352 grub.d/README accidentally ends up executable for one reason or
19353 another. Ignore it.
19355 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19357 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19358 (gpt_partition_map_iterate): Support non-512B sectors.
19360 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19362 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19363 Tested by: Seth Goldberg.
19365 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19367 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19368 Properly align mbi.
19369 Reported by: Seth Goldberg.
19371 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19373 * util/grub-mkrescue.in: Avoid module duplication.
19375 2010-07-01 Sean Finney <seanius@seanius.net>
19377 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19379 2010-07-01 Sean Finney <seanius@seanius.net>
19381 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19383 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19385 * disk/lvm.c (grub_lvm_checkvalue): New function.
19386 (grub_lvm_check_flag): Likewise.
19388 2010-07-01 Robert Millan <rmh@gnu.org>
19390 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19391 Support 'p' as partition separator on kernel of FreeBSD (used
19393 (grub_util_biosdisk_get_grub_dev): Likewise.
19395 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19397 Yeeloong firmware port.
19399 * boot/mips/yeeloong/fwstart.S: New file.
19400 * bus/cs5536.c (gpiodump): New const.
19401 (set_io_space): New function.
19402 (set_iod): Likewise.
19403 (set_p2d): Likewise.
19404 (grub_cs5536_init_geode): Likewise.
19405 * commands/mips/yeeloong/lsspd.c: New file.
19406 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19407 (serial_mod_SOURCES): New variable.
19408 (serial_mod_CFLAGS): Likewise.
19409 (serial_mod_LDFLAGS): Likewise.
19410 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19411 term/terminfo.c and term/tparm.c.
19412 (pkglib_IMAGES): Add fwstart.img.
19413 (fwstart_img_SOURCES): New variable.
19414 (fwstart_img_CFLAGS): Likewise.
19415 (fwstart_img_ASFLAGS): Likewise.
19416 (fwstart_img_LDFLAGS): Likewise.
19417 (fwstart_img_FORMAT): Likewise.
19418 (pkglib_MODULES): Add lsspd.mod.
19419 (lsspd_mod_SOURCES): New variable.
19420 (lsspd_mod_CFLAGS): Likewise.
19421 (lsspd_mod_LDFLAGS): Likewise.
19422 (pkglib_MODULES): Add halt.mod.
19423 (halt_mod_SOURCES): New variable.
19424 (halt_mod_CFLAGS): Likewise.
19425 (halt_mod_LDFLAGS): Likewise.
19426 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19427 (serial_mod_SOURCES): Removed.
19428 (serial_mod_CFLAGS): Likewise.
19429 (serial_mod_LDFLAGS): Likewise.
19430 * disk/ata.c (check_device): New function.
19431 (grub_ata_device_initialize): Use check_device.
19432 (grub_ata_iterate): Recheck devices.
19433 (grub_ata_open): Likewise.
19434 (grub_atapi_iterate): Likewise.
19435 (grub_atapi_open): Likewise.
19436 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19437 (GRUB_ATA_CH1_PORT1): Likewise.
19438 (GRUB_ATA_CH0_PORT2): Likewise.
19439 (GRUB_ATA_CH1_PORT2): Likewise.
19440 * include/grub/mips/loongson.h: New file.
19441 * include/grub/mips/yeeloong/ec.h: Likewise.
19442 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19443 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19444 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19445 * include/grub/misc.h (grub_halt): Declare as noreturn.
19446 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19447 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19448 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19449 (UART_ENABLE_DTRRTS): Likewise.
19450 (UART_ENABLE_MODEM): Removed.
19451 (UART_ENABLE_OUT2): New const.
19452 * include/grub/term.h (grub_term_register_input_active): New function.
19453 (grub_term_register_output_active): Likewise.
19454 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19456 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19457 (init_pci): New function.
19458 (grub_machine_init): Execute platform init when firmware. Init serial.
19459 (grub_halt): Implement.
19460 (grub_exit): Likewise.
19461 (grub_reboot): Likewise.
19462 * term/serial.c (serial_hw_init): Update macros.
19463 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19464 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19465 (image_targets): New target mipsel-yeeloong-flash.
19466 (generate_image): Support IMAGE_YEELOONG_FLASH.
19467 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19468 (grub_video_sm712_setup): Init card.
19469 (grub_video_sm712_set_palette): Removed.
19470 * video/sm712_init.c: New file.
19472 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19474 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19475 PATH when running help2man and then run it on the unadorned
19476 executable names, rather than passing $(builddir)/* paths to
19477 help2man. This avoids the build directory ending up in generated
19480 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19482 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19483 to avoid accidents when debugging with 'sh -x'.
19484 * util/grub-mkrescue.in: Likewise.
19485 * util/grub.d/00_header.in: Likewise.
19486 * util/grub.d/10_hurd.in: Likewise.
19487 * util/grub.d/10_kfreebsd.in: Likewise.
19488 * util/grub.d/10_linux.in: Likewise.
19489 * util/grub.d/10_netbsd.in: Likewise.
19490 * util/grub.d/10_windows.in: Likewise.
19491 * util/grub.d/20_linux_xen.in: Likewise.
19492 * util/grub.d/30_os-prober.in: Likewise.
19493 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19495 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19497 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19498 last character in the buffer.
19499 Reported by: Vladimir Serbinenko.
19501 2010-06-29 Robert Millan <rmh@gnu.org>
19503 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19504 (Command-line and menu entry commands): Document `badram' command.
19506 2010-06-28 Robert Millan <rmh@gnu.org>
19508 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19509 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19510 command using ${GRUB_BADRAM} as parameter.
19512 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19514 * docs/grub.texi (Device map): New section.
19515 (Themes): New section (stub).
19516 * Makefile.in (docs/grub.info): The info documentation now builds
19517 without errors. Make sure it stays that way.
19519 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19521 Use normal parser for menu entries.
19522 Reported by: Thomas Frauendorfer
19524 * include/grub/parser.h (grub_parser_execute): Don't export.
19525 * normal/menu.c (grub_menu_execute_entry_real): New function.
19526 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19528 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19530 * docs/grub.texi (Embedded configuration): New section (replacing
19531 old "Preset Menu" stub).
19532 (Images): New section.
19533 (configfile): Note that any menu entries defined in `file' are shown
19536 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19538 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19540 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19542 * util/grub-install.in: Add --debug-image= option.
19544 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19546 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19549 * util/deviceiter.c (check_device): Rename to ...
19550 (check_device_readable_unique): ... this. Update all callers.
19551 Maintain and check a list of which devices (by canonicalized name)
19552 have already been seen.
19553 (clear_seen_devices): New function.
19554 (compare_file_names) [__linux__]: New function.
19555 (grub_util_iterate_devices): Clear the list of seen devices on exit
19556 and (just in case) on entry.
19557 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19558 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19559 seen-devices list, superseded by general code in check_device.
19561 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19563 * commands/cat.c (options): New variable.
19564 (grub_cmd_cat): Parse options. If the --dos option is given, print
19565 DOS-style "\r\n" line endings as simple newlines (Debian bug
19567 (GRUB_MOD_INIT): Use extcmd.
19568 (GRUB_MOD_FINI): Likewise.
19569 * docs/grub.texi (cat): Document --dos.
19571 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19573 XEN with Linux grub-mkconfig support.
19575 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19576 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19577 GRUB_CMDLINE_XEN_DEFAULT.
19578 * util/grub.d/20_linux_xen.in: New file.
19580 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19582 Initialise VGA video on qemu ourselves.
19584 * boot/i386/qemu/boot.S: Don't call 0xc000.
19585 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19586 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19587 (kernel_img_HEADERS): Add pci.h.
19588 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19589 * configure.ac: Force unifont on qemu and yeeloong.
19590 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19591 (grub_vga_palette_write): Use correct register.
19592 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19593 Call grub_qemu_init_cirrus.
19594 * kern/i386/qemu/init.c: New file.
19595 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19597 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19599 2010-06-26 Pavel Roskin <proski@gnu.org>
19601 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19604 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19606 * docs/grub.texi (Simple configuration): Explain that
19607 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19608 set to `true' to disable their respective recovery entries, not
19611 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19613 Make the `source' command slightly faster.
19615 * normal/main.c (grub_normal_execute): Don't re-read list files when
19618 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19620 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19621 field position and mask size to red fields from mode_info, not
19623 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19624 Remove redundant tag->common.framebuffer_type assignment.
19625 Reported by: Seth Goldberg.
19627 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19629 Sync up other versions of the Linux loader with Robert Millan's
19630 change of 2010-01-09, "Make loader output a bit more user-friendly".
19632 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19634 (grub_cmd_linux): Likewise.
19635 (grub_cmd_initrd): Likewise.
19636 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19637 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19639 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19641 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19642 larger than MEMORY_MAP_SIZE.
19644 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19646 Fix parallel build.
19648 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19650 * script/parser.y: #include grub_script.tab.h header.
19652 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19654 Support >3GiB and <16MiB RAM in i386-qemu.
19656 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19657 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19658 (grub_lower_mem): Removed.
19659 (grub_upper_mem): Likewise.
19660 (mem_size): Made static.
19661 (above_4g): New variable.
19662 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19663 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19666 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19668 Cirrus 5446 and Bochs video cards support.
19670 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19672 (video_cirrus_mod_SOURCES): New variable.
19673 (video_cirrus_mod_CFLAGS): Likewise.
19674 (video_cirrus_mod_LDFLAGS): Likewise.
19675 (video_bochs_mod_SOURCES): Likewise.
19676 (video_bochs_mod_CFLAGS): Likewise.
19677 (video_bochs_mod_LDFLAGS): Likewise.
19678 * include/grub/vga.h: New file.
19679 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19680 (grub_video_fb_set_page_t): New type.
19681 (grub_video_fb_setup): New prototype.
19682 (grub_video_fb_swap_buffers): Likewise.
19683 (grub_video_fb_get_info_and_fini): Likewise.
19684 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19685 (CRTC_DATA_PORT): Likewise.
19686 (CRTC_CURSOR): Likewise.
19687 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19688 (CRTC_CURSOR_ADDR_LOW): Likewise.
19689 (CRTC_CURSOR_DISABLE): Likewise.
19690 (update_cursor): Use grub_vga_cr_write.
19691 (grub_vga_text_setcursor): Likewise.
19692 * video/bochs.c: New file.
19693 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19694 (palette): Likewise.
19695 (palette_size): Likewise.
19696 (framebuffer): New variable.
19697 (grub_video_fb_init): Use 'framebuffer'.
19698 (grub_video_fb_fini): Likewise.
19699 (grub_video_fb_get_info): Likewise.
19700 (grub_video_fb_get_palette): Likewise.
19701 (grub_video_fb_set_palette): Likewise.
19702 (grub_video_fb_set_viewport): Likewise.
19703 (grub_video_fb_get_viewport): Likewise.
19704 (grub_video_fb_map_color): Likewise.
19705 (grub_video_fb_map_rgb): Likewise.
19706 (grub_video_fb_map_rgba): Likewise.
19707 (grub_video_fb_unmap_color): Likewise.
19708 (grub_video_fb_unmap_color_int): Likewise.
19709 (grub_video_fb_fill_rect): Likewise.
19710 (grub_video_fb_blit_bitmap): Likewise.
19711 (grub_video_fb_blit_render_target): Likewise.
19712 (grub_video_fb_scroll): Likewise.
19713 (grub_video_fb_create_render_target): Likewise.
19714 (grub_video_fb_doublebuf_blit_init): Likewise.
19715 (grub_video_fb_set_active_render_target): Handle doublebuffering.
19716 (doublebuf_pageflipping_update_screen): New function.
19717 (doublebuf_pageflipping_init): Likewise.
19718 (grub_video_fb_setup): Likewise.
19719 (grub_video_fb_swap_buffers): Likewise.
19720 (grub_video_fb_get_info_and_fini): Likewise.
19721 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
19723 (doublebuf_pageflipping_commit): Restructured into ...
19724 (doublebuf_pageflipping_set_page): ... this.
19725 (doublebuf_pageflipping_update_screen): Removed.
19726 (doublebuf_pageflipping_init): Likewise.
19727 (double_buffering_init): Likewise.
19728 (grub_video_vbe_setup): Use grub_video_fb_setup.
19729 (grub_video_vbe_swap_buffers): Removed.
19730 (grub_video_vbe_set_active_render_target): Likewise.
19731 (grub_video_vbe_get_active_render_target): Likewise.
19732 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
19733 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
19734 grub_video_fb_set_active_render_target and
19735 grub_video_fb_get_active_render_target.
19736 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
19737 (SEQUENCER_DATA_PORT): Likewise.
19738 (MAP_MASK_REGISTER): Likewise.
19739 (CRTC_ADDR_PORT): Likewise.
19740 (CRTC_DATA_PORT): Likewise.
19741 (START_ADDR_HIGH_REGISTER): Likewise.
19742 (START_ADDR_LOW_REGISTER): Likewise.
19743 (GRAPHICS_ADDR_PORT): Likewise.
19744 (GRAPHICS_DATA_PORT): Likewise.
19745 (READ_MAP_REGISTER): Likewise.
19746 (INPUT_STATUS1_REGISTER): Likewise.
19747 (INPUT_STATUS1_VERTR_BIT): Likewise.
19748 (get_map_mask): Use grub_vga_sr_read.
19749 (set_map_mask): Use grub_vga_sr_write.
19750 (set_read_map): Use grub_vga_gr_write.
19751 (set_start_address): Use grub_vga_cr_write.
19752 * video/sm712.c (framebuffer): Remove leftover fields.
19754 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
19756 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
19757 setting GRUB_VIDEO_BACKEND. Make it available as a user override
19758 instead. Replace the gfxterm backend check with a check that
19759 ${GRUB_PREFIX}/video.lst is non-empty.
19760 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
19762 (load_video): New generated function. Call it before loading
19763 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
19764 * util/grub.d/10_linux.in (linux_entry): Call load_video.
19765 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
19766 * docs/grub.texi (Simple configuration): Document
19767 GRUB_VIDEO_BACKEND.
19769 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19771 Use video functions in linux and xnu loaders.
19773 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
19774 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
19775 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
19776 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
19777 loader/i386/pc/linux.c.
19778 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
19779 (find_line_len): Removed.
19780 (find_framebuf): Likewise.
19781 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
19782 * loader/i386/efi/xnu.c: Removed.
19783 * loader/i386/pc/xnu.c: Moved from here...
19784 * loader/i386/xnu.c: ...here.
19786 Enable priorities in video drivers.
19788 * include/grub/video.h (grub_video_adapter_prio_t): New type.
19789 (grub_video_adapter): New field prio.
19790 (grub_video_register): Respect prio when inserting.
19791 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
19792 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
19793 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
19794 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
19795 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
19796 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
19797 * video/sm712.c (grub_video_sm712_adapter): Likewise.
19801 * include/grub/video.h (grub_video_driver_id_t): New value
19802 GRUB_VIDEO_DRIVER_SDL.
19803 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
19805 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19807 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
19808 argument to printf.
19809 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19811 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19813 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
19814 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19816 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19818 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
19819 directly, and recommend grub-install instead.
19820 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19822 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19824 Fix i386-pc prefix handling with nested partitions (Debian bug
19825 #585068). Note that the case where the core image is booted using
19826 multiboot and relocated from its original location still requires
19829 * kern/i386/pc/init.c (make_install_device): If the prefix starts
19830 with "(,", fill the boot drive in between those two characters, but
19831 expect that a full partition specification including partition map
19833 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
19834 specified, write a prefix without the drive name but including a
19835 full partition specification.
19837 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
19839 * util/grub-mkconfig.in: Ignore non-option arguments, for
19840 compatibility with older versions (before 2010-06-12) which did the
19841 same. In particular, this makes it easier to ship an update-grub
19842 wrapper which is compatible with that used with GRUB Legacy (Debian
19845 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19847 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
19848 for manual page generation.
19850 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19852 * po/POTFILES: Remove leftover commands/handler.c.
19854 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19856 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
19857 left this script non-functional.
19859 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19861 * docs/man/grub-emu.h2m: New file.
19863 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
19865 * docs/grub.texi (Commands): Document reduced command set in rescue
19867 (cpuid): New section.
19869 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
19871 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
19872 new partition naming style.
19873 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
19875 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
19877 Add "-o grub.iso" like cmdline options support.
19879 * util/grub-install.in: Improve cmdline option parsing.
19880 * util/grub-mkconfig.in: Likewise.
19881 * util/grub-mkrescue.in: Likewise.
19882 * util/grub-reboot.in: Likewise.
19883 * util/grub-set-default.in: Likewise.
19884 * util/i386/efi/grub-install.in: Likewise.
19885 * util/ieee1275/grub-install.in: Likewise.
19886 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19888 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19890 * .bzrignore: Ignore 41_custom.
19892 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19894 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
19896 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19898 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
19899 prototype declarations.
19901 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
19902 generating fs, partmap, and video lists.
19903 * include/grub/fs.h (grub_fs_register): Omit prototype if
19904 GRUB_LST_GENERATOR is defined.
19905 * include/grub/partition.h (grub_partition_map_register): Likewise.
19906 * include/grub/video.h (grub_video_register): Likewise.
19908 2010-06-12 Javier Martín <lordhabbit@gmail.com>
19910 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
19912 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19914 * util/grub-mkrescue.in: Support --xorriso argument.
19916 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19918 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
19919 Suggested by: Thomas Schmitt.
19921 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19923 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
19924 Suggested by: Thomas Schmitt.
19926 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19928 custom.cfg support.
19930 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
19931 * util/grub.d/41_custom.in: New file.
19933 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19935 * util/grub-mkrescue.in (make_image): Remove sh module, which has
19936 been merged back into normal.
19938 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19940 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
19941 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
19943 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19945 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
19946 when generating manual pages.
19947 * docs/man/grub-bin2h.h2m: New file.
19948 * docs/man/grub-editenv.h2m: New file.
19949 * docs/man/grub-fstest.h2m: New file.
19950 * docs/man/grub-install.h2m: New file.
19951 * docs/man/grub-macho2img.h2m: New file.
19952 * docs/man/grub-mkconfig.h2m: New file.
19953 * docs/man/grub-mkdevicemap.h2m: New file.
19954 * docs/man/grub-mkfont.h2m: New file.
19955 * docs/man/grub-mkimage.h2m: New file.
19956 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
19957 * docs/man/grub-mkrelpath.h2m: New file.
19958 * docs/man/grub-mkrescue.h2m: New file.
19959 * docs/man/grub-ofpathname.h2m: New file.
19960 * docs/man/grub-pe2elf.h2m: New file.
19961 * docs/man/grub-probe.h2m: New file.
19962 * docs/man/grub-reboot.h2m: New file.
19963 * docs/man/grub-script-check.h2m: New file.
19964 * docs/man/grub-set-default.h2m: New file.
19965 * docs/man/grub-setup.h2m: New file.
19967 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
19969 Use FOR_* macros instead of *_iterate whenever possible.
19971 * commands/handler.c: Removed.
19972 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
19973 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
19974 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19975 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
19976 (grub_probe_SOURCES): Remove kern/parser.c.
19977 (util/grub-script-check.c_DEPENDENCIES): Removed.
19978 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
19979 and grub_script_check_init.c.
19980 (grub_script_check_init.lst): Removed.
19981 (grub_script_check_init.h): Likewise.
19982 (grub_script_check_init.c): Likewise.
19983 (pkglib_MODULES): Remove handler.mod and sh.mod.
19984 (handler_mod_SOURCES): Removed.
19985 (handler_mod_CFLAGS): Likewise.
19986 (handler_mod_LDFLAGS): Likewise.
19987 (normal_mod_SOURCES): Remove normal/handler.c.
19988 Add script/main.c, script/script.c, script/execute.c,
19989 script/function.c, script/lexer.c, grub_script.tab.c
19990 and grub_script.yy.c.
19991 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19992 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19993 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
19994 (grub_setup_SOURCES): Remove kern/parser.c.
19995 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19996 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
19997 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19998 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19999 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20000 (grub_setup_SOURCES): Remove kern/parser.c.
20001 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20002 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20003 * include/grub/command.h (grub_command_iterate): Removed.
20004 (FOR_COMMANDS): New macro.
20005 * include/grub/dl.h (grub_dl): New member next.
20006 (grub_dl_iterate): Removed.
20007 (grub_dl_head): New variable declaration.
20008 (FOR_DL_MODULES): New macro.
20009 * include/grub/fs.h: Include list.h.
20010 (grub_fs): Make next first element.
20011 (grub_fs_list): New variable declaration.
20012 (grub_fs_register): Make inline.
20013 (grub_fs_unregister): Likewise.
20014 (grub_fs_iterate): Removed.
20015 (FOR_FILESYSTEMS): New macro.
20016 * include/grub/handler.h: Removed.
20017 * include/grub/list.h (grub_list_hook_t): Removed.
20018 (grub_list_test_t): Likewise.
20019 (grub_list_pop): Likewise.
20020 (grub_list_iterate): Likewise.
20021 (grub_list_insert): Likewise.
20022 (FOR_LIST_ELEMENTS): New macro.
20023 * include/grub/parser.h (grub_parser_class): Removed.
20024 (grub_parser_register): Likewise.
20025 (grub_parser_unregister): Likewise.
20026 (grub_parser_get_current): Likewise.
20027 (grub_parser_set_current): Likewise.
20028 (grub_register_rescue_parser): Likewise.
20029 (grub_rescue_parse_line): New function.
20030 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20031 * include/grub/script_sh.h (grub_script_function_list): New variable
20033 (FOR_SCRIPT_FUNCTIONS): New macro.
20034 (grub_script_function_iterate): Removed.
20035 (grub_normal_parse_line): New prototype.
20036 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20037 (FOR_DISABLED_TERM_INPUTS): Likewise.
20038 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20039 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20040 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20042 (grub_video_register): Inline.
20043 (grub_video_unregister): Likewise.
20044 (grub_video_adapter_list): New variable declaration.
20045 (grub_video_iterate): Removed.
20046 (FOR_VIDEO_ADAPTERS): New macro.
20047 * kern/dl.c (grub_dl_list): Removed. All users updated.
20048 (grub_dl_iterate): Removed.
20049 * kern/fs.c (grub_fs_list): Make global.
20050 (grub_fs_register): Removed.
20051 (grub_fs_unregister): Likewise.
20052 (grub_fs_iterate): Likewise.
20053 * kern/handler.c: Removed.
20054 * kern/list.c (grub_list_pop): Removed.
20055 (grub_list_iterate): Likewise.
20056 (grub_list_insert): Likewise.
20057 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20058 (grub_prio_list_insert): Don't use grub_list_insert.
20059 * kern/main.c (grub_register_rescue_parser): Don't call
20060 grub_register_rescue_parser.
20061 * kern/parser.c (grub_parser_class): Removed.
20062 (grub_parser_execute): Use grub_rescue_parse_line.
20063 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20064 (grub_rescue_parser): Removed.
20065 (grub_register_rescue_parser): Likewise.
20066 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20067 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20068 (grub_auth_check_authentication): Likewise.
20069 * normal/completion.c (iterate_command): Removed.
20070 (grub_normal_do_completion): Use FOR_COMMANDS.
20071 * normal/handler.c: Removed.
20072 * normal/main.c (read_config_file): Remove parser changing.
20073 (grub_normal_execute): Don't call read_handler_list.
20074 (grub_normal_read_line_real): Statically allocate prompt.
20075 (grub_cmdline_run): Use grub_normal_parse_line.
20076 (GRUB_MOD_FINI): Don't call free_handler_list.
20077 * normal/menu_entry.c (run): Likewise.
20078 * script/function.c (grub_script_function_list): Make global.
20079 (grub_script_function_iterate): Removed.
20080 * script/main.c (grub_normal_parse_line): Make global.
20081 (grub_sh_parser): Removed.
20082 (GRUB_MOD_INIT): Likewise.
20083 (GRUB_MOD_FINI): Likewise.
20084 * tests/lib/functional_test.c (grub_functional_test): Use
20086 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20087 (grub_test_run): Use FOR_LIST_ELEMENTS.
20088 * tests/lib/unit_test.c (main): Likewise.
20089 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20091 * util/grub-fstest.c (grub_term_input_class): Removed.
20092 (grub_term_output_class): Likewise.
20093 * util/grub-probe.c: Likewise.
20094 * util/i386/pc/grub-setup.c: Likewise.
20095 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20096 * util/grub-script-check.c (main): Don't call grub_init_all and
20098 * video/video.c (grub_video_adapter_list): Make global.
20099 (grub_video_register): Removed.
20100 (grub_video_unregister): Likewise.
20101 (grub_video_iterate): Likewise.
20103 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20105 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20106 reported by Henrique Ferreiro.
20108 2010-06-09 Robert Millan <rmh@gnu.org>
20110 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20111 ones, when both are available.
20113 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20115 Make --version uniform and avoid hard-coded program name.
20117 * util/grub-mkimage.c (main): Use `program_name' instead of
20119 * util/i386/pc/grub-setup.c (main): Likewise.
20120 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20121 * util/grub-install.in: Save the basename of $0 in $self, and use the
20122 latter in informational messages. Use the same format for --version
20123 as the binary programs.
20124 * util/grub-mkconfig.in: Likewise.
20125 * util/grub-mkrescue.in: Likewise.
20126 * util/grub-reboot.in: Likewise.
20127 * util/grub-set-default.in: Likewise.
20128 * util/i386/efi/grub-install.in: Likewise.
20129 * util/ieee1275/grub-install.in: Likewise.
20130 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20132 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20134 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20135 embedding area. Use <= instead of == when checking for non-emptiness.
20137 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20139 * configure.ac: Add `.' to the directories searched for unifont.
20141 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20143 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20146 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20148 * docs/grub.texi (History): Expand to cover GRUB 2.
20149 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20150 commands, not `terminal'.
20151 (serial): Likewise.
20152 (terminal_input): New section.
20153 (terminal_output): New section.
20154 (uppermem): New section (stub).
20155 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20157 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20159 * docs/grub.texi (Security): Menu entries are unrestricted by
20160 default, not restricted to superusers as I had previously thought.
20161 Reword to account for this.
20163 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20165 * kern/emu/misc.c (device_mapper_null_log): New function.
20166 (grub_device_mapper_supported): New function.
20167 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20169 * kern/emu/hostdisk.c (find_partition_start): Check whether
20170 device-mapper is supported before trying to use it.
20171 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20173 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20175 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20176 (File name syntax): Likewise.
20177 (help): --all is no longer supported in GRUB 2. Be more precise
20178 about pattern matching.
20180 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20182 * normal/completion.c (grub_normal_do_completion): When completing
20183 arguments to "set" and the current word contains an equals sign,
20184 skip to after the equals sign before starting completion.
20186 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20188 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20190 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20192 * docs/grub.texi (Network): New section.
20193 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20194 `(nd)' as in GRUB Legacy.
20195 (pxe_unload): New section.
20197 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20199 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20200 in the rescue shell, so recommend using `set' instead. Thanks,
20203 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20205 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20206 (password): New section.
20207 (password_pbkdf2): New section.
20208 (search): New section.
20209 (Security): New section.
20210 (Troubleshooting): New section, currently very incomplete.
20211 (Invoking grub-mkpasswd-pbkdf2): New section.
20212 (Internals): New section, currently very incomplete.
20214 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20216 * util/grub.d/00_header.in: Add some more quoting (of
20217 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20219 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20221 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20223 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20224 to `count', fixing variable shadowing that broke the -c option.
20226 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20228 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20229 in case they contain spaces.
20231 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20233 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20234 "part_" to partmap module names, in line with grub-install.
20235 Reported by: Jindřich Makovička (Debian bug #584426).
20237 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20239 * util/grub-mkimage.c: Make target-related error messages slightly
20240 more helpful; -O talks about "format". Explicitly point to the use
20241 of -O if no target is specified.
20242 Reported by: Didier Raboud (Debian bug #584415).
20244 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20246 * INSTALL: Document several build requirements for optional features
20247 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20249 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20251 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20252 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20253 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20255 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20257 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20258 Thanks to Jordan Uggla for spotting this.
20260 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20262 Finally make USB usable.
20264 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20265 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20266 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20267 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20268 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20269 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20270 (GRUB_OHCI_FSMPS): Likewise.
20271 (GRUB_OHCI_PERIODIC_START): Likewise.
20272 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20273 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20274 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20275 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20276 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20277 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20278 (grub_ohci_transaction): Likewise.
20279 (grub_ohci_transfer): Improve condition detection algorithms.
20280 Handle toggle property. Program the transactions correctly.
20281 Improve error handling. Various important fixups.
20282 (grub_ohci_portstatus): Put register writes in right order.
20283 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20284 (grub_uhci_transfer): Don't show "failed" message on success.
20285 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20287 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20288 determine its size.
20289 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20290 before initialization is completed. Use IN direction for empty
20291 transfers. Use last_trans and compute toggle.
20292 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20293 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20294 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20295 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20296 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20297 (grub_usb_device): Increase toggle to 256.
20298 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20299 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20300 GRUB_USBMS_SUBCLASS_SFF8070.
20301 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20302 (grub_scsi_inquiry): New member page and alloc_length.
20303 (grub_scsi_request_sense): New structure.
20304 (grub_scsi_request_sense_data): Likewise.
20305 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20307 * disk/scsi.c (grub_scsi_request_sense): New function.
20308 (grub_scsi_test_unit_ready): Likewise.
20309 (grub_scsi_inquiry): Fill new fields.
20310 (grub_scsi_read_capacity): Likewise.
20311 (grub_scsi_read10): Add request sense at the end.
20312 (grub_scsi_read12): Likewise.
20313 (grub_scsi_write10): Likewise.
20314 (grub_scsi_write12): Likewise.
20315 (grub_scsi_open): Add Test Unit Ready.
20316 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20317 Support additional subclasses. Con't clear halt yet. Activate the
20318 proper config. Calculate LUNs correctly.
20319 (grub_usbms_transfer): Various important fixups.
20321 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20323 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20324 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20325 (grub_ohci_fini_hw): New function.
20326 (grub_ohci_restore_hw): Likewise.
20327 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20328 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20329 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20331 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20333 Dedicated DMA allocations.
20335 * bus/pci.c (grub_memalign_dma32): New function
20336 (grub_dma_free): Likewise.
20337 (grub_dma_get_virt): Likewise.
20338 (grub_dma_get_phys): Likewise.
20339 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20340 (grub_ohci_pci_iter): Use dma32_alloc.
20341 (grub_ohci_transfer): Likewise.
20342 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20343 (grub_usb_bulk_readwrite): Likewise.
20344 * include/grub/pci.h: Add declarations.
20346 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20350 * bus/cs5536.c: New file.
20351 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20352 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20353 (cs5536_mod_SOURCES): New variable.
20354 (cs5536_mod_CFLAGS): Likewise.
20355 (cs5536_mod_LDFLAGS): Likewise.
20356 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20358 (kernel_img_SOURCES): Add bus/cs5536.c.
20359 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20361 (usb_mod_SOURCES): New variable.
20362 (usb_mod_CFLAGS): New variable.
20363 (usb_mod_LDFLAGS): New variable.
20364 (usbtest_mod_SOURCES): New variable.
20365 (usbtest_mod_CFLAGS): New variable.
20366 (usbtest_mod_LDFLAGS): New variable.
20367 (ohci_mod_SOURCES): New variable.
20368 (ohci_mod_CFLAGS): New variable.
20369 (ohci_mod_LDFLAGS): New variable.
20370 (usbms_mod_SOURCES): New variable.
20371 (usbms_mod_CFLAGS): New variable.
20372 (usbms_mod_LDFLAGS): New variable.
20373 (usb_keyboard_mod_SOURCES): New variable.
20374 (usb_keyboard_mod_CFLAGS): New variable.
20375 (usb_keyboard_mod_LDFLAGS): New variable.
20376 * include/grub/smbus.h: New file.
20377 * include/grub/cs5536.h: New file.
20379 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20381 * util/grub.d/00_header.in: Add safety check to make sure that
20382 ${locale_dir} exists before trying to probe it.
20384 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20386 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20387 per the GNU Coding Standards; this is now too obscure to be worth
20390 (chainloader): Remove cross-reference to `SCO UnixWare'.
20392 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20394 * docs/grub.texi (Chain-loading): New section.
20395 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20396 adjusted for GRUB 2.
20397 (SCO UnixWare): Likewise.
20399 (chainloader): Add reference to `Block list syntax'.
20400 (drivemap): New section.
20401 (parttool): New section.
20403 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20405 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20407 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20408 (Installing GRUB using grub-install): Remove reference to the grub
20409 shell; mention `grub-mkimage' and `grub-setup' instead.
20410 (Invoking grub-install): Likewise.
20411 (Interface): Add reference to `Menu entry editor'.
20412 (serial): Remove `--device' option.
20414 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20416 * docs/grub.texi (Configuration): New section, documenting
20417 configuration file generation using grub-mkconfig. I've left a slot
20418 for documenting the full shell scripting format but have not yet
20419 started on writing that up.
20420 (Invoking grub-mkconfig): New section.
20422 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20424 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20425 (GNU GRUB manual): Likewise.
20426 (General commands): Update description of `terminfo' for GRUB 2.
20428 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20430 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20431 (GRUB_MOD_INIT): Fix capitalisation.
20432 * docs/grub.texi (Command-line and menu entry commands): Document
20433 gettext and gptsync commands.
20435 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20437 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20438 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20440 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20442 Add btrfs probing support, currently only in the single-device case.
20444 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20446 (grub_guess_root_device): Call find_root_device_from_mountinfo
20447 before looking in /dev.
20449 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20451 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20452 GRUB_DISK_SIZE_UNKNOWN.
20453 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20455 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20457 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20458 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20459 corrupted or not synced properly.
20461 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20463 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20464 Reported by: Seth Goldberg.
20466 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20468 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20470 Reported by: Seth Goldberg.
20472 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20474 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20475 Reported by: Seth Goldberg.
20477 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20479 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20480 64-bit address as signed on MIPS.
20482 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20484 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20485 to the empty string.
20487 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20489 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20491 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20492 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20493 * kern/misc.c (__enable_execute_stack): Disable on
20496 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20498 Make grub-probe work with symbolic links under /dev/mapper as well
20499 as with real block devices. The Linux world seems to be (at best)
20500 in transition here, and GRUB shouldn't get caught in the middle.
20502 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20505 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20507 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20508 input files (in which case exit zero).
20510 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20512 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20513 return NULL for various reasons even if it has a maximum-length
20514 buffer: for example, there might be a symlink loop, or the path
20515 might exceed PATH_MAX. If this happens, return NULL.
20517 2010-05-27 Robert Millan <rmh@gnu.org>
20519 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20520 partmap module to handle cross-partmap setups.
20521 Reported by Orestes Mas. Gràcies!
20523 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20525 * util/grub-mkrescue.in: Initialise override_dir rather than
20526 assuming that it's unset or empty in the environment.
20528 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20530 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20531 variable index into p_index to suppress a warning with -Wshadow.
20533 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20535 * INSTALL: Added flex >= 2.5.35 requirement.
20537 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20539 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20541 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20545 * commands/i386/cmostest.c: New file.
20546 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20547 (cmostest_mod_SOURCES): New variable.
20548 (cmostest_mod_CFLAGS): Likewise.
20549 (cmostest_mod_LDFLAGS): Likewise.
20550 * conf/i386-pc.rmk: Likewise.
20551 * docs/grub.texi (Vendor power-on keys): New section.
20552 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20553 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20554 and GRUB_BUTTON_CMOS_ADDRESS.
20555 * util/grub.d/00_header.in: Handle powering-on by separate button.
20557 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20559 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20560 Removed drawing_scrollbar argument. All users updated
20562 Reported by Jo Shields
20564 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20566 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20567 buffer since gfxterm handles double repaint.
20569 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20571 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20572 * term/gfxterm.c (real_scroll): Likewise.
20574 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20576 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20577 before calling BIOS.
20579 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20581 * include/grub/i18n.h: Always enable grub_gettext.
20583 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20585 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20586 partition naming style.
20588 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20590 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20591 not the first option.
20593 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20595 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20597 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20599 * util/misc.c: Move inclusion of <limits.h> to ...
20600 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20602 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20604 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20605 Fix merge error in NetBSD code.
20606 (find_partition_start) [__NetBSD__]: Likewise.
20608 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20610 Fix grub-mkrescue usage unit testing.
20612 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20614 2010-05-18 Christian Franke <franke@computer.org>
20616 * util/grub.d/10_windows.in: Use path names instead of
20617 drive letters to prevent warning from Cygwin 1.7.
20618 Add drivemap command to menuentry if needed.
20620 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20622 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20623 gnumach and gnumach.gz.
20625 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20627 * include/grub/i18n.h (gettext): Inline instead of using #define.
20628 (grub_gettext): Likewise.
20631 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20633 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20634 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20635 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20636 (main): Add a slash after pkglibdirroot.
20638 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20640 * util/grub-install.in: Add missing "in" keyword.
20642 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20644 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20645 Reported by: Seth Goldberg.
20647 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20649 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20651 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20653 * configure.ac: Check for Linux device-mapper support.
20655 * util/hostdisk.c (device_is_mapped): New function.
20656 (find_partition_start): New function, partly broken out from
20657 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20658 device-mapper support added.
20659 (linux_find_partition): Use find_partition_start.
20660 (convert_system_partition_to_system_disk): Add `st' argument.
20661 Support Linux /dev/mapper/* devices if device-mapper support is
20662 available; only DM-RAID devices are understood at present.
20663 (find_system_device): Add `st' argument. Pass it to
20664 convert_system_partition_to_system_disk.
20665 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20666 find_system_device and convert_system_partition_to_system_disk. Use
20667 find_partition_start.
20669 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20670 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20671 * util/deviceiter.c [__linux__]: Define MINOR.
20672 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20673 * util/mkdevicemap.c (grub_putchar): New function.
20674 (grub_getkey): New function.
20675 (grub_refresh): New function.
20676 (main): Set debug=all if -v -v is used.
20678 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20680 Fix build with non-GNU libcs.
20682 * util/misc.c (canonicalize_file_name): Move to ...
20683 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20684 grub_make_system_path_relative_to_its_root.
20686 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20688 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20689 we handle finding grub-mkimage. Default to finding grub-mkimage in
20690 ${bindir} with program_transform_name applied, and provide a
20691 --grub-mkimage option to override this.
20693 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20695 Remove grub-mkisofs.
20697 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20698 (grub_mkisofs_SOURCES): Removed.
20699 (grub_mkisofs_CFLAGS): Removed.
20700 * util/mkisofs/defaults.h: Removed.
20701 * util/mkisofs/eltorito.c: Likewise.
20702 * util/mkisofs/exclude.h: Likewise.
20703 * util/mkisofs/hash.c: Likewise.
20704 * util/mkisofs/include/: Likewise.
20705 * util/mkisofs/include/fctldefs.h: Likewise.
20706 * util/mkisofs/include/mconfig.h: Likewise.
20707 * util/mkisofs/include/prototyp.h: Likewise.
20708 * util/mkisofs/include/statdefs.h: Likewise.
20709 * util/mkisofs/iso9660.h: Likewise.
20710 * util/mkisofs/joliet.c: Likewise.
20711 * util/mkisofs/match.c: Likewise.
20712 * util/mkisofs/match.h: Likewise.
20713 * util/mkisofs/mkisofs.c: Likewise.
20714 * util/mkisofs/mkisofs.h: Likewise.
20715 * util/mkisofs/msdos_partition.h: Likewise.
20716 * util/mkisofs/multi.c: Likewise.
20717 * util/mkisofs/name.c: Likewise.
20718 * util/mkisofs/rock.c: Likewise.
20719 * util/mkisofs/tree.c: Likewise.
20720 * util/mkisofs/write.c: Likewise.
20722 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20724 Unify grub-mkimage accross platforms.
20726 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
20727 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
20728 (grub_mkelfimage_SOURCES): Removed.
20729 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
20730 (util/grub-mkimage.c_DEPENDENCIES): .. this.
20731 (bin_UTILITIES): Add grub-mkimage.
20732 (grub_mkimage_SOURCES): New variable.
20733 (kernel_img_HEADERS): Remove machine/kernel.h.
20734 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
20735 (pkglib_PROGRAMS): Add kernel.img.
20736 (kernel_img_HEADERS): Add machine/kernel.h.
20737 (kernel_img_FORMAT): Removed.
20738 (bin_UTILITIES): Remove grub-mkimage.
20739 (grub_mkimage_SOURCES): Removed.
20740 (grub_mkimage_CFLAGS): Likewise.
20741 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20742 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
20743 (pkglib_PROGRAMS): Add kernel.img.
20744 (bin_UTILITIES): Remove grub-mkimage.
20745 (grub_mkimage_SOURCES): Removed.
20746 (grub_mkimage_CFLAGS): Likewise.
20747 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20748 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
20749 (pkglib_PROGRAMS): Add kernel.img.
20750 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
20751 (pkglib_PROGRAMS): Add kernel.img.
20752 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
20753 (grub_mkimage_SOURCES): Removed.
20754 (grub_mkimage_CFLAGS): Likewise.
20755 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20756 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
20757 (pkglib_PROGRAMS): Add kernel.img.
20758 (bin_UTILITIES): Remove grub-mkimage.
20759 (grub_mkimage_SOURCES): Removed.
20760 (grub_mkimage_CFLAGS): Likewise.
20761 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20762 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
20763 (grub_mkimage_SOURCES): Removed.
20764 (grub_mkimage_CFLAGS): Likewise.
20765 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20766 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
20767 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
20768 (grub_pe32_optional_header): ... this.
20769 (grub_pe64_optional_header): ... and this. All users updated.
20770 (GRUB_PE32_PE32_MAGIC): Split into ..
20771 (GRUB_PE32_PE32_MAGIC): .. this.
20772 (GRUB_PE32_PE64_MAGIC): .. and this.
20773 (GRUB_PE32_SIGNATURE_SIZE): New definition.
20774 * include/grub/elf.h (PT_GNU_STACK): New definition.
20775 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
20776 * include/grub/i386/efi/kernel.h: Likewise.
20777 * include/grub/i386/kernel.h: Likewise.
20778 * include/grub/i386/pc/kernel.h: Likewise.
20779 * include/grub/i386/qemu/boot.h: Likewise.
20780 * include/grub/mips/kernel.h: Likewise.
20781 * include/grub/mips/qemu-mips/kernel.h: Likewise.
20782 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20783 * include/grub/powerpc/kernel.h: Likewise.
20784 * include/grub/sparc64/ieee1275/boot.h: Likewise.
20785 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20786 * include/grub/sparc64/kernel.h: Likewise.
20787 * include/grub/x86_64/efi/kernel.h: Likewise.
20788 * include/grub/x86_64/kernel.h: Likewise.
20789 * include/grub/offsets.h: New file.
20790 * include/grub/kernel.h (grub_module_info): Split into ...
20791 (grub_module_info32): ... this.
20792 (grub_module_info64): ... and this.
20793 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
20794 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
20795 (grub_boot_blocklist): Moved from here ...
20796 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
20797 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
20798 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
20799 * include/grub/types.h (grub_target_to_host16): Removed.
20800 (grub_target_to_host32): Likewise.
20801 (grub_target_to_host64): Likewise.
20802 (grub_host_to_target16): Likewise.
20803 (grub_host_to_target32): Likewise.
20804 (grub_host_to_target64): Likewise.
20805 (grub_host_to_target_addr): Likewise.
20807 Support grub-mkrescue for efi, coreboot and qemu.
20809 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
20810 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
20811 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
20812 * util/grub-mkrawimage.c: Moved from here ...
20813 * util/grub-mkimage.c: ... here. All users updated.
20814 (ALIGN_ADDR): Use image_target.
20815 (TARGET_NO_FIELD): New const.
20816 (image_target_desc): New type.
20817 (image_targets): New array.
20818 (grub_target_to_host64): Use image_target.
20819 (grub_target_to_host32): Likewise.
20820 (grub_target_to_host16): Likewise.
20821 (grub_host_to_target64): Likewise.
20822 (grub_host_to_target32): Likewise.
20823 (grub_host_to_target16): Likewise.
20824 (grub_host_to_target_addr): Likewise.
20825 (generate_image): Handle multiimage.
20826 (main): Require -O parameter. All users updated.
20827 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
20828 util/efi/grub-mkimage.c
20829 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
20830 New option --rom-directory.
20832 * util/i386/efi/grub-mkimage.c: Removed.
20833 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
20834 (grub_target_to_host32): Likewise.
20835 (grub_target_to_host64): Likewise.
20836 (grub_host_to_target16): Likewise.
20837 (grub_host_to_target32): Likewise.
20838 (grub_host_to_target64): Likewise.
20839 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
20840 (grub_target_to_host32): Likewise.
20841 (grub_target_to_host64): Likewise.
20842 (grub_host_to_target16): Likewise.
20843 (grub_host_to_target32): Likewise.
20844 (grub_host_to_target64): Likewise.
20846 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
20848 Source tree is reorganized for emu build.
20850 * include/grub/util/console.h: Move from here...
20851 * include/grub/emu/console.h: ...to here.
20852 * include/grub/util/getroot.h: Move from here...
20853 * include/grub/emu/getroot.h: ...to here.
20854 * include/grub/util/hostdisk.h: Move from here...
20855 * include/grub/emu/hostdisk.h: ...to here.
20856 * util/console.c: Move from here...
20857 * kern/emu/console.c: ...to here.
20858 * util/getroot.c: Move from here...
20859 * kern/emu/getroot.c: ...to here.
20860 * util/grub-emu.c: Move from here...
20861 * kern/emu/main.c: ...to here.
20862 * util/hostdisk.c: Move from here...
20863 * kern/emu/hostdisk.c: ...to here.
20864 * util/hostfs.c: Move from here...
20865 * kern/emu/hostfs.c: ...to here.
20866 * util/mm.c: Move from here...
20867 * kern/emu/mm.c: ...to here.
20868 * util/pci.c: Move from here...
20869 * bus/emu/pci.c: ...to here.
20870 * util/sdl.c: Move from here...
20871 * video/emu/sdl.c: ...to here.
20872 * util/time.c: Move from here...
20873 * kern/emu/time.c: ...to here.
20874 * util/usb.c: Move from here...
20875 * bus/usb/emu/usb.c: ...to here.
20877 * include/grub/emu/misc.h: New header for grub-emu functions.
20878 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
20880 * conf/any-emu.rmk: Rule updates for above renames.
20881 * conf/common.rmk: Likewise.
20882 * conf/i386-pc.rmk: Likewise.
20883 * conf/i386-qemu.rmk: Likewise.
20884 * conf/mips.rmk: Likewise.
20885 * conf/sparc64-ieee1275.rmk: Likewise.
20886 * conf/x86-efi.rmk: Likewise.
20888 * disk/lvm.h: #include updates for above renames.
20889 * util/grub-mkrelpath.c: Likewise.
20890 * util/grub-probe.c: Likewise.
20891 * util/i386/pc/grub-setup.c: Likewise.
20892 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20893 * kern/emu/console.c: Likewise.
20894 * kern/emu/getroot.c: Likewise.
20895 * kern/emu/hostdisk.c: Likewise.
20896 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
20898 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
20899 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
20900 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
20901 * util/misc.c: Remove grub-emu functions.
20903 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20906 Reported by: Thorsten Grützmacher.
20908 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
20910 (circprog_set_property): Register and unregister timeout hook.
20911 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
20912 (label_destroy): Free template. and unregister hook.
20913 (label_set_state): New function.
20914 (label_set_property): Handle templates and hooks.
20915 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
20917 (progress_bar_set_property): Register and unregister timeout hook.
20918 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
20919 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
20920 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
20921 (update_timeout_visit): Removed.
20922 (update_timeouts): New function.
20923 (redraw_timeouts): Likewise.
20924 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
20925 (grub_gfxmenu_clear_timeout): Likewise.
20926 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
20927 (grub_gfxmenu_timeout_notify): Likewise.
20928 (grub_gfxmenu_timeout_notifications): New external variable.
20929 (grub_gfxmenu_timeout_register): New function.
20930 (grub_gfxmenu_timeout_unregister): Likewise.
20932 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20934 Transform (broken) vga terminal into (working) vga video driver.
20936 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
20937 video/i386/pc/vga.c.
20938 * include/grub/video.h (grub_video_driver_id):
20939 Add GRUB_VIDEO_DRIVER_VGA.
20940 * term/i386/pc/vga.c: Renamed to ...
20941 * video/i386/pc/vga.c: ...this
20942 (DEBUG_VGA): Removed.
20943 (CHAR_WIDTH): Likewise.
20944 (CHAR_HEIGHT): Likewise.
20945 (TEXT_WIDTH): Likewise.
20946 (TEXT_HEIGHT): Likewise.
20947 (DEFAULT_FG_COLOR): Likewise.
20948 (DEFAULT_BG_COLOR): Likewise.
20949 (colored_char): Likewise.
20952 (cursor_state): Likewise.
20953 (fg_color): Likewise.
20954 (bg_color): Likewise.
20955 (text_buf): Likewise.
20958 (framebuffer): New variable.
20959 (set_read_map): Disabled.
20960 (setup): New variable.
20961 (is_target): Likewise.
20962 (grub_vga_mod_init): Likewise.
20963 (grub_vga_mod_fini): Likewise.
20964 (check_vga_mem): Likewise.
20965 (write_char): Likewise.
20966 (write_cursor): Likewise.
20967 (scroll_up): Likewise.
20968 (grub_vga_putchar): Likewise.
20969 (grub_vga_getcharwidth): Likewise.
20970 (grub_vga_getwh): Likewise.
20971 (grub_vga_getxy): Likewise.
20972 (grub_vga_gotoxy): Likewise.
20973 (grub_vga_cls): Likewise.
20974 (grub_vga_setcolorstate): Likewise.
20975 (grub_vga_setcursor): Likewise.
20976 (grub_video_vga_init): New function.
20977 (grub_video_vga_setup): Likewise.
20978 (grub_video_vga_fini): Likewise.
20979 (update_target): Likewise.
20980 (grub_video_vga_blit_bitmap): Likewise.
20981 (grub_video_vga_blit_render_target): Likewise.
20982 (grub_video_vga_set_active_render_target): Likewise.
20983 (grub_video_vga_get_active_render_target): Likewise.
20984 (grub_video_vga_swap_buffers): Likewise.
20985 (grub_video_vga_set_palette): Likewise.
20986 (grub_video_vga_get_info_and_fini): Likewise.
20987 (grub_vga_term): Removed.
20988 (grub_video_vga_adapter): New variable.
20989 (GRUB_MOD_INIT): Register a video driver instead of terminal.
20990 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
20992 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20994 * video/readers/jpeg.c: Indented.
20996 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20998 Various jpeg cleanups.
21000 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21001 (grub_jpeg_decode_quan_table): Use sizeof.
21002 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21004 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21006 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21007 tables. Ignore non-last ac bit.
21008 (grub_jpeg_decode_quan_table): Likewise.
21010 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21012 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21013 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21014 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21015 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21016 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21017 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21019 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21021 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21024 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21026 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21028 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21030 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21033 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21035 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21038 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21040 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21043 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21045 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21047 2010-05-01 Christian Franke <franke@computer.org>
21049 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21050 Remove broken Cygwin path conversion.
21051 * util/misc.c: [__CYGWIN__] Add include and define.
21052 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21054 (make_system_path_relative_to_its_root): Simplify loop, replace early
21056 [__CYGWIN__] Add conversion to win32 path.
21057 Include "/" case in trailing slash removal.
21059 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21061 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21062 Reported by: Seth Goldberg
21064 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21066 * commands/help.c (grub_cmd_help): Fix a typo.
21067 Reported by: Seth Goldberg
21069 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21071 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21073 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21074 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21075 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21076 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21077 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21078 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21079 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21080 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21081 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21082 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21083 * normal/context.c (GRUB_MOD_INIT): Likewise.
21084 * normal/main.c (GRUB_MOD_INIT): Likewise.
21085 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21086 * term/serial.c (GRUB_MOD_INIT): Likewise.
21087 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21089 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21091 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21094 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21096 * commands/iorw.c: New file.
21097 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21098 (iorw_mod_SOURCES): New variable.
21099 (iorw_mod_CFLAGS): Likewise.
21100 (iorw_mod_LDFLAGS): Likewise.
21102 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21106 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21107 * normal/main.c (hotkey_aliases): New variable.
21108 (grub_normal_add_menu_entry): Parse "--hotkey".
21109 * normal/menu_text.c (run_menu): Handle hotkeys.
21111 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21113 * kern/i386/coreboot/init.c (grub_machine_init): Call
21114 grub_machine_mmap_init on qemu.
21116 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21118 * boot/i386/qemu/boot.S: Add a missing .code16.
21120 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21122 Use LBIO on coreboot.
21124 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21125 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21126 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21128 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21129 grub_machine_mmap_init on coreboot.
21130 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21131 GRUB_LINUXBIOS_MEMBER_LINK.
21132 (grub_machine_mmap_iterate): Fix declaration.
21133 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21135 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21137 Split coreboot and multiboot ports.
21139 * conf/i386-multiboot.rmk: New file.
21140 * configure.ac: Add multiboot port.
21141 * include/grub/i386/multiboot/boot.h: New file.
21142 * include/grub/i386/multiboot/console.h: Likewise.
21143 * include/grub/i386/multiboot/init.h: Likewise.
21144 * include/grub/i386/multiboot/kernel.h: Likewise.
21145 * include/grub/i386/multiboot/loader.h: Likewise.
21146 * include/grub/i386/multiboot/memory.h: Likewise.
21147 * include/grub/i386/multiboot/serial.h: Likewise.
21148 * include/grub/i386/multiboot/time.h: Likewise.
21149 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21150 * loader/multiboot.c: Likewise.
21151 * loader/multiboot_mbi2.c: Likewise.
21152 * util/grub-mkrescue.in: Generate multiboot rescue.
21154 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21156 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21158 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21160 Merge handling of input and output terminals. Fix a hang.
21162 * commands/terminal.c (abstract_terminal): New struct.
21163 (handle_command): New function. Based on grub_cmd_terminal_input.
21164 (grub_cmd_terminal_input): Use handle_command.
21165 (grub_cmd_terminal_output): Use handle_command.
21167 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21169 Fix comment handling.
21171 * tests/grub_script_comments.in: New testcase.
21172 * conf/tests.rmk: Rules for new testcase.
21173 * script/yylex.l: Updated flex rules.
21175 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21177 * docs/grub.texi (play): Document that zero pitches produce rests.
21178 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21181 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21183 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21186 2010-04-26 Christian Franke <franke@computer.org>
21188 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21189 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21190 (grub_get_prefix): Remove function.
21191 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21192 make_system_path_relative_to_its_root ().
21193 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21195 2010-04-24 Christian Franke <franke@computer.org>
21197 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21198 (kernel_img_LDFLAGS): Remove -static-libgcc.
21200 2010-04-24 Christian Franke <franke@computer.org>
21202 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21203 and CHECK_END_SYMBOL if grub-emu is built.
21204 Unset TARGET_OBJ2ELF if grub-emu is built
21205 without module support.
21207 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21211 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21212 (grub_fstest_SOURCES): Likewise.
21213 (pkglib_MODULES): Add nilfs2.mod.
21214 (nilfs2_mod_SOURCES): New variable.
21215 (nilfs2_mod_CFLAGS): Likewise.
21216 (nilfs2_mod_LDFLAGS): Likewise.
21217 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21218 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21219 * fs/nilfs2.c: New file.
21221 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21223 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21226 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21228 Add grub-mkconfig support for NetBSD.
21230 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21231 * util/grub-mkconfig.in: export new NetBSD specific variables.
21232 * po/POTFILES-shell: added 10_netbsd.in.
21233 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21235 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21237 Fix emu build with grub-emu-pci and grub-emu-modules.
21239 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21241 * include/grub/libpciaccess.h: New file.
21242 * conf/any-emu.rmk: Update kernel headers for emu build.
21244 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21246 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21248 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21250 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21252 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21254 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21255 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21256 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21257 util/ieee1275/ofpath.c.
21258 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21259 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21260 * include/grub/sparc64/ieee1275/boot.h
21261 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21262 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21263 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21264 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21266 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21267 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21268 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21271 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21273 * util/grub-mkconfig.in: Corrected two == equality tests.
21274 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21275 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21276 expect a number appended to it.
21277 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21278 expects a number appended to it.
21280 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21282 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21284 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21286 * util/hostdisk.c (make_device_name): Change to new partition naming.
21288 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21290 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21292 2010-04-17 Christian Franke <franke@computer.org>
21294 * Makefile.in: Add missing localedir setting.
21296 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21298 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21299 mistake in r2156. Noticed by Anthony Fok.
21301 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21303 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21305 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21307 Fix a spurious, uninitialized variable warning.
21309 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21310 Initialize variable, shdr.
21311 (grub_freebsd_load_elfmodule): Likewise.
21312 (grub_freebsd_load_elf_meta): Likewise.
21314 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21316 Fix for escaped dollar in double quoted strings.
21318 * script/yylex.l: Updated flex rules.
21319 * conf/tests.rmk: Rule for new testcase.
21320 * tests/grub_script_dollar.in: New testcase.
21322 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21323 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21325 Enclose all translated strings in grub.cfg in single quotes, and
21326 escape them appropriately (Ubuntu bug #552921).
21328 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21329 * util/grub.d/10_hurd.in: Use it.
21330 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21331 * util/grub.d/10_linux.in (linux_entry): Likewise.
21333 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21335 Fix cygwin compilation.
21337 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21338 * include/grub/misc.h (__register_frame_info)
21339 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21340 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21341 * kern/misc.c (__register_frame_info)
21342 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21343 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21345 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21347 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21349 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21351 Unify libgcc processing.
21353 * Makefile.in (kernel_img_LDFLAGS): New variable.
21354 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21355 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21357 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21358 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21359 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21360 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21361 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21362 overwriting. Remove -lgcc and -static-libgcc
21363 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21364 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21365 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21366 (kernel_img_LDFLAGS): Append instead of overwriting.
21367 Remove -lgcc and -static-libgcc
21368 * conf/sparc64-ieee1275.rmk: Likewise.
21369 * include/grub/powerpc/libgcc.h: Move to ...
21370 * include/grub/libgcc.h: .. this.
21371 * include/grub/libgcc.h: Don't export most of the function on x86.
21372 (__bswapsi2): New export.
21373 (__bswapdi2): Likewise.
21374 * include/grub/mips/libgcc.h: Removed.
21375 * include/grub/sparc64/libgcc.h: Likewise.
21377 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21379 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21380 disk_info_msg (conflicts with gettexting into languages with cases).
21382 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21384 Add grub-probe support for NetBSD.
21386 * util/getroot.c (find_root_device): Convert block device to
21387 character device on NetBSD.
21388 * util/probe.c (probe): Require character device on NetBSD.
21389 * util/hostdisk.c: NetBSD specific headers.
21390 (configure_device_driver): new function to tune device driver
21391 parameters (currently only for NetBSD floppy driver).
21392 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21393 via disklabel ioctl).
21394 (open_device): call configure_device_driver on NetBSD.
21395 (convert_system_partition_to_system_disk): NetBSD specific code.
21396 (device_is_wholedisk): Likewise.
21397 (grub_util_biosdisk_get_grub_dev): Likewise.
21398 (make_device_name): Fixed a typo in bsd_part_str.
21399 * configure.ac: check for opendisk() and getrawpartition() on
21400 NetBSD and set LIBUTIL.
21401 * Makefile.in: add LIBUTIL to LIBS.
21403 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21407 * util/grub-script-check.c: Better help message.
21409 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21413 * configure.ac: Flex version check.
21414 * conf/common.rmk: Add -Wno-error to sh.mod.
21415 * script/yylex.l: Remove all #pragma.
21417 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21419 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21421 Reported by: Seth Goldberg.
21423 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21425 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21426 Rename "module" to "module2".
21427 Reported by: Seth Goldberg.
21429 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21431 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21433 Reported by: Seth Goldberg.
21435 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21437 * lib/posix_wrap/locale.h: Add missing file.
21438 Reported by: Seth Goldberg.
21440 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21442 grub-emu module load support.
21444 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21445 NO_DYNAMIC_MODULES switched to this.
21446 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21447 (CFLAGS): Likewise.
21448 * conf/any-emu.rmk: Generate symlist.
21449 (kernel_img_HEADERS): Add util/datetime.h.
21450 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21451 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21452 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21453 kern/$(target_cpu)/cache.S.
21454 * configure.ac (grub-emu-modules): New option.
21455 * genmk.rb: Handle multiple source lists.
21456 * include/grub/sdl.h: New file.
21457 * include/grub/libusb.h: Likewise.
21458 * util/grub-emu.c (main): Hanle (host) root.
21459 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21460 GRUB_ERR_UNKNOWN_DEVICE.
21461 * util/misc.c: Move mm functions to ...
21462 * util/mm.c: ... here. All users updated.
21464 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21466 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21467 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21469 (maintainer-clean): Remove libgcrypt-grub.
21471 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21473 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21475 2010-04-09 EFI Coder <eficoder@hotmail.com>
21477 * normal/menu_text.c (print_message): Clean up the message and show
21478 the Fn information when on EFI
21479 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21481 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21483 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21485 * normal/crypto.c (read_crypto_list): Likewise.
21486 * normal/dyncmd.c (read_command_list): Likewise.
21487 * normal/term.c (read_terminal_list): Likewise.
21488 * normal/main.c (read_lists): Use explicit prefix.
21489 (read_lists_hook): Use read_lists.
21490 (grub_normal_execute): Likewise.
21492 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21494 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21495 Reported by: Thomas Schmitt.
21496 Add -no-emul-boot to grub-mkisofs parameters.
21498 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21500 * font/font.c: Indented.
21502 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21504 Elif support to GRUB script (by Deepak Vankadaru).
21506 * tests/grub_script_if.in: New testcase.
21507 * conf/tests.rmk: Rule for new testcase.
21508 * script/parser.y: Grammar rules for elif.
21510 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21512 While and until loops support to GRUB script.
21514 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21515 (grub_script_create_cmdwhile): New function prototype.
21516 (grub_script_execute_cmdwhile): New function prototype.
21517 * script/execute.c (grub_script_execute_cmdwhile): New function.
21518 * script/parser.y (command): New commands.
21519 (whilecmd): New grammar rule.
21520 (untilcmd): New grammar rule.
21521 * script/script.c (grub_script_create_cmdwhile): New function.
21522 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21525 * tests/grub_script_while1.in: New testcase.
21526 * conf/tests.rmk: Rule for new testcase.
21528 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21530 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21533 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21535 GRUB_BACKGROUND support.
21537 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21538 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21540 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21542 Load fonts and modules for gfxmenu in grub-mkconfig.
21543 Idea by: Mario Vazquez
21545 * util/grub.d/00_header.in: Load pf2 and image modules.
21547 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21549 grub-mkconfig multiple terminal support.
21551 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21552 * util/grub.d/00_header.in: Likewise.
21554 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21556 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21557 we use cd $(srcdir).
21559 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21561 * util/grub.d/10_linux.in: Only use the first word of
21562 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21563 spaces in GRUB_DISTRIBUTOR.
21564 * util/grub.d/10_kfreebsd.in: Likewise.
21565 * util/grub.d/10_hurd.in: Likewise.
21567 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21569 Fix unit testing framework for Qemu 0.12.
21571 * tests/util/grub-shell.in: Remove -serial stdio option.
21573 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21575 POSIX header file wrappers.
21577 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21579 * lib/posix_wrap/ctype.h: Likewise.
21580 * lib/posix_wrap/errno.h: Likewise.
21581 * lib/posix_wrap/langinfo.h: Likewise.
21582 * lib/posix_wrap/limits.h: Likewise.
21583 * lib/posix_wrap/localcharset.h: Likewise.
21584 * lib/posix_wrap/stdint.h: Likewise.
21585 * lib/posix_wrap/stdio.h: Likewise.
21586 * lib/posix_wrap/stdlib.h: Likewise.
21587 * lib/posix_wrap/string.h: Likewise.
21588 * lib/posix_wrap/sys/types.h: Likewise.
21589 * lib/posix_wrap/unistd.h: Likewise.
21590 * lib/posix_wrap/wchar.h: Likewise.
21591 * lib/posix_wrap/wctype.h: Likewise.
21592 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21593 (grub_script.yy.h): Likewise.
21594 * script/yylex.l: Remove POSIX emulation #defines.
21595 * Makefile.in (POSIX_CFLAGS): New variable.
21596 (GNULIB_UTIL_CFLAGS): Likewise.
21600 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21601 (regexp_mod_SOURCES): New variable.
21602 (regexp_mod_CFLAGS): Likewise.
21603 (regexp_mod_LDFLAGS): Likewise.
21604 * commands/regexp.c: New file.
21605 * gnulib/regcomp.c: New file. Imported from gnulib.
21606 * gnulib/regex.c: Likewise.
21607 * gnulib/regex_internal.c: Likewise.
21608 * gnulib/regex_internal.h: Likewise.
21609 * gnulib/regexec.c: Likewise.
21610 * gnulib/regex.h: Likewise.
21612 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21614 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21615 unsupported video mode types.
21617 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21619 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21621 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21623 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21624 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21626 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21628 Remove unused grub_vga_get_font.
21630 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21631 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21633 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21635 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21636 * include/grub/misc.h: Likewise.
21638 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21640 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21641 for which failure is fatal.
21643 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21645 * util/grub-install.in: Use mkdir -p to create grub directory.
21646 * util/i386/efi/grub-install.in: Likewise.
21647 * util/ieee1275/grub-install.in: Likewise.
21649 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21651 * Makefile.in (LEX): new variable.
21653 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21655 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21656 `=' and added double quotes on operands of this equality test.
21658 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21660 * Makefile.in (uninstall): Remove a leftover debug echo.
21661 Reported by: Grégoire Sutre
21663 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21665 MIPS multiboot2 support.
21667 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21668 (multiboot2_mod_SOURCES): New variable.
21669 (multiboot2_mod_CFLAGS): Likewise.
21670 (multiboot2_mod_LDFLAGS): Likewise.
21671 (multiboot2_mod_ASFLAGS): Likewise.
21672 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21674 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21675 (MULTIBOOT_MBI_REGISTER): Likewise.
21676 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21677 (MULTIBOOT_ELF32_MACHINE): Likewise.
21678 (MULTIBOOT_ELF64_MACHINE): Likewise.
21679 * include/grub/mips/multiboot.h: New file.
21680 * include/grub/video.h (grub_video_driver_id): New type
21681 GRUB_VIDEO_DRIVER_SM712.
21682 (grub_video_get_info_and_fini): Export.
21683 (grub_video_get_palette): Likewise.
21684 (grub_video_get_driver_id): Likewise.
21685 * include/multiboot2.h: Resynced with spec.
21686 * loader/i386/multiboot.c: Moved from here ...
21687 * loader/multiboot.c: ... here. All users updated.
21688 (grub_multiboot_boot): Use platform-specific macros.
21689 * loader/i386/multiboot_elfxx.c: Moved from here ...
21690 * loader/multiboot_elfxx.c: ... here. All users updated.
21691 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21692 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21693 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21695 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21697 Import gnulib argp module.
21699 * gnulib/argp-ba.c: New file.
21700 * gnulib/argp-eexst.c: Likewise.
21701 * gnulib/argp-fmtstream.c: Likewise.
21702 * gnulib/argp-fmtstream.h: Likewise.
21703 * gnulib/argp-fs-xinl.c: Likewise.
21704 * gnulib/argp-help.c: Likewise.
21705 * gnulib/argp-namefrob.h: Likewise.
21706 * gnulib/argp-parse.c: Likewise.
21707 * gnulib/argp-pin.c: Likewise.
21708 * gnulib/argp-pv.c: Likewise.
21709 * gnulib/argp-pvh.c: Likewise.
21710 * gnulib/argp-version-etc.c: Likewise.
21711 * gnulib/argp-version-etc.h: Likewise.
21712 * gnulib/argp-xinl.c: Likewise.
21713 * gnulib/argp.h: Likewise.
21715 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21717 * kern/device.c (grub_device_iterate): Clear errors after failed
21720 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21722 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
21723 returned by firmware.
21725 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
21727 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
21728 compilation on coreboot and qemu
21730 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21732 * include/multiboot2.h: Resync with spec.
21734 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21736 Multiboot2 tag support
21738 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
21739 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
21740 Remove loader/multiboot_loader.c.
21741 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
21742 (grub_multiboot2_real_boot): Likewise.
21743 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
21744 (grub_get_multiboot_mmap_count): New proto.
21745 (grub_fill_multiboot_mmap): Likewise.
21746 (grub_multiboot_set_video_mode): Likewise.
21747 (grub_multiboot_set_console): Likewise.
21748 (grub_multiboot_load): Likewise.
21749 (grub_multiboot_load_elf): Likewise.
21750 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
21751 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
21752 * include/multiboot.h: Resynced with specification.
21753 * include/multiboot2.h: Resynced with specification.
21754 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
21755 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
21756 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
21757 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
21759 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
21760 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
21761 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
21763 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
21765 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
21766 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21768 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
21769 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
21770 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
21772 * loader/i386/multiboot_mbi2.c: New file.
21774 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21776 Resync with gnulib.
21778 * Makefile.in (GNULIB_CFLAGS): New variable.
21779 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
21780 (grub_script_check_CFLAGS): New variable.
21781 * gnulib/alloca.h: Resync with gnulib.
21782 * gnulib/error.c: Likewise.
21783 * gnulib/error.h: Likewise.
21784 * gnulib/fnmatch.c: Likewise.
21785 * gnulib/fnmatch_loop.c: Likewise.
21786 * gnulib/getdelim.c: Likewise.
21787 * gnulib/getline.c: Likewise.
21788 * gnulib/getopt.c: Likewise.
21789 * gnulib/getopt1.c: Likewise.
21790 * gnulib/getopt_int.h: Likewise.
21791 * gnulib/gettext.h: Likewise.
21792 * gnulib/progname.c: Likewise.
21793 * gnulib/progname.h: Likewise.
21795 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
21797 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
21798 which is the case with --disabled-nls.
21800 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
21801 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
21802 * util/misc.c: Likewise.
21803 * util/mkisofs/mkisofs.c: Likewise.
21804 * util/mkisofs/mkisofs.h: Likewise.
21806 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21808 Simplify Apple CC support.
21810 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
21811 Add 0 byte at the end not to have a symbol with empty target.
21812 * mmap/i386/pc/mmap_helper.S: Likewise.
21813 * genmk.rb: Ignore errors 2030 and 2050.
21814 * kern/i386/pc/startup.S: Use LOCAL when possible.
21816 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
21818 Testcase and the fix for final semicolon on cmdline.
21820 * tests/grub_script_final_semicolon.in: New testcase.
21821 * conf/tests.rmk: Rules for the new testcase.
21822 * script/parser.y: Grammar fix.
21824 2010-03-26 BVK Chaitanya <bvk@localhost>
21826 Blank lines testcase for GRUB script.
21828 * tests/grub_script_blanklines.in: New testcase.
21829 * conf/tests.rmk: Rules for the new testcase.
21831 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21833 Don't use __FILE__.
21835 * genmk.rb: Add -DGRUB_FILE to all C targets.
21836 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
21837 * include/grub/list.h: Likewise.
21838 * include/grub/misc.h: Likewise.
21839 * include/grub/mm.h: Likewise.
21840 * include/grub/test.h: Likewise.
21841 * kern/mm.c: Likewise.
21842 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
21844 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21846 Sunpc partitions support.
21848 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
21849 (grub_fstest_SOURCES): Likewise.
21850 (pkglib_MODULES): Add part_sunpc.mod.
21851 (part_sunpc_mod_SOURCES): New variable.
21852 (part_sunpc_mod_CFLAGS): Likewise.
21853 (part_sunpc_mod_LDFLAGS): Likewise.
21854 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
21855 * partmap/sunpc.c: New file.
21857 2010-03-26 BVK Chaitanya <bvk@localhost>
21859 For loop support to GRUB script.
21861 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
21862 (grub_script_create_cmdfor): New function prototype.
21863 (grub_script_execute_cmdfor): New function prototype.
21864 * script/execute.c (grub_script_execute_cmdfor): New function.
21865 * script/parser.y (command): New for command.
21866 (forcmd): New grammar rule.
21867 * script/script.c (grub_script_create_cmdfor): New function.
21868 * util/grub-script-check.c (grub_script_execute_cmdfor): New
21870 * tests/grub_script_for1.in: New testcase.
21871 * conf/tests.rmk: Rules for new testcase.
21873 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21877 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
21878 'partition' is NULL, grub_partition_get_start already does that.
21879 * commands/loadenv.c (check_blocklists): Likewise.
21880 (write_blocklists): Likewise.
21881 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
21882 (grub_fstest_SOURCES): Likewise.
21883 (pkglib_MODULES): Add part_bsd.mod.
21884 (part_bsd_mod_SOURCES): New variable.
21885 (part_bsd_mod_CFLAGS): Likewise.
21886 (part_bsd_mod_LDFLAGS): Likewise.
21887 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
21888 (grub_emu_SOURCES): Likewise.
21889 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21890 * include/grub/bsdlabel.h: New file.
21891 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
21893 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
21894 (grub_partition_map_list): New variable.
21895 (grub_partition_map_register): Inline.
21896 (grub_partition_map_unregister): Likewise.
21897 (FOR_PARTITION_MAPS): New macro.
21898 (grub_partition_map_iterate): Removed.
21899 (grub_partition_get_start): Handle nested partitions.
21900 * include/grub/msdos_partition.h: Remove bsd-related entries.
21901 (grub_pc_partition): Remove.
21902 * kern/disk.c (grub_disk_close): Free partition data.
21903 (grub_disk_adjust_range): Handle nested partitions.
21904 * kern/partition.c (grub_partition_map_probe): New function.
21905 (grub_partition_probe): Parse name to number, handle subpartitions.
21906 (get_partmap): New function.
21907 (grub_partition_iterate): Handle subpartitions.
21908 (grub_partition_get_name): Likewise.
21909 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
21910 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
21911 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
21912 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
21914 (acorn_partition_map_probe): Remove.
21915 (acorn_partition_map_get_name): Likewise.
21916 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
21918 Set 'index' to 0 since there can be only one partition entry per sector.
21919 (amiga_partition_map_probe): Remove.
21920 (amiga_partition_map_get_name): Likewise.
21921 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
21923 Set 'offset' and 'index' to real positions of partitions.
21924 (apple_partition_map_probe): Remove.
21925 (apple_partition_map_get_name): Likewise.
21926 * partmap/bsdlabel.c: New file.
21927 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
21929 Allocate 'data' so it can be correctly freed.
21930 Set 'index' to offset inside sector.
21931 (gpt_partition_map_probe): Remove.
21932 (gpt_partition_map_get_name): Likewise.
21933 * partmap/msdos.c (grub_partition_parse): Remove.
21934 (pc_partition_map_iterate): Don't force raw access.
21936 Make 'ext_offset' a local variable.
21937 (pc_partition_map_probe): Remove.
21938 (pc_partition_map_get_name): Remove.
21939 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
21941 (sun_partition_map_probe): Remove.
21942 (sun_partition_map_get_name): Likewise.
21943 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
21944 (grub_pcpart_type): Likewise.
21945 * util/hostdisk.c (open_device): Handle new numbering scheme.
21946 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
21947 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
21948 * util/grub-probe.c (probe_partmap): Handle nested paritions.
21949 * util/grub-install.in: Insert all subpartition modules.
21950 * util/ieee1275/grub-install.in: Likewise.
21952 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
21954 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
21957 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
21959 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
21961 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
21963 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
21964 match where 'make install' puts them.
21965 * util/i386/efi/grub-install.in: Likewise.
21967 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
21969 * .bzrignore: Add gentrigtables, grub-script-check,
21970 grub_script_check_init.c, grub_script_check_init.h, and
21973 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
21975 * kern/parser.c: Indented.
21977 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21979 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
21981 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21983 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
21984 alpha_mask_size == 0 case.
21986 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
21988 GRUB shell lexer and parser improvements.
21990 * conf/any-emu.rmk: Build rule updates.
21991 * conf/common.rmk: Likewise.
21992 * conf/i386-coreboot.rmk: Likewise.
21993 * conf/i386-efi.rmk: Likewise.
21994 * conf/i386-ieee1275.rmk: Likewise.
21995 * conf/i386-pc.rmk: Likewise.
21996 * conf/powerpc-ieee1275.rmk: Likewise.
21997 * conf/x86_64-efi.rmk: Likewise.
21999 * configure.ac: Configure check for flex.
22001 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22003 (grub_lexer_param): Struct member updates.
22004 (grub_parser_param): Likewise.
22005 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22006 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22007 (grub_script_lexer_init): Prototype update.
22008 (grub_script_lexer_record_start): Likewise.
22009 (grub_script_lexer_record_stop): Likewise.
22010 (grub_script_lexer_yywrap): New function prototype.
22011 (grub_script_lexer_fini): Likewise.
22012 (grub_script_execute_argument_to_string): Removed by...
22013 (grub_script_execute_argument_to_argv): ...better version.
22015 * script/execute.c (ROUND_UPTO): New macro.
22016 (grub_script_execute_cmdline): Out of memory fixes.
22017 (grub_script_execute_menuentry): Likewise.
22018 (grub_script_execute_argument_to_string): Removed. Update all
22020 (grub_script_execute_argument_to_argv): ...better version.
22021 * script/function.c (grub_script_function_create): Use
22022 grub_script_execute_argument_to_argv instead of
22023 grub_script_execute_argument_to_string.
22025 * script/lexer.c (check_varstate): Removed.
22026 (check_textstate): Removed.
22027 (grub_script_lexer_record_start): Likewise.
22028 (grub_script_lexer_record_stop): Likewise.
22029 (recordchar): Replaced with...
22030 (grub_script_lexer_record): ...new function.
22031 (nextchar): Removed.
22032 (grub_script_lexer_init): Rewritten.
22033 (grub_script_yylex): Rewritten.
22034 (append_newline): New function.
22035 (grub_script_lexer_yywrap): New function.
22036 (grub_script_lexer_fini): New function.
22037 (grub_script_yyerror): Sets error flag.
22039 * script/yylex.l: New file.
22040 (grub_lexer_yyfree): Wrapper for flex yyffre.
22041 (grub_lexer_yyalloc): Likewise.
22042 (grub_lexer_yyrealloc): Likewise.
22043 * script/parser.y: Refactored.
22045 * script/script.c (grub_script_arg_add): Out of memory fixes.
22046 (grub_script_add_arglist): Likewise.
22047 (grub_script_create_cmdline): Likewise.
22048 (grub_script_create_cmdmenu): Likewise.
22049 (grub_script_add_cmd): Likewise.
22050 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22051 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22054 * tests/grub_script_echo1.in: New testcase.
22055 * tests/grub_script_vars1.in: New testcase.
22056 * tests/grub_script_echo_keywords.in: New testcase.
22058 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22060 Remove some redundancy in build system.
22062 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22063 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22064 (TARGET_LDFLAGS): Add -nostdlib.
22065 (TARGET_IMG_LDFLAGS): Likewise.
22066 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22067 anything since mmap isn't available.
22068 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22070 (pkglib_MODULES): Remove reboot.mod.
22071 (reboot_mod_SOURCES): Removed.
22072 (reboot_mod_CFLAGS): Likewise.
22073 (reboot_mod_LDFLAGS): Likewise.
22074 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22075 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22076 (DEFSYMFILES): Add kernel_syms.lst.
22077 (kernel_img_HEADERS): Add common headers.
22078 (symlist.c): New target.
22079 (kernel_syms.lst): Likewise.
22080 (pkglib_MODULES): Add memdisk.mod.
22081 (memdisk_mod_SOURCES): New variable.
22082 (memdisk_mod_CFLAGS): Likewise.
22083 (memdisk_mod_LDFLAGS): Likewise.
22084 (pkglib_MODULES): Add reboot.mod.
22085 (reboot_mod_SOURCES): New variable.
22086 (reboot_mod_CFLAGS): Likewise.
22087 (reboot_mod_LDFLAGS): Likewise.
22088 (pkglib_MODULES): Add date.mod.
22089 (date_mod_SOURCES): New variable.
22090 (date_mod_CFLAGS): Likewise.
22091 (date_mod_LDFLAGS): Likewise.
22092 (pkglib_MODULES): Add datehook.mod.
22093 (datehook_mod_SOURCES): New variable.
22094 (datehook_mod_CFLAGS): Likewise.
22095 (datehook_mod_LDFLAGS): Likewise.
22096 (pkglib_MODULES): Add lsmmap.mod.
22097 (lsmmap_mod_SOURCES): New variable.
22098 (lsmmap_mod_CFLAGS): Likewise.
22099 (lsmmap_mod_LDFLAGS): Likewise.
22100 (pkglib_MODULES): Add boot.mod.
22101 (boot_mod_SOURCES): New variable.
22102 (boot_mod_CFLAGS): Likewise.
22103 (boot_mod_LDFLAGS): Likewise.
22104 * conf/i386-coreboot.rmk: Removed redundant parts.
22105 * conf/i386-ieee1275.rmk: Likewise.
22106 * conf/i386-pc.rmk: Likewise.
22107 * conf/mips-yeeloong.rmk: Likewise.
22108 * conf/mips.rmk: Likewise.
22109 * conf/powerpc-ieee1275.rmk: Likewise.
22110 * conf/sparc64-ieee1275.rmk: Likewise.
22111 * conf/x86_64-efi.rmk: Likewise.
22112 * conf/i386-coreboot.rmk: Moved qemu parts ..
22113 * conf/i386-qemu.rmk: ... here
22114 * conf/i386-efi.rmk: Moved common parts to...
22115 * conf/x86-efi.rmk: ... here.
22116 * conf/i386.rmk: Added modules common to all x86 variants.
22117 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22118 * disk/memdisk.c: Remove grub/machine/kernel.h.
22119 * gensymlist.sh.in: Include symbol.h.
22120 * hook/datehook.c: Correct module name.
22121 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22122 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22123 * include/grub/i386/efi/serial.h: New file.
22124 * include/grub/x86_64/efi/serial.h: Likewise.
22125 * util/time.c: Likewise.
22126 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22128 2010-03-14 Colin King <colin.king@ubuntu.com>
22129 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22131 Shrink the pre-partition-table part of boot.img by eight bytes.
22133 * boot/i386/pc/boot.S (ERR): New macro.
22134 (chs_mode): Use ERR.
22135 (geometry_error): Likewise.
22136 (hd_probe_error): Remove. This is only used once, so we wrwite
22138 (read_error): Instead of printing read_error_string, just set up
22139 %si and fall through to ...
22140 (error_message): ... this new function, also used by ERR.
22142 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22144 Speed up consecutive hostdisk operations on the same device.
22146 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22147 (grub_util_biosdisk_open): Initialise disk->data.
22148 (struct linux_partition_cache): New structure.
22149 (linux_find_partition): Cache partition start positions; these are
22150 expensive to compute on every read and write.
22151 (open_device): Cache open file descriptor in disk->data, so that we
22152 don't have to reopen it and flush the buffer cache for consecutive
22153 operations on the same device.
22154 (grub_util_biosdisk_close): New function.
22155 (grub_util_biosdisk_dev): Set `close' member.
22157 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22158 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22159 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22160 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22161 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22163 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22165 Compile parts of grub-emu as modules.
22167 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22168 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22169 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22170 (all-local): Add $(GRUB_EMU).
22171 (install-local): Install $(GRUB_EMU).
22172 (uninstall): Uninstall $(GRUB_EMU).
22173 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22174 * kern/dl.c: Likewise.
22175 * commands/sleep.c: Not include machine/time.h.
22176 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22177 (COMMON_CFLAGS): Likewise.
22178 (sbin_UTILITIES): Remove grub-emu.
22179 (grub_emu_SOURCES): Removed.
22180 (kernel_img_RELOCATABLE): New variable.
22181 (pkglib_PROGRAMS): Add kernel.img.
22182 (kernel_img_SOURCES): New variable
22183 (kernel_img_CFLAGS): Likewise.
22184 (kernel_img_LDFLAGS): Likewise.
22185 (TARGET_NO_STRIP): Likewise.
22186 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22187 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22188 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22189 (grub-emu): New target.
22190 (GRUB_EMU): New variable.
22191 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22192 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22193 * loader/xnu.c: Likewise.
22194 * include/grub/pci.h: Likewise.
22195 * genemuinit.sh: New file.
22196 * genemuinitheader.sh: Likewise.
22197 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22198 Support TARGET_NO_DYNAMIC_MODULES.
22199 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22200 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22201 * disk/loopback.c: Likewise.
22202 * font/font_cmd.c: Likewise.
22203 * partmap/acorn.c: Likewise.
22204 * partmap/amiga.c: Likewise.
22205 * partmap/apple.c: Likewise.
22206 * partmap/gpt.c: Likewise.
22207 * partmap/msdos.c: Likewise.
22208 * partmap/sun.c: Likewise.
22209 * parttool/msdospart.c: Likewise.
22210 * term/gfxterm.c: Likewise.
22211 * video/bitmap.c: Likewise.
22212 * video/readers/jpeg.c: Likewise.
22213 * video/readers/png.c: Likewise.
22214 * video/readers/tga.c: Likewise.
22215 * video/video.c: Likewise.
22216 * util/grub-emu.c (read_command_list): Removed.
22217 (main): Don't call util_init_nls.
22218 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22219 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22221 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22223 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22224 date.mod, datehook.mod.
22225 (datetime_mod_SOURCES): New variable.
22226 (datetime_mod_CFLAGS): Likewise.
22227 (datetime_mod_LDFLAGS): Likewise.
22228 (date_mod_SOURCES): Likewise.
22229 (date_mod_CFLAGS): Likewise.
22230 (date_mod_LDFLAGS): Likewise.
22231 (datehook_mod_SOURCES): Likewise.
22232 (datehook_mod_CFLAGS): Likewise.
22233 (datehook_mod_LDFLAGS): Likewise.
22234 * conf/sparc64-ieee1275.rmk: Likewise.
22235 * lib/ieee1275/datetime.c: New file.
22237 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22239 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22240 (ieee1275_fb_mod_SOURCES): New variable.
22241 (ieee1275_fb_mod_CFLAGS): Likewise.
22242 (ieee1275_fb_mod_LDFLAGS): Likewise.
22243 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22245 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22246 (HEAP_MAX_ADDR): Likewise.
22247 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22249 Correct stop condition.
22250 (grub_ieee1275_devices_iterate): New function.
22251 * video/ieee1275.c: New file.
22253 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22255 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22257 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22259 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22260 SCRATCH_PAD_DISKBOOT as scratch.
22261 (bootit): Pass Openfirmware pointer in %o4.
22262 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22264 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22265 with util/grub-mkrawimage.c.
22266 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22267 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22268 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22269 (grub_aout_load) [GRUB_UTIL]: Likewise.
22270 * include/grub/kernel.h (grub_modules_get_end): New proto.
22271 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22272 (SCRATCH_PAD_BOOT): New definition.
22273 (SCRATCH_PAD_DISKBOOT): Likewise.
22274 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22275 * include/grub/sparc64/ieee1275/ieee1275.h
22276 (grub_ieee1275_original_stack): New variable
22277 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22279 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22280 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22281 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22282 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22283 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22284 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22285 (grub_platform_image_format_t): New type.
22286 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22287 * kern/main.c (grub_modules_get_end)
22288 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22289 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22290 (codestart): Switch stacks.
22291 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22293 (grub_heap_init): Use grub_modules_get_end.
22294 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22296 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22298 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22300 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22302 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22304 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22306 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22309 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22311 * genmoddep.awk: Output all missing symbols and not only first.
22313 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22315 * NEWS: Put the date of 1.98 release.
22317 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22319 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22322 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22324 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22325 completition in the middle of string.
22327 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22329 * util/grub-mkrescue.in: Use mktemp with explicit template.
22331 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22333 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22335 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22337 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22340 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22342 Fix FreeBSD compilation.
22344 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22345 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22347 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22349 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22351 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22353 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22355 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22357 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22359 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22361 Support relative image path in theme file.
22363 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22364 (image_set_property): Handle theme_dir and relative path.
22366 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22368 * configure.ac: Alias amd64 to x86_64.
22370 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22372 * NEWS: mention multiboot on EFI.
22374 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22376 * kern/main.c (grub_load_modules): Handle errors from init functions of
22379 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22381 * normal/autofs.c (autoload_fs_module): Handle errors.
22383 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22385 Disable linux.mod on qemu-mips since it's not functional and leads
22386 to compilation failure.
22388 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22389 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22390 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22391 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22392 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22393 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22394 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22395 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22396 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22397 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22398 Reported by: BVK Chaitanya
22400 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22402 * INSTALL: Add gettext as a dependency and add qemu to a new section
22403 "Prerequisites for make-check".
22405 2010-03-04 Christian Franke <franke@computer.org>
22407 * util/grub-pe2elf.c: Add missing include "progname.h".
22409 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22411 * normal/crypto.c (read_crypto_list): Fix a typo.
22412 Reported by: Seth Goldberg.
22414 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22416 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22417 Reported by: Seth Goldberg.
22419 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22421 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22424 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22426 * genmk.rb: Remove terminal*.lst in make clean.
22427 Reported by: Seth Goldberg.
22429 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22431 * util/i386/efi/grub-install.in: Copy gettext files.
22433 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22435 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22437 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22439 Wait for user entry basing on presence of output rather than on errors.
22441 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22442 (grub_install_newline_hook): Likewise.
22443 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22444 * normal/menu.c (show_menu): Check line_counter to determine presence
22446 * normal/term.c (grub_normal_line_counter): New variable.
22447 (grub_normal_get_line_counter): New function.
22448 (grub_install_newline_hook): Likewise.
22450 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22452 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22454 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22456 * configure.ac: Update version to 1.98.
22458 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22460 * util/grub.d/10_linux.in (linux_entry): Don't default to
22461 gfxpayload=keep if Linux doesn't support video handover.
22463 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22465 Don't compile video modules on yeeloong since video subsystem is part
22468 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22469 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22470 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22471 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22472 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22473 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22474 * include/grub/bitmap_scale.h: Likewise.
22475 * include/grub/bufio.h: Likewise.
22476 * include/grub/font.h: Likewise.
22477 * include/grub/gfxterm.h: Likewise.
22478 * include/grub/video.h: Likewise.
22479 * include/grub/vbe.h: Don't include video_fb.h.
22480 * video/i386/pc/vbe.c: Include video_fb.h.
22481 * commands/i386/pc/vbetest.c: Include video.h.
22483 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22485 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22486 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22487 default entry if GRUB_SAVEDEFAULT=true. This allows using
22488 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22489 saving a new default on every boot.
22491 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22493 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22494 * normal/term.c (read_terminal_list): Likewise.
22495 * normal/main.c (grub_normal_init_page): Likewise.
22496 (grub_normal_read_line_real): Likewise.
22498 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22500 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22502 Reported by: Seth Goldberg.
22504 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22506 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22507 duplicate declaration of `start'.
22509 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22511 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22513 Reported by: Georgy Buranov
22515 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22517 * util/grub-mkrawimage.c (usage): Change string formatting to
22520 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22522 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22525 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22527 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22528 Reported by: Michael Suchanek.
22530 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22532 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22533 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22535 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22537 Remove any reference to non-free fonts.
22539 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22540 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22541 uses non-free components.
22542 * font/font.c (grub_font_get_name): Remove example name.
22543 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22544 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22545 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22546 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22548 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22550 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22552 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22554 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22556 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22558 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22560 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22562 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22564 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22566 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22567 * docs/grub.texi (Command-line and menu entry commands): Document play
22570 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22572 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22573 parse arguments as inline tempo and notes. Move code for playing notes
22575 (play): ... new function.
22577 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22579 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22580 grub_uint16_t instead of short.
22581 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22582 disk from little endian to cpu endianness.
22584 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22586 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22587 GRUB_TICKS_PER_SECOND instead of 120.
22589 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22591 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22592 escape sequence after \e.
22594 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22596 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22597 non-ASCII characters.
22599 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22601 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22602 set root in single quotes to prevent \, from being unescaped.
22604 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22606 Prevent unknown commands from stopping menuentry execution.
22608 * script/execute.c (grub_script_execute_cmdline): Print error after
22611 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22613 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22614 Reported by: Pavel Pisa.
22616 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22618 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22620 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22622 Merge grub_ieee1275_map_physical into grub_map and rename to
22625 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22626 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22628 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22629 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22631 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22633 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22635 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22636 opening and not after.
22638 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22640 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22643 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22645 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22646 (alloc_phys): Use ALIGN_UP instead of align_addr.
22648 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22650 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22652 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22654 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22656 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22658 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22661 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22663 Fix over-4GiB seek on sparc64.
22665 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22666 Replace pos_i and pos_lo with pos. All users updated.
22667 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22669 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22671 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22674 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22676 * util/grub-mkrawimage.c (main): Call set_program_name.
22678 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22680 Properly align 64-bit targets.
22682 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22683 (generate_image): Use ALIGN_ADDR.
22685 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22687 Properly create cross-endian images.
22689 * include/grub/types.h (grub_host_to_target_addr): New macro
22690 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22692 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22694 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22696 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22698 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22700 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22701 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22702 (grub_linux_boot): Divide by 64K when on VESA.
22704 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22706 Support GRUB_GFXPAYLOAD_LINUX.
22708 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22709 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
22711 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22713 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
22714 to show messages instead of discarding them.
22715 Process errors after executing command and not before. Keep old method
22718 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
22720 * configure.ac: Check for ft2build.h.
22722 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22724 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
22726 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22728 * genkernsyms.sh.in: Use TARGET_CC.
22730 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
22734 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22736 * include/grub/multiboot2.h: Remove leftover file.
22737 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
22738 * include/grub/partition.h [GRUB_UTIL]: Likewise.
22740 2010-02-07 Yves Blusseau <blusseau@zetam.org>
22742 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
22744 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22746 Fix warnings in grub-emu when compiling with maximum warning options.
22748 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
22749 (grub_arch_modules_addr): Return 0 and not NULL.
22750 * util/misc.c (ENABLE_RELOCATABLE): New definition.
22751 (xstrdup): Use newstr instead of dup.
22752 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
22753 of disk to dsk to avoid shadowing.
22754 (find_free_slot): Fix prototype.
22755 * util/getroot.c (grub_util_is_dmraid): Make static.
22756 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
22757 Add missing prototype.
22758 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
22760 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22762 * loader/i386/linux.c (grub_linux_setup_video): Handle error
22765 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22767 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
22770 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22772 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
22773 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
22774 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
22775 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
22776 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
22777 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
22779 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22781 * include/grub/err.h (grub_err_printf): Don't export.
22783 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22785 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
22787 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22789 * include/grub/i18n.h (grub_gettext_dummy): Removed.
22790 * kern/misc.c (grub_gettext_dummy): Make static.
22792 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22794 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
22796 * kern/term.c (grub_putchar): Likewise.
22798 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22800 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
22801 buggy hook call and memory leak.
22803 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22805 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
22807 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22809 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
22811 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22813 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
22815 Return grub_errno on allocation error.
22817 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22819 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
22821 2010-02-06 Yves Blusseau <blusseau@zetam.org>
22823 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
22824 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
22826 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22828 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
22830 (grub_pxefs_open): Likewise.
22832 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22834 * util/grub.d/10_hurd.in: Add --class information to menuentries.
22835 * util/grub.d/10_kfreebsd.in: Likewise.
22836 * util/grub.d/10_linux.in: Likewise.
22838 2010-02-06 Colin D Bennett <colin@gibibit.com>
22840 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
22841 (gfxmenu_mod_SOURCES): New variable.
22842 (gfxmenu_mod_CFLAGS): Likewise.
22843 (gfxmenu_mod_LDFLAGS): Likewise.
22844 * include/grub/term.h (grub_term_set_current_output): Declare
22846 * docs/gfxmenu-theme-example.txt: New file.
22847 * gfxmenu/gfxmenu.c: Likewise.
22848 * gfxmenu/gui_box.c: Likewise.
22849 * gfxmenu/gui_canvas.c: Likewise.
22850 * gfxmenu/gui_circular_progress.c: Likewise.
22851 * gfxmenu/gui_image.c: Likewise.
22852 * gfxmenu/gui_label.c: Likewise.
22853 * gfxmenu/gui_list.c: Likewise.
22854 * gfxmenu/gui_progress_bar.c: Likewise.
22855 * gfxmenu/gui_string_util.c: Likewise.
22856 * gfxmenu/gui_util.c: Likewise.
22857 * gfxmenu/icon_manager.c: Likewise.
22858 * gfxmenu/model.c: Likewise.
22859 * gfxmenu/named_colors.c: Likewise.
22860 * gfxmenu/theme_loader.c: Likewise.
22861 * gfxmenu/view.c: Likewise.
22862 * gfxmenu/widget-box.c: Likewise.
22863 * include/grub/gfxmenu_model.h: Likewise.
22864 * include/grub/gfxmenu_view.h: Likewise.
22865 * include/grub/gfxwidgets.h: Likewise.
22866 * include/grub/gui.h: Likewise.
22867 * include/grub/gui_string_util.h: Likewise.
22868 * include/grub/icon_manager.h: Likewise.
22870 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22872 Agglomerate scrolling in gfxterm.
22874 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
22875 (grub_virtual_screen_setup): Initialise 'total_screen'.
22876 (write_char): Split to ...
22877 (paint_char): ... this ...
22878 (write_char): ... and this.
22879 (paint_char): Handle delayed scrolling.
22880 (draw_cursor): Likewise.
22881 (scroll_up): Split to ...
22882 (real_scroll): ... this ...
22883 (scroll_up): ... and this.
22884 (real_scroll): Handle multi-line scroll and draw below-the-bottom
22886 (grub_gfxterm_refresh): Call real_scroll.
22888 2010-02-06 Colin D Bennett <colin@gibibit.com>
22890 * include/grub/misc.h (grub_iscntrl): New inline function.
22891 (grub_isalnum): Likewise.
22892 (grub_strtol): Likewise.
22894 2010-02-06 Colin D Bennett <colin@gibibit.com>
22896 * normal/menu_text.c (get_entry_number): Move from here ...
22897 * normal/menu.c (get_entry_number): ... moved here.
22898 * include/grub/menu.h (grub_menu_get_default_entry_index):
22900 * normal/menu.c (grub_menu_get_default_entry_index): New function.
22901 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
22902 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
22903 (grub_menu_viewer_should_return): Likewise.
22904 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
22905 * normal/menu_text.c (run_menu): Enable menu switching.
22906 * normal/menu_viewer.c (should_return): New variable.
22907 (menu_viewer_changed): Likewise.
22908 (grub_menu_viewer_show_menu): Handle menu viewer changes.
22909 (grub_menu_viewer_should_return): New function.
22910 (menuviewer_write_hook): Likewise.
22911 (grub_menu_viewer_init): Likewise.
22913 2010-02-06 Colin D Bennet <colin@gibibit.com>
22914 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22916 Support for gfxterm in a window.
22918 * include/grub/gfxterm.h: New file.
22919 * include/grub/video.h (struct grub_video_rect): New declaration.
22920 (grub_video_rect_t): Likewise.
22921 * term/gfxterm.c (struct grub_gfxterm_window): New type.
22922 (refcount): New variable.
22923 (render_target): Likewise.
22924 (window): Likewise.
22925 (repaint_callback): Likewise.
22926 (grub_virtual_screen_setup): Use 'render_target'.
22927 (init_window): New function.
22928 (grub_gfxterm_init_window): Likewise.
22929 (grub_gfxterm_init): Check reference counter.
22931 (destroy_window): New function.
22932 (grub_gfxterm_destroy_window): Likewise.
22933 (grub_gfxterm_fini): Check reference counter.
22934 Use destroy_window.
22935 (redraw_screen_rect): Restore viewport.
22936 Use 'render_target' and 'window'.
22937 Call 'repaint_callback'.
22938 (write_char): Use 'render_target'.
22939 (draw_cursor): Likewise.
22940 (scroll_up): Restore viewport.
22941 Use 'render_target' and 'window'.
22942 Call 'repaint_callback'.
22943 (grub_gfxterm_cls): Likewise.
22944 (grub_gfxterm_refresh): Use 'window'.
22945 (grub_gfxterm_set_repaint_callback): New function.
22946 (grub_gfxterm_background_image_cmd): Use 'window'.
22947 (grub_gfxterm_get_term): New function.
22948 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
22950 2010-02-06 Colin D Bennett <colin@gibibit.com>
22952 Bitmap scaling support.
22954 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
22955 (bitmap_scale_mod_SOURCES): New variable.
22956 (bitmap_scale_mod_CFLAGS): Likewise.
22957 (bitmap_scale_mod_LDFLAGS): Likewise.
22958 * include/grub/bitmap_scale.h: New file.
22959 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
22960 (background_image_cmd_options): New variable.
22961 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
22962 (cmd): Rename and change type to ...
22963 (background_image_cmd_handle): ... this. All users updated.
22964 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
22965 * video/bitmap_scale.c: New file.
22967 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22971 * Makefile.in (LIBSDL): New variable.
22972 (enable_grub_emu_sdl): Likewise.
22973 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
22974 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
22975 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
22976 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
22977 * util/sdl.c: New file.
22979 2010-02-06 Colin D Bennett <colin@gibibit.com>
22980 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22982 Double buffering support.
22984 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
22985 * include/grub/video.h: Update comment.
22986 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
22988 (grub_video_fb_doublebuf_blit_init): New prototype.
22989 * term/gfxterm.c (scroll_up): Support double buffering.
22990 (grub_gfxterm_refresh): Likewise.
22991 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
22992 (grub_video_fb_doublebuf_blit_init): Likewise.
22993 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
22994 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
22995 'displayed_page', 'render_page' and 'update_screen'.
22996 (grub_video_vbe_fini): Free offscreen buffer.
22997 (doublebuf_pageflipping_commit): New function.
22998 (doublebuf_pageflipping_update_screen): Likewise.
22999 (doublebuf_pageflipping_init): Likewise.
23000 (double_buffering_init): Likewise.
23001 (grub_video_vbe_setup): Enable doublebuffering.
23002 (grub_video_vbe_swap_buffers): Implement.
23003 (grub_video_vbe_set_active_render_target): Handle double buffering.
23004 (grub_video_vbe_get_active_render_target): Likewise.
23005 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23006 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23007 (grub_video_vbe_enable_double_buffering): Likewise.
23008 (grub_video_vbe_swap_buffers): Use update_screen.
23009 (grub_video_set_mode): Use double buffering.
23011 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23013 * maintainance/gentrigtables.py: Remove.
23014 * lib/trig.c: Likewise.
23016 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23018 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23020 (trigtables.c): New rule.
23021 (gentrigtables): Likewise.
23022 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23024 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23026 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23029 2010-02-06 Colin D Bennet <colin@gibibit.com>
23031 Trigonometry support.
23033 * include/grub/trig.h: New file.
23034 * lib/trig.c: Likewise.
23035 * maintainance/gentrigtables.py: Likewise.
23036 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23037 (trig_mod_SOURCES): New variable.
23038 (trig_mod_CFLAGS): Likewise.
23039 (trig_mod_LDFLAGS): Likewise.
23041 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23043 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23046 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23048 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23051 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23053 * util/hostdisk.c (open_device): Don't use partition device when reading
23054 before the partition.
23055 (grub_util_biosdisk_read): Don't read from partition and before the
23056 partition in single operation.
23057 (grub_util_biosdisk_write): Don't write to partition and before the
23058 partition in single operation.
23060 2010-02-03 Torsten Landschoff <torsten@debian.org>
23062 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23065 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23067 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23069 (grub_biosdisk_write): Refuse to write to CDROM.
23071 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23073 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23075 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23077 * font/font.c (find_glyph): Check that bmp_idx is available before
23079 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23080 with (font == NULL).
23082 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23084 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23086 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23088 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23089 * util/grub-script-check.c (getline): Fix empty lines case.
23091 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23093 * Makefile.in (check): Exit with fail status when one of the tests
23095 * tests/example_functional_test.c (example_test): Fix reversed assert.
23096 * tests/example_unit_test.c (example_test): Likewise.
23098 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23100 * util/grub.d/10_linux.in: This script does not use any of the
23101 contents of gettext.sh, only the external command `gettext', so stop
23102 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23103 the same prefix as GRUB.)
23104 * util/grub.d/10_kfreebsd.in: Likewise.
23106 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23108 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23111 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23113 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23116 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23118 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23119 having a 4KiB and not 32KiB buffer size.
23121 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23123 * util/hostfs.c: Include `<errno.h>'.
23124 (grub_hostfs_read): Handle errors from fseeko() and fread().
23126 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23128 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23129 loop when using read hooks on files whose size isn't sector-aligned.
23131 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23133 Remove unused parameter.
23135 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23136 (grub_iso9660_open): Remove initialization of `data->length'.
23138 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23140 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23141 memleak conditions.
23143 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23145 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23146 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23148 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23150 * util/bin2h.c (usage): Fix warning (space after backslash).
23152 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23154 * font/font.c: Include `grub/fontformat.h.
23155 Remove font file format constants.
23156 (grub_font_load): Use the new macros.
23157 * include/grub/fontformat.h: New file.
23158 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23159 (write_font_pf2): Use the new macros.
23161 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23163 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23166 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23168 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23170 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23171 (_start): Macroify `0x7F'.
23173 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23174 (make_install_device): Use "(pxe)" as fallback prefix when booting
23177 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23179 * configure.ac: Reset LIBS after check for libgcc symbols.
23181 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23183 * util/hostdisk.c (open_device): Add trailing newline to debug
23186 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23188 * configure.ac: Check for `limits.h'.
23189 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23191 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23193 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23194 capitalize error strings.
23196 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23198 * util/grub.d/10_hurd.in: Add a recovery mode.
23200 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23202 * configure.ac: Check for libgcc symbols with -nostdlib.
23204 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23206 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23208 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23210 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23211 stack since heap may be unavailable at that point.
23212 (grub_ofconsole_gotoxy): Likewise.
23214 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23216 * configure.ac: Check for _restgpr_14_x.
23217 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23218 and _savegpr_* prototypes.
23220 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23222 Use generic grub_reboot() for i386-efi.
23224 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23225 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23226 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23228 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23230 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23231 presence of "prefix" variable as it breaks when normal.mod is
23234 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23236 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23237 stack since heap is unavailable at that point.
23239 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23241 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23242 (grub_freebsd_bootinfo): Rewritten.
23243 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23245 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23247 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23249 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23251 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23254 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23256 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23257 around for handling "/" to the correct fix. Fix a memory leak. Use
23258 xstrdup instead of strdup.
23260 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23262 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23264 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23266 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23268 * font/font.c (struct grub_font): New member 'bmp_idx'.
23269 (font_init): Initialise 'bmp_idx'.
23270 (load_font_index): Fill 'bmp_idx'.
23271 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23273 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23275 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23278 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23280 Move context handling out of the kernel.
23282 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23283 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23284 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23285 * conf/i386-efi.rmk: Likewise.
23286 * conf/i386-ieee1275.rmk: Likewise.
23287 * conf/i386-pc.rmk: Likewise.
23288 * conf/powerpc-ieee1275.rmk: Likewise.
23289 * conf/sparc64-ieee1275.rmk: Likewise.
23290 * conf/x86_64-efi.rmk: Likewise.
23291 * include/grub/env.h: Include grub/menu.h.
23292 (grub_env_var_type): Removed.
23293 (grub_env_var): Replaced field 'type' with 'global'.
23294 (grub_env_find): New prototype.
23295 (grub_env_context_open): Remove EXPORT_FUNC.
23296 (grub_env_context_close): Likewise.
23297 (grub_env_export): Likewise.
23298 (grub_env_set_data_slot): Removed.
23299 (grub_env_get_data_slot): Likewise.
23300 (grub_env_unset_data_slot): Likewise.
23301 (grub_env_unset_menu): New prototype.
23302 (grub_env_set_menu): Likewise.
23303 (grub_env_get_menu): Likewise.
23304 * include/grub/env_private.h: New file.
23305 * include/grub/normal.h (grub_context_init): New prototype.
23306 (grub_context_fini): Likewise.
23307 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23308 * normal/context.c (grub_cmd_export): ... to here.
23309 * kern/env.c: Include env_private.h.
23310 (HASHSZ): Moved to include/grub/env_private.h.
23311 (grub_env_context): Likewise.
23312 (grub_env_sorted_var): Likewise.
23313 (current_context): Renamed from this ...
23314 (grub_current_context): ...to this. 'static' removed. All users updated.
23315 (grub_env_find): Removed 'static'.
23316 (grub_env_context_open): Moved to normal/context.c.
23317 (grub_env_context_close): Likewise.
23318 (grub_env_export): Likewise.
23319 (mangle_data_slot_name): Removed.
23320 (grub_env_set_data_slot): Likewise.
23321 (grub_env_get_data_slot): Likewise.
23322 (grub_env_unset_data_slot): Likewise.
23323 * kern/main.c (grub_set_root_dev): Don't export root.
23324 It will be done later.
23325 (grub_main): Don't export prefix.
23326 It will be done later.
23327 * normal/context.c: New file.
23328 * normal/main.c (free_menu): Use grub_env_unset_menu.
23329 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23330 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23331 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23332 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23334 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23338 * commands/setpci.c: New file.
23339 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23340 (setpci_mod_SOURCES): New variable.
23341 (setpci_mod_CFLAGS): Likewise.
23342 (setpci_mod_LDFLAGS): Likewise.
23344 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23346 Byte-addressable PCI configuration space.
23348 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23350 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23351 GRUB_PCI_REG_CACHELINE.
23352 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23353 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23354 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23355 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23356 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23357 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23358 grub_pci_make_address.
23359 (lock_rom_area): Likewise.
23360 * commands/lspci.c (grub_lspci_iter): Use macroses
23361 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23362 of grub_pci_make_address.
23363 * disk/ata.c (grub_ata_pciinit): Likewise.
23364 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23365 (GRUB_PCI_REG_VENDOR): Likewise.
23366 (GRUB_PCI_REG_DEVICE): Likewise.
23367 (GRUB_PCI_REG_COMMAND): Likewise.
23368 (GRUB_PCI_REG_STATUS): Likewise.
23369 (GRUB_PCI_REG_REVISION): Likewise.
23370 (GRUB_PCI_REG_CLASS): Likewise.
23371 (GRUB_PCI_REG_CACHELINE): Likewise.
23372 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23373 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23374 (GRUB_PCI_REG_BIST): Likewise.
23375 (GRUB_PCI_REG_ADDRESSES): Likewise.
23376 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23377 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23378 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23379 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23380 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23381 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23382 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23383 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23384 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23385 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23386 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23387 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23388 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23389 (GRUB_PCI_REG_MIN_GNT): Likewise.
23390 (GRUB_PCI_REG_MAX_LAT): Likewise.
23391 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23392 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23393 * video/efi_uga.c (find_framebuf): Likewise.
23394 * video/sm712.c (grub_video_sm712_setup): Likewise.
23395 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23398 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23400 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23401 can be reliably determined to be supported.
23403 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23405 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23406 that VESA is supported.
23407 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23410 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23412 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23414 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23416 * util/misc.c (make_system_path_relative_to_its_root): Work around
23417 special-casing of "/", as previous incarnation of this routine did.
23419 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23421 Fix any-emu compilation.
23423 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23424 * grub_bin2h_SOURCES: New variable.
23426 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23428 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23430 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23432 * util/grub.d/00_header.in: Fix handling of locale_dir.
23434 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23436 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23437 as possible unifont location (Gentoo).
23438 Reported by: Alexander Brüning
23440 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23442 Don't try to generate lists for kernel.img.
23444 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23445 (pkglib_MODULES): Remove kernel.img.
23446 (kernel_img_EXPORTS): Removed.
23447 (kernel_img_RELOCATABLE): New variable.
23448 * conf/x86_64-efi.rmk: Likewise.
23449 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23451 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23453 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23454 grub_xasprintf or grub_snprintf.
23455 (grub_vsprintf): Likewise.
23456 (grub_snprintf): New proto.
23457 (grub_vsnprintf): Likewise.
23458 (grub_xasprintf): Likewise.
23459 (grub_xvasprintf): Likewise.
23460 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23461 (grub_sprintf): Removed.
23462 (grub_vsnprintf): New function.
23463 (grub_snprintf): Likewise.
23464 (grub_xvasprintf): Likewise.
23465 (grub_xasprintf): Likewise.
23466 (grub_vsprintf): Renamed to ...
23467 (grub_vsnprintf_real): ...this. New argument max_len.
23469 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23471 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23472 fix grub-script-check warning.
23474 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23476 * include/grub/font.h (grub_font_load): Fix prototype.
23478 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23480 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23482 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23484 * include/grub/x86_64/at_keyboard.h: New file.
23486 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23488 * loader/mips/linux.c: Include missing grub/i18n.h.
23490 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23492 * normal/menu.c (notify_execution_failure): Clarify error message.
23494 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23496 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23497 return value (and revert all return statements). Update users.
23499 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23501 * kern/device.c (grub_device_iterate): Allocate new part_ent
23502 structure based on sizeof (*p) rather than sizeof (p->next), to
23503 account for structure padding.
23505 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23506 disk is NULL, which might happen for LVM physical volumes with no
23509 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23511 * loader/mips/linux.c (grub_cmd_initrd)
23512 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23514 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23516 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23517 (grub_video_video_init, grub_video_bitmap_init)
23518 (grub_font_manager_init, grub_term_gfxterm_init)
23519 (grub_at_keyboard_init): New extern declarations.
23520 (grub_machine_init): Initialize gfxterm and at_keyboard.
23522 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23524 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23525 `gfxterm.mod' into core image.
23527 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23528 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23529 (kernel_img_FORMAT): Copy to ...
23531 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23532 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23533 (kernel_img_FORMAT): ... here, and ...
23535 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23536 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23537 (kernel_img_FORMAT): ... here.
23539 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23540 and input (at_keyboard) terminals in kernel.
23541 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23543 (pkglib_MODULES): Remove `pci.mod'.
23544 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23545 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23546 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23547 (at_keyboard_mod_LDFLAGS): Remove variables.
23549 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23551 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23553 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23555 * include/grub/mips/libgcc.h: Only export symbols for functions
23556 that libgcc provides.
23558 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23562 * bus/bonito.c: New file.
23563 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23564 GRUB_PCI_NUM_DEVICES.
23565 * term/i386/pc/serial.c: Move to ...
23566 * term/serial.c: ... here. All users updated.
23567 * util/i386/pc/grub-mkimage.c: Move to ...
23568 * util/grub-mkrawimage.c: ... here. All users updated.
23569 * term/i386/pc/at_keyboard.c: Move to ...
23570 * term/at_keyboard.c: ... here. All users updated.
23571 * conf/mips-qemu-mips.rmk: New file.
23572 * conf/mips-yeeloong.rmk: Likewise.
23573 * conf/mips.rmk: Likewise.
23574 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23576 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23578 (grub_ata_pciinit): Support CS5536.
23579 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23580 * font/font_cmd.c (loadfont_command): Open file before passing it to
23582 (pseudo_file_read): New function.
23583 (pseudo_file_close): Likewise.
23584 (pseudo_fs): New structure.
23585 (load_font_module): New function.
23586 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23587 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23588 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23589 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23590 * include/grub/i386/at_keyboard.h: Split into ...
23591 * include/grub/at_keyboard.h: ... this ...
23592 * include/grub/i386/at_keyboard.h: ... and this.
23593 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23595 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23597 (grub_elf64_size): Likewise.
23598 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23600 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23601 * include/grub/i386/coreboot/serial.h: Rewritten.
23602 * include/grub/i386/ieee1275/serial.h: Include
23603 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23604 * include/grub/i386/pc/serial.h: Moved from here ...
23605 * include/grub/serial.h: ... to here. All users updated.
23606 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23607 (GRUB_PCI_NUM_BUS): Likewise.
23608 (GRUB_PCI_NUM_DEVICES): Likewise.
23609 (grub_pci_device_map_range): Add missing volatile keyword.
23610 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23611 * include/grub/mips/at_keyboard.h: New file.
23612 * include/grub/mips/cache.h: Likewise.
23613 * include/grub/mips/io.h: Likewise.
23614 * include/grub/mips/kernel.h: Likewise.
23615 * include/grub/mips/libgcc.h: Likewise.
23616 * include/grub/mips/pci.h: Likewise.
23617 * include/grub/mips/qemu-mips/boot.h: Likewise.
23618 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23619 * include/grub/mips/qemu-mips/loader.h: Likewise.
23620 * include/grub/mips/qemu-mips/memory.h: Likewise.
23621 * include/grub/mips/qemu-mips/serial.h: Likewise.
23622 * include/grub/mips/qemu-mips/time.h: Likewise.
23623 * include/grub/mips/relocator.h: Likewise.
23624 * include/grub/mips/time.h: Likewise.
23625 * include/grub/mips/types.h: Likewise.
23626 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23627 * include/grub/mips/yeeloong/boot.h: Likewise.
23628 * include/grub/mips/yeeloong/kernel.h: Likewise.
23629 * include/grub/mips/yeeloong/loader.h: Likewise.
23630 * include/grub/mips/yeeloong/memory.h: Likewise.
23631 * include/grub/mips/yeeloong/pci.h: Likewise.
23632 * include/grub/mips/yeeloong/serial.h: Likewise.
23633 * include/grub/mips/yeeloong/time.h: Likewise.
23634 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23635 * kern/elf.c (grub_elf32_size): New parameter. All users
23637 (grub_elf64_size): Likewise.
23638 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23639 Load modules before saying "Welcome to GRUB!".
23640 Call grub_refresh after saying "Welcome to GRUB!".
23641 * kern/mips/cache.S: New file.
23642 * kern/mips/cache_flush.S: Likewise.
23643 * kern/mips/dl.c: Likewise.
23644 * kern/mips/init.c: Likewise.
23645 * kern/mips/qemu-mips/init.c: Likewise.
23646 * kern/mips/startup.S: Likewise.
23647 * kern/mips/yeeloong/init.c: Likewise.
23648 * kern/term.c (grub_putcode): Handle NULL terminal.
23649 (grub_getcharwidth): Likewise.
23650 (grub_getkey): Likewise.
23651 (grub_checkkey): Likewise.
23652 (grub_getkeystatus): Likewise.
23653 (grub_getxy): Likewise.
23654 (grub_getwh): Likewise.
23655 (grub_gotoxy): Likewise.
23656 (grub_cls): Likewise.
23657 (grub_setcolorstate): Likewise.
23658 (grub_setcolor): Likewise.
23659 (grub_getcolor): Likewise.
23660 (grub_refresh): Likewise.
23661 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23662 (write_jump): Add hatch nop.
23663 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23664 * lib/mips/setjmp.S: New file.
23665 * loader/mips/linux.c: Likewise.
23666 * term/i386/pc/at_keyboard.c: Move from here ...
23667 * term/at_keyboard.c: ... to here.
23668 * term/i386/pc/serial.c: Moved from here ...
23669 * term/serial.c: ... to here. All users updated.
23670 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23671 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23672 (serial_translate_key_sequence): Avoid deadlock.
23673 (grub_serial_getkey): Handle backspace.
23674 (grub_serial_putchar): Fix newline handling.
23675 * util/i386/pc/grub-mkimage.c: Move from here ...
23676 * util/grub-mkrawimage.c: ... to here. All users updated.
23677 (generate_image): New parameters 'font_path' and 'format'.
23678 Support embedding font.
23679 Use grub_host_to_target* instead of grub_cpu_to_le*.
23680 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23681 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23682 (options): New option "--font".
23684 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23685 (main): Handle "--font".
23686 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23687 (grub_virtual_screen_setup): Set bg_color_display.
23688 (redraw_screen_rect): Use bg_color_display instead of incorrect
23690 (grub_gfxterm_cls): Likewise.
23691 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23692 Support embedding config file.
23693 (add_segments): Likewise.
23694 (options): New option "--config".
23695 (main): Handle "--config".
23696 * video/sm712.c: New file.
23698 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23700 Fix parallel builds.
23702 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23703 font.c depend on ascii.h).
23705 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23707 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23709 2010-01-11 Carles Pina i Estany <carles@pina.cat>
23711 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
23712 By default: disabled.
23713 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
23716 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23718 * font/font.c: Update copyright years.
23719 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
23721 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23723 * font/font.c: Include `ascii.h'.
23724 (ASCII_BITMAP_SIZE): New macro.
23725 (ascii_font_glyph): Define.
23726 (ascii_glyph_lookup): New function.
23727 (grub_font_get_string_width): Change comment. If glyph not found, use
23728 ascii_glyph_lookup.
23729 (grub_font_get_glyph_with_fallback): If glyph not available returns
23730 ascii_glyph_lookup.
23731 * util/grub-mkfont.c (file_formats): New enum.
23732 (options): Add `ascii-bitmaps' new option.
23733 (usage): Add `asii-bitmaps' new option.
23734 (write_font_ascii_bitmap): New function.
23735 (write_font): Rename to ...
23736 (write_font_p2): ... this. Remove print_glyphs call.
23737 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
23738 used. Call print_glyphs.
23739 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
23741 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23743 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
23744 (grub_bin2h_SOURCES): New variable.
23745 * util/bin2h.c: New file.
23747 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23749 * include/multiboot.h: Resynced with spec.
23750 * include/multiboot2.h: Likewise.
23751 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
23752 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
23754 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23756 * include/grub/term.h (grub_term_register_input,
23757 grub_term_register_output): Check return of terminal init()
23758 routines, and abort if errors are raised.
23760 * commands/terminal.c: Update copyright year.
23762 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23764 * commands/terminal.c (grub_cmd_terminal_input)
23765 (grub_cmd_terminal_output): Check return of terminal init()
23766 routines, and abort if errors are raised.
23768 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23770 * include/grub/i386/bsd.h: Fix include pathes.
23772 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23774 Add missing *BSD copyright headers.
23776 * include/grub/aout.h: Add BSD licence.
23777 * include/grub/i386/bsd.h: Parts under different licences moved to ...
23778 * include/grub/i386/freebsd_linker.h: ... here,
23779 * include/grub/i386/freebsd_reboot.h: ... here,
23780 * include/grub/i386/netbsd_bootinfo.h: ... here,
23781 * include/grub/i386/netbsd_reboot.h: ... here,
23782 * include/grub/i386/openbsd_bootarg.h: ... here,
23783 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
23784 licence to each file.
23786 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23788 * acinclude.m4: Remove `nop' assembly instruction; it's not
23789 implemented by all architectures.
23791 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23793 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
23794 ELILO. This is no longer necessary.
23796 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
23798 Added new tool, grub-scrit-check to verify grub.cfg syntax.
23800 * util/grub-script-check.c: grub-script-check tool.
23801 * conf/common.rmk: Make rules for grub-script-check.
23803 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23805 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
23806 spotting it back in 2008. Shame on me for forgetting he did.
23808 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
23810 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23812 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
23813 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
23814 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
23815 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
23816 (GRUB_VIDEO_TYPE_EFI): Rename to ...
23817 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
23819 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
23821 * include/grub/test.h: Add license header.
23822 * tests/example_functional_test.c: Likewise.
23823 * tests/example_unit_test.c: Likewise.
23824 * tests/lib/functional_test.c: Likewise.
23825 * tests/lib/test.c: Likewise.
23826 * tests/lib/unit_test.c: Likewise.
23828 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
23830 Use flag-based instead of hook-based video mode selection and "auto"
23833 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
23834 (grub_video_set_mode): Changed prototype. All users updated.
23835 (grub_video_check_mode_flag): New inline function.
23836 * video/video.c (parse_modespec): New function.
23837 (grub_video_set_mode): Parse flags and keywords.
23839 2010-01-17 Carles Pina i Estany <carles@pina.cat>
23841 * util/misc.c (grub_util_info): Fix the order of the parameters in a
23844 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
23846 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
23848 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23850 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
23852 * util/grub-emu.c (usage): Likewise.
23853 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
23854 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23855 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23856 * util/i386/pc/grub-setup.c (usage): Likewise.
23858 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23860 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
23862 (grub_util_info): Likewise.
23863 (grub_util_error): Likewise.
23864 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
23865 and/or new lines in `grub_util_warna', `grub_util_info',
23866 `grub_util_error' calls.
23867 * util/getroot.c: Likewise.
23868 * util/grub-editenv.c: Likewise.
23869 * util/grub-emu.c: Likewise.
23870 * util/grub-fstest.c: Likewise.
23871 * util/grub-mkdevicemap.c: Likewise.
23872 * util/grub-mkfont.c: Likewise.
23873 * util/grub-mkpasswd-pbkdf2.c: Likewise.
23874 * util/grub-mkrelpath.c: Likewise.
23875 * util/grub-pe2elf.c: Likewise.
23876 * util/grub-probe.c: Likewise.
23877 * util/hostdisk.c: Likewise.
23878 * util/i386/efi/grub-mkimage.c: Likewise.
23879 * util/i386/pc/grub-mkimage.c: Likewise.
23880 * util/i386/pc/grub-setup.c: Likewise.
23881 * util/ieee1275/ofpath.c: Likewise.
23882 * util/mkisofs/eltorito.c: Likewise.
23883 * util/mkisofs/rock.c: Likewise.
23884 * util/mkisofs/write.c: Likewise.
23885 * util/raid.c: Likewise.
23886 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
23887 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23889 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23891 Enable multiboot on non-pc.
23893 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
23894 multiboot.mod and multiboot2.mod to ...
23895 * conf/i386.rmk (pkglib_MODULES): ... here.
23896 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
23898 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
23899 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
23901 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
23902 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
23904 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
23905 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
23907 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
23908 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
23910 (ata_mod_SOURCES): Removed.
23911 (ata_mod_CFLAGS): Likewise.
23912 (ata_mod_LDFLAGS): Likewise.
23913 (relocator_mod_SOURCES): Removed.
23914 (relocator_mod_CFLAGS): Likewise.
23915 (relocator_mod_ASFLAGS): Likewise.
23916 (relocator_mod_LDFLAGS): Likewise.
23918 * include/grub/x86_64/multiboot.h: New file.
23919 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
23922 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23924 Video multiboot support.
23926 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
23928 * include/multiboot.h: Resynced with multiboot specification.
23929 * include/multiboot2.h: Likewise.
23930 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
23931 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
23932 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
23933 (HAS_VGA_TEXT): Likewise.
23934 (accepts_video): New variable.
23935 (grub_multiboot_set_accepts_video): New function.
23936 (grub_multiboot_get_mbi_size): Account for video structures.
23937 (set_video_mode): New function.
23938 (retrieve_video_parameters): Likewise.
23939 (grub_multiboot_make_mbi): Fill video fields.
23941 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23945 * include/grub/video.h (grub_video_driver_id): New type.
23946 (grub_video_adapter): New member 'id'. All users updated.
23947 (grub_video_get_driver_id): New proto.
23948 * video/video.c (grub_video_get_driver_id): New function.
23950 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23952 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
23955 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23957 * normal/cmdline.c (print_completion): Gettextizze.
23959 2001-01-14 Carles Pina i Estany <carles@pina.cat>
23961 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
23963 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23965 * gettext/gettext.c (grub_gettext_translate): Push and pop
23967 (grub_gettext_delete_list): Change comment style.
23968 * kern/err.c (grub_error): Gettextizze.
23969 (grub_fatal): Gettextizze.
23971 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23973 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
23974 (grub_linux16_real_boot): ... this.
23975 * kern/i386/loader.S: Likewise.
23976 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
23977 (grub_linux16_boot): New function. Switches to text mode and calls
23978 grub_linux16_real_boot().
23980 * loader/i386/bsd.c: Include `<grub/video.h>'.
23981 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
23982 text mode before calling grub_unix_real_boot().
23984 * loader/i386/multiboot.c: Include `<grub/video.h>'.
23985 (grub_multiboot_boot): Switch to text mode before calling
23986 grub_relocator32_boot().
23988 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
23989 (grub_chainloader_boot): Switch to text mode before calling
23990 grub_chainloader_real_boot().
23992 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23993 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23995 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
23998 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23999 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24001 * util/grub.d/00_header.in: Define a "savedefault" function for use
24003 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24005 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24006 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24008 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24009 saved_entry if boot_once is unset.
24010 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24011 previous saved entry (i.e. grub-reboot).
24013 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24015 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24017 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24019 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24021 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24023 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24025 * util/grub-reboot.in: Fix --version output.
24026 * util/grub-set-default.in: Likewise.
24028 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24030 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24033 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24035 * util/grub.d/00_header.in: Quote the value assigned to `default',
24036 in case it contains spaces.
24038 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24040 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24041 `save_default_entry' call from the macosx case to the linux case.
24043 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24044 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24046 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24047 in `chosen' environment variable.
24048 * normal/menu_text.c (get_entry_number): Check if the variable
24049 matches the title of a menu entry.
24050 (run_menu): Pass menu to get_entry_number.
24052 * util/grub-reboot.in: New file.
24053 * util/grub-set-default.in: New file.
24054 * conf/common.rmk (grub-reboot): New utility.
24055 (grub-set-default): New utility.
24057 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24058 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24059 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24060 move it to `saved_entry' for the next boot. Load environment on
24062 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24063 * util/grub.d/10_hurd.in: Likewise.
24064 * util/grub.d/10_linux.in (linux_entry): Likewise.
24065 * util/grub.d/10_windows.in: Likewise.
24066 * util/grub.d/30_os-prober.in: Likewise.
24068 * util/grub-install.in: Create environment block.
24069 * util/i386/efi/grub-install.in: Likewise.
24070 * util/ieee1275/grub-install.in: Likewise.
24071 * util/sparc64/ieee1275/grub-install.in: Likewise.
24073 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24075 Unit testing framework for GRUB.
24077 * Makefile.in: Test framework build rules for 'make check'.
24078 * conf/tests.rmk: Build rules for individual tests and framework.
24080 * include/grub/test.h: Header file for whitebox tests.
24081 * tests/lib/functional_test.c: Framework support for whitebox
24083 * tests/lib/test.c: Common whitebox testing code for unit and
24085 * tests/lib/unit_test.c: Framework support for whitebox unit
24088 * tests/util/grub-shell-tester.in: Support utility for grub-script
24090 * tests/util/grub-shell.in: Utility to execute grub-script
24091 commands in a Qemu instance.
24093 * tests/example_functional_test.c: Example whitebox functional
24095 * tests/example_grub_script_test.in: Example grub-script test.
24096 * tests/example_scripted_test.in: Example scripted test.
24097 * tests/example_unit_test.c: Example whitebox unit test.
24099 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24101 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24102 Add loader/i386/multiboot_mbi.c.
24103 (multiboot2_mod_SOURCES): Likewise.
24104 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24105 (multiboot2_mod_SOURCES): Likewise.
24106 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24107 (grub_multiboot_make_mbi): Likewise.
24108 (grub_multiboot_free_mbi): Likewise.
24109 (grub_multiboot_init_mbi): Likewise.
24110 (grub_multiboot_add_module): Likewise.
24111 (grub_multiboot_set_bootdev): Likewise.
24112 * loader/i386/multiboot.c (mbi): Removed.
24113 (mbi_dest): Likewise.
24114 (alloc_mbi): New variable.
24115 (grub_multiboot_payload_size): Removed. All users updated.
24116 (grub_multiboot_pure_size): New variable.
24117 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24118 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24119 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24120 (grub_fill_multiboot_mmap): Likewise.
24121 (grub_multiboot_get_bootdev): Likewise.
24122 (grub_multiboot): Use multiboot_mbi functions.
24123 * loader/i386/multiboot_mbi.c: New file.
24125 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24127 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24128 it would result in module crash.
24130 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24132 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24133 (grub_ofconsole_getwh): Split to ...
24134 (grub_ofconsole_getwh): ... this.
24135 (grub_ofconsole_dimensions): ...and this.
24136 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24138 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24140 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24142 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24144 * loader/i386/pc/multiboot2.c: Removed stalled file.
24146 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24148 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24149 Reported by: Grégoire Sutre
24151 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24153 * util/misc.c (canonicalize_file_name): New function.
24154 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24155 instead of realpath().
24157 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24159 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24160 and make it clearer that it's optional. Based on confusion
24163 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24165 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24166 in premature implicit newline.
24168 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24170 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24171 which resulted in garbled command line at the end of screen.
24173 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24175 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24176 initialization with similar approach as with other Linux loaders.
24178 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24180 Fix i386-ieee1275 build.
24182 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24183 and grub_term_height() for video_{width,height} initialization.
24185 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24187 Fix grub-emu build.
24189 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24191 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24192 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24194 Support for multiple terminals.
24196 * Makefile.in (pkglib_DATA): terminal.lst.
24197 (terminal.lst): New target.
24198 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24199 (GRUB_MOD_INIT(handler)): Likewise.
24200 (GRUB_MOD_FINI(handler)): Likewise.
24201 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24202 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24203 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24204 (grub_cmd_sleep): Use grub_term_save_pos.
24205 * commands/terminal.c: New file.
24206 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24207 commands/terminal.c and lib/charset.c.
24208 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24209 (pkglib_MODULES): Add terminal.mod.
24210 (terminal_mod_SOURCES): New variable.
24211 (terminal_mod_CFLAGS): Likewise.
24212 (terminal_mod_LDFLAGS): Likewise.
24213 * genhandlerlist.sh: Don't handle terminals.
24214 * genmk.rb: Generate terminal-*.lst.
24215 * genterminallist.sh: New file.
24216 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24217 (grub_is_valid_utf8): Likewise.
24218 (grub_utf8_to_ucs4_alloc): Likewise.
24219 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24220 (grub_menu_register_viewer): Changed argument.
24221 (grub_menu_try_text): New proto.
24222 (grub_gfxmenu_try_hook): New declaration.
24223 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24224 (grub_menu_init_page): Additional argument term.
24225 (grub_normal_init_page): Likewise.
24226 (grub_cmdline_get): Arguments simplified.
24227 (grub_utf8_to_ucs4_alloc): Removed.
24228 (grub_print_ucs4): Additional argument term.
24229 (grub_getstringwidth): Likewise.
24230 (grub_print_message_indented): Likewise.
24231 (grub_menu_text_register_instances): New proto.
24232 (grub_show_menu): Likewise.
24233 (read_terminal_list): Likewise.
24234 (grub_set_more): Likewise.
24235 * include/grub/parser.h: Include handler.h.
24236 * include/grub/reader.h: Rewritten.
24237 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24238 (GRUB_TERM_WIDTH): Changed to function.
24239 (GRUB_TERM_HEIGHT): Likewise.
24240 (GRUB_TERM_BORDER_WIDTH): Likewise.
24241 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24242 (GRUB_TERM_NUM_ENTRIES): Likewise.
24243 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24244 (GRUB_TERM_CURSOR_X): Likewise.
24245 (grub_term_input_class): Likewise.
24246 (grub_term_output_class): Likewise.
24247 (grub_term_outputs_disabled): New declaration.
24248 (grub_term_inputs_disabled): Likewise.
24249 (grub_term_outputs): Likewise.
24250 (grub_term_inputs): Likewise.
24251 (grub_term_register_input): Rewritten.
24252 (grub_term_register_output): Likewise.
24253 (grub_term_unregister_input): Likewise.
24254 (grub_term_unregister_output): Likewise.
24255 (FOR_ACTIVE_TERM_INPUTS): New macro.
24256 (FOR_DISABLED_TERM_INPUTS): Likewise.
24257 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24258 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24259 * include/grub/terminfo.h: Add oterm argument to all protypes.
24260 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24261 Use grub_rescue_run.
24262 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24264 * kern/reader.c: Removed. All users updated.
24265 * kern/rescue_reader.c (grub_rescue_init): Removed.
24266 (grub_rescue_reader): Likewise.
24267 (grub_register_rescue_reader): Likewise.
24268 (grub_rescue_run): New function based on kern/reader.c.
24269 * kern/term.c: Adapted for multiterm.
24270 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24271 (grub_is_valid_utf8): Likewise.
24272 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24273 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24275 * loader/i386/linux.c (grub_linux_boot): Likewise.
24276 * normal/auth.c (grub_username_get): New function.
24277 (grub_auth_check_authentication): Use grub_username_get.
24278 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24279 * normal/color.c: Adapt for multiterm.
24280 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24281 (grub_normal_init_page): Additional argument term.
24282 (read_lists): Call read_terminal_lists.
24283 (grub_enter_normal_mode): Call grub_cmdline_run.
24284 Handle grub_normal_exit_level.
24285 (grub_cmd_normal): Make reentrant.
24286 (grub_cmd_normal_exit): New function.
24287 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24288 * normal/menu.c: Adapt for multiterm.
24289 * normal/menu_entry.c: Likewise.
24290 * normal/menu_text.c: Likewise.
24291 * normal/menu_viewer.c: Removed. All users updated.
24292 * normal/term.c: New file.
24293 * util/console.c: Change order of includes to workaround a bug in
24295 * term/terminfo.c: New argument oterm on all exported functions.
24297 * util/grub-editenv.c (grub_term_input_class): Removed.
24298 (grub_term_output_class): Likewise.
24300 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24302 Make loader output a bit more user-friendly.
24304 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24305 is being loaded. Likewise for the Hurd.
24307 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24308 that kernel of FreeBSD ${version} is being loaded.
24310 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24312 (grub_cmd_initrd): Likewise.
24313 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24314 that Linux ${version} is being loaded. Likewise for initrd.
24316 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24318 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24320 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24322 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24323 (GRUB_MOD_INIT): Gettextizze.
24324 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24325 (GRUB_MOD_INIT): Gettextizze.
24326 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24327 (grub_cmd_linux): Capitalise Linux.
24328 (GRUB_MOD_INIT): Gettextizze.
24329 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24330 (grub_cmd_linux): Capitalise Linux.
24331 (GRUB_MOD_INIT): Gettextizze.
24332 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24333 (grub_cmd_linux): Capitalise Linux.
24334 (GRUB_MOD_INIT): Gettextizze.
24335 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24336 (GRUB_MOD_INIT): Gettextizze.
24337 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24338 (grub_cmd_linux): Capitalise Linux.
24339 (GRUB_MOD_INIT): Gettextizze.
24340 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24341 (grub_cpu_xnu_init): Gettextizze.
24342 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24343 (GRUB_MOD_INIT): Gettextizze.
24344 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24345 (GRUB_MOD_INIT): Gettextizze.
24346 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24347 (grub_linux_load64): Capitalise Linux.
24348 (GRUB_MOD_INIT): Gettextizze.
24349 * loader/xnu.c: Include `<grub/i18n.h>'.
24350 (GRUB_MOD_INIT): Gettextizze.
24351 * po/POTFILES: Add `loader/efi/appleloader.c',
24352 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24353 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24354 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24355 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24356 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24357 and `loader/xnu.c'.
24359 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24361 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24363 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24365 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24366 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24367 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24369 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24371 Reset Multiboot 2 support. New loader implements the draft in
24372 /branches/multiboot2 and shares as much code as possible with the
24373 production Multiboot 1 implementation.
24375 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24376 * loader/multiboot2.c: Likewise.
24377 * loader/i386/multiboot_helper.S: Likewise.
24378 * include/multiboot2.h: Replace with latest version from the draft
24379 in /branches/multiboot2.
24381 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24382 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24383 and `loader/multiboot2.c'.
24384 (pkglib_MODULES): Add `multiboot2.mod'.
24385 (multiboot2_mod_SOURCES): New variable.
24386 (multiboot2_mod_LDFLAGS): Likewise.
24387 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24389 * conf/i386-pc.rmk: Likewise.
24391 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24392 (multiboot_mod_SOURCES): Remove variable.
24393 (multiboot_mod_LDFLAGS): Likewise.
24394 (multiboot_mod_CFLAGS): Likewise.
24396 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24397 `<multiboot2.h>' instead of `<multiboot.h>'.
24398 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24399 (MULTIBOOT_HEADER_MAGIC): New macros.
24401 * loader/multiboot_loader.c (module_version_status): Remove variable.
24402 (find_multi_boot2_header): Remove function.
24403 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24404 logic. Always check for the Multiboot version we're compiling for.
24405 (grub_cmd_module_loader): Likewise.
24406 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24407 command instead of `multiboot'.
24409 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24411 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24412 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24415 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24416 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24418 Fix breakage introduced with previous commit.
24420 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24422 * normal/handler.c (read_handler_list): Revert part of previous commit
24423 affecting this file.
24424 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24425 (grub_normal_execute): ... here.
24427 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24429 Merge prefix-redefinition-fix branch.
24431 * normal/autofs.c (read_fs_list): Make function capable of being
24432 run multiple times, gracefuly replacing the previous data
24434 * normal/dyncmd.c (read_command_list): Likewise.
24435 * normal/handler.c (read_handler_list): Likewise.
24436 * normal/main.c (read_lists): New function. Calls all the
24437 list reading functions.
24438 (grub_normal_execute): Use read_lists() instead of calling all
24439 list reading functions explicitly. Register read_lists() as a
24440 variable hook attached to ${prefix}.
24442 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24444 Merge crypto branch.
24446 * Makefile.in (pkglib_DATA): Add crypto.lst.
24447 (crypto.lst): New target.
24448 * commands/hashsum.c: New file.
24449 * commands/password.c (check_password): Use grub_crypto_memcmp.
24450 * commands/password_pbkdf2.c: New file.
24451 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24452 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24453 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24454 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24455 -I$(srcdir)/lib/libgcrypt_wrap.
24456 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24457 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24458 password_pbkdf2.mod.
24459 (crypto_mod_SOURCES): New variable.
24460 (crypto_mod_CFLAGS): Likewise.
24461 (crypto_mod_LDFLAGS): Likewise.
24462 (hashsum_mod_SOURCES): New variable.
24463 (hashsum_mod_CFLAGS): Likewise.
24464 (hashsum_mod_LDFLAGS): Likewise.
24465 (pbkdf2_mod_SOURCES): New variable.
24466 (pbkdf2_mod_CFLAGS): Likewise.
24467 (pbkdf2_mod_LDFLAGS): Likewise.
24468 (password_pbkdf2_mod_SOURCES): New variable.
24469 (password_pbkdf2_mod_CFLAGS): Likewise.
24470 (password_pbkdf2_mod_LDFLAGS): Likewise.
24471 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24472 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24473 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24474 Include conf/gcry.rmk.
24475 * include/grub/auth.h: Rewritten.
24476 * include/grub/crypto.h: New file.
24477 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24478 * include/grub/normal.h (read_crypto_list): New prototype.
24479 * lib/crypto.c: New file.
24480 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24481 * lib/pbkdf2.c: Likewise.
24482 * normal/auth.c (grub_auth_strcmp): Removed.
24483 (grub_iswordseparator): Likewise.
24484 (grub_auth_strword): Likewise.
24485 (is_authenticated): Use grub_strword.
24486 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24487 and grub_strword. Pass entered password to authentication callback.
24488 * normal/crypto.c: New file.
24489 * normal/main.c: Call read_crypto_list.
24490 * util/grub-mkpasswd-pbkdf2.c: New file.
24491 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24493 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24495 Fix descent and ascent calculation.
24497 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24498 (options): New option "asce".
24500 (add_char): Ignore invalid glyphs for descent calculation.
24501 Calculate ascent from actual content.
24502 (print_glyphs): Use 'asce'.
24503 (write_font): Likewise. Allow ascent override.
24504 (main): Handle "asce" option.
24506 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24508 * kern/err.c: Include `<grub/i18n.h>'.
24509 (grub_print_error): Add full stop. Gettextizze.
24510 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24511 (grub_bsd_load_elf): Capitalise ELF.
24512 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24513 (grub_cmd_freebsd_module): Likewise.
24514 (grub_cmd_freebsd_module_elf): Likewise.
24515 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24517 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24519 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24520 * commands/search_file.c (HELP_MESSAGE): New macro.
24521 * commands/search_label.c (HELP_MESSAGE): Likewise.
24522 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24523 * po/POTFILES: Add `commands/search_file.c',
24524 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24525 `commands/search.c'.
24527 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24529 * config.rpath: Update from Gnulib.
24531 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24533 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24535 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24537 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24539 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24541 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24542 arguments to fread so that we get a return value in bytes, rather
24543 than something that will normally be rounded down to 0.
24544 Adjust error handling to avoid producing garbage when size_t is not
24545 the same size as long long.
24547 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24549 * util/mkisofs/write.c (padblock_write): Check return value of
24552 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24554 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24557 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24559 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24561 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24562 instead of manual alignment.
24563 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24564 verbose). Avoid attempts to read past end of the device
24565 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24566 but GRUB_DISK_CACHE_SIZE may exceed that).
24568 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24570 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24571 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24574 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24576 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24578 (grub_efi_piwg_device_path): New structure
24579 (grub_efi_piwg_device_path_t): New type.
24580 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24581 (devpath_1): Transform to a structure. All users updated.
24582 (devpath_2): Likewise.
24583 (devpath_3): Likewise.
24584 (devpath_4): Likewise.
24585 (devpath_5): Likewise.
24587 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24589 * loader/efi/appleloader.c: Restored. Update all users.
24591 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24593 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24595 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24596 (struct boot_blocklist): Move from here ...
24597 * include/grub/i386/pc/boot.h [ASM_FILE]
24598 (struct grub_boot_blocklist): ... to here. Update all users.
24599 (setup): Only initialize `start' member of `first_block'
24600 structure. Add assert() calls to verify the other members.
24602 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24603 (generate_image): Fix broken blocklist length initialization.
24604 Add assert() call to verify blocklist `segment' field.
24606 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24608 * loader/efi/appleloader.c: Remove. Update all users.
24610 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24612 * boot/i386/pc/boot.S: Update copyright year.
24613 * boot/i386/pc/cdboot.S: Likewise.
24614 * boot/i386/pc/diskboot.S: Likewise.
24615 * boot/i386/pc/lnxboot.S: Likewise.
24616 * boot/i386/pc/pxeboot.S: Likewise.
24617 * bus/pci.c: Likewise.
24618 * commands/cmp.c: Likewise.
24619 * commands/help.c: Likewise.
24620 * commands/hexdump.c: Likewise.
24621 * commands/i386/pc/halt.c: Likewise.
24622 * commands/i386/pc/play.c: Likewise.
24623 * commands/i386/pc/vbeinfo.c: Likewise.
24624 * commands/ls.c: Likewise.
24625 * commands/test.c: Likewise.
24626 * disk/dmraid_nvidia.c: Likewise.
24627 * disk/i386/pc/biosdisk.c: Likewise.
24628 * disk/ieee1275/nand.c: Likewise.
24629 * disk/ieee1275/ofdisk.c: Likewise.
24630 * disk/lvm.c: Likewise.
24631 * disk/raid.c: Likewise.
24632 * disk/raid6_recover.c: Likewise.
24633 * disk/scsi.c: Likewise.
24634 * fs/affs.c: Likewise.
24635 * fs/cpio.c: Likewise.
24636 * fs/ext2.c: Likewise.
24637 * fs/hfs.c: Likewise.
24638 * fs/iso9660.c: Likewise.
24639 * fs/ntfs.c: Likewise.
24640 * fs/sfs.c: Likewise.
24641 * fs/udf.c: Likewise.
24642 * fs/ufs.c: Likewise.
24643 * fs/xfs.c: Likewise.
24644 * gencmdlist.sh: Likewise.
24645 * genmk.rb: Likewise.
24646 * include/grub/disk.h: Likewise.
24647 * include/grub/efi/api.h: Likewise.
24648 * include/grub/efi/efi.h: Likewise.
24649 * include/grub/efi/pe32.h: Likewise.
24650 * include/grub/elf.h: Likewise.
24651 * include/grub/fs.h: Likewise.
24652 * include/grub/i386/at_keyboard.h: Likewise.
24653 * include/grub/i386/pc/memory.h: Likewise.
24654 * include/grub/i386/pc/vbe.h: Likewise.
24655 * include/grub/i386/pci.h: Likewise.
24656 * include/grub/i386/tsc.h: Likewise.
24657 * include/grub/ieee1275/ieee1275.h: Likewise.
24658 * include/grub/ntfs.h: Likewise.
24659 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24660 * include/grub/sparc64/libgcc.h: Likewise.
24661 * include/grub/symbol.h: Likewise.
24662 * include/grub/types.h: Likewise.
24663 * include/multiboot2.h: Likewise.
24664 * io/gzio.c: Likewise.
24665 * kern/device.c: Likewise.
24666 * kern/disk.c: Likewise.
24667 * kern/efi/efi.c: Likewise.
24668 * kern/efi/mm.c: Likewise.
24669 * kern/elf.c: Likewise.
24670 * kern/file.c: Likewise.
24671 * kern/i386/dl.c: Likewise.
24672 * kern/i386/pc/init.c: Likewise.
24673 * kern/i386/pc/startup.S: Likewise.
24674 * kern/ieee1275/ieee1275.c: Likewise.
24675 * kern/ieee1275/init.c: Likewise.
24676 * kern/main.c: Likewise.
24677 * kern/mm.c: Likewise.
24678 * kern/powerpc/dl.c: Likewise.
24679 * kern/sparc64/dl.c: Likewise.
24680 * kern/x86_64/dl.c: Likewise.
24681 * lib/hexdump.c: Likewise.
24682 * loader/efi/appleloader.c: Likewise.
24683 * loader/i386/ieee1275/linux.c: Likewise.
24684 * loader/i386/pc/chainloader.c: Likewise.
24685 * loader/i386/pc/linux.c: Likewise.
24686 * loader/i386/pc/multiboot2.c: Likewise.
24687 * loader/ieee1275/multiboot2.c: Likewise.
24688 * loader/multiboot2.c: Likewise.
24689 * loader/multiboot_loader.c: Likewise.
24690 * loader/powerpc/ieee1275/linux.c: Likewise.
24691 * normal/completion.c: Likewise.
24692 * normal/menu_entry.c: Likewise.
24693 * partmap/apple.c: Likewise.
24694 * util/grub.d/10_hurd.in: Likewise.
24695 * util/hostfs.c: Likewise.
24696 * video/readers/png.c: Likewise.
24698 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24700 * include/grub/misc.h (GNUC_PREREQ): New macro.
24701 (ATTRIBUTE_ERROR): New macro.
24702 * include/grub/list.h (grub_bad_type_cast_real): Use
24705 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24707 * normal/menu_text.c (print_message): Change messages.
24709 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24711 * normal/menu_entry.c (store_completion): Gettextizze.
24713 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24715 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
24717 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24719 * po/POTFILES: Sort correctly.
24721 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24723 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
24724 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
24725 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
24727 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
24728 summary. Gettextizze the strings.
24729 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
24730 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
24731 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
24733 (GRUB_MOD_INIT): Remove command name from summary.
24734 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
24736 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
24737 * term/i386/pc/serial.c (options): Add full stops.
24738 (GRUB_MOD_INIT): Remove command name from the summary.
24740 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24742 * commands/acpi.c: Gettextizze help strings and/or options. Include
24743 `grub/i18n.h' if needed.
24744 * commands/blocklist.c: Likewise.
24745 * commands/boot.c: Likewise.
24746 * commands/cat.c: Likewise.
24747 * commands/cmp.c: Likewise.
24748 * commands/configfile.c: Likewise.
24749 * commands/crc.c: Likewise.
24750 * commands/date.c: Likewise.
24751 * commands/echo.c: Likewise.
24752 * commands/efi/fixvideo.c: Likewise.
24753 * commands/efi/loadbios.c: Likewise.
24754 * commands/gptsync.c: Likewise.
24755 * commands/halt.c: Likewise.
24756 * commands/handler.c: Likewise.
24757 * commands/hdparm.c: Likewise.
24758 * commands/hexdump.c: Likewise.
24759 * commands/i386/cpuid.c: Likewise.
24760 * commands/i386/pc/drivemap.c: Likewise.
24761 * commands/i386/pc/halt.c: Likewise.
24762 * commands/i386/pc/pxecmd.c: Likewise.
24763 * commands/i386/pc/vbeinfo.c: Likewise.
24764 * commands/i386/pc/vbetest.c: Likewise.
24765 * commands/ieee1275/suspend.c: Likewise.
24766 * commands/keystatus.c: Likewise.
24767 * commands/loadenv.c: Likewise.
24768 * commands/ls.c: Likewise.
24769 * commands/lsmmap.c: Likewise.
24770 * commands/lspci.c: Likewise.
24771 * commands/memrw.c: Likewise.
24772 * commands/minicmd.c: Likewise.
24773 * commands/parttool.c: Likewise.
24774 * commands/password.c: Likewise.
24775 * commands/probe.c: Likewise.
24776 * commands/read.c: Likewise.
24777 * commands/reboot.c: Likewise.
24778 * commands/search.c: Likewise.
24779 * commands/sleep.c: Likewise.
24780 * commands/test.c: Likewise.
24781 * commands/true.c: Likewise.
24782 * commands/usbtest.c: Likewise.
24783 * commands/videotest.c: Likewise.
24784 * commands/xnu_uuid.c: Likewise.
24785 * disk/loopback.c: Likewise.
24786 * hello/hello.c: Likewise.
24787 * loader/i386/bsd.c: Likewise.
24788 * term/i386/pc/serial.c: Likewise.
24789 * po/POTFILES: Add new files.
24791 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
24793 * term/i386/pc/at_keyboard.c
24794 (keyboard_controller_wait_untill_ready): Rename to ...
24795 (keyboard_controller_wait_until_ready): ... this. Update all users.
24797 2010-01-01 Carles Pina i Estany <carles@pina.cat>
24799 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
24800 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
24801 string using string width.
24802 * normal/menu_text.c (grub_print_message_indented): Use
24803 grub_print_spaces and not print_spaces.
24804 (print_timeout): Likewise.
24805 (print_spaces): Move to...
24806 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
24808 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
24810 Import from Gnulib.
24812 * gnulib/getdelim.c: New file.
24813 * gnulib/getline.c: Likewise.
24815 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
24817 * include/grub/list.h (grub_assert_fail): Removed.
24818 (grub_bad_type_cast_real): New function.
24819 (grub_bad_type_cast): New macro.
24820 (GRUB_AS_LIST): Use grub_bad_type_cast.
24821 (GRUB_AS_LIST_P): Likewise.
24822 (GRUB_AS_NAMED_LIST): Likewise.
24823 (GRUB_AS_NAMED_LIST_P): Likewise.
24824 (GRUB_AS_PRIO_LIST): Likewise.
24825 (GRUB_AS_PRIO_LIST_P): Likewise.
24826 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
24828 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
24830 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
24833 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
24835 * configure.ac: Check for TARGET_CFLAGS initialization before we
24836 initialize it ourselves (sigh).
24837 Move a few modifications to TARGET_CFLAGS to be unconditional
24838 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
24841 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
24842 * term/i386/pc/at_keyboard.c
24843 (keyboard_controller_wait_untill_ready): Likewise.
24844 (keyboard_controller_led): Rename `led_status' paramter to avoid
24847 2009-12-28 Carles Pina i Estany <carles@pina.cat>
24849 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
24852 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24854 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
24856 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24858 * normal/menu_text.c (grub_print_message_indented): Prevent
24859 past-the-end-of-array dereference.
24861 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24863 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
24864 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
24866 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24868 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
24869 * normal/main.c (grub_normal_read_line): Remove a space from the
24872 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24874 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
24875 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24876 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24877 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24878 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24879 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24880 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24882 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24884 * video/readers/jpeg.c (cmd): Declare.
24885 (grub_cmd_jpegtest): Use `grub_command_t' type.
24886 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24888 (GRUB_MOD_FINI): Use `cmd' to unregister.
24889 * video/readers/png.c (cmd): Declare.
24890 (grub_cmd_pngtest): Use `grub_command_t' type.
24891 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24893 (GRUB_MOD_FINI): Use `cmd' to unregister.
24894 * video/readers/tga.c (cmd): Declare.
24895 (grub_cmd_tgatest): Use `grub_command_t' type.
24896 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24898 (GRUB_MOD_FINI): Use `cmd' to unregister.
24900 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24902 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
24904 * kern/corecmd.c (grub_register_core_commands): Likewise.
24905 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
24906 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24907 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
24908 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24909 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24910 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
24911 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24912 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
24913 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24914 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24915 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24916 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24917 * normal/handler.c (insert_handler): Likewise.
24918 * normal/main.c (GRUB_MOD_INIT): Likewise.
24919 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24921 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24923 * commands/help.c (grub_cmd_help): Print the command name before the
24925 (GRUB_MOD_INIT): Remove command name from the summary.
24926 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
24928 * lib/arg.c (find_long): Print the command name before the summary.
24929 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
24931 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
24932 * commands/cat.c (GRUB_MOD_INIT): Likewise.
24933 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
24934 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24935 * commands/crc.c (GRUB_MOD_INIT): Likewise.
24936 * commands/date.c (GRUB_MOD_INIT): Likewise.
24937 * commands/echo.c (GRUB_MOD_INIT): Likewise.
24938 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
24939 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24940 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24941 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
24942 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
24943 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
24944 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
24945 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24946 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
24947 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
24948 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
24949 * commands/ls.c (GRUB_MOD_INIT): Likewise.
24950 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24951 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24952 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24953 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
24954 * commands/password.c (GRUB_MOD_INIT): Likewise.
24955 * commands/probe.c (GRUB_MOD_INIT): Likewise.
24956 * commands/read.c (GRUB_MOD_INIT): Likewise.
24957 * commands/search.c (GRUB_MOD_INIT): Likewise.
24958 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
24959 * commands/test.c (GRUB_MOD_INIT): Likewise.
24960 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
24961 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24962 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24963 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
24964 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24965 * lib/arg.c (GRUB_MOD_INIT): Likewise.
24966 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
24967 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24968 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24969 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24970 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24971 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
24972 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
24973 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
24975 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24977 Use search command for preliminar UUID search.
24979 * commands/search.c: Split into ...
24980 * commands/search_wrap.c: ...this
24981 * commands/search.c: ...and this.
24982 * commands/search_file.c: New file.
24983 * commands/search_label.c: New file.
24984 * commands/search_uuid.c: New file.
24985 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
24986 Add commands/search_wrap.c, commands/search_file.c,
24987 commands/search_label.c and commands/search_uuid.c.
24988 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
24989 (search_mod_SOURCES): Set to commands/search_wrap.c.
24990 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
24992 (search_fs_file_mod_SOURCES): New variable.
24993 (search_fs_file_mod_CFLAGS): Likewise.
24994 (search_fs_file_mod_LDFLAGS): Likewise.
24995 (search_label_mod_SOURCES): Likewise.
24996 (search_label_mod_CFLAGS): Likewise.
24997 (search_label_mod_LDFLAGS): Likewise.
24998 (search_fs_uuid_mod_SOURCES): New variable.
24999 (search_fs_uuid_mod_CFLAGS): Likewise.
25000 (search_fs_uuid_mod_LDFLAGS): Likewise.
25001 (fs_file_mod_SOURCES): Removed.
25002 (fs_file_mod_CFLAGS): Likewise.
25003 (fs_file_mod_LDFLAGS): Likewise.
25004 (fs_uuid_mod_SOURCES): Removed.
25005 (fs_uuid_mod_CFLAGS): Likewise.
25006 (fs_uuid_mod_LDFLAGS): Likewise.
25007 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25008 Set to util/grub-install.in.
25009 * disk/fs_file.c: Removed.
25010 * disk/fs_uuid.c: Likewise.
25011 * include/grub/search.h: New file.
25012 * util/grub-install.in: Handle sparc64.
25013 Create and use load.cfg.
25014 * util/sparc64/ieee1275/grub-install.in: Removed.
25016 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25018 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25019 Ignore return status if CF is cleared.
25020 (grub_biosdisk_get_diskinfo_standard): Likewise.
25022 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25024 * term/i386/pc/at_keyboard.c
25025 (keyboard_controller_wait_untill_ready): New function.
25026 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25027 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25028 for keyboard polling, rather than duplicate the same loop. This
25029 saves a few bytes in code size.
25031 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25033 Support for (pxe[:server[:gateway]]) syntax and
25034 use environment variable for PXE.
25036 * commands/i386/pc/pxecmd.c (options): Removed.
25037 (print_ip): Removed.
25038 (grub_cmd_pxe): Removed
25039 (grub_cmd_pxe_unload): New function.
25040 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25041 (grub_pxe_your_ip): Made static.
25042 (grub_pxe_default_server_ip): Likewise.
25043 (grub_pxe_default_gateway_ip): Likewise.
25044 (grub_pxe_blksize): Likewise.
25045 (parse_ip): New function.
25046 (grub_pxe_open): Support server and gateway specification.
25047 (grub_pxe_close): Free disk->data.
25048 (grub_pxefs_open): Use disk->data.
25049 (grub_pxefs_read): Likewise.
25050 (grub_env_write_readonly): New function.
25051 (set_mac_env): Likewise.
25052 (set_env_limn_ro): Likewise.
25053 (parse_dhcp_vendor): Likewise.
25054 (grub_pxe_detect): Set the environment variables.
25055 (set_ip_env): New function.
25056 (write_ip_env): Likewise.
25057 (grub_env_write_pxe_default_server): Likewise.
25058 (grub_env_write_pxe_default_gateway): Likewise.
25059 (grub_env_write_pxe_blocksize): Likewise.
25060 (GRUB_MOD_INIT(pxe)): Set environment variables.
25061 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25062 (grub_pxe_mac_addr_t): ... this. All users updated.
25063 (grub_pxe_your_ip): Removed.
25064 (grub_pxe_server_ip): Likewise.
25065 (grub_pxe_gateway_ip): Likewise.
25066 (grub_pxe_blksize): Likewise.
25068 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25070 * commands/help.c: Include `<grub/i18n.h>'.
25071 (grub_cmd_help): Gettextizze.
25072 (GRUB_MOD_INIT): Likewise.
25073 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25074 (GRUB_MOD_INIT): Gettextizze.
25075 * commands/search.c: Include `<grub/i18n.h>'.
25076 (options): Gettextizze.
25077 (GRUB_MOD_INIT): Gettextizze.
25078 * lib/arg.c: Include `<grub/i18n.h>'.
25079 (help_options): Gettextizze.
25080 (find_long): Likewise.
25081 (grub_arg_show_help): Likewise.
25082 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25083 (read_command_list): Gettextizze.
25084 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25085 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25087 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25089 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25090 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25091 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25092 (led_status): New variable.
25093 (keyboard_controller_led): New function.
25094 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25095 update led status for caps lock, num lock and scroll lock.
25097 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25099 * util/hostdisk.c (open_device): Fix a comment.
25101 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25103 * util/grub-install.in (host_os): New variable.
25104 * util/i386/efi/grub-install.in (host_os): Likewise.
25106 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25108 * util/mkisofs/write.c (padblock_write): Abort when given an
25109 excedingly large embed image, instead of silently truncating it.
25111 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25113 * include/multiboot.h: Indentation fixes.
25115 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25117 * include/multiboot.h (struct multiboot_aout_symbol_table)
25118 (struct multiboot_elf_section_header_table): New structure
25119 declarations (stolen from GRUB Legacy).
25120 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25123 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25124 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25127 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25129 * include/multiboot.h: Make comments src2texi-friendly.
25131 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25133 For consistency with [multiboot]/docs/boot.S.
25135 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25136 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25137 (MULTIBOOT_MAGIC2): Rename from this ...
25138 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25140 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25142 * include/multiboot.h: Remove `<grub/types.h>'.
25143 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25144 types. Update all users.
25146 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25148 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25149 `couldn't' and `can not' by `cannot'.
25150 * commands/i386/pc/drivemap.c: Likewise.
25151 * disk/ata.c: Likewise.
25152 * disk/ieee1275/nand.c: Likewise.
25153 * fs/affs.c: Likewise.
25154 * fs/fat.c: Likewise.
25155 * fs/hfs.c: Likewise.
25156 * fs/hfsplus.c: Likewise.
25157 * fs/iso9660.c: Likewise.
25158 * fs/jfs.c: Likewise.
25159 * fs/minix.c: Likewise.
25160 * fs/reiserfs.c: Likewise.
25161 * fs/sfs.c: Likewise.
25162 * fs/udf.c: Likewise.
25163 * fs/ufs.c: Likewise.
25164 * fs/xfs.c: Likewise.
25165 * loader/powerpc/ieee1275/linux.c: Likewise.
25166 * loader/sparc64/ieee1275/linux.c: Likewise.
25167 * util/grub-probe.c: Likewise.
25168 * util/misc.c: Likewise.
25170 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25172 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25174 * commands/acpi.c: Likewise.
25175 * commands/blocklist.c: Likewise.
25176 * commands/efi/loadbios.c: Likewise.
25177 * commands/i386/pc/drivemap.c: Likewise.
25178 * commands/loadenv.c: Likewise.
25179 * commands/memrw.c: Likewise.
25180 * commands/password.c: Likewise.
25181 * commands/videotest.c: Likewise.
25182 * disk/ata.c: Likewise.
25183 * disk/ata_pthru.c: Likewise.
25184 * disk/dmraid_nvidia.c: Likewise.
25185 * disk/ieee1275/nand.c: Likewise.
25186 * disk/ieee1275/ofdisk.c: Likewise.
25187 * disk/loopback.c: Likewise.
25188 * disk/lvm.c: Likewise.
25189 * disk/mdraid_linux.c: Likewise.
25190 * disk/raid.c: Likewise.
25191 * disk/raid6_recover.c: Likewise.
25192 * disk/scsi.c: Likewise.
25193 * efiemu/main.c: Likewise.
25194 * efiemu/mm.c: Likewise.
25195 * efiemu/pnvram.c: Likewise.
25196 * efiemu/symbols.c: Likewise.
25197 * font/font.c: Likewise.
25198 * fs/cpio.c: Likewise.
25199 * fs/hfsplus.c: Likewise.
25200 * fs/iso9660.c: Likewise.
25201 * fs/jfs.c: Likewise.
25202 * fs/minix.c: Likewise.
25203 * fs/ntfs.c: Likewise.
25204 * fs/ntfscomp.c: Likewise.
25205 * fs/reiserfs.c: Likewise.
25206 * fs/ufs.c: Likewise.
25207 * fs/xfs.c: Likewise.
25208 * gettext/gettext.c: Likewise.
25209 * include/grub/auth.h: Likewise.
25210 * kern/elf.c: Likewise.
25211 * kern/file.c: Likewise.
25212 * kern/ieee1275/init.c: Likewise.
25213 * kern/ieee1275/mmap.c: Likewise.
25214 * kern/ieee1275/openfw.c: Likewise.
25215 * kern/powerpc/dl.c: Likewise.
25216 * kern/sparc64/dl.c: Likewise.
25217 * lib/arg.c: Likewise.
25218 * loader/i386/bsd.c: Likewise.
25219 * loader/i386/bsdXX.c: Likewise.
25220 * loader/i386/efi/linux.c: Likewise.
25221 * loader/i386/efi/xnu.c: Likewise.
25222 * loader/i386/ieee1275/linux.c: Likewise.
25223 * loader/i386/linux.c: Likewise.
25224 * loader/i386/multiboot.c: Likewise.
25225 * loader/i386/pc/linux.c: Likewise.
25226 * loader/i386/pc/multiboot2.c: Likewise.
25227 * loader/i386/xnu.c: Likewise.
25228 * loader/ieee1275/multiboot2.c: Likewise.
25229 * loader/macho.c: Likewise.
25230 * loader/machoXX.c: Likewise.
25231 * loader/multiboot2.c: Likewise.
25232 * loader/multiboot_loader.c: Likewise.
25233 * loader/powerpc/ieee1275/linux.c: Likewise.
25234 * loader/sparc64/ieee1275/linux.c: Likewise.
25235 * loader/xnu.c: Likewise.
25236 * loader/xnu_resume.c: Likewise.
25237 * mmap/i386/pc/mmap.c: Likewise.
25238 * normal/menu_viewer.c: Likewise.
25239 * partmap/acorn.c: Likewise.
25240 * partmap/amiga.c: Likewise.
25241 * partmap/apple.c: Likewise.
25242 * script/lexer.c: Likewise.
25243 * term/gfxterm.c: Likewise.
25244 * term/i386/pc/serial.c: Likewise.
25245 * term/i386/pc/vga.c: Likewise.
25246 * term/ieee1275/ofconsole.c: Likewise.
25247 * term/terminfo.c: Likewise.
25248 * video/bitmap.c: Likewise.
25249 * video/efi_gop.c: Likewise.
25250 * video/efi_uga.c: Likewise.
25251 * video/fb/video_fb.c: Likewise.
25252 * video/i386/pc/vbe.c: Likewise.
25253 * video/readers/tga.c: Likewise.
25254 * video/video.c: Likewise.
25256 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25258 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25259 * commands/lspci.c: Likewise.
25260 * commands/probe.c: Likewise.
25261 * commands/xnu_uuid.c: Likewise.
25262 * conf/i386-coreboot.rmk: Likewise.
25263 * conf/i386-efi.rmk: Likewise.
25264 * conf/i386-ieee1275.rmk: Likewise.
25265 * conf/i386-pc.rmk: Likewise.
25266 * conf/powerpc-ieee1275.rmk: Likewise.
25267 * conf/sparc64-ieee1275.rmk: Likewise.
25268 * conf/x86_64-efi.rmk: Likewise.
25269 * fs/i386/pc/pxe.c: Likewise.
25270 * gettext/gettext.c: Likewise.
25271 * include/grub/efi/graphics_output.h: Likewise.
25272 * include/grub/i386/pc/memory.h: Likewise.
25273 * kern/env.c: Likewise.
25274 * kern/i386/qemu/startup.S: Likewise.
25275 * lib/i386/pc/biosnum.c: Likewise.
25276 * lib/i386/relocator.c: Likewise.
25277 * lib/i386/relocator_asm.S: Likewise.
25278 * lib/relocator.c: Likewise.
25279 * loader/i386/bsd.c: Likewise.
25280 * loader/i386/multiboot.c: Likewise.
25281 * loader/i386/pc/chainloader.c: Likewise.
25282 * loader/i386/xnu.c: Likewise.
25283 * loader/xnu.c: Likewise.
25284 * normal/main.c: Likewise.
25285 * normal/menu_text.c: Likewise.
25286 * util/getroot.c: Likewise.
25287 * util/grub-mkconfig_lib.in: Likewise.
25288 * util/grub.d/00_header.in: Likewise.
25289 * util/i386/pc/grub-mkimage.c: Likewise.
25290 * util/mkisofs/eltorito.c: Likewise.
25291 * util/mkisofs/exclude.h: Likewise.
25292 * util/mkisofs/hash.c: Likewise.
25293 * util/mkisofs/iso9660.h: Likewise.
25294 * util/mkisofs/joliet.c: Likewise.
25295 * util/mkisofs/mkisofs.c: Likewise.
25296 * util/mkisofs/mkisofs.h: Likewise.
25297 * util/mkisofs/multi.c: Likewise.
25298 * util/mkisofs/name.c: Likewise.
25299 * util/mkisofs/rock.c: Likewise.
25300 * util/mkisofs/tree.c: Likewise.
25301 * util/mkisofs/write.c: Likewise.
25302 * video/efi_gop.c: Likewise.
25304 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25306 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25309 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25311 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25312 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25314 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25316 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25317 (GRUB_MOD_INIT(memrw)): Update help line.
25319 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25321 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25322 Use grub_extcmd_t. All users updated.
25323 (options): New variable.
25324 (grub_cmd_read): Restructure for readability. Support "-v" option.
25325 (grub_cmd_write): Restructure for readability.
25327 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25329 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25331 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25333 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25334 with the actual contents of the correspondending make variable.
25335 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25336 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25337 specifying `*.lst' and `efiemu??.o'
25339 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25341 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25342 after function name.
25343 Noticed by Rene Engelhard <rene@debian.org>.
25345 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25347 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25348 (options): New variable.
25349 (iospace): Likewise.
25350 (grub_lspci_iter): List IO spaces if "-i" was given.
25351 (grub_cmd_lspci): Parse options.
25352 (GRUB_MOD_INIT(lspci)): Use extcmd.
25353 (GRUB_MOD_FINI(lspci)): Likewise.
25355 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25357 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25358 `function' keyword.
25359 Patch by Tony Mancill <tmancill@debian.org>.
25361 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25363 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25364 (grub_uhci_portstatus): Likewise.
25365 (grub_uhci_portstatus): Add necessary delay.
25366 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25368 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25370 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25371 (GRUB_MOD_INIT): Likewise.
25372 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25373 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25374 * commands/echo.c (options): Fix capitalizations and/or full stops.
25375 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25376 (enable_rom_area): Likewise.
25377 (GRUB_MOD_INIT): Likewise.
25378 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25379 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25380 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25381 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25382 * commands/hexdump.c (options): Likewise.
25383 * commands/i386/cpuid.c (options): Likewise.
25384 (GRUB_MOD_INIT): Likewise.
25385 * commands/i386/pc/drivemap.c (options): Likewise.
25386 (GRUB_MOD_INIT): Likewise.
25387 * commands/i386/pc/halt (options): Likewise.
25388 (GRUB_MOD_INIT): Likewise.
25389 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25390 * commands/i386/pc/pxecmd.c (options): Likewise.
25391 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25392 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25393 * commands/keystatus.c (options): Likewise.
25394 (GRUB_MOD_INIT): Likewise.
25395 * commands/loadenv.c (options): Likewise.
25396 * commands/ls.c (options): Likewise.
25397 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25398 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25399 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25400 * commands/parttool.c (helpmsg): Likewise.
25401 * commands/probe.c (options): Likewise.
25402 * commands/read.c (GRUB_MOD_INIT): Likewise.
25403 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25404 * commands/search.c (options): Likewise.
25405 * commands/sleep.c (options): Likewise.
25406 * commands/test.c (GRUB_MOD_INIT): Likewise.
25407 * commands/true.c (GRUB_MOD_INIT): Likewise.
25408 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25409 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25410 * lib/arg.c (help_options): Likewise.
25411 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25413 * po/POTFILES: Add `commands/loadenv.c'.
25415 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25417 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25418 instead of specifying them explicit.
25420 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25422 * NEWS: Add grub-probe support for GNU/Hurd.
25424 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25426 * NEWS: gettext was added after 1.97.
25428 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25430 * util/mkisofs/msdos_partition.h: New file (based on
25431 include/grub/msdos_partition.h).
25432 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25433 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25434 (ld_options, main): Recognize --protective-msdos-label.
25435 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25436 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25437 (padblock_write): If `use_protective_msdos_label' is set, patch a
25438 protective DOS-style label in the output image.
25440 * util/grub-mkrescue.in: Use --protective-msdos-label.
25442 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25444 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25447 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25449 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25451 (ld_options, main): Recognize `--embedded-boot'.
25452 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25454 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25455 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25456 (padblock_write): Likewise. Rewrite to support embedded boot image.
25458 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25459 for BIOS-based disk boot instead of only ElTorito.
25461 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25463 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25464 build (not needed for bootstrap).
25466 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25468 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25469 from i386-pc build (not needed for bootstrap).
25470 Rewrite a pair of strings.
25472 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25474 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25476 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25478 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25480 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25482 * kern/env.c (grub_env_context_open): Mark exported variable for
25485 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25487 * kern/env.c (grub_env_export): Create nonexistent variables before
25490 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25492 * include/grub/auth.h: Include `<grub/i18n.h>'.
25493 (GRUB_GET_PASSWORD): Gettextizze string.
25494 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25496 (grub_utf8_to_ucs4_alloc): Fix indentation.
25497 (grub_print_ucs4): Likewise.
25498 (grub_getstringwidth): Likewise.
25499 (print_message_indented): New declaration.
25500 * normal/auth.c: Include `<grub/i18n.h>'.
25501 (grub_auth_check_authentication): Gettexttize string.
25502 * normal/cmdline.c: Include `<grub/i18n.h>'.
25503 (grub_cmdline_get): Gettextizze.
25504 * normal/color.c: Include `<grub/i18n.h>'.
25505 (grub_parse_color_name_pair): Gettexttize strings.
25506 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25507 string (use `print_message_indented').
25508 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25509 `include/grub/normal.h'.
25510 (print_message_indented): Renamed to ...
25511 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25512 used in normal/main.c).
25513 (print_message): Use `grub_print_message_indented' instead of
25514 `print_message_indented'.
25515 (print_timeout): Likewise.
25516 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25517 (grub_normal_print_device_info): Gettexttize strings.
25518 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25520 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25522 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25523 of arguments. Return number of tokens and not arguments. All users
25526 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25528 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25529 non-MSDOS paritions.
25531 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25533 * include/grub/types.h (UNUSED): Removed since it conflicts with
25534 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25535 Reported by Grégoire Sutre.
25537 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25539 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25540 (grub_print_ucs4_alloc): Likewise.
25541 (grub_getstringwidth): Likewise.
25542 * normal/main.c (grub_normal_init_page): Gettextize version string.
25543 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25544 (getstringwidth): Renamed to ...
25545 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25546 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25547 (grub_print_ucs4): Remove `static' qualifer (now used in
25549 * po/POTFILES: Add normal/main.c.
25551 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25553 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25554 (print_message_indented): Add `margin_left' and `margin_right'
25556 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25558 (print_timeout): Use `print_message_indented' to print the message.
25559 Deletes `second_stage' parameter.
25560 (run_menu): Update `print_timeout' calls.
25562 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25564 Fix console palette on OpenFirmware.
25566 * term/ieee1275/ofconsole.c (MAX): Removed.
25567 (colors): Redone based on VGA palette.
25568 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25569 colors are supported.
25570 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25572 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25574 Fix potential EfiEmu double prepare.
25576 * efiemu/main.c (prepared): New variable
25577 (grub_efiemu_unload): Set prepare to '0'.
25578 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25580 set_virtual_address_map support.
25582 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25584 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25586 (grub_efiemu_crc32): Likewise.
25587 (grub_efiemu_crc64): Likewise.
25588 (grub_efiemu_set_virtual_address_map): Likewise.
25589 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25591 (grub_autoefi_set_virtual_address_map): Likewise.
25592 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25593 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25594 Restructure flow to accomodate it.
25595 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25596 (grub_efiemu_crc): Recompute CRC32.
25597 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25598 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25599 * efiemu/symbols.c (relocated_handle): New variable.
25600 (grub_efiemu_free_syms): Free relocated_handle.
25601 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25602 (grub_efiemu_write_sym_markers): New function.
25603 (grub_efiemu_set_virtual_address_map): Likewise.
25605 Newer XNU parameters.
25607 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25608 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25609 (grub_xnu_fill_devicetree): New prototype.
25610 (grub_xnu_heap_real_start): New variable.
25611 * loader/xnu.c (get_name_ptr): New function.
25612 (grub_xnu_load_driver): Fill namelen and name.
25614 64-bit xnu support.
25616 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25617 and 'loader/macho64.c'.
25618 * conf/i386-pc.rmk: Likewise.
25619 * conf/x86_64-efi.rmk: Likewise.
25620 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25621 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25622 * include/grub/macho.h (grub_macho_segment64): New structure.
25623 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25624 (grub_macho_size32): ... to this.
25625 (grub_macho32_get_entry_point): Renamed from ...
25626 (grub_macho_get_entry_point32): ... to this.
25627 (grub_macho_contains_macho64): New prototype.
25628 (grub_macho_size64): Likewise.
25629 (grub_macho_get_entry_point64): Likewise.
25630 (grub_macho32_load): Renamed from ...
25631 (grub_macho_load32): ... to this.
25632 (grub_macho32_filesize): Renamed from ...
25633 (grub_macho_filesize32): ... to this.
25634 (grub_macho32_readfile): Renamed from ...
25635 (grub_macho_readfile32): ... to this.
25636 (grub_macho_filesize64): New prototype.
25637 (grub_macho_readfile64): Likewise.
25638 (grub_macho_parse32): Likewise.
25639 (grub_macho_parse64): Likewise.
25640 * loader/macho.c: Split into ...
25641 * loader/machoXX.c: ... and this. Replace 32 with XX.
25642 * loader/macho32.c: New file.
25643 * loader/macho64.c: Likewise.
25644 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25645 (grub_cmd_xnu_kernel): Make 32-bit only.
25646 (grub_cmd_xnu_kernel64): New function.
25647 (grub_xnu_load_driver): Support Mach-O 64.
25648 (grub_cmd_xnu_mkext): Likewise.
25649 * util/grub.d/30_os-prober.in (osx_entry): New function.
25650 Generate entries for 64-bit boot too.
25652 Eliminate ad-hoc tree format in XNU and EfiEmu.
25654 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25655 * efiemu/pnvram.c: Rewritten to use environment variables.
25658 Inline utf16_to_utf8.
25660 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25661 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25663 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25665 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25666 * commands/usbtest.c (grub_usb_get_string): ... move here.
25667 (usb_print_str): Fix error handling.
25668 * include/grub/usb.h (grub_usb_get_string): Remove.
25670 UTF-8 to UTF-16 transformation.
25672 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25673 (charset_mod_SOURCES): New variable.
25674 (charset_mod_CFLAGS): Likewise.
25675 (charset_mod_LDFLAGS): Likewise.
25676 * include/grub/utf.h: New file.
25677 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25679 Support for device properties.
25681 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25682 (grub_xnu_devprop_device_header): Likewise.
25683 (grub_xnu_devprop_device_descriptor): Likewise.
25684 (grub_xnu_devprop_add_device): New prototype.
25685 (grub_xnu_devprop_remove_device): Likewise.
25686 (grub_xnu_devprop_remove_property): Likewise.
25687 (grub_xnu_devprop_add_property_utf8): Likewise.
25688 (grub_xnu_devprop_add_property_utf16): Likewise.
25689 (grub_cpu_xnu_init): Likewise.
25690 (grub_cpu_xnu_fini): Likewise.
25691 (grub_cpu_xnu_unload): Likewise.
25692 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25693 (property_descriptor): Likewise.
25694 (devices): New variable.
25695 (grub_xnu_devprop_remove_property): New function.
25696 (grub_xnu_devprop_add_device): Likewise.
25697 (grub_xnu_devprop_remove_device): Likewise.
25698 (grub_xnu_devprop_add_property): Likewise.
25699 (grub_xnu_devprop_add_property_utf8): Likewise.
25700 (grub_xnu_devprop_add_property_utf16): Likewise.
25701 (hextoval): Likewise.
25702 (grub_cpu_xnu_fill_devprop): Likewise.
25703 (grub_cmd_devprop_load): Likewise.
25704 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25705 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25706 (cmd_devprop_load): New variable.
25707 (grub_cpu_xnu_init): New function.
25708 (grub_cpu_xnu_fini): Likewise.
25709 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
25710 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
25711 (grub_cmd_xnu_devtree): Likewise.
25712 (hextoval): New function.
25713 (unescape): Likewise.
25714 (grub_xnu_fill_devicetree): Likewise.
25716 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
25717 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
25719 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25721 Workaround for broken ATI VBE.
25723 * video/i386/pc/vbe.c (last_set_mode): New variable.
25724 (grub_vbe_set_video_mode): Set 'last_set_mode'.
25725 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
25726 (grub_video_vbe_setup): Don't check for reserved flag.
25728 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
25730 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
25731 the `find' command.
25733 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
25735 UUID support for HFS.
25737 * fs/hfs.c (grub_hfs_uuid): New function.
25738 (grub_hfs_fs): New value .uuid.
25739 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
25741 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
25743 Fix a segfault with parsing unknown long options.
25745 * util/grub-mkrelpath.c (options): Zero terminate it.
25747 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25749 * include/grub/misc.h (grub_puts): New declaration.
25750 (grub_puts_): Likewise.
25751 * kern/misc.c (grub_puts): New definition.
25752 (grub_puts_): Likewise.
25754 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25756 * util/grub-probe.c (probe): Improve error message.
25758 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25760 * loader/i386/multiboot_elfxx.c
25761 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
25764 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25766 Relocator framework
25768 * loader/i386/xnu_helper.S: Removed. All users updated.
25769 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
25770 (relocator_mod_SOURCES): New variable.
25771 (relocator_mod_CFLAGS): Likewise.
25772 (relocator_mod_LDFLAGS): Likewise.
25773 (relocator_mod_ASFLAGS): Likewise.
25774 * conf/x86_64.rmk: Likewise.
25775 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
25776 (grub_multiboot_payload_entry_offset): Likewise.
25777 (grub_multiboot_forward_relocator): Likewise.
25778 (grub_multiboot_forward_relocator_end): Likewise.
25779 (grub_multiboot_backward_relocator): Likewise.
25780 (grub_multiboot_backward_relocator_end): Likewise.
25781 (grub_multiboot_payload_eip): New variable.
25782 (grub_multiboot_payload_orig): Likewise.
25783 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
25784 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
25785 * include/grub/i386/memory.h
25786 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
25787 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
25788 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
25789 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
25790 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
25791 * include/grub/i386/relocator.h: New file.
25792 * include/grub/x86_64/relocator.h: Likewise.
25793 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
25794 (XNU_RELOCATOR): New macro.
25795 (grub_xnu_launcher_start): Remove.
25796 (grub_xnu_launcher_end): Likewise.
25797 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
25798 (grub_xnu_heap_real_start): Remove.
25799 (grub_xnu_heap_start): Change to void *. All users updated.
25800 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
25801 * lib/i386/relocator.c: New file.
25802 * lib/i386/relocator_asm.S: Likewise.
25803 * lib/i386/relocator_backward.S: Likewise.
25804 * lib/mips/relocator.c: Likewise.
25805 * lib/mips/relocator_asm.S: Likewise.
25806 * lib/relocator.c: Likewise.
25807 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
25809 (playground): Likewise.
25810 (grub_multiboot_payload_orig): New variable.
25811 (grub_multiboot_payload_dest): Likewise.
25812 (grub_multiboot_payload_size): Likewise.
25813 (grub_multiboot_payload_eip): Likewise.
25814 (grub_multiboot_payload_esp): Likewise.
25815 (grub_multiboot_boot): Use grub_relocator32_boot.
25816 (grub_multiboot_unload): Free relocators.
25817 (grub_multiboot): Setup stack. Use relocators.
25818 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
25819 (grub_multiboot_load_elfXX): Use relocators.
25820 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
25821 (grub_multiboot_payload_size): Likewise.
25822 (grub_multiboot_payload_dest): Likewise.
25823 (grub_multiboot_payload_entry_offset): Likewise.
25824 (grub_multiboot_forward_relocator): Likewise.
25825 (grub_multiboot_backward_relocator): Likewise.
25826 (grub_multiboot_real_boot): Likewise.
25827 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
25828 (grub_xnu_entry_point): Likewise.
25829 (grub_xnu_arg1): Likewise.
25830 (grub_xnu_stack): Likewise.
25831 (grub_xnu_launch): Removed.
25832 (grub_xnu_boot_resume): New function.
25833 (grub_xnu_boot): Use relocators.
25834 * loader/i386/xnu_helper.S: Removed.
25835 * loader/xnu.c (grub_xnu_heap_start): New variable.
25836 (grub_xnu_heap_size): Likewise.
25837 (grub_xnu_heap_malloc): Use relocators.
25838 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
25840 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25842 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
25845 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25847 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
25848 GRUB_ERR_NONE before calling grub_env_set.
25850 2009-12-12 Robert Millan <rmh@aybabtu.com>
25852 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
25853 * genmk.rb (video): New variable.
25854 (CLEANFILES, VIDEOFILES): Add #{video}.
25855 (#{video}): New target rule.
25856 * genvideolist.sh: New file.
25857 * Makefile.in (pkglib_DATA): Add video.lst.
25858 (video.lst): New target rule.
25859 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
25861 * util/grub.d/30_os-prober.in: Replace `vbe' with
25862 ${GRUB_VIDEO_BACKEND}.
25864 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
25866 * THANKS: Add David Miller.
25868 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
25870 libpciaccess support.
25872 * Makefile.in (LIBPCIACCESS): New variable.
25873 (enable_grub_emu_pci): Likewise.
25874 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
25875 util/pci.c and commands/lspci.c.
25876 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
25877 * configure.ac (grub-emu-pci): New option.
25878 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
25879 (grub_pci_device_unmap_range): Likewise.
25880 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
25881 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
25882 (grub_pci_address_t) [!GRUB_UTIL]: New type.
25883 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
25884 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
25885 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
25886 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
25887 * include/grub/pciutils.h: New file.
25888 * util/pci.c: Likewise.
25890 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
25892 * util/misc.c: Don't include <errno.h> twice.
25894 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
25896 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
25897 name in an error message.
25898 (grub_biosdisk_rw): Likewise.
25900 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25902 Eliminate NTFS 4Gib barrier.
25904 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
25905 (read_run_data): Likewise.
25906 (grub_ntfs_read_run_list): Likewise.
25907 (grub_ntfs_read_block): Likewise.
25908 (grub_ntfs_iterate_dir): Likewise.
25909 (read_mft): Likewise.
25910 (read_data): Likewise.
25912 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
25913 to avoid 64-bit division
25914 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
25915 (grub_ntfs_rlst): Use grub_disk_addr_t.
25917 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25919 Eliminate grub-fstest 4Gib barrier.
25921 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
25922 (read_file): Fix error reporting.
25924 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25926 Eliminate hexdump 4Gib barrier.
25928 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
25929 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
25931 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25933 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
25936 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
25938 Remove miscellaneous files in distclean target.
25940 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
25942 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
25944 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
25945 if they're already set. This resolves the conflict between my
25946 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
25947 fixing the --grub-probe option again.
25948 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
25949 change on 2009-10-06, so that we now once again source
25950 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
25952 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
25954 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
25955 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
25956 `util/devicemap.c'.
25958 2009-12-08 Carles Pina i Estany <carles@pina.cat>
25960 * include/grub/misc.h (grub_printf_): New declaration.
25961 * kern/misc.c (grub_printf_): New definition.
25962 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
25963 instead of `grub_printf' and `_'.
25964 * normal/menu_entry.c (store_completion): Likewise.
25966 (grub_menu_entry_run): Likewise.
25967 * normal/menu_text.c (grub_wait_after_message): Likewise.
25968 (notify_booting): Likewise.
25969 (notify_fallback): Likewise.
25970 (notify_execution_failure): Likewise.
25972 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
25974 * configure.ac: Check for vasprintf.
25975 * util/misc.c (asprintf): Move allocation from here ...
25976 (vasprintf): ... to here. New function.
25977 (xasprintf): New function.
25978 * include/grub/util/misc.h (vasprintf, xasprintf): Add
25980 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25981 * util/grub-mkfont.c (write_font): Likewise.
25982 * util/grub-probe.c (probe): Likewise.
25983 * util/hostdisk.c (make_device_name): Likewise.
25985 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
25987 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
25988 anything even prefixed with 'cdrom' as a cdrom.
25990 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
25992 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
25995 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25997 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
25998 grub_gettext_msg_list.
25999 (grub_gettext_gettranslation_from_position): Return const char *
26001 (grub_gettext_translate): Add the translated strings into a list,
26002 returns from the list if existing there.
26003 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26004 (grub_gettext_delete_list): Delete the list.
26005 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26006 lang environment variable is changed.
26007 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26009 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26011 Rename kernel.mod to kernel.img.
26013 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26014 (kernel_mod_EXPORTS): Rename to ...
26015 (kernel_img_EXPORTS): ... this.
26016 (kernel_mod_SOURCES): Rename to ...
26017 (kernel_img_SOURCES): ... this.
26018 (kernel_mod_HEADERS): Rename to ...
26019 (kernel_img_HEADERS): ... this. All users updated.
26020 (kernel_mod_CFLAGS): Rename to ...
26021 (kernel_img_CFLAGS): ... this.
26022 (kernel_mod_ASFLAGS): Rename to ...
26023 (kernel_img_ASFLAGS): ... this.
26024 (kernel_mod_LDFLAGS): Rename to ...
26025 (kernel_img_LDFLAGS): ... this.
26026 * conf/x86_64-efi.rmk: Likewise.
26027 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26028 (read_kernel_image): ... this. All users updated.
26029 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26031 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26033 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26034 (print_spaces): New function.
26035 (grub_print_ucs4): New function.
26036 (getstringwidth): New function.
26037 (print_message_indented): New function.
26038 (print_message): Gettexttize strings using print_message_indented.
26039 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26041 (get_entry_number): Gettextize and uses dynamic terminal width.
26042 (notify_booting, notify_fallback, notify_execution_failure):
26044 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26047 (grub_menu_entry_run): Likewise.
26048 * PO/POTFILES: Add normal/menu_entry.c.
26050 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26052 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26054 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26056 * util/grub-install.in: Install gettext .mo files.
26057 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26059 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26061 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26064 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26066 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26067 non-firmware-dependant one in realmode.S takes precedence.
26069 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26071 * commands/halt.c: Replace misc arch-specific headers with
26073 * commands/reboot.c: Likewise.
26074 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26076 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26077 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26078 (kernel_img_SOURCES): ... to here.
26080 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26081 * include/grub/i386/pc/init.h: Likewise.
26082 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26083 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26085 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26087 * include/grub/i386/halt.h: Remove.
26088 * include/grub/i386/reboot.h: Likewise.
26090 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26092 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26094 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26095 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26096 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26098 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26099 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26100 (usage): Add missing comma in printf.
26102 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26104 Use the same reboot approach on i386 coreboot and qemu as we do on
26107 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26108 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26109 * kern/i386/reboot.c: Remove.
26110 * include/grub/i386/reboot.h (grub_reboot): Export function.
26111 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26112 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26113 0xf000:0xfff0 instead of 0xffff:0x0000.
26114 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26115 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26117 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26119 Fix $srcdir != $objdir build.
26121 * Makefile.in (po/%.po): Rewrite as ...
26122 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26124 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26126 Fix GNU/Hurd grub-install crash.
26127 * util/grub-probe.c (probe): Try to access `path' only when it is not
26130 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26132 Correct module naming.
26134 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26135 (GRUB_MOD_INIT(efi_uga)): ... to this
26136 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26137 (GRUB_MOD_FINI(efi_uga)): ... to this
26138 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26139 (GRUB_MOD_INIT(efi_gop)): ... to this
26140 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26141 (GRUB_MOD_FINI(efi_gop)): ... to this
26143 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26145 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26147 (usage): Translate `arg' strings using gettext().
26148 Thanks to Jordi Mallach for the suggestion.
26150 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26152 GOP support. Based on patch from Bean
26153 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26155 * video/efi_gop.c: New file.
26156 * include/grub/efi/graphics_output.h: Likewise.
26157 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26158 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26160 * conf/x86_64-efi.rmk: Likewise.
26162 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26164 Rename efi_fb to efi_uga.
26166 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26168 (efi_fb_mod_SOURCES): Rename this ...
26169 (efi_uga_mod_SOURCES): ... to this.
26170 (efi_fb_mod_CFLAGS): Rename this ...
26171 (efi_uga_mod_CFLAGS): ... to this.
26172 (efi_fb_mod_LDFLAGS): Rename this ...
26173 (efi_uga_mod_LDFLAGS): ... to this.
26174 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26176 (efi_fb_mod_SOURCES): Rename this ...
26177 (efi_uga_mod_SOURCES): ... to this.
26178 (efi_fb_mod_CFLAGS): Rename this ...
26179 (efi_uga_mod_CFLAGS): ... to this.
26180 (efi_fb_mod_LDFLAGS): Rename this ...
26181 (efi_uga_mod_LDFLAGS): ... to this.
26182 * video/efi_fb.c: Move this ...
26183 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26185 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26187 * po/README: New file. Explain our PO file workflow.
26189 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26191 * po/ChangeLog: Remove. Move relevant entries back to ...
26192 * ChangeLog: ... here.
26193 * po/ca.po: Remove (now handled by TLP).
26194 * po/id.po: Likewise.
26195 * po/zh_CN.po: Likewise.
26196 * Makefile.in (LINGUAS): Initialize in a way that supports
26199 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26201 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26202 reliing on po/LINGUAS.
26203 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26204 (po/%.po): ... this.
26206 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26208 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26209 (main): Use `program_name' instead of nonexistent `progname'.
26211 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26213 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26214 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26216 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26218 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26220 * conf/i386-efi.rmk: Likewise.
26221 * conf/i386-ieee1275.rmk: Likewise.
26222 * conf/powerpc-ieee1275.rmk: Likewise.
26223 * conf/sparc64-ieee1275.rmk: Likewise.
26224 * conf/x86_64-efi.rmk: Likewise.
26226 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26228 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26230 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26232 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26234 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26236 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26237 (grub_mkdevicemap_SOURCES): New variable.
26238 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26239 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26240 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26241 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26242 (grub_mkdevicemap_SOURCES): Remove.
26243 * conf/i386-efi.rmk: Likewise.
26244 * conf/i386-ieee1275.rmk: Likewise.
26245 * conf/i386-pc.rmk: Likewise.
26246 * conf/powerpc-ieee1275.rmk: Likewise.
26247 * conf/sparc64-ieee1275.rmk: Likewise.
26248 * conf/x86_64-efi.rmk: Likewise.
26249 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26250 (usage): Fix strings to use `program_name'.
26251 (main): Initialize gettext.
26252 * util/grub-editenv.c: Likewise.
26253 * util/grub-emu.c: Likewise.
26254 * util/grub-fstest.c: Likewise.
26255 * util/grub-mkdevicemap.c: Likewise.
26256 * util/grub-mkfont.c: Likewise.
26257 * util/grub-mkrelpath.c: Likewise.
26258 * util/grub-pe2elf.c: Likewise.
26259 * util/grub-probe.c: Likewise.
26260 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26261 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26262 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26264 * util/misc.c: Include `"progname.h"'.
26265 (progname): Remove variable.
26266 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26268 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26270 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26271 printf and print a newline after the menuentry header line.
26272 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26274 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26276 autoconf >= 2.60 support $(localedir).
26278 * INSTALL: Note that autoconf 2.60 is required.
26279 * configure.ac (AC_PREREQ): Bump to 2.60.
26280 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26281 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26283 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26285 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26288 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26290 * normal/main.c (grub_normal_read_line): Fix off-by-one
26293 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26295 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26296 "parser.grub" in grub_command_execute() call.
26298 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26300 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26301 * conf/i386-efi.rmk: Likewise.
26302 * conf/i386-ieee1275.rmk: Likewise.
26303 * conf/i386-pc.rmk: Likewise.
26304 * conf/powerpc-ieee1275.rmk: Likewise.
26305 * conf/sparc64-ieee1275.rmk: Likewise.
26306 * conf/x86_64-efi.rmk: Likewise.
26307 * gettext/gettex.c: Include <grub/i18n.h>.
26308 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26310 * include/grub/i18n.h: ... to here
26311 * include/grub/i18n.h: ... to here.
26312 * kern/misc.c: Include <grub/i18n.h>
26313 (grub_gettext_dummy): Move above user.
26315 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26317 * util/Makefile.in (install-local): Convert a `for' into a normal
26320 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26322 * autogen.sh: Add automake call.
26323 * config.guess: Remove.
26324 * config.sub: Likewise.
26325 * install-sh: Likewise.
26327 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26329 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26331 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26333 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26334 function to a normal shell `for'.
26336 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26338 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26340 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26342 * util/grub-mkrelpath.c: New file.
26343 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26344 (grub_mkrelpath_SOURCES): New variable.
26345 * include/grub/util/misc.h: New function prototype.
26346 * util/misc.c (make_system_path_relative_to_its_root): New function.
26348 * util/grub-mkconfig_lib.in (bindir): New variable.
26349 (grub_mkrelpath): Likewise.
26350 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26352 * util/probe.c (probe): Make the file path relative to its root.
26353 Change a info message to use the GRUB path. Enable again the
26354 check if we can read the file with GRUB facilities.
26356 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26359 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26361 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26364 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26366 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26369 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26371 * util/getroot.c (grub_util_is_dmraid): New function.
26372 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26373 devices as normal ones, not as LVM.
26375 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26377 * conf/common.rmk: Add grub-gettext_lib target and updates
26378 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26380 * gettext/gettext.c: New file. (Reads mo files).
26381 * include/grub/file.h (grub_file_pread): New prototype.
26382 * include/grub/i18n.h (_): New prototype.
26383 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26385 * kern/misc.c (grub_gettext_dummy): New function.
26386 * normal/menu_text.c: Include <grub/i18n.h>.
26387 * normal/menu_text.c (print_timeout): Gettexttize string.
26388 * normal/menu_text.c (print_message): Gettexttize string.
26389 * po/POTFILES: Add `normal/menu_text.c'.
26390 * po/ca.po: Add new translations.
26391 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26392 gettext module and defines locale_dir and lang in grub.cfg.
26393 * NEWS: Add gettext support.
26395 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26397 * util/hostdisk.c: Include `<grub/i18n.h>'.
26398 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26399 (make_device_name): Rewrite using asprintf.
26400 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26401 (find_system_device): If a device is not found, generate one just
26402 by reusing the OS path name.
26403 (read_device_map): Make it permissible for device.map not to exist.
26405 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26407 * script/sh/execute.c: Move from here ...
26408 * script/execute.c: ... to here. Update all users.
26409 * script/sh/function.c: Move from here ...
26410 * script/function.c: ... to here. Update all users.
26411 * script/sh/lexer.c: Move from here ...
26412 * script/lexer.c: ... to here. Update all users.
26413 * script/sh/main.c: Move from here ...
26414 * script/main.c: ... to here. Update all users.
26415 * script/sh/parser.y: Move from here ...
26416 * script/parser.y: ... to here. Update all users.
26417 * script/sh/script.c: Move from here ...
26418 * script/script.c: ... to here. Update all users.
26420 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26422 * configure.ac: Detect all `emu' platforms. Define
26423 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26424 --enable-grub-emu logic. Disable include/grub/machine
26425 symlink on `emu' platforms.
26427 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26428 * gensymlist.sh.in: Likewise.
26430 * include/grub/i386/coreboot/machine.h: Remove file.
26431 * include/grub/i386/efi/machine.h: Likewise.
26432 * include/grub/i386/ieee1275/machine.h: Likewise.
26433 * include/grub/i386/pc/machine.h: Likewise.
26434 * include/grub/i386/qemu/machine.h: Likewise.
26435 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26436 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26437 * include/grub/x86_64/efi/machine.h: Likewise.
26439 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26440 * commands/halt.c: Likewise.
26441 * commands/reboot.c: Likewise.
26442 * include/grub/autoefi.h: Likewise.
26443 * include/grub/i386/at_keyboard.h: Likewise.
26444 * include/grub/i386/kernel.h: Likewise.
26445 * include/grub/i386/loader.h: Likewise.
26446 * include/grub/i386/pc/memory.h: Likewise.
26447 * kern/dl.c: Likewise.
26448 * kern/i386/coreboot/init.c: Likewise.
26449 * loader/i386/bsd.c: Likewise.
26450 * loader/i386/linux.c: Likewise.
26451 * loader/multiboot_loader.c: Likewise.
26452 * term/i386/pc/serial.c: Likewise.
26453 * term/usb_keyboard.c: Likewise.
26455 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26456 `<grub/machine/machine.h>'
26457 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26458 * util/misc.c: Remove `<grub/machine/machine.h>' and
26459 `<grub/machine/time.h>'.
26461 * Makefile.in (enable_grub_emu): Remove variable.
26462 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26464 * conf/any-emu.rmk: New file.
26465 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26466 (grub_emu_init.c): Move from here ...
26467 * conf/any-emu.rmk: ... to here.
26469 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26470 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26471 * conf/any-emu.rmk: ... to here.
26473 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26475 * include/grub/parser.h (grub_parser_register): Document need
26476 of `name' parameter.
26477 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26478 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26481 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26483 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26485 * include/grub/i18n.h (N_): New macro.
26486 * util/mkisofs/mkisofs.h: Likewise.
26487 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26489 (usage): Use gettext() to translate help strings when printing them.
26491 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26493 Based on patch from Bean
26494 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26496 * video/efi_fb.c: New file.
26497 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26498 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26500 * conf/x86_64-efi.rmk: Likewise.
26502 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26504 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26505 * util/i386/pc/grub-setup.c: Likewise.
26507 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26509 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26511 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26512 file_get_storage_info to implement grub_guess_root_device.
26514 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26516 * Makefile.in (target): Use make's builtin $(shell) function
26517 instead of calling directly $(SHELL) to create the locale directories,
26518 inside the $(foreach) function.
26520 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26522 * util/grub-mkrescue.in: Print an error and usage if output option
26523 has not been given.
26525 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26527 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26528 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26529 root and /boot are on different devices.
26531 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26533 Fix build for srcdir != objdir.
26535 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26536 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26538 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26539 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26540 reference for input.
26542 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26544 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26545 or hardlinking it). Remove -J option, Joliet is not compatible with
26546 multiple source directories.
26548 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26549 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26551 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26552 (process_input_dir): New function. Process an arbitrary input
26554 Misc adjustments to support both "override mode" and system-wide mode.
26556 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26558 * configure.ac (UNIFONT_BDF): Rename to ...
26559 (FONT_SOURCE): ... this. Update all users.
26561 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26563 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26564 to the list of unifont files to look for.
26566 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26568 Patch from Joe Auricchio <jauricchio@gmail.com>
26569 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26570 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26571 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26573 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26575 * Makefile.in (install-local): Add a missing backslash.
26577 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26579 * include/grub/x86_64/io.h: New file.
26581 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26583 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26584 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26585 Include `"progname.h"'.
26586 (main): Initialize gettext.
26587 * util/i386/pc/grub-setup.c: Gettexttize.
26588 * util/i386/pc/grub-mkimage.c: Likewise.
26590 * Makefile.in (po/*.po): Redefine as ...
26591 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26593 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26595 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26597 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26598 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26599 (program_name): Remove.
26600 (main): Initialize gettext support.
26601 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26602 Include `<libintl.h>'.
26605 * util/mkisofs/eltorito.c: Gettexttize.
26606 * util/mkisofs/joliet.c: Likewise.
26607 * util/mkisofs/mkisofs.c: Likewise.
26608 * util/mkisofs/multi.c: Likewise.
26609 * util/mkisofs/rock.c: Likewise.
26610 * util/mkisofs/tree.c: Likewise.
26611 * util/mkisofs/write.c: Likewise.
26613 * po/POTFILES: Update with new files.
26615 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26617 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26618 * util/mkisofs/iso9660.h: Likewise.
26619 * util/mkisofs/joliet.c: Likewise.
26620 * util/mkisofs/mkisofs.c: Likewise.
26621 * util/mkisofs/mkisofs.h: Likewise.
26622 * util/mkisofs/rock.c: Likewise.
26623 * util/mkisofs/tree.c: Likewise.
26624 * util/mkisofs/write.c: Likewise.
26626 * util/mkisofs/eltorito.c (rcsid): Remove.
26627 * util/mkisofs/hash.c: Likewise.
26628 * util/mkisofs/joliet.c: Likewise.
26629 * util/mkisofs/name.c: Likewise.
26630 * util/mkisofs/rock.c: Likewise.
26631 * util/mkisofs/tree.c: Likewise.
26632 * util/mkisofs/write.c: Likewise.
26634 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26636 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26637 instead of static allocation.
26638 * util/mkisofs/match.h: Likewise.
26640 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26642 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26643 and `util/grub.d/10_linux.in'.
26644 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26645 translatable Shell files.
26647 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26649 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26651 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26653 * INSTALL: Document Automake is needed for bootstrap.
26654 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26655 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26656 Add gettext initialization.
26657 (kfreebsd_entry): Make menuentry output translatable.
26659 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26661 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26662 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26663 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26664 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26665 (LINGUAS): Auto-generate using `po/LINGUAS'.
26666 * po/LINGUAS: New file.
26668 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26670 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26672 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26673 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26674 bindtextdomain() calls for gettext initialization.
26676 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26678 * gnulib/progname.c: New file (imported from Gnulib).
26679 * gnulib/progname.h: Likewise.
26680 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26681 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26682 (usage): Replace `progname' with `program_name'.
26683 (main): Use set_program_name() for program name initialization.
26685 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26687 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26689 * Makefile.in (CPPFLAGS): ... to here.
26691 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26693 * aclocal.m4: Move from here ...
26694 * acinclude.m4: ... to here.
26695 * autogen.sh: Add call to `aclocal'.
26696 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26698 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26700 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26701 (LINGUAS): New variable.
26702 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26703 (install-local): Install MO files.
26704 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26705 * include/grub/i18n.h: New file.
26706 * po/POTFILES: New file.
26707 * po/ca.po: New file.
26708 * util/grub.d/10_linux.in (bindir): New variable.
26709 Add gettext initialization.
26710 (linux_entry): Make menuentry output translatable.
26711 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
26712 (usage): Make --help output translatable.
26713 (main): Initialize gettext.
26715 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26717 * import_gcry.py: New file (written by Vladimir with minor
26719 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
26721 * INSTALL: Document that Python is required for bootstrap.
26723 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26725 Import ciphers from libgcrypt 1.4.4.
26727 * lib/libgcrypt/cipher/ChangeLog
26728 * lib/libgcrypt/cipher/ac.c
26729 * lib/libgcrypt/cipher/arcfour.c
26730 * lib/libgcrypt/cipher/bithelp.h
26731 * lib/libgcrypt/cipher/blowfish.c
26732 * lib/libgcrypt/cipher/camellia-glue.c
26733 * lib/libgcrypt/cipher/camellia.c
26734 * lib/libgcrypt/cipher/camellia.h
26735 * lib/libgcrypt/cipher/cast5.c
26736 * lib/libgcrypt/cipher/cipher.c
26737 * lib/libgcrypt/cipher/crc.c
26738 * lib/libgcrypt/cipher/des.c
26739 * lib/libgcrypt/cipher/dsa.c
26740 * lib/libgcrypt/cipher/ecc.c
26741 * lib/libgcrypt/cipher/elgamal.c
26742 * lib/libgcrypt/cipher/hash-common.c
26743 * lib/libgcrypt/cipher/hash-common.h
26744 * lib/libgcrypt/cipher/hmac-tests.c
26745 * lib/libgcrypt/cipher/md.c
26746 * lib/libgcrypt/cipher/md4.c
26747 * lib/libgcrypt/cipher/md5.c
26748 * lib/libgcrypt/cipher/primegen.c
26749 * lib/libgcrypt/cipher/pubkey.c
26750 * lib/libgcrypt/cipher/rfc2268.c
26751 * lib/libgcrypt/cipher/rijndael-tables.h
26752 * lib/libgcrypt/cipher/rijndael.c
26753 * lib/libgcrypt/cipher/rmd.h
26754 * lib/libgcrypt/cipher/rmd160.c
26755 * lib/libgcrypt/cipher/rsa.c
26756 * lib/libgcrypt/cipher/seed.c
26757 * lib/libgcrypt/cipher/serpent.c
26758 * lib/libgcrypt/cipher/sha1.c
26759 * lib/libgcrypt/cipher/sha256.c
26760 * lib/libgcrypt/cipher/sha512.c
26761 * lib/libgcrypt/cipher/tiger.c
26762 * lib/libgcrypt/cipher/twofish.c
26763 * lib/libgcrypt/cipher/whirlpool.c
26765 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26767 Fix build for systems without error().
26769 * gnulib/error.c: New file (imported from Gnulib).
26770 * gnulib/error.h: Likewise.
26771 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
26772 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
26773 (this variable is now used by error()).
26775 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26777 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
26778 instead of relying that char is signed.
26780 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
26782 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
26783 blocksize different from specified.
26784 (grub_pxefs_read): Likewise.
26786 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26788 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
26790 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
26791 (grub_ata_readwrite): Likewise. Update 2 format strings.
26792 (grub_atapi_read): Likewise.
26794 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
26795 * conf/i386.rmk (pkglib_MODULES): ... to here ...
26796 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
26797 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
26798 (ata_mod_LDFLAGS): Move from here ...
26799 * conf/i386.rmk: ... to here ...
26800 * conf/x86_64-efi.rmk: ... and here.
26801 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
26802 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
26804 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26806 Relicense multiboot.h, with RMS' blessing.
26808 * include/multiboot.h: Change to X11 license.
26810 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
26812 Support --version in grub-mkisofs.
26814 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
26815 (OPTION_VERSION): New macro.
26816 (ld_options): Recognize --version.
26817 (usage): Move `program_name' from here ...
26818 (program_name): ... to here. Add `static' qualifier.
26819 (main): Recognize `OPTION_VERSION'.
26821 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
26823 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
26824 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
26826 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26828 Fix help2man generation for mkisofs.
26830 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
26831 (usage): Send output to stdout (rather than stderr).
26833 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26835 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
26836 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26837 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
26838 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26839 (bin_SCRIPTS): Add `grub-mkfloppy'.
26840 (grub_mkfloppy_SOURCES): New variable.
26842 * util/grub-mkrescue.in: New file.
26843 * util/i386/pc/grub-mkfloppy.in: New file.
26845 * util/i386/coreboot/grub-mkrescue.in: Remove.
26846 * util/i386/pc/grub-mkrescue.in: Remove.
26848 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26850 * include/grub/multiboot.h (struct grub_multiboot_header): Move
26852 * include/multiboot.h (struct multiboot_header): ... to here. Update
26854 * include/grub/multiboot.h (struct grub_multiboot_info): Move
26856 * include/multiboot.h (struct multiboot_info): ... to here. Update
26858 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
26860 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
26862 * include/grub/multiboot.h (struct grub_mod_list): Move
26864 * include/multiboot.h (struct multiboot_mod_list): ... to here.
26867 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26869 * include/multiboot2.h (multiboot_word): Rename from this ...
26870 (multiboot2_word): ... to this. Update all users.
26871 (multiboot_header): Rename from this ...
26872 (multiboot2_header): ... to this. Update all users.
26873 (multiboot_tag_header): Rename from this ...
26874 (multiboot2_tag_header): ... to this. Update all users.
26875 (multiboot_tag_start): Rename from this ...
26876 (multiboot2_tag_start): ... to this. Update all users.
26877 (multiboot_tag_name): Rename from this ...
26878 (multiboot2_tag_name): ... to this. Update all users.
26879 (multiboot_tag_module): Rename from this ...
26880 (multiboot2_tag_module): ... to this. Update all users.
26881 (multiboot_tag_memory): Rename from this ...
26882 (multiboot2_tag_memory): ... to this. Update all users.
26883 (multiboot_tag_unused): Rename from this ...
26884 (multiboot2_tag_unused): ... to this. Update all users.
26885 (multiboot_tag_end): Rename from this ...
26886 (multiboot2_tag_end): ... to this. Update all users.
26888 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26890 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
26891 this platform we should support Multiboot1 first.
26893 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26894 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
26895 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
26897 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26899 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
26900 of write calls (converting them to fwrite() if they aren't already).
26901 (get_torito_desc): Likewise.
26902 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
26904 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26906 * util/i386/pc/grub-install.in: Move from here ...
26907 * util/grub-install.in: ... to here. Update all users.
26909 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
26911 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
26913 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26915 Support for El Torito without floppy emulation.
26917 * util/mkisofs/eltorito.c: Include `<errno.h>'.
26918 (init_boot_catalog): Improve error handling.
26919 (get_torito_desc): Don't use floppy emulation unless requested by
26920 user. Patch boot information table when requested via
26921 `-boot-info-table'.
26922 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
26923 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
26924 (use_boot_info_table): New variables.
26925 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
26926 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
26927 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
26928 `--eltorito-emul-floppy'.
26929 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
26930 and `OPTION_ELTORITO_EMUL_FLOPPY'.
26931 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
26932 (use_boot_info_table, get_731): New prototypes.
26933 * util/mkisofs/write.c (get_731): New function.
26935 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
26937 Fix the generation of the man page.
26939 * util/pc/i386/grub-install.in: Source
26940 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26942 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26944 Large file support for grub-mkisofs.
26946 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
26947 * util/mkisofs/mkisofs.c (next_extent, last_extent)
26948 (session_start): Upgrade type to `uint64_t'. Update all users.
26949 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
26950 (struct directory_entry): Upgrade type of `starting_block' and
26951 `size' to `uint64_t'. Update all users.
26952 (struct deferred): Remove unused structure.
26953 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
26955 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
26956 file is larger than `UINT32_MAX'.
26957 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
26958 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
26960 (struct deferred_write): Upgrade type of `extent' and `size' to
26961 `uint64_t'. Update all users.
26962 (last_extent_written): Upgrade type to `uint64_t'. Update all
26964 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
26965 Update all users. Upgrade type of `remain' to `int64_t' and
26966 `use' to `size_t'. Use error() to handle fread() errors.
26967 (write_files): Rely on write_one_file() rather than calling
26968 xfwrite() directly.
26970 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
26972 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
26974 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26976 * util/mkisofs/fnmatch.c: Remove.
26977 * util/mkisofs/getopt1.c: Likewise.
26978 * util/mkisofs/getopt.c: Likewise.
26979 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
26980 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
26981 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
26982 `gnulib/getopt1.c' and `gnulib/getopt.c'.
26983 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
26985 * configure.ac: Detect `mingw32msvc' host_os.
26986 Check for lstat(), getuid() and getgid().
26988 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
26989 instances of `u_char' with `uint8_t'.
26991 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
26992 [!HAVE_GETUID] (getuid): New function (stub).
26993 [!HAVE_GETGID] (getgid): Likewise.
26994 [!HAVE_LSTAT] (lstat): Likewise.
26995 [!S_IROTH] (S_IROTH): New macro (dummy).
26996 [!S_IRGRP] (S_IRGRP): Likewise.
26998 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27000 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27001 conditional expression).
27003 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27005 Import from Gnulib.
27007 * gnulib/fnmatch.c: New file.
27008 * gnulib/fnmatch.h: Likewise.
27009 * gnulib/fnmatch_loop.c: Likewise.
27010 * gnulib/getopt.c: Likewise.
27011 * gnulib/getopt.h: Likewise.
27012 * gnulib/getopt1.c: Likewise.
27013 * gnulib/getopt_int.h: Likewise.
27014 * gnulib/gettext.h: Likewise.
27016 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27018 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27019 * normal/handler.c (read_handler_list): Likewise.
27021 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27025 * kern/command.c (grub_register_command_prio): Use
27026 grub_zalloc() instead of explicitly zeroing data.
27027 * kern/list.c: Include `<grub/mm.h>'.
27028 (grub_named_list_find): Replace `0' with `NULL'.
27029 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27030 (fs_module_list): Change type to `grub_named_list_t'. Update all
27032 * normal/dyncmd.c (read_command_list): Add space between function
27033 call and parenthesis.
27034 * normal/handler.c (read_handler_list): Likewise.
27036 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27038 * normal/auth.c (punishment_delay): Moved from here ...
27039 (grub_auth_strcmp): ... to here (inside function).
27041 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27043 * include/grub/list.h (struct grub_named_list): Remove `const'
27044 qualifier from `name'.
27045 (struct grub_prio_list): Likewise.
27047 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27049 * normal/auth.c: Include `<grub/time.h>'.
27050 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27052 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27054 * normal/auth.c (punishment_delay): New variable.
27055 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27056 (grub_auth_check_authentication): Punish failed login attempts with
27057 an incremental (2^N) delay.
27059 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27061 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27062 path with $(srcdir).
27064 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27066 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27068 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27070 * util/i386/coreboot/grub-mkrescue.in: New file.
27071 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27074 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27075 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27076 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27078 * util/mkisofs/defaults.h: New file.
27079 * util/mkisofs/eltorito.c: Likewise.
27080 * util/mkisofs/exclude.h: Likewise.
27081 * util/mkisofs/fnmatch.c: Likewise.
27082 * util/mkisofs/getopt.c: Likewise.
27083 * util/mkisofs/getopt1.c: Likewise.
27084 * util/mkisofs/hash.c: Likewise.
27085 * util/mkisofs/include/fctldefs.h: Likewise.
27086 * util/mkisofs/include/mconfig.h: Likewise.
27087 * util/mkisofs/include/prototyp.h: Likewise.
27088 * util/mkisofs/include/statdefs.h: Likewise.
27089 * util/mkisofs/iso9660.h: Likewise.
27090 * util/mkisofs/joliet.c: Likewise.
27091 * util/mkisofs/match.c: Likewise.
27092 * util/mkisofs/match.h: Likewise.
27093 * util/mkisofs/mkisofs.c: Likewise.
27094 * util/mkisofs/mkisofs.h: Likewise.
27095 * util/mkisofs/multi.c: Likewise.
27096 * util/mkisofs/name.c: Likewise.
27097 * util/mkisofs/rock.c: Likewise.
27098 * util/mkisofs/tree.c: Likewise.
27099 * util/mkisofs/write.c: Likewise.
27101 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27103 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27106 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27108 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27109 `grub-mkimage' (and use $0 when possible).
27111 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27113 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27114 error message for excessively large memory map.
27116 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27118 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27121 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27123 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27124 message for coreboot users.
27126 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27128 Fix build with GNU gold.
27130 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27131 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27132 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27134 * aclocal.m4: Likewise.
27136 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27138 * configure.ac (AC_PREREQ): Bump to 2.59d.
27139 * INSTALL: Make it more clear when Autoconf and Ruby are
27140 needed and when to run `./autogen.sh'.
27142 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27144 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27147 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27149 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27151 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27153 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27154 giving it to GNU Mach.
27156 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27158 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27159 GNU partition number to get internal GRUB partition number.
27161 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27163 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27164 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27166 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27168 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27169 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27172 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27174 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27176 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27180 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27181 `-isystem=$(srcdir)/include'.
27183 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27185 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27186 checked (grub-install doesn't currently rely on it).
27188 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27192 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27193 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27194 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27195 * conf/i386-ieee1275.rmk: Likewise.
27196 * conf/i386-pc.rmk: Likewise.
27197 * conf/powerpc-ieee1275.rmk: Likewise.
27198 * conf/sparc64-ieee1275.rmk: Likewise.
27199 * conf/x86_64-efi.rmk: Likewise.
27201 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27203 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27205 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27207 * include/grub/misc.h: Stop checking for APPLE_CC.
27209 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27211 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27212 doesn't cause an infinite call loop.
27214 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27216 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27219 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27221 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27223 * Makefile.in: Likewise.
27225 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27227 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27229 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27231 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27233 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27235 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27237 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27239 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27241 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27243 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27245 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27246 in $(MAKEINFO) invocation. This makes it clear in output that
27247 errors are being ignored.
27249 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27251 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27253 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27254 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27255 * conf/i386-ieee1275.rmk: Likewise.
27256 * conf/i386-pc.rmk: Likewise.
27257 * conf/powerpc-ieee1275.rmk: Likewise.
27258 * conf/sparc64-ieee1275.rmk: Likewise.
27259 * conf/x86_64-efi.rmk: Likewise.
27261 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27263 * util/grub-editenv.c (main): If only a command is given, use
27264 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27265 (usage): FILENAME is now optional and has a default.
27267 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27269 Improve grub-mkconfig performance when there are several menu
27270 entries on a single filesystem.
27272 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27273 prepare_grub_to_access_device.
27274 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27275 * util/grub.d/30_os-prober.in: Likewise.
27277 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27279 * util/grub.d/10_freebsd.in: Remove.
27280 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27281 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27283 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27285 * docs/grub.cfg: Fix example usage of *BSD loaders.
27287 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27289 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27290 grub_util_error() call.
27292 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27294 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27295 `reserved_first_sector' member.
27296 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27297 `reserved_first_sector' to 1.
27298 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27299 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27300 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27301 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27302 filesystems which begin at first sector.
27303 (options): New option --skip-fs-probe.
27304 (main): Handle --skip-fs-probe and pass it to setup().
27306 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27308 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27309 (memset): Fix function prototype.
27311 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27312 2009-10-25 Vasily Averin <vvs@parallels.com>
27314 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27315 `dirent.direntlen == 0'.
27317 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27319 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27321 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27323 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27325 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27326 `__trampoline_setup' and `__ucmpdi2'.
27327 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27328 that libgcc provides.
27330 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27332 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27333 * include/grub/sparc64/libgcc.h (memset): Likewise.
27334 * include/grub/misc.h (memset, memcmp): New function prototypes.
27336 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27338 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27340 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27342 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27344 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27345 * docs/grub.cfg: Compensate for recent change in multiboot
27346 loader (since 2009-08-14 it won't pass filename to payload).
27347 * util/grub.d/10_hurd.in: Likewise.
27349 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27351 * config.guess: Update to latest version from config git
27353 * config.sub: Likewise.
27355 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27357 Fix build on sparc64.
27359 * configure.ac: Perform checks for libgcc symbols before
27360 adding `-nostdlib' to LDFLAGS.
27362 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27364 Let user specify OpenBSD root device.
27366 * loader/i386/bsd.c (openbsd_root): New variable.
27367 (openbsd_opts): New option 'root'.
27368 (OPENBSD_ROOT_ARG): New macro.
27369 (grub_openbsd_boot): Use 'openbsd_root'.
27370 (grub_cmd_openbsd): Fill 'openbsd_root'.
27372 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27374 * NEWS: Misc adjustments.
27376 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27378 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27380 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27382 * configure.ac: Bump version to 1.97.
27384 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27386 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27387 -mno-3dnow on x86 architectures. Some toolchains enable these
27388 features by default, but they rely on registers that aren't enabled
27389 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27391 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27393 Make entry text a bit more readable.
27395 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27397 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27399 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27401 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27403 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27406 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27408 * configure.ac: Add missing dollar.
27410 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27412 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27414 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27415 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27417 * include/grub/sparc64/libgcc.h: Likewise. Use
27418 preprocessor conditionals.
27420 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27422 * conf/common.rmk (grub-dumpbios): Remove rule.
27423 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27424 * util/grub-dumpbios.in: Remove file.
27426 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27428 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27429 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27431 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27432 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27435 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27436 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27437 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27438 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27441 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27443 * term/tparm.c: Switch to GPLv3.
27445 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27447 * include/grub/i386/cpuid.h: Add header protection.
27449 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27451 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27453 * include/grub/i386/cpuid.h: New file.
27454 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27455 (has_longmode): Rename to ...
27456 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27457 `static' attribute.
27458 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27459 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27460 on a CPU that doesn't implement AMD64 instruction set.
27462 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27464 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27465 that version.texi is rebuilt on version number changes.
27467 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27469 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27472 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27474 * util/i386/pc/grub-install.in: Source
27475 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27476 that the --grub-probe option will work.
27477 * util/sparc64/ieee1275/grub-install.in: Likewise.
27479 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27481 * configure.ac: Bump version to 1.97~beta4.
27483 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27485 Resync grub-mkdevicemap in x86_64-efi.
27487 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27488 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27489 `util/devicemap.c'.
27491 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27493 * util/grub-editenv.c (create_envblk_file): Write new block with a
27494 .new suffix and then rename it into place, to ensure atomic
27497 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27499 Do not automatically install headers.
27501 * Makefile.in (include_DATA): Remove. Update all users.
27503 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27505 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27506 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27508 * util/osdetect.lua: Remove.
27509 * script/lua/lauxlib.c: Likewise.
27510 * script/lua/ldebug.c: Likewise.
27511 * script/lua/grub_main.c: Likewise.
27512 * script/lua/lauxlib.h: Likewise.
27513 * script/lua/ldebug.h: Likewise.
27514 * script/lua/ltablib.c: Likewise.
27515 * script/lua/liolib.c: Likewise.
27516 * script/lua/lstrlib.c: Likewise.
27517 * script/lua/lualib.h: Likewise.
27518 * script/lua/ldo.c: Likewise.
27519 * script/lua/ldump.c: Likewise.
27520 * script/lua/ldo.h: Likewise.
27521 * script/lua/loslib.c: Likewise.
27522 * script/lua/lundump.c: Likewise.
27523 * script/lua/grub_lib.c: Likewise.
27524 * script/lua/ldblib.c: Likewise.
27525 * script/lua/lundump.h: Likewise.
27526 * script/lua/lmem.c: Likewise.
27527 * script/lua/grub_lib.h: Likewise.
27528 * script/lua/lmathlib.c: Likewise.
27529 * script/lua/lstate.c: Likewise.
27530 * script/lua/ltm.c: Likewise.
27531 * script/lua/lvm.c: Likewise.
27532 * script/lua/lmem.h: Likewise.
27533 * script/lua/lstate.h: Likewise.
27534 * script/lua/ltm.h: Likewise.
27535 * script/lua/ltable.c: Likewise.
27536 * script/lua/lvm.h: Likewise.
27537 * script/lua/llex.c: Likewise.
27538 * script/lua/lgc.c: Likewise.
27539 * script/lua/grub_lua.h: Likewise.
27540 * script/lua/loadlib.c: Likewise.
27541 * script/lua/lfunc.c: Likewise.
27542 * script/lua/lopcodes.c: Likewise.
27543 * script/lua/lparser.c: Likewise.
27544 * script/lua/ltable.h: Likewise.
27545 * script/lua/llex.h: Likewise.
27546 * script/lua/lgc.h: Likewise.
27547 * script/lua/lfunc.h: Likewise.
27548 * script/lua/lbaselib.c: Likewise.
27549 * script/lua/lopcodes.h: Likewise.
27550 * script/lua/lparser.h: Likewise.
27551 * script/lua/lzio.c: Likewise.
27552 * script/lua/linit.c: Likewise.
27553 * script/lua/lobject.c: Likewise.
27554 * script/lua/llimits.h: Likewise.
27555 * script/lua/lstring.c: Likewise.
27556 * script/lua/lzio.h: Likewise.
27557 * script/lua/lapi.c: Likewise.
27558 * script/lua/lcode.c: Likewise.
27559 * script/lua/lua.h: Likewise.
27560 * script/lua/lobject.h: Likewise.
27561 * script/lua/lstring.h: Likewise.
27562 * script/lua/lapi.h: Likewise.
27563 * script/lua/lcode.h: Likewise.
27564 * script/lua/luaconf.h: Likewise.
27566 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27568 * docs/grub.texi (Command-line and menu entry commands): Document
27569 date and echo commands.
27571 2009-09-24 Pavel Roskin <proski@gnu.org>
27573 * include/grub/kernel.h (struct grub_module_header): Remove
27574 `grub_module_header_types'. Make `type' unsigned. Make `size'
27575 32-bit on all platforms.
27576 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27577 8-bit field. Use grub_host_to_target32() for `size'.
27578 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27579 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27580 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27582 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27584 Fix "lost keypress" bug in at_keyboard.
27586 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27587 Checks for readyness of input buffer (without flushing it).
27588 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27589 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27591 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27593 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27594 size check within GRUB_MACHINE_PCBIOS section.
27596 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27598 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27600 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27601 KEYBOARD_ISREADY check.
27602 (grub_at_keyboard_checkkey): Rename to ...
27603 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27604 Remove gratuitous cast.
27606 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27608 * configure.ac: Call AC_PROG_MKDIR_P.
27609 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27610 version.texi in $(builddir) rather than $(srcdir).
27611 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27612 to makeinfo's @include search path.
27614 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27616 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27618 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27620 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27623 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27625 Build info documentation. Some code borrowed from Automake.
27627 * configure.ac: Check for makeinfo.
27628 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27629 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27631 (MOSTLYCLEANFILES): Add vti.tmp.
27632 (docs/version.texi, docs/stamp-vti): Update automatically.
27633 (docs/grub.info): Build info documentation. Use --force and ignore
27635 (all-local): Add $(INFOS).
27636 (install-local): Install info files.
27637 (uninstall): Uninstall info files.
27638 * docs/version.texi: Remove from revision control. This file is
27639 automatically generated on build now.
27640 * gendistlist.sh: Add `*.info'.
27642 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27644 * kern/term.c: Fix indentation.
27646 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27648 * util/hostdisk.c: Fix a comment.
27650 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27652 Fix regression introduced in r2539.
27654 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27657 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27659 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27660 os-prober. Under normal operation, it does not print anything to
27661 stderr; if it does, we need to debug it, and throwing away stderr
27662 makes that excessively difficult.
27664 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27666 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27668 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27670 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27671 AC_LANG_PROGRAM from autoconf.
27672 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27673 prototypes (fixes warning).
27675 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27676 `--disable-werror' was used.
27678 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27680 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27681 uninitialized `lastaddr'.
27683 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27685 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27687 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27689 * commands/test.c (get_fileinfo): Return immediately if
27690 grub_fs_probe fails.
27692 2009-09-14 José Martínez <xosemp@gmail.com>
27694 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27696 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27698 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27701 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27703 * configure.ac: Remove --enable-grub-pe2elf. Only build
27704 grub-pe2elf when needed by the build system itself.
27705 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27707 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27709 * configure.ac: Bump version to 1.97~beta3.
27710 * docs/version.texi: Likewise.
27712 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27714 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
27715 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
27717 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
27718 (grub_linux_setup_video): ... to here (with some adjustments).
27720 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27722 Fix memory corruption issue (spotted by Colin Watson).
27724 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
27725 causing returned size to be stored in an incorrect memory location.
27726 Fix use of uninitialized value when storing the returned size.
27728 2009-09-12 Yves Blusseau <blusseau@zetam.org>
27730 Change clean rules to properly remove files
27732 * genmk.rb: add new clean rules
27733 * Makefile.in (clean): add the new targets
27734 (mostlyclean): likewise
27736 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27738 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
27740 * fs/ntfs.c (init_file): Understand 64-bit sizes for
27741 non-resident files.
27743 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27745 * configure.ac: Don't look for help2man when cross-compiling. Fixes
27746 part of bug #27349.
27748 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27750 * util/grub-mkconfig.in: Make the created config mode 400 and
27751 print a warning if it fails.
27753 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
27755 * util/grub.d/40_custom.in: Ask user to type custom entries below
27756 comment, rather than below 'exec tail' line.
27758 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27760 * util/grub.d/40_custom.in: Make sure that the explanatory text is
27761 visible in grub.cfg.
27763 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27765 * util/grub.d/40_custom.in: Make it a little clearer how to use this
27768 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27770 * docs/grub.cfg: Add an example menu entry for memtest86+.
27772 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
27774 * config.guess: Update to latest version from config git.
27775 * config.sub: Likewise.
27777 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
27779 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
27780 unknown-command case. Fixes bug #27320.
27782 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
27784 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
27785 `help' if the command exists.
27787 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
27789 * INSTALL: Require GCC 4.1.3 or later.
27791 2009-09-06 Yves Blusseau <blusseau@zetam.org>
27793 * Makefile.in (RMKFILES): add i386-qemu.rmk
27794 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
27795 $(srcdir)/stamp-h.in
27797 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
27799 * util/grub-probe.c (probe): Comment out buggy codepath, which
27800 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
27801 should be re-enabled after 1.97.
27803 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
27805 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
27808 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
27810 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
27811 unnecessary calls to grub_error.
27813 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
27815 * NEWS: Mention `keystatus' and Unicode fonts.
27817 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
27819 * configure.ac: Bump version to 1.97~beta2.
27820 * docs/version.texi: Likewise.
27822 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27824 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
27825 containing unwind information in some cases where it previously did
27826 not. Use -fno-dwarf2-cfi-asm if available to restore the old
27827 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
27830 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
27832 Embedding loadenv module into grub-emu
27834 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
27836 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
27837 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
27838 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
27839 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
27840 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
27841 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
27843 2009-09-03 Magnus Granberg <zorry@ume.nu>
27845 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
27846 include -fPIE in the default specs.
27847 * configure.ac: Check if pie_possible is yes and add -fno-PIE
27850 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
27852 * INSTALL: Note that GNU Bison 2.3 or later is required.
27854 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27856 * kern/i386/pc/startup.S: Fix typo.
27858 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
27860 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
27863 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27865 * docs/grub.texi (Naming convention): Describe one-based partition
27867 (Device syntax): Likewise.
27868 (File name syntax): Likewise.
27869 (Block list syntax): Likewise.
27870 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
27872 (File name syntax): Likewise.
27873 (Command-line and menu entry commands): Document acpi, blocklist,
27874 crc, export, insmod, keystatus, ls, set, and unset commands.
27876 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27878 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
27879 to avoid implying that only one of --shift, --ctrl, or --alt may be
27882 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27884 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
27885 rather than comparing against S_IFREG, which will almost never work.
27887 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
27889 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
27890 (write_blocklists): Likewise.
27892 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
27894 * script/lua/grub_lua.h (fputs): Supply a format string as the first
27895 argument to grub_printf.
27897 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
27899 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
27902 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27904 * kern/file.c (grub_file_read): Spelling fix
27906 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27908 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
27909 loading of headers in some cases.
27911 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
27913 * configure.ac: Bump version to 1.97~beta1.
27914 * docs/version.texi: Likewise.
27916 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
27918 * include/grub/i386/xnu.h: Add license header.
27919 include grub/err.h explicitly.
27921 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27923 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
27924 to `ufs' in the vfs.root.mountfrom kernel parameter.
27926 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27928 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
27930 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
27931 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
27933 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
27934 `ARRAY_SIZE' macro.
27936 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27938 * kern/file.c (grub_file_read): Check offset.
27939 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
27940 * fs/jfs.c (grub_jfs_read_file): Likewise.
27941 * fs/ntfs.c (grub_ntfs_read): Likewise.
27942 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
27943 * fs/minix.c (grub_minix_read_file): Correct offset check.
27944 * fs/ufs.c (grub_ufs_read_file): Likewise.
27946 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27948 * term/i386/pc/console.c (bios_data_area): Cast
27949 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
27951 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27953 1-bit optimised blitters.
27955 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
27957 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27958 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27959 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27960 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27961 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27962 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27963 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
27965 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27966 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27967 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27968 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27969 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27970 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27971 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
27973 * video/video.c (grub_video_get_blit_format): Return
27974 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
27976 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27978 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
27979 the first argument to grub_printf.
27981 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27982 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
27984 Add `getkeystatus' terminal method. Add a new `keystatus' command
27987 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
27988 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
27989 modifier key bitmasks.
27990 (struct grub_term_input): Add `getkeystatus' member.
27991 (grub_getkeystatus): Add prototype.
27992 * kern/term.c (grub_getkeystatus): New function.
27994 * include/grub/i386/pc/memory.h
27995 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
27996 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
27998 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
27999 (grub_console_term_input): Set `getkeystatus' member.
28000 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28002 (grub_usb_keyboard_getreport): Likewise.
28003 (grub_usb_keyboard_checkkey): Likewise.
28004 (grub_usb_keyboard_getkeystatus): New function.
28005 (grub_usb_keyboard_term): Set `getkeystatus' member.
28007 * commands/keystatus.c: New file.
28008 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28009 (keystatus_mod_SOURCES): New variable.
28010 (keystatus_mod_CFLAGS): Likewise.
28011 (keystatus_mod_LDFLAGS): Likewise.
28012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28013 commands/keystatus.c.
28014 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28015 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28016 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28018 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28019 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28021 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28023 Split befs.mod and afs.mod into *_be.mod and *.mod
28025 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28026 (grub_fstest_SOURCES): Likewise.
28027 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28028 (afs_be_mod_SOURCES): New variable.
28029 (afs_be_mod_CFLAGS): Likewise.
28030 (afs_be_mod_LDFLAGS): Likewise.
28031 (befs_be_mod_SOURCES): Likewise.
28032 (befs_be_mod_CFLAGS): Likewise.
28033 (befs_be_mod_LDFLAGS): Likewise.
28034 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28035 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28036 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28037 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28038 (grub_emu_SOURCES): Likewise.
28039 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28040 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28041 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28042 * fs/afs_be.c: New file.
28043 * fs/befs_be.c: New file.
28044 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28045 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28046 (U16): Replaced with ...
28047 (grub_afs_to_cpu16): ...this. All users updated.
28048 (U32): Replaced with ...
28049 (grub_afs_to_cpu32): ...this. All users updated.
28050 (U64): Replaced with ...
28051 (grub_afs_to_cpu64): ...this. All users updated.
28052 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28053 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28054 (grub_afs_validate_sblock): Check only one endianness.
28055 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28056 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28057 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28058 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28059 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28060 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28061 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28062 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28064 2009-08-26 Bean <bean123ch@gmail.com>
28066 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28068 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28069 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28070 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28072 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28074 NetBSD memory map support.
28076 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28077 (grub_netbsd_btinfo_mmap_header): New structure.
28078 (grub_netbsd_btinfo_mmap_entry): Likewise.
28079 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28081 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28083 Enable bsd.mod on coreboot.
28085 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28086 (bsd_mod_SOURCES): New variable.
28087 (bsd_mod_CFLAGS): Likewise.
28088 (bsd_mod_LDFLAGS): Likewise.
28089 (bsd_mod_ASFLAGS): Likewise.
28090 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28091 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28093 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28095 Cleanup NetBSD root support.
28097 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28098 grub_bsd_get_device.
28101 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28103 * util/grub.d/00_header.in: Move check for the video backend of
28104 gfxterm from here ...
28105 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28106 a suitable video backend.
28108 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28110 Fix breakage in grub-setup.
28112 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28113 "msdos_partition_map".
28115 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28117 Fix breakage in normal/auth.c.
28119 * normal/auth.c (grub_iswordseparator): New function.
28121 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28123 Authentication support.
28125 * commands/password.c: New file.
28126 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28127 (password_mod_SOURCES): New variable.
28128 (password_mod_CFLAGS): Likewise.
28129 (password_mod_LDFLAGS): Likewise.
28130 (normal_mod_SOURCES): Add normal/auth.c.
28131 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28133 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28134 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28135 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28136 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28137 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28138 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28139 * include/grub/auth.h: New file.
28140 * include/grub/err.h (grub_err_t): New enum value
28141 GRUB_ERR_ACCESS_DENIED.
28142 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28144 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28145 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28147 * normal/auth.c: New file.
28148 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28149 (grub_cmdline_run): Don't allow to go to command line without
28151 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28152 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28153 menuentry without superuser rights.
28154 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28155 user isn't a superuser.
28157 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28159 Save space by inlining misc.c functions.
28161 * kern/misc.c (grub_iswordseparator): Made static.
28162 * kern/misc.c (grub_strcat): Moved from here ...
28163 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28164 * kern/misc.c (grub_strncat): Moved from here ...
28165 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28166 * kern/misc.c (grub_strcasecmp): Moved from here ...
28167 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28168 * kern/misc.c (grub_strncasecmp): Moved from here ...
28169 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28170 * kern/misc.c (grub_isalpha): Moved from here ...
28171 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28172 * kern/misc.c (grub_isdigit): Moved from here ...
28173 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28174 * kern/misc.c (grub_isgraph): Moved from here ...
28175 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28176 * kern/misc.c (grub_tolower): Moved from here ...
28177 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28179 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28181 * script/sh/function.c (grub_script_function_find): Cut error message
28182 not to flood terminal.
28183 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28185 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28187 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28189 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28190 `report' grub_uint8_t *.
28191 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28192 Use a 50-millisecond timeout rather than just repeating
28193 grub_usb_keyboard_getreport 50 times.
28194 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28196 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28198 Rename *_partition_map to part_*
28200 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28201 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28202 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28203 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28205 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28207 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28208 * util/grub-probe.c (probe_partmap): Don't transform partition name
28209 to get module name.
28211 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28213 Fix OpenBSD and NetBSD support.
28215 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28216 memory address conflict.
28217 (OPENBSD_MMAP_ACPI): New definition.
28218 (OPENBSD_MMAP_NVS): Likewise.
28219 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28220 and OPENBSD_MMAP_NVS.
28221 Add memory map terminator
28222 Explicit cast when calling grub_unix_real_boot.
28223 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28225 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28227 Let user specify NetBSD root device.
28229 * loader/i386/bsd.c (netbsd_root): New variable.
28230 (netbsd_opts): New option 'root'.
28231 (NETBSD_ROOT_ARG): New macro.
28232 (grub_netbsd_boot): Use 'netbsd_root'.
28233 (grub_bsd_unload): Free 'netbsd_root'.
28234 (grub_cmd_netbsd): Fill 'netbsd_root'.
28236 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28238 Support for 64-bit NetBSD.
28240 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28241 point when booting non-FreeBSD.
28243 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28245 Support --no-smp and --no-acpi for NetBSD.
28247 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28248 (NETBSD_AB_NOACPI): Likewise.
28249 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28250 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28252 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28254 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28256 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28257 errors. Call grub_error when needed.
28259 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28261 * commands/search.c (search_fs): Try searching without autoload first.
28262 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28263 filesystem module explicitly for faster booting.
28265 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28267 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28269 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28271 * util/grub.d/30_os-prober.in: Disable os-prober if
28272 `GRUB_DISABLE_OS_PROBER' was set to true.
28274 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28276 * partmap/pc.c: Rename to ...
28277 * partmap/msdos.c: ... this. Update all users.
28278 (grub_pc_partition_map): Rename to ...
28279 (grub_msdos_partition_map): ... this. Update all users.
28281 * parttool/pcpart.c: Rename to ...
28282 * parttool/msdospart.c: ... this. Update all users.
28284 * include/grub/pc_partition.h: Rename to ...
28285 * include/grub/msdos_partition.h: ... this. Update all users.
28286 (grub_pc_partition_bsd_entry): Rename to ...
28287 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28288 (grub_pc_partition_disk_label): Rename to ...
28289 (grub_msdos_partition_disk_label): ... this. Update all users.
28290 (grub_pc_partition_entry): Rename to ...
28291 (grub_msdos_partition_entry): ... this. Update all users.
28292 (grub_pc_partition_mbr): Rename to ...
28293 (grub_msdos_partition_mbr): ... this. Update all users.
28294 (grub_pc_partition): Rename to ...
28295 (grub_msdos_partition): ... this. Update all users.
28296 (grub_pc_partition_is_empty): Rename to ...
28297 (grub_msdos_partition_is_empty): ... this. Update all users.
28298 (grub_pc_partition_is_extended): Rename to ...
28299 (grub_msdos_partition_is_extended): ... this. Update all users.
28300 (grub_pc_partition_is_bsd): Rename to ...
28301 (grub_msdos_partition_is_bsd): ... this. Update all users.
28303 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28304 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28305 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28306 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28307 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28308 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28309 (gpt_mod_LDFLAGS): Rename to ...
28310 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28311 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28312 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28313 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28314 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28315 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28316 (part_gpt_mod_LDFLAGS): ... this.
28317 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28318 `pcpart.mod' to `msdospart.mod'.
28319 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28321 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28322 (msdospart_mod_LDFLAGS): ... this.
28324 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28326 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28327 (openbsd_opts): Likewise.
28328 (netbsd_opts): Likewise.
28329 (freebsd_flags): Added 0 terminator.
28330 (openbsd_flags): Likewise.
28331 (netbsd_flags): Likewise.
28332 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28333 (grub_cmd_freebsd): Transformed into extended command.
28334 (grub_cmd_openbsd): Likewise.
28335 (grub_cmd_netbsd): Likewise.
28336 (cmd_freebsd): Changed type to grub_extcmd_t.
28337 (cmd_openbsd): Likewise.
28338 (cmd_netbsd): Likewise.
28339 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28340 grub_cmd_openbsd as extended commands.
28341 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28342 cmd_netbsd and cmd_openbsd
28344 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28346 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28348 2009-08-21 Pavel Roskin <proski@gnu.org>
28350 * Makefile.in (install-local): When checking if a file is in the
28351 build directory, use "test -e" to detect symlinks.
28353 * Makefile.in (install-local): Remove all files in
28354 $(DESTDIR)$(pkglibdir) before installing new files there.
28356 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28358 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28361 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28363 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28364 explicitly specified by the user.
28366 2009-08-18 Pavel Roskin <proski@gnu.org>
28368 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28369 grub_uint8_t pointer for data.
28370 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28372 * video/fb/fbutil.c: Remove unnecessary casts.
28374 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28378 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28379 (grub_vbe_set_video_mode): Save active mode info
28380 only after setting the mode.
28381 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28384 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28386 Rename variables for clarity.
28388 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28389 (active_vbe_mode_info): ... this. All users updated.
28390 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28392 (initial_mode): Rename to ...
28393 (initial_vbe_mode): ... this. All users updated.
28394 (mode_in_use): Rename to ..
28395 (vbe_mode_in_use): ... this. All users updated.
28396 (mode_list): Rename to ..
28397 (vbe_mode_list): ... this. All users updated.
28398 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28399 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28400 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28401 'mode_list_size' to 'vbe_mode_list_size'.
28402 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28403 'best_mode_info' to 'best_vbe_mode_info' and
28404 'best_mode' to 'best_vbe_mode'
28406 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28408 Remove duplicate grub_video_fb_get_video_ptr.
28410 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28411 (grub_video_fb_get_video_ptr): ... this.
28412 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28413 * video/fb/fbutil.c: Add comment about addressing.
28414 (get_data_ptr): Rename to ...
28415 (grub_video_fb_get_video_ptr): ... this. All users updated.
28416 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28418 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28420 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28421 grub_dprintf() that was just added.
28423 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28425 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28426 (DEFAULT_VIDEO_MODE): Remove macros.
28427 (grub_linux_boot): Remove assumption that Linux has FB support,
28428 and use "text" as default video mode.
28430 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28432 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28434 * fs/fat.c (grub_fat_read_data): Likewise.
28436 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28438 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28440 (grub_module): Likewise.
28442 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28444 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28445 mbi->cmdline but free playground.
28447 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28449 Handle group offset on UFS1.
28451 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28452 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28454 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28456 Split ufs.mod into ufs1.mod and ufs2.mod.
28458 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28459 (grub_fstest_SOURCES): Likewise.
28460 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28461 (ufs_mod_SOURCES): Remove.
28462 (ufs_mod_CFLAGS): Likewise.
28463 (ufs_mod_LDFLAGS): Likewise.
28464 (ufs1_mod_SOURCES): New variable.
28465 (ufs1_mod_CFLAGS): Likewise.
28466 (ufs1_mod_LDFLAGS): Likewise.
28467 (ufs2_mod_SOURCES): New variable.
28468 (ufs2_mod_CFLAGS): Likewise.
28469 (ufs2_mod_LDFLAGS): Likewise.
28470 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28471 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28473 (grub_emu_SOURCES): Likewise.
28474 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28475 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28476 (grub_setup_SOURCES): Likewise.
28477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28478 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28479 (grub_setup_SOURCES): Likewise.
28480 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28482 * fs/ufs2.c: New file.
28483 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28485 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28489 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28490 subsystem at the end.
28491 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28492 (video_fb_mod_SOURCES): New variable.
28493 (video_fb_mod_CFLAGS): Likewise.
28494 (video_fb_mod_LDFLAGS): Likewise.
28495 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28496 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28497 * video/i386/pc/vbeblit.c: Moved from here ...
28498 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28499 * video/i386/pc/vbefill.c: Moved from here ...
28500 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28501 * video/i386/pc/vbeutil.c: Moved from here ...
28502 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28503 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28504 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28505 * include/grub/i386/pc/vbefill.h: Moved from here ...
28506 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28507 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28508 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28509 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28510 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28511 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28512 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28513 (grub_video_adapter): Added 'get_info_and_fini'.
28514 (grub_video_get_info_and_fini): New prototype.
28515 (grub_video_set_mode): make modestring const char *.
28516 * loader/i386/linux.c (grub_linux_setup_video): Use
28517 grub_video_get_info_and_fini.
28518 (grub_linux_boot): Move modesetting just before booting.
28519 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28520 grub_video_get_info_and_fini.
28521 * video/i386/pc/vbe.c: Moved framebuffer part ...
28522 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28523 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28524 grub_video_fbstd_colors and grub_video_fb_set_palette.
28525 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28526 grub_video_fb_init.
28527 (grub_video_vbe_fini): Use grub_video_fb_fini.
28528 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28529 render_target and use grub_video_fb_set_active_render_target and
28530 grub_video_fb_set_palette.
28531 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28532 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28533 (grub_video_vbe_adapter): Use framebuffer.
28534 * video/video.c (grub_video_get_info_and_fini): New function.
28535 (grub_video_set_mode): Make modestring const char *.
28536 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28537 values are already initialised.
28539 2009-08-14 Pavel Roskin <proski@gnu.org>
28541 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28543 * boot/i386/pc/diskboot.S: Likewise.
28544 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28545 sectors allow compilation on MacOSX.
28546 * conf/i386-pc.rmk: Enable unconditional compilation of
28549 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28551 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28552 * util/grub.d/00_header.in: Enter interruptible sleep if
28553 GRUB_HIDDEN_TIMEOUT is set.
28555 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28557 * include/grub/symbol.h: Add the LOCAL macro.
28558 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28559 starting with "L_".
28561 2009-08-13 Pavel Roskin <proski@gnu.org>
28563 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28564 any modern compilers we support.
28566 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28567 Use local labels starting with "L_" so that Apple assembler
28568 knows they are local.
28570 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28572 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28573 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28574 (bsd_kernel_types): ... this enum.
28576 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28577 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28578 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28580 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28581 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28582 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28585 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28587 * util/grub-dumpdevtree: Moved from here ...
28588 * util/i386/efi/grub-dumpdevtree: ... to here.
28589 (hexify): New function. Converts a string to its hex version.
28590 Generate hex versions of "efi" and "device-properties" by calling
28591 hexify() on the ASCII strings rather than by hardcoding numbers.
28593 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28595 * fs/jfs.c: Update copyright year.
28597 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28599 * util/grub.d/00_header.in: Fix a comment.
28600 * util/grub.d/10_linux.in: Likewise.
28601 * util/grub.d/10_windows.in: Likewise.
28602 * util/grub.d/10_hurd.in: Likewise.
28604 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28606 * util/grub-mkconfig.in: Allow the user to specify the used font
28609 2009-08-08 Pavel Roskin <proski@gnu.org>
28611 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28612 available, xfs.mod needs it now.
28614 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28615 the "g" modifier in sed when the intention is to strip something
28616 once. This fixes comparison of kernels with multiple dashes.
28618 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28619 on it. Add missing space before closing bracket. Fix
28620 misleading formatting.
28622 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28624 * docs/grub.texi: Major overhaul. Remove all sections that are
28625 specific to GRUB Legacy, or mostly composed of Legacy-specific
28628 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28630 * docs/version.texi: New file. Provides version information for
28633 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28635 * docs/grub.texi: Update CVS information to SVN.
28636 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28638 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28640 * util/grub-mkconfig.in: Remove a wrong `fi'.
28642 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28644 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28645 (grub_jfs_uuid): New function.
28646 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28648 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28650 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28652 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28653 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28655 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28657 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28658 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28661 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28662 not just "vmlinu[zx]".
28663 Moved from here ...
28664 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28667 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28668 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28671 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28673 * util/grub.d/10_freebsd.in: Use an absolute device path for
28674 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28676 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28678 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28679 handling of multiple abstraction modules.
28681 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28683 Fix a bug resulting in black screen when loading Linux using a
28686 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28689 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28690 (grub_vbe_bios_getset_dac_palette_width): New function.
28691 (grub_vbe_bios_get_dac_palette_width)
28692 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28693 grub_vbe_bios_getset_dac_palette_width()).
28695 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28696 check for return status.
28697 (grub_vbe_get_video_mode_info): When getting information for a packed
28698 mode (<= 8 bpp), obtain DAC palette width using
28699 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28700 {red,green,blue}_mark_size.
28702 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28704 * commands/search.c (options): Fix help output to match actual code.
28706 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28708 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28711 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28713 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
28714 on XFS or ReiserFS.
28716 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28718 Support Apple partition map with sector size different from 512 bytes.
28720 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
28721 (apple_partition_map_iterate): Respect 'aheader.blocksize'
28722 and 'apart.partmap_size'.
28724 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28725 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
28729 * commands/i386/cpuid.c (options): New variable.
28730 (grub_cmd_cpuid): Return real error.
28731 (GRUB_MOD_INIT(cpuid)): Declare options.
28733 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
28735 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
28738 2009-07-31 Bean <bean123ch@gmail.com>
28740 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
28742 (grub_fshelp_node): Move inode field to the end.
28743 (grub_xfs_data): Remove inode field.
28744 (grub_xfs_inode_block): Calculate inode size using sblock.
28745 (grub_xfs_inode_offset): Likewise.
28746 (grub_xfs_read_inode): Calculate inode size using sblock.
28747 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
28748 (grub_xfs_iterate_dir): Calculate inode size using sblock.
28749 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
28750 to match inode size.
28751 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
28752 not accessible when data is null.
28753 (grub_xfs_open): Likewise.
28755 2009-07-31 Bean <bean123ch@gmail.com>
28757 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
28758 Don't change pv->disk if it's already set.
28760 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
28761 (grub_raid_register): ... here.
28762 (grub_raid_rescan): Removed.
28764 * include/grub/raid.h (grub_raid_rescan): Removed.
28766 * util/grub-fstest.c: Remove include file <grub/raid.h>.
28767 (fstest): Replace grub_raid_rescan with module fini function followed
28770 * util/grub-probe.c: Add include file <grub/raid.h>.
28771 (probe_raid_level): New function.
28772 (probe): Detect abstraction by walking the disk device, support two
28773 level of abstraction (LVM on RAID) when detecting partition map.
28775 2009-07-31 Pavel Roskin <proski@gnu.org>
28777 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
28778 to grub_zalloc(), it was erroneous.
28779 Reported by Bean <bean123ch@gmail.com>
28781 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
28783 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
28784 embedding zone, not only the first one.
28786 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
28788 * term/gfxterm.c (clear_char): New function.
28789 (grub_virtual_screen_setup): Use clear_char.
28790 (scroll_up): Likewise.
28791 (grub_virtual_screen_cls): Likewise.
28793 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
28795 * util/deviceiter.c (get_acceleraid_disk_name): New static
28797 (grub_util_iterate_devices): Handle Accelraid devices.
28798 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
28800 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
28802 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
28803 separator for the suggested gfxpayload string (';' collides with the
28804 parser and needs escaping).
28806 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
28808 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
28809 Clear direction flag before jumping to OS.
28810 (grub_multiboot2_real_boot): Likewise.
28812 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28814 * util/i386/pc/grub-install: Fix parsing of --disk-module
28817 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28819 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
28822 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
28824 * util/grub-mkconfig.in (package_version): New variable.
28825 Use it do display the version.
28827 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28829 * kern/file.c (grub_file_open): Revert to previous check with
28832 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28834 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
28835 from help line. It's out of sync with code.
28837 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28839 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
28840 entries on failed boot.
28842 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28844 * kern/file.c (grub_file_open): Fix an error check.
28846 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
28848 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
28849 partition map couldn't be identified.
28851 2009-07-23 Pavel Roskin <proski@gnu.org>
28853 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
28854 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
28855 case of little endian words becomes just an optimization.
28856 Respect const modifier.
28857 (md5_final): Use code that doesn't depend on endianness.
28859 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
28860 to avoid loss of upper bits if align is unsigned and shorter
28863 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28865 UUID support for UFS
28867 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
28868 (grub_ufs_uuid): New function.
28869 (grub_ufs_fs): add .uuid
28871 2009-07-21 Pavel Roskin <proski@gnu.org>
28873 * kern/dl.c (grub_dl_check_header): Make static.
28875 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
28877 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
28878 add drivemap for Vista. It breaks Windows 7.
28880 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28882 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
28885 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28889 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
28890 (grub_fstest_SOURCES): Likewise.
28891 (pkglib_MODULES): Add befs.mod.
28892 (befs_mod_SOURCES): New variable.
28893 (befs_mod_CFLAGS): Likewise.
28894 (befs_mod_LDFLAGS): Likewise.
28895 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28896 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28897 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28898 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28899 (grub_setup_SOURCES): Likewise.
28900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28901 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28902 (grub_setup_SOURCES): Likewise.
28903 * fs/befs.c: New file.
28904 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
28905 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
28906 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
28907 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
28908 (B_KEY_INDEX_ALIGN): New declaration.
28909 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
28910 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
28911 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
28912 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
28913 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
28914 (grub_afs_mount) [MODE_BFS]: Likewise.
28915 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
28916 (grub_afs_fs): Use GRUB_AFS_FSNAME
28917 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
28918 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
28919 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
28920 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
28922 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
28924 * util/getroot.c (find_root_device): Add support for MacOSX.
28925 * util/hostdisk.c: Likewise.
28927 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28929 * font/font.c (find_glyph): Check whether a font is present to avoid
28930 segmentation fault.
28932 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
28934 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
28936 2009-07-20 Pavel Roskin <proski@gnu.org>
28938 * configure.ac: Trim excessively wordy excuses.
28940 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28942 Add symlink, mtime and label support to AtheFS.
28944 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
28945 (grub_afs_iterate_dir): Handle symlinks.
28946 (grub_afs_open): Use grub_afs_read_symlink.
28947 (grub_afs_dir): Likewise.
28949 (grub_afs_label): New function.
28950 (grub_afs_fs): Add grub_afs_label.
28951 (grub_afs_read_symlink): New function.
28953 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28955 Fix AtheFS support.
28957 * fs/afs.c: Fix comments style.
28958 (grub_afs_blockrun): Declare as packed.
28959 (grub_afs_datastream): Likewise.
28960 (grub_afs_bnode): Likewise.
28961 (grub_afs_btree): Likewise.
28962 (grub_afs_sblock): Likewise.
28963 Declare `name' as char.
28964 (grub_afs_inode): Declare as packed.
28965 Change void *vnode to grub_uint32_t unused.
28966 (grub_afs_iterate_dir): Check that key_size is positive.
28967 (grub_afs_mount): Don't read superblock twice.
28968 (grub_afs_dir): Don't free node in case of error,
28969 grub_fshelp_find_file already handles this.
28970 (grub_afs_open): Likewise.
28972 2009-07-19 Pavel Roskin <proski@gnu.org>
28974 * Makefile.in: Remove LIBLZO and enable_lzo.
28975 * conf/i386-pc.rmk: Remove lzo support.
28976 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
28977 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
28979 * kern/i386/pc/lzo1x.S: Remove.
28980 * kern/i386/pc/startup.S: Remove lzo support.
28981 * util/i386/pc/grub-mkimage.c: Likewise.
28983 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
28985 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
28986 * fs/xfs.c (grub_xfs_dir): Likewise.
28987 * fs/afs.c (grub_afs_dir): Likewise.
28988 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
28989 (grub_iso9660_open): Likewise.
28990 * fs/jfs.c (grub_jfs_open): Likewise.
28991 * fs/ext2.c (grub_ext2_dir): Likewise.
28992 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
28993 * script/sh/lexer.c (grub_script_yylex): Likewise.
28995 2009-07-16 Pavel Roskin <proski@gnu.org>
28997 * configure.ac: Never add "-c" to CFLAGS.
28999 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29001 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29002 grub_cv_cc_efiemu should be used.
29004 * configure.ac: Typo fixes.
29006 * kern/mm.c (grub_zalloc): New function.
29007 (grub_debug_zalloc): Likewise.
29008 * include/grub/mm.h: Declare grub_zalloc() and
29009 grub_debug_zalloc().
29010 * util/misc.c (grub_zalloc): New function.
29011 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29012 instead of grub_malloc(), remove unneeded initializations.
29013 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29014 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29015 * commands/parttool.c (grub_cmd_parttool): Likewise.
29016 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29017 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29018 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29019 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29020 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29021 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29022 (grub_cmd_efiemu_pnvram): Likewise.
29023 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29024 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29025 (grub_iso9660_iterate_dir): Likewise.
29026 * fs/jfs.c (grub_jfs_opendir): Likewise.
29027 * fs/ntfs.c (list_file): Likewise.
29028 (grub_ntfs_mount): Likewise.
29029 * kern/disk.c (grub_disk_open): Likewise.
29030 * kern/dl.c (grub_dl_load_core): Likewise.
29031 * kern/elf.c (grub_elf_file): Likewise.
29032 * kern/env.c (grub_env_context_open): Likewise.
29033 (grub_env_set): Likewise.
29034 (grub_env_set_data_slot): Likewise.
29035 * kern/file.c (grub_file_open): Likewise.
29036 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29037 * loader/i386/multiboot.c (grub_module): Likewise.
29038 * loader/xnu.c (grub_xnu_create_key): Likewise.
29039 (grub_xnu_create_value): Likewise.
29040 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29041 (read_config_file): Likewise.
29042 * normal/menu_entry.c (make_screen): Likewise.
29043 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29044 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29045 * script/sh/script.c (grub_script_parse): Likewise.
29046 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29047 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29048 * video/readers/png.c (grub_png_output_byte): Likewise.
29049 (grub_video_reader_png): Likewise.
29051 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29053 Enable all targets that can be built by default
29055 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29056 grub-mkfont and grub-fstest if they can be built
29058 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29060 Fix hang and segmentation fault in grub-emu-usb
29062 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29063 * util/usb.c (grub_libusb_devices): likewise
29064 (grub_libusb_init): rename to ...
29065 (GRUB_MOD_INIT (libusb)):...this
29066 (grub_libusb_fini): rename to ..
29067 (GRUB_MOD_FINI (libusb)):...this
29068 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29069 * include/grub/disk.h (grub_raid_init): removed, it's useless
29070 (grub_raid_fini): likewise
29071 (grub_lvm_init): likewise
29072 (grub_lvm_fini): likewise
29073 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29076 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29080 * Makefile.in (LIBUSB): new macro
29081 * genmk.rb (Utility/print_tail): new method
29082 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29083 (top level): call util.print_tail at the end.
29085 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29087 Make FreeBSD accept zpool.cache
29089 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29090 type is /boot/zfs/zpool.cache
29092 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29096 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29097 correct wrong typedef
29098 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29100 2009-07-15 Pavel Roskin <proski@gnu.org>
29102 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29103 * kern/disk.c (struct grub_disk_cache): Likewise.
29105 * commands/probe.c (options): Typo fix.
29107 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29108 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29110 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29112 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29113 the end of "Error" to make the message more readable.
29115 * boot/i386/pc/boot.S (kernel_segment): Remove.
29116 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29119 * boot/i386/pc/boot.S (boot_version): Remove.
29120 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29123 * include/grub/i386/pc/boot.h: Sort all offsets.
29124 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29125 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29126 * boot/i386/pc/boot.S: Assert location of every offset listed in
29127 include/grub/i386/pc/boot.h.
29129 2009-07-13 Pavel Roskin <proski@gnu.org>
29131 * include/grub/i386/coreboot/machine.h: Rename
29132 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29133 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29134 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29136 * kern/dl.c: Force native word size to suppress warnings when
29137 compiling grub-emu.
29139 * kern/device.c (grub_device_iterate): Change struct part_ent to
29140 hold the name, not a pointer to it. Use one grub_malloc() per
29141 partition, not two. Free partition_name if grub_malloc() fails.
29142 Set ents to NULL only before grub_partition_iterate() is called.
29144 2009-07-11 Bean <bean123ch@gmail.com>
29146 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29149 2009-07-10 Bean <bean123ch@gmail.com>
29150 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29152 * kern/ieee1275/openfw.c (grub_children_iterate)
29153 (grub_devalias_iterate): Fix size evaluation for property or path
29154 strings, which was broken since r2132.
29156 2009-07-07 Pavel Roskin <proski@gnu.org>
29158 * commands/search.c (search_file): Merge into ...
29159 (search_fs): ... this. Accept search type as argument.
29160 (grub_cmd_search): Pass search type to search_fs().
29162 * include/grub/util/console.h: New file.
29163 * util/console.c: Use it instead of grub/machine/console.h.
29164 * util/grub-emu.c: Likewise.
29166 * lib/arg.c (find_long_option): Remove.
29167 (find_long): Add `len' argument, make `s' const char *.
29168 (grub_arg_parse): Parse long options in place, not in a
29171 2009-07-06 Pavel Roskin <proski@gnu.org>
29173 * commands/search.c (search_fs): Fix potential NULL pointer
29176 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29179 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29181 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29184 2009-07-05 Pavel Roskin <proski@gnu.org>
29186 * include/grub/i386/linux.h (struct linux_kernel_params):
29187 Restore padding3, it's still needed.
29189 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29191 * util/osdetect.lua: Likewise.
29193 2009-07-05 Bean <bean123ch@gmail.com>
29195 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29197 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29198 (grub_lua_getenv): Likewise.
29199 (grub_lua_setenv): Likewise.
29200 (save_errno): New function.
29201 (push_result): Likewise.
29202 (grub_lua_enum_device): Likewise.
29203 (grub_lua_enum_file): Likewise.
29204 (grub_lua_file_open): Likewise.
29205 (grub_lua_file_close): Likewise.
29206 (grub_lua_file_seek): Likewise.
29207 (grub_lua_file_read): Likewise.
29208 (grub_lua_file_getline): Likewise.
29209 (grub_lua_file_getsize): Likewise.
29210 (grub_lua_file_getpos): Likewise.
29211 (grub_lua_file_eof): Likewise.
29212 (grub_lua_file_exist): Likewise.
29213 (grub_lua_add_menu): Likewise.
29215 * script/lua/grub_lua.h (isupper): New inline function.
29216 (islower): Likewise.
29217 (ispunct): Likewise.
29218 (isxdigit): Likewise.
29219 (strcspn): Change to normal function.
29220 (strpbkr): New function declaration.
29221 (memchr): Likewise.
29223 * script/lua/grub_main.c (scan_str): New function.
29224 (strcspn): Likewise.
29225 (strpbrk): Likewise.
29226 (memchr): Likewise.
29228 * script/lua/linit.c (lualibs): Enable the string library.
29230 * util/osdetect.lua: New file.
29232 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29234 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29235 `capabilities' member.
29237 2009-07-02 Pavel Roskin <proski@gnu.org>
29239 * genparttoollist.sh: Add missing newline at the end.
29241 2009-07-01 Pavel Roskin <proski@gnu.org>
29243 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29245 * util/hostdisk.c (open_device): Remove `const' from
29246 `sysctl_size', as sysctlbyname() can change it (in this case it
29247 doesn't actually happen).
29249 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29250 using signed long int constants.
29252 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29253 constant to avoid a warning on FreeBSD.
29255 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29258 * Makefile.in: Install include/grub/machine symlink.
29260 * Makefile.in: When installing symlinks, use "cp -fR", which
29261 works on FreeBSD and MacOSX.
29262 From Yves Blusseau <cl7m42e02@sneakemail.com>
29264 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29265 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29267 * util/misc.c: Move grub_reboot() and grub_halt() ...
29268 * util/grub-emu.c: ... here. Make main_env static.
29269 * include/grub/util/misc.h: Remove main_env.
29271 * kern/mm.c: Use correct format to print size_t.
29273 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29274 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29275 * kern/powerpc/dl.c: Likewise.
29276 * kern/sparc64/dl.c: Likewise.
29277 * kern/x86_64/dl.c: Likewise.
29279 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29281 Fix grub-emu build on sparc64-ieee1275.
29283 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29286 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29288 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29289 (grub_reboot, grub_halt): New functions.
29291 * util/i386/pc/misc.c: Delete. Update all users.
29292 * util/sparc64/ieee1275/misc.c: Likewise.
29293 * util/powerpc/ieee1275/misc.c: Likewise.
29295 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29297 * conf/i386.rmk (setjmp_mod_SOURCES)
29298 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29299 * conf/common.rmk (setjmp_mod_SOURCES)
29300 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29301 to use $(target_cpu).
29302 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29303 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29304 * conf/powerpc-ieee1275.rmk: Likewise.
29305 * conf/sparc64-ieee1275.rmk: Likewise.
29307 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29308 $(target_cpu) for kern/$(target_cpu)/dl.c.
29309 * conf/i386-efi.rmk: Likewise.
29310 * conf/i386-ieee1275.rmk: Likewise.
29311 * conf/x86_64-efi.rmk: Likewise.
29312 * conf/i386-coreboot.rmk: Likewise.
29313 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29314 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29315 kern/$(target_cpu)/cache.S.
29316 * conf/sparc64-ieee1275.rmk: Likewise.
29318 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29320 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29321 type to `grub_uint8_t', and adjust `padding9' accordingly.
29323 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29325 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29327 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29328 assembly in final jump, using register constraints.
29330 (grub_linux_boot): For text mode, initialize `have_vga' using
29331 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29333 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29334 right before the final jump.
29336 Set `video_mode' to 0x3.
29338 Document initialization of `video_page', `video_mode' and
29341 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29343 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29344 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29345 and set GRUB_LINUX_FLAG_QUIET appropriately.
29347 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29349 Fix build on Debian / sparc.
29351 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29353 2009-06-28 Pavel Roskin <proski@gnu.org>
29355 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29358 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29360 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29362 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29365 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29369 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29370 file can't be opened. grub_file_open() is already supposed to set
29371 grub_errno / grub_errmsg appropriately.
29372 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29374 2009-06-27 Pavel Roskin <proski@gnu.org>
29375 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29377 * include/grub/dl.h: Include grub/elf.h.
29378 (struct grub_dl): Add symtab field.
29379 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29380 GRUB_MODULES_MACHINE_READONLY.
29381 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29382 of the header for read-only modules.
29383 (grub_dl_unload): Free mod->symtab for read-only modules.
29384 * kern/i386/dl.c: Use mod->symtab.
29385 * kern/powerpc/dl.c: Likewise.
29386 * kern/sparc64/dl.c: Likewise.
29387 * kern/x86_64/dl.c: Likewise.
29389 * conf/i386-qemu.rmk: New file.
29390 * kern/i386/qemu/startup.S: Likewise.
29391 * kern/i386/qemu/mmap.c: Likewise.
29392 * boot/i386/qemu/boot.S: Likewise.
29393 * include/grub/i386/qemu/time.h: Likewise.
29394 * include/grub/i386/qemu/serial.h: Likewise.
29395 * include/grub/i386/qemu/kernel.h: Likewise.
29396 * include/grub/i386/qemu/console.h: Likewise.
29397 * include/grub/i386/qemu/boot.h: Likewise.
29398 * include/grub/i386/qemu/init.h: Likewise.
29399 * include/grub/i386/qemu/machine.h: Likewise.
29400 * include/grub/i386/qemu/loader.h: Likewise.
29401 * include/grub/i386/qemu/memory.h: Likewise.
29403 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29404 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29405 [qemu] (pkglib_IMAGES): Add `boot.img'.
29406 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29407 [qemu] (boot_img_FORMAT): New variables.
29408 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29409 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29410 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29411 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29412 [qemu] (kernel_img_FORMAT): New variables.
29414 * configure.ac: Recognise `i386-qemu'.
29416 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29417 (for no compression).
29418 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29419 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29420 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29421 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29424 2009-06-27 Pavel Roskin <proski@gnu.org>
29426 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29428 * efiemu/prepare32.c: Likewise.
29429 * efiemu/prepare64.c: Likewise.
29431 2009-06-26 Pavel Roskin <proski@gnu.org>
29433 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29434 * include/grub/elf.h: Define symbols without "32" or "64" based
29435 on GRUB_TARGET_WORDSIZE.
29436 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29437 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29439 * efiemu/loadcore64.c: Likewise.
29440 * loader/i386/bsd32.c: Likewise.
29441 * loader/i386/bsd64.c: Likewise.
29442 * kern/dl.c: Remove own ELF definitions.
29443 * util/i386/efi/grub-mkimage.c: Likewise.
29445 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29447 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29448 segment 0x0 unconditionally, because the reference generated by
29449 GAS is an absolute address.
29451 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29453 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29454 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29456 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29458 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29459 indexes. Check for -f explicitly.
29460 (search_file): Improve error message.
29461 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29463 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29465 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29466 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29468 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29470 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29471 * conf/i386-ieee1275.rmk: Likewise.
29472 * conf/i386-coreboot.rmk: Likewise.
29474 * kern/i386/pc/startup.S (grub_stop): Remove function.
29475 * kern/i386/ieee1275/startup.S: Likewise.
29476 * kern/i386/coreboot/startup.S: Likewise.
29477 * kern/i386/misc.S (grub_stop): New function.
29479 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29481 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29482 * kern/i386/realmode.S (real_to_prot): ... to here.
29484 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29486 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29488 (kernel_elf_SOURCES): Rename to ...
29489 (kernel_img_SOURCES): ... this.
29490 (kernel_elf_HEADERS): Rename to ...
29491 (kernel_img_HEADERS): ... this. Update all users.
29492 (kernel_elf_ASFLAGS): Rename to ...
29493 (kernel_img_ASFLAGS): ... this.
29494 (kernel_elf_CFLAGS): Rename to ...
29495 (kernel_img_CFLAGS): ... this.
29496 (kernel_elf_LDFLAGS): Rename to ...
29497 (kernel_img_LDFLAGS): ... this.
29498 * conf/i386-coreboot.rmk: Likewise.
29499 * conf/powerpc-ieee1275.rmk: Likewise.
29501 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29504 2009-06-21 Pavel Roskin <proski@gnu.org>
29506 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29507 to match nested functions.
29508 * loader/sparc64/ieee1275/linux.c: Likewise.
29510 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29512 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29514 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29515 all i386 platforms.
29517 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29519 Fix asm file handling on ELF, and remove workarounds.
29521 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29522 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29523 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29524 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29526 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29528 Load BSD ELF modules
29530 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29531 and loader/i386/bsd64.c
29532 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29533 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29534 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29535 (grub_freebsd_load_elfmodule32): New declaration
29536 (grub_freebsd_load_elfmoduleobj64): Likewise
29537 (grub_freebsd_load_elf_meta32): Likewise
29538 (grub_freebsd_load_elf_meta64): Likewise
29539 (grub_freebsd_add_meta): Likewise
29540 (grub_freebsd_add_meta_module): Likewise
29541 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29542 (grub_freebsd_add_meta_module): Likewise and move module-specific
29543 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29544 (grub_cmd_freebsd): Add elf-kernel specific parts
29545 based on grub_freebsd_add_meta_module
29546 (grub_cmd_freebsd_module): Add type parsing moved from
29547 grub_freebsd_add_meta_module
29548 (grub_cmd_freebsd_module_elf): New function
29549 (cmd_freebsd_module_elf): New variable
29550 (GRUB_MOD_INIT): Register freebsd_module_elf
29551 * loader/i386/bsd32.c: New file
29552 * loader/i386/bsd64.c: Likewise
29553 * loader/i386/bsdXX.c: Likewise
29554 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29555 (grub_elf64_load): Likewise
29556 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29558 (grub_elf64_load_hook_t): Likewise
29560 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29562 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29564 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29565 don't write a menu entry for recovery mode.
29567 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29569 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29570 after it's no longer needed.
29572 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29574 * include/grub/i386/loader.h (grub_linux_prot_size)
29575 (grub_linux_tmp_addr, grub_linux_real_addr)
29576 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29577 GRUB_MACHINE_PCBIOS.
29578 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29579 common grub_util_info() call to ...
29580 (generate_image): ... here.
29581 Fix use of uninitialized memory, comparison of signed with
29582 unsigned integers and memory leak.
29583 Remove bogus module address message.
29585 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29587 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29589 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29591 2009-06-19 Pavel Roskin <proski@gnu.org>
29593 * configure.ac: Remove stray AC_MSG_CHECKING.
29595 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29597 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29599 2009-06-18 Pavel Roskin <proski@gnu.org>
29601 * conf/common.rmk: Add fs_file.mod.
29602 * disk/fs_file.c: New file.
29603 * include/grub/disk.h (enum grub_disk_dev_id): Add
29604 GRUB_DISK_DEVICE_FILE_ID.
29606 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29608 Fix build with Apple's toolchain. Part 2
29610 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29613 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29615 Fix build with Apple's toolchain. Part 1
29617 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29619 * configure.ac: remove a leftover AC_MSG_RESULT
29620 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29623 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29627 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29628 (decomp_block): initialize ch
29629 use grub_memcpy instead of memcpy
29631 2009-06-17 Pavel Roskin <proski@gnu.org>
29633 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29634 version, use declarations needed to use vga_text as the startup
29637 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29638 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29640 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29641 and grub_at_keyboard_fini(), it's done on module load and
29644 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29646 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29647 file can't be found.
29648 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29650 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29652 Fix newline handling
29654 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29655 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29656 (grub_script_yylex): don't segfault on unterminated script
29657 newline terminates command and variable
29659 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29661 avoid double grub_adjust_range call. Bug reported by David Simner
29663 * kern/disk.c (grub_disk_write): change to raw disk access before
29666 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29668 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29669 spaces, for the benefit of help2man.
29670 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29672 2009-06-16 Pavel Roskin <proski@gnu.org>
29674 * kern/i386/halt.c: Include grub/machine/init.h.
29675 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29677 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29679 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29680 drivemap menuentry.
29682 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29684 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29687 2009-06-16 Pavel Roskin <proski@gnu.org>
29689 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29690 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29691 save %dx, we only need %dl and we never change it.
29692 * boot/i386/pc/cdboot.S: Don't set the root drive.
29693 * boot/i386/pc/pxeboot.S: Likewise.
29694 * include/grub/i386/pc/boot.h: Remove
29695 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29696 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29697 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29698 * kern/i386/pc/init.c (make_install_device): Remove references
29699 to grub_root_drive.
29700 * kern/i386/pc/startup.S: Likewise.
29701 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29703 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29707 * commands/xnu_uuid.c: new file
29708 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29709 (xnu_uuid_mod_SOURCES): new variable
29710 (xnu_uuid_mod_CFLAGS): likewise
29711 (xnu_uuid_mod_LDFLAGS): likewise
29712 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29713 * conf/i386-ieee1275.rmk: likewise
29714 * conf/i386-pc.rmk: likewise
29715 * conf/powerpc-ieee1275.rmk: likewise
29716 * conf/sparc64-ieee1275.rmk: likewise
29717 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
29719 2009-06-16 Pavel Roskin <proski@gnu.org>
29721 * configure.ac: Avoid '==' in test command, it's not portable.
29723 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29727 * commands/probe.c: new file
29728 * conf/common.rmk (pkglib_MODULES): add probe.mod
29729 (probe_mod_SOURCES): new variable
29730 (probe_mod_CFLAGS): likewise
29731 (probe_mod_LDFLAGS): likewise
29732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29733 * conf/i386-ieee1275.rmk: likewise
29734 * conf/i386-pc.rmk: likewise
29735 * conf/powerpc-ieee1275.rmk: likewise
29736 * conf/sparc64-ieee1275.rmk: likewise
29738 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
29740 Fix handling of string like \"hello\" and "a
29743 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
29744 (grub_script_yylex): fix parsing of quoting, escaping and newline
29746 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
29748 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
29751 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
29753 * util/grub-mkconfig.in: Fix parsing of --output option.
29755 2009-06-12 Pavel Roskin <proski@gnu.org>
29757 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
29758 genmk.rb don't need to be generated or installed.
29760 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
29762 * commands/i386/pc/drivemap_int13h.S: add more comments
29764 2009-06-11 Pavel Roskin <proski@gnu.org>
29766 * Makefile.in (uninstall): Uninstall manuals.
29768 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
29769 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
29770 and update-grub_lib in two places.
29771 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
29773 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
29774 a compiler warning.
29776 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
29777 `entry_lo' to fix variable shadowing.
29779 2009-06-11 Christian Franke <franke@computer.org>
29781 * kern/misc.c (__enable_execute_stack): Add missing return type
29782 to prevent gcc warning.
29784 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29786 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
29788 2009-06-11 Pavel Roskin <proski@gnu.org>
29790 * Makefile.in: Don't rely on any scripts being executable.
29791 Always use $(SHELL) to run shell scripts.
29793 * configure.ac: Always define ___main if using -nostdlib. This
29794 fixes tests on Cygwin.
29796 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
29800 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
29801 is in bytes and not in blocks
29803 2009-06-11 Pavel Roskin <proski@gnu.org>
29805 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
29808 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29810 * util/grub.d/30_os-prober.in: Fix a comment. Source
29811 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
29812 to set the root device. Place drivemap command in the generated
29815 2009-06-11 Pavel Roskin <proski@gnu.org>
29817 * configure.ac: Remove host_m32. Issues with 64-bit utilities
29818 have long been resolved.
29820 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
29822 * util/grub.d/10_linux.in: Capitalise "Linux".
29824 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
29826 2009-06-11 Pavel Roskin <proski@gnu.org>
29828 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
29829 fix a gcc warning and ensure that the function won't ever exit.
29831 * kern/i386/ieee1275/init.c: Add missing prototype for
29832 grub_stop_floppy().
29834 * loader/ieee1275/multiboot2.c [__i386__]: Include
29835 grub/cpu/multiboot.h.
29837 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
29838 casts to short - they are not portable and cause warnings. Fix
29839 use of uninitialized values in input_buf. Use ARRAY_SIZE.
29841 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
29845 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
29847 (grub_get_root_biosnumber_saved): new variable
29848 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
29849 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
29850 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
29851 %dx after the call if necessary
29852 * conf/common.rmk (pkglib_MODULES): remove boot.mod
29853 (boot_mod_SOURCES): remove
29854 (boot_mod_CFLAGS): remove
29855 (boot_mod_LDFLAGS): remove
29856 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
29857 (boot_mod_SOURCES): new variable
29858 (boot_mod_CFLAGS): likewise
29859 (boot_mod_LDFLAGS): likewise
29860 * conf/i386-efi.rmk: likewise
29861 * conf/i386-ieee1275.rmk: likewise
29862 * conf/i386-pc.rmk: likewise
29863 * conf/powerpc-ieee1275.rmk: likewise
29864 * conf/sparc64-ieee1275.rmk: likewise
29865 * conf/x86_64-efi.rmk: likewise
29866 * include/grub/i386/pc/biosnum.h: new file
29867 * lib/i386/pc/biosnum.c: likewise
29868 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
29869 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
29870 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
29872 2009-06-10 Pavel Roskin <proski@gnu.org>
29874 * io/gzio.c (test_header): Don't reuse one buffer for all data.
29875 Use separate variables. Read only the file size at the end, but
29876 not the checksum that we don't use.
29878 * kern/file.c (grub_file_read): Use void pointer for the buffer.
29879 Adjust all callers.
29881 * kern/ieee1275/openfw.c: Remove libc includes.
29882 * kern/ieee1275/cmain.c: Likewise.
29883 * include/grub/ieee1275/ieee1275.h: Likewise.
29885 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
29888 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29890 * Makefile.in: Remove all trailing whitespace.
29891 * conf/i386-pc.rmk: Likewise.
29892 * conf/powerpc-ieee1275.rmk: Likewise.
29893 * conf/sparc64-ieee1275.rmk: Likewise.
29894 * docs/grub.texi: Likewise.
29895 * docs/texinfo.tex: Likewise.
29896 * disk/fs_uuid.c: Likewise.
29897 * disk/lvm.c: Likewise.
29898 * disk/scsi.c: Likewise.
29899 * disk/ata.c: Likewise.
29900 * disk/ieee1275/ofdisk.c: Likewise.
29901 * disk/i386/pc/biosdisk.c: Likewise.
29902 * disk/host.c: Likewise.
29903 * disk/raid.c: Likewise.
29904 * disk/efi/efidisk.c: Likewise.
29905 * disk/usbms.c: Likewise.
29906 * disk/memdisk.c: Likewise.
29907 * disk/loopback.c: Likewise.
29908 * kern/powerpc/dl.c: Likewise.
29909 * kern/device.c: Likewise.
29910 * kern/dl.c: Likewise.
29911 * kern/sparc64/dl.c: Likewise.
29912 * kern/ieee1275/ieee1275.c: Likewise.
29913 * kern/term.c: Likewise.
29914 * kern/fs.c: Likewise.
29915 * kern/i386/dl.c: Likewise.
29916 * kern/i386/pc/startup.S: Likewise.
29917 * kern/i386/pc/init.c: Likewise.
29918 * kern/i386/pc/mmap.c: Likewise.
29919 * kern/i386/pc/lzo1x.S: Likewise.
29920 * kern/i386/ieee1275/init.c: Likewise.
29921 * kern/i386/realmode.S: Likewise.
29922 * kern/i386/tsc.c: Likewise.
29923 * kern/partition.c: Likewise.
29924 * kern/corecmd.c: Likewise.
29925 * kern/file.c: Likewise.
29926 * kern/efi/efi.c: Likewise.
29927 * kern/efi/init.c: Likewise.
29928 * kern/efi/mm.c: Likewise.
29929 * kern/main.c: Likewise.
29930 * kern/err.c: Likewise.
29931 * kern/env.c: Likewise.
29932 * kern/disk.c: Likewise.
29933 * kern/generic/millisleep.c: Likewise.
29934 * kern/generic/rtc_get_time_ms.c: Likewise.
29935 * kern/misc.c: Likewise.
29936 * kern/parser.c: Likewise.
29937 * genmk.rb: Likewise.
29938 * configure.ac: Likewise.
29939 * boot/i386/pc/diskboot.S: Likewise.
29940 * boot/i386/pc/pxeboot.S: Likewise.
29941 * boot/i386/pc/boot.S: Likewise.
29942 * boot/i386/pc/lnxboot.S: Likewise.
29943 * boot/i386/pc/cdboot.S: Likewise.
29944 * parttool/pcpart.c: Likewise.
29945 * video/readers/tga.c: Likewise.
29946 * video/video.c: Likewise.
29947 * video/bitmap.c: Likewise.
29948 * lib/envblk.c: Likewise.
29949 * lib/i386/setjmp.S: Likewise.
29950 * fs/xfs.c: Likewise.
29951 * fs/afs.c: Likewise.
29952 * fs/fat.c: Likewise.
29953 * fs/ntfs.c: Likewise.
29954 * fs/udf.c: Likewise.
29955 * fs/affs.c: Likewise.
29956 * fs/iso9660.c: Likewise.
29957 * fs/hfs.c: Likewise.
29958 * fs/fshelp.c: Likewise.
29959 * fs/ext2.c: Likewise.
29960 * fs/jfs.c: Likewise.
29961 * fs/reiserfs.c: Likewise.
29962 * fs/hfsplus.c: Likewise.
29963 * fs/minix.c: Likewise.
29964 * fs/cpio.c: Likewise.
29965 * fs/sfs.c: Likewise.
29966 * fs/ufs.c: Likewise.
29967 * efiemu/prepare.c: Likewise.
29968 * efiemu/loadcore_common.c: Likewise.
29969 * efiemu/runtime/efiemu.sh: Likewise.
29970 * efiemu/runtime/efiemu.S: Likewise.
29971 * efiemu/runtime/efiemu.c: Likewise.
29972 * efiemu/pnvram.c: Likewise.
29973 * efiemu/main.c: Likewise.
29974 * efiemu/i386/pc/cfgtables.c: Likewise.
29975 * efiemu/i386/loadcore64.c: Likewise.
29976 * efiemu/i386/loadcore32.c: Likewise.
29977 * efiemu/loadcore.c: Likewise.
29978 * efiemu/symbols.c: Likewise.
29979 * efiemu/mm.c: Likewise.
29980 * include/grub/autoefi.h: Likewise.
29981 * include/grub/datetime.h: Likewise.
29982 * include/grub/term.h: Likewise.
29983 * include/grub/hfs.h: Likewise.
29984 * include/grub/lvm.h: Likewise.
29985 * include/grub/i386/tsc.h: Likewise.
29986 * include/grub/i386/linux.h: Likewise.
29987 * include/grub/i386/xnu.h: Likewise.
29988 * include/grub/i386/efiemu.h: Likewise.
29989 * include/grub/i386/pc/biosdisk.h: Likewise.
29990 * include/grub/i386/pc/memory.h: Likewise.
29991 * include/grub/i386/pc/vbe.h: Likewise.
29992 * include/grub/parttool.h: Likewise.
29993 * include/grub/video.h: Likewise.
29994 * include/grub/memory.h: Likewise.
29995 * include/grub/fs.h: Likewise.
29996 * include/grub/partition.h: Likewise.
29997 * include/grub/xnu.h: Likewise.
29998 * include/grub/efi/api.h: Likewise.
29999 * include/grub/efi/pe32.h: Likewise.
30000 * include/grub/efi/memory.h: Likewise.
30001 * include/grub/multiboot.h: Likewise.
30002 * include/grub/usbdesc.h: Likewise.
30003 * include/grub/multiboot2.h: Likewise.
30004 * include/grub/acpi.h: Likewise.
30005 * include/grub/efiemu/efiemu.h: Likewise.
30006 * include/grub/disk.h: Likewise.
30007 * include/grub/ieee1275/ieee1275.h: Likewise.
30008 * include/grub/net.h: Likewise.
30009 * include/grub/machoload.h: Likewise.
30010 * include/grub/macho.h: Likewise.
30011 * include/multiboot.h: Likewise.
30012 * genmoddep.awk: Likewise.
30013 * normal/main.c: Likewise.
30014 * normal/menu_entry.c: Likewise.
30015 * normal/menu_viewer.c: Likewise.
30016 * normal/completion.c: Likewise.
30017 * normal/cmdline.c: Likewise.
30018 * normal/misc.c: Likewise.
30019 * normal/datetime.c: Likewise.
30020 * bus/usb/usbtrans.c: Likewise.
30021 * bus/usb/ohci.c: Likewise.
30022 * bus/usb/uhci.c: Likewise.
30023 * bus/usb/usb.c: Likewise.
30024 * mmap/efi/mmap.c: Likewise.
30025 * mmap/i386/pc/mmap_helper.S: Likewise.
30026 * mmap/i386/pc/mmap.c: Likewise.
30027 * mmap/i386/mmap.c: Likewise.
30028 * mmap/i386/uppermem.c: Likewise.
30029 * mmap/mmap.c: Likewise.
30030 * commands/acpi.c: Likewise.
30031 * commands/echo.c: Likewise.
30032 * commands/blocklist.c: Likewise.
30033 * commands/loadenv.c: Likewise.
30034 * commands/usbtest.c: Likewise.
30035 * commands/boot.c: Likewise.
30036 * commands/parttool.c: Likewise.
30037 * commands/search.c: Likewise.
30038 * commands/cat.c: Likewise.
30039 * commands/i386/pc/play.c: Likewise.
30040 * commands/i386/pc/drivemap.c: Likewise.
30041 * commands/i386/pc/vbeinfo.c: Likewise.
30042 * commands/i386/pc/acpi.c: Likewise.
30043 * commands/i386/pc/vbetest.c: Likewise.
30044 * commands/ls.c: Likewise.
30045 * commands/cmp.c: Likewise.
30046 * commands/test.c: Likewise.
30047 * commands/efi/acpi.c: Likewise.
30048 * commands/gptsync.c: Likewise.
30049 * commands/help.c: Likewise.
30050 * partmap/amiga.c: Likewise.
30051 * partmap/apple.c: Likewise.
30052 * partmap/acorn.c: Likewise.
30053 * partmap/pc.c: Likewise.
30054 * partmap/sun.c: Likewise.
30055 * partmap/gpt.c: Likewise.
30056 * script/sh/lexer.c: Likewise.
30057 * script/sh/function.c: Likewise.
30058 * font/font.c: Likewise.
30059 * font/font_cmd.c: Likewise.
30060 * loader/powerpc/ieee1275/linux.c: Likewise.
30061 * loader/efi/chainloader.c: Likewise.
30062 * loader/multiboot_loader.c: Likewise.
30063 * loader/macho.c: Likewise.
30064 * loader/i386/multiboot.c: Likewise.
30065 * loader/i386/linux.c: Likewise.
30066 * loader/i386/pc/linux.c: Likewise.
30067 * loader/i386/pc/multiboot2.c: Likewise.
30068 * loader/i386/pc/chainloader.c: Likewise.
30069 * loader/i386/pc/xnu.c: Likewise.
30070 * loader/i386/bsd_trampoline.S: Likewise.
30071 * loader/i386/efi/linux.c: Likewise.
30072 * loader/i386/multiboot_elfxx.c: Likewise.
30073 * loader/i386/bsd_helper.S: Likewise.
30074 * loader/i386/bsd.c: Likewise.
30075 * loader/i386/linux_trampoline.S: Likewise.
30076 * loader/i386/xnu_helper.S: Likewise.
30077 * loader/i386/xnu.c: Likewise.
30078 * loader/i386/bsd_pagetable.c: Likewise.
30079 * loader/i386/multiboot_helper.S: Likewise.
30080 * loader/xnu.c: Likewise.
30081 * loader/xnu_resume.c: Likewise.
30082 * io/gzio.c: Likewise.
30083 * term/efi/console.c: Likewise.
30084 * term/terminfo.c: Likewise.
30085 * term/ieee1275/ofconsole.c: Likewise.
30086 * term/i386/pc/serial.c: Likewise.
30087 * term/i386/pc/vesafb.c: Likewise.
30088 * term/i386/pc/vga.c: Likewise.
30089 * term/usb_keyboard.c: Likewise.
30090 * term/gfxterm.c: Likewise.
30091 * aclocal.m4: Likewise.
30092 * util/lvm.c: Likewise.
30093 * util/grub.d/30_os-prober.in: Likewise.
30094 * util/grub.d/10_hurd.in: Likewise.
30095 * util/console.c: Likewise.
30096 * util/grub-macho2img.c: Likewise.
30097 * util/grub-probe.c: Likewise.
30098 * util/hostfs.c: Likewise.
30099 * util/i386/pc/grub-mkimage.c: Likewise.
30100 * util/i386/pc/grub-setup.c: Likewise.
30101 * util/i386/efi/grub-mkimage.c: Likewise.
30102 * util/grub-mkconfig.in: Likewise.
30103 * util/raid.c: Likewise.
30104 * util/resolve.c: Likewise.
30105 * util/grub-mkdevicemap.c: Likewise.
30106 * util/grub-emu.c: Likewise.
30107 * util/getroot.c: Likewise.
30108 * util/hostdisk.c: Likewise.
30109 * util/usb.c: Likewise.
30110 * util/grub-editenv.c: Likewise.
30111 * util/misc.c: Likewise.
30113 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30115 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30116 `genparttoollist.sh'.
30117 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30118 Add `*.sh' to the list find searches for and change `mdate.sh'
30121 2009-06-10 Pavel Roskin <proski@gnu.org>
30123 * include/grub/multiboot2.h: Provide compatibility defines for
30125 * include/multiboot2.h: Include stdint.h only if needed, using
30127 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30129 * loader/ieee1275/multiboot2.c: Likewise.
30130 * loader/multiboot2.c: Likewise.
30131 * loader/multiboot_loader.c: Likewise.
30133 * configure.ac: Use -nostdlib when probing for the target. It
30134 should not be required to have libc for the target.
30136 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30137 they fail without libc headers for the target.
30138 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30140 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30141 preprocessor conditionals.
30143 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30144 build system doesn't need to be aware of the tar.c internals.
30146 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30148 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30150 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30152 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30153 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30155 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30157 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30158 aren't available if ata.mod gets used.
30160 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30162 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30163 initialising controller.
30164 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30166 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30168 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30169 to choose between ata and biosdisk module on i386-pc.
30171 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30173 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30174 Subclass and Programming Interface fields in terms of the 3 byte
30175 Class Code register.
30176 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30178 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30179 interface is OHCI. Add grub_dprintf for symmetry with
30181 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30182 interface is UHCI. Add interf variable for programming
30183 interface. Print interface with class/subclass.
30185 * bus/usb/ohci.c: Set interf with correct field.
30187 * bus/usb/uhci.c: Remove unneeded doubled lines.
30188 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30189 Remove whitespace inside comment.
30191 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30193 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30194 as fallback an equivalent option without depth.
30196 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30198 Not fail if unable to retrieve C/H/S on LBA disks
30200 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30201 if unable to retrieve C/H/S on LBA disks
30203 2009-06-08 Pavel Roskin <proski@gnu.org>
30205 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30208 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30210 * Makefile.in (uninstall): Remove all $lib_DATA files.
30212 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30214 Bugfix: install on partitionless device
30216 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30219 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30221 * Makefile.in (uninstall): Remove all $include_DATA files.
30223 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30225 * commands/true.c: New file. Implement the true and false commands.
30226 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30227 (true_mod_SOURCES): New variable.
30228 (true_mod_CFLAGS): Likewise.
30229 (true_mod_LDFLAGS): Likewise.
30231 2009-06-05 Colin D Bennett <colin@gibibit.com>
30233 Optimized font character lookup using binary search instead of linear
30234 search. Fonts now are required to have the character index ordered by
30237 * font/font.c (load_font_index): Verify that fonts have ordered
30239 (find_glyph): Use binary search instead of linear search to find a
30240 character in a font.
30242 2009-06-05 Michael Scherer <misc@mandriva.org>
30244 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30245 uses case sensitive btree.
30246 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30247 only for case insensitive filesystems.
30249 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30251 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30252 * conf/common.rmk (search_mod_CFLAGS): likewise
30254 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30256 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30257 compensate a compiler bug
30259 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30261 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30264 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30266 Definitions for creating asm symbols with Apple's CC
30268 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30269 [APPLE_CC] (VARIABLE): likewise
30271 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30273 Disable lnxboot.img when compiled
30276 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30277 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30278 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30279 [! APPLE_CC] (CODE_LENG): skip
30280 [! APPLE_CC] (setup_sects): likewise
30281 [! APPLE_CC]: skip filling
30283 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30285 Address in trampolines based on 32-bit registers when compiled
30288 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30290 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30292 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30294 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30296 * kern/misc.c [APPLE_CC] (memcpy): new function
30297 [APPLE_CC] (memmove): likewise
30298 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30299 (memcpy): define alias conditionally on !APPLE_CC
30302 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30303 APPLE_CC are defined
30304 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30305 (grub_assert_fail): make prototype conditional
30307 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30309 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30311 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30313 (CLEANFILES): add grub-macho2img
30314 (grub_macho2img_SOURCES): new variable
30315 * kern/i386/pc/startup.S (bss_start): new variable
30316 (bss_end): likewise
30317 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30318 * util/grub-macho2img.c: new file
30320 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30322 Use objconv when compiling with Apple's CC
30324 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30325 (efiemu64.o): likewise
30326 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30327 when compiling with Apple's CC
30328 (efiemu64_s.o): likewise
30329 * configure.ac: check for objconv when compiling with Apple's CC
30330 * genmk.rb: use objconv for modules when compiled with Apple's CC
30332 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30334 Define segment as well as section when compiling with
30337 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30338 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30339 (efiemu_convert_pointer): likewise
30340 (efiemu_set_virtual_address_map): likewise
30341 (efiemu_convert_pointer): likewise
30342 (efiemu_getcrc32): likewise
30343 (init_crc32_table): likewise
30344 (reflect): likewise
30345 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30346 (GRUB_MOD_DEP): likewise
30348 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30350 Allow a compilation without -mcmodel=large
30352 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30353 when compiled without -mcmodel=large
30354 (filter_memory_map): remove memory post 4 GiB when compiled
30355 without -mcmodel=large
30356 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30357 TARGET_CFLAGS when -mcmodel=large isn't supported
30359 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30361 Remove nested functions in efiemu core
30363 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30365 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30367 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30369 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30371 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30373 (grub_cpu_is_tsc_supported): likewise
30374 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30376 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30378 Absolute addressing through constant with Apple's cc
30380 * kern/i386/pc/startup.S: Define necessary constants
30381 and address through it when using ABS with Apple's CC
30382 * boot/i386/pc/diskboot.S: likewise
30383 * boot/i386/pc/boot.S: likewise
30384 * boot/i386/pc/lnxboot.S: likewise
30385 * boot/i386/pc/cdboot.S: likewise
30386 * mmap/i386/pc/mmap_helper.S: likewise
30387 * commands/i386/pc/drivemap_int13h.S: likewise
30389 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30391 Check if compiler is apple cc
30393 * Makefile.in (ASFLAGS): new variable
30394 (TARGET_ASFLAGS): likewise
30395 (TARGET_MODULE_FORMAT): likewise
30396 (TARGET_APPLE_CC): likewise
30397 (OBJCONV): likewise
30398 (TARGET_IMG_CFLAGS): likewise
30399 (TARGET_CPPFLAGS): add includedir
30400 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30401 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30402 Check for linker script only if compiler isn't Apple's CC
30403 (TARGET_MODULE_FORMAT): set
30404 (TARGET_APPLE_CC): likewise
30405 (TARGET_ASFLAGS): likewise
30406 (ASFLAGS): likewise
30407 Check for objcopy only if compiler isn't Apple's CC
30408 Check for BSS symbol only if compiler isn't Apple's CC
30409 * genmk.rb: adapt nm options if we use Apple's utils
30410 * aclocal.m4 (grub_apple_cc): new test
30411 (grub_apple_target_cc): likewise
30413 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30415 Simplify sed expressions and improve awk
30417 * Makefile.in (install-local): simplify sed expression
30418 * gencmdlist.sh: likewise
30419 * genmoddep.awk: avoid adding module as a dependency of itself
30421 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30423 Add missing start symbols
30425 * boot/i386/pc/boot.S: add start
30426 * boot/i386/pc/pxeboot.S: likewise
30428 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30430 Fix wrong assumptions with grub-mkimage on EFI
30432 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30433 (relocate_addresses): consider both r_addend and value at offset
30434 (make_mods_section): zerofill modinfo and header
30435 (convert_elf): write prefix here
30437 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30439 Use .asciz instead of .string
30441 * i386/pc/diskboot.S: use .asciz instead of .string
30442 * i386/pc/boot.S: likewise
30443 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30444 (GRUB_MOD_NAME): likewise
30446 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30450 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30451 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30452 (grub_video_setup): remove
30453 (grub_video_set_mode): new prototype
30454 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30456 (linux_vesafb_res): compile only on PCBIOS
30457 (grub_linux_boot): support gfxpayload
30458 * loader/i386/pc/xnu.c (video_hook): new function
30459 (grub_xnu_set_video): support gfxpayload
30460 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30461 (DEFAULT_VIDEO_HEIGHT): likewise
30462 (DEFAULT_VIDEO_FLAGS): likewise
30463 (DEFAULT_VIDEO_MODE): new definition
30464 (video_hook): new function
30465 (grub_gfxterm_init): use grub_video_set_mode
30466 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30468 * video/video.c (grub_video_setup): removed
30469 (grub_video_set_mode): new function based on grub_gfxterm_init and
30472 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30474 Avoid calling biosdisk in drivemap
30476 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30477 (revparse_biosdisk): likewise
30478 (list_mappings): derive name from id directly
30479 (grub_cmd_drivemap): use tryparse_diskstring
30481 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30485 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30486 (grub_lexer_param): add tokenonhold
30487 (grub_script_create_cmdline): remove cmdline. All callers updated
30488 (grub_script_function_create): make functionname
30489 grub_script_arg. All callers updated
30490 (grub_script_execute_argument_to_string): new prototype
30491 * kern/parser.c (state_transitions): reorder
30492 (grub_parser_cmdline_state): fix a bug and make more compact
30493 * script/sh/execute.c (grub_script_execute_argument_to_string):
30495 (grub_script_execute_cmdline): use new format
30496 * script/sh/function.c (grub_script_function_create): make functionname
30497 grub_script_arg. All callers updated
30498 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30499 (grub_script_yylex): remove
30500 (grub_script_yylex2): renamed to ...
30501 (grub_script_yylex): ...renamed
30502 parse the expressions like a${b}c
30503 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30504 (GRUB_PARSER_TOKEN_VAR): remove
30505 (GRUB_PARSER_TOKEN_NAME): likewise
30506 ("if"): declare as typeless
30507 ("while"): likewise
30508 ("function"): likewise
30513 (argument): likewise
30514 (script): accept empty scripts and make exit on error
30515 (arguments): use GRUB_PARSER_TOKEN_ARG
30516 (function): likewise
30517 (command): move error handling to script
30518 (menuentry): move grub_script_lexer_ref before
30519 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30520 argument. All callers updated
30522 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30524 Prevent GRUB from probing floppies during boot.
30526 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30527 * commands/search.c (options): Add --no-floppy.
30528 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30529 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30530 --no-floppy when searching for UUIDs.
30532 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30534 Simplify the code duplication in commands/search.c.
30536 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30537 (search_fs): ... this. Update all users.
30539 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30541 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30543 2009-05-28 Pavel Roskin <proski@gnu.org>
30545 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30546 Remove the original symlink explicitly.
30548 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30549 just one slash. That's how grub_fshelp_find_file() does it.
30551 2009-05-26 Pavel Roskin <proski@gnu.org>
30553 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30556 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30559 2009-05-25 Christian Franke <franke@computer.org>
30561 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30563 (grub_atapi_identify): Add wait after drive select.
30564 (grub_ata_identify): Do more strict status register check before
30565 calling grub_atapi_identify (). Suppress error message if status
30566 register is 0x00 after command failure. Add status register
30567 check after PIO read to avoid bogus identify due to stuck DRQ.
30568 Thanks to Pavel Roskin for testing.
30569 (grub_device_initialize): Remove unsafe status register check.
30570 Thanks to 'phcoder' for problem report and patch.
30571 Prevent sign extension in debug message.
30573 2009-05-23 Colin D Bennett <colin@gibibit.com>
30575 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30576 definition file, and functions defined in `normal/menu.c' have had
30577 their prototypes moved to `include/grub/menu.h' for consistency.
30579 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30581 (grub_menu_get_entry): Likewise.
30582 (grub_menu_get_timeout): Likewise.
30583 (grub_menu_set_timeout): Likewise.
30584 (grub_menu_execute_entry): Likewise.
30585 (grub_menu_execute_with_fallback): Likewise.
30586 (grub_menu_entry_run): Likewise.
30588 * include/grub/normal.h: Re-ordered and grouped function
30589 prototypes by file that the function is defined in.
30590 (grub_menu_execute_callback): Removed; moved to menu.h.
30591 (grub_menu_get_entry): Likewise.
30592 (grub_menu_get_timeout): Likewise.
30593 (grub_menu_set_timeout): Likewise.
30594 (grub_menu_execute_entry): Likewise.
30595 (grub_menu_execute_with_fallback): Likewise.
30596 (grub_menu_entry_run): Likewise.
30597 (grub_menu_addentry): Renamed from this ...
30598 (grub_normal_add_menu_entry): ... to this.
30600 * normal/main.c (grub_menu_addentry): Renamed from this ...
30601 (grub_normal_add_menu_entry): ... to this.
30603 * script/sh/execute.c (grub_script_execute_menuentry): Update
30604 reference to renamed grub_menu_addentry function.
30606 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30608 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30610 2009-05-22 Pavel Roskin <proski@gnu.org>
30612 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30613 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30614 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30615 compiling for the i386 targets, but not for the utilities.
30617 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30619 (grub_root_drive): Likewise.
30620 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30622 (grub_root_drive): Change size to byte.
30623 (grub_start_addr): Remove.
30624 (grub_end_addr): Likewise.
30625 (grub_apm_bios_info): Likewise.
30627 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30629 * normal/i386: Remove.
30630 * normal/powerpc: Likewise.
30631 * normal/sparc64: Likewise.
30632 * normal/x86_64: Likewise.
30634 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30636 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30637 * loader/i386/linux_trampoline.S: Fix indentation
30638 * loader/i386/xnu_helper.S: Likewise
30640 2009-05-18 Colin D Bennett <colin@gibibit.com>
30642 Display error messages when parsing a Lua statement fails.
30643 Previously, executing a syntactically invalid statement like
30644 ")foo" or "bar;" would silently fail.
30646 * script/lua/grub_main.c (handle_lua_error): New function.
30647 (grub_lua_parse_line): Improved reporting of Lua parser and
30650 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30652 Remove -Werror which causes build to fail on some systems
30654 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30655 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30656 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30658 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30660 trampoline for linux on 64-bit platform
30662 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30663 loader/i386/efi/linux_trampoline.S
30664 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30666 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30668 * loader/i386/linux_trampoline.S: moved here
30669 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30671 (jumpvector): removed
30672 (grub_linux_trampoline_start): new declaration
30673 (grub_linux_trampoline_end): likewise
30674 (grub_linux_boot): use trampoline when on 64-bit platform
30675 * loader/i386/linux.c: likewise
30677 2009-05-16 Pavel Roskin <proski@gnu.org>
30679 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30680 const to avoid a warning.
30681 (grub_lua_setenv): Likewise.
30682 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30683 lmsg to fix a warning.
30685 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30687 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30688 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30689 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30690 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30691 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30692 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30693 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30694 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30696 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30698 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30700 2009-05-16 Bean <bean123ch@gmail.com>
30702 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30703 (lua_mod_SOURCES): New variable.
30704 (lua_mod_CFLAGS): Likewise.
30705 (lua_mod_LDFLAGS): Likewise.
30707 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30708 (setjmp_mod_SOURCES): New variable.
30709 (setjmp_mod_CFLAGS): Likewise.
30710 (setjmp_LDFLAGS): Likewise.
30712 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
30713 (setjmp_mod_SOURCES): New variable.
30714 (setjmp_mod_CFLAGS): Likewise.
30715 (setjmp_LDFLAGS): Likewise.
30717 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30718 (setjmp_mod_SOURCES): New variable.
30719 (setjmp_mod_CFLAGS): Likewise.
30720 (setjmp_LDFLAGS): Likewise.
30722 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30723 (setjmp_mod_SOURCES): New variable.
30724 (setjmp_mod_CFLAGS): Likewise.
30725 (setjmp_LDFLAGS): Likewise.
30727 * normal/i386/setjmp.S: Moved from here ...
30728 * lib/i386/setjmp.S: ... Moved here
30729 * normal/x86_64/setjmp.S: Moved from here ...
30730 * lib/x86_64/setjmp.S: ... Moved here
30731 * normal/powerpc/setjmp.S: Moved from here ...
30732 * lib/powerpc/setjmp.S: ... Moved here
30733 * normal/sparc64/setjmp.S: Moved from here ...
30734 * lib/sparc64/setjmp.S: ... Moved here
30736 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
30737 returns_twice in mingw.
30739 * script/lua/grub_lib.c: New file.
30740 * script/lua/grub_lib.h: Likewise.
30741 * script/lua/grub_lua.h: Likewise.
30742 * script/lua/grub_main.c: Likewise.
30743 * script/lua/lapi.c: Likewise.
30744 * script/lua/lapi.h: Likewise.
30745 * script/lua/lauxlib.c: Likewise.
30746 * script/lua/lauxlib.h: Likewise.
30747 * script/lua/lbaselib.c: Likewise.
30748 * script/lua/lcode.c: Likewise.
30749 * script/lua/lcode.h: Likewise.
30750 * script/lua/ldblib.c: Likewise.
30751 * script/lua/ldebug.c: Likewise.
30752 * script/lua/ldebug.h: Likewise.
30753 * script/lua/ldo.c: Likewise.
30754 * script/lua/ldo.h: Likewise.
30755 * script/lua/ldump.c: Likewise.
30756 * script/lua/lfunc.c: Likewise.
30757 * script/lua/lfunc.h: Likewise.
30758 * script/lua/lgc.c: Likewise.
30759 * script/lua/lgc.h: Likewise.
30760 * script/lua/linit.c: Likewise.
30761 * script/lua/liolib.c: Likewise.
30762 * script/lua/llex.c: Likewise.
30763 * script/lua/llex.h: Likewise.
30764 * script/lua/llimits.h: Likewise.
30765 * script/lua/lmathlib.c: Likewise.
30766 * script/lua/lmem.c: Likewise.
30767 * script/lua/lmem.h: Likewise.
30768 * script/lua/loadlib.c: Likewise.
30769 * script/lua/lobject.c: Likewise.
30770 * script/lua/lobject.h: Likewise.
30771 * script/lua/lopcodes.c: Likewise.
30772 * script/lua/lopcodes.h: Likewise.
30773 * script/lua/loslib.c: Likewise.
30774 * script/lua/lparser.c: Likewise.
30775 * script/lua/lparser.h: Likewise.
30776 * script/lua/lstate.c: Likewise.
30777 * script/lua/lstate.h: Likewise.
30778 * script/lua/lstring.c: Likewise.
30779 * script/lua/lstring.h: Likewise.
30780 * script/lua/lstrlib.c: Likewise.
30781 * script/lua/ltable.c: Likewise.
30782 * script/lua/ltable.h: Likewise.
30783 * script/lua/ltablib.c: Likewise.
30784 * script/lua/ltm.c: Likewise.
30785 * script/lua/ltm.h: Likewise.
30786 * script/lua/lua.h: Likewise.
30787 * script/lua/luaconf.h: Likewise.
30788 * script/lua/lualib.h: Likewise.
30789 * script/lua/lundump.c: Likewise.
30790 * script/lua/lundump.h: Likewise.
30791 * script/lua/lvm.c: Likewise.
30792 * script/lua/lvm.h: Likewise.
30793 * script/lua/lzio.c: Likewise.
30794 * script/lua/lzio.h: Likewise.
30796 2009-05-16 Bean <bean123ch@gmail.com>
30798 * include/grub/kernel.h (grub_module_header_types): Add type
30801 * kern/main.c (grub_load_config): New function.
30802 (grub_main): Call grub_load_config to read boot config.
30804 * grub-mkimage (generate_image): New parameter config_path.
30805 (options): New option --config.
30806 (main): Parse --config option, and pass it to generate_image.
30808 2009-05-14 Christian Franke <franke@computer.org>
30810 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
30811 This fixes build on Cygwin.
30813 2009-05-14 Pavel Roskin <proski@gnu.org>
30815 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
30816 jump. This saves two bytes, so the typical case of 2 swapped
30817 drives would fit 32 bytes.
30819 2009-05-13 Pavel Roskin <proski@gnu.org>
30821 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
30822 grub_uint32_t to avoid a warning.
30824 * loader/i386/linux.c (allocate_pages): When assigning
30825 real_mode_mem, cast through grub_size_t to fix a warning. The
30826 code already makes sure that the value would fit a pointer.
30827 (grub_linux_setup_video): Cast render_target->data to
30828 grub_size_t to fix a warning.
30830 2009-05-13 Javier Martín <lordhabbit@gmail.com>
30832 * commands/i386/pc/drivemap.c: New file - implement drivemap
30834 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
30835 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
30837 2009-05-13 Pavel Roskin <proski@gnu.org>
30839 * util/i386/pc/grub-setup.c (setup): Remove unused variable
30840 embedding_area_exists.
30842 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
30844 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
30845 it easier to understand / work with.
30846 Improve warning messages for cases where there's no embedding area,
30847 or when it is too small (or core.img too large).
30849 2009-05-13 Pavel Roskin <proski@gnu.org>
30851 * loader/i386/pc/multiboot2.c: Add necessary includes for
30852 grub_multiboot2_real_boot().
30854 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
30855 PX record is always little-endian. We only need the lower 2
30858 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
30859 facilitate code reuse.
30860 (grub_cpio_mount): Use "struct head", not a char buffer. This
30861 fixes a warning reported by gcc 4.4.
30863 * kernel/disk.c (grub_disk_read): Use void pointer for the
30865 (grub_disk_write): Use const void pointer for the buffer.
30866 Adjust all callers. Remove unnecessary casts.
30868 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
30870 * util/i386/pc/grub-install.in: Update copyright year.
30872 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30876 * commands/gptsync.c: new file
30877 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
30878 (gptsync_mod_SOURCES): new variable
30879 (gptsync_mod_CFLAGS): likewise
30880 (gptsync_mod_LDFLAGS): likewise
30881 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
30883 (GRUB_PC_PARTITION_TYPE_HFS): likewise
30884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
30885 * conf/i386-ieee1275.rmk: likewise
30886 * conf/i386-pc.rmk: likewise
30887 * conf/powerpc-ieee1275.rmk: likewise
30889 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30893 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
30894 (grub_dl_ref): likewise
30896 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
30898 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
30899 split in two functions (one for msdos and one for gpt).
30901 2009-05-08 Pavel Roskin <proski@gnu.org>
30903 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
30906 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
30907 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
30908 Initialize them with -1. Add sanity check for bad1. Eliminate
30911 2009-05-08 David S. Miller <davem@davemloft.net>
30913 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
30915 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
30917 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
30920 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
30922 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30923 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
30925 2009-05-05 David S. Miller <davem@davemloft.net>
30927 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
30929 2009-05-05 Pavel Roskin <proski@gnu.org>
30931 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
30932 of grub_dl_ref() and grub_dl_unref().
30933 * commands/parttool.c: Remove preprocessor conditionals around
30934 grub_dl_ref() and grub_dl_unref().
30935 * fs/affs.c: Likewise.
30936 * fs/afs.c: Likewise.
30937 * fs/cpio.c: Likewise.
30938 * fs/ext2.c: Likewise.
30939 * fs/fat.c: Likewise.
30940 * fs/hfs.c: Likewise.
30941 * fs/hfsplus.c: Likewise.
30942 * fs/iso9660.c: Likewise.
30943 * fs/jfs.c: Likewise.
30944 * fs/minix.c: Likewise.
30945 * fs/ntfs.c: Likewise.
30946 * fs/reiserfs.c: Likewise.
30947 * fs/sfs.c: Likewise.
30948 * fs/udf.c: Likewise.
30949 * fs/ufs.c: Likewise.
30950 * fs/xfs.c: Likewise.
30951 * include/grub/dl.h: Likewise.
30952 * loader/xnu.c: Likewise.
30954 2009-05-04 Pavel Roskin <proski@gnu.org>
30956 * commands/acpi.c: Remove unused variable my_mod.
30957 * partmap/amiga.c: Likewise.
30958 * partmap/apple.c: Likewise.
30959 * partmap/gpt.c: Likewise.
30960 * partmap/pc.c: Likewise.
30961 * partmap/sun.c: Likewise.
30962 * term/gfxterm.c: Likewise.
30963 * term/i386/pc/vesafb.c: Likewise.
30964 * term/i386/pc/vga.c: Likewise.
30966 2009-05-04 David S. Miller <davem@davemloft.net>
30968 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
30969 pointer args to grub_ieee1275_get_property().
30971 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
30973 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
30974 devices, and do not traverse down under controller nodes.
30976 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
30977 (grub_ofdisk_open): Use it to un-escape "," characters.
30978 * kern/disk.c (find_part_sep): New.
30979 (grub_disk_open): Use it to find the first non-escaped ','
30980 character in the disk name.
30981 * util/ieee1275/devicemap.c (escape_of_path): New.
30982 (grub_util_emit_devicemap_entry): Use it.
30983 * util/sparc64/ieee1275/grub-install.in: Update script to
30984 strip partition specifiers properly by not triggering on
30985 '\' escaped ',' characters.
30987 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30989 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
30991 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
30993 (linux_vesafb_modes): Add a lot of additional modes to the list (based
30994 on documentation from Wikipedia).
30996 2009-05-04 Pavel Roskin <proski@gnu.org>
30998 * disk/ata.c: Spelling fixes.
30999 * disk/raid.c: Likewise.
31000 * disk/usbms.c: Likewise.
31001 * disk/dmraid_nvidia.c: Likewise.
31002 * kern/ieee1275/openfw.c: Likewise.
31003 * kern/ieee1275/init.c: Likewise.
31004 * kern/ieee1275/cmain.c: Likewise.
31005 * boot/i386/pc/cdboot.S: Likewise.
31006 * video/readers/png.c: Likewise.
31007 * video/i386/pc/vbe.c: Likewise.
31008 * fs/udf.c: Likewise.
31009 * fs/hfs.c: Likewise.
31010 * fs/reiserfs.c: Likewise.
31011 * efiemu/runtime/efiemu.c: Likewise.
31012 * efiemu/main.c: Likewise.
31013 * efiemu/mm.c: Likewise.
31014 * include/grub/elf.h: Likewise.
31015 * include/grub/xnu.h: Likewise.
31016 * include/grub/usbdesc.h: Likewise.
31017 * include/grub/usb.h: Likewise.
31018 * include/grub/script_sh.h: Likewise.
31019 * include/grub/lib/LzmaEnc.h: Likewise.
31020 * include/grub/efiemu/efiemu.h: Likewise.
31021 * include/grub/command.h: Likewise.
31022 * normal/menu.c: Likewise.
31023 * normal/main.c: Likewise.
31024 * normal/datetime.c: Likewise.
31025 * bus/usb/uhci.c: Likewise.
31026 * mmap/i386/uppermem.c: Likewise.
31027 * mmap/mmap.c: Likewise.
31028 * commands/acpi.c: Likewise.
31029 * commands/test.c: Likewise.
31030 * partmap/apple.c: Likewise.
31031 * font/font.c: Likewise.
31032 * loader/sparc64/ieee1275/linux.c: Likewise.
31033 * loader/macho.c: Likewise.
31034 * loader/i386/bsd_trampoline.S: Likewise.
31035 * loader/i386/bsd.c: Likewise.
31036 * loader/xnu.c: Likewise.
31037 * term/i386/pc/vesafb.c: Likewise.
31038 * term/usb_keyboard.c: Likewise.
31039 * util/resolve.c: Likewise.
31040 * util/getroot.c: Likewise.
31042 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31044 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31046 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31048 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31051 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31053 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31054 parameter only available on BIOS.
31056 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31058 Removed wrong semicolon in declaration
31060 * grub/misc.h (grub_dprintf): remove semicolon
31062 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31064 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31065 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31066 is done by grub_cmd_linux() now).
31067 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31068 restore video to text mode.
31069 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31070 indicates lack of "vga=" parameter. "vga=0" is mapped to
31071 `GRUB_LINUX_VID_MODE_NORMAL'.
31073 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31075 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31076 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31077 and `normal/script.c'. Add `kern/rescue_reader.c',
31078 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31079 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31080 `grub_script.tab.c'.
31082 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31083 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31085 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31086 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31088 * Makefile.in: Remove duplicated 2008 in Copyright line.
31090 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31092 * util/misc.c (grub_util_warn): New function. Emits a warning
31094 * include/grub/util/misc.h (grub_util_warn): New declaration.
31096 * util/i386/pc/grub-install.in: Understand --force and pass it down
31099 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31101 (setup): Improve error messages and add warnings when requested to
31102 install in odd layouts. Refuse to install using blocklists unless
31105 2009-05-04 martin f. krafft <madduck@madduck.net>
31107 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31109 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31111 Updated copyright year
31113 * fs/hfsplus.c: updated copyright year
31115 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31119 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31120 in the space previously used by unused3
31121 (grub_hfsplus_uuid): new function
31122 (grub_hfsplus_fs): added uuid field
31124 2009-05-03 Pavel Roskin <proski@gnu.org>
31126 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31127 suppress warnings. It's no longer needed.
31128 * disk/host.c: Likewise.
31129 * disk/ata_pthru.c: Likewise.
31130 * disk/loopback.c: Likewise.
31131 * hook/datehook.c: Likewise.
31132 * parttool/pcpart.c: Likewise.
31133 * fs/i386/pc/pxe.c: Likewise.
31134 * fs/ntfscomp.c: Likewise.
31135 * efiemu/main.c: Likewise.
31136 * mmap/mmap.c: Likewise.
31137 * commands/crc.c: Likewise.
31138 * commands/hexdump.c: Likewise.
31139 * commands/hdparm.c: Likewise.
31140 * commands/acpi.c: Likewise.
31141 * commands/echo.c: Likewise.
31142 * commands/minicmd.c: Likewise.
31143 * commands/blocklist.c: Likewise.
31144 * commands/memrw.c: Likewise.
31145 * commands/loadenv.c: Likewise.
31146 * commands/usbtest.c: Likewise.
31147 * commands/lsmmap.c: Likewise.
31148 * commands/boot.c: Likewise.
31149 * commands/parttool.c: Likewise.
31150 * commands/configfile.c: Likewise.
31151 * commands/search.c: Likewise.
31152 * commands/ieee1275/suspend.c: Likewise.
31153 * commands/cat.c: Likewise.
31154 * commands/i386/pc/pxecmd.c: Likewise.
31155 * commands/i386/pc/play.c: Likewise.
31156 * commands/i386/pc/halt.c: Likewise.
31157 * commands/i386/pc/vbeinfo.c: Likewise.
31158 * commands/i386/pc/vbetest.c: Likewise.
31159 * commands/lspci.c: Likewise.
31160 * commands/date.c: Likewise.
31161 * commands/handler.c: Likewise.
31162 * commands/ls.c: Likewise.
31163 * commands/test.c: Likewise.
31164 * commands/cmp.c: Likewise.
31165 * commands/efi/loadbios.c: Likewise.
31166 * commands/efi/fixvideo.c: Likewise.
31167 * commands/halt.c: Likewise.
31168 * commands/help.c: Likewise.
31169 * commands/reboot.c: Likewise.
31170 * hello/hello.c: Likewise.
31171 * script/sh/main.c: Likewise.
31172 * loader/xnu.c: Likewise.
31173 * term/terminfo.c: Likewise.
31174 * term/i386/pc/serial.c: Likewise.
31175 * term/usb_keyboard.c: Likewise.
31177 2009-05-03 David S. Miller <davem@davemloft.net>
31179 * normal/menu.c: Include grub/parser.h
31181 2009-05-03 Pavel Roskin <proski@gnu.org>
31183 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31185 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31186 Suggested by Javier Martín <lordhabbit@gmail.com>
31188 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31189 efiemu??.o doesn't exist.
31190 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31193 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31195 FreeBSD 64-bit support
31197 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31198 and loader/i386/bsd_trampoline.S
31199 (bsd_mod_ASFLAGS): new variable
31200 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31201 (FREEBSD_MODTYPE_KERNEL64): likewise
31202 (grub_bsd64_trampoline_start): likewise
31203 (grub_bsd64_trampoline_end): likewise
31204 (grub_bsd64_trampoline_selfjump): likewise
31205 (grub_bsd64_trampoline_gdt): likewise
31206 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31207 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31208 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31209 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31210 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31212 * loader/i386/bsd_pagetable.c: new file
31213 * loader/i386/bsd_trampoline.S: likewise
31214 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31215 (ALIGN_VAR): likewise
31216 (entry_hi): new variable
31217 (kern_end_mdofs): likewise
31218 (is_64bit): likewise
31219 (grub_freebsd_add_meta): use ALIGN_VAR
31220 (grub_e820_mmap): new declaration
31221 (grub_freebsd_add_mmap): new function
31222 (grub_freebsd_add_meta_module): support 64 bit kernels
31223 (grub_freebsd_list_modules): use ALIGN_VAR
31224 (gdt_descriptor): new declaration
31225 (grub_freebsd_boot): support 64 bit kernels
31226 (grub_bsd_elf64_hook): new function
31227 (grub_bsd_load_elf): support elf64
31229 2009-05-03 Bean <bean123ch@gmail.com>
31231 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31232 after we get the result of if statement.
31234 2009-05-03 Bean <bean123ch@gmail.com>
31236 * Makefile.in (enable_efiemu): New variable.
31238 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31240 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31242 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31243 path, add -mno-red-zone option.
31244 (efiemu64_s.o): Likewise.
31245 (efiemu64.o): Use macro $^ for source file.
31247 * configure.ac (--enable-efiemu): New option.
31249 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31253 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31254 (pkglib_MODULES): add xnu.mod
31255 (xnu_mod_SOURCES): new variable
31256 (xnu_mod_CFLAGS): likewise
31257 (xnu_mod_LDFLAGS): likewise
31258 (xnu_mod_ASFLAGS): likewise
31259 * conf/i386-pc.rmk: likewise
31260 * conf/x86_64-efi.rmk: likewise
31261 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31263 * include/grub/i386/macho.h: new file
31264 * include/grub/i386/xnu.h: likewise
31265 * include/grub/macho.h: likewise
31266 * include/grub/machoload.h: likewise
31267 * include/grub/x86_64/macho.h: likewise
31268 * include/grub/x86_64/xnu.h: likewise
31269 * include/grub/xnu.h: likewise
31270 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31271 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31272 * loader/i386/efi/xnu.c: new file
31273 * loader/i386/pc/xnu.c: likewise
31274 * loader/i386/xnu.c: likewise
31275 * loader/i386/xnu_helper.S: likewise
31276 * loader/macho.c: likewise
31277 * loader/xnu.c: likewise
31278 * loader/xnu_resume.c: likewise
31279 * util/grub-dumpdevtree: likewise
31280 * include/grub/i386/pit.h: include grub/err.h
31281 (grub_pit_wait): export
31282 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31284 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31288 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31289 _linux_efi, linux_efi.
31290 new files in grub-emu
31291 new targets efiemu32.o and efiemu64.o
31292 * loader/linux_normal_efiemu.c: likewise
31293 * loader/i386/efi/linux.c: added preliminary efiemu support
31294 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31296 * include/grub/autoefi.h: new file
31297 * include/grub/i386/efiemu.h: likewise
31298 * include/grub/i386/pc/efiemu.h: likewise
31299 * include/grub/efi/api.h: add LL suffix when necessary
31300 new definitions relating to tables
31301 * include/grub/efiemu/efiemu.h: new file
31302 * include/grub/efiemu/runtime.h: likewise
31303 * efiemu/prepare.c: likewise
31304 * efiemu/loadcore_common.c: likewise
31305 * efiemu/loadcore64.c: likewise
31306 * efiemu/runtime/efiemu.sh: likewise
31307 * efiemu/runtime/efiemu.S: likewise
31308 * efiemu/runtime/efiemu.c: likewise
31309 * efiemu/runtime/config.h: likewise
31310 * efiemu/prepare32.c: likewise
31311 * efiemu/main.c: likewise
31312 * efiemu/modules/pnvram.c: likewise
31313 * efiemu/modules/i386: likewise
31314 * efiemu/modules/i386/pc: likewise
31315 * efiemu/modules/acpi.c: likewise
31316 * efiemu/i386/pc/cfgtables.c: likewise
31317 * efiemu/i386/loadcore64.c: likewise
31318 * efiemu/i386/loadcore32.c: likewise
31319 * efiemu/prepare64.c: likewise
31320 * efiemu/loadcore.c: likewise
31321 * efiemu/symbols.c: likewise
31322 * efiemu/mm.c: likewise
31323 * efiemu/loadcore32.c: likewise
31325 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31329 * commands/acpi.c: new file
31330 * commands/i386/pc/acpi.c: likewise
31331 * commands/efi/acpi.c: likewise
31332 * include/grub/acpi.h: likewise
31333 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31334 (acpi_mod_SOURCES): new variable
31335 (acpi_mod_CFLAGS): likewise
31336 (acpi_mod_LDFLAGS): likewise
31337 * conf/i386-efi.rmk: likewise
31338 * conf/x86_64-efi.rmk: likewise
31340 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31342 Missing part from mmap patch
31344 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31345 (grub_mmap_unregister)
31346 (grub_mmap_free_and_unregister): use grub_mmap_register
31348 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31352 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31353 * loader/i386/linux.c (find_mmap_size): likewise
31354 (allocate_pages): likewise
31355 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31356 (grub_fill_multiboot_mmap): likewise
31357 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31358 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31359 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31360 (OPENBSD_MMAP_RESERVED): likewise
31361 * include/grub/i386/pc/memory.h: include grub/memory.h
31362 (grub_lower_mem): removed
31363 (grub_upper_mem): likewise
31364 (GRUB_MACHINE_MEMORY_ACPI): new definition
31365 (GRUB_MACHINE_MEMORY_NVS): likewise
31366 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31367 (GRUB_MACHINE_MEMORY_HOLE): likewise
31368 (grub_machine_mmap_register): likewise
31369 (grub_machine_mmap_unregister): likewise
31370 (grub_machine_get_upper): likewise
31371 (grub_machine_get_lower): likewise
31372 (grub_machine_get_post64): likewise
31373 * include/grub/i386/efi/memory.h: new file
31374 * include/grub/x86_64/efi/memory.h: likewise
31375 * include/grub/efi/memory.h: likewise
31376 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31377 (mmap_mod_SOURCES): new variable
31378 (mmap_mod_LDFLAGS): likewise
31379 (mmap_mod_ASFLAGS): likewise
31380 * conf/i386-coreboot.rmk: likewise
31381 * conf/i386-ieee1275.rmk: likewise
31382 * conf/i386-efi.rmk: likewise
31383 * conf/x86_64-efi.rmk: likewise
31384 * include/grub/types.h (UINT_TO_PTR): new macro
31385 (PTR_TO_UINT32): likewise
31386 (PTR_TO_UINT64): likewise
31387 * include/grub/memory.h: new file
31388 * mmap/i386/pc/mmap.c: likewise
31389 * mmap/i386/pc/mmap_helper.S: likewise
31390 * mmap/i386/uppermem.c: likewise
31391 * mmap/mmap.c: likewise
31392 * mmap/efi/mmap.c: likewise
31393 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31395 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31396 (grub_upper_mem): likewise
31397 (grub_machine_init): don't use grub_upper_mem,
31398 make grub_lower_mem local
31399 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31400 grub_mmap_iterate and grub_mmap_get_upper
31401 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31403 2009-05-02 Bean <bean123ch@gmail.com>
31405 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31406 script/sh/parser.y.
31407 (pkglib_MODULES): Add normal.mod and sh.mod.
31408 (normal_SOURCES): New variable.
31409 (normal_mod_CFLAGS): Likewise.
31410 (normal_mod_LDFLAGS): Likewise.
31411 (sh_mod_SOURCES): Likewise.
31412 (sh_mod_CFLAGS): Likewise.
31413 (sh_mod_LDFLAGS): Likewise.
31415 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31416 script/sh/lexer.c_DEPENDENCIES.
31417 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31418 kern/rescue_reader.c and kern/rescue_parser.c.
31419 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31420 (grub_emu_SOURCES): Change source files.
31421 (pkglib_MODULES): Remove normal.mod.
31422 (normal_SOURCES): Removed.
31423 (normal_mod_CFLAGS): Likewise.
31424 (normal_mod_LDFLAGS): Likewise.
31425 * conf/i386-coreboot.rmk: Likewise.
31426 * conf/i386-efi.rmk: Likewise.
31427 * conf/i386-ieee1276.rmk: Likewise.
31428 * conf/powerpc-ieee1275.rmk: Likewise.
31429 * conf/sparc64-ieee1275.rmk: Likewise.
31430 * conf/x86_64-efi.rmk: Likewise.
31432 * include/grub/command.h (grub_command_execute): New inline function.
31434 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31436 * include/grub/normal.h: Remove <grub/setjmp.h>.
31437 (grub_fs_module_list): Moved to normal/autofs.c.
31438 (grub_exit_env): Removed.
31439 (grub_command_execute): Likewise.
31440 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31442 (read_command_list): New function declaration.
31443 (read_fs_list): Likewise.
31445 * include/parser.h: Include <grub/reader.h>.
31446 (grub_parser_split_cmdline): Change type of getline parameter.
31447 (grub_parser): New structure.
31448 (grub_parser_class): New variable.
31449 (grub_parser_execute): New function declaration.
31450 (grub_register_rescue_parser): Likewise.
31451 (grub_parser_register): New inline function.
31452 (grub_parser_unregister): Likewise.
31453 (grub_parser_get_current): Likewise.
31454 (grub_parser_set_current): Likewise.
31456 * include/grub/reader.h: New file.
31457 * kern/reader.c: Likewise.
31458 * kern/rescue_parser.c: Likewise.
31459 * kern/rescue_reader.c: Likewise.
31460 * normal/autofs.c: Likewise.
31461 * normal/dyncmd.c: Likewise.
31463 * include/grub/rescue.h: Removed.
31464 * normal/command.h: Likewise.
31466 * include/grub/script.h: Moved to ...
31467 * include/grub/script_sh.h: ... Moved here.
31468 * normal/execute.c: Moved to ...
31469 * script/sh/execute.c: ... Moved here.
31470 * normal/function.c: Moved to ...
31471 * script/sh/function.c: ... Moved here.
31472 * normal/lexer.c: Moved to ...
31473 * script/sh/lexer.c: ... Moved here.
31474 * normal/parser.y: Moved to ...
31475 * script/sh/parser.y: ... Moved here.
31476 * normal/script.c: Moved to ...
31477 * script/sh/script.c: ... Moved here.
31479 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31481 (grub_exit_env): Removed.
31482 (fs_module_list): Moved to normal/autofs.c.
31483 (grub_file_getline): Don't handle comment here.
31484 (free_menu): Skip removed field entry->commands.
31485 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31487 (read_config_file): Removed nested parameter, change getline function.
31488 (grub_enter_normal_mode): Removed.
31489 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31490 (read_command_list): Likewise.
31491 (autoload_fs_module): Moved to normal/autofs.c.
31492 (read_fs_list): Likewise.
31493 (reader_nested): New variable.
31494 (grub_normal_execute): Run parser.sh to switch to sh parser.
31495 (grub_cmd_rescue): Removed.
31496 (cmd_normal): Removed.
31497 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31499 (grub_cmdline_run): New function.
31500 (grub_normal_reader_init): Likewise.
31501 (grub_normal_read_line): Likewise.
31502 (grub_env_write_pager): Likewise.
31503 (cmdline): New variable.
31504 (grub_normal_reader): Likewise.
31505 (GRUB_MOD_INIT): Register normal reader and set as current, register
31506 pager hook, register normal command with grub_register_command_prio,
31507 so that it won't show up in command.lst.
31508 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31509 grub_fs_autoload_hook.
31511 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31512 (grub_menu_execute_entry): Replace grub_script_execute with
31513 grub_parser_execute, change parameter to grub_command_execute.
31515 * normal/menu_text.c: Remove <grub/script.h>.
31517 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31518 and <grub/parser.h>.
31519 (run): Change editor_getline to use new parser interface. Change
31520 parameter to grub_command_execute.
31522 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31523 <grub/reader.h> and <grub/parser.h>.
31524 (grub_load_normal_mode): Execute normal command.
31525 (grub_main): Call grub_register_core_commands,
31526 grub_register_rescue_parser and grub_register_rescue_reader, use
31527 grub_reader_loop to enter input loop.
31529 * kern/parser.c (grub_parser_split_cmdline): Change type of
31531 (grub_parser_class): New variable.
31532 (grub_parser_execute): New function.
31534 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31535 * loader/multiboot2.c: Likewise.
31536 * loader/sparc64/ieee1275/linux.c: Likewise.
31538 * util/grub-emu.c (read_command_list): New dummy function.
31540 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31542 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31543 count to 16 for CCISS and IDA.
31545 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31547 * normal/menu_text.c (grub_wait_after_message): Print a newline
31548 after waiting for user input.
31550 * loader/i386/linux.c: Include `<grub/normal.h>'.
31551 (grub_cmd_linux): Improve the error message about `ask' mode, by
31552 waiting for user input so it's not missed (we can do this, since
31553 user requested interaction).
31555 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31557 Added missing lst to grub-mkrescue
31559 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31560 and ${input_dir}/parttool.lst
31562 2009-04-30 David S. Miller <davem@davemloft.net>
31564 * util/hostdisk.c (device_is_wholedisk): New function.
31565 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31566 zero only if device_is_wholedisk() returns true.
31568 * util/hostdisk.c (convert_system_partition_to_system_disk):
31569 Handle virtual disk devices named /dev/vdiskX as found on sparc
31572 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31573 lettered partition specifier is found, convert to numbered.
31575 2009-04-29 David S. Miller <davem@davemloft.net>
31577 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31578 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31580 * normal/command.c: Add missing newline at end of file.
31582 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31584 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31585 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31586 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31587 ihandles have a 32-bit type but need to be stored in a "void *".
31589 2009-04-28 Pavel Roskin <proski@gnu.org>
31591 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31592 not disk. Adjust all dependencies.
31593 (grub_fs_uuid_close): Use grub_device_close(), not
31596 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31597 parent's partition, don't copy it by reference, as it gets freed
31600 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31602 Preboot hooks support
31604 * commands/boot.c (struct grub_preboot_t): new declaration
31605 (preboots_head): new variable
31606 (preboots_tail): likewise
31607 (grub_loader_register_preboot_hook): new function
31608 (grub_loader_unregister_preboot_hook): likewise
31609 (grub_loader_set): launch preboot hooks
31610 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31611 (grub_loader_register_preboot_hook): new declaration
31612 (grub_loader_unregister_preboot_hook): likewise
31614 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31618 * disk/scsi.c (grub_scsi_open): added missing cast when
31619 calling grub_dprintf
31621 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31623 Bug and warning fixes
31625 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31627 * commands/test.c (test_parse): fixed bug with file tests and corrected
31628 declaration of find_file
31630 2009-04-26 Pavel Roskin <proski@gnu.org>
31632 * Makefile.in: Don't install empty manual pages if help2man is
31633 missing. Use help2man option for output, not shell redirection.
31635 2009-04-26 David S. Miller <davem@davemloft.net>
31637 * util/grub-mkdevicemap.c (make_device_map): Add missing
31638 NESTED_FUNC_ATTR to process_device().
31640 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31644 * commands/test.c: rewritten to use bash-like test
31646 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31648 Parttool autoloading and improvements
31650 * Makefile.in (pkglib_DATA): add parttool.lst
31651 (parttool.lst): new target
31652 * genmk.rb: generate parttool-*
31653 (CLEANFILES): add #{parttool}
31654 (PARTTOOLFILES): new variable
31655 * genparttoollist.sh: new file
31656 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31657 (grub_pcpart_type): likewise
31658 * commands/parttool.c (helpmsg): new variable
31659 (grub_cmd_parttool): output help if not enough arguments are supplied
31661 (GRUB_MOD_INIT(parttool)): use helpmsg
31663 2009-04-24 David S. Miller <davem@davemloft.net>
31665 Avoiding opening same device multiple times in device iterator.
31667 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31668 and use it to build a list of partitions in iterate_disk() and
31669 iterate_partition().
31671 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31674 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31675 grub_devalias_iterate() result instead of unconditional 0.
31676 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31677 Also, capture hook return value, either directly or via
31678 grub_children_iterate(), and propagate to caller.
31679 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31680 grub_children_iterate): Return value is now 'int' instead of
31682 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31683 like a proper iterator, stopping when hooks return non-zero.
31684 (grub_devalias_iterate): Likewise.
31686 2009-04-23 David S. Miller <davem@davemloft.net>
31688 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31690 2009-04-22 David S. Miller <davem@davemloft.net>
31692 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31693 is larger than address_cells, use that value for address_cells too.
31695 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31696 IEEE1275_MAX_PATH_LEN): Define.
31697 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31698 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31699 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31700 'devtype'. Explicitly NULL terminate devalias expansion.
31702 * util/sparc64/ieee1275/misc.c: New file.
31703 * util/sparc64/ieee1275/grub-setup.c: New file.
31704 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31705 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31706 * util/sparc64/ieee1275/grub-install.in: New file.
31707 * util/ieee1275/ofpath.c: New file.
31708 * util/ieee1275/devicemap.c: New file.
31709 * util/devicemap.c: New file.
31710 * util/deviceiter.c: New file.
31711 * kern/sparc64/ieee1275/init.c: New file.
31712 * include/grub/util/ofpath.h: New file.
31713 * include/grub/util/deviceiter.h: New file.
31714 * util/grub-mkdevicemap.c: Include deviceiter.h.
31715 Implement using grub_util_emit_devicemap_entry and
31716 grub_util_iterate_devices.
31717 * conf/i386-corebook.rmk: Build util/deviceiter.c and
31718 util/devicemap.c into grub-mkdevicemap
31719 * conf/i386-efi.rmk: Likewise.
31720 * conf/i386-ieee1275.rmk: Likewise.
31721 * conf/i386-pc.rmk: Likewise.
31722 * conf/powerpc-ieee1275.rmk: Likewise.
31723 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
31724 images and installation utilities. Build kernel as image
31725 instead of as elf binary. Use common rules as much as possible.
31727 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
31729 Correct GPT definition
31731 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31734 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
31736 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
31738 2009-04-19 David S. Miller <davem@davemloft.net>
31740 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
31741 (grub_rescue_cmd_linux): Rename to...
31742 (grub_cmd_linux): and fix prototype.
31743 (grub_rescue_cmd_initrd): Rename to...
31744 (grub_cmd_initrd): and fix prototype.
31745 (cmd_linux, cmd_initrd): New.
31746 (GRUB_MOD_INIT(linux)): Use grub_register_command().
31747 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
31749 2009-04-17 Pavel Roskin <proski@gnu.org>
31751 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
31753 (grub_ohci_transfer): Likewise.
31755 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
31757 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
31758 return without a value. Fix inconsistent indentation.
31760 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
31761 match struct grub_fs.
31763 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
31764 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
31765 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31766 * commands/lspci.c (grub_lspci_iter): Likewise.
31768 2009-04-16 Bean <bean123ch@gmail.com>
31770 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
31773 2009-04-15 Pavel Roskin <proski@gnu.org>
31775 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
31776 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
31777 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
31780 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31782 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
31783 that no multiple data or metadata areas are supported and `Unknown
31786 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31788 Move loader out of the kernel
31790 * kern/loader.c: moved to ...
31791 * commands/boot.c: ... moved here
31792 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
31793 * commands/boot.c (grub_cmd_boot): moved here. All users updated
31794 * include/grub/kernel.h (grub_machine_fini): export
31795 * include/grub/loader.h (grub_loader_is_loaded): update declaration
31796 (grub_loader_set): likewise
31797 (grub_loader_unset): likewise
31798 (grub_loader_boot): likewise
31799 * conf/common.rmk: new module boot.mod
31800 (pkglib_MODULES): add boot.mod
31801 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
31802 (grub_emu_SOURCES): likewise
31803 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
31804 (grub_emu_SOURCES): likewise
31805 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
31806 (grub_emu_SOURCES): likewise
31807 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
31808 (grub_emu_SOURCES): likewise
31809 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
31810 (grub_emu_SOURCES): likewise
31811 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
31812 (grub_emu_SOURCES): likewise
31813 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
31814 (grub_emu_SOURCES): likewise
31816 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31818 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
31820 * kern/misc.c (grub_itoa): Removed function
31821 (grub_ltoa): likewise
31822 (grub_vsprintf): use grub_lltoa
31824 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31828 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
31829 * conf/i386-coreboot.rmk: likewise
31830 * conf/i386-ieee1275.rmk: likewise
31831 * conf/powerpc-ieee1275.rmk: likewise
31833 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31835 * INSTALL: Add that `./autogen.sh' needs to be run before
31838 2009-04-14 Bean <bean123ch@gmail.com>
31840 * Makefile.in (pkglib_DATA): Add handler.lst.
31841 (handler.lst): New rule.
31843 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
31844 * conf/i386-coreboot.rmk: Likewise.
31845 * conf/i386-ieee1275.rmk: Likewise.
31846 * conf/i386-efi.rmk: Likewise.
31847 * conf/x86_64-efi.rmk: Likewise.
31848 * conf/powerpc-ieee1275.rmk: Likewise.
31849 * conf/sparc64-ieee1275.rmk: Likewise.
31851 * genhandlerlist.sh: New file.
31853 * genmk.rb: Add rules to generate handler.lst.
31855 * include/grub/normal.h (grub_file_getline): New function definition.
31856 (read_handler_list): Likewise.
31857 (free_handler_list): Likewise.
31859 * include/grub/term.h (grub_term_register_input): Add name parameter
31860 for auto generation of handler.lst.
31861 (grub_term_register_output): Likewise.
31863 * normal/handler.c: New file.
31865 * normal/main.c (get_line): Renamed to grub_file_getline.
31866 (read_config_file): Use the newly renamed grub_file_getline.
31867 (read_command_list): Likewise.
31868 (read_fs_list): Likewise.
31869 (grub_normal_execute): Call read_handler_list to parse handler.lst.
31870 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
31872 * term/efi/console.c (grub_console_init): Add name parameter for auto
31873 generation of handler.lst.
31874 * term/gfxterm.c: Likewise.
31875 * term/i386/pc/at_keyboard.c: Likewise.
31876 * term/i386/pc/console.c: Likewise.
31877 * term/i386/pc/serial.c: Likewise.
31878 * term/i386/pc/vesafb.c: Likewise.
31879 * term/i386/pc/vga.c: Likewise.
31880 * term/i386/pc/vga_text.c: Likewise.
31881 * term/ieee1275/ofconsole.c: Likewise.
31882 * term/usb_keyboard.c: Likewise.
31884 2009-04-14 Bean <bean123ch@gmail.com>
31886 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
31887 properly with null character.
31889 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31891 * configure: Remove.
31892 * config.h.in: Likewise.
31893 * stamp-h.in: Likewise.
31894 * DISTLIST: Likewise.
31895 * conf/common.mk: Likewise.
31896 * conf/i386-coreboot.mk: Likewise.
31897 * conf/i386-efi.mk: Likewise.
31898 * conf/i386-ieee1275.mk: Likewise.
31899 * conf/i386.mk: Likewise.
31900 * conf/i386-pc.mk: Likewise.
31901 * conf/powerpc-ieee1275.mk: Likewise.
31902 * conf/sparc64-ieee1275.mk: Likewise.
31903 * conf/x86_64-efi.mk: Likewise.
31905 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
31908 2009-04-14 John Stanley <jpsinthemix@verizon.net>
31909 David S. Miller <davem@davemloft.net>
31911 * util/hostdisk.c (make_device_name): Fix buffer length
31914 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31916 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
31917 <sys/param.h> and <sys/sysctl.h>.
31918 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
31919 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
31920 opening the device and reset them afterwards.
31922 2009-04-13 Pavel Roskin <proski@gnu.org>
31924 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
31925 Reported by John Stanley <jpsinthemix@verizon.net>
31927 2009-04-13 Robert Millan <rmh@aybabtu.com>
31929 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
31930 that name for menuentries when appropriate.
31932 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31934 * util/grub.d/10_freebsd.in: Add a missing `fi'.
31936 2009-04-13 Robert Millan <rmh@aybabtu.com>
31938 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
31939 to Linux, simply abort telling the user it's no longer supported.
31941 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31943 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
31944 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
31945 `freebsd_loadenv' only when devices.hints exist.
31947 2009-04-13 Pavel Roskin <proski@gnu.org>
31949 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
31951 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31953 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
31955 (grub_drive): Likewise.
31957 2009-04-13 David S. Miller <davem@davemloft.net>
31959 * kern/sparc64/ieee1275/ieee1275.c: New file.
31960 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
31961 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
31962 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
31963 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
31964 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
31965 grub_ieee1275_alloc_physmem): Declare new exported functions.
31967 * include/grub/sparc64/ieee1275/loader.h: New file.
31968 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31969 * include/grub/sparc64/kernel.h: Likewise.
31970 * loader/sparc64/ieee1275/linux.c: Likewise.
31972 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
31973 (grub_fstest_SOURCES): Likewise.
31975 * util/hostdisk.c (make_device_name): Do not make any assumptions
31976 about the length of drive names.
31978 * kern/dl.c (grub_dl_load_file): Close file immediately when
31979 we are done using it.
31981 2009-04-12 David S. Miller <davem@davemloft.net>
31983 * kern/misc.c (grub_ltoa): Fix cast when handling negative
31984 values. Noticed by Pavel Roskin.
31986 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
31989 * genmk.rb: Add more flexible image type specification, also
31990 pass --strip-unneeded to objcopy.
31991 * conf/i386-pc.rmk: Use *_FORMAT.
31992 * conf/i386-pc.mk: Rebuilt.
31994 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
31995 (OFDISK_HASH_SZ): Define.
31996 (ofdisk_hash): New hash table.
31997 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
31998 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
31999 instead of device phandle which is not unique.
32001 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32002 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32003 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32004 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32005 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32006 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32007 GRUB_KERNEL_MACHINE_DATA_END): Define.
32008 (grub_kernel_image_size, grub_total_module_size): Declare.
32010 2009-04-12 Pavel Roskin <proski@gnu.org>
32012 * configure.ac: Change the logic when we check for target tools.
32013 Do it when the target is specified and it's different from the
32014 specified value of the host.
32016 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32018 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32019 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32020 GNU/kFreeBSD. Check if a device is a character device. Use
32021 DIOCGMEDIASIZE to get the size.
32022 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32023 support for GNU/kFreeBSD.
32024 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32025 is a character device instead of a block device. Add support for
32026 FreeBSD device names.
32028 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32029 is a character device instead of a block device.
32031 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32032 is a character device instead of a block device.
32034 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32036 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32037 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32038 FreeBSD. Check if a device is a character device. Use
32039 DIOCGMEDIASIZE to get the size.
32040 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32041 support for FreeBSD.
32042 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32043 is a character device instead of a block device. Add support for
32044 FreeBSD device names.
32046 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32047 a character device instead of a block device.
32048 (grub_util_check_char_device): New function.
32050 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32051 a character device instead of a block device.
32053 * include/grub/util/getroot.h (grub_util_check_char_device): New
32056 2009-04-11 David S. Miller <davem@davemloft.net>
32058 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32060 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32061 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32062 function, if present.
32063 (__bswapdi2): Likewise.
32065 * include/grub/sparc64/ieee1275/boot.h: New file.
32066 * boot/sparc64/ieee1275/boot.S: Likewise.
32067 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32069 * kern/misc.c (grub_ltoa): New function.
32070 (grub_vsprintf): Use it to format 'long' integers.
32072 2009-04-10 David S. Miller <davem@davemloft.net>
32074 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32075 slots are of type grub_ieee1275_cell_t.
32076 (grub_nand_read): Likewise.
32077 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32078 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32079 macros are used to compare values in arg/ret block of the call.
32080 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32081 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32082 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32083 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32084 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32085 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32086 grub_ieee1275_close, grub_ieee1275_set_property,
32087 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32088 grub_ieee1275_cell_t.
32089 * kern/ieee1275/openfw.c (grub_map): Likewise.
32090 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32091 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32093 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32094 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32095 (grub_devalias_iterate): Likewise.
32097 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32101 * fs/ufs.c (INODE_NBLOCKS): new definition
32102 (struct grub_ufs_dirent): added fields for non-BSD dirents
32103 (grub_ufs_get_file_block): fixed double indirect handling
32104 (grub_ufs_lookup_symlink): use more robust way to determine whether
32106 (grub_ufs_find_file): support for non-BSD dirents
32107 (grub_ufs_dir): support for non-BSD dirents
32109 2009-04-10 Bean <bean123ch@gnail.com>
32111 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32112 attribute, otherwise the size would be wrong for i386 platform.
32114 * include/grub/pci.h (grub_pci_read_word): New inline function.
32115 (grub_pci_read_byte): Likewise.
32116 (grub_pci_write): Likewise.
32117 (grub_pci_write_word): Likewise.
32118 (grub_pci_write_byte): Likewise.
32120 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32122 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32123 (find_framebuf): Scan pci to locate the frame buffer address.
32125 * commands/efi/fixvideo.c: New file.
32127 * commands/efi/loadbios.c: Likewise.
32129 * commands/memrw.c: Likewise.
32131 * util/grub-dumpbios.in: Likewise.
32133 * conf/common.rmk (grub-dumpbios): New utility.
32134 (pkglib_MODULES): New module memrw.mod.
32135 (memrw_mod_SOURCE): New macro.
32136 (memrw_mod_CFLAGS): Likewise.
32137 (memrw_mod_LDFLAGS): Likewise.
32139 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32141 (loadbios_mod_SOURCE): New macro.
32142 (loadbios_mod_CFLAGS): Likewise.
32143 (loadbios_mod_LDFLAGS): Likewise.
32144 (fixvideo_mod_SOURCE): Likewise.
32145 (fixvideo_mod_CFLAGS): Likewise.
32146 (fixvideo_mod_LDFLAGS): Likewise.
32148 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32150 (loadbios_mod_SOURCE): New macro.
32151 (loadbios_mod_CFLAGS): Likewise.
32152 (loadbios_mod_LDFLAGS): Likewise.
32153 (fixvideo_mod_SOURCE): Likewise.
32154 (fixvideo_mod_CFLAGS): Likewise.
32155 (fixvideo_mod_LDFLAGS): Likewise.
32157 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32159 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32161 2009-04-07 David S. Miller <davem@davemloft.net>
32163 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32164 support for R_SPARC_OLO10 relocations. Fix compile warning for
32165 R_SPARC_WDISP30 case.
32166 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32168 2009-04-06 Pavel Roskin <proski@gnu.org>
32170 * include/grub/misc.h (ARRAY_SIZE): New macro.
32171 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32173 * loader/i386/linux.c (allocate_pages): Use free_pages().
32174 (grub_linux_unload): Don't use free_pages().
32175 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32176 wrong index. Treat all other modes as text modes.
32177 (grub_cmd_linux): Initialize vid_mode unconditionally to
32178 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32180 * commands/help.c (print_command_help): Use cmd->prio, not
32181 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32183 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32187 * parttool/pcpart.c: new file
32188 * commands/parttool.c: likewise
32189 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32190 (parttool_mod_SOURCES): new variable
32191 (parttool_mod_CFLAGS): likewise
32192 (parttool_mod_LDFLAGS): likewise
32193 (pcpart_mod_SOURCES): likewise
32194 (pcpart_mod_CFLAGS): likewise
32195 (pcpart_mod_LDFLAGS): likewise
32196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32197 and parttool/pcpart.c
32198 * conf/i386-efi.rmk: likewise
32199 * conf/i386-ieee1275.rmk: likewise
32200 * conf/i386-pc.rmk: likewise
32201 * conf/powerpc-ieee1275.rmk: likewise
32202 * conf/sparc64-ieee1275.rmk: likewise
32203 * conf/x86_64-ieee1275.rmk: likewise
32205 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32207 Support for mtime and further expandability of dir command
32209 * include/grub/lib/datetime.h: moved to ...
32210 * include/grub/datetime.h: ... moved here and added
32211 declaration of grub_unixtime2datetime. All users updated
32212 * include/grub/fs.h: new syntax for dir and mtime functions in
32214 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32215 and GRUB_FSHELP_FLAGS_MASK
32216 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32217 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32218 (grub_ext2_mtime): new function
32219 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32220 (grub_hfsplus_mtime): new function
32221 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32222 (GRUB_UFS_ATTR_FILE): likewise
32223 (GRUB_UFS_ATTR_LNK): likewise
32224 (struct grub_ufs_sblock): new fields mtime
32225 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32227 (grub_ufs_dir): mtime support
32228 (grub_ufs_mtime): new function
32229 * fs/affs.c (grub_affs_dir): use new dir syntax
32230 * fs/afs.c (grub_afs_dir): likewise
32231 * fs/cpio.c (grub_cpio_dir): likewise
32232 * fs/fat.c (grub_fat_find_dir): likewise
32233 * fs/hfs.c (grub_hfs_dir): likewise
32234 * fs/iso9660.c (grub_iso9660_dir): likewise
32235 * fs/jfs.c (grub_jfs_dir): likewise
32236 * fs/minix.c (grub_minix_dir): likewise
32237 * fs/ntfs.c (grub_ntfs_dir): likewise
32238 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32239 * fs/sfs.c (grub_sfs_dir): likewise
32240 * fs/xfs.c (grub_xfs_dir): likewise
32241 * util/hostfs.c (grub_hostfs_dir): likewise
32242 * lib/datetime.c: moved to ...
32243 * normal/datetime.c: ... moved here
32244 (grub_unixtime2datetime): new function
32245 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32246 * normal/completion.c (iterate_dir): use new dir syntax
32247 * normal/misc.c (grub_normal_print_device_info): tell the
32248 last modification time of a volume
32249 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32250 * conf/common.rmk: added lib/datetime.c to ls.mod
32251 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32252 (normal_mod_SOURCES): likewise
32253 (datetime_mod_SOURCES): Removed lib/datetime.c
32254 * conf/i386-efi.rmk: likewise
32255 * conf/i386-ieee1275.rmk: likewise
32256 * conf/i386-pc.rmk: likewise
32257 * conf/powerpc-ieee1275.rmk: likewise
32258 * conf/sparc64-ieee1275.rmk: likewise
32259 * conf/x86_64-efi.rmk: likewise
32261 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32263 Trim trailing spaces in FAT label and support mtools-like labels
32265 * fs/fat.c (grub_fat_iterate_dir): New function based
32266 on grub_fat_find_dir
32267 (grub_fat_find_dir): use grub_fat_iterate_dir
32268 (grub_fat_label): likewise
32270 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32272 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32274 remove extraneous kernel_elf_HEADERS
32276 2009-04-04 Bean <bean123ch@gnail.com>
32278 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32280 * util/misc.c: Likewise.
32282 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32284 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32285 instead of grub_printf.
32287 2009-04-03 Robert Millan <rmh@aybabtu.com>
32289 * loader/i386/linux.c (grub_linux_setup_video): Fill
32290 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32291 values from `mode info' structure instead of hardcoded
32294 2009-04-01 Pavel Roskin <proski@gnu.org>
32296 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32298 * genmk.rb: Likewise.
32299 * configure.ac: Likewise.
32301 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32303 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32304 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32306 2009-04-01 David S. Miller <davem@davemloft.net>
32308 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32309 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32310 (grub_setjmp): Mark with 'returns_twice' attribute.
32311 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32312 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32313 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32315 2009-04-01 Robert Millan <rmh@aybabtu.com>
32317 Reapply fix from 2008-07-28 which was accidentally reverted; also
32318 perform the same fix to a similar check in same function.
32320 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32321 with the same number are found, just use issue a warning with
32322 grub_dprintf(), as this error has been reported to be non-fatal.
32324 2009-03-31 Pavel Roskin <proski@gnu.org>
32326 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32327 for cross-compilation.
32329 2009-03-30 Robert Millan <rmh@aybabtu.com>
32331 Fix i386-ieee1275 build.
32333 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32334 Remove declaration.
32336 2009-03-30 Pavel Roskin <proski@gnu.org>
32338 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32339 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32340 zero-terminated, rely only on the strlen value. Fix comparison
32341 of strings differing in length.
32343 2009-03-30 Robert Millan <rmh@aybabtu.com>
32345 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32346 checking for abi version. Improve error messages on BIOS to notify
32347 user about `linux16' command.
32349 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32353 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32354 in case of collision
32355 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32357 2009-03-29 Robert Millan <rmh@aybabtu.com>
32359 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32360 set `vid_mode' accordingly.
32361 (grub_linux_boot): Process `vid_mode' and set video mode.
32363 2009-03-29 Robert Millan <rmh@aybabtu.com>
32365 * util/grub.d/10_linux.in (linux_entry): New function.
32366 Factorize generation of Linux boot entries.
32368 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32370 Make the format of Environment Block plain text. The boot loader
32371 part is not tested well yet.
32373 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32375 (envblk): Likewise.
32376 (usage): Remove "info" and "clear". Add "unset". Update the
32377 description of "set", as this does not delete variables any
32379 (create_envblk_file): Complete rewrite.
32380 (open_envblk_file): Likewise.
32381 (cmd_info): Removed.
32382 (cmd_list): Likewise.
32383 (cmd_set): Likewise.
32384 (cmd_clear): Likewise.
32385 (list_variables): New function.
32386 (write_envblk): Likewise.
32387 (set_variables): Likewise.
32388 (unset_variables): Likewise.
32389 (main): Complete rewrite.
32391 * commands/loadenv.c (buffer): Removed.
32392 (envblk): Likewise.
32393 (open_envblk_file): New function.
32394 (read_envblk_file): Complete rewrite.
32395 (grub_cmd_load_env): Likewise.
32396 (grub_cmd_list_env): Likewise.
32397 (struct blocklist): New struct.
32398 (free_blocklists): New function.
32399 (check_blocklists): Likewise.
32400 (write_blocklists): Likewise.
32401 (grub_cmd_save_env): Complete rewrite.
32403 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32404 a plain text signature.
32405 (GRUB_ENVBLK_MAXLEN): Removed.
32406 (struct grub_envblk): Complete rewrite.
32407 (grub_envblk_find): Removed.
32408 (grub_envblk_insert): Likewise.
32409 (grub_envblk_open): New prototype.
32410 (grub_envblk_set): Likewise.
32411 (grub_envblk_delete): Put const to VALUE.
32412 (grub_envblk_iterate): Put const to NAME and VALUE.
32413 (grub_envblk_close): New prototype.
32414 (grub_envblk_buffer): New inline function.
32415 (grub_envblk_size): Likewise.
32417 * lib/envblk.c: Include grub/mm.h.
32418 (grub_env_find): Removed.
32419 (grub_envblk_open): New function.
32420 (grub_envblk_close): Likewise.
32421 (escaped_value_len): Likewise.
32422 (find_next_line): Likewise.
32423 (grub_envblk_insert): Removed.
32424 (grub_envblk_set): New function.
32425 (grub_envblk_delete): Complete rewrite.
32426 (grub_envblk_iterate): Likewise.
32428 2009-03-28 Robert Millan <rmh@aybabtu.com>
32430 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32431 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32432 variables. Use 16-bit loader.
32433 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32435 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32436 (grub_linux16_boot): ... this. Update all users.
32437 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32438 (grub_linux_boot): ... this. Update all users.
32440 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32441 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32442 commands to `linux16' and `initrd16'.
32443 (GRUB_MOD_FINI(linux)): Rename to ...
32444 (GRUB_MOD_FINI(linux16)): ... this.
32446 2009-03-24 Pavel Roskin <proski@gnu.org>
32448 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32449 not just for compilation.
32451 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32453 Move multiboot helper out of kernel
32455 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32456 `loader/i386/multiboot_helper.S'.
32457 * conf/i386-coreboot.rmk: Likewise
32458 * conf/i386-ieee1275.rmk: Likewise
32460 * kern/i386/loader.S: Move multiboot helpers from here...
32461 * loader/i386/multiboot_helper.S: ...moved here
32462 * include/grub/i386/loader.h: Move declarations of multiboot
32463 helpers from here...
32464 * include/grub/i386/multiboot.h: ...moved here
32465 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32467 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32469 * kern/env.c (grub_env_context_open): Added an argument to specify
32470 whether a new context inherits exported variables from current
32471 one. This is useful when making a sandbox to interpret a config
32473 All callers updated.
32475 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32477 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32479 * kern/env.c (grub_env_context_close): Fix memory leaks.
32481 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32483 * normal/main.c (grub_normal_execute): Added an argument
32484 BATCH to specify if an interactive interface should be provided
32485 after reading a config file.
32486 All callers updated.
32487 (read_command_list): Prevent being executed twice.
32488 (read_fs_list): Likewise.
32490 * include/grub/normal.h (grub_normal_execute): Updated the
32493 2009-03-22 Pavel Roskin <proski@gno.org>
32495 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32497 * kern/i386/pc/startup.S: Likewise.
32498 * kern/i386/efi/startup.S: Likewise.
32499 * kern/i386/ieee1275/startup.S: Likewise.
32500 * kern/i386/coreboot/startup.S: Likewise.
32501 * kern/x86_64/efi/startup.S: Likewise.
32503 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32504 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32505 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32507 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32509 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32511 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32513 Use vaddr of correct segment for entry_point.
32515 2009-03-21 Bean <bean123ch@gmail.com>
32517 * commands/blocklist.c: Add include file <grub/command.h>, remove
32518 <grub/normal.h> and <grub/arg.h>.
32519 (grub_cmd_blocklist): Use the new command interface.
32520 (GRUB_MOD_INIT): Likewise.
32521 (GRUB_MOD_FINI): Likewise.
32522 * commands/boot.c: Likewise.
32523 * commands/cat.c: Likewise.
32524 * commands/cmp.c: Likewise.
32525 * commands/configfile.c: Likewise.
32526 * commands/crc.c: Likewise.
32527 * commands/echo.c: Likewise.
32528 * commands/halt.c: Likewise.
32529 * commands/handler.c: Likewise.
32530 * commands/hdparm.c: Likewise.
32531 * commands/help.c: Likewise.
32532 * commands/hexdump.c: Likewise.
32533 * commands/loadenv.c: Likewise.
32534 * commands/ls.c: Likewise.
32535 * commands/lsmmap.c: Likewise.
32536 * commands/lspci.c: Likewise.
32537 * commands/loadenv.c: Likewise.
32538 * commands/read.c: Likewise.
32539 * commands/reboot.c: Likewise.
32540 * commands/search.c: Likewise.
32541 * commands/sleep.c: Likewise.
32542 * commands/test.c: Likewise.
32543 * commands/usbtest.c: Likewise.
32544 * commands/videotest.c: Likewise.
32545 * commands/i386/cpuid.c: Likewise.
32546 * commands/i386/pc/halt.c: Likewise.
32547 * commands/i386/pc/play.c: Likewise.
32548 * commands/i386/pc/pxecmd.c: Likewise.
32549 * commands/i386/pc/vbeinfo.c: Likewise.
32550 * commands/i386/pc/vbetest.c: Likewise.
32551 * commands/ieee1275/suspend.c: Likewise.
32552 * disk/loopback.c: Likewise.
32553 * font/font_cmd.c: Likewise.
32554 * hello/hello.c: Likewise.
32555 * loader/efi/appleloader.c: Likewise.
32556 * loader/efi/chainloader.c: Likewise.
32557 * loader/i386/bsd.c: Likewise.
32558 * loader/i386/efi/linux.c: Likewise.
32559 * loader/i386/ieee1275/linux.c: Likewise.
32560 * loader/i386/linux.c: Likewise.
32561 * loader/i386/pc/chainloader.c: Likewise.
32562 * loader/i386/pc/linux.c: Likewise.
32563 * loader/powerpc/ieee1275/linux.c: Likewise.
32564 * loader/multiboot_loader.c: Likewise.
32565 * term/gfxterm.c: Likewise.
32566 * term/i386/pc/serial.c: Likewise.
32567 * term/terminfo.c: Likewise.
32569 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32570 * term/i386/pc/vga.c: Likewise.
32571 * video/readers/jpeg.c: Likewise.
32572 * video/readers/png.c: Likewise.
32573 * video/readers/tga.c: Likewise.
32575 * util/grub-fstest (cmd_loopback): Removed.
32576 (cmd_blocklist): Likewise.
32577 (cmd_ls): Likewise.
32578 (grub_register_command): Likewise.
32579 (grub_unregister_command): Likewise.
32580 (execute_command): Use grub_command_find to locate command and execute
32583 * include/grub/efi/chainloader.h: Removed.
32584 * loader/efi/chainloader_normal.c: Likewise.
32585 * loader/i386/bsd_normal.c: Likewise.
32586 * loader/i386/pc/chainloader_normal.c: Likewise.
32587 * loader/i386/pc/multiboot_normal.c: Likewise.
32588 * loader/linux_normal.c: Likewise.
32589 * loader/multiboot_loader_normal.c: Likewise.
32590 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32592 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32593 and grub_register_command_p1.
32595 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32596 kern/command.c, lib/arg.c and commands/extcmd.c.
32597 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32598 (minicmd_mod_SOURCES): New variable.
32599 (minicmd_mod_CFLAGS): Likewise.
32600 (minicmd_mod_LDFLAGS): Likewise.
32601 (extcmd_mod_SOURCES): Likewise.
32602 (extcmd_mod_CFLAGS): Likewise.
32603 (extcmd_mod_LDFLAGS): Likewise.
32604 (boot_mod_SOURCES): Removed.
32605 (boot_mod_CFLAGS): Likewise.
32606 (boot_mod_LDFLAGS): Likewise.
32608 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32610 (kernel_img_HEADERS): Add command.h.
32611 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32612 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32614 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32615 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32616 remove the corresponding normal mode command.
32617 (normal_mod_SOURCES): Remove normal/arg.c.
32618 * conf/i386-coreboot.rmk: Likewise.
32619 * conf/i386-efi.rmk: Likewise.
32620 * conf/i386-ieee1275.rmk: Likewise.
32621 * conf/powerpc-ieee1275.rmk: Likewise.
32622 * conf/x86_64-efi.rmk: Likewise.
32624 * include/grub/arg.h: Move from here ...
32625 * include/grub/lib/arg.h: ... to here.
32627 * normal/arg.c: Move from here ...
32628 * lib/arg.c: ... to here.
32630 * commands/extcmd.c: New file.
32631 * commands/minicmd.c: Likewise.
32632 * include/grub/command.h: Likewise.
32633 * include/grub/extcmd.h: Likewise.
32634 * kern/command.c: Likewise.
32635 * kern/corecmd.c: Likewise.
32637 * kern/list.c (grub_list_iterate): Return int instead of void.
32638 (grub_list_insert): New function.
32639 (grub_prio_list_insert): Likewise.
32641 * kern/rescue.c (grub_rescue_command): Removed.
32642 (grub_rescue_command_list): Likewise.
32643 (grub_rescue_register_command): Likewise.
32644 (grub_rescue_unregister_command): Likewise.
32645 (grub_rescue_cmd_boot): Move to minicmd.c
32646 (grub_rescue_cmd_help): Likewise.
32647 (grub_rescue_cmd_info): Likewise.
32648 (grub_rescue_cmd_boot): Likewise.
32649 (grub_rescue_cmd_testload): Likewise.
32650 (grub_rescue_cmd_dump): Likewise.
32651 (grub_rescue_cmd_rmmod): Likewise.
32652 (grub_rescue_cmd_lsmod): Likewise.
32653 (grub_rescue_cmd_exit): Likewise.
32654 (grub_rescue_print_devices): Moved to corecmd.c.
32655 (grub_rescue_print_files): Likewise.
32656 (grub_rescue_cmd_ls): Likewise.
32657 (grub_rescue_cmd_insmod): Likewise.
32658 (grub_rescue_cmd_set): Likewise.
32659 (grub_rescue_cmd_unset): Likewise.
32660 (attempt_normal_mode): Use grub_command_find to get normal module.
32661 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32662 commands, remove grub_rescue_register_command calls.
32664 * normal/command.c (grub_register_command): Removed.
32665 (grub_unregister_command): Likewise.
32666 (grub_command_find): Likewise.
32667 (grub_iterate_commands): Likewise.
32668 (rescue_command): Likewise.
32669 (export_command): Moved to corecmd.c.
32670 (set_command): Removed.
32671 (unset_command): Likewise.
32672 (insmod_command): Likewise.
32673 (rmmod_command): Likewise.
32674 (lsmod_command): Likewise.
32675 (grub_command_init): Likewise.
32677 * normal/completion.c (iterate_command): Use cmd->prio to check for
32679 (complete_arguments): Use grub_extcmd_t structure to find options.
32680 (grub_normal_do_completion): Change function grub_iterate_commands to
32681 grub_command_iterate.
32683 * normal/execute.c (grub_script_execute_cmd): No need to parse
32686 * normal/main.c (grub_dyncmd_dispatcher): New function.
32687 (read_command_list): Register unload commands as dyncmd.
32688 (grub_cmd_normal): Use new command interface, register rescue,
32689 unregister normal at entry, register normal, unregister rescue at exit.
32691 * include/grub/list.h (grub_list_test_t): New type.
32692 (grub_list_iterate): Return int instead of void.
32693 (grub_list_insert): New function.
32694 (GRUB_AS_NAMED_LIST_P): New macro.
32695 (GRUB_AS_PRIO_LIST): Likewise.
32696 (GRUB_AS_PRIO_LIST_P): Likewise.
32697 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32698 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32699 (grub_prio_list): New structure.
32700 (grub_prio_list_insert): New function.
32701 (grub_prio_list_remove): New inline function.
32703 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32704 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32705 (GRUB_COMMAND_FLAG_MENU): Likewise.
32706 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32707 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32708 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32709 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
32710 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
32711 (grub_command): Likewise.
32712 (grub_register_command): Likewise.
32713 (grub_command_find): Likewise.
32714 (grub_iterate_commands): Likewise.
32715 (grub_command_init): Likewise.
32716 (grub_arg_parse): Likewise.
32717 (grub_arg_show_help): Likewise.
32719 * include/grub/rescue.h (grub_rescue_register_command): Removed.
32720 (grub_rescue_unregister_command): Likewise.
32722 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
32723 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
32724 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
32726 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
32727 grub_rescue_cmd_initrd.
32728 * include/grub/i386/loader.h: Likewise.
32729 * include/grub/x86_64/loader.h: Likewise.
32731 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
32733 2009-03-21 Bean <bean123ch@gmail.com>
32735 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
32736 instead of stat in mingw environment.
32738 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
32740 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
32742 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
32745 2009-03-21 Bean <bean123ch@gmail.com>
32747 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
32748 out of range error.
32750 2009-03-18 Michel Dänzer <michel@daenzer.net>
32752 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
32753 checking inode flags for EXT4_EXTENTS_FLAG.
32755 2009-03-18 Robert Millan <rmh@aybabtu.com>
32757 * loader/i386/linux.c: Include `<grub/video.h>' and
32758 `<grub/i386/pc/vbe.h>'..
32759 (grub_linux_setup_video): New function. Loosely based on the EFI one.
32760 (grub_linux32_boot): Attempt to configure video settings with
32761 grub_linux_setup_video().
32762 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
32763 to avoid grub_console_fini() which would step out of graphical mode
32766 2009-03-14 Robert Millan <rmh@aybabtu.com>
32768 Fix build on powerpc.
32769 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
32771 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
32773 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
32774 background image command.
32776 2009-03-12 Colin D Bennett <colin@gibibit.com>
32778 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
32779 (grub_gfxterm_putchar): Extract pairs of identical calls to
32780 draw_cursor out of conditional blocks.
32782 2009-03-11 Pavel Roskin <proski@gnu.org>
32784 * fs/hfs.c (grub_hfs_strncasecmp): New function.
32785 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
32787 2009-03-11 Robert Millan <rmh@aybabtu.com>
32789 * loader/i386/multiboot_elfxx.c
32790 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
32792 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
32794 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
32797 2009-03-11 Robert Millan <rmh@aybabtu.com>
32799 * loader/i386/multiboot.c (code_size): New variable.
32800 (grub_multiboot): Define offsets by adding to `code_size' rather
32801 than subtracting from `grub_multiboot_payload_size'. Provide
32802 4-byte alignment to MBI and others by increasing
32803 `boot_loader_name_length' appropriately.
32805 * loader/i386/multiboot_elfxx.c
32806 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
32808 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
32810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
32813 2009-03-08 Robert Millan <rmh@aybabtu.com>
32815 Make loader/i386/linux.c usable on i386-pc again.
32817 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
32819 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
32822 2009-03-07 Bean <bean123ch@gmail.com>
32824 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
32827 2009-03-06 Robert Millan <rmh@aybabtu.com>
32829 Fix display issue on terminals with screen size other than 80x25
32830 (e.g. gfxterm with resolution higher than 640x480).
32832 * normal/main.c (grub_normal_init_page): Display title text in a
32833 position relative to the center of the terminal instead of relying
32834 on a hardcoded offset.
32836 2009-03-04 Robert Millan <rmh@aybabtu.com>
32838 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
32841 * Makefile.in (host_kernel): New variable.
32842 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
32843 scripts instead of just the windows one.
32844 * configure.ac: Initialize and AC_SUBST `host_kernel'.
32846 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32848 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
32850 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32851 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32853 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32854 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32855 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32857 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32859 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
32860 or if there's no space for the disk label and print the partition number on a
32863 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32865 * util/misc.c: Include <time.h>.
32866 (grub_millisleep): New function.
32868 2009-03-04 Bean <bean123ch@gmail.com>
32870 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
32871 another option -mno-red-zone.
32873 * commands/handler.c: Change module description.
32875 * kern/handler.c: Add missing space at the end of description line.
32877 * kern/list.c: Likewise.
32879 2009-03-03 Robert Millan <rmh@aybabtu.com>
32881 Move more components to the relocation area, and fix mbi pointer
32882 handling to use the destination rather than the origin (thanks to
32883 Vladimir Serbinenko for spotting).
32885 * loader/i386/multiboot.c (mbi_dest): New variable.
32886 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
32887 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
32890 2009-03-01 Bean <bean123ch@gmail.com>
32892 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
32893 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
32894 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
32895 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
32897 * loader/i386/efi/linux.c (acpi_guid): New variable.
32898 (acpi_guid): Likewise.
32899 (EBDA_SEG_ADDR): New constant.
32900 (LOW_MEM_ADDR): Likewise.
32901 (FAKE_EBDA_SEG): Likewise.
32902 (fake_bios_data): New function.
32903 (grub_linux_boot): Call fake_bios_data.
32905 2009-03-01 Bean <bean123ch@gmail.com>
32907 * commands/terminal.c: Removed.
32909 * commands/handler.c: New file.
32911 * include/grub/list.h: Likewise.
32913 * include/grub/handler.h: Likewise.
32915 * kern/list.c: Likewise.
32917 * kern/handler.c: Likewise.
32919 * kern/term.h: Include header file <grub/handler.h>.
32920 (grub_term_input): Move next field to the beginning.
32921 (grub_term_output): Likewise.
32922 (grub_term_input_class): New variable.
32923 (grub_term_output_class): Likewise.
32924 (grub_term_register_input): Changed to inline function.
32925 (grub_term_register_output): Likewise.
32926 (grub_term_unregister_input): Likewise.
32927 (grub_term_unregister_output): Likewise.
32928 (grub_term_set_current_input): Likewise.
32929 (grub_term_set_current_output): Likewise.
32930 (grub_term_get_current_input): Likewise.
32931 (grub_term_get_current_output): Likewise.
32932 (grub_term_iterate_input): Removed.
32933 (grub_term_iterate_output): Likewise.
32935 * kern/term.c (grub_term_list_input): Removed.
32936 (grub_term_list_output): Likewise.
32937 (grub_term_input_class): New variable.
32938 (grub_term_output_class): Likewise.
32939 (grub_cur_term_input): Change variable as macro.
32940 (grub_cur_term_output): Likewise.
32941 (grub_term_register_input): Removed.
32942 (grub_term_register_output): Likewise.
32943 (grub_term_unregister_input): Likewise.
32944 (grub_term_unregister_output): Likewise.
32945 (grub_term_set_current_input): Likewise.
32946 (grub_term_set_current_output): Likewise.
32947 (grub_term_iterate_input): Likewise.
32948 (grub_term_iterate_output): Likewise.
32949 (grub_term_get_current_input): Likewise.
32950 (grub_term_get_current_output): Likewise.
32952 * util/grub-editenv.c: Include header file <grub/handler.h>.
32953 (grub_term_get_current_input): Removed.
32954 (grub_term_get_current_output): Likewise.
32955 (grub_term_input_class): New variable.
32956 (grub_term_output_class): Likewise.
32958 * util/grub-fstest.c (grub_term_get_current_input): Removed.
32959 (grub_term_get_current_output): Likewise.
32960 (grub_term_input_class): New variable.
32961 (grub_term_output_class): Likewise.
32963 * util/grub-probe.c (grub_term_get_current_input): Removed.
32964 (grub_term_get_current_output): Likewise.
32965 (grub_term_input_class): New variable.
32966 (grub_term_output_class): Likewise.
32968 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
32969 (grub_term_get_current_output): Likewise.
32970 (grub_term_input_class): New variable.
32971 (grub_term_output_class): Likewise.
32973 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
32974 (terminal_mod_SOURCES): Likewise.
32975 (terminal_mod_CFLAGS): Likewise.
32976 (terminal_mod_LDFLAGS): Likewise.
32978 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
32980 (kernel_img_SOURCES): Add list.c and handler.c.
32981 (kernel_img_HEADERS): Add list.h and handler.h.
32983 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32985 (kernel_mod_SOURCES): Add list.c and handler.c.
32986 (kernel_mod_HEADERS): Add list.h and handler.h.
32988 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
32990 (kernel_elf_SOURCES): Add list.c and handler.c.
32991 (kernel_elf_HEADERS): Add list.h and handler.h.
32993 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32995 (kernel_elf_SOURCES): Add list.c and handler.c.
32996 (kernel_elf_HEADERS): Add list.h and handler.h.
32998 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33000 (kernel_mod_SOURCES): Add list.c and handler.c.
33001 (kernel_mod_HEADERS): Add list.h and handler.h.
33003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33005 (kernel_elf_SOURCES): Add list.c and handler.c.
33006 (kernel_elf_HEADERS): Add list.h and handler.h.
33008 2009-02-27 Robert Millan <rmh@aybabtu.com>
33010 Factorize elf32 / elf64 code in Multiboot loader. This will
33011 prevent it from getting out of sync again.
33013 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33014 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33015 grub_multiboot_load_elf64): Move from here ...
33016 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33017 grub_multiboot_load_elf): ... to here (new file).
33019 2009-02-27 Robert Millan <rmh@aybabtu.com>
33021 * util/grub.d/10_linux.in: Rename "single-user mode" to
33024 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33026 Don't leak in SCSI code.
33027 * disk/scsi.c (grub_scsi_close): free `scsi'.
33029 2009-02-27 Robert Millan <rmh@aybabtu.com>
33031 * loader/i386/pc/multiboot.c: Move from here ...
33032 * loader/i386/multiboot.c: ... to here. Update all users.
33034 2009-02-27 Robert Millan <rmh@aybabtu.com>
33036 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33037 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33039 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33041 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33044 2009-02-27 Robert Millan <rmh@aybabtu.com>
33046 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33047 `0x' qualifier as 0 when base is specified as parameter).
33049 2009-02-24 Bean <bean123ch@gmail.com>
33051 * configure.ac: Check for -mcmodel=large in x86_64 target.
33053 * include/grub/efi/api.h (efi_call_10): New macro.
33054 (efi_wrap_10): New function.
33056 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33057 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33058 (GRUB_PE32_REL_BASED_LOW): Likewise.
33059 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33060 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33061 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33062 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33063 (GRUB_PE32_REL_BASED_REL): Likewise.
33064 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33065 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33066 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33068 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33071 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33072 (efi_wrap_10): New function.
33074 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33076 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33077 MB/MBP model (NV chipset).
33078 (devdata_devs): Add devpath_5 to the list.
33080 * load/i386/efi/linux.c (video_base): Remove variable.
33081 (RGB_MASK): New macro.
33082 (RGB_MAGIC): Likewise.
33083 (LINE_MIN): Likewise.
33084 (LINE_MAX): Likewise.
33085 (FBTEST_STEP): Likewise.
33086 (FBTEST_COUNT): Likewise.
33087 (fb_list): New variable.
33088 (grub_find_video_card): Remove function.
33089 (find_framebuf): New function.
33090 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33093 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33094 problem for x86_64.
33096 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33098 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33100 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33103 2009-02-22 Robert Millan <rmh@aybabtu.com>
33105 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33106 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33107 in our relocation, instead of using it directly from heap. Also
33108 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33110 2009-02-21 Robert Millan <rmh@aybabtu.com>
33112 Implement USB keyboard support (based on patch by Marco Gerards)
33114 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33115 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33116 (usb_keyboard_mod_LDFLAGS): New variables.
33118 * term/usb_keyboard.c: New file.
33120 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33122 Corrected wrong declaration
33124 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33126 2009-02-14 Christian Franke <franke@computer.org>
33128 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33129 (grub_lspci_iter): Print class code and programming interface byte.
33131 2009-02-14 Christian Franke <franke@computer.org>
33133 * gendistlist.sh: Ignore `.svn' directories.
33135 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33137 * fs/fat.c: Add 2009 to Copyright line.
33139 2009-02-14 Christian Franke <franke@computer.org>
33141 * commands/hdparm.c: New file. Provides `hdparm' command
33142 which sends ATA commands via grub_disk_ata_pass_through ().
33144 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33146 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33147 and <grub/cpu/io.h> to include/grub/ata.h.
33148 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33149 (GRUB_CDROM_SECTOR_SIZE): Remove.
33150 (GRUB_ATA_*): Move to include/grub/ata.h.
33151 (GRUB_ATAPI_*): Likewise.
33152 (enum grub_ata_commands): Likewise.
33153 (enum grub_ata_timeout_milliseconds): Likewise.
33154 (struct grub_ata_device): Likewise.
33155 (grub_ata_regset): Likewise.
33156 (grub_ata_regget): Likewise.
33157 (grub_ata_regset2): Likewise.
33158 (grub_ata_regget2): Likewise.
33159 (grub_ata_check_ready): Likewise.
33160 (grub_ata_wait_not_busy): Remove static, exported in
33161 include/grub/ata.h.
33162 (grub_ata_wait_drq): Likewise.
33163 (grub_ata_pio_read): Likewise.
33165 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33166 function for hdparm.mod.
33168 * include/grub/ata.h: New file, contains declarations from
33170 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33172 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33173 (grub_disk_ata_pass_through): New exported variable.
33175 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33177 2009-02-13 Colin D Bennett <colin@gibibit.com>
33179 Support multiple fallback entries, and provide an API to support
33180 executing default+fallback menu entries. Renamed the `terminal' menu
33183 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33184 variable declaration.
33185 (grub_menu_execute_callback): New structure declaration.
33186 (grub_menu_execute_callback_t): New typedef.
33187 (grub_menu_execute_with_fallback): New function declaration.
33188 (grub_menu_get_entry): Likewise.
33189 (grub_menu_get_timeout): Likewise.
33190 (grub_menu_set_timeout): Likewise.
33192 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33194 * normal/menu.c (grub_wait_after_message): Moved to
33195 `normal/menu_text.c'.
33196 (draw_border): Likewise.
33197 (print_message): Likewise.
33198 (print_entry): Likewise.
33199 (print_entries): Likewise.
33200 (grub_menu_init_page): Likewise.
33201 (get_entry_number): Likewise.
33202 (print_timeout): Likewise.
33203 (run_menu): Likewise.
33204 (grub_menu_execute_entry): Likewise.
33205 (show_text_menu): Likewise.
33206 (get_and_remove_first_entry_number): New function.
33207 (grub_menu_execute_with_fallback): Likewise.
33208 (get_entry): Renamed to ...
33209 (grub_menu_get_entry): .. this and made it global.
33210 (get_timeout): Renamed to ...
33211 (grub_menu_get_timeout): ... this and made it global.
33212 (set_timeout): Renamed to ...
33213 (grub_menu_set_timeout): ... this and made it global.
33214 (grub_normal_terminal_menu_viewer): Renamed to ...
33215 (grub_normal_text_menu_viewer): ... this.
33217 * normal/menu_text.c: New file. Extracted text-menu-specific code
33218 from normal/menu.c.
33220 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33221 (normal_mod_SOURCES): Likewise.
33223 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33224 (normal_mod_SOURCES): Likewise.
33226 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33227 (normal_mod_SOURCES): Likewise.
33229 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33230 (normal_mod_SOURCES): Likewise.
33232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33233 (normal_mod_SOURCES): Likewise.
33235 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33236 (normal_mod_SOURCES): Likewise.
33238 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33239 (normal_mod_SOURCES): Likewise.
33241 2009-02-11 Robert Millan <rmh@aybabtu.com>
33243 * util/grub.d/00_header.in: Update old reference to `font' command.
33245 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33247 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33249 Based on patch from Javier Martín.
33251 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33253 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33254 to avoid false positives with FAT.
33255 (grub_fstest_SOURCES): Likewise.
33256 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33257 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33259 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33260 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33261 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33263 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33265 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33266 bpb.version_specific.fat12_or_fat16.fstype and
33267 bpb.version_specific.fat32.fstype.
33269 2009-02-08 Robert Millan <rmh@aybabtu.com>
33271 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33273 2009-02-08 Robert Millan <rmh@aybabtu.com>
33275 * Makefile.in (host_os, host_cpu): New variables.
33276 (target_os): Remove. Update all users.
33278 2009-02-08 Marco Gerards <marco@gnu.org>
33280 * Makefile.in (enable_grub_emu_usb): New variable.
33281 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33282 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33283 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33284 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33285 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33286 `usbtest.mod' and `usbms.mod'.
33287 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33288 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33289 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33290 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33291 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33294 * disk/usbms.c: New file.
33296 * include/grub/usb.h: Likewise.
33298 * include/grub/usbtrans.h: Likewise.
33300 * include/grub/usbdesc.h: Likewise.
33302 * bus/usb/usbtrans.c: Likewise.
33304 * bus/usb/ohci.c: Likewise.
33306 * bus/usb/uhci.c: Likewise.
33308 * bus/usb/usbhub.c: Likewise.
33310 * bus/usb/usb.c: Likewise.
33312 * commands/usbtest.c: Likewise.
33314 * util/usb.c: Likewise.
33316 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33318 * configure.ac: Test for libusb presence.
33320 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33322 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33324 * kern/mm.c: Add more comments.
33326 2009-02-08 Robert Millan <rmh@aybabtu.com>
33328 Patch from Javier Martín.
33329 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33330 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33332 2009-02-08 Robert Millan <rmh@aybabtu.com>
33334 * fs/cpio.c: Split tar functionality to ...
33335 * fs/tar.c: ... here (new file). Update all users.
33337 2009-02-07 Robert Millan <rmh@aybabtu.com>
33339 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33340 backward-incompatible features.
33342 Based on patch from Javier Martín, with some adjustments.
33344 2009-02-07 Michael Scherer <misc@mandriva.org>
33346 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33348 2009-02-07 Robert Millan <rmh@aybabtu.com>
33350 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33351 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33352 after the RAID stuff.
33354 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33356 Fixes problem when running vbetest command as reported by
33357 Vladimir Serbinenko <phcoder@gmail.com>.
33359 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33361 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33363 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33364 /dev/md/NpN style mdraid devices.
33366 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33368 * util/unifont2pff.rb: Remove.
33370 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33372 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33375 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33377 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33378 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33379 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33380 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33382 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33383 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33385 2009-02-02 Christian Franke <franke@computer.org>
33387 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33389 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33391 * INSTALL: Note that we now require at least autoconf 2.59 and
33392 that LZO is optional.
33394 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33396 Base on patch on bug #24154 created by Tomas Tintera
33397 <trosos@seznam.cz>.
33399 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33401 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33403 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33404 <bero@arklinux.org>.
33406 * normal/parser.y (script_init): Add missing semicolon.
33408 2009-01-31 Colin D Bennett <colin@gibibit.com>
33410 * normal/main.c: Add include to grub/menu_viewer.h.
33411 (free_menu_entry_classes): Added.
33412 (grub_normal_menu_addentry): Added class property handling.
33413 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33414 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33416 * normal/menu_viewer.c: New file.
33418 * normal/menu.c (run_menu_entry): Renamed to ...
33419 (grub_menu_execute_entry): ... this and made it as global.
33420 (grub_menu_run): Renamed to ...
33421 (show_text_menu): ... this and made it local.
33422 (show_text_menu): Adapt to new function names.
33423 (grub_normal_terminal_menu_viewer): New global variable.
33425 * include/grub/menu.h: New file.
33427 * include/grub/menu_viewer.h: New file.
33429 * include/grub/normal.h: Added include to grub/menu.h.
33430 (grub_menu_entry): Moved to include/grub/menu.h.
33431 (grub_menu_entry_t): Likewise.
33432 (grub_menu): Likewise.
33433 (grub_menu_t): Likewise.
33434 (grub_normal_terminal_menu_viewer): Added.
33435 (grub_menu_execute_entry): Likewise.
33436 (grub_menu_run): Removed.
33438 * DISTLIST: Added include/grub/menu.h.
33439 Added include/grub/menu_viewer.h.
33440 Added normal/menu_viewer.c.
33442 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33444 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33445 arglist for menutitle arguments.
33447 * normal/main.c (grub_normal_menu_addentry): Likewise.
33449 * normal/parser.y (menuentry): Likewise.
33451 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33453 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33454 (grub_script_create_cmdmenu): Likewise.
33456 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33458 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33461 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33463 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33465 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33467 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33469 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33471 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33473 2009-01-30 Christian Franke <franke@computer.org>
33475 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33476 in option help text.
33478 2009-01-27 Pavel Roskin <proski@gnu.org>
33480 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33482 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33484 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33486 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33488 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33489 unregister function.
33491 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33493 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33495 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33497 * util/grub-mkfont.c (usage): Fix typo.
33499 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33501 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33503 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33505 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33507 * kern/misc.c (grub_strcasecmp): New function.
33508 (grub_strcasecmp): Use grub_size_t instead of int for length.
33510 * include/grub/misc.h: Update function prototypes.
33512 2009-01-26 Robert Millan <rmh@aybabtu.com>
33514 * configure.ac: Fix cross-compilation check.
33516 2009-01-22 Christian Franke <franke@computer.org>
33518 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33519 (precision) digit string. Allow `.format2' without `format1' (width).
33520 Limit input chars for `%s' output to `format2' if specified. This is
33521 compatible with standard printf ().
33523 2009-01-22 Christian Franke <franke@computer.org>
33525 * disk/ata.c (grub_ata_wait_status): Replace by ...
33526 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33527 other status bits may be invalid while BSY is asserted.
33528 (grub_ata_check_ready): New function.
33529 (grub_ata_cmd): Removed.
33530 (grub_ata_wait_drq): New function.
33531 (grub_ata_strncpy): Remove inline.
33532 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33533 and error check now done by grub_ata_wait_drq ().
33534 (grub_ata_pio_write): Likewise.
33535 (grub_atapi_identify): Set DEV before check for !BSY. Use
33536 grub_ata_wait_drq () to wait for data.
33537 (grub_ata_device_initialize): Add status register check to
33538 detect missing SATA slave devices. Add debug messages.
33539 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33540 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33541 transfer loop by grub_ata_pio_write ().
33542 (grub_ata_identify): Set DEV before check for !BSY. Use
33543 grub_ata_wait_drq () to wait for data.
33544 (grub_ata_setaddress): Set DEV before check for !BSY.
33545 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33546 read/write in one loop. Fix invalid command on write. Fix incomplete
33547 command on (size % batch) == 0. Add missing error check after write of
33548 last block. Add debug messages.
33549 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33551 2009-01-19 Christian Franke <franke@computer.org>
33553 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33554 (GRUB_ATAPI_IREASON_*): Likewise.
33555 (grub_ata_pio_write): Fix timeout error return.
33556 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33557 (grub_atapi_wait_drq): New function.
33558 (grub_atapi_packet): New parameter `size'.
33559 Use grub_atapi_wait_drq () and direct write instead of
33560 grub_ata_pio_write ().
33561 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33562 reads the number of bytes requested by the device for each DRQ
33564 (grub_atapi_write): Remove old implementation, return not
33565 implemented instead.
33567 2009-01-19 Christian Franke <franke@computer.org>
33569 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33570 of 512 to calculate data size.
33571 (grub_scsi_read12): Likewise.
33572 (grub_scsi_write10): Likewise.
33573 (grub_scsi_write12): Likewise.
33574 (grub_scsi_read): Adjust size according to blocksize.
33575 Add checks for invalid blocksize and unaligned transfer.
33577 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33579 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33581 * term/gfxterm.c (write_char): Fix background rendering for wide
33584 2009-01-19 Robert Millan <rmh@aybabtu.com>
33586 * config.guess: Update to latest version from config git.
33587 * config.sub: Likewise.
33589 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33591 * Makefile.in: Change font compilation to use new grub-mkfont instead
33594 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33595 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33596 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33597 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33598 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33599 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33600 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33601 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33602 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33604 2009-01-16 Christian Franke <franke@computer.org>
33606 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33607 (enum grub_ata_timeout_milliseconds): New enum.
33608 (grub_ata_wait_status): Add parameter milliseconds.
33609 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33610 recovery from timed-out commands.
33611 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33612 return grub_errno instead of REG_ERROR.
33613 (grub_ata_pio_write): Add parameter milliseconds.
33614 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33615 Pass milliseconds to grub_ata_wait_status () and
33616 grub_ata_pio_read ().
33617 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33618 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33619 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33620 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33621 It is not suitable for device detection, because DEV bit is ignored,
33622 the command may run too long, and not all devices set the signature
33624 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33625 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33626 Fix device selection, DEV bit must be set first to address the registers
33627 of the correct device.
33628 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33629 grub_ata_pio_read/write ().
33630 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33631 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33633 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33635 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33637 2009-01-13 Bean <bean123ch@gmail.com>
33639 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33641 2009-01-13 Bean <bean123ch@gmail.com>
33643 * Makefile.in: (enable_grub_mkfont): New variable.
33644 (freetype_cflags): Likewise.
33645 (freetype_libs): Likewise.
33647 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33648 (grub_mkfont_SOURCES): New variable.
33649 (grub_mkfont_CFLAGS): Likewise.
33650 (grub_mkfont_LDFLAGS): Likewise.
33652 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33653 library if `--enable-grub-mkfont' is requested.
33654 (enable_grub_mkfont): New variable.
33655 (freetype_cflags): Likewise.
33656 (freetype_libs): Likewise.
33658 * util/grub-mkfont.c: New file.
33660 2009-01-12 Christian Franke <franke@computer.org>
33662 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33663 mode check. Fix setting of compat_use[].
33665 2009-01-10 Robert Millan <rmh@aybabtu.com>
33667 Update a few copyright years which we forgot to do in 2008 (only for
33668 files whose changes made in 2008 were copyright-significant)
33670 * Makefile.in: Add 2008 to Copyright line.
33671 * disk/ieee1275/ofdisk.c: Likewise.
33672 * disk/efi/efidisk.c: Likewise.
33673 * kern/dl.c: Likewise.
33674 * kern/sparc64/ieee1275/init.c: Likewise.
33675 * kern/mm.c: Likewise.
33676 * kern/efi/mm.c: Likewise.
33677 * boot/i386/pc/boot.S: Likewise.
33678 * genfslist.sh: Likewise.
33679 * fs/iso9660.c: Likewise.
33680 * fs/hfs.c: Likewise.
33681 * fs/jfs.c: Likewise.
33682 * fs/minix.c: Likewise.
33683 * fs/ufs.c: Likewise.
33684 * gensymlist.sh.in: Likewise.
33685 * genkernsyms.sh.in: Likewise.
33686 * include/grub/misc.h: Likewise.
33687 * include/grub/types.h: Likewise.
33688 * include/grub/symbol.h: Likewise.
33689 * include/grub/elf.h: Likewise.
33690 * include/grub/kernel.h: Likewise.
33691 * include/grub/disk.h: Likewise.
33692 * include/grub/dl.h: Likewise.
33693 * include/grub/i386/linux.h: Likewise.
33694 * include/grub/i386/pc/biosdisk.h: Likewise.
33695 * include/grub/efi/api.h: Likewise.
33696 * include/grub/efi/pe32.h: Likewise.
33697 * include/grub/util/misc.h: Likewise.
33698 * normal/execute.c: Likewise.
33699 * normal/arg.c: Likewise.
33700 * normal/completion.c: Likewise.
33701 * normal/lexer.c: Likewise.
33702 * normal/parser.y: Likewise.
33703 * normal/misc.c: Likewise.
33704 * commands/i386/pc/vbeinfo.c: Likewise.
33705 * commands/hexdump.c: Likewise.
33706 * commands/terminal.c: Likewise.
33707 * commands/ls.c: Likewise.
33708 * commands/help.c: Likewise.
33709 * partmap/pc.c: Likewise.
33710 * loader/efi/chainloader.c: Likewise.
33711 * loader/multiboot_loader.c: Likewise.
33712 * loader/i386/pc/multiboot2.c: Likewise.
33713 * term/efi/console.c: Likewise.
33714 * term/i386/pc/serial.c: Likewise.
33715 * util/lvm.c: Likewise.
33716 * util/console.c: Likewise.
33717 * util/i386/efi/grub-mkimage.c: Likewise.
33718 * util/raid.c: Likewise.
33720 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
33722 * commands/videotest.c: Removed include to grub/machine/memory.h.
33724 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
33725 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
33726 (video_mod_SOURCES): Removed.
33727 (video_mod_CFLAGS): Likewise.
33728 (video_mod_LDFLAGS): Likewise.
33729 (gfxterm_mod_SOURCES): Likewise.
33730 (gfxterm_mod_CFLAGS): Likewise.
33731 (gfxterm_mod_LDFLAGS): Likewise.
33732 (videotest_mod_SOURCES): Likewise.
33733 (videotest_mod_CFLAGS): Likewise.
33734 (videotest_mod_LDFLAGS): Likewise.
33735 (bitmap_mod_SOURCES): Likewise.
33736 (bitmap_mod_CFLAGS): Likewise.
33737 (bitmap_mod_LDFLAGS): Likewise.
33738 (tga_mod_SOURCES): Likewise.
33739 (tga_mod_CFLAGS): Likewise.
33740 (tga_mod_LDFLAGS): Likewise.
33741 (jpeg_mod_SOURCES): Likewise.
33742 (jpeg_mod_CFLAGS): Likewise.
33743 (jpeg_mod_LDFLAGS): Likewise.
33744 (png_mod_SOURCES): Likewise.
33745 (png_mod_CFLAGS): Likewise.
33746 (png_mod_LDFLAGS): Likewise.
33748 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
33749 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
33750 (video_mod_SOURCES): Added.
33751 (video_mod_CFLAGS): Likewise.
33752 (video_mod_LDFLAGS): Likewise.
33753 (videotest_mod_SOURCES): Likewise.
33754 (videotest_mod_CFLAGS): Likewise.
33755 (videotest_mod_LDFLAGS): Likewise.
33756 (bitmap_mod_SOURCES): Likewise.
33757 (bitmap_mod_CFLAGS): Likewise.
33758 (bitmap_mod_LDFLAGS): Likewise.
33759 (tga_mod_SOURCES): Likewise.
33760 (tga_mod_CFLAGS): Likewise.
33761 (tga_mod_LDFLAGS): Likewise.
33762 (jpeg_mod_SOURCES): Likewise.
33763 (jpeg_mod_CFLAGS): Likewise.
33764 (jpeg_mod_LDFLAGS): Likewise.
33765 (png_mod_SOURCES): Likewise.
33766 (png_mod_CFLAGS): Likewise.
33767 (png_mod_LDFLAGS): Likewise.
33768 (gfxterm_mod_SOURCES): Likewise.
33769 (gfxterm_mod_CFLAGS): Likewise.
33770 (gfxterm_mod_LDFLAGS): Likewise.
33772 * term/gfxterm.c: Removed include to grub/machine/memory.h,
33773 grub/machine/console.h.
33775 2009-01-04 Jerone Young <jerone@gmail.com>
33777 Make on screen instructions clearer
33779 Based on patch created by Jidanni <jidanni@jidanni.org>
33781 * normal/menu.c: print clearer instructions on the screen
33783 2009-01-02 Colin D Bennett <colin@gibibit.com>
33787 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
33788 build system and fixed gfxterm.c to work with different sized fonts.
33790 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
33792 * configure: Re-generated.
33794 * DISTLIST: Removed font/manager.c.
33796 Added font/font_cmd.c.
33798 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
33801 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
33803 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
33805 * kern/term.c: Changed users of grub_utf8_to_ucs4.
33807 * normal/menu.c: Likewise.
33809 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
33810 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
33812 * include/grub/font.h: Replaced with new file.
33814 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
33815 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
33816 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
33817 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
33818 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
33819 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
33820 fg_red, fg_green, fg_blue, fg_alpha.
33821 (grub_video_adapter): Removed blit_glyph.
33822 (grub_video_blit_glyph): Removed.
33824 * font/manager.c: Removed file.
33826 * font/font.c: New file.
33828 * font/font_cmd.c: Likewise.
33830 * video/video.c (grub_video_blit_glyph): Removed.
33832 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
33833 (grub_video_vbe_map_rgba): Likewise.
33834 (grub_video_vbe_unmap_color_int): Likewise.
33835 (grub_video_vbe_blit_glyph): Removed.
33836 (grub_video_vbe_adapter): Removed blit_glyph.
33838 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
33839 (get_pixel): Likewise.
33840 (set_pixel): Likewise.
33842 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
33844 * term/gfxterm.c: Adapted to new font engine.
33846 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
33848 * term/i386/pc/vga.c: Likewise.
33850 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
33852 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33854 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33856 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33858 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33860 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33862 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33864 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33866 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33868 * util/grub.d/00_header.in: Changed to use new loadfont command.
33870 * util/grub-mkconfig_lib.in: Changed font extension.
33872 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
33874 * util/getroot.c (grub_util_get_grub_dev): Add support for
33875 /dev/md/dNNpNN style partitionable mdraid devices.
33877 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
33879 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
33880 at a time limit of the PXE TFTP API correctly.
33881 (grub_pxefs_close): Likewise.
33883 2008-11-29 Robert Millan <rmh@aybabtu.com>
33885 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
33886 grub_ata_device_initialize() calls.
33888 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
33890 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
33892 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
33894 2008-11-28 Robert Millan <rmh@aybabtu.com>
33896 Fix build on powerpc-ieee1275. Based on patch created by
33897 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
33898 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33899 `kern/ieee1275/mmap.c'.
33900 * include/grub/powerpc/ieee1275/memory.h: New file.
33902 Provide grub-install on coreboot.
33903 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
33904 (grub_install_SOURCES): New variable.
33905 * util/i386/pc/grub-install.in: Add a few condition checks to make it
33906 usable on coreboot.
33908 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
33910 * util/grub-fstest.c (grub_term_get_current_input): Change return type
33911 to `grub_term_input_t'.
33912 (grub_term_get_current_output): Change return type to
33913 `grub_term_output_t'.
33915 2008-11-22 Robert Millan <rmh@aybabtu.com>
33917 Fix breakage on coreboot due to declaration mismatch.
33918 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
33919 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
33920 grub_vga_text_cls().
33922 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
33923 comments. Avoid copying one more byte than necessary (just in case).
33925 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
33926 to 0x200000 (avoids trouble with some OFW implementations, and matches
33927 with the one in Yaboot).
33928 Reported by Manoel Abranches
33930 2008-11-20 Robert Millan <rmh@aybabtu.com>
33932 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
33933 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
33935 * util/grub-mkconfig_lib.in (grub_warn): New function.
33936 (convert_system_path_to_grub_path): Use grub_warn() when issuing
33937 warnings, to obtain consistent formatting.
33938 * util/grub.d/00_header.in: Likewise.
33939 * util/update-grub_lib.in: Likewise.
33941 * loader/i386/linux.c (allocate_pages): Fix a warning.
33942 Move comment text to `#error' stanza.
33944 Harmonize ieee1275's grub_available_iterate() with the generic
33945 grub_machine_mmap_iterate() interface (fixes a recently-introduced
33946 build problem on i386-ieee1275):
33947 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
33948 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
33949 parameter `type'. Update all users of this function.
33950 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33951 `kern/ieee1275/mmap.c'.
33952 * kern/ieee1275/init.c
33953 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
33955 (grub_machine_mmap_iterate): ... this.
33956 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
33957 return type to `grub_err_t'. Update all implementations of this
33958 function prototype.
33959 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
33962 Add `lsmmap' command (lists firmware-provided memory map):
33963 * commands/lsmmap.c: New file.
33964 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
33965 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
33967 * conf/powerpc-ieee1275.rmk: Likewise.
33968 * conf/i386-coreboot.rmk: Likewise.
33969 * conf/i386-ieee1275.rmk: Likewise.
33971 2008-11-19 Robert Millan <rmh@aybabtu.com>
33973 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
33974 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
33975 constraints to initrd allocation (based on code from
33976 loader/i386/pc/linux.c). Without them, initrd was allocated too high
33977 for Linux to find it.
33979 2008-11-14 Robert Millan <rmh@aybabtu.com>
33981 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
33982 order to cope with duplicate slashes.
33984 2008-11-14 Robert Millan <rmh@aybabtu.com>
33986 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
33987 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
33988 don't want to mess with lower memory, because it is used in the Linux
33991 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
33992 an appropriate place in lower memory, between 0x10000 and 0x90000,
33993 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
33994 is in our heap (probably as a result of it being corrupted during
33995 decompression). Add #error instance with comment to explain why this
33996 loader isn't currently usable on PC/BIOS.
33998 2008-11-14 Robert Millan <rmh@aybabtu.com>
34000 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34001 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34003 2008-11-12 Robert Millan <rmh@aybabtu.com>
34005 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34007 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34008 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34010 * include/grub/i386/pc/memory.h: ... to here.
34012 2008-11-12 Robert Millan <rmh@aybabtu.com>
34014 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34017 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34018 (grub_console_cur_color, grub_console_real_putchar)
34019 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34020 (grub_console_setcolorstate, grub_console_setcolor)
34021 (grub_console_getcolor): Move from here ...
34022 * include/grub/i386/vga_common.h: ... to here (new file).
34024 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34025 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34026 `<grub/i386/io.h>'.
34027 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34028 `<grub/i386/vga_common.h>'.
34030 2008-11-12 Robert Millan <rmh@aybabtu.com>
34032 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34033 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34034 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34036 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34037 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34039 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34040 grub_console_init() with call to grub_vga_text_init().
34041 (grub_machine_fini): Replace call to
34042 grub_console_fini() with call to grub_vga_text_fini() and
34043 grub_at_keyboard_fini().
34045 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34046 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34047 (grub_console_setcolorstate, grub_console_setcolor)
34048 (grub_console_getcolor): New function prototypes.
34050 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34051 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34052 (grub_vga_text_setcursor): Static-ize.
34053 (grub_vga_text_term): New structure.
34054 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34056 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34057 (grub_console_cur_color, grub_console_standard_color)
34058 (grub_console_normal_color, grub_console_highlight_color)
34059 (map_char, grub_console_putchar, grub_console_getcharwidth)
34060 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34061 (grub_console_getcolor): Move from here ...
34062 * term/i386/vga_common.c: ... to here (same function names).
34064 2008-11-12 Robert Millan <rmh@aybabtu.com>
34066 Use newly-added Multiboot support in coreboot.
34068 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34069 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34071 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34072 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34073 (codestart): Store the MBI in `startup_multiboot_info' when we're
34074 being loaded using Multiboot.
34076 * kern/i386/coreboot/init.c (grub_machine_init): Move
34077 grub_at_keyboard_init() call to beginning of function (useful for
34078 debugging). Call grub_machine_mmap_init() before attempting to use
34079 grub_machine_mmap_iterate().
34080 (grub_lower_mem, grub_upper_mem): Move from here ...
34081 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34084 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34085 function prototype.
34087 2008-11-12 Robert Millan <rmh@aybabtu.com>
34089 Fix a regression introduced by the at_keyboard.mod split. Because
34090 some terminals are default on some platforms and non-default on
34091 others, the first terminal being registered determines which is
34092 going to be default.
34094 * kern/term.c (grub_term_register_input): If this is the first
34095 terminal being registered, set it as the current one.
34096 (grub_term_register_output): Likewise.
34098 * term/efi/console.c (grub_console_init): Do not call
34099 grub_term_set_current_output() or grub_term_set_current_input().
34100 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34101 * term/i386/pc/console.c (grub_console_init): Likewise.
34102 (grub_console_fini): Do not call grub_term_set_current_input()
34103 (but leave grub_term_set_current_output() to restore text mode).
34105 2008-11-10 Robert Millan <rmh@aybabtu.com>
34107 * util/grub.d/00_header.in: Add backward compatibility check for
34108 versions of terminal.mod that don't understand `terminal_input' or
34111 2008-11-09 Robert Millan <rmh@aybabtu.com>
34113 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34114 `terminal_input' / `terminal_output', not `terminal'.
34116 2008-11-08 Robert Millan <rmh@aybabtu.com>
34118 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34119 (DISTCLEANFILES): Add `build_env.mk'.
34121 2008-11-08 Robert Millan <rmh@aybabtu.com>
34123 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34124 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34125 members. Update all users.
34126 * util/console.c (grub_ncurses_term): Split in ...
34127 (grub_ncurses_term_input): ... this, and ...
34128 (grub_ncurses_term_output): ... this. Update all users.
34129 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34131 2008-11-08 Robert Millan <rmh@aybabtu.com>
34133 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34134 (PKGDATA): Add $(pkgdata_SRCDIR).
34135 (pkglib_BUILDDIR): New variable.
34136 (pkgdata_SRCDIR): New variable.
34137 (build_env.mk): New target.
34138 (include_DATA): New variable.
34139 (install-local): Install $(include_DATA) files in $(includedir).
34141 2008-11-07 Pavel Roskin <proski@gnu.org>
34143 * gendistlist.sh: Use C locale for sorting to ensure consistent
34144 output on all systems.
34146 * util/grub.d/00_header.in: Remove incorrect space before
34149 2008-11-07 Robert Millan <rmh@aybabtu.com>
34151 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34153 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34154 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34155 (based on find_multi_boot1_header).
34156 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34157 using find_multi_boot2_header(), and abort if neither Multiboot or
34158 Multiboot headers were found.
34160 2008-11-07 Robert Millan <rmh@aybabtu.com>
34162 Modularize at_keyboard.mod:
34164 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34165 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34166 (at_keyboard_mod_LDFLAGS): New variables.
34168 Actual terminal split:
34170 * include/grub/term.h (struct grub_term): Split in ...
34171 (struct grub_term_input): ... this, and ...
34172 (struct grub_term_output): ... this. Update all users.
34173 (grub_term_set_current): Split in ...
34174 (grub_term_set_current_input): ... this, and ...
34175 (grub_term_set_current_output): ... this.
34176 (grub_term_get_current): Split in ...
34177 (grub_term_get_current_input): ... this, and ...
34178 (grub_term_get_current_output): ... this.
34179 (grub_term_register): Split in ...
34180 (grub_term_register_input): ... this, and ...
34181 (grub_term_register_output): ... this.
34182 (grub_term_unregister): Split in ...
34183 (grub_term_unregister_input): ... this, and ...
34184 (grub_term_unregister_output): ... this.
34185 (grub_term_iterate): Split in ...
34186 (grub_term_iterate_input): ... this, and ...
34187 (grub_term_iterate_output): ... this.
34189 * kern/term.c (grub_term_list): Split in ...
34190 (grub_term_list_input): ... this, and ...
34191 (grub_term_list_output): ... this. Update all users.
34192 (grub_cur_term): Split in ...
34193 (grub_cur_term_input): ... this, and ...
34194 (grub_cur_term_output): ... this. Update all users.
34195 (grub_term_set_current): Split in ...
34196 (grub_term_set_current_input): ... this, and ...
34197 (grub_term_set_current_output): ... this.
34198 (grub_term_get_current): Split in ...
34199 (grub_term_get_current_input): ... this, and ...
34200 (grub_term_get_current_output): ... this.
34201 (grub_term_register): Split in ...
34202 (grub_term_register_input): ... this, and ...
34203 (grub_term_register_output): ... this.
34204 (grub_term_unregister): Split in ...
34205 (grub_term_unregister_input): ... this, and ...
34206 (grub_term_unregister_output): ... this.
34207 (grub_term_iterate): Split in ...
34208 (grub_term_iterate_input): ... this, and ...
34209 (grub_term_iterate_output): ... this.
34211 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34212 a check for input and one for output (and only attempt to get keys
34213 from user when input works).
34215 * util/grub-probe.c (grub_term_get_current): Split in ...
34216 (grub_term_get_current_input): ... this, and ...
34217 (grub_term_get_current_output): ... this.
34218 * util/grub-fstest.c: Likewise.
34219 * util/i386/pc/grub-setup.c: Likewise.
34220 * util/grub-editenv.c: Likewise.
34222 Portability adjustments:
34224 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34225 `term/i386/pc/at_keyboard.c'.
34226 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34227 grub_keyboard_controller_init() (now handled by terminal .init).
34228 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34229 grub_at_keyboard_init().
34230 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34231 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34232 at_keyboard.mod via input terminal interface).
34233 * include/grub/i386/coreboot/console.h: Convert into a stub for
34234 `<grub/i386/pc/console.h>'.
34236 Migrate full terminals to new API:
34238 * term/efi/console.c (grub_console_term): Split into ...
34239 (grub_console_term_input): ... this, and ...
34240 (grub_console_term_output): ... this. Update all users.
34241 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34242 (grub_ofconsole_init): Split into ...
34243 (grub_ofconsole_init_input): ... this, and ...
34244 (grub_ofconsole_init_output): ... this.
34245 (grub_ofconsole_term): Split into ...
34246 (grub_ofconsole_term_input): ... this, and ...
34247 (grub_ofconsole_term_output): ... this. Update all users.
34248 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34249 (grub_serial_term_input): ... this, and ...
34250 (grub_serial_term_output): ... this. Update all users.
34251 * term/i386/pc/console.c (grub_console_term): Split into ...
34252 (grub_console_term_input): ... this, and ...
34253 (grub_console_term_output): ... this. Update all users.
34254 (grub_console_term_input): Only enable it on PC/BIOS platform.
34255 (grub_console_init): Remove grub_keyboard_controller_init() call.
34257 Migrate input terminals to new API:
34259 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34260 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34261 i386-specific anyway).
34262 (grub_console_checkkey): Rename to ...
34263 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34265 (grub_keyboard_controller_orig): New variable.
34266 (grub_console_getkey): Rename to ...
34267 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34269 (grub_keyboard_controller_init): Static-ize. Save original
34270 controller value so that it can be restored ...
34271 (grub_keyboard_controller_fini): ... here (new function).
34272 (grub_at_keyboard_term): New structure.
34273 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34276 Migrate output terminals to new API:
34278 * term/i386/pc/vga.c (grub_vga_term): Change type to
34279 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34280 members. Update all users.
34281 * term/gfxterm.c (grub_video_term): Change type to
34282 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34283 members. Update all users.
34284 * include/grub/i386/pc/console.h (grub_console_checkkey)
34285 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34288 Migrate `terminal' command and userland tools to new API:
34290 * commands/terminal.c (grub_cmd_terminal): Split into ...
34291 (grub_cmd_terminal_input): ... this, and ...
34292 (grub_cmd_terminal_output): ... this.
34293 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34294 `terminal_input' and `terminal_output'.
34295 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34296 `terminal_input' / `terminal_output' API.
34297 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34298 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34299 provided ${GRUB_TERMINAL}, convert it).
34301 2008-11-04 Robert Millan <rmh@aybabtu.com>
34303 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34305 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34307 2008-11-03 Bean <bean123ch@gmail.com>
34309 * kern/elf.c (grub_elf32_load): Revert to previous code.
34310 (grub_elf64_load): Likewise.
34312 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34314 2008-11-01 Robert Millan <rmh@aybabtu.com>
34316 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34317 (TARGET_CPPFLAGS): Likewise.
34318 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34320 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34322 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34324 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34326 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34327 addition of objects until the code is not going to be able to fail.
34329 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34331 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34332 (add a missing NULL check, and correct them by moving the pointer
34333 operations after the actual check).
34335 2008-10-29 Robert Millan <rmh@aybabtu.com>
34337 * util/i386/pc/grub-install.in: Handle empty string as output from
34338 make_system_path_relative_to_its_root().
34340 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34342 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34343 circular metadata worst case scenario. If the metadata is circular
34344 then copy the wrap in place.
34345 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34346 project lib/format_text/layout.h
34347 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34349 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34351 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34353 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34355 * util/update-grub_lib.in: Mention filename in warning message.
34357 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34359 * NEWS: Update for rename of update-grub to grub-mkconfig.
34361 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34363 * util/update-grub_lib.in: Copy to ...
34364 * util/grub-mkconfig_lib.in: ... this. Update all users.
34365 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34366 * util/update-grub.in: Rename to ...
34367 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34368 option. Add `--output' option to allow users to specify the generated
34369 configuration file. Default to stdout.
34370 (update_grub_dir): Rename to ...
34371 (grub_mkconfig_dir): ... this.
34372 (grub_cfg): Default to an empty string.
34373 * conf/common.rmk (update-grub): Rename to ...
34374 (grub-mkconfig): ... this.
34375 (update-grub_lib): Copy to ...
34376 (grub-mkconfig_lib): ... this.
34377 (update-grub_SCRIPTS): Copy to ...
34378 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34379 (update-grub_DATA): Rename to ...
34380 (grub-mkconfig_DATA): ... this.
34382 2008-09-28 Robert Millan <rmh@aybabtu.com>
34384 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34385 to `modified'. Add the real `created' field.
34386 (grub_iso9660_uuid): Use `modified' rather than `created' for
34387 constructing the UUID.
34389 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34391 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34392 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34394 2008-09-28 Bean <bean123ch@gmail.com>
34396 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34397 Thanks to Christian Franke for finding this bug.
34399 2008-09-25 Robert Millan <rmh@aybabtu.com>
34401 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34402 instances of grub_util_get_disk_name() (see previous commit).
34404 2008-09-25 Robert Millan <rmh@aybabtu.com>
34406 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34407 `util/i386/get_disk_name.c'.
34408 * conf/i386-efi.rmk: Likewise.
34409 * conf/x86_64-efi.rmk: Likewise.
34410 * conf/i386-coreboot.rmk: Likewise.
34411 * conf/i386-ieee1275.rmk: Likewise.
34412 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34413 `util/ieee1275/get_disk_name.c'.
34414 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34415 * util/ieee1275/get_disk_name.c: Remove file.
34416 * util/i386/get_disk_name.c: Remove file.
34417 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34418 "hd%d" for device.map entries, rather than using
34419 grub_util_get_disk_name().
34421 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34423 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34425 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34427 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34429 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34431 (GRUB_TERM_PPAGE): Changed to 0x4900.
34433 2008-09-24 Robert Millan <rmh@aybabtu.com>
34435 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34436 macros (they were i386-pc specific).
34437 * include/grub/sparc64/ieee1275/console.h: Likewise.
34438 * include/grub/efi/console.h: Likewise.
34440 2008-09-22 Bean <bean123ch@gmail.com>
34442 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34443 resident and in attribute list.
34445 * include/grub/ntfs.h (BMP_LEN): Removed.
34447 2008-09-22 Bean <bean123ch@gmail.com>
34449 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34450 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34452 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34453 error occurs, as grub_disk_open will call grub_disk_close, which will
34454 call p->close (scsi).
34456 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34458 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34459 (AC_PREREQ): Bumped to 2.59.
34460 (AC_TRY_COMPILE): Replace obsolete macro with ...
34461 (AC_COMPILE_IFELSE): ... this.
34462 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34463 (AC_LINK_IFELSE): ... this.
34465 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34467 * autogen.sh: Add a call to `gendistlist.sh'.
34469 2008-09-19 Christian Franke <franke@computer.org>
34471 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34472 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34473 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34474 Export __enable_execute_stack() to modules.
34475 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34478 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34480 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34483 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34485 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34486 #include <grub/util/hostdisk.h>.
34488 2008-09-08 Robert Millan <rmh@aybabtu.com>
34490 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34491 segments when their filesz is zero (grub_file_read() interprets
34492 zero-size as "read until EOF", which results in memory corruption).
34493 Use `lowest_segment' rather than 0 for calculating the current
34494 segment load address.
34496 2008-09-08 Robert Millan <rmh@aybabtu.com>
34498 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34499 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34500 clobbered useful information.
34502 2008-09-08 Robert Millan <rmh@aybabtu.com>
34504 * include/grub/util/biosdisk.h: Move to ...
34505 * include/grub/util/hostdisk.h: ... here. Update all users.
34506 * util/biosdisk.c: Move to ...
34507 * util/hostdisk.c: ... here. Update all users.
34509 2008-09-07 Robert Millan <rmh@aybabtu.com>
34511 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34513 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34514 and length can be stored directly in the `mbi->mmap_addr' and
34515 `mbi->mmap_length' struct fields.
34517 2008-09-07 Robert Millan <rmh@aybabtu.com>
34519 * conf/i386.rmk: New file. Provides declaration for building
34521 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34522 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34524 Include `conf/i386.mk'.
34525 * conf/i386-efi.rmk: Likewise.
34526 * conf/x86_64-efi.rmk: Likewise.
34527 * conf/i386-coreboot.rmk: Likewise.
34528 * conf/i386-ieee1275.rmk: Likewise.
34530 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34532 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34533 Adds optimization support for BGR based modes.
34535 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34536 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34537 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34538 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34539 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34540 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34541 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34542 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34543 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34544 (grub_video_i386_vbeblit_index_index): Likewise.
34545 (grub_video_i386_vbeblit_replace_directN): Added.
34546 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34547 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34548 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34549 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34550 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34551 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34552 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34553 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34554 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34555 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34556 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34557 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34558 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34560 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34561 (grub_video_i386_vbefill_R8G8B8): Likewise.
34562 (grub_video_i386_vbefill_index): Likewise.
34563 (grub_video_i386_vbefill_direct32): Added.
34564 (grub_video_i386_vbefill_direct24): Likewise.
34565 (grub_video_i386_vbefill_direct16): Likewise.
34566 (grub_video_i386_vbefill_direct8): Likewise.
34568 * include/grub/video.h (grub_video_blit_format): Removed
34569 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34570 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34571 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34572 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34573 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34575 * video/video.c (grub_video_get_blit_format): Updated to use new
34576 blit formats. Added handling for 16 bit color modes.
34578 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34580 (common_blitter): Updated to use new blitters.
34582 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34584 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34585 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34586 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34587 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34588 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34589 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34590 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34591 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34592 (grub_video_i386_vbeblit_index_index): Likewise.
34593 (grub_video_i386_vbeblit_replace_directN): Added.
34594 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34595 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34596 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34597 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34598 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34599 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34600 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34601 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34602 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34603 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34604 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34605 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34606 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34608 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34609 (grub_video_i386_vbefill_R8G8B8): Likewise.
34610 (grub_video_i386_vbefill_index): Likewise.
34611 (grub_video_i386_vbefill_direct32): Added.
34612 (grub_video_i386_vbefill_direct24): Likewise.
34613 (grub_video_i386_vbefill_direct16): Likewise.
34614 (grub_video_i386_vbefill_direct8): Likewise.
34616 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34619 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34622 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34625 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34628 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34630 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34633 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34635 * fs/iso9660.c (grub_iso9660_date): New structure.
34636 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34637 (grub_iso9660_uuid): New function.
34639 2008-09-05 Bean <bean123ch@gmail.com>
34641 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34643 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34644 insensitive bit for names in Win32 and Win32 & DOS namespace.
34646 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34648 * include/grub/types.h (LONG_MAX): Likewise.
34650 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34652 * util/getroot.c: Include <config.h>.
34653 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34654 add support for /dev/md/N devices and handle LVM double dash escaping.
34656 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34658 * config.guess: Update to latest version from config git.
34659 * config.sub: Likewise.
34661 2008-09-03 Robert Millan <rmh@aybabtu.com>
34663 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34664 `disk->total_sectors'.
34666 2008-09-01 Colin D Bennett <colin@gibibit.com>
34668 * include/grub/normal.h: Fixed incorrect comment for
34669 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34671 2008-09-01 Colin D Bennett <colin@gibibit.com>
34673 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34674 values with defines.
34676 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34677 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34678 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34679 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34680 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34681 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34682 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34683 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34684 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34685 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34686 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34687 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34688 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34689 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34690 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34691 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34692 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34693 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34694 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34696 2008-08-31 Robert Millan <rmh@aybabtu.com>
34698 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34700 (grub_multiboot): Fix a few warnings.
34702 2008-08-31 Robert Millan <rmh@aybabtu.com>
34704 * loader/i386/pc/multiboot.c: Update comment not to say that
34705 boot_device support is unimplemented.
34707 2008-08-31 Robert Millan <rmh@aybabtu.com>
34709 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
34710 or memory map support are unimplemented.
34712 2008-08-31 Colin D Bennett <colin@gibibit.com>
34714 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
34716 2008-08-31 Colin D Bennett <colin@gibibit.com>
34718 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
34719 total video memory in 'vbeinfo' output; show color format details for
34722 2008-08-30 Pavel Roskin <proski@gnu.org>
34724 * util/genmoddep.c: Remove for real this time.
34725 * DISTLIST: Remove util/genmoddep.c.
34727 2008-08-30 Robert Millan <rmh@aybabtu.com>
34729 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
34730 as required by Multiboot spec (it was already 4-byte aligned, but
34733 2008-08-29 Pavel Roskin <proski@gnu.org>
34735 * kern/powerpc/ieee1275/crt0.S: Rename to ...
34736 * kern/powerpc/ieee1275/startup.S: ... this.
34737 * conf/powerpc-ieee1275.rmk: Adjust for the above.
34738 * DISTLIST: Likewise.
34740 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
34741 grub/cpu/kernel.h. Add start label for consistency with other
34742 platforms. Add grub_prefix immediately after start. Add jump
34743 to the code after grub_prefix.
34744 * include/grub/powerpc/kernel.h: Provide valid values for
34745 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
34747 2008-08-29 Bean <bean123ch@gmail.com>
34749 * configure.ac: Change host_os to cygwin for mingw.
34750 (asprintf): New check for function.
34752 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
34753 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
34755 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
34756 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
34757 sync, sleep and grub_util_get_disk_size for mingw.
34759 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
34760 to get size in mingw.
34761 (open_device): Use flag O_BINARY if it's defined.
34762 (find_root_device): Add dummy code for mingw.
34764 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
34765 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
34766 (get_scsi_disk_name): Return 0 for mingw.
34768 * util/hostfs.c: #include <grub/util/misc.h>.
34769 (grub_hostfs_open): Use "rb" flag to open file, use
34770 grub_util_get_disk_size to get disk size for mingw.
34772 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
34773 (asprintf): New function if HAVE_ASPRINTF is not set.
34774 (sync): New function for mingw.
34776 (grub_util_get_disk_size): Likewise.
34778 2008-08-28 Pavel Roskin <proski@gnu.org>
34780 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34783 2008-08-28 Robert Millan <rmh@aybabtu.com>
34785 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
34787 2008-08-28 Robert Millan <rmh@aybabtu.com>
34789 Change find_grub_drive() syntax so it doesn't prevent it from
34790 detecting NULL names as errors.
34792 * util/biosdisk.c (find_grub_drive): Move free slot search code
34794 (find_free_slot): ... to here.
34795 (read_device_map): Use find_free_slot() to search for free slots.
34797 2008-08-27 Marco Gerards <marco@gnu.org>
34799 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
34800 (scsi_mod_SOURCES): New variable.
34801 (scsi_mod_CFLAGS): Likewise
34802 (scsi_mod_LDFLAGS): Likewise.
34804 * disk/scsi.c: New file.
34806 * include/grub/scsi.h: Likewise.
34808 * include/grub/scsicmd.h: Likewise.
34810 * disk/ata.c: Include <grub/scsi.h>.
34811 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
34813 (grub_ata_iterate): Skip ATAPI devices.
34814 (grub_ata_open): Only handle ATAPI devices.
34815 (struct grub_atapi_read): Removed.
34816 (grub_atapi_readsector): Likewise.
34817 (grub_ata_read): No longer handle ATAPI devices.
34818 (grub_ata_write): Likewise.
34819 (grub_atapi_iterate): New function.
34820 (grub_atapi_read): Likewise.
34821 (grub_atapi_write): Likewise.
34822 (grub_atapi_open): Likewise.
34823 (grub_atapi_close): Likewise.
34824 (grub_atapi_dev): New variable.
34825 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
34826 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
34828 * include/grub/disk.h (enum grub_disk_dev_id): Add
34829 `GRUB_DISK_DEVICE_SCSI_ID'.
34831 2008-08-26 Robert Millan <rmh@aybabtu.com>
34833 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
34834 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
34837 2008-08-23 Bean <bean123ch@gmail.com>
34839 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
34840 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34841 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
34842 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
34844 (raid5rec_mod_SOURCES): New macro.
34845 (raid5rec_mod_CFLAGS): Likewise.
34846 (raid5rec_mod_LDFLAGS): Likewise.
34847 (raid6rec_mod_SOURCES): Likewise.
34848 (raid6rec_mod_CFLAGS): Likewise.
34849 (raid6rec_mod_LDFLAGS): Likewise.
34850 (mdraid_mod_SOURCES): Likewise.
34851 (mdraid_mod_CFLAGS): Likewise.
34852 (mdraid_mod_LDFLAGS): Likewise.
34853 (dm_nv_mod_SOURCES): Likewise.
34854 (dm_nv_mod_CFLAGS): Likewise.
34855 (dm_nv_mod_LDFLAGS): Likewise.
34857 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
34858 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34859 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34861 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
34862 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34864 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34866 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34868 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34872 * disk/raid5_recover.c: New file.
34874 * disk/raid6_recover.c: Likewise.
34876 * disk/mdraid_linux.c: Likewise.
34878 * disk/dmraid_nvidia.c: Likewise.
34880 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
34883 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
34884 calculate the size of raid device.
34885 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
34886 different layout of raid5.
34887 (grub_raid_scan_device): Remove code specific to mdraid.
34888 (grub_raid_list): New variable.
34889 (free_array): New function.
34890 (grub_raid_register): Likewise.
34891 (grub_raid_unregister): Likewise.
34892 (grub_raid_rescan): Likewise.
34893 (GRUB_MOD_INIT): Don't iterate device here.
34894 (GRUB_MOD_FINI): Use free_array to release resource.
34896 * include/grub/raid.h: Remove macro and structure specific to mdraid.
34897 (grub_raid5_recover_func_t): New function variable type.
34898 (grub_raid6_recover_func_t): Likewise.
34899 (grub_raid5_recover_func): New variable.
34900 (grub_raid6_recover_func): Likewise.
34901 (grub_raid_register): New function.
34902 (grub_raid_unregister): Likewise.
34903 (grub_raid_rescan): Likewise.
34904 (grub_raid_block_xor): Likewise.
34906 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
34907 (CMD_CRC): New macro.
34909 (read_file): Handle device as well as file.
34910 (cmd_crc): New function.
34911 (fstest): Handle multiple disks.
34912 (options): Remove part, raw and long, add root and diskcount.
34913 (usage): Add crc, remove -p, -r, -l, add -r and -c.
34914 (main): Find the first non option entry and ignore subsequent options,
34915 add handling for the new options, support multiple disks.
34917 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
34919 2008-08-23 Bean <bean123ch@gmail.com>
34921 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
34923 * genfslist.sh: Ignore kernel.mod.
34925 * genpartmaplist.sh: Likewise.
34927 2008-08-23 Robert Millan <rmh@aybabtu.com>
34929 * util/getroot.c (find_root_device): Skip anything that starts with
34930 a dot, not just directories. This avoids things like /dev/.tmp.md0.
34932 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
34934 * util/update-grub.in (GRUB_GFXMODE): Export variable.
34935 * util/grub.d/00_header.in: Allow the administrator to change default
34936 gfxmode via ${GRUB_GFXMODE}.
34938 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
34940 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
34942 2008-08-21 Robert Millan <rmh@aybabtu.com>
34944 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
34946 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
34947 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
34949 2008-08-20 Carles Pina i Estany <carles@pina.cat>
34951 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
34952 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
34954 2008-08-19 Robert Millan <rmh@aybabtu.com>
34956 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
34957 (struct grub_virtual_screen): Remove `cursor_color'.
34958 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
34960 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
34962 2008-08-18 Robert Millan <rmh@aybabtu.com>
34964 Unify (identical) linux_normal.c files.
34965 * loader/i386/efi/linux_normal.c: Move from here ...
34966 * loader/linux_normal.c: ... to here. Update all users.
34967 * loader/i386/pc/linux_normal.c: Delete. Update all users.
34968 * loader/i386/ieee1275/linux_normal.c: Likewise.
34970 2008-08-18 Robert Millan <rmh@aybabtu.com>
34972 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
34973 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
34974 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
34975 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
34976 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
34978 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
34979 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
34980 (GRUB_LINUX_CL_END_OFFSET): ... to here.
34981 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
34982 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
34983 (GRUB_EFI_CL_END_OFFSET): Rename to ...
34984 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
34985 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
34986 Initialize `params->video_cursor_x' and `params->video_cursor_y'
34987 portably using grub_getxy().
34988 Replace `-EFI' with `-bzImage' in boot message.
34990 2008-08-17 Robert Millan <rmh@aybabtu.com>
34992 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
34994 2008-08-17 Robert Millan <rmh@aybabtu.com>
34996 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
34998 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
34999 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35000 (grub_machine_mmap_iterate): New function declaration.
35001 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35003 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35006 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35007 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35008 Move e820 parsing from here ...
35009 * kern/i386/pc/mmap.c: New file.
35010 (grub_machine_mmap_iterate): ... to here.
35012 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35013 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35014 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35015 (grub_available_iterate): Redeclare to return `void', and redeclare
35016 its hook to use grub_uint64_t as addr and size parameters, and rename
35018 (grub_machine_mmap_iterate): ... this. Update all users.
35020 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35021 to make it more readable. Rename to ...
35022 (grub_machine_mmap_iterate): ... this.
35024 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35025 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35026 (grub_multiboot): Allocate an extra region after the payload, and fill
35027 it with a Multiboot memory map. Adjust a.out loader to calculate size
35028 with the extra space.
35029 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35030 with the extra space.
35032 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35034 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35036 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35038 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35039 mdate-sh to the list `find' searches for.
35040 * DISTLIST: Regenerated.
35042 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35044 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35045 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35046 genmoddep.awk, gensymlist.sh.in.
35047 (DISTDIRS): Add bus, docs, hook, lib.
35048 * DISTLIST: Regenerated.
35049 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35051 2008-08-16 Robert Millan <rmh@aybabtu.com>
35053 * disk/raid.c (grub_raid_init): Handle/report errors set by
35054 grub_device_iterate().
35055 * disk/lvm.c (grub_lvm_init): Likewise.
35057 2008-08-15 Bean <bean123ch@gmail.com>
35059 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35061 (datetime_mod_SOURCES): New macro.
35062 (datetime_mod_CFLAGS): Likewise.
35063 (datetime_mod_LDFLAGS): Likewise.
35064 (date_mod_SOURCES): Likewise.
35065 (date_mod_CFLAGS): Likewise.
35066 (date_mod_LDFLAGS): Likewise.
35067 (datehook_mod_SOURCES): Likewise.
35068 (datehook_mod_CFLAGS): Likewise.
35069 (datehook_mod_LDFLAGS): Likewise.
35071 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35073 (datetime_mod_SOURCES): New macro.
35074 (datetime_mod_CFLAGS): Likewise.
35075 (datetime_mod_LDFLAGS): Likewise.
35076 (date_mod_SOURCES): Likewise.
35077 (date_mod_CFLAGS): Likewise.
35078 (date_mod_LDFLAGS): Likewise.
35079 (datehook_mod_SOURCES): Likewise.
35080 (datehook_mod_CFLAGS): Likewise.
35081 (datehook_mod_LDFLAGS): Likewise.
35083 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35085 (datetime_mod_SOURCES): New macro.
35086 (datetime_mod_CFLAGS): Likewise.
35087 (datetime_mod_LDFLAGS): Likewise.
35088 (date_mod_SOURCES): Likewise.
35089 (date_mod_CFLAGS): Likewise.
35090 (date_mod_LDFLAGS): Likewise.
35091 (datehook_mod_SOURCES): Likewise.
35092 (datehook_mod_CFLAGS): Likewise.
35093 (datehook_mod_LDFLAGS): Likewise.
35095 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35097 (datetime_mod_SOURCES): New macro.
35098 (datetime_mod_CFLAGS): Likewise.
35099 (datetime_mod_LDFLAGS): Likewise.
35100 (date_mod_SOURCES): Likewise.
35101 (date_mod_CFLAGS): Likewise.
35102 (date_mod_LDFLAGS): Likewise.
35103 (datehook_mod_SOURCES): Likewise.
35104 (datehook_mod_CFLAGS): Likewise.
35105 (datehook_mod_LDFLAGS): Likewise.
35107 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35109 (datetime_mod_SOURCES): New macro.
35110 (datetime_mod_CFLAGS): Likewise.
35111 (datetime_mod_LDFLAGS): Likewise.
35112 (date_mod_SOURCES): Likewise.
35113 (date_mod_CFLAGS): Likewise.
35114 (date_mod_LDFLAGS): Likewise.
35115 (datehook_mod_SOURCES): Likewise.
35116 (datehook_mod_CFLAGS): Likewise.
35117 (datehook_mod_LDFLAGS): Likewise.
35119 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35121 * commands/date.c: New file.
35123 * hook/datehook.c: Likewise.
35125 * include/grub/lib/datetime.h: Likewise.
35127 * include/grub/i386/cmos.h: Likewise.
35129 * lib/datetime.c: Likewise.
35131 * lib/i386/datetime.c: Likewise.
35133 * lib/efi/datetime.c: Likewise.
35135 2008-08-14 Robert Millan <rmh@aybabtu.com>
35137 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35138 (grub_mkelfimage_SOURCES): New variable.
35139 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35141 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35142 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35143 * conf/powerpc-ieee1275.rmk: Likewise.
35144 * conf/i386-ieee1275.rmk: Likewise.
35146 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35147 * kern/i386/coreboot/init.c: Likewise.
35149 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35150 with `<grub/cpu/kernel.h>'.
35151 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35153 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35154 * kern/i386/coreboot/startup.S: Likewise.
35156 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35157 (GRUB_MOD_GAP): Remove.
35158 * include/grub/powerpc/kernel.h: New file.
35159 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35160 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35161 * include/grub/i386/kernel.h: New file.
35162 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35163 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35164 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35166 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35168 Use --directory when invoking grub_mkimage.
35170 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35171 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35172 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35173 and GRUB_KERNEL_CPU_PREFIX.
35175 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35177 * include/grub/err.h (grub_err_printf): New function prototype.
35178 * util/misc.c (grub_err_printf): New function.
35179 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35181 * kern/err.c (grub_print_error): Use grub_err_printf.
35183 2008-08-13 Robert Millan <rmh@aybabtu.com>
35185 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35187 2008-08-13 Robert Millan <rmh@aybabtu.com>
35189 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35192 2008-08-12 Robert Millan <rmh@aybabtu.com>
35194 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35195 of the relocation code from here ...
35196 (grub_multiboot): ... to here.
35197 (forward_relocator, backward_relocator): Move from here ...
35198 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35199 (grub_multiboot_backward_relocator): ... to here.
35200 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35201 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35202 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35203 (grub_multiboot_forward_relocator_end)
35204 (grub_multiboot_backward_relocator)
35205 (grub_multiboot_backward_relocator_end): New variables.
35207 2008-08-12 Bean <bean123ch@gmail.com>
35209 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35211 2008-08-11 Robert Millan <rmh@aybabtu.com>
35213 * kern/i386/linuxbios/startup.S: Move from here ...
35214 * kern/i386/coreboot/startup.S: ... to here.
35216 * kern/i386/linuxbios/init.c: Move from here ...
35217 * kern/i386/coreboot/init.c: ... to here.
35219 * kern/i386/linuxbios/table.c: Move from here ...
35220 * kern/i386/coreboot/mmap.c: ... to here.
35222 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35224 2008-08-11 Robert Millan <rmh@aybabtu.com>
35226 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35227 errors. Leave it to the upper layer to handle them.
35229 2008-08-09 Christian Franke <franke@computer.org>
35231 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35232 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35233 Install `grub.d/10_windows' only on Cygwin.
35234 * configure.ac: Add subst of `target_os'.
35235 Check `target_os' also before setting TARGET_OBJ2ELF.
35236 Add `--enable-grub-pe2elf'.
35238 2008-08-08 Robert Millan <rmh@aybabtu.com>
35240 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35241 (grub_last_time): Change type to grub_uint64_t.
35242 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35243 (grub_disk_close): Likewise.
35245 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35246 (run_menu): Migrate code from to using grub_get_time_ms().
35248 * util/misc.c (grub_get_time_ms): New function.
35250 2008-08-08 Marco Gerards <marco@gnu.org>
35252 * disk/ata.c (grub_ata_regget): Change return type to
35254 (grub_ata_regget2): Likewise.
35255 (grub_ata_wait_status): New function.
35256 (grub_ata_wait_busy): Removed function, updated all users to use
35257 `grub_ata_wait_status'.
35258 (grub_ata_wait_drq): Likewise.
35259 (grub_ata_cmd): New function.
35260 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35262 (grub_ata_pio_write): Add error handling.
35263 (grub_atapi_identify): Likewise.
35264 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35266 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35267 handling. Actually use the detected registers. Reorder the
35268 detection logic such that it is easier to read.
35269 (grub_ata_pciinit): Do not assign the same ID to each controller.
35270 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35272 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35274 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35276 2008-08-08 Marco Gerards <marco@gnu.org>
35280 2008-08-07 Bean <bean123ch@gmail.com>
35282 * include/grub/x86_64/pci.h: New file.
35284 2008-08-07 Christian Franke <franke@computer.org>
35286 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35287 (TIMER2_GATE): Likewise.
35288 (grub_pit_wait): Add enable/disable of the timer2 gate
35289 bit of port 0x61. This fixes a possible infinite loop.
35291 2008-08-07 Bean <bean123ch@gmail.com>
35293 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35294 kern/i386/tsc.c and kern/i386/pit.c.
35296 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35299 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35302 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35304 2008-08-07 Bean <bean123ch@gmail.com>
35306 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35308 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35310 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35311 multiple inclusion. Add #include <grub/types.h>.
35313 2008-08-06 Christian Franke <franke@computer.org>
35315 * conf/common.rmk: Build and install `10_windows'.
35316 * util/grub.d/10_windows.in: New script.
35318 2008-08-06 Pavel Roskin <proski@gnu.org>
35320 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35322 2008-08-06 Robert Millan <rmh@aybabtu.com>
35324 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35325 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35327 2008-08-06 Bean <bean123ch@gmail.com>
35329 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35330 (grub_pxefs_fs_int): Remove dummy definition.
35331 (grub_pxefs_open): Use data->block_size to store the current block
35333 (grub_pxefs_read): Use block size stored in data->block_size. As the
35334 value of grub_pxe_blksize can be changed after the file is opened.
35336 2008-08-06 Bean <bean123ch@gmail.com>
35338 * fs/i386/pc/pxe.c (curr_file): new variable.
35339 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35340 require the dummy internal file system anymore.
35341 (grub_pxefs_read): Removed.
35342 (grub_pxefs_close): Likewise.
35343 (grub_pxefs_fs_int): Likewise.
35344 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35345 connection when we switch file.
35346 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35348 2008-08-06 Robert Millan <rmh@aybabtu.com>
35350 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35352 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35353 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35355 * kern/i386/halt.c: New file.
35356 * kern/i386/reboot.c: Likewise.
35357 * include/grub/i386/reboot.h: Likewise.
35358 * include/grub/i386/halt.h: Likewise.
35360 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35361 Include `<grub/cpu/halt.h>'.
35362 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35363 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35365 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35366 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35367 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35368 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35369 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35370 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35372 * include/grub/i386/at_keyboard.h: ... to here.
35374 2008-08-05 Robert Millan <rmh@aybabtu.com>
35376 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35377 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35378 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35379 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35380 `kern/generic/millisleep.c'.
35382 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35383 instead of grub_get_rtc().
35384 (grub_tsc_init): Initialize `tsc_boot_time'.
35386 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35387 (grub_machine_init): Use grub_tsc_init() rather than
35388 installing an RTC-based handler via grub_install_get_time_ms().
35390 * kern/i386/pit.c: New file.
35391 * include/grub/i386/pit.h: Likewise.
35393 2008-08-05 Bean <bean123ch@gmail.com>
35395 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35397 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35398 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35399 (pxe_mod_SOURCES): New macro.
35400 (pxe_mod_CFLAGS): Likewise.
35401 (pxe_mod_LDFLAGS): Likewise.
35402 (pxecmd_mod_SOURCES): Likewise.
35403 (pxecmd_mod_CFLAGS): Likewise.
35404 (pxecmd_mod_LDFLAGS): Likewise.
35406 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35407 (grub_pxe_call): Likewise.
35409 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35411 * commands/i386/pc/pxecmd.c: New file.
35413 * fs/i386/pc/pxe.c: Likewise.
35415 * include/grub/i386/pc/pxe.h: Likewise.
35417 2008-08-05 Bean <bean123ch@gmail.com>
35419 * util/console.c (grub_console_cur_color): New variable.
35420 (grub_console_standard_color): Likewise.
35421 (grub_console_normal_color): Likewise.
35422 (grub_console_highlight_color): Likewise.
35423 (color_map): Likewise.
35424 (use_color): Likewise.
35425 (NUM_COLORS): New macro.
35426 (grub_ncurses_setcolorstate): Handle color properly.
35427 (grub_ncurses_setcolor): Don't change color here, just remember the
35428 settings, color will be set in grub_ncurses_setcolorstate.
35429 (grub_ncurses_getcolor): New function.
35430 (grub_ncurses_init): Initialize color pairs.
35431 (grub_ncurses_term): New member grub_ncurses_getcolor.
35433 2008-08-05 Colin D Bennett <colin@gibibit.com>
35435 High resolution timer support. Implemented for x86 CPUs using TSC.
35436 Extracted generic grub_millisleep() so it's linked in only as needed.
35437 This requires a Pentium compatible CPU; if the RDTSC instruction is
35438 not supported, then it falls back on the generic grub_get_time_ms()
35439 implementation that uses the machine's RTC.
35441 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35442 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35443 `kern/generic/millisleep.c'.
35445 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35446 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35448 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35449 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35451 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35453 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35454 `kern/generic/millisleep.c'.
35456 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35458 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35460 * kern/generic/rtc_get_time_ms.c: New file.
35462 * kern/generic/millisleep.c: New file.
35464 * kern/misc.c: Don't include
35465 <kern/time.h> anymore.
35466 (grub_millisleep_generic): Removed.
35468 * commands/sleep.c (grub_interruptible_millisleep): Uses
35469 grub_get_time_ms() instead of grub_get_rtc().
35471 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35473 (grub_cpu_is_cpuid_supported): New inline function.
35474 (grub_cpu_is_tsc_supported): New inline function.
35475 (grub_tsc_init): New function prototype.
35476 (grub_tsc_get_time_ms): New function prototype.
35478 * kern/i386/tsc.c (grub_get_time_ms): New file.
35480 * include/grub/time.h: Include <grub/types.h.
35481 (grub_millisleep_generic): Removed.
35482 (grub_get_time_ms): New prototype.
35483 (grub_install_get_time_ms): New prototype.
35484 (grub_rtc_get_time_ms): New prototype.
35486 * kern/time.c (grub_get_time_ms): New function.
35487 (grub_install_get_time_ms): New function.
35489 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35490 <grub/time.h> anymore.
35491 (grub_millisleep): Removed.
35492 (grub_machine_init): Call grub_tsc_init.
35494 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35495 get_time_ms() implementation.
35497 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35498 (ieee1275_get_time_ms): New function.
35499 (grub_machine_init): Install get_time_ms() implementation.
35501 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35502 (grub_machine_init): Call grub_tsc_init().
35503 (grub_millisleep): Removed.
35505 * kern/ieee1275/init.c (grub_millisleep): Removed.
35506 (grub_machine_init): Install ieee1275_get_time_ms()
35508 (ieee1275_get_time_ms): New function.
35509 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35512 2008-08-05 Marco Gerards <marco@gnu.org>
35514 * disk/ata.c: Include <grub/pci.h>.
35515 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35516 (grub_ata_initialize): Rewritten.
35517 (grub_ata_device_initialize): New function.
35519 2008-08-04 Pavel Roskin <proski@gnu.org>
35521 * kern/main.c: Include grub/mm.h.
35523 2008-08-04 Robert Millan <rmh@aybabtu.com>
35525 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35526 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35527 corruption problem).
35529 2008-08-04 Robert Millan <rmh@aybabtu.com>
35531 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35532 warnings introduced in my last commit.
35534 2008-08-03 Robert Millan <rmh@aybabtu.com>
35536 Make PCI available on all i386 architectures.
35538 * include/grub/i386/pc/pci.h: Move from here ...
35539 * include/grub/i386/pci.h: ... to here.
35541 * include/grub/i386/pc/pci.h: Remove.
35542 * include/grub/i386/efi/pci.h: Remove.
35543 * include/grub/x86_64/efi/pci.h: Remove.
35545 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35546 `<grub/cpu/pci.h>'.
35548 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35549 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35550 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35552 * conf/i386-ieee1275.rmk: Likewise.
35554 2008-08-03 Robert Millan <rmh@aybabtu.com>
35556 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35557 (grub_console_setcursor): Make it possible to set cursor off.
35559 2008-08-03 Robert Millan <rmh@aybabtu.com>
35561 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35562 of modules instead of assuming which platform provides what.
35563 * util/update-grub.in: Likewise.
35565 2008-08-03 Robert Millan <rmh@aybabtu.com>
35567 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35568 instead of `grub_install_dos_part' to determine whether a drive needs
35569 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35570 because it can be overridden when loading GRUB via Multiboot).
35572 2008-08-02 Robert Millan <rmh@aybabtu.com>
35574 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35576 2008-08-02 Robert Millan <rmh@aybabtu.com>
35578 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35579 of informational grub_dprintf() calls.
35581 2008-08-02 Robert Millan <rmh@aybabtu.com>
35583 * disk/memdisk.c (memdisk_size): Don't initialize.
35584 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35586 * include/grub/i386/pc/kernel.h
35587 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35588 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35589 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35590 (grub_arch_memdisk_size): Remove.
35592 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35593 field (was only used to transfer a constant). Add `type' field to
35594 support multiple module types.
35595 (grub_module_iterate): New function.
35597 * kern/device.c (grub_device_open): Do not hide error messages
35598 when grub_disk_open() fails. Use grub_print_error() instead.
35600 * kern/i386/pc/init.c (grub_arch_modules_addr)
35601 (grub_arch_memdisk_size): Remove functions.
35602 (grub_arch_modules_addr): Return the module address in high memory
35603 (now that it isn't copied anymore).
35605 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35606 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35607 decompression routine (grub_total_module_size already includes that
35608 now). Don't copy modules back to low memory.
35610 * kern/main.c: Include `<grub/mm.h>'.
35611 (grub_load_modules): Split out (and use) ...
35612 (grub_module_iterate): ... this function, which iterates through
35613 module objects and runs a hook.
35614 Comment out grub_mm_init_region() call, as it would cause non-ELF
35615 modules to be overwritten.
35617 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35618 the memdisk image in its own region, make it part of the module list.
35619 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35620 (main): Parse --memdisk|-m option, and pass user-provided path as
35621 parameter to generate_image().
35622 (add_segments): Pass `memdisk_path' down to load_modules().
35623 (load_modules): Embed memdisk image in module section when requested.
35624 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35625 `header.type' instead of `header.offset'.
35627 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35628 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35629 (memdisk_mod_LDFLAGS): New variables.
35630 * conf/i386-coreboot.rmk: Likewise.
35631 * conf/i386-ieee1275.rmk: Likewise.
35633 2008-08-02 Robert Millan <rmh@aybabtu.com>
35635 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35636 (backward_relocator): New variables. Used to allocate and relocate
35637 the payload, respectively.
35638 (grub_multiboot_load_elf32): Load into heap instead of requested
35639 address, install the appropriate relocator code in each bound of
35640 the payload, and set the entry point such that
35641 grub_multiboot_real_boot() will jump to one of them.
35643 * kern/i386/loader.S (grub_multiboot_payload_size)
35644 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35645 (grub_multiboot_payload_entry_offset): New variables.
35646 (grub_multiboot_real_boot): Set cpu context to what the relocator
35647 expects, and jump to the relocator instead of the payload.
35649 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35650 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35651 (grub_multiboot_payload_entry_offset): Export.
35653 2008-08-01 Bean <bean123ch@gmail.com>
35655 * normal/menu_entry.c (editor_getline): Don't return the original
35656 string as result, as it will be released by lexer once it has done
35659 2008-08-01 Robert Millan <rmh@aybabtu.com>
35661 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35662 within menuentries, not before them.
35663 util/grub.d/10_hurd.in: Likewise.
35665 2008-08-01 Bean <bean123ch@gmail.com>
35667 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35668 (bufio_mod_SOURCES): New macro.
35669 (bufio_mod_CFLAGS): Likewise.
35670 (bufio_mod_LDFLAGS): Likewise.
35672 * include/grub/bufio.h: New file.
35674 * io/bufio.c: Likewise.
35676 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35677 (grub_video_reader_png): Use grub_buffile_open to open file.
35679 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35680 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35682 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35683 (grub_video_reader_tga): Use grub_buffile_open to open file.
35685 * font/manager.c: Include <grub/bufio.h>.
35686 (add_font): Use grub_buffile_open to open file.
35688 2008-07-31 Robert Millan <rmh@aybabtu.com>
35690 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35691 ELF segments, use a macro for arbitrarily accessing any of them instead
35692 of preparing a pointer that allows access to one at a time.
35693 (grub_multiboot_load_elf64): Likewise.
35695 2008-07-31 Bean <bean123ch@gmail.com>
35697 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35698 GRUB_KERNEL_MACHINE_DATA_END.
35700 2008-07-30 Robert Millan <rmh@aybabtu.com>
35702 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35703 Increase from 0x50 to 0x60.
35704 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35705 use UUIDs to identify the root drive for them. If that's not
35707 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35708 check, for cross-disk installs.
35710 2008-07-30 Robert Millan <rmh@aybabtu.com>
35712 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
35713 is non-empty, use it to set the `prefix' environment variable instead
35714 of the usual approach.
35715 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
35716 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
35717 environment variable instead of dummy make_install_device().
35719 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
35720 (start): Insert a data section, with `grub_prefix' variable.
35721 * kern/i386/linuxbios/startup.S: Likewise.
35723 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
35724 New variable reference.
35725 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
35726 New macro. Defines offset of `grub_prefix' within startup.S (relative
35728 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
35729 section within startup.S (relative to `start').
35730 * include/grub/i386/coreboot/kernel.h: Likewise.
35732 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
35733 Overwrite grub_prefix with its contents, at the beginning of the
35735 (main): Understand -p|--prefix.
35737 2008-07-30 Robert Millan <rmh@aybabtu.com>
35739 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
35741 2008-07-30 Robert Millan <rmh@aybabtu.com>
35743 * term/i386/pc/vga_text.c (grub_console_cls): Use
35744 grub_console_gotoxy() to go back to beginning of the screen.
35745 Found by Patrick Georgi <patrick.georgi@coresystems.de>
35747 2008-07-29 Christian Franke <franke@computer.org>
35749 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
35750 Add conversion of emulated mount points on Cygwin.
35752 2008-07-29 Christian Franke <franke@computer.org>
35754 * util/update-grub.in: Add a check for admin
35756 Remove old `grub.cfg.new' before creation.
35757 Add `-f' to `mv' to handle the different filesystem
35758 semantics of Windows.
35760 2008-07-29 Bean <bean123ch@gmail.com>
35762 * normal/main.c (get_line): Fix buffer overflow bug.
35764 2008-07-28 Robert Millan <rmh@aybabtu.com>
35766 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
35767 (struct grub_apple_header): New struct. Describes the layout of
35768 the partmap header.
35769 (apple_partition_map_iterate): Check the header magic as well as the
35770 partition magic (which was already being checked).
35772 2008-07-28 Pavel Roskin <proski@gnu.org>
35774 * genmk.rb: Add a warning to the beginning of the output that
35775 it's a generated file and should not be edited.
35777 2008-07-28 Robert Millan <rmh@aybabtu.com>
35779 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35780 with the same number are found, just use issue a warning with
35781 grub_dprintf(), as this error has been reported to be non-fatal.
35783 2008-07-27 Robert Millan <rmh@aybabtu.com>
35785 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
35788 2008-07-27 Bean <bean123ch@gmail.com>
35790 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
35791 (grub_fat_find_dir): Ignore case when comparing filename.
35793 2008-07-27 Bean <bean123ch@gmail.com>
35795 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
35796 smallino, as it's more descriptive, and i8count can be confused with
35797 the other field count.
35798 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
35801 2008-07-27 Bean <bean123ch@gmail.com>
35803 * commands/crc.c: New file.
35805 * lib/crc.c: Likewise.
35807 * include/grub/lib/crc.h: Likewise.
35809 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
35811 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
35812 (hexdump): Move this function to ...
35814 * lib/hexdump.c: ... here.
35816 * include/grub/hexdump.h: Renamed to ...
35818 * include/grub/lib/hexdump.h: ... this.
35820 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
35822 * util/grub-editenv.c: Likewise.
35824 * include/envblk.h: Renamed to ...
35826 * include/lib/envblk.h: ... this.
35828 * util/envblk.c: Renamed to ...
35830 * lib/envblk.c: ... this.
35832 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
35834 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
35835 (pkglib_MODULES): Add crc.mod.
35836 (hexdump_mod_SOURCES): Add lib/hexdump.c.
35837 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
35838 (crc_mod_SOURCES): New macro.
35839 (crc_mod_CFLAGS): Likewise.
35840 (crc_mod_LDFLAGS): Likewise.
35842 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
35844 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35846 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35848 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35850 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35852 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
35854 * commands/help.c: Include <grub/term.h>.
35855 (TERM_WIDTH): Removed. Updated all users.
35857 2008-07-27 Pavel Roskin <proski@gnu.org>
35859 * util/getroot.c (find_root_device): Rephrase a comment to avoid
35860 spurious warnings about a comment within a comment.
35862 2008-07-25 Robert Millan <rmh@aybabtu.com>
35864 * util/getroot.c (find_root_device): Skip devices that match
35865 /dev/dm-[0-9]. This lets the real device be found for any type of
35866 abstraction (LVM, EVMS, RAID..).
35867 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
35868 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
35869 device is found first, find_root_device() will now skip it.
35871 2008-07-24 Pavel Roskin <proski@gnu.org>
35873 * include/grub/types.h: Use __builtin_bswap32() and
35874 __builtin_bswap64() with gcc 4.3 and newer.
35876 2008-07-24 Christian Franke <franke@computer.org>
35878 * util/i386/pc/grub-install.in: If `--debug' is specified,
35879 pass `--verbose' to grub-setup.
35880 Abort script if make_system_path_relative_to_its_root() fails.
35882 2008-07-24 Bean <bean123ch@gmail.com>
35884 * configure.ac: Fixed a bug caused by the previous cygwin patch,
35885 variable `target_platform' should be `platform'.
35887 2008-07-24 Bean <bean123ch@gmail.com>
35889 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
35890 (grub_png_init_fixed_block): New function.
35891 (grub_png_decode_image_data): Handle fixed huffman code compression.
35893 2008-07-24 Bean <bean123ch@gmail.com>
35895 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
35896 (grub_pe2elf_SOURCES): New macro.
35897 (CLEANFILES): Add grub-pe2elf.
35899 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
35900 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
35901 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
35902 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
35903 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
35904 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
35905 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
35906 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
35907 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
35908 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
35909 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
35910 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
35911 (GRUB_PE32_DT_FUNCTION): Likewise.
35912 (GRUB_PE32_REL_I386_DIR32): Likewise.
35913 (GRUB_PE32_REL_I386_REL32): Likewise.
35914 (grub_pe32_symbol): New structure.
35915 (grub_pe32_reloc): Likewise.
35917 * util/grub-pe2elf.c: New file.
35919 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
35920 start symbol in non pc platform.
35922 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
35924 The following patches are from Christian Franke.
35926 * include/grub/dl.h: Remove .previous, gas supports this only
35929 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
35930 Remove .type, gas supports this only for ELF format.
35932 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
35933 nullbytes in symbol table. This fixes an infinite loop if table is
35936 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
35937 TARGET_IMG_LDFLAGS and EXEEXT.
35939 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
35940 TARGET_IMG_LDFLAGS_AC.
35941 (grub_CHECK_STACK_ARG_PROBE): New function.
35943 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
35945 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
35947 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
35948 to set TARGET_IMG_LD* accordingly.
35949 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
35950 Add call to grub_CHECK_STACK_ARG_PROBE.
35951 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
35953 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
35955 * genmk.rb: Add EXEEXT to CLEANFILES.
35957 2008-07-23 Robert Millan <rmh@aybabtu.com>
35959 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
35960 define the codes for arrows and lines used for the menu).
35961 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
35964 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
35965 fonts, because the latter are too slow.
35967 2008-07-21 Bean <bean123ch@gmail.com>
35969 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
35970 a20. Run keyboard test last, as it will cause macbook to halt.
35972 2008-07-18 Pavel Roskin <proski@gnu.org>
35974 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
35975 load foreign architecture modules correctly anyway. Keep
35976 support for loading host architecture modules, whether we
35977 compile them or not.
35979 2008-07-17 Pavel Roskin <proski@gnu.org>
35981 * configure.ac: Use -m32 or -m64 regardless of whether we had to
35982 change target_cpu. The compiler default can mismatch target_cpu
35985 * disk/efi/efidisk.c: Fix format warnings on x86_64.
35986 * kern/efi/efi.c: Likewise.
35988 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
35989 target compiler is functional.
35990 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
35993 * configure.ac: Default to efi platform for x86_64-apple. Allow
35994 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
35995 adjustments from the rest, only do them if target is not
35996 explicitly given. Merge other adjustments with the final sanity
35997 check. Remove an extraneous check for supported CPU. Be
35998 specific which CPU and which platform is not supported.
36000 * configure.ac: Default to pc platform for x86_64.
36002 2008-07-17 Robert Millan <rmh@aybabtu.com>
36004 Partial LinuxBIOS -> Coreboot rename.
36006 * conf/i386-linuxbios.rmk: Renamed to ...
36007 * conf/i386-coreboot.rmk: ... this.
36008 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36009 * configure.ac: Accept "coreboot" as input platform (but maintain
36010 compatibility with "linuxbios").
36011 * include/grub/i386/linuxbios: Renamed to ...
36012 * include/grub/i386/coreboot: ... this.
36014 2008-07-17 Bean <bean123ch@gmail.com>
36016 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36017 (appleldr_mod_SOURCE): New variable.
36018 (appleldr_mod_CFLAGS): Likewise.
36019 (appleldr_mod_LDFLAGS): Likewise.
36020 (pci_mod_SOURCES): Likewise.
36021 (pci_mod_CFLAGS): Likewise.
36022 (pci_mod_LDFLAGS): Likewise.
36023 (lspci_mod_SOURCES): Likewise.
36024 (lspci_mod_CFLAGS): Likewise.
36025 (lspci_mod_LDFLAGS): Likewise.
36027 * conf/x86_64-efi.rmk: New file.
36029 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36031 (grub_efidisk_write): Likewise.
36033 * include/efi/api.h (efi_call_0): New macro.
36034 (efi_call_1): Likewise.
36035 (efi_call_2): Likewise.
36036 (efi_call_3): Likewise.
36037 (efi_call_4): Likewise.
36038 (efi_call_5): Likewise.
36039 (efi_call_6): Likewise.
36041 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36042 grub_rescue_cmd_chainloader.
36044 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36045 (grub_pe32_optional_header): Change some fields based on i386 or
36047 (GRUB_PE32_PE32_MAGIC): Likewise.
36049 * include/grub/efi/uga_draw.h: New file.
36051 * include/grub/elf.h (STN_ABS): New constant.
36052 (R_X86_64_NONE): Relocation constant for x86_64.
36053 (R_X86_64_64): Likewise.
36054 (R_X86_64_PC32): Likewise.
36055 (R_X86_64_GOT32): Likewise.
36056 (R_X86_64_PLT32): Likewise.
36057 (R_X86_64_COPY): Likewise.
36058 (R_X86_64_GLOB_DAT): Likewise.
36059 (R_X86_64_JUMP_SLOT): Likewise.
36060 (R_X86_64_RELATIVE): Likewise.
36061 (R_X86_64_GOTPCREL): Likewise.
36062 (R_X86_64_32): Likewise.
36063 (R_X86_64_32S): Likewise.
36064 (R_X86_64_16): Likewise.
36065 (R_X86_64_PC16): Likewise.
36066 (R_X86_64_8): Likewise.
36067 (R_X86_64_PC8): Likewise.
36069 * include/grub/i386/efi/pci.h: New file.
36071 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36072 Change it value based on platform.
36073 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36074 (GRUB_E820_RAM): Likewise.
36075 (GRUB_E820_RESERVED): Likewise.
36076 (GRUB_E820_ACPI): Likewise.
36077 (GRUB_E820_NVS): Likewise.
36078 (GRUB_E820_EXEC_CODE): Likewise.
36079 (GRUB_E820_MAX_ENTRY): Likewise.
36080 (grub_e820_mmap): New structure.
36081 (linux_kernel_header): Change the efi field according to different
36082 kernel version, also field from linux_kernel_header.
36084 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36086 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36087 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36088 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36089 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36090 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36091 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36092 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36093 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36094 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36095 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36097 * include/grub/x86_64/efi/kernel.h: New file.
36099 * include/grub/x86_64/efi/loader.h: Likewise.
36101 * include/grub/x86_64/efi/machine.h: Likewise.
36103 * include/grub/x86_64/efi/pci.h: Likewise.
36105 * include/grub/x86_64/efi/time.h: Likewise.
36107 * include/grub/x86_64/linux.h: Likewise.
36109 * include/grub/x86_64/setjmp.h: Likewise.
36111 * include/grub/x86_64/time.h: Likewise.
36113 * include/grub/x86_64/types.h: Likewise.
36115 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36116 GRUB_TARGET_SIZEOF_VOID_P.
36118 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36119 (grub_efi_locate_handle): Likewise.
36120 (grub_efi_open_protocol): Likewise.
36121 (grub_efi_set_text_mode): Likewise.
36122 (grub_efi_stall): Likewise.
36123 (grub_exit): Likewise.
36124 (grub_reboot): Likewise.
36125 (grub_halt): Likewise.
36126 (grub_efi_exit_boot_services): Likewise.
36127 (grub_get_rtc): Likewise.
36129 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36130 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36131 (grub_efi_allocate_pages): Wrap efi calls.
36132 (grub_efi_free_pages): Wrap efi calls.
36133 (grub_efi_get_memory_map): Wrap efi calls.
36135 * kern/x86_64/dl.c: New file.
36137 * kern/x86_64/efi/callwrap.S: Likewise.
36139 * kern/x86_64/efi/startup.S: Likewise.
36141 * loader/efi/appleloader.c: Likewise.
36143 * loader/efi/chainloader.c (cmdline): New variable.
36144 (grub_chainloader_unload): Wrap efi calls.
36145 (grub_chainloader_boot): Likewise.
36146 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36149 * loader/efi/chainloader_normal.c (chainloader_command):
36150 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36153 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36155 (grub_e820_add_region): New function.
36156 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36158 (grub_find_video_card): New function.
36159 (grub_linux_setup_video): New function.
36160 (grub_rescue_cmd_linux): Probe for video information.
36162 * normal/x86_64/setjmp.S: New file.
36164 * term/efi/console.c (map_char): New function.
36165 (grub_console_putchar): Map unicode char.
36166 (grub_console_checkkey): Wrap efi calls.
36167 (grub_console_getkey): Likewise.
36168 (grub_console_getwh): Likewise.
36169 (grub_console_gotoxy): Likewise.
36170 (grub_console_cls): Likewise.
36171 (grub_console_setcolorstate): Likewise.
36172 (grub_console_setcursor): Likewise.
36174 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36176 2008-07-16 Pavel Roskin <proski@gnu.org>
36178 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36181 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36182 pointer, not an integer. This fixes a warning and prevents
36183 precision loss on 64-bit systems.
36184 (relocate_addresses): Remove unneeded cast.
36186 2008-07-15 Pavel Roskin <proski@gnu.org>
36188 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36190 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36192 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36193 Fix comparison between signed and unsigned.
36195 * include/grub/i386/ieee1275/console.h: Declare
36196 grub_console_init() and grub_console_fini().
36198 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36199 It's empty and unused.
36201 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36202 beginning to avoid warnings with some compilers.
36204 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36205 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36207 2008-07-14 Pavel Roskin <proski@gnu.org>
36209 * kern/env.c (grub_register_variable_hook): Don't copy empty
36210 string, it leaks memory. Pass "" to grub_env_set(), it should
36211 handle constant strings.
36213 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36214 * commands/cmp.c (grub_cmd_cmp): Likewise.
36215 * kern/dl.c (grub_dl_flush_cache): Likewise.
36216 (grub_dl_load_core): Likewise.
36217 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36218 (grub_elf64_load_phdrs): Likewise.
36220 2008-07-13 Pavel Roskin <proski@gnu.org>
36222 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36223 between signed and unsigned.
36224 (LzmaEnc_Finish): Fix warning about an unused parameter.
36226 2008-07-13 Bean <bean123ch@gmail.com>
36228 * Makefile.in (enable_lzo): New rule.
36230 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36232 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36234 * boot/i386/pc/lnxboot.S: #include <config.h>.
36236 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36237 its value according to the compression algorithm used, lzo or lzma.
36239 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36240 compression algorithm according to configure macro.
36242 * kern/i386/pc/startup.S (codestart): Likewise.
36244 * kern/i386/pc/lzma_decode.S: New file.
36246 * include/grub/lib/LzFind.h: Likewise.
36248 * include/grub/lib/LzHash.h: Likewise.
36250 * include/grub/lib/LzmaDec.h: Likewise.
36252 * include/grub/lib/LzmaEnc.h: Likewise.
36254 * include/grub/lib/LzmaTypes.h: Likewise.
36256 * lib/LzFind.c: Likewise.
36258 * lib/LzmaDec.c: Likewise.
36260 * lib/LzmaEnc.c: Likewise.
36262 2008-07-13 Bean <bean123ch@gmail.com>
36264 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36265 (grub_ext4_extent_header): New structure.
36266 (grub_ext4_extent): Likewise.
36267 (grub_ext4_extent_idx): Likewise.
36268 (grub_ext4_find_leaf): New function.
36269 (grub_ext2_read_block): Handle extents.
36271 2008-07-12 Robert Millan <rmh@aybabtu.com>
36273 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36275 2008-07-11 Robert Millan <rmh@aybabtu.com>
36277 * util/grub.d/40_custom.in: New file. Example on how to add custom
36278 entries to /etc/grub.d.
36279 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36280 40_custom (implicitly, by merging all the grub.d rules).
36282 2008-07-11 Pavel Roskin <proski@gnu.org>
36284 * commands/read.c (grub_getline): Fix invalid memory access.
36285 Don't add newline to the variable value.
36287 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36288 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36289 (serial_hw_get_port): Check validity of the port number.
36290 (grub_cmd_serial): Check return value of serial_hw_get_port().
36292 2008-07-07 Pavel Roskin <proski@gnu.org>
36294 * boot/i386/pc/diskboot.S (notification_string): Replace
36295 "Loading kernel" with just "loading". This is shorter, less
36296 confusing and saves a few bytes for possible future changes.
36298 2008-07-05 Pavel Roskin <proski@gnu.org>
36300 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36301 size for ATAPI devices, they are undefined. Output sector
36302 number in decimal form.
36304 * disk/ata.c: Use named constants for status bits.
36306 2008-07-04 Pavel Roskin <proski@gnu.org>
36308 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36309 grub_addr_t before casting it to the void pointer to fix a
36310 warning. Non-addressable regions are discarded earlier.
36311 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36312 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36313 (check_signature): Don't shadow table_header.
36314 (grub_linuxbios_table_iterate): Cast numeric constants to
36315 grub_linuxbios_table_header_t.
36316 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36319 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36322 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36323 pointer, which can cause warnings. Support 64-bit addresses.
36325 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36326 of sizeof(long). This fixes PowerPC image generation on x86_64.
36328 2008-07-04 Robert Millan <rmh@aybabtu.com>
36330 This fixes a performance issue when pc & gpt partmap iterators
36331 didn't abort iteration even after our hook found what it was
36332 looking for (often causing expensive probes of non-existent drives).
36334 Some callers relied on previous buggy behaviour, since they would
36335 raise an error when their own hooks caused early abortion of its
36338 * kern/device.c (grub_device_open): Improve error message.
36339 * disk/lvm.c (grub_lvm_open): Likewise.
36340 * disk/raid.c (grub_raid_open): Likewise.
36342 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36343 when hook requests it, independently of grub_errno.
36344 (pc_partition_map_probe): Do not fail when find_func() caused
36345 early abortion of pc_partition_map_iterate().
36347 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36348 when hook requests it, independently of grub_errno.
36349 (gpt_partition_map_probe): Do not fail when find_func() caused
36350 early abortion of gpt_partition_map_iterate().
36352 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36353 when hook requests it, independently of grub_errno. Do not fail when
36354 part_map_iterate_hook() caused early abortion of p->iterate().
36356 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36357 when grub_partition_iterate() returned with non-zero.
36359 2008-07-03 Pavel Roskin <proski@gnu.org>
36361 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36362 like we do in grub_ata_pio_read().
36363 (grub_ata_readwrite): Always write individual sectors. Fix the
36364 sector count for the remainder.
36365 (grub_ata_write): Enable writing to ATA devices. Correctly
36366 report error for ATAPI devices.
36368 2008-07-02 Pavel Roskin <proski@gnu.org>
36370 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36373 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36374 for every read sector, we already increment it for the whole
36375 batch. This fixes reading more than 256 sectors at once.
36377 * util/grub-editenv.c (cmd_info): Cast argument to long
36378 explicitly. ptrdiff_t reduces to int on i386.
36380 * util/grub-editenv.c (main): Be specific which parameter is
36383 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36384 (memdisk): Make memdisk_orig_addr a pointer.
36386 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36387 for file offsets, use grub_off_t instead. Fix printf format
36390 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36391 there. Real unexpected warnings should not drown in the noise
36392 about known problems.
36394 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36395 grub_disk_addr_t for memory addresses.
36397 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36398 explicitly to fix a warning.
36400 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36402 * Makefile.in (MODULE_LDFLAGS): New variable.
36403 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36404 the linker accepts --build-id=none.
36405 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36407 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36409 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36410 those in Linux XFS code. Provide a way to access 64-bit parent
36412 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36413 the end of struct grub_xfs_dir_header.
36415 2008-07-02 Bean <bean123ch@gmail.com>
36417 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36418 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36419 and GRUB_IEEE1275_FLAG_NO_ANSI.
36421 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36422 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36423 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36425 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36426 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36428 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36429 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36431 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36432 esc sequence on non ANSI terminal.
36433 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36435 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36438 2008-07-02 Bean <bean123ch@gmail.com>
36440 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36441 (grub_editenv_SOURCES): New variable.
36442 (pkglib_MODULES): Add loadenv.mod.
36443 (loadenv_mod_SOURCES): New variable.
36444 (loadenv_mod_CFLAGS): Likewise.
36445 (loadenv_mod_LDFLAGS): Likewise.
36447 * include/grub/envblk.h: New file.
36449 * util/envblk.c: New file.
36451 * util/grub-editenv.c: New file.
36453 * commands/loadenv.c: New file.
36455 2008-07-01 Pavel Roskin <proski@gnu.org>
36457 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36458 not unsigned char. This fixes warnings and is consistent with
36461 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36463 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36465 * term/tparm.c (analyze): Always set *popcount.
36467 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36468 cast to fix a warning.
36470 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36471 cast to suppress a warning.
36473 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36474 grub_fshelp_read_file() expects.
36476 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36477 write uuid as a 32-bit value in CPU byte order, so declare and
36480 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36481 long if the format specifier expects it.
36482 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36483 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36484 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36485 long to fix a warning.
36486 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36487 grub_dprintf() arguments to fix warnings.
36489 2008-06-30 Pavel Roskin <proski@gnu.org>
36491 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36492 install_bsd_part immediately before core.img is embedded or
36493 modified on disk. This fixes core.img verification if core.img
36494 cannot be embedded.
36496 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36497 core_path to calculate the blocklist.
36498 Patch from Javier Martín <lordhabbit@gmail.com>
36500 2008-06-29 Robert Millan <rmh@aybabtu.com>
36502 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36503 block to disk block.
36504 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36505 Patch from Niels Böhm <bitbucket@arcor.de>
36507 2008-06-29 Robert Millan <rmh@aybabtu.com>
36509 * util/update-grub_lib.in (font_path): Search for fonts in
36510 /boot/grub first, which is more likely to be readable (we aren't
36511 deciding where fonts live, just looking for them).
36513 2008-06-26 Pavel Roskin <proski@gnu.org>
36515 * util/biosdisk.c (read_device_map): Don't leave dead map
36516 entries for devices failing stat() check.
36518 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36519 core_path_dev for the core.img path on the target device.
36521 2008-06-26 Robert Millan <rmh@aybabtu.com>
36523 * disk/fs_uuid.c: New file.
36524 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36525 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36526 (fs_uuid_mod_LDFLAGS): New variables.
36527 * include/grub/disk.h (grub_disk_dev_id): Add
36528 `GRUB_DISK_DEVICE_UUID_ID'.
36529 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36530 implement iterate().
36532 2008-06-26 Robert Millan <rmh@aybabtu.com>
36534 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36535 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36536 Linux image includes no initrd.
36538 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36540 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36541 call to resolve the core image location that effectively appended the
36544 2008-06-21 Robert Millan <rmh@aybabtu.com>
36546 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36549 * util/grub.d/10_hurd.in: ... to here ...
36550 * util/grub.d/10_linux.in: ... and here.
36552 2008-06-19 Robert Millan <rmh@aybabtu.com>
36554 * kern/main.c (grub_main): Export `prefix' variable immediately
36555 after it has been set by grub_machine_set_prefix().
36557 2008-06-19 Robert Millan <rmh@aybabtu.com>
36559 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36560 search result when not saving to variable, not the other way around.
36561 When saving to variable, abort iteration as soon as a match is found.
36563 2008-06-19 Robert Millan <rmh@aybabtu.com>
36565 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36566 check for partition that provides /boot/grub. Its logic is flawed,
36567 as it prevents prepare_grub_to_access_device() from being called
36570 2008-06-19 Robert Millan <rmh@aybabtu.com>
36572 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36573 "insmod" command directly when abstraction modules are needed,
36574 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36575 since it had already been processed).
36577 2008-06-19 Pavel Roskin <proski@gnu.org>
36579 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36580 changed. This is needed in case GRUB_LIBDIR changes.
36581 * conf/i386-ieee1275.rmk: Likewise.
36582 * conf/i386-linuxbios.rmk: Likewise.
36583 * conf/i386-pc.rmk: Likewise.
36584 * conf/powerpc-ieee1275.rmk: Likewise.
36586 2008-06-18 Pavel Roskin <proski@gnu.org>
36588 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36589 kernel_elf_symlist.c to symlist.c for consistency with other
36590 architectures. Update all users.
36591 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36593 2008-06-18 Robert Millan <rmh@aybabtu.com>
36595 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36598 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36599 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36600 a RAID device, run setup() for all members independently on whether
36601 LVM abstraction is being used.
36602 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36603 If grub-mkimage has set `*install_dos_part == -2', don't override this
36605 Perform *install_dos_part adjustments independently on whether
36606 we're embedding or not.
36607 Clarify error message when image is too big for embedding.
36608 Remove duplicate *install_dos_part stanza.
36610 2008-06-17 Robert Millan <rmh@aybabtu.com>
36612 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36613 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36615 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36616 values in grub_ofconsole_normal_color and
36617 grub_ofconsole_highlight_color (they're not directly related to
36618 background and foreground).
36619 (grub_ofconsole_setcolorstate): Extract background and foreground
36620 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36622 2008-06-17 Robert Millan <rmh@aybabtu.com>
36624 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36625 /boot/grub for the check in last commit, not /boot (they could be
36626 different partitions).
36628 2008-06-16 Robert Millan <rmh@aybabtu.com>
36630 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36631 asked to setup access for the same partition that provides /boot,
36632 don't bother using UUIDs since our root already has the value we
36635 2008-06-16 Robert Millan <rmh@aybabtu.com>
36637 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36639 Patch from Sven Mueller <sven@debian.org>.
36641 2008-06-16 Robert Millan <rmh@aybabtu.com>
36643 * util/update-grub.in: Check for $EUID instead of $UID.
36644 Reported by Vincent Zweije.
36646 2008-06-16 Bean <bean123ch@gmail.com>
36648 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36649 (grub_ext2_read_block): Likewise.
36650 (grub_ext2_read_inode): Likewise.
36651 (grub_ext2_mount): Likewise.
36652 (grub_ext2_close): Likewise.
36653 (grub_ext3_get_journal): Removed.
36655 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36656 (grub_reiserfs_read_symlink): Likewise.
36657 (grub_reiserfs_mount): Likewise.
36658 (grub_reiserfs_open): Likewise.
36659 (grub_reiserfs_read): Likewise.
36660 (grub_reiserfs_close): Likewise.
36661 (grub_reiserfs_get_journal): Removed.
36663 * fs/fshelp.c (grub_fshelp_read): Removed.
36664 (grub_fshelp_map_block): Likewise.
36666 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36667 (grub_fshelp_journal): Likewise.
36668 (grub_fshelp_read): Likewise.
36669 (grub_fshelp_map_block): Likewise.
36671 2008-06-16 Pavel Roskin <proski@gnu.org>
36673 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36674 floating point anymore.
36675 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36677 2008-06-15 Pavel Roskin <proski@gnu.org>
36679 * commands/ls.c (grub_ls_list_files): Use integer calculations
36680 for human readable format, avoid floating point use.
36681 * kern/misc.c (grub_ftoa): Remove.
36682 (grub_vsprintf): Remove floating point support.
36684 2008-06-15 Robert Millan <rmh@aybabtu.com>
36686 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36688 Reported by Max Vozeler.
36690 2008-06-15 Robert Millan <rmh@aybabtu.com>
36692 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36693 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36695 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36696 the beginning of the prefix.
36698 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36699 It is assumed that if we have a memdisk, grub-mkimage has set
36700 grub_prefix to include the "(memdisk)" drive in it.
36702 2008-06-15 Robert Millan <rmh@aybabtu.com>
36704 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36705 Initialize keyboard controller after registering the terminal, so that
36706 grub_printf() can be called from grub_keyboard_controller_init().
36708 2008-06-15 Robert Millan <rmh@aybabtu.com>
36710 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
36711 extent-btree which is written as big endian on disk.
36712 Reported by Alain Greppin <al@chilibi.org>.
36714 2008-06-14 Robert Millan <rmh@aybabtu.com>
36716 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
36717 * util/i386/pc/grub-install.in (modules): Likewise.
36719 2008-06-13 Pavel Roskin <proski@gnu.org>
36721 * commands/ls.c (grub_ls_list_files): Fix format warnings.
36723 2008-06-13 Bean <bean123ch@gmail.com>
36725 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
36727 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
36729 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
36730 to indicate sparse block.
36732 2008-06-12 Pavel Roskin <proski@gnu.org>
36734 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
36735 number, grub_fshelp_read() does it for us.
36737 * fs/fshelp.c (grub_fshelp_read): New function. Implement
36738 linear disk read with journal translation.
36739 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
36740 * include/grub/fshelp.h: Declare grub_fshelp_read().
36742 2008-06-09 Pavel Roskin <proski@gnu.org>
36744 * fs/minix.c (grub_minix_mount): Handle error reading
36747 2008-06-08 Robert Millan <rmh@aybabtu.com>
36749 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
36750 don't append the RAID prefix afterwards.
36751 Reported by Clint Adams.
36753 2008-06-08 Robert Millan <rmh@aybabtu.com>
36755 Based on description from Pavel:
36756 * kern/disk.c (grub_disk_check_range): Rename to ...
36757 (grub_disk_adjust_range): ... this. Add a comment explaining the
36758 tasks performed by this function.
36760 2008-06-08 Robert Millan <rmh@aybabtu.com>
36762 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
36763 `num_serial' (for consistency with other variables).
36764 (struct grub_ntfs_data): Add `uuid' member.
36765 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
36766 (grub_ntfs_uuid): New function.
36767 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
36769 2008-06-07 Pavel Roskin <proski@gnu.org>
36771 * util/biosdisk.c (open_device): Revert last change to the
36772 function, it broke installation. The sector needs to be
36773 different dependent on which device is opened.
36775 2008-06-06 Robert Millan <rmh@aybabtu.com>
36777 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
36778 rest of GRUB, and breakage doesn't happen if its value were modified.
36780 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36781 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
36782 a constant (same value).
36783 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
36784 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
36786 2008-06-06 Robert Millan <rmh@aybabtu.com>
36788 * util/biosdisk.c (open_device): Do not modify sector offset when
36789 accessing a partition. kern/disk.c already handles this for us.
36791 2008-06-06 Robert Millan <rmh@aybabtu.com>
36793 * util/grub-emu.c (grub_machine_init): Move code in this function from
36795 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
36796 segfault in case grub_printf() is called).
36798 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
36799 grub_probe. Update all users not to explicitly add it again.
36800 (grub_device): New variable; contains corresponding device for grubdir.
36801 (fs_module, partmap_module, devabstraction_module): Pass
36802 `--device ${grub_device}' to grub_probe to avoid traversing /dev
36805 2008-06-05 Robert Millan <rmh@aybabtu.com>
36807 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
36808 is found, print it (same layout as with labels).
36810 2008-06-04 Robert Millan <rmh@aybabtu.com>
36812 * util/biosdisk.c (get_drive): Rename to ...
36813 (find_grub_drive): ... this. Update all users.
36815 (get_os_disk): Rename to ...
36816 (convert_system_partition_to_system_disk): ... this. Update all users.
36818 (find_drive): Rename to ...
36819 (find_system_device): ... this. Update all users.
36821 2008-06-04 Robert Millan <rmh@aybabtu.com>
36823 * util/biosdisk.c (get_os_disk): Handle IDA devices.
36824 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36825 (make_device_map): Likewise.
36827 2008-06-01 Robert Millan <rmh@aybabtu.com>
36829 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
36830 before dereferencing it.
36832 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
36833 union with fat12/fat16-specific ones. Add some new fields, including
36834 `num_serial' for both versions.
36835 (struct grub_fat_data): Add `uuid' member.
36836 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
36837 names. Initialize `data->uuid' using `num_serial'.
36838 (grub_fat_uuid): New function.
36839 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
36841 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
36842 (grub_reiserfs_uuid): New function.
36843 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
36846 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
36847 (grub_xfs_uuid): New function.
36848 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
36850 2008-06-01 Robert Millan <rmh@aybabtu.com>
36852 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
36853 code that is backward compatible with pre-uuid search command.
36855 2008-05-31 Robert Millan <rmh@aybabtu.com>
36857 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
36858 floppies after everything else, to ensure floppy drive isn't accessed
36859 unnecessarily (patch from Bean).
36861 2008-05-31 Robert Millan <rmh@aybabtu.com>
36863 * commands/search.c (search_label, search_fs_uuid, search_file): Do
36864 not print device names when we were asked to set a variable.
36866 2008-05-31 Robert Millan <rmh@aybabtu.com>
36868 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
36869 using "cursor-on" and "cursor-off" commands (understood at least by
36870 the Open Firmware flavour on OLPC).
36872 2008-05-31 Michael Gorven <michael@gorven.za.net>
36874 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
36875 on and off sequences.
36877 2008-05-31 Robert Millan <rmh@aybabtu.com>
36879 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
36880 * util/update-grub.in: Likewise.
36882 2008-05-30 Pavel Roskin <proski@gnu.org>
36884 * util/biosdisk.c (linux_find_partition): Simplify logic and
36885 make the code more universal. Keep special processing for
36886 devfs, but use a simple rule for all other devices. If the
36887 device ends with a number, append 'p' and the partition number.
36888 Otherwise, append only the partition number.
36890 2008-05-30 Robert Millan <rmh@aybabtu.com>
36892 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
36893 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
36894 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
36895 the `root' parameter to Linux.
36897 2008-05-30 Robert Millan <rmh@aybabtu.com>
36899 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
36900 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
36901 --fs_uuid with --fs-uuid.
36902 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
36903 all filesystems support them).
36905 2008-05-30 Robert Millan <rmh@aybabtu.com>
36907 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
36908 grub_printf() flags, since we're printing in units of 2 bytes.
36910 2008-05-30 Robert Millan <rmh@aybabtu.com>
36912 * util/grub.d/00_header.in: Remove obsolete comment referencing
36913 convert_system_path_to_grub_path().
36914 * util/update-grub.in: Likewise.
36915 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
36916 (convert_system_path_to_grub_path): Add a warning message explaining
36917 that this function is deprecated. Rely on is_path_readable_by_grub()
36918 for the readability checks.
36919 (font_path): Use is_path_readable_by_grub() for the readability
36920 check rather than convert_system_path_to_grub_path().
36922 2008-05-30 Robert Millan <rmh@aybabtu.com>
36924 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
36925 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
36926 converting it first.
36927 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
36928 grub.cfg for access to font file, and afterwards call it again to set
36931 2008-05-30 Robert Millan <rmh@aybabtu.com>
36933 * commands/search.c (options): Add --fs_uuid option.
36934 (search_fs_uuid): New function.
36935 (grub_cmd_search): Fix --set argument passing.
36936 Use search_fs_uuid() when requested via --fs_uuid.
36937 (grub_search_init): Update help message.
36938 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
36939 and redeclare it as an array of 16-bit words.
36940 (grub_ext2_uuid): New function.
36941 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
36942 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
36943 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
36944 (GRUB_DEVICE_BOOT_UUID): New variables.
36945 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
36946 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
36948 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
36949 just assume `root' variable has the right value.
36950 * util/grub.d/10_linux.in: Likewise.
36951 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
36953 (main): Recognise `-t fs_uuid' argument.
36955 2008-05-30 Robert Millan <rmh@aybabtu.com>
36957 * util/biosdisk.c (map): Redefine structure to hold information
36958 about GRUB drive name.
36959 (get_drive): Reimplement without assuming (and verifying) BIOS-like
36961 (call_hook): Remove.
36962 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
36963 member. Assume drive has partitions.
36964 (grub_util_biosdisk_open): Access device names via `.device' struct
36966 (open_device): Likewise.
36967 (find_drive): Likewise.
36968 (read_device_map): Adjust map[] usage to match the new struct
36969 definition. Don't check for duplicates (still possible, but not cheap
36971 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
36972 (make_device_name): Remove assumption of BIOS-like drive names.
36974 2008-05-30 Pavel Roskin <proski@gnu.org>
36976 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
36977 compiling execute.c doesn't need grub_script.tab.h anymore.
36978 (normal/command.c_DEPENDENCIES): Likewise.
36979 (normal/function.c_DEPENDENCIES): Likewise.
36980 * conf/i386-ieee1275.rmk: Likewise.
36981 * conf/i386-linuxbios.rmk: Likewise.
36982 * conf/i386-pc.rmk: Likewise.
36983 * conf/powerpc-ieee1275.rmk: Likewise.
36984 * conf/sparc64-ieee1275.rmk: Likewise.
36986 2008-05-29 Pavel Roskin <proski@gnu.org>
36988 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
36989 when scanning metadata for volume group name.
36991 * include/grub/script.h: Don't include grub_script.tab.h. It's
36992 a generated file, which may only be included from the files with
36993 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
36994 use union YYSTYPE, as the later allows forward declaration.
36995 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
36997 2008-05-29 Robert Millan <rmh@aybabtu.com>
36999 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37000 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37001 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37002 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37005 2008-05-29 Robert Millan <rmh@aybabtu.com>
37007 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37008 control key combinations.
37010 2008-05-29 Robert Millan <rmh@aybabtu.com>
37012 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37013 * util/ieee1275/grub-install.in: ... to here.
37014 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37015 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37016 (grub_install_SOURCES): Likewise.
37018 2008-05-29 Robert Millan <rmh@aybabtu.com>
37020 * fs/affs.c: Update copyright year.
37021 * fs/ext2.c: Likewise.
37022 * fs/fshelp.c: Likewise.
37023 * fs/hfsplus.c: Likewise.
37024 * fs/ntfs.c: Likewise.
37025 * fs/xfs.c: Likewise.
37026 * include/grub/fshelp.h: Likewise.
37027 * util/grub-mkdevicemap.c: Likewise.
37029 2008-05-28 Robert Millan <rmh@aybabtu.com>
37031 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37032 might need to be fatfs to support some firmware implementations
37035 2008-05-28 Robert Millan <rmh@aybabtu.com>
37037 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37039 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37040 (make_device_map): Likewise.
37042 2008-05-20 Bean <bean123ch@gmail.com>
37044 * fs/fshelp.c (grub_fshelp_map_block): New function.
37045 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37046 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37048 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37049 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37050 (grub_fshelp_journal): New structure.
37051 (grub_fshelp_map_block): New function prototype.
37052 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37053 (grub_fshelp_map_block): Likewise.
37055 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37056 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37057 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37058 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37059 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37060 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37061 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37062 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37063 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37064 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37065 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37066 (grub_ext2_sblock): New members for journal support.
37067 (grub_ext3_journal_header): New structure.
37068 (grub_ext3_journal_revoke_header): Likewise.
37069 (grub_ext3_journal_block_tag): Likewise.
37070 (grub_ext3_journal_sblock): Likewise.
37071 (grub_fshelp_node): New members logfile and journal.
37072 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37073 grub_fshelp_map_block to get real block number.
37074 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37076 (grub_ext2_read_inode): Likewise.
37077 (grub_ext3_get_journal): New function.
37078 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37079 (grub_ext2_close): Release memory used by journal.
37081 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37082 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37083 (grub_reiserfs_transaction_header): Renamed to
37084 grub_reiserfs_description_block, replace field data with real_blocks.
37085 (grub_reiserfs_commit_block): New structure.
37086 (grub_reiserfs_data): New member journal.
37087 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37089 (grub_reiserfs_read_symlink): Likewise.
37090 (grub_reiserfs_iterate_dir): Likewise.
37091 (grub_reiserfs_open): Likewise.
37092 (grub_reiserfs_read): Likewise.
37093 (grub_reiserfs_get_journal): New function.
37094 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37095 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37096 using grub_reiserfs_get_journal.
37097 (grub_reiserfs_close): Release memory used by journal.
37099 * fs/affs.c (grub_affs_read_block): Change block type to
37100 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37102 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37104 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37106 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37108 * fs/udf.c (grub_udf_read_block): Change block type to
37109 grub_disk_addr_t. Use type cast to avoid warning.
37111 * fs/xfs.c (grub_xfs_read_block): Likewise.
37113 2008-05-16 Christian Franke <franke@computer.org>
37115 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37116 to ensure that break with ESC will always work.
37117 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37118 Remove ESC from keyboard queue.
37120 2008-05-16 Christian Franke <franke@computer.org>
37122 * util/biosdisk.c: [__CYGWIN__] Add includes.
37123 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37124 (get_os_disk): Move variable declarations to OS specific
37125 parts to avoid warning.
37126 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37127 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37128 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37130 * util/getroot.c: [__CYGWIN__] Add includes.
37131 (strip_extra_slashes): Fix "/" case.
37132 [__CYGWIN__] (get_win32_path): New function.
37133 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37134 [__CYGWIN__] (find_root_device): Disable.
37135 [__CYGWIN__] (get_bootsec_serial): New function.
37136 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37137 [__linux__] (grub_guess_root_device): Add early returns to simplify
37139 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37140 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37141 check for Linux only.
37143 2008-05-15 Bean <bean123ch@gmail.com>
37145 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37146 keyboard hang problem in apple's intel mac.
37148 2008-05-09 Robert Millan <rmh@aybabtu.com>
37150 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37152 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37153 (make_device_map): Likewise.
37154 Reported by Aurelien Jarno <aurel32@debian.org>
37156 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37158 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37159 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37160 (make_device_map): Output entries for xvd type disks.
37162 2008-05-07 Robert Millan <rmh@aybabtu.com>
37164 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37166 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37167 (make_device_map): Likewise.
37168 Reported by Roland Dreier <rdreier@cisco.com>
37170 2008-05-07 Robert Millan <rmh@aybabtu.com>
37172 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37173 grub_strstr() call. Correct a few mistakes in failure path handling.
37175 2008-05-06 Robert Millan <rmh@aybabtu.com>
37177 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37178 Do not print a trailing slash (therefore, the root directory is an
37180 (convert_system_path_to_grub_path): Do not remove trailing slash
37181 from make_system_path_relative_to_its_root() output.
37183 * util/i386/pc/grub-install.in: Add trailing slash to output from
37184 make_system_path_relative_to_its_root().
37186 2008-05-06 Robert Millan <rmh@aybabtu.com>
37188 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37189 ensures that output lines aren't intermangled with those sent to
37190 stderr (via grub_util_info()).
37191 * util/grub-probe.c (grub_refresh): Likewise.
37192 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37194 2008-05-05 Christian Franke <franke@computer.org>
37196 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37197 Add Cygwin device names.
37198 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37199 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37200 (check_device): Return error instead of success on empty name.
37201 (make_device_map): Move label inside linux specific code to
37202 prevent compiler warning.
37204 2008-04-30 Robert Millan <rmh@aybabtu.com>
37206 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37207 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37209 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37211 2008-04-29 Robert Millan <rmh@aybabtu.com>
37213 * docs/grub.cfg: New file (example GRUB configuration).
37215 2008-04-26 Robert Millan <rmh@aybabtu.com>
37217 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37218 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37219 and `disk/ieee1275/nand.c'.
37221 2008-04-25 Bean <bean123ch@gmail.com>
37223 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37226 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37227 change the buffer size to 4096 for cdrom device.
37229 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37231 (_linux_mod_SOURCES): New variable.
37232 (_linux_mod_CFLAGS): Likewise.
37233 (_linux_mod_LDFLAGS): Likewise.
37234 (linux_mod_SOURCES): Likewise.
37235 (linux_mod_CFLAGS): Likewise.
37236 (linux_mod_LDFLAGS): Likewise.
37237 (nand_mod_SOURCES): Likewise.
37238 (nand_mod_CFLAGS): Likewise.
37239 (nand_mod_LDFLAGS): Likewise.
37241 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37242 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37243 type property. (nand device in olpc don't have this property)
37245 * include/grub/disk.h (grub_disk_dev_id): New macro
37246 GRUB_DISK_DEVICE_NAND_ID.
37248 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37249 function prototype.
37250 (grub_rescue_cmd_initrd): Likewise.
37252 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37253 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37254 ofw_cif_handler and ofw_idt, adjust padding number.
37256 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37257 GRUB_MACHINE_IEEE1275 is defined.
37259 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37260 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37262 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37263 on nested function heap_init.
37264 (grub_upper_mem): New variable for i386-ieee1275.
37265 (grub_get_extended_memory): New function for i386-ieee1275.
37266 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37268 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37269 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37272 * loader/i386/ieee1275/linux.c: New file.
37274 * loader/i386/ieee1275/linux_normal.c: New file.
37276 * disk/ieee1275/nand.c: New file.
37278 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37280 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37282 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37284 2008-04-18 Robert Millan <rmh@aybabtu.com>
37286 Restructures early code path on ieee1275 to unify grub_main() as
37287 the first C function that is executed in every platform.
37289 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37290 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37292 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37293 * kern/ieee1275/cmain.c (cmain): Rename to ...
37294 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37295 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37298 2008-04-18 Robert Millan <rmh@aybabtu.com>
37300 * util/update-grub.in: Fix syntax error when setting
37301 `GRUB_PRELOAD_MODULES'.
37302 Reported by Stephane Chazelas <stephane@artesyncp.com>
37304 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37306 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37307 section into account, newer toolchains generate unique build ids
37308 * configure.ac: remove the test for --build-id=none acceptance,
37309 we want build ids to be preserved
37310 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37311 far from other sections don't cause the raw binary images grow
37314 2008-04-15 Robert Millan <rmh@aybabtu.com>
37316 * disk/lvm.c: Update copyright year.
37317 * kern/misc.c: Likewise.
37319 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37321 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37322 there is no memory left for physical volume name.
37324 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37326 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37327 volume name mapping to support bigger than 9 character names properly.
37329 2008-04-13 Robert Millan <rmh@aybabtu.com>
37331 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37332 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37334 2008-04-13 Christian Franke <franke@computer.org>
37336 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37337 to create a floppy emulation boot CD when non emulation mode
37339 Enable Joliet CD filesystem extension.
37341 2008-04-13 Robert Millan <rmh@aybabtu.com>
37343 * kern/misc.c (grub_strncat): Fix off-by-one error.
37344 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37346 * kern/env.c (grub_env_context_close): Clear current context, not
37348 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37350 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37352 2008-04-13 Robert Millan <rmh@aybabtu.com>
37354 Improve robustness when handling LVM.
37356 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37357 (and leave `*p' unmodified).
37358 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37360 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37361 iterating through it.
37362 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37364 (grub_lvm_scan_device): Check the return value (and fail gracefully
37365 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37366 Don't assume `vg->pvs != NULL' when iterating through it.
37368 2008-04-13 Robert Millan <rmh@aybabtu.com>
37370 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37371 * genmk.rb (partmap): New variable.
37372 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37373 (#{partmap}): New target rule.
37374 * genpartmaplist.sh: New file.
37375 * Makefile.in (pkglib_DATA): Add partmap.lst.
37376 (partmap.lst): New target rule.
37377 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37378 modules (including all partition maps), instead of preloading them.
37380 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37382 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37383 `linux-boot-prober' (if installed) to detect other operating
37384 systems which are installed on the computer and add them to
37386 * conf/common.rmk: Build and install 30_os-prober.
37388 2008-04-12 Robert Millan <rmh@aybabtu.com>
37390 * kern/powerpc/ieee1275/init.c: Move from here ...
37391 * kern/ieee1275/init.c: ... to here. Update all users.
37393 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37394 * kern/ieee1275/cmain.c: ... to here. Update all users.
37396 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37397 * kern/ieee1275/openfw.c: ... to here. Update all users.
37399 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37400 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37402 2008-04-10 Pavel Roskin <proski@gnu.org>
37404 * configure.ac: Always use "_cv_" in cache variables for
37405 compatibility with Autoconf 2.62.
37407 2008-04-07 Robert Millan <rmh@aybabtu.com>
37409 Revert grub/machine/init.h addition by Pavel (since it breaks on
37410 i386-ieee1275 and others):
37411 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37412 * util/powerpc/ieee1275/misc.c: Likewise.
37414 2008-04-07 Robert Millan <rmh@aybabtu.com>
37416 * util/grub-probe.c (probe): Improve error message.
37418 2008-04-07 Robert Millan <rmh@aybabtu.com>
37420 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37421 (this prevents the presence of a bogus entry from ruining the whole
37424 2008-04-06 Pavel Roskin <proski@gnu.org>
37426 * util/biosdisk.c: Include grub/util/biosdisk.h.
37427 * util/grub-fstest.c (execute_command): Make static.
37428 * util/grub-mkdevicemap.c (check_device): Likewise.
37429 * util/i386/pc/misc.c: Include grub/machine/init.h.
37430 * util/powerpc/ieee1275/misc.c: Likewise.
37431 * util/lvm.c: Include grub/util/lvm.h.
37432 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37434 * util/raid.c: Include grub/util/raid.h.
37435 (grub_util_getdiskname): Make static.
37437 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37438 grub_hostfs_fini(), as they are called from grub_init_all() and
37439 grub_fini_all() respectively. This fixes an infinite loop in
37440 grub-fstest due to double registration of hostfs.
37441 Reported by Christian Franke <Christian.Franke@t-online.de>
37443 2008-04-05 Pavel Roskin <proski@gnu.org>
37445 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37446 all 8 functions. Otherwise, probe function 0 only.
37448 2008-04-04 Pavel Roskin <proski@gnu.org>
37450 * commands/lspci.c (grub_lspci_iter): Print the bus number
37453 * commands/lspci.c (grub_pci_classes): Fix typos.
37454 (grub_lspci_iter): Don't print func twice. Print vendor ID
37455 before device ID, as it's normally done.
37457 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37458 Fix signedness warnings.
37459 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37461 * util/ieee1275/get_disk_name.c: Include config.h so that
37462 _GNU_SOURCE is defined and getline() is declared. Mark an
37463 unused argument as such. Fix a signedness warning.
37465 2008-04-02 Pavel Roskin <proski@gnu.org>
37467 * genkernsyms.sh.in: Use more robust assignments for CC and
37468 srcdir. Quote srcdir.
37469 * gensymlist.sh.in: Likewise. Assert at the compile time that
37470 the symbol table is not empty.
37472 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37473 * fs/cpio.c (grub_cpio_read): Likewise.
37475 2008-04-01 Pavel Roskin <proski@gnu.org>
37477 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37478 * disk/host.c (grub_host_open): Likewise.
37479 * disk/loopback.c (grub_loopback_open): Likewise.
37480 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37481 disk->id as in disk/host.c, not a multi-character constant.
37483 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37484 later is obsolete, potentially dangerous and sets a bad example.
37485 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37486 * util/misc.c (grub_util_get_image_size): Likewise.
37488 * disk/loopback.c (options): Improve help for "--partitions".
37490 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37491 options to align them with the short options, e.g. "echo -e".
37493 2008-03-31 Bean <bean123ch@gmail.com>
37495 * video/reader/png.c (grub_png_data): New member is_16bit and
37497 (grub_png_decode_image_header): Detect 16 bit png image.
37498 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37499 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37500 (grub_video_reader_png): Release memory occupied by image_data.
37502 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37504 (grub_nfs_mount): Skip the test for sector per cluster.
37506 * include/grub/ntfs.h (MAX_SPC): Removed.
37508 2008-03-31 Bean <bean123ch@gmail.com>
37510 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37511 (grub_probe_SOURCES): Add fs/afs.c.
37512 (grub_fstest_SOURCES): Likewise.
37513 (afs_mod_SOURCES): New variable.
37514 (afs_mod_CFLAGS): Likewise.
37515 (afs_mod_LDFLAGS): Likewise.
37517 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37518 (grub_emu_SOURCES): Likewise.
37520 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37522 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37524 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37526 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37528 * fs/afs.c: New file.
37530 2008-03-30 Pavel Roskin <proski@gnu.org>
37532 * disk/host.c: Include grub/misc.h to fix a warning.
37533 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37534 warnings about implicit declarations.
37536 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37538 * include/grub/i386/loader.h: Change declaration of
37539 grub_linux_boot() to match what grub_loader_set() expects.
37540 * util/getroot.c (grub_guess_root_device): Return const char* to
37542 * util/grub-probe.c (probe): Fix a warning about uninitialized
37543 abstraction_name variable.
37544 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37545 second argument as unused to fix a warning.
37547 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37548 missing grub_error() call.
37550 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37551 2.60 and newer uses it to define datadir.
37553 * commands/sleep.c: Fix warning about implicit declaration.
37554 * disk/memdisk.c: Likewise.
37555 * loader/aout.c: Likewise.
37556 * loader/i386/bsd_normal.c: Likewise.
37557 * util/grub-probe.c: Likewise.
37559 * commands/i386/cpuid.c (has_longmode): Make static.
37560 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37561 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37563 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37564 GDT. This is more robust, as %ds can change.
37565 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37566 calling real_to_prot().
37567 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37569 2008-03-28 Pavel Roskin <proski@gnu.org>
37571 * kern/i386/pc/startup.S: Assert that uncompressed functions
37572 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37573 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37574 code, as they push parts of the code (error handlers) beyond
37575 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37576 code as correctness and size.
37578 2008-03-28 Pavel Roskin <proski@gnu.org>
37580 * kern/i386/pc/startup.S
37581 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37582 data block address to the real mode, keep offset minimal. This
37583 works around a bug in AWARD BIOS on old Athlon systems, which
37584 makes CD detection hang.
37586 2008-03-26 Pavel Roskin <proski@gnu.org>
37588 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37590 * include/grub/normal.h: Add grub_parse_color_name_pair()
37593 2008-03-24 Bean <bean123ch@gmail.com>
37595 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37596 (cd_count): Removed.
37597 (cd_drive): New variable.
37598 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37599 (grub_biosdisk_call_hook): Likewise.
37600 (grub_biosdisk_iterate): Change cdrom detection method.
37601 (grub_biosdisk_open): Replace cd_start with cd_drive.
37602 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37603 detect cdrom device.
37605 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37607 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37608 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37609 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37610 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37611 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37612 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37613 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37614 (grub_biosdisk_cdrp): New structure.
37615 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37617 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37619 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37622 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37625 2008-03-20 Robert Millan <rmh@aybabtu.com>
37627 Remove 2 TiB limit in ata.mod.
37628 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37629 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37630 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37631 grub_uint64_t instead of grub_uint32_t.
37633 2008-03-05 Bean <bean123ch@gmail.com>
37635 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37636 (grub_multiboot): Set boot device.
37638 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37640 2008-03-02 Bean <bean123ch@gmail.com>
37642 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37645 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37647 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37650 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37653 * docs/fdl.texi: New file.
37655 * docs/mdate-sh: New file. Copied from gnulib.
37656 * docs/texinfo.tex: Likewise.
37658 * config.guess: Updated from gnulib.
37659 * install-sh: Likewise.
37661 2008-02-28 Robert Millan <rmh@aybabtu.com>
37663 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37664 (aout_mod_SOURCES): New variable.
37665 (aout_mod_CFLAGS): Likewise.
37666 (aout_mod_LDFLAGS): Likewise.
37668 * conf/i386-ieee1275.rmk: Likewise.
37670 2008-02-28 Robert Millan <rmh@aybabtu.com>
37672 * util/update-grub.in: Reorganise terminal validity check. Accept
37673 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37674 Based on suggestion by Franklin PIAT.
37676 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37678 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37680 * util/getroot.c (grub_util_check_block_device): New function that
37681 returns the given argument if it is a block device and returns NULL else.
37682 * util/grub-probe.c (argument_is_device): New variable.
37683 (probe): Promote device_name from a variable to an argument. Receive
37684 device_name from grub_util_check_block_device() if path is NULL and from
37685 grub_guess_root_device() else. Do not free() device_name anymore.
37686 (options): Introduce new parameter '-d, --device'.
37687 (main): Add description of the new parameter to the help screen.
37688 Rename path variable to argument. Set argument_is_device if the '-d'
37689 option is given. Pass argument to probe() depending on
37690 argument_is_device.
37692 2008-02-24 Bean <bean123ch@gmail.com>
37694 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37695 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37696 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37697 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37698 (GRUB_ISO9660_VOLDESC_END): Likewise.
37699 (grub_iso9660_primary_voldesc): New member escape.
37700 (grub_iso9660_data): New member joliet.
37701 (grub_iso9660_convert_string): New function.
37702 (grub_iso9660_mount): Detect joliet extension.
37703 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37704 (grub_iso9660_iso9660_label): Likewise.
37706 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37707 (grub_setup_SOURCES): Add fs/udf.c.
37708 (grub_fstest_SOURCES): Likewise.
37709 (udf_mod_SOURCES): New variable.
37710 (udf_mod_CFLAGS): Likewise.
37711 (udf_mod_LDFLAGS): Likewise.
37713 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
37714 (grub_emu_SOURCES): Likewise.
37716 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37720 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37724 * fs/udf.c: New file.
37726 2008-02-24 Robert Millan <rmh@aybabtu.com>
37728 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
37729 (normal/lexer.c_DEPENDENCIES): New variables.
37730 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37731 (normal/lexer.c_DEPENDENCIES): Likewise.
37732 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
37733 (normal/lexer.c_DEPENDENCIES): Likewise.
37734 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
37735 (normal/lexer.c_DEPENDENCIES): Likewise.
37736 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37737 (normal/lexer.c_DEPENDENCIES): Likewise.
37738 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37739 (normal/lexer.c_DEPENDENCIES): Likewise.
37741 2008-02-23 Robert Millan <rmh@aybabtu.com>
37743 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
37744 since they were intended to be in hex. This didn't break previously
37745 because of a bug in gpt_partition_map_iterate() (see below).
37747 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
37748 when checking the validity of GPT header.
37749 Remove `partno', since it always provides the same information as `i'.
37751 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
37753 * include/grub/efi/time.h: Fix a wrong comment.
37755 2008-02-19 Pavel Roskin <proski@gnu.org>
37757 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
37760 2008-02-19 Bean <bean123ch@gmail.com>
37762 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
37763 (aout_mod_SOURCES): New variable.
37764 (aout_mod_CFLAGS): Likewise.
37765 (aout_mod_LDFLAGS): Likewise.
37766 (_bsd_mod_SOURCES): New variable.
37767 (_bsd_mod_CFLAGS): Likewise.
37768 (_bsd_mod_LDFLAGS): Likewise.
37769 (bsd_mod_SOURCES): New variable.
37770 (bsd_mod_CFLAGS): Likewise.
37771 (bsd_mod_LDFLAGS): Likewise.
37773 * include/grub/aout.h: New file.
37775 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
37777 * include/grub/i386/bsd.h: New file.
37779 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
37782 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
37783 function is called, so that it's possible to change it inside the hook.
37784 (grub_elf64_load): Likewise.
37785 (grub_elf_file): Don't close the file if elf header is not found.
37786 (grub_elf_close): Close the file if grub_elf_file fails (The new
37787 grub_elf_file won't close it).
37788 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
37789 (grub_elf64_size): Likewise.
37791 * kern/i386/loader.S (grub_unix_real_boot): New function.
37793 * loader/aout.c: New file.
37795 * loader/i386/bsd.c: New file.
37797 * loader/i386/bsd_normal.c: New file.
37799 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
37801 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
37802 can test other formats.
37804 2008-02-19 Robert Millan <rmh@aybabtu.com>
37806 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
37807 (grub_gpt_partition_type_empty): Redefine with macro from
37808 `<grub/gpt_partition.h>'.
37809 (gpt_partition_map_iterate): Adjust partition type comparison.
37811 Export `entry' as partmap-specific `part.data' struct.
37812 (grub_gpt_header, grub_gpt_partentry): Move from here ...
37814 * include/grub/gpt_partition.h (grub_gpt_header)
37815 (grub_gpt_partentry): ... to here (new file).
37817 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
37819 (grub_gpt_partition_type_bios_boot): New const variable, defined
37820 with macro from `<grub/gpt_partition.h>'.
37822 (setup): Replace `first_start' with `embed_region', which keeps
37823 track of the embed region (and is partmap-agnostic).
37825 Replace find_first_partition_start() with find_usable_region(),
37826 which finds a usable region for embedding using partmap-specific
37827 knowledge (supports PC/MSDOS and GPT).
37829 Fix all assumptions that the embed region start at sector 1, using
37830 `embed_region.start' from now on. Similarly, use `embed_region.end'
37831 rather than `first_start' to calculate available size.
37833 In grub_util_info() message, replace "into after the MBR" with an
37834 indication of the specific sector our embed region starts at.
37836 2008-02-19 Robert Millan <rmh@aybabtu.com>
37838 * DISTLIST: Replace `commands/ieee1275/halt.c' and
37839 `commands/ieee1275/reboot.c' with `commands/halt.c' and
37840 `commands/reboot.c'.
37841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37842 (halt_mod_SOURCES): Likewise.
37843 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37844 (halt_mod_SOURCES): Likewise.
37846 2008-02-17 Christian Franke <franke@computer.org>
37848 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
37850 2008-02-17 Robert Millan <rmh@aybabtu.com>
37852 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37853 set `first_start' to 0 for non-PC/MSDOS partition maps.
37855 2008-02-16 Robert Millan <rmh@aybabtu.com>
37857 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37858 do not assume partition map is PC/MSDOS before performing checks that
37859 are specific to that layout.
37861 2008-02-13 Robert Millan <rmh@aybabtu.com>
37863 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
37864 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
37865 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
37867 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
37869 * configure.ac: Only a cosmetic change on the handling of
37870 -fno-stack-protector.
37872 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
37874 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
37875 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
37877 (grub_install_SOURCES): Add halt.mod and reboot.mod.
37878 (halt_mod_SOURCES): New variable.
37879 (halt_mod_CFLAGS): Likewise.
37880 (halt_mod_LDFLAGS): Likewise.
37881 (reboot_mod_SOURCES): Likewise.
37882 (reboot_mod_CFLAGS): Likewise.
37883 (reboot_mod_LDFLAGS): Likewise.
37885 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
37886 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
37888 (halt_mod_SOURCES): Likewise.
37889 (reboot_mod_SOURCES): Likewise.
37891 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
37892 commands/i386/pc/reboot.c by commands/reboot.c.
37893 (reboot_mod_SOURCES): Likewise.
37895 * commands/i386/pc/reboot.c: merge this file ...
37897 * commands/ieee1275/reboot.c: ... and this file ...
37899 * commands/reboot.c: ... to this file.
37900 Add some precompiler directive to include the correct header for
37903 * commands/ieee1275/halt.c: move this file ...
37905 * commands/halt.c: ... to here.
37906 Add some precompiler directive to include the correct header for
37909 * include/grub/efi/efi.h (grub_reboot): New function declaration.
37910 (grub_halt): Likewise.
37912 * kern/efi/efi.c (grub_reboot): New function.
37913 (grub_halt): Likewise.
37915 2008-02-12 Robert Millan <rmh@aybabtu.com>
37917 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
37918 /dev (like it is done for /dev/mapper). This doesn't provide support
37919 for EVMS, but at least it is now easy to identify the problem when it
37922 2008-02-11 Robert Millan <rmh@aybabtu.com>
37924 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
37925 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
37926 comparing it with -1, not 0.
37928 2008-02-10 Robert Millan <rmh@aybabtu.com>
37930 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
37932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37933 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
37935 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
37936 `disk/lvm.c' to the end of the list.
37937 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37938 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37940 2008-02-10 Robert Millan <rmh@aybabtu.com>
37942 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
37943 grub_print_error() instead. This will let user know why we're entering
37945 Based on suggestions from Sam Morris.
37947 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
37949 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
37950 on remaining N args, instead of "--" arg N times.
37952 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
37954 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
37955 (fill_with_default_glyph): Changed to use unknown_glyph for fill
37956 pattern for unknown glyphs.
37958 2008-02-09 Robert Millan <rmh@aybabtu.com>
37960 * configure.ac: Probe for `help2man'.
37961 * Makefile.in (builddir): New variable.
37962 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
37963 or otherwise add a few flags/options to it.
37964 (install-local): For every executable utility or script that is
37965 installed, invoke $(HELP2MAN) to install a manpage based on --help
37968 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
37969 that it doesn't prevent --help from working in build tree.
37971 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
37972 with `bug-grub@gnu.org'.
37973 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
37974 * util/update-grub.in (usage): New function.
37975 Implement proper argument check, with support for --help and --version
37976 (as well as existing -y).
37978 2008-02-09 Christian Franke <franke@computer.org>
37980 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
37981 avoid overwriting previous output.
37982 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
37984 2008-02-09 Robert Millan <rmh@aybabtu.com>
37986 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
37989 2008-02-09 Robert Millan <rmh@aybabtu.com>
37991 * commands/sleep.c: New file.
37992 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
37993 (sleep_mod_SOURCES): New variable.
37994 (sleep_mod_CFLAGS): Likewise.
37995 (sleep_mod_LDFLAGS): Likewise.
37997 2008-02-09 Robert Millan <rmh@aybabtu.com>
37999 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38000 situations in which we can deduce the RAID size and the superblock
38003 2008-02-09 Robert Millan <rmh@aybabtu.com>
38005 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38006 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38007 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38009 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38010 and return a grub_diskmemberlist_t composed of physical array members.
38011 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38013 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38015 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38016 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38017 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38019 * util/grub-probe.c (probe): Move partmap probing code from here ...
38020 (probe_partmap): ... to here.
38021 (probe): Use probe_partmap() once for the disk we're probing, and
38022 additionally, when such disk contains a memberlist() struct member,
38023 once for each disk that is contained in the structure returned by
38026 2008-02-09 Robert Millan <rmh@aybabtu.com>
38028 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38029 environment variable to 'all' in order to obtain debug output from
38031 * util/i386/pc/grub-setup.c (main): Likewise.
38033 2008-02-08 Robert Millan <rmh@aybabtu.com>
38035 * disk/raid.c (grub_raid_scan_device): Check for
38036 `array->device[sb.this_disk.number]' rather than for
38037 `array->device[sb.this_disk.number]->name', since the latter is not
38038 guaranteed to be accessible.
38040 2008-02-08 Robert Millan <rmh@aybabtu.com>
38042 * disk/raid.c: Update copyright.
38043 * fs/cpio.c: Likewise.
38044 * include/grub/raid.h: Likewise.
38045 * loader/i386/pc/multiboot.c: Likewise.
38046 * util/hostfs.c: Likewise.
38048 2008-02-08 Robert Millan <rmh@aybabtu.com>
38050 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38051 to a grub_disk_t array.
38052 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38054 (grub_raid_scan_device): Replace `device[x].name' accesses with
38055 `device[x]->name'. Simplify initialization of `array->device[x]'.
38057 2008-02-08 Robert Millan <rmh@aybabtu.com>
38059 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38060 grub_dprintf() calls.
38061 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38064 2008-02-07 Christian Franke <franke@computer.org>
38066 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38067 instead of fseek and ftell to support large files.
38068 (grub_hostfs_read): Likewise.
38070 2008-02-07 Robert Millan <rmh@aybabtu.com>
38072 Patch from Jeroen Dekkers.
38073 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38074 failure, since successfully reading all array members might not be
38077 2008-02-06 Robert Millan <rmh@aybabtu.com>
38079 * util/grub-probe.c (probe): Simplify partmap probing (with the
38080 assumption that the first word up to the underscore equals to
38083 2008-02-06 Christian Franke <franke@computer.org>
38085 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38086 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38087 last block of a cpio or tar stream.
38088 Check for "TRAILER!!!" instead of any empty data
38089 block to detect last block of a cpio stream.
38090 (grub_cpio_dir): Fix constness of variable np.
38091 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38092 cpio or tar trailer is detected. This fixes a crash
38093 on open of a non existing file.
38095 2008-02-05 Bean <bean123ch@gmail.com>
38097 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38099 (grub_multiboot_load_elf64): Likewise.
38100 (grub_multiboot): Initialize mbi structure.
38102 * util/grub-fstest.c: Don't include unused header file script.h.
38104 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38106 (grub_fstest_SOURCES): Likewise.
38108 2008-02-05 Robert Millan <rmh@aybabtu.com>
38110 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38111 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38112 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38113 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38115 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38116 (translation_table): Replace hardcoded values with macros
38117 provided by `<grub/term.h>'.
38119 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38120 (keyboard_map): Correct/add a few values, with macros provided
38121 by `<grub/term.h>'.
38122 (keyboard_map_shift): Zero values that don't differ from their
38123 `keyboard_map' equivalents.
38124 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38125 Discard the second scan code that is always sent by Caps lock.
38126 Only use `keyboard_map_shift' when it provides a non-zero value,
38127 otherwise fallback to `keyboard_map'.
38129 2008-02-04 Bean <bean123ch@gmail.com>
38131 * Makefile.in (enable_grub_fstest): New variable.
38133 * conf/common.rmk (grub_fstest_init.lst): New rule.
38134 (grub_fstest_init.h): Likewise.
38135 (grub_fstest_init.c): Likewise.
38136 (util/grub-fstest.c_DEPENDENCIES): New variable.
38137 (grub_fstest_SOURCES): Likewise.
38139 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38141 * util/grub-fstest.c: New file.
38143 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38145 Make grub-setup handle a separate root device.
38147 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38148 so that the root device can be compared with the destination
38150 When embedding the core image, if the root and destination devices
38151 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38153 When not embedding, set ROOT_DRIVE to 0xFF.
38155 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38157 Add support for having a grub directory in a different drive. This
38158 is still only the data handling part.
38160 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38161 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38162 (grub_root_drive): New variable.
38164 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38165 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38166 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38169 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38171 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38173 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38175 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38176 is bogus, because PXE booting does not specify any drive
38179 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38180 am not sure if this is really correct.
38182 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38183 is always identical to the boot drive when booting from a CD.
38185 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38187 (root_drive): New variable.
38188 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38189 (setup_sectors): Push %dx right after popping it, because %dh will
38191 (copy_buffer): Restore %dx.
38193 2008-02-03 Robert Millan <rmh@aybabtu.com>
38195 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38196 use `cdboot.img' for cdrom images.
38198 2008-02-03 Robert Millan <rmh@aybabtu.com>
38200 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38201 only setup gfxterm when `font' command has succeeded.
38203 2008-02-03 Robert Millan <rmh@aybabtu.com>
38205 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38206 (grub_rescue_cmd_multiboot_loader)
38207 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38209 2008-02-03 Pavel Roskin <proski@gnu.org>
38211 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38212 %edx and %esi from stack only after grub_gate_a20() is called.
38213 grub_gate_a20() clobbers %edx.
38215 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38217 * configure.ac (AC_INIT): Bumped to 1.96.
38219 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38220 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38221 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38222 video/readers/png.c.
38224 2008-02-03 Bean <bean123ch@gmail.com>
38226 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38227 (cdboot_img_SOURCES): New variable.
38228 (cdboot_img_ASFLAGS): New variable.
38229 (cdboot_img_LDFLAGS): New variable.
38231 * boot/i386/pc/cdboot.S: New file.
38233 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38234 (cd_count): Likewise.
38235 (grub_biosdisk_get_drive): Add support for cd device.
38236 (grub_biosdisk_call_hook): Likewise.
38237 (grub_biosdisk_iterate): Likewise.
38238 (grub_biosdisk_open): Likewise.
38239 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38240 (grub_biosdisk_rw): Support reading from cd device.
38241 (GRUB_MOD_INIT): Iterate cd devices.
38243 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38244 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38245 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38247 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38249 2008-02-02 Robert Millan <rmh@aybabtu.com>
38251 * commands/read.c: New file.
38252 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38253 (read_mod_SOURCES): New variable.
38254 (read_mod_CFLAGS): Likewise.
38255 (read_mod_LDFLAGS): Likewise.
38257 2008-02-02 Robert Millan <rmh@aybabtu.com>
38259 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38260 determining whether menu has to be displayed.
38262 2008-02-02 Marco Gerards <marco@gnu.org>
38264 * bus/pci.c: New file.
38266 * include/grub/pci.h: Likewise.
38268 * include/grub/i386/pc/pci.h: Likewise.
38270 * commands/lspci.c: Likewise.
38272 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38274 (pci_mod_SOURCES): New variable.
38275 (pci_mod_CFLAGS): Likewise.
38276 (pci_mod_LDFLAGS): Likewise.
38277 (lspci_mod_SOURCES): Likewise.
38278 (lspci_mod_CFLAGS): Likewise.
38279 (lspci_mod_LDFLAGS): Likewise.
38281 2008-02-02 Bean <bean123ch@gmail.com>
38283 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38284 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38286 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38287 (grub_xfs_btree_node): New structure.
38288 (grub_xfs_btree_root): New structure.
38289 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38290 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38291 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38292 (GRUB_XFS_EXTENT_SIZE): Likewise.
38293 (grub_xfs_read_block): Support btree format type.
38294 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38295 Use directory block as basic unit.
38297 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38299 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38300 __attribute__ ((__regparm__ (1))).
38302 2008-02-01 Robert Millan <rmh@aybabtu.com>
38304 Correct a mistake in previous commit.
38306 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38308 (normal/command.c_DEPENDENCIES): New variable.
38310 2008-02-01 Robert Millan <rmh@aybabtu.com>
38312 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38314 (normal/command.c_DEPENDENCIES): New variable.
38315 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38316 * conf/i386-ieee1275.rmk: Likewise.
38317 * conf/i386-linuxbios.rmk: Likewise.
38318 * conf/i386-pc.rmk: Likewise.
38319 * conf/sparc64-ieee1275.rmk: Likewise.
38320 * conf/powerpc-ieee1275.rmk: Likewise.
38321 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38323 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38325 2008-02-01 Robert Millan <rmh@aybabtu.com>
38327 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38328 call at beginning of function.
38330 2008-01-31 Pavel Roskin <proski@gnu.org>
38332 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38333 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38334 (grub_mkrescue_SOURCES): Likewise.
38335 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38337 2008-01-30 Robert Millan <rmh@aybabtu.com>
38339 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38340 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38341 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38342 (grub_probe_SOURCES): ... to here.
38344 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38345 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38346 * conf/i386-ieee1275.rmk: Likewise.
38347 * conf/i386-linuxbios.rmk: Likewise.
38348 * conf/powerpc-ieee1275.rmk: Likewise.
38350 2008-01-30 Tristan Gingold <gingold@free.fr>
38352 * kern/rescue.c: Silently accept empty lines.
38354 2008-01-29 Bean <bean123ch@gmail.com>
38356 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38357 (real_code_2): Code cleanup and change comment style.
38358 (move_memory): Avoid using 32-bit address mode.
38360 2008-01-29 Bean <bean123ch@gmail.com>
38362 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38363 (png_mod_SOURCES): New variable.
38364 (png_mod_CFLAGS): Likewise.
38365 (png_mod_LDFLAGS): Likewise.
38367 * video/readers/png.c: New file.
38369 2008-01-28 Robert Millan <rmh@aybabtu.com>
38371 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38372 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38373 `ifndef GRUB_MOD_GAP' hack.
38374 * util/elf/grub-mkimage.c (add_segments): Likewise.
38376 2008-01-27 Robert Millan <rmh@aybabtu.com>
38378 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38379 `GRUB_MOD_GAP' for platforms in which it's not defined.
38380 * util/elf/grub-mkimage.c (add_segments): Likewise.
38382 2008-01-27 Robert Millan <rmh@aybabtu.com>
38384 Get grub-emu to build again (including parallel builds).
38386 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38388 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38389 (normal/execute.c_DEPENDENCIES): ... this, ...
38390 (grub-emu_DEPENDENCIES): ... and this.
38392 * conf/i386-efi.rmk: Likewise.
38393 * conf/i386-linuxbios.rmk: Likewise.
38394 * conf/i386-ieee1275.rmk: Likewise.
38395 * conf/powerpc-ieee1275.rmk: Likewise.
38396 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38398 2008-01-27 Robert Millan <rmh@aybabtu.com>
38400 * NEWS: Add a few items.
38402 2008-01-27 Robert Millan <rmh@aybabtu.com>
38404 Fix parallel builds with grub-emu. Based on earlier commit for
38405 grub-probe and grub-setup.
38407 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38408 (util/grub-emu.c_DEPENDENCIES): ... this.
38409 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38410 (util/grub-emu.c_DEPENDENCIES): ... this.
38411 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38412 (util/grub-emu.c_DEPENDENCIES): ... this.
38413 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38414 (util/grub-emu.c_DEPENDENCIES): ... this.
38415 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38416 (util/grub-emu.c_DEPENDENCIES): ... this.
38418 2008-01-27 Pavel Roskin <proski@gnu.org>
38420 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38421 to create a gap between _end and the modules added to the image
38422 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38423 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38424 * util/elf/grub-mkimage.c (add_segments): Likewise.
38426 2008-01-26 Pavel Roskin <proski@gnu.org>
38428 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38429 just return an error.
38431 2008-01-26 Bean <bean123ch@gmail.com>
38433 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38434 (grub_reiserfs_get_item): Save offset of the next item.
38435 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38437 2008-01-25 Robert Millan <rmh@aybabtu.com>
38439 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38440 make all filesystem sources appear together (possibly fixing omissions
38442 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38443 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38444 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38447 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38449 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38450 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38451 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38452 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38454 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38455 (probe): Add a sanity check to make sure of our ability to read
38456 requested files when probing for filesystem type.
38458 * genmk.rb: Update copyright year (2007).
38460 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38461 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38462 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38463 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38464 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38465 : Remove function prototypes.
38467 2008-01-25 Robert Millan <rmh@aybabtu.com>
38469 Revert my previous commits (based on wrong assumption of how grub_errno
38472 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38473 * kern/file.c (grub_file_open): Likewise.
38475 2008-01-24 Pavel Roskin <proski@gnu.org>
38477 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38478 that hang if GRUB tries to setup colors.
38479 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38480 colors for firmwares that don't support it.
38481 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38482 Recognize Open Hack'Ware, set flags to work around its
38485 2008-01-24 Robert Millan <rmh@aybabtu.com>
38487 * kern/file.c (grub_file_open): Do not account previous failures of
38488 unrelated functions when grub_errno is checked for.
38489 Reported by Oleg Strikov.
38491 2008-01-24 Bean <bean123ch@gmail.com>
38493 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38494 (grub_ufs_sblock): New member volume name.
38495 (grub_ufs_find_file): Fix string copy bug.
38496 (grub_ufs_label): Implement this function properly.
38498 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38499 (grub_hfs_iterate_records): Use the correct file number for extents
38500 and catalog file. Fix problem in next index calculation.
38501 (grub_hfs_find_node): Replace recursive function call with loop.
38502 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38504 2008-01-23 Robert Millan <rmh@aybabtu.com>
38506 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38507 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38508 (grub_multiboot2_real_boot): New function prototype.
38510 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38511 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38513 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38514 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38516 2008-01-23 Robert Millan <rmh@aybabtu.com>
38518 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38519 #ifdef'ed out grub_printf().
38521 2008-01-23 Robert Millan <rmh@aybabtu.com>
38523 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38524 grub_dprintf calls, since they make "debug=all" mode unusable.
38525 (grub_console_checkkey): Likewise.
38527 2008-01-23 Robert Millan <rmh@aybabtu.com>
38529 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38530 `term/i386/pc/at_keyboard.c'.
38531 (pkglib_MODULES): Add `serial.mod'.
38532 (serial_mod_SOURCES): New variable.
38533 (serial_mod_CFLAGS): Likewise.
38534 (serial_mod_LDFLAGS): Likewise.
38536 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38537 `<grub/powerpc/ieee1275/console.h>'.
38538 (grub_keyboard_controller_init): New function prototype.
38539 (grub_console_checkkey): Likewise.
38540 (grub_console_getkey): Likewise.
38542 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38545 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38546 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38548 2008-01-23 Robert Millan <rmh@aybabtu.com>
38550 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38551 present, "(memdisk)/boot/grub" becomes the default prefix.
38553 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38554 a memdisk tarball with all the modules. Add --overlay=DIR option that
38555 allows users to overlay additional files into the image.
38557 2008-01-23 Robert Millan <rmh@aybabtu.com>
38559 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38560 and `machine/memory.h'.
38561 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38562 (_multiboot_mod_SOURCES): New variable.
38563 (_multiboot_mod_CFLAGS): Likewise.
38564 (_multiboot_mod_LDFLAGS): Likewise.
38565 (multiboot_mod_SOURCES): Likewise.
38566 (multiboot_mod_CFLAGS): Likewise.
38567 (multiboot_mod_LDFLAGS): Likewise.
38569 * include/grub/i386/ieee1275/loader.h: New file.
38571 * include/grub/i386/ieee1275/machine.h: Likewise.
38573 * include/grub/i386/ieee1275/memory.h: Likewise.
38575 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38576 variable declaration.
38577 (grub_os_area_size): Likewise.
38579 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38580 (grub_lower_mem, grub_upper_mem): New variables.
38581 (grub_stop_floppy): New function (just to make
38582 grub_multiboot2_real_boot() happy).
38584 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38585 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38586 (grub_stop): New function.
38587 Include `"../realmode.S"' and `"../loader.S"'.
38589 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38590 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38592 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38593 rely on grub_multiboot2_real_boot() for final boot.
38595 2008-01-22 Robert Millan <rmh@aybabtu.com>
38597 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38598 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38599 device that doesn't look like an SD card.
38600 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38601 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38602 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38603 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38606 2008-01-22 Robert Millan <rmh@aybabtu.com>
38608 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38609 avoid claiming over our own code.
38611 2008-01-22 Bean <bean123ch@gmail.com>
38613 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38614 (jpeg_mod_SOURCES): New variable.
38615 (jpeg_mod_CFLAGS): Likewise.
38616 (jpeg_mod_LDFLAGS): Likewise.
38618 * video/readers/jpeg.c : New file.
38620 2008-01-22 Bean <bean123ch@gmail.com>
38622 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38623 there are no more items.
38625 2008-01-21 Robert Millan <rmh@aybabtu.com>
38627 * kern/mm.c (grub_mm_init_region): Improve debug message.
38629 2008-01-21 Robert Millan <rmh@aybabtu.com>
38631 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38632 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38634 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38636 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38637 Indicates start of upper memory.
38638 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38639 (generate_image): Abort when image size is big enough to corrupt
38642 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38643 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38644 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38645 instead of hardcoding 0xA0000.
38646 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38647 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38648 instead of hardcoding 0xA0000.
38650 2008-01-21 Robert Millan <rmh@aybabtu.com>
38652 * disk/memdisk.c (memdisk_size): New variable.
38653 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38655 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38656 image to dynamic memory.
38657 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38658 `memdisk_size'. Free memdisk block.
38660 2008-01-21 Robert Millan <rmh@aybabtu.com>
38662 Fix detection of very small filesystems (like tar).
38664 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38665 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38666 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38667 a problem with this disk).
38669 2008-01-21 Robert Millan <rmh@aybabtu.com>
38671 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38672 on grub_biosdisk_rw_standard() error.
38674 2008-01-21 Robert Millan <rmh@aybabtu.com>
38676 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38678 * kern/elf.c: Likewise.
38679 * kern/ieee1275/ieee1275.c: Likewise.
38680 * kern/powerpc/ieee1275/openfw.c: Likewise.
38681 * term/ieee1275/ofconsole.c: Likewise.
38683 2008-01-21 Robert Millan <rmh@aybabtu.com>
38685 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38687 * include/grub/kernel.h (grub_arch_memdisk_addr)
38688 (grub_arch_memdisk_size): Moved from here ...
38690 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38691 (grub_arch_memdisk_size): ... to here.
38693 2008-01-21 Robert Millan <rmh@aybabtu.com>
38695 Mostly based on bugfix from Bean.
38697 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38698 attribute with hook() parameter.
38699 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38701 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38702 attribute with hook() parameter.
38703 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38706 2008-01-21 Robert Millan <rmh@aybabtu.com>
38708 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38709 (pkglib_MODULES): Add `memdisk.mod'.
38710 (memdisk_mod_SOURCES): New variable.
38711 (memdisk_mod_CFLAGS): Likewise.
38712 (memdisk_mod_LDFLAGS): Likewise.
38714 * disk/memdisk.c: New file.
38716 * include/grub/disk.h (grub_disk_dev_id): Add
38717 `GRUB_DISK_DEVICE_MEMDISK_ID'.
38719 * include/grub/i386/pc/kernel.h
38720 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
38721 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
38722 (grub_kernel_image_size): New variable declaration.
38723 (grub_total_module_size): Likewise.
38724 (grub_memdisk_image_size): Likewise.
38726 * include/grub/i386/pc/memory.h
38727 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
38729 * include/grub/kernel.h: Include `<grub/symbol.h>'.
38730 (grub_arch_memdisk_addr): New variable declaration.
38731 (grub_arch_memdisk_size): Likewise.
38733 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
38734 (grub_arch_memdisk_size): Likewise.
38736 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
38737 (codestart): Replace hardcoded `0x100000' with
38738 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
38740 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
38741 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
38742 not NULL, append the contents of the file it refers to, at the end of
38743 the compressed kernel image. Initialize `grub_memdisk_image_size'
38744 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
38745 (options): Add "memdisk"|'m' option.
38746 (main): Parse --memdisk|-m option, and pass user-provided path as
38747 parameter to generate_image().
38749 2008-01-20 Robert Millan <rmh@aybabtu.com>
38751 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
38752 grub_dprintf() calls from here ...
38753 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
38755 2008-01-20 Robert Millan <rmh@aybabtu.com>
38757 Fix detection of "real mode" when /options/real-mode? doesn't exist.
38759 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
38761 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
38762 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
38763 `GRUB_IEEE1275_FLAG_REAL_MODE'.
38764 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
38766 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
38767 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
38769 2008-01-19 Robert Millan <rmh@aybabtu.com>
38771 Get rid of confusing function (superseded by
38772 `grub_ieee1275_get_integer_property')
38773 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
38775 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
38777 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
38778 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
38779 in native endianness from grub_ieee1275_get_integer_property().
38781 2008-01-19 Robert Millan <rmh@aybabtu.com>
38783 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
38784 command after "shut-down", since implementations differ on which
38785 the command for halt is.
38787 2008-01-19 Robert Millan <rmh@aybabtu.com>
38789 * include/grub/i386/linuxbios/console.h: Add header protection.
38790 (grub_keyboard_controller_init): New function prototype.
38791 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
38792 (KEYBOARD_COMMAND_READ): Likewise.
38793 (KEYBOARD_COMMAND_WRITE): Likewise.
38794 (KEYBOARD_SCANCODE_SET1): Likewise.
38795 (grub_keyboard_controller_write): New function.
38796 (grub_keyboard_controller_read): Likewise.
38797 (grub_keyboard_controller_init): Likewise.
38799 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
38800 (grub_console_init): On coreboot/LinuxBIOS, call
38801 grub_keyboard_controller_init().
38803 2008-01-19 Robert Millan <rmh@aybabtu.com>
38805 PowerPC changes provided by Pavel Roskin.
38807 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
38808 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
38809 don't rely on cmain() doing it.
38810 * kern/i386/ieee1275/startup.S (_start): Store %eax in
38811 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
38813 2008-01-16 Robert Millan <rmh@aybabtu.com>
38815 * include/grub/i386/linuxbios/memory.h
38816 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
38817 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
38818 receive `table_header' as argument. Instead, probe for it in the
38819 known memory ranges where it can be present.
38820 (grub_available_iterate): Do not pass a fixed `table_header' address
38821 to grub_linuxbios_table_iterate().
38823 2008-01-15 Robert Millan <rmh@aybabtu.com>
38825 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
38826 * conf/i386-ieee1275.rmk: New file.
38827 * include/grub/i386/ieee1275/console.h: Likewise.
38828 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
38829 * include/grub/i386/ieee1275/kernel.h: Likewise.
38830 * include/grub/i386/ieee1275/time.h: Likewise.
38831 * kern/i386/ieee1275/init.c: Likewise.
38832 * kern/i386/ieee1275/startup.S: Likewise.
38834 2008-01-15 Robert Millan <rmh@aybabtu.com>
38836 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
38837 when pointers are 32-bit (but still do set it to one when they are
38840 2008-01-15 Robert Millan <rmh@aybabtu.com>
38842 * include/grub/ieee1275/ieee1275.h
38843 (grub_ieee1275_get_integer_property): New function prototype.
38845 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
38846 (grub_ieee1275_get_integer_property): New function. Wraps around
38847 grub_ieee1275_get_property() to handle endianness.
38849 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
38850 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
38852 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
38853 (grub_map): Likewise.
38854 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
38856 2008-01-15 Bean <bean123ch@gmail.com>
38858 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
38859 (grub_script_execute_cmdline): Reset grub_errno.
38861 * normal/main.c (read_config_file): Reset grub_errno.
38863 * normal/parse.y (script_init): New.
38864 (script): Move function and menuentry here.
38866 (command): Add delimiter at the end of command.
38867 (commands): Adjust to match the new command.
38868 (commandblock): Remove grub_script_lexer_record_start.
38869 (menuentry): Add grub_script_lexer_record_start, use the new commands.
38870 (if): Use the new commands.
38872 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
38874 2008-01-15 Robert Millan <rmh@aybabtu.com>
38876 * normal/menu.c (run_menu): Move timeout message from here ...
38877 (print_timeout): ... to here.
38878 (run_menu): Use print_timeout() once during initial draw to print
38879 the whole message, and again in every clock tick to update only
38880 the number of seconds.
38882 2008-01-15 Robert Millan <rmh@aybabtu.com>
38884 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
38885 actual size of `available' from grub_ieee1275_get_property(), and
38886 restrict parsing to that bound.
38888 2008-01-15 Christian Franke <franke@computer.org>
38890 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
38891 (argp_program_version): Remove variable.
38892 (argp_program_bug_address): Likewise.
38893 (options): Convert from struct argp_option to struct option.
38894 (struct arguments): Remove.
38895 (parse_opt): Remove.
38896 (usage): New function.
38897 (main): Replace struct args members by simple variables.
38898 Replace argp_parse() by getopt_long().
38899 Add switch to evaluate options.
38900 Add missing "(...)" around root_dev in prefix string.
38902 2008-01-14 Robert Millan <rmh@aybabtu.com>
38904 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
38905 for grub_ieee1275_exit(), in order to improve portability.
38907 2008-01-14 Robert Millan <rmh@aybabtu.com>
38909 * util/grub.d/10_linux.in (prefix): Define.
38910 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
38912 2008-01-13 Pavel Roskin <proski@gnu.org>
38914 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
38915 grub_errno if no errors have been detected.
38917 2008-01-12 Robert Millan <rmh@aybabtu.com>
38919 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
38920 (grub_util_get_dev_abstraction): New function prototype.
38922 * util/getroot.c: Include `<grub/util/getroot.h>'
38923 (grub_util_get_grub_dev): Move detection of abstraction type to ...
38924 (grub_util_get_dev_abstraction): ... here (new function).
38926 * util/grub-probe.c: Convert PRINT_* to an enum. Add
38927 `PRINT_ABSTRACTION'.
38928 (probe): Probe for abstraction type when requested.
38929 (main): Understand `--target=abstraction'.
38931 * util/i386/efi/grub-install.in: Add abstraction module to core
38932 image when it is found to be necessary.
38933 * util/i386/pc/grub-install.in: Likewise.
38934 * util/powerpc/ieee1275/grub-install.in: Likewise.
38936 * util/update-grub_lib.in (font_path): Return system path without
38937 converting to GRUB path.
38938 * util/update-grub.in: Convert system path returned by font_path()
38939 to a GRUB path. Use `grub-probe -t abstraction' to determine what
38940 abstraction module is needed for loading fonts (if any). Export
38941 that as `GRUB_PRELOAD_MODULES'.
38942 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
38945 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
38947 Remove some unused code from reiserfs.
38949 * fs/reiserfs.c (struct grub_reiserfs_key)
38950 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
38951 (struct grub_reiserfs_node_body): Removed.
38952 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38954 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38956 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38958 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38960 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38962 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
38964 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38965 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38966 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38968 2008-01-10 Robert Millan <rmh@aybabtu.com>
38970 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
38971 Determines if a file is garbage left by packaging systems, etc.
38972 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
38973 for processing /etc/grub.d scripts.
38974 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
38975 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
38976 as a condition for processing Linux images.
38978 2008-01-10 Pavel Roskin <proski@gnu.org>
38980 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
38981 to compile reiserfs.c on PowerPC.
38983 2008-01-10 Robert Millan <rmh@aybabtu.com>
38985 * kern/device.c (grub_device_iterate): Do not abort device iteration
38986 when one of the devices cannot be opened.
38987 * kern/disk.c (grub_disk_open): Do not account previous failures of
38988 unrelated functions when grub_errno is checked for.
38990 2008-01-08 Robert Millan <rmh@aybabtu.com>
38992 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
38993 `! grub_linux_is_bzimage', change order of address comparison to make
38994 it more intuitive, and improve "too big zImage" error message.
38996 2008-01-08 Robert Millan <rmh@aybabtu.com>
38998 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
38999 `$(update-grub_DATA)'.
39000 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39003 2008-01-07 Robert Millan <rmh@aybabtu.com>
39005 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39006 which instruction is modified by grub-setup during installation
39007 (since it wasn't obvious by only looking at this file).
39009 2008-01-07 Robert Millan <rmh@aybabtu.com>
39011 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39012 listing actual TODO items.
39014 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39016 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39018 (grub_reiserfs_get_key_offset): Likewise.
39019 (grub_reiserfs_set_key_offset): Likewise.
39020 (grub_reiserfs_set_key_type): Likewise.
39021 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39023 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39024 better to remove the bitfield version completely.
39026 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39028 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39029 allocated from the heap, due to the fshelp implementation.
39030 (grub_reiserfs_dir): Free NODE, due to the same reason.
39032 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39034 Mostly from Vincent Pelletier:
39036 * fs/reiserfs.c: New file.
39038 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39039 (reiserfs_mod_SOURCES): New variable.
39040 (reiserfs_mod_CFLAGS): Likewise.
39041 (reiserfs_mod_LDFLAGS): Likewise.
39043 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39044 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39045 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39048 2008-01-06 Robert Millan <rmh@aybabtu.com>
39050 * normal/color.c: Remove `<grub/env.h>'.
39052 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39054 * include/grub/normal.h: Include <grub/env.h>.
39056 2008-01-05 Robert Millan <rmh@aybabtu.com>
39058 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39059 usage example with `(hd0,1)'.
39060 Reported by Samuel Thibault.
39062 2008-01-05 Robert Millan <rmh@aybabtu.com>
39064 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39065 (grub_linux_boot_zimage): Rename to ...
39066 (grub_linux_boot): ... this.
39067 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39068 (grub_linux_boot_zimage): Conditionalize zImage copy.
39070 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39071 (grub_linux_boot_bzimage): Remove prototype.
39072 (grub_linux_boot_zimage): Rename to ...
39073 (grub_linux_boot): ... this.
39075 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39076 (grub_linux_boot): Remove function.
39078 2008-01-05 Robert Millan <rmh@aybabtu.com>
39080 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39081 (grub_env_write_color_highlight): Likewise.
39082 (grub_wait_after_message): Likewise.
39084 * normal/color.c: New file.
39086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39087 (normal_mod_DEPENDENCIES): Likewise.
39089 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39090 (normal_mod_DEPENDENCIES): Likewise.
39092 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39093 (normal_mod_DEPENDENCIES): Likewise.
39095 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39096 (normal_mod_DEPENDENCIES): Likewise.
39098 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39099 for waiting after a message is printed.
39100 * normal/main.c (read_config_file): Likewise.
39101 (grub_normal_init): Register grub_env_write_color_normal() and
39102 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39103 `color_highlight' variables as global.
39105 * normal/menu.c (grub_wait_after_message): New function.
39106 (grub_color_menu_normal): New variable. Replaces ...
39107 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39108 (grub_color_menu_highlight): New variable. Replaces ...
39109 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39110 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39111 `GRUB_TERM_COLOR_STANDARD'.
39112 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39113 `normal_code' and `highlight_code' to `old_color_normal' and
39114 `old_color_highlight', respectively.
39115 (grub_menu_init_page): Update colors when drawing the menu, based on
39116 `menu_color_normal' and `menu_color_highlight' variables.
39117 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39118 a message is printed.
39120 2008-01-05 Robert Millan <rmh@aybabtu.com>
39122 * kern/env.c (grub_env_context_open): Propagate hooks for global
39123 variables to new context.
39125 * kern/main.c (grub_set_root_dev): Export `root' variable.
39127 2008-01-05 Robert Millan <rmh@aybabtu.com>
39129 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39130 discs unconditionally, since udev and others have options to provide
39133 2008-01-05 Robert Millan <rmh@aybabtu.com>
39135 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39137 2008-01-04 Christian Franke <franke@computer.org>
39139 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39142 2008-01-03 Pavel Roskin <proski@gnu.org>
39144 * kern/i386/linuxbios/init.c: Put "void" to all function
39145 declarations with no arguments.
39146 * kern/powerpc/ieee1275/init.c: Likewise.
39147 * term/i386/pc/at_keyboard.c: Likewise.
39148 * term/i386/pc/vga_text.c: Likewise.
39149 * util/grub-mkdevicemap.c: Likewise.
39151 2008-01-02 Robert Millan <rmh@aybabtu.com>
39153 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39154 message when loaded image is out of bounds.
39155 (grub_multiboot_load_elf64): Likewise.
39157 2008-01-02 Pavel Roskin <proski@gnu.org>
39159 * util/grub.d/10_linux.in: Try version without ".old" when
39160 looking for initrd. It's better to use initrd from the newer
39161 kernel of the same version than no initrd at all.
39163 2008-01-01 Robert Millan <rmh@aybabtu.com>
39165 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39167 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39169 * include/grub/video.h: Added grub_video_unmap_color and
39170 grub_video_get_active_render_target.
39171 (grub_video_adapter): Added unmap_color and get_active_render_target.
39173 * video/video.c: Added grub_video_unmap_color and
39174 grub_video_get_active_render_target.
39175 (grub_video_get_info): Changed method to accept NULL pointer as an
39176 argument to allow detection of active video adapter.
39178 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39179 grub_video_vbe_unmap_color_int.
39180 Added grub_video_vbe_unmap_color and
39181 grub_video_vbe_get_active_render_target.
39182 (grub_video_vbe_adapter): Added unmap_color and
39183 get_active_render_target.
39185 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39186 with grub_video_vbe_unmap_color_int.
39188 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39189 (DEFAULT_NORMAL_COLOR): Likewise.
39190 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39191 (DEFAULT_FG_COLOR): Removed.
39192 (DEFAULT_BG_COLOR): Likewise.
39193 (DEFAULT_CURSOR_COLOR): Changed value.
39194 (grub_virtual_screen): Added standard_color_setting,
39195 normal_color_setting, highlight_color_setting and term_color.
39196 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39197 (bitmap_width): Added.
39198 (bitmap_height): Likewise.
39199 (bitmap): Likewise.
39200 (set_term_color): Likewise.
39201 (grub_virtual_screen_setup): Changed to use new terminal coloring
39203 (grub_gfxterm_init): Added init for bitmap.
39204 (grub_gfxterm_fini): Added destroy for bitmap.
39205 (redraw_screen_rect): Updated to use background bitmap and new
39207 (scroll_up): Added optimization for case when there is no bitmap.
39208 (grub_gfxterm_cls): Fixed to use correct background color.
39209 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39211 (grub_virtual_screen_setcolor): Likewise.
39212 (grub_virtual_screen_getcolor): Added.
39213 (grub_gfxterm_background_image_cmd): Likewise.
39214 (grub_video_term): Added setcolor and getcolor.
39215 (MOD_INIT): Added registration of background_image command.
39216 (MOD_TERM): Added unregistration for background_image command.
39218 2007-12-30 Pavel Roskin <proski@gnu.org>
39220 * loader/multiboot_loader.c: Fix multiboot command
39221 unregistration. Fix all typos in the word "multiboot".
39223 2007-12-29 Pavel Roskin <proski@gnu.org>
39225 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39226 support for initrd names used in Fedora.
39228 2007-12-26 Bean <bean123ch@gmail.com>
39230 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39231 (cpio_mod_SOURCES): New variable.
39232 (cpio_mod_CFLAGS): Likewise.
39233 (cpio_mod_LDFLAGS): Likewise.
39235 * fs/cpio.c: New file.
39237 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39239 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39241 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39245 2007-12-25 Robert Millan <rmh@aybabtu.com>
39247 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39248 (grub_getcolor): New function.
39250 * kern/term.c (grub_getcolor): New function.
39251 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39252 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39253 (print_entry): Set normal and highlight colors to
39254 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39255 respectively, before printing and restore them to old
39257 (grub_menu_init_page): Likewise. Fill an additional colored space
39258 that would otherwise be left blank.
39260 * term/efi/console.c (grub_console_getcolor): New function.
39261 (struct grub_console_term.getcolor): New variable.
39262 * term/i386/pc/console.c (grub_console_getcolor): New function.
39263 (struct grub_console_term.getcolor): New variable.
39264 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39265 (struct grub_console_term.getcolor): New variable.
39267 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39268 (struct grub_console_term.setcolor): Remove variable.
39269 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39270 (struct grub_console_term.setcolor): Remove variable.
39271 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39272 (struct grub_console_term.setcolor): Remove variable.
39273 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39274 (struct grub_console_term.setcolor): Remove variable.
39276 2007-12-25 Robert Millan <rmh@aybabtu.com>
39278 * configure.ac: Search for possible unifont.hex locations, and
39279 define UNIFONT_HEX if found.
39281 * Makefile.in (UNIFONT_HEX): Define variable.
39282 (DATA): Rename to ...
39283 (PKGLIB): ... this. Update all users.
39284 (PKGDATA): New variable.
39285 (pkgdata_IMAGES): Rename to ...
39286 (pkglib_IMAGES): ... this. Update all users.
39287 (pkgdata_MODULES): Rename to ...
39288 (pkglib_MODULES): ... this. Update all users.
39289 (pkgdata_PROGRAMS): Rename to ...
39290 (pkglib_PROGRAMS): ... this. Update all users.
39291 (pkgdata_DATA): Rename to ...
39292 (pkglib_DATA): ... this. Update all users.
39293 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39294 (unicode.pff, ascii.pff): New rules.
39295 (all-local): Add `$(PKGDATA)' dependency.
39296 (install-local): Process `$(PKGDATA)'.
39298 * util/update-grub_lib.in (font_path): Search for *.pff files in
39299 a few more locations, including `${pkgdata}'.
39301 2007-12-23 Robert Millan <rmh@aybabtu.com>
39303 Patch from Bean <bean123ch@gmail.com>:
39304 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39307 2007-12-21 Bean <bean123ch@gmail.com>
39309 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39310 (ntfscomp_mod_SOURCES): New variable.
39311 (ntfscomp_mod_CFLAGS): Likewise.
39312 (ntfscomp_mod_LDFLAGS): Likewise.
39314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39315 (grub_probe_SOURCES): Likewise.
39316 (grub_emu_SOURCES): Likewise.
39318 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39319 (grub_emu_SOURCES): Likewise.
39321 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39322 (grub_emu_SOURCES): Likewise.
39324 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39325 (grub_emu_SOURCES): Likewise.
39327 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39328 (read_run_list): Renamed to grub_ntfs_read_run_list.
39329 (decomp_nextvcn): Moved to ntfscomp.c.
39330 (decomp_getch): Likewise.
39331 (decomp_get16): Likewise.
39332 (decomp_block): Likewise.
39333 (read_block): Likewise.
39334 (read_data): Partially moved to ntfscomp.c.
39335 (fixup): Change unsigned to grub_uint16_t.
39336 (read_mft): Change unsigned long to grub_uint32_t.
39337 (read_attr): Likewise.
39338 (read_data): Likewise.
39339 (read_run_data): Likewise.
39340 (read_run_list): Likewise.
39341 (read_mft): Likewise.
39343 * fs/ntfscomp.c: New file.
39345 * include/grub/ntfs.h: New file.
39347 2007-12-16 Robert Millan <rmh@aybabtu.com>
39349 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39350 IDE disk check, since Linux is known to support 20 IDE disks.
39351 Reported by Colin Watson.
39353 2007-12-15 Bean <bean123ch@gmail.com>
39355 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39356 (lnxboot_img_SOURCES): New variable.
39357 (lnxboot_img_ASFLAGS): Likewise.
39358 (lnxboot_img_LDFLAGS): Likewise.
39360 * boot/i386/pc/lnxboot.S: New file.
39362 2007-11-24 Pavel Roskin <proski@gnu.org>
39364 * configure.ac: Test if '--build-id=none' is supported by the
39365 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39366 objcopy to generate incorrect binary files (binutils
39367 2.17.50.0.18-1 as shipped by Fedora 8).
39368 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39369 linking, so that build ID doesn't break the test.
39371 2007-11-24 Pavel Roskin <proski@gnu.org>
39373 * include/grub/i386/time.h: use "void" in the argument list
39374 of grub_cpu_idle().
39375 * include/grub/powerpc/time.h: Likewise.
39376 * include/grub/sparc64/time.h: Likewise.
39378 2007-11-18 Christian Franke <franke@computer.org>
39380 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39381 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39382 This fixes the problem that function keys did not work in grub-emu.
39384 2007-11-18 Christian Franke <franke@computer.org>
39386 * disk/host.c (grub_host_open): Remove attribute unused from
39387 name parameter. Add check for "host". This fixes the problem
39388 that grub-emu does not find partitions.
39390 2007-11-18 Christian Franke <franke@computer.org>
39392 * util/hostfs.c (is_dir): New function.
39393 (grub_hostfs_dir): Handle missing dirent.d_type case.
39394 (grub_hostfs_read): Add missing fseek().
39395 (grub_hostfs_label): Clear label pointer. This fixes a crash
39396 of grub-emu on "ls (host)".
39398 2007-11-18 Christian Franke <franke@computer.org>
39400 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39401 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39402 to 64 bit boundary by default.
39404 2007-11-18 Bean <bean123ch@gmail.com>
39406 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39407 (hexdump_mod_SOURCES): New variable.
39408 (hexdump_mod_CFLAGS): Likewise.
39409 (hexdump_mod_LDFLAGS): Likewise.
39411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39413 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39415 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39419 * include/grub/hexdump.h: New file.
39421 * commands/hexdump.c: New file.
39423 2007-11-10 Robert Millan <rmh@aybabtu.com>
39425 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39426 in grub_outb() calls.
39427 (beep_on): Likewise.
39429 2007-11-10 Christian Franke <franke@computer.org>
39431 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39432 (grub_menu_run): Likewise.
39434 2007-11-10 Robert Millan <rmh@aybabtu.com>
39436 * include/grub/i386/efi/machine.h: New file.
39437 * include/grub/i386/linuxbios/machine.h: Likewise.
39438 * include/grub/i386/pc/machine.h: Likewise.
39439 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39440 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39442 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39443 (serial_hw_io_addr): New variable.
39444 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39445 instead of `(unsigned short *) 0x400'.
39447 2007-11-10 Bean <bean123ch@gmail.com>
39449 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39451 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39453 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39454 (vga_mod_SOURCES): Added.
39455 (vga_mod_CFLAGS): Likewise.
39456 (vga_mod_LDFLAGS): Likewise.
39458 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39460 (set_map_mask): Likewise.
39461 (set_read_map): Likewise.
39462 (set_read_address): Likewise.
39463 (vga_font): Removed variable.
39464 (get_vga_glyph): Removed function.
39465 (invalidate_char): Likewise.
39466 (write_char): Changed to use grub_font_get_glyph() for font
39468 (grub_vga_putchar): Likewise.
39469 (grub_vga_getcharwidth): Likewise.
39471 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39473 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39475 (pxeboot_img_LDFLAGS): Likewise.
39476 (diskboot_img_LDFLAGS): Likewise.
39477 (kernel_img_LDFLAGS): Likewise.
39479 2007-11-06 Robert Millan <rmh@aybabtu.com>
39481 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39482 in grub_outb() calls.
39483 (serial_hw_init): Likewise.
39485 2007-11-05 Robert Millan <rmh@aybabtu.com>
39487 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39488 spaces. Skip non-regular files.
39490 2007-11-05 Robert Millan <rmh@aybabtu.com>
39492 * kern/disk.c (grub_disk_firmware_fini)
39493 (grub_disk_firmware_is_tainted): New variables.
39495 * include/grub/disk.h (grub_disk_firmware_fini)
39496 (grub_disk_firmware_is_tainted): Likewise.
39498 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39499 (grub_disk_biosdisk_fini): ... to here.
39500 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39501 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39502 is set. Register grub_disk_biosdisk_fini() in
39503 `grub_disk_firmware_fini'.
39505 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39506 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39507 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39508 to finish existing firmware disk interface.
39510 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39511 (ata_mod_SOURCES): New variable.
39512 (ata_mod_CFLAGS): Likewise.
39513 (ata_mod_LDFLAGS): Likewise.
39515 2007-11-05 Robert Millan <rmh@aybabtu.com>
39517 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39518 (grub_ata_wait): Reimplement using grub_millisleep().
39520 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39521 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39523 2007-11-03 Marco Gerards <marco@gnu.org>
39525 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39526 (CRTC_ADDR_PORT): New macro.
39527 (CRTC_DATA_PORT): Likewise.
39528 (CRTC_CURSOR): Likewise.
39529 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39530 (CRTC_CURSOR_ADDR_LOW): Likewise.
39531 (update_cursor): New function.
39532 (grub_console_real_putchar): Call `update_cursor'.
39533 (grub_console_gotoxy): Likewise.
39534 (grub_console_cls): Set the default color when clearing the
39536 (grub_console_setcursor): Implemented.
39538 2007-11-03 Marco Gerards <marco@gnu.org>
39540 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39542 (grub_ata_pio_write): Likewise.
39544 (grub_atapi_identify): Wait after issuing an ATA command.
39545 (grub_atapi_packet): Likewise.
39546 (grub_ata_identify): Likewise.
39547 (grub_ata_readwrite): Likewise.
39549 2007-11-03 Marco Gerards <marco@gnu.org>
39551 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39552 (grub_ata_pio_write): Likewise.
39553 (grub_ata_readwrite): Use `grub_error', instead of
39554 returning `grub_errno'.
39556 2007-11-03 Marco Gerards <marco@gnu.org>
39558 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39559 grub_ata_pio_write once for every single sector, instead of for
39562 2007-10-31 Robert Millan <rmh@aybabtu.com>
39564 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39566 * conf/i386-linuxbios.rmk: New file.
39568 * kern/i386/pc/hardware.c: Likewise.
39569 * term/i386/pc/at_keyboard.c: Likewise.
39570 * term/i386/pc/vga_text.c: Likewise.
39572 * include/grub/i386/linuxbios/boot.h: Likewise.
39573 * include/grub/i386/linuxbios/console.h: Likewise.
39574 * include/grub/i386/linuxbios/init.h: Likewise.
39575 * include/grub/i386/linuxbios/kernel.h: Likewise.
39576 * include/grub/i386/linuxbios/loader.h: Likewise.
39577 * include/grub/i386/linuxbios/memory.h: Likewise.
39578 * include/grub/i386/linuxbios/serial.h: Likewise.
39579 * include/grub/i386/linuxbios/time.h: Likewise.
39581 * kern/i386/linuxbios/init.c: Likewise.
39582 * kern/i386/linuxbios/startup.S: Likewise.
39583 * kern/i386/linuxbios/table.c: Likewise.
39585 2007-10-31 Marco Gerards <marco@gnu.org>
39587 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39588 (ata_mod_SOURCES): New variable.
39589 (ata_mod_CFLAGS): Likewise.
39590 (ata_mod_LDFLAGS): Likewise.
39592 * disk/ata.c: New file.
39594 * include/grub/disk.h (grub_disk_dev_id): Add
39595 `GRUB_DISK_DEV_ATA_ID'.
39597 2007-10-31 Robert Millan <rmh@aybabtu.com>
39599 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39600 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39602 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39603 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39605 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39608 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39610 2007-10-27 Robert Millan <rmh@aybabtu.com>
39612 * include/grub/types.h (ULONG_MAX): Define macro.
39614 2007-10-22 Robert Millan <rmh@aybabtu.com>
39616 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39618 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39620 2007-10-22 Robert Millan <rmh@aybabtu.com>
39622 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39623 (pkgdata_MODULES): Add `biosdisk.mod'.
39624 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39627 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39628 (grub_biosdisk_init): Replace with ...
39629 (GRUB_MOD_INIT(biosdisk)): ... this.
39630 (grub_biosdisk_fini): Replace with ...
39631 (GRUB_MOD_FINI(biosdisk)): ... this.
39633 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39634 (grub_machine_init): Remove call to grub_biosdisk_init().
39635 (grub_machine_fini): Remove call to grub_machine_fini().
39637 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39639 2007-10-22 Robert Millan <rmh@aybabtu.com>
39641 * include/grub/time.h: New file.
39642 * include/grub/i386/time.h: Likewise.
39643 * include/grub/powerpc/time.h: Likewise.
39644 * include/grub/sparc64/time.h: Likewise.
39646 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39648 (KERNEL_MACHINE_TIME_HEADER): ... this.
39649 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39651 (KERNEL_MACHINE_TIME_HEADER): ... this.
39652 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39654 (KERNEL_MACHINE_TIME_HEADER): ... this.
39656 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39657 (grub_millisleep): New function.
39658 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39659 (grub_millisleep): New function.
39660 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39661 Remove `grub/machine/time.h' include.
39662 (grub_millisleep): New function.
39663 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39664 Remove `grub/machine/time.h' include.
39665 (grub_millisleep): New function.
39667 * include/grub/misc.h (grub_div_roundup): New function.
39669 * kern/misc.c: Include `<grub/time.h>'.
39670 (grub_millisleep_generic): New function.
39672 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39674 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39676 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39677 `machine/time.h'. Add `time.h'.
39678 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39680 2007-10-21 Robert Millan <rmh@aybabtu.com>
39682 * include/grub/misc.h (grub_max): New function.
39684 2007-10-21 Robert Millan <rmh@aybabtu.com>
39686 * util/misc.c (grub_util_info): Call fflush() before returning.
39688 2007-10-20 Robert Millan <rmh@aybabtu.com>
39690 * genmk.rb (Image): Copy `extra_flags' from here ...
39691 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39693 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39694 to `argc' and `args' arguments.
39696 2007-10-17 Robert Millan <rmh@aybabtu.com>
39698 * kern/i386/loader.S: New file.
39700 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39701 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39702 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39703 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39704 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39705 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39706 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39707 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39708 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39709 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
39710 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
39711 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
39712 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
39713 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
39715 * kern/i386/realmode.S: New file.
39717 * kern/i386/pc/startup.S (protstack): Moved from here ...
39718 * kern/i386/realmode.S (protstack)... to here.
39719 * kern/i386/pc/startup.S (gdt): Moved from here ...
39720 * kern/i386/realmode.S (gdt)... to here.
39721 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
39722 * kern/i386/realmode.S (prot_to_real)... to here.
39724 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
39725 `kern/i386/realmode.S'.
39727 2007-10-17 Robert Millan <rmh@aybabtu.com>
39729 * include/grub/i386/loader.h: New file.
39731 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
39732 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39733 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39734 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39735 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
39736 * include/grub/i386/loader.h (grub_linux_prot_size)
39737 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39738 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39739 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39740 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
39742 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
39744 2007-10-15 Robert Millan <rmh@aybabtu.com>
39746 * normal/misc.c (grub_normal_print_device_info): Do not probe for
39747 filesystem when dev->disk is unset.
39748 Do probe for filesystem even when dev->disk->has_partitions is set.
39749 In case a filesystem is found, always report it.
39750 In case it isn't, if dev->disk->has_partitions is set, report that
39751 a partition table was found instead of reporting that no filesystem
39752 could be identified.
39754 2007-10-12 Robert Millan <rmh@aybabtu.com>
39756 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
39757 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
39759 * include/grub/types.h (grub_host_to_target16): New macro.
39760 (grub_host_to_target32): Likewise.
39761 (grub_host_to_target64): Likewise.
39762 (grub_target_to_host16): Likewise.
39763 (grub_target_to_host32): Likewise.
39764 (grub_target_to_host64): Likewise.
39766 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39767 Renamed from to ...
39768 (GRUB_MOD_ALIGN): ...this. Update all users.
39770 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
39771 grub_host_to_target32.
39772 Replace grub_be_to_cpu32 with grub_target_to_host32.
39773 (load_modules): Likewise.
39774 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
39775 Replace grub_be_to_cpu32 with grub_target_to_host32.
39776 Replace grub_cpu_to_be16 with grub_host_to_target16.
39777 Replace grub_cpu_to_be32 grub_host_to_target32.
39779 2007-10-12 Robert Millan <rmh@aybabtu.com>
39781 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
39782 * util/elf/grub-mkimage.c: ... here.
39784 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
39785 `util/powerpc/ieee1275/grub-mkimage.c'.
39787 2007-10-07 Robert Millan <rmh@aybabtu.com>
39789 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
39790 and make it easier to figure out.
39791 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
39792 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
39793 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
39794 leave us with less than HEAP_MIN_SIZE total heap.
39795 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
39797 2007-10-03 Robert Millan <rmh@aybabtu.com>
39799 * include/grub/i386/io.h: New file.
39800 * commands/i386/pc/play.c (inb): Removed.
39802 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39804 * term/i386/pc/serial.c (inb): Removed.
39806 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39808 * term/i386/pc/vga.c (inb): Removed.
39810 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39813 2007-10-02 Robert Millan <rmh@aybabtu.com>
39815 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
39816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39817 Reported by Marcin Kurek.
39819 2007-09-07 Robert Millan <rmh@aybabtu.com>
39821 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
39822 SmartFirmware version updates (as released by Sven Luther), and avoid
39823 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
39824 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
39827 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39829 From Hitoshi Ozeki:
39830 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
39831 when merging two regions.
39833 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39835 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
39836 * normal/completion.c (grub_normal_do_completion): Likewise.
39837 Reported by Hitoshi Ozeki.
39839 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39841 Do not use devices at boot in chainloading.
39843 * loader/i386/pc/chainloader.c (boot_drive): New variable.
39844 (boot_part_addr): Likewise.
39845 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
39846 with BOOT_DRIVE and BOOT_PART_ADDR.
39847 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
39848 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
39850 2007-08-29 Robert Millan <rmh@aybabtu.com>
39852 Patch from Simon Peter <dn.tlp@gmx.net>:
39853 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
39854 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
39855 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
39856 util/i386/pc/grub-setup.c_DEPENDENCIES.
39857 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
39858 util/grub-probe.c_DEPENDENCIES.
39859 * conf/powerpc-ieee1275.rmk: Likewise.
39861 2007-08-28 Robert Millan <rmh@aybabtu.com>
39863 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
39864 to tell grub-mkdevicemap how to name devices.
39865 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
39868 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
39869 util/i386/get_disk_name.c.
39870 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
39871 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
39872 util/ieee1275/get_disk_name.c.
39874 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
39876 * DISTLIST: Add util/i386/get_disk_name.c and
39877 util/ieee1275/get_disk_name.c.
39879 * util/grub-mkdevicemap.c: Replace device naming logic with
39880 grub_util_get_disk_name() calls.
39882 2007-08-20 Robert Millan <rmh@aybabtu.com>
39884 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
39885 (so that it works for both plural and singular quantities).
39887 2007-08-05 Robert Millan <rmh@aybabtu.com>
39889 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
39890 so that [xz] isn't taken into account when determining order.
39892 2007-08-02 Marco Gerards <marco@gnu.org>
39894 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
39895 `include/multiboot2.h', `include/grub/elfload.h',
39896 `include/multiboot.h', `include/grub/multiboot.h',
39897 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
39898 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
39899 `kern/elf.c', `loader/multiboot_loader.c',
39900 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
39901 `loader/i386/pc/multiboot2.c',
39902 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
39903 `util/i386/pc/grub-mkrescue.in'. Remove
39904 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
39905 `include/grub/i386/pc/util/biosdisk.h' and
39906 `include/grub/powerpc/ieee1275/multiboot.h'.
39908 2007-08-02 Bean <bean123ch@gmail.com>
39910 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
39911 (ntfs_mod_SOURCES): New variable.
39912 (ntfs_mod_CFLAGS): Likewise.
39913 (ntfs_mod_LDFLAGS): Likewise.
39915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
39916 (grub_probe_SOURCES): Likewise.
39917 (grub_emu_SOURCES): Likewise.
39919 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39920 (grub_emu_SOURCES): Likewise.
39922 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39923 (grub_emu_SOURCES): Likewise.
39925 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
39927 * fs/ntfs.c: New file.
39929 2007-08-02 Bean <bean123ch@gmail.com>
39931 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
39933 * file.h (grub_file): Likewise.
39935 * fshelp.h (grub_fshelp_read_file): Likewise.
39937 * util/i386/pc/grub-setup.c (setup): Likewise.
39938 (save_first_sector): Likewise.
39939 (save_blocklists): Likewise.
39941 * fs/affs.c (grub_affs_read_file): Likewise.
39943 * fs/ext2.c (grub_ext2_read_file): Likewise.
39945 * fs/fat.c (grub_fat_read_data): Likewise.
39947 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
39949 * fs/hfs.c (grub_hfs_read_file): Likewise.
39951 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
39953 * fs/jfs.c (grub_jfs_read_file): Likewise.
39955 * fs/minix.c (grub_minix_read_file): Likewise.
39957 * fs/sfs.c (grub_sfs_read_file): Likewise.
39959 * fs/ufs.c (grub_ufs_read_file): Likewise.
39961 * fs/xfs.c (grub_xfs_read_file): Likewise.
39963 * command/blocklist.c (read_blocklist): Likewise.
39964 (print_blocklist): Likewise.
39966 2007-08-02 Marco Gerards <marco@gnu.org>
39968 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
39971 * disk/host.c: New file.
39973 * util/hostfs.c: Likewise.
39975 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
39976 return `GRUB_ERR_BAD_FS'.
39977 * fs/sfs.c (grub_sfs_mount): Likewise.
39978 * fs/xfs.c (grub_xfs_mount): Likewise.
39980 * include/grub/disk.h (enum grub_disk_dev_id): Add
39981 `GRUB_DISK_DEVICE_HOST_ID'.
39983 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
39985 2007-07-24 Jerone Young <jerone@gmail.com>
39987 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
39988 modules for compilation.
39989 * conf/powerpc-ieee1275.rmk: Likewise.
39991 * include/multiboot.h: Move multiboot definitions to one file. Rename
39992 many definitions to not get grub specific.
39993 * include/multiboot2.h: Create header with multiboot 2 definitions.
39994 * include/grub/multiboot.h: Header for grub specific function
39995 prototypes and definitions.
39996 * include/grub/multiboot2.h: Likewise.
39997 * include/grub/multiboot_loader.h: Likewise.
39998 * include/grub/i386/pc/multiboot.h: Removed.
39999 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40001 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40002 and 2 to allow for one multiboot and module commands.
40003 * loader/multiboot2.c: Add multiboot2 functionality.
40004 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40005 and definition names.
40006 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40008 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40009 ieee1275 specific multiboot2 code.
40011 * kern/i386/pc/startup.S: Change headers and definition names for
40012 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40014 2007-07-22 Robert Millan <rmh@aybabtu.com>
40016 * geninitheader.sh: Process file specified in first parameter rather
40017 than hardcoding grub_modules_init.lst.
40018 * geninit.sh: Likewise. Also, construct header name dynamically rather
40019 than hardcoding grub_modules_init.h.
40021 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40022 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40023 grub_probe_init.[ch] and grub_setup_init.[ch].
40025 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40026 grub_modules_init.h with grub_emu_init.h.
40027 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40028 grub_probe_init.[ch] files.
40029 * conf/i386-efi.rmk: Likewise.
40030 * conf/i386-pc.rmk: Likewise.
40031 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40032 grub_setup_init.[ch] files.
40034 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40035 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40036 to initialize modules rather than a list of hardcoded functions.
40037 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40038 grub_init_all() to initialize modules rather than a list of hardcoded
40041 2007-07-22 Robert Millan <rmh@aybabtu.com>
40043 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40044 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40046 2007-07-22 Robert Millan <rmh@aybabtu.com>
40048 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40049 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40050 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40051 flag when running on SmartFirmware.
40052 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40053 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40056 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40057 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40058 rather than decreasing it.
40060 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40061 there's not enough space to do it, fail in the same way as when it
40062 can't be done because there are no partitions.
40064 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40065 when nvsetenv failed.
40067 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40069 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40070 because this rule is automatically generated.
40071 (grub-mkrescue): Removed for the same reason as above.
40073 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40075 Migrate to GNU General Public License Version 3.
40077 * COPYING: Replaced with the plain text version of GPLv3.
40079 * config.guess: Updated from gnulib.
40080 * config.sub: Likewise.
40082 * geninit.sh: Output a GPLv3 copyright notice.
40083 * geninitheader.sh: Likewise.
40084 * genmodsrc.sh: Likewise.
40085 * gensymlist.sh.in: Likewise.
40087 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40088 * boot/i386/pc/diskboot.S: Likewise.
40089 * boot/i386/pc/pxeboot.S: Likewise.
40090 * commands/blocklist.c: Likewise.
40091 * commands/boot.c: Likewise.
40092 * commands/cat.c: Likewise.
40093 * commands/cmp.c: Likewise.
40094 * commands/configfile.c: Likewise.
40095 * commands/echo.c: Likewise.
40096 * commands/help.c: Likewise.
40097 * commands/ls.c: Likewise.
40098 * commands/search.c: Likewise.
40099 * commands/terminal.c: Likewise.
40100 * commands/test.c: Likewise.
40101 * commands/videotest.c: Likewise.
40102 * commands/i386/cpuid.c: Likewise.
40103 * commands/i386/pc/halt.c: Likewise.
40104 * commands/i386/pc/play.c: Likewise.
40105 * commands/i386/pc/reboot.c: Likewise.
40106 * commands/i386/pc/vbeinfo.c: Likewise.
40107 * commands/i386/pc/vbetest.c: Likewise.
40108 * commands/ieee1275/halt.c: Likewise.
40109 * commands/ieee1275/reboot.c: Likewise.
40110 * commands/ieee1275/suspend.c: Likewise.
40111 * disk/loopback.c: Likewise.
40112 * disk/lvm.c: Likewise.
40113 * disk/raid.c: Likewise.
40114 * disk/efi/efidisk.c: Likewise.
40115 * disk/i386/pc/biosdisk.c: Likewise.
40116 * disk/ieee1275/ofdisk.c: Likewise.
40117 * font/manager.c: Likewise.
40118 * fs/affs.c: Likewise.
40119 * fs/ext2.c: Likewise.
40120 * fs/fat.c: Likewise.
40121 * fs/fshelp.c: Likewise.
40122 * fs/hfs.c: Likewise.
40123 * fs/hfsplus.c: Likewise.
40124 * fs/iso9660.c: Likewise.
40125 * fs/jfs.c: Likewise.
40126 * fs/minix.c: Likewise.
40127 * fs/sfs.c: Likewise.
40128 * fs/ufs.c: Likewise.
40129 * fs/xfs.c: Likewise.
40130 * hello/hello.c: Likewise.
40131 * include/grub/acorn_filecore.h: Likewise.
40132 * include/grub/arg.h: Likewise.
40133 * include/grub/bitmap.h: Likewise.
40134 * include/grub/boot.h: Likewise.
40135 * include/grub/cache.h: Likewise.
40136 * include/grub/device.h: Likewise.
40137 * include/grub/disk.h: Likewise.
40138 * include/grub/dl.h: Likewise.
40139 * include/grub/elfload.h: Likewise.
40140 * include/grub/env.h: Likewise.
40141 * include/grub/err.h: Likewise.
40142 * include/grub/file.h: Likewise.
40143 * include/grub/font.h: Likewise.
40144 * include/grub/fs.h: Likewise.
40145 * include/grub/fshelp.h: Likewise.
40146 * include/grub/gzio.h: Likewise.
40147 * include/grub/hfs.h: Likewise.
40148 * include/grub/kernel.h: Likewise.
40149 * include/grub/loader.h: Likewise.
40150 * include/grub/lvm.h: Likewise.
40151 * include/grub/misc.h: Likewise.
40152 * include/grub/mm.h: Likewise.
40153 * include/grub/net.h: Likewise.
40154 * include/grub/normal.h: Likewise.
40155 * include/grub/parser.h: Likewise.
40156 * include/grub/partition.h: Likewise.
40157 * include/grub/pc_partition.h: Likewise.
40158 * include/grub/raid.h: Likewise.
40159 * include/grub/rescue.h: Likewise.
40160 * include/grub/script.h: Likewise.
40161 * include/grub/setjmp.h: Likewise.
40162 * include/grub/symbol.h: Likewise.
40163 * include/grub/term.h: Likewise.
40164 * include/grub/terminfo.h: Likewise.
40165 * include/grub/tparm.h: Likewise.
40166 * include/grub/types.h: Likewise.
40167 * include/grub/video.h: Likewise.
40168 * include/grub/efi/api.h: Likewise.
40169 * include/grub/efi/chainloader.h: Likewise.
40170 * include/grub/efi/console.h: Likewise.
40171 * include/grub/efi/console_control.h: Likewise.
40172 * include/grub/efi/disk.h: Likewise.
40173 * include/grub/efi/efi.h: Likewise.
40174 * include/grub/efi/pe32.h: Likewise.
40175 * include/grub/efi/time.h: Likewise.
40176 * include/grub/i386/linux.h: Likewise.
40177 * include/grub/i386/setjmp.h: Likewise.
40178 * include/grub/i386/types.h: Likewise.
40179 * include/grub/i386/efi/kernel.h: Likewise.
40180 * include/grub/i386/efi/loader.h: Likewise.
40181 * include/grub/i386/efi/time.h: Likewise.
40182 * include/grub/i386/pc/biosdisk.h: Likewise.
40183 * include/grub/i386/pc/boot.h: Likewise.
40184 * include/grub/i386/pc/chainloader.h: Likewise.
40185 * include/grub/i386/pc/console.h: Likewise.
40186 * include/grub/i386/pc/init.h: Likewise.
40187 * include/grub/i386/pc/kernel.h: Likewise.
40188 * include/grub/i386/pc/loader.h: Likewise.
40189 * include/grub/i386/pc/memory.h: Likewise.
40190 * include/grub/i386/pc/multiboot.h: Likewise.
40191 * include/grub/i386/pc/serial.h: Likewise.
40192 * include/grub/i386/pc/time.h: Likewise.
40193 * include/grub/i386/pc/vbe.h: Likewise.
40194 * include/grub/i386/pc/vbeblit.h: Likewise.
40195 * include/grub/i386/pc/vbefill.h: Likewise.
40196 * include/grub/i386/pc/vbeutil.h: Likewise.
40197 * include/grub/i386/pc/vga.h: Likewise.
40198 * include/grub/ieee1275/ieee1275.h: Likewise.
40199 * include/grub/ieee1275/ofdisk.h: Likewise.
40200 * include/grub/powerpc/libgcc.h: Likewise.
40201 * include/grub/powerpc/setjmp.h: Likewise.
40202 * include/grub/powerpc/types.h: Likewise.
40203 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40204 * include/grub/powerpc/ieee1275/console.h: Likewise.
40205 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40206 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40207 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40208 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40209 * include/grub/powerpc/ieee1275/time.h: Likewise.
40210 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40211 * include/grub/sparc64/libgcc.h: Likewise.
40212 * include/grub/sparc64/setjmp.h: Likewise.
40213 * include/grub/sparc64/types.h: Likewise.
40214 * include/grub/sparc64/ieee1275/console.h: Likewise.
40215 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40216 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40217 * include/grub/sparc64/ieee1275/time.h: Likewise.
40218 * include/grub/util/biosdisk.h: Likewise.
40219 * include/grub/util/getroot.h: Likewise.
40220 * include/grub/util/lvm.h: Likewise.
40221 * include/grub/util/misc.h: Likewise.
40222 * include/grub/util/raid.h: Likewise.
40223 * include/grub/util/resolve.h: Likewise.
40224 * io/gzio.c: Likewise.
40225 * kern/device.c: Likewise.
40226 * kern/disk.c: Likewise.
40227 * kern/dl.c: Likewise.
40228 * kern/elf.c: Likewise.
40229 * kern/env.c: Likewise.
40230 * kern/err.c: Likewise.
40231 * kern/file.c: Likewise.
40232 * kern/fs.c: Likewise.
40233 * kern/loader.c: Likewise.
40234 * kern/main.c: Likewise.
40235 * kern/misc.c: Likewise.
40236 * kern/mm.c: Likewise.
40237 * kern/parser.c: Likewise.
40238 * kern/partition.c: Likewise.
40239 * kern/rescue.c: Likewise.
40240 * kern/term.c: Likewise.
40241 * kern/efi/efi.c: Likewise.
40242 * kern/efi/init.c: Likewise.
40243 * kern/efi/mm.c: Likewise.
40244 * kern/i386/dl.c: Likewise.
40245 * kern/i386/efi/init.c: Likewise.
40246 * kern/i386/efi/startup.S: Likewise.
40247 * kern/i386/pc/init.c: Likewise.
40248 * kern/i386/pc/lzo1x.S: Likewise.
40249 * kern/i386/pc/startup.S: Likewise.
40250 * kern/ieee1275/ieee1275.c: Likewise.
40251 * kern/powerpc/cache.S: Likewise.
40252 * kern/powerpc/dl.c: Likewise.
40253 * kern/powerpc/ieee1275/cmain.c: Likewise.
40254 * kern/powerpc/ieee1275/crt0.S: Likewise.
40255 * kern/powerpc/ieee1275/init.c: Likewise.
40256 * kern/powerpc/ieee1275/openfw.c: Likewise.
40257 * kern/sparc64/cache.S: Likewise.
40258 * kern/sparc64/dl.c: Likewise.
40259 * kern/sparc64/ieee1275/init.c: Likewise.
40260 * kern/sparc64/ieee1275/openfw.c: Likewise.
40261 * loader/efi/chainloader.c: Likewise.
40262 * loader/efi/chainloader_normal.c: Likewise.
40263 * loader/i386/efi/linux.c: Likewise.
40264 * loader/i386/efi/linux_normal.c: Likewise.
40265 * loader/i386/pc/chainloader.c: Likewise.
40266 * loader/i386/pc/chainloader_normal.c: Likewise.
40267 * loader/i386/pc/linux.c: Likewise.
40268 * loader/i386/pc/linux_normal.c: Likewise.
40269 * loader/i386/pc/multiboot.c: Likewise.
40270 * loader/i386/pc/multiboot_normal.c: Likewise.
40271 * loader/powerpc/ieee1275/linux.c: Likewise.
40272 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40273 * normal/arg.c: Likewise.
40274 * normal/cmdline.c: Likewise.
40275 * normal/command.c: Likewise.
40276 * normal/completion.c: Likewise.
40277 * normal/execute.c: Likewise.
40278 * normal/function.c: Likewise.
40279 * normal/lexer.c: Likewise.
40280 * normal/main.c: Likewise.
40281 * normal/menu.c: Likewise.
40282 * normal/menu_entry.c: Likewise.
40283 * normal/misc.c: Likewise.
40284 * normal/parser.y: Likewise.
40285 * normal/script.c: Likewise.
40286 * normal/i386/setjmp.S: Likewise.
40287 * normal/powerpc/setjmp.S: Likewise.
40288 * normal/sparc64/setjmp.S: Likewise.
40289 * partmap/acorn.c: Likewise.
40290 * partmap/amiga.c: Likewise.
40291 * partmap/apple.c: Likewise.
40292 * partmap/gpt.c: Likewise.
40293 * partmap/pc.c: Likewise.
40294 * partmap/sun.c: Likewise.
40295 * term/gfxterm.c: Likewise.
40296 * term/terminfo.c: Likewise.
40297 * term/efi/console.c: Likewise.
40298 * term/i386/pc/console.c: Likewise.
40299 * term/i386/pc/serial.c: Likewise.
40300 * term/i386/pc/vesafb.c: Likewise.
40301 * term/i386/pc/vga.c: Likewise.
40302 * term/ieee1275/ofconsole.c: Likewise.
40303 * util/biosdisk.c: Likewise.
40304 * util/console.c: Likewise.
40305 * util/genmoddep.c: Likewise.
40306 * util/getroot.c: Likewise.
40307 * util/grub-emu.c: Likewise.
40308 * util/grub-mkdevicemap.c: Likewise.
40309 * util/grub-probe.c: Likewise.
40310 * util/lvm.c: Likewise.
40311 * util/misc.c: Likewise.
40312 * util/raid.c: Likewise.
40313 * util/resolve.c: Likewise.
40314 * util/update-grub.in: Likewise.
40315 * util/update-grub_lib.in: Likewise.
40316 * util/grub.d/00_header.in: Likewise.
40317 * util/grub.d/10_hurd.in: Likewise.
40318 * util/grub.d/10_linux.in: Likewise.
40319 * util/i386/efi/grub-install.in: Likewise.
40320 * util/i386/efi/grub-mkimage.c: Likewise.
40321 * util/i386/pc/grub-install.in: Likewise.
40322 * util/i386/pc/grub-mkimage.c: Likewise.
40323 * util/i386/pc/grub-mkrescue.in: Likewise.
40324 * util/i386/pc/grub-setup.c: Likewise.
40325 * util/i386/pc/misc.c: Likewise.
40326 * util/powerpc/ieee1275/grub-install.in: Likewise.
40327 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40328 * util/powerpc/ieee1275/misc.c: Likewise.
40329 * video/bitmap.c: Likewise.
40330 * video/video.c: Likewise.
40331 * video/i386/pc/vbe.c: Likewise.
40332 * video/i386/pc/vbeblit.c: Likewise.
40333 * video/i386/pc/vbefill.c: Likewise.
40334 * video/i386/pc/vbeutil.c: Likewise.
40335 * video/readers/tga.c: Likewise.
40337 2007-07-02 Robert Millan <rmh@aybabtu.com>
40339 * conf/i386-efi.rmk: Replace obsolete reference to
40340 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40341 with util/getroot.c.
40342 * conf/powerpc-ieee1275.rmk: Likewise.
40343 * conf/sparc64-ieee1275.rmk: Likewise.
40345 * util/grub-emu.c (main): Fix unchecked pointer handling.
40347 2007-07-02 Robert Millan <rmh@aybabtu.com>
40349 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40350 invocation to fail, in order to support partition-less media.
40352 * util/i386/pc/grub-install.in: Likewise.
40354 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40355 which fs or partmap modules are needed (akin to its sister scripts).
40357 Also use grub-probe to get rid of unportable /proc/mounts check.
40359 Print the same informational message that the other scripts do, before
40362 2007-06-23 Robert Millan <rmh@aybabtu.com>
40364 * util/update-grub_lib.in (font_path): New function. Determine whether
40365 a font file can be found and, if so, echo the GRUB path to it.
40367 * util/update-grub.in: Handle multiple terminals depending on user
40368 input, platform availability and font file presence. Propagate
40369 variables of our findings to /etc/grub.d/ children.
40371 * util/grub.d/00_header.in: Handle multiple terminals, based on
40372 environment setup by update-grub.
40374 2007-06-23 Robert Millan <rmh@aybabtu.com>
40376 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40378 2007-06-21 Robert Millan <rmh@aybabtu.com>
40380 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40381 indicate end of data section in kernel image.
40382 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40383 GRUB_KERNEL_MACHINE_DATA_END.
40385 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40387 * kern/i386/efi/startup.S: Likewise.
40389 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40390 during image generation. Implement --prefix option to override this
40392 * util/i386/efi/grub-mkimage.c: Likewise.
40394 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40395 code to make path relative to its root into a separate function.
40397 * util/i386/pc/grub-install.in: Use newly provided
40398 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40399 pass the result to grub-install --prefix.
40401 2007-06-13 Robert Millan <rmh@aybabtu.com>
40403 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40404 DEFAULT_DEVICE_MAP.
40405 * util/grub-emu.c: Use above definitions from misc.h instead of
40407 * util/grub-mkdevicemap.c: Likewise.
40408 * util/i386/pc/grub-setup.c: Likewise.
40409 * util/grub-probe.c: Likewise.
40410 (probe): Abort with grub_util_error() when either
40411 grub_guess_root_device or grub_util_get_grub_dev fails.
40413 2007-06-12 Robert Millan <rmh@aybabtu.com>
40415 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40416 "pager" assignment.
40417 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40419 * util/grub-probe.c (probe): Likewise for "drive_name".
40421 2007-06-11 Robert Millan <rmh@aybabtu.com>
40423 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40424 not just the cdrom one.
40426 2007-06-11 Robert Millan <rmh@aybabtu.com>
40428 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40429 Add --pkglibdir=DIR option to override pkglibdir.
40430 Mention --image-type=TYPE in help output.
40431 Fix --grub-mkimage (it was a no-op).
40432 Abort gracefully when no parameter is given.
40434 2007-06-11 Robert Millan <rmh@aybabtu.com>
40436 * util/i386/pc/grub-mkrescue.in: New file.
40437 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40438 * Makefile.in: Handle bin_SCRIPTS.
40440 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40442 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40443 list of video modes.
40445 2007-06-06 Robert Millan <rmh@aybabtu.com>
40447 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40448 file doesn't exist, or if it is in a filesystem grub can't read.
40450 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40451 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40452 header comment to fit in 80 columns when the variables are resolved.
40454 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40455 could be identified by update-grub. Remove redundant check for
40456 unifont.pff existence (since convert_system_path_to_grub_path now
40459 2007-06-04 Robert Millan <rmh@aybabtu.com>
40461 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40463 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40465 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40467 2007-06-04 Robert Millan <rmh@aybabtu.com>
40469 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40471 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40472 grub_apple_partition_map_fini.
40475 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40476 to access >2 TiB disks).
40478 Print disk->total_sectors with %llu instead of %lu, since this
40479 variable is always 64-bit (prevents wrong disk size from being displayed
40480 on either >2 TiB disk or big-endian CPU).
40482 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40483 into a generic case that supports all (sane) partition maps.
40485 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40488 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40489 and grub_apple_partition_map_fini() after that.
40491 2007-06-01 Robert Millan <rmh@aybabtu.com>
40493 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40495 * util/grub.d/00_header.in: Only enable gfxterm when
40496 convert_system_path_to_grub_path() succeeds.
40498 2007-05-20 Robert Millan <rmh@aybabtu.com>
40500 * util/update-grub_lib.in: New file.
40501 * DISTLIST: Add update-grub_lib.in.
40502 * conf/common.rmk: Generate update-grub_lib and install it in
40504 * Makefile.in: Add install routine for $(lib_DATA).
40506 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40507 function provided by update-grub_lib to support arbitrary paths of
40509 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40510 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40512 2007-05-19 Robert Millan <rmh@aybabtu.com>
40514 * commands/i386/cpuid.c: New module.
40515 * DISTLIST: Add it.
40516 * conf/i386-efi.rmk: Enable cpuid.mod.
40517 * conf/i386-pc.rmk: Likewise.
40519 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40521 * kern/disk.c (grub_disk_read): Check return value of
40524 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40526 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40528 * disk/raid.c (grub_raid_open): Likewise.
40530 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40532 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40533 stack instead of on the heap.
40535 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40536 before doing a read on it.
40538 * configure.ac: Only use -fno-stack-protector for the target
40541 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40543 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40544 __attribute_ ((unused)) to mode_type argument.
40546 * util/getroot.c (grub_guess_root_device): Fix #endif.
40548 * kern/misc.c (memcmp): Fix prototype.
40550 * include/grub/partition.h [GRUB_UTIL]
40551 (grub_gpt_partition_map_init): Add prototype.
40552 (grub_gpt_partition_map_fini): Likewise.
40554 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40555 at the right place.
40557 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40558 (grub_fat_read_data): Likewise.
40559 (grub_fat_find_dir): Likewise.
40561 * font/manager.c (find_glyph): Make table a const.
40562 (grub_font_get_glyph): Remove bitmap from if statement.
40564 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40566 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40567 code, first search for device in /dev/mapper, then in /dev.
40568 (grub_util_get_grub_dev): New function.
40569 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40571 * util/grub-probe.c (probe): Remove check for RAID, call
40572 grub_util_get_grub_dev() instead of
40573 grub_util_biosdisk_get_grub_dev().
40574 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40575 grub_util_biosdisk_get_grub_dev().
40576 * util/i386/pc/grub-setup.c (main): Likewise.
40578 2007-05-16 Robert Millan <rmh@aybabtu.com>
40580 * DISTLIST: Update for the latest changes.
40581 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40582 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40583 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40584 grub/util/biosdisk.h.
40585 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40586 grub/util/biosdisk.h.
40588 2007-05-16 Robert Millan <rmh@aybabtu.com>
40590 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40592 2007-05-16 Robert Millan <rmh@aybabtu.com>
40594 * util/i386/efi/grub-install.in: New.
40595 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40596 newly added grub-install.
40597 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40599 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40600 grub/util/biosdisk.h.
40601 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40602 grub/util/biosdisk.h.
40604 2007-05-16 Robert Millan <rmh@aybabtu.com>
40606 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40607 * include/grub/util/biosdisk.h: ... here.
40608 * util/i386/pc/biosdisk.c: Moved to ...
40609 * util/biosdisk.c: ... here.
40610 * util/i386/pc/getroot.c: Moved to ...
40611 * util/getroot.c: ... here.
40612 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40613 * util/grub-mkdevicemap.c: ... here.
40614 * util/i386/pc/grub-probe.c: Moved to ...
40615 * util/grub-probe.c: ... here.
40617 2007-05-15 Robert Millan <rmh@aybabtu.com>
40619 * util/update-grub.in: Remove duplicated line in grub.cfg header
40622 2007-05-13 Robert Millan <rmh@aybabtu.com>
40624 * util/update-grub.in: Fix a few assumptions about the devices holding
40625 /, /boot and /boot/grub being the same.
40626 * util/grub.d/00_header.in: Likewise.
40627 * util/grub.d/10_hurd.in: Likewise.
40628 * util/grub.d/10_linux.in: Likewise.
40630 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40631 patterns. Use that to define the `.old' suffix as older than `'.
40633 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40635 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40636 the grub.cfg header message.
40638 2007-05-11 Robert Millan <rmh@aybabtu.com>
40640 * util/update-grub.in: Create device.map if it doesn't already exist,
40641 before attempting to run grub-probe.
40642 Check for grub-probe and grub-mkdevicemap with the same code
40643 grub-install is using.
40646 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40648 * Makefile.in: Add the datarootdir autoconf variable.
40650 2007-05-09 Robert Millan <rmh@aybabtu.com>
40652 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40653 fail gracefully if dev->disk->partition == NULL.
40655 2007-05-07 Robert Millan <rmh@aybabtu.com>
40657 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40658 determine partition map module.
40659 * util/i386/pc/grub-install.in: Use this feature to decide which
40660 partition module to load, instead of hardcoding pc and gpt.
40662 2007-05-07 Robert Millan <rmh@aybabtu.com>
40664 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40665 source directory differs from build directory.
40667 2007-05-05 Robert Millan <rmh@aybabtu.com>
40669 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40672 2007-05-05 Robert Millan <rmh@aybabtu.com>
40674 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40676 2007-05-05 Robert Millan <rmh@aybabtu.com>
40678 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40679 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40681 2007-05-05 Robert Millan <rmh@aybabtu.com>
40683 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40684 (grub_probe_SOURCES): Likewise.
40685 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40686 GPT and initialize dos_part and bsd_part accordingly.
40687 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40689 (main): Activate gpt module for use during partition identification,
40690 and deactivate it afterwards.
40691 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40692 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40693 partition identification, and deactivate it afterwards.
40695 2007-05-05 Robert Millan <rmh@aybabtu.com>
40697 * term/i386/pc/console.c (grub_console_fini): Call
40698 grub_term_set_current() before grub_term_unregister().
40700 2007-05-04 Robert Millan <rmh@aybabtu.com>
40702 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40703 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40704 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40705 and update-grub_DATA.
40706 * conf/common.rmk: Build and install update-grub components.
40707 * conf/common.mk: Regenerate.
40708 * util/update-grub.in: New. Core of update-grub.
40709 * util/grub.d/00_header.in: New. Generates grub.cfg header.
40710 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
40711 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
40712 * util/grub.d/README: New. Document grub.d directory layout.
40714 2007-05-01 Robert Millan <rmh@aybabtu.com>
40716 * util/grub-emu.c: Move initialization functions
40717 grub_util_biosdisk_init() and grub_init_all() before
40718 grub_util_biosdisk_get_grub_dev(), which relies on them.
40720 2007-04-19 Robert Millan <rmh@aybabtu.com>
40722 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
40725 2007-04-18 Jerone Young <jerone@gmail.com>
40727 * kernel/elf.c: Add missing parenthesis for conditional statement
40730 2007-04-10 Jerone Young <jerone@gmail.com>
40732 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
40733 continue on and look for device node with real device name.
40735 2007-04-10 Jerone Young <jerone@gmail.com>
40737 * configure.ac: Add argument for autoconf to use transformation
40739 * Makefile.in: Add autoconf package transformation code.
40740 * util/i386/pc/grub-install.in: Likewise.
40741 * util/powerpc/ieee1275/grub-install.in: Likewise.
40743 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40745 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
40746 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
40747 (EXT2_REVISION): Likewise.
40748 (EXT2_INODE_SIZE): Likewise.
40749 (struct grub_ext2_block_group): Added a missing member
40751 (grub_ext2_read_inode): Divide by the inode size in a superblock
40752 instead of 128 to obtain INODES_PER_BLOCK.
40753 Use the macro EXT2_INODE_SIZE instead of directly using
40754 SBLOCK->INODE_SIZE.
40756 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40758 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
40759 superblock instead of the structure size to compute an
40760 offset. This fixes the problem that GRUB could not read a
40761 filesystem when inode size is different from 128-byte.
40763 2007-03-05 Marco Gerards <marco@gnu.org>
40765 * normal/main.c (read_config_file): When "menu" is not set, create
40766 an initial context.
40768 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40770 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
40771 (HEAP_LIMIT): New macro.
40772 (grub_claim_heap): Claim memory up to `heaplimit'.
40774 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40776 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
40777 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
40778 (_start): Likewise.
40779 (grub_arch_modules_addr): Return address after `_end'.
40780 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
40781 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
40782 (add_segments): Calculate `_end' from phdr size and location.
40783 (ALIGN_UP): Moved to ...
40784 * include/grub/misc.h: here.
40785 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40787 (GRUB_IEEE1275_MODULE_BASE): Removed.
40789 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40791 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
40794 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40796 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
40798 (grub_elf64_load_hook_t): Likewise.
40799 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
40802 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40804 * kern/mm.c: Update copyright.
40805 (grub_mm_debug): Correct syntax error.
40806 (grub_mm_dump_free): New function.
40807 (grub_debug_free): Call `grub_free'.
40808 * include/grub/mm.h: Update copyright.
40809 (grub_mm_dump_free): Add declaration.
40811 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40813 * include/grub/ieee1275/ieee1275.h: Update copyright.
40814 * kern/powerpc/ieee1275/init.c: Likewise.
40815 * kern/powerpc/ieee1275/openfw.c: Likewise.
40817 * loader/powerpc/ieee1275/linux.c: Likewise.
40818 * include/grub/elfload.h: Likewise.
40819 * kern/elf.c: Likewise.
40820 (grub_elf32_load): Pass `base' and `size' parameters. Update all
40822 (grub_elf64_load): Likewise.
40823 (grub_elf32_load_segment): Move to a nested function.
40824 (grub_elf64_load_segment): Likewise.
40826 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40828 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
40830 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
40831 (grub_heap_len): Likewise.
40832 (HEAP_SIZE): New macro.
40833 (grub_claim_heap): New function.
40834 (grub_machine_init): Don't claim heap directly. Call
40836 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
40837 (grub_available_iterate): New function.
40839 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
40841 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
40842 * configure.ac: Use it for testing the HOST and TARGET compilers.
40844 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
40846 * Makefile.in (enable_grub_emu): New variable.
40847 * configure.ac (--enable-grub-emu): New option.
40848 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
40849 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
40850 * conf/i386-pc.rmk: Likewise.
40851 * conf/powerpc-ieee1275.rmk: Likewise.
40852 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
40854 2006-12-12 Marco Gerards <marco@gnu.org>
40856 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
40858 * kern/env.c (grub_env_unset): Don't free the member `value' when
40859 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
40862 * normal/main.c (current_menu): Removed.
40863 (free_menu): Unset the `menu' environment variable.
40864 (grub_normal_menu_addentry): Make use of the environment variable
40865 `menu', instead of using the global `current_menu'. Allocate
40866 memory for the sourcecode of this entry.
40867 (read_config_file): New argument `nested', changed all callers.
40868 Only in the case of a new context, initialize a new menu. Set the
40869 `menu' environment variable.
40870 (grub_normal_execute): Don't set and unset the environment
40871 variable `menu' here anymore. Only free the menu when leaving the
40874 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
40877 2006-12-11 Marco Gerards <marco@gnu.org>
40879 * normal/menu_entry.c (run): Fix off by one bug so the last line
40880 is executed. Move the loader check to outside the loop.
40882 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
40884 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
40886 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
40888 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
40889 the number of sectors. Reported by Andrey Shuvikov
40890 <mr_hyro@yahoo.com>.
40892 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
40894 * kern/disk.c (grub_disk_read): When there is a read error, always
40895 try to read only the necessary data.
40897 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
40899 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
40901 [GRUB_UTIL] (grub_raid_fini): Likewise.
40902 [GRUB_UTIL] (grub_lvm_init): Likewise.
40903 [GRUB_UTIL] (grub_lvm_fini): Likewise.
40904 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
40905 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
40906 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
40907 and grub_raid_fini().
40909 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40911 * include/grub/types.h (__unused): Rename to UNUSED.
40912 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
40913 (grub_elf64_size): Likewise.
40915 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40917 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
40918 grub_error_push and grub_error_pop in the error-handling path.
40919 (grub_elf32_load_segment): Only call grub_file_read with non-zero
40922 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40924 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
40925 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40927 (kernel_elf_SOURCES): Likewise.
40928 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
40929 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
40930 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40931 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40932 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
40933 (elf_mod_SOURCES): New variable.
40934 (elf_mod_CFLAGS): Likewise.
40935 (elf_mod_LDFLAGS): Likewise.
40936 * include/grub/types.h (__unused): New macro.
40937 * include/grub/elfload.h: New file.
40938 * kern/elf.c: Likewise.
40939 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
40940 (ELF32_LOADMASK): New macro.
40941 (ELF64_LOADMASK): Likewise.
40942 (vmlinux): Removed.
40943 (grub_linux_load32): New function.
40944 (grub_linux_load64): Likewise.
40945 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
40946 Use grub_elf_t instead of grub_file_t.
40948 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
40950 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
40951 `catch_result' to struct set_color_args.
40953 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40955 * normal/menu.c: Include grub/script.h.
40956 * normal/menu_entry.c: Likewise.
40957 * include/grub/normal.h: Do not include grub/script.h.
40959 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40961 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
40963 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40965 * kern/disk.c (grub_disk_open): Print debug messages when opening a
40967 (grub_disk_close): Print debug messages when closing a disk.
40968 (grub_disk_read): Print debug messages when disk read fails.
40969 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
40971 * kern/partition.c: Include misc.h.
40972 (grub_partition_iterate): Print debug messages when detecting
40975 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40977 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
40979 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
40981 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
40983 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40984 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
40986 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
40988 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
40989 instead of sizeof(lv). Patch by Michael Guntsche.
40991 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
40993 * disk/lvm.c: Rename VGS to VG_LIST.
40994 (grub_lvm_iterate): Change VGS->LV to VG-LV.
40995 (grub_lvm_open): Likewise.
40996 Thanks to Michael Guntsche for finding this bug.
40998 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41000 * configure.ac (AC_INIT): Bumped to 1.95.
41002 2006-10-14 Robert Millan <rmh@aybabtu.com>
41004 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41005 with "/dev/.static/dev/md".
41007 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41009 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41010 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41011 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41012 DRIVE_NAME are always freed.
41014 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41015 DOS_PART, as a DOS partition is counted from one instead of zero
41016 now. Reported by Robert Millan.
41018 2006-10-14 Robert Millan <rmh@aybabtu.com>
41020 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41021 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41022 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41023 string returned by grub_guess_root_device.
41024 * util/i386/pc/grub-setup.c: Likewise.
41025 * util/i386/pc/grub-probefs.c: Likewise.
41027 * util/i386/pc/grub-probefs.c: Rename to ...
41028 * util/i386/pc/grub-probe.c: ... this.
41029 * DISTLIST: Remove grub-probefs, add grub-probe.
41030 * conf/i386-efi.rmk: Likewise.
41031 * conf/i386-pc.rmk: Likewise.
41032 * util/i386/pc/grub-install.in: Likewise.
41034 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41035 choose which information we want to print.
41037 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41039 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41040 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41041 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41042 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41043 video/readers/tga.c and video/i386/pc/vbeutil.c.
41045 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41047 Added support for RAID and LVM.
41049 * disk/lvm.c: New file.
41050 * disk/raid.c: Likewise.
41051 * include/grub/lvm.h: Likewise.
41052 * include/grub/raid.h: Likewise.
41053 * include/grub/util/lvm.h: Likewise.
41054 * include/grub/util/raid.h: Likewise.
41055 * util/lvm.c: Likewise.
41056 * util/raid.c: Likewise.
41058 * include/grub/disk.h (grub_disk_dev_id): Add
41059 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41060 (grub_disk_get_size): New prototype.
41061 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41062 returns a partition.
41063 (grub_disk_get_size): New function.
41065 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41066 verbatim if grub_install_dos_part is -2.
41068 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41071 * util/i386/pc/grub-setup.c (setup): New argument
41072 MUST_EMBED. Force embedding of GRUB when the argument is
41073 true. Close FILE before returning.
41074 (main): Add support for RAID and LVM.
41076 * conf/common.rmk: Add RAID and LVM modules.
41077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41079 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41081 * kern/misc.c (grub_strstr): New function.
41082 * include/grub/misc.h (grub_strstr): New prototype.
41084 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41086 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41088 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41090 * kern/misc.c (grub_strtoull): Guess the base only if not
41093 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41095 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41098 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41100 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41102 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41103 Remove `flags' argument. All callers changed.
41104 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41105 (IEEE1275_IHANDLE_INVALID): New variable.
41106 (IEEE1275_CELL_INVALID): New variable.
41107 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41108 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41109 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41110 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41111 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41112 codes from Open Firmware. All callers updated.
41113 (grub_ieee1275_next_property): Directly return Open Firmware return
41115 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41116 Standardize error checking from `grub_ieee1275_get_property'.
41117 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41118 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41120 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41122 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41123 `instance_to_package_args' to `instance_to_path_args'.
41125 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41126 `grub_ieee1275_chosen'.
41128 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41129 `grub_ieee1275_interpret'.
41131 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41133 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41135 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41137 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41138 (__cmpdi): Likewise.
41140 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41141 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41144 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41146 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41147 to type `grub_ssize_t'.
41148 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41150 2006-09-22 Marco Gerards <marco@gnu.org>
41152 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41155 2006-09-22 Marco Gerards <marco@gnu.org>
41157 * commands/echo.c: New file.
41159 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41161 * conf/common.rmk (echo_mod_SOURCES): New variable.
41162 (echo_mod_CFLAGS): Likewise.
41163 (echo_mod_LDFLAGS): Likewise.
41165 2006-09-22 Marco Gerards <marco@gnu.org>
41167 * normal/main.c (get_line): Malloc memory instead of using
41168 preallocated memory. Removed the arguments `cmdline' and
41169 `max_len'. Updated all callers.
41171 2006-09-22 Marco Gerards <marco@gnu.org>
41173 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41174 (normal_mod_DEPENDENCIES): Likewise.
41176 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41177 (normal_mod_DEPENDENCIES): Likewise.
41179 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41181 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41183 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41185 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41186 (normal_mod_DEPENDENCIES): Likewise.
41187 * conf/i386-pc.mk: Regenerate.
41188 * conf/i386-efi.mk: Likewise
41189 * conf/common.mk: Likewise.
41190 * conf/powerpc-ieee1275.mk: Likewise.
41191 * conf/sparc64-ieee1275.mk: Likewise.
41193 2006-09-22 Robert Millan <rmh@aybabtu.com>
41195 Sync with i386 version.
41196 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41197 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41199 2006-09-21 Robert Millan <rmh@aybabtu.com>
41201 Import from GRUB Legacy (lib/device.c):
41202 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41203 (init_device_map) [__linux__]: Add support for I2O devices.
41205 2006-09-14 Marco Gerards <marco@gnu.org>
41207 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41210 2006-09-14 Robert Millan <rmh@aybabtu.com>
41212 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41215 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41217 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41218 before adding it to device.map.
41220 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41222 * genmk.rb: Let GCC generate dependencies the first time it
41223 compiles a file; using the -MD option.
41224 * conf/common.mk: Regenerate.
41225 * conf/i386-pc.mk: Likewise.
41226 * conf/i386-efi.mk: Likewise.
41227 * conf/powerpc-ieee1275.mk: Likewise.
41228 * conf/sparc64-ieee1275.mk: Likewise.
41230 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41232 Move the prototypes of grub_setjmp and grub_longjmp to
41233 cpu/setjmp.h, so that each architecture may specify different
41236 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41237 (grub_longjmp): Likewise.
41238 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41239 (grub_longjmp): Likewise.
41240 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41241 (grub_longjmp): Likewise.
41243 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41244 [!GRUB_UTIL] (grub_longjmp): Removed.
41246 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41248 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41249 "color!" method does not return any value.
41251 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41253 * include/grub/bitmap.h: New file.
41255 * include/grub/i386/pc/vbeutil.h: Likewise.
41257 * video/bitmap.c: Likewise.
41259 * video/readers/tga.c: Likewise.
41261 * video/i386/pc/vbeutil.c: Likewise.
41263 * commands/videotest.c: Code cleanup and updated to reflect to new
41266 * term/gfxterm.c: Likewise.
41268 * video/video.c: Likewise.
41270 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41271 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41272 (bitmap_mod_SOURCES): New entry.
41273 (bitmap_mod_CFLAGS): Likewise.
41274 (bitmap_mod_LDFLAGS): Likewise.
41275 (tga_mod_SOURCES): Likewise.
41276 (tga_mod_CFLAGS): Likewise.
41277 (tga_mod_LDFLAGS): Likewise.
41279 * include/grub/video.h (grub_video_blit_operators): New enum type.
41280 (grub_video_render_target): Changed as forward declaration and moved
41281 actual definition to be video driver specific.
41282 (grub_video_adapter.blit_bitmap): Added blitting operator.
41283 (grub_video_adapter.blit_render_target): Likewise.
41284 (grub_video_blit_bitmap): Likewise.
41285 (grub_video_blit_render_target): Likewise.
41287 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41288 driver specific render target definition.
41289 (grub_video_vbe_map_rgba): Added driver internal helper.
41290 (grub_video_vbe_unmap_color): Updated to use
41291 grub_video_i386_vbeblit_info.
41292 (grub_video_vbe_get_video_ptr): Likewise.
41294 * include/grub/i386/pc/vbeblit.h
41295 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41296 grub_video_i386_vbeblit_info.
41297 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41298 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41299 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41300 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41301 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41302 (grub_video_i386_vbeblit_index_index): Likewise.
41303 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41304 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41305 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41306 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41308 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41311 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41312 include/grub/i386/pc/vbeblit.h.
41314 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41315 Updated to use grub_video_i386_vbeblit_info.
41316 (grub_video_i386_vbefill_R8G8B8): Likewise.
41317 (grub_video_i386_vbefill_index): Likewise.
41318 (grub_video_i386_vbefill): Added generic filler.
41320 * video/i386/pc/vbefill.c: Updated to reflect changes on
41321 include/grub/i386/pc/vbefill.h.
41323 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41324 grub_video_i386_vbeblit_info.
41325 (grub_video_vbe_unmap_color): Likewise.
41326 (grub_video_vbe_blit_glyph): Likewise.
41327 (grub_video_vbe_scroll): Likewise.
41328 (grub_video_vbe_draw_pixel): Removed function.
41329 (grub_video_vbe_get_pixel): Likewise.
41330 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41331 updated code to use it.
41332 (common_blitter): Added common blitter for render target and bitmap.
41333 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41334 (grub_video_vbe_blit_render_target): Likewise.
41336 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41338 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41339 is in text mode if there is no console control protocol instance
41342 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41344 * include/grub/video.h: Code cleanup.
41346 * include/grub/i386/pc/vbe.h: Likewise.
41348 * video/i386/pc/vbe.c: Likewise.
41350 * video/i386/pc/vbeblit.c: Likewise.
41352 * video/i386/pc/vbefill.c: Likewise.
41354 * video/video.c: Likewise. Also added more comments.
41356 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41358 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41359 (struct grub_biosdisk_dap): Likewise.
41361 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41362 linkage settings for all functions.
41364 2006-07-12 Marco Gerards <marco@gnu.org>
41366 * configure.ac (--enable-mm-debug): Fix typo.
41368 * genkernsyms.sh.in: Use proper quoting for `CC'.
41370 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41372 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41373 (normal_mod_ASFLAGS): Remove "-m32".
41375 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41377 * util/misc.c: Include config.h.
41378 [!HAVE_MEMALIGN]: Do not include malloc.h.
41379 (grub_memalign): Use posix_memalign, if present. Then, use
41380 memalign, if present. Otherwise, emit an error.
41382 * util/grub-emu.c: Do not include malloc.h.
41384 * include/grub/util/misc.h: Include unistd.h. This is required for
41385 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41386 D. Eades III <hde@foobar-qux.org>.
41388 * configure.ac (AC_GNU_SOURCE): Added.
41389 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41392 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41394 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41395 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41397 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41399 * include/grub/types.h (grub_host_addr_t): Rename to
41400 grub_target_addr_t.
41401 (grub_host_off_t): Rename to grub_target_off_t.
41402 (grub_host_size_t): Rename to grub_target_size_t.
41403 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41404 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41406 * include/grub/kernel.h (struct grub_module_header): Change type
41407 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41408 (grub_module_info): Likewise.
41410 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41412 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41413 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41414 Velazquez <jesus.velazquez@gmail.com>.
41416 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41418 Count partitions from 1 instead of 0 in the string representation
41419 of partitions. Still use 0-based internally.
41421 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41422 (sun_partition_map_iterate): Use grub_partition_t instead of
41423 struct grub_partition *. Cast DESC->START_CYLINDER to
41424 grub_uint64_t after converting the endian.
41425 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41426 (sun_partition_map_get_name): Add 1 to P->INDEX.
41428 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41430 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41432 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41433 zero instead of one.
41434 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41435 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41437 * partmap/apple.c (apple_partition_map_iterate): Change the type
41438 of POS to unsigned.
41439 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41440 (apple_partition_map_get_name): Add 1 into P->INDEX.
41442 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41443 of POS to unsigned.
41444 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41445 calculate the offset of a partition.
41446 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41447 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41449 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41450 SECTOR to grub_disk_addr_t.
41451 (acorn_partition_map_iterate): Likewise.
41452 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41453 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41455 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41457 * kern/i386/pc/init.c (make_install_device): Add 1 into
41458 GRUB_INSTALL_DOS_PART.
41460 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41463 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41465 Clean up the code to support 64-bit addressing in disks and
41466 files. This change is not enough for filesystems yet.
41468 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41469 type of "start" to grub_uint64_t.
41470 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41471 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41472 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41475 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41476 to grub_disk_addr_t.
41478 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41481 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41483 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41486 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41488 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41490 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41492 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41493 to grub_off_t, to detect an error from grub_file_seek.
41494 (grub_multiboot_load_elf32): Likewise.
41496 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41497 maximum unsigned long value when an overflow is detected.
41498 (grub_strtoull): New function.
41499 (grub_divmod64): Likewise.
41500 (grub_lltoa): use grub_divmod64.
41502 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41504 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41505 the pointer to next character. Use grub_strtoull instead of
41507 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41508 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41511 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41512 return value is signed.
41513 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41514 test if OFFSET is less than zero, as OFFSET is unsigned now.
41516 * kern/disk.c (struct grub_disk_cache): Change the type of
41517 "sector" to grub_disk_addr_t.
41518 (grub_disk_cache_get_index): Change the type of SECTOR to
41519 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41520 unsigned after shifting.
41521 (grub_disk_cache_invalidate): Change the type of SECTOR to
41523 (grub_disk_cache_unlock): Likewise.
41524 (grub_disk_cache_store): Likewise.
41525 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41526 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41527 grub_disk_addr_t and grub_uint64_t, respectively.
41528 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41529 body, as the value of OFFSET is tweaked by
41530 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41531 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41533 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41534 body, as the value of OFFSET is tweaked by
41535 grub_disk_check_range. Change the types of LEN and N to
41538 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41539 and "saved_offset" to grub_off_t.
41540 (test_header): Cast BUF to char *.
41541 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41543 (grub_gzio_read): Change the types of OFFSET and SIZE to
41544 grub_off_t and grub_size_t, respectively.
41546 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41548 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41549 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41550 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41551 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41552 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41554 * include/grub/types.h (grub_off_t): Unconditionally set to
41556 (grub_disk_addr_t): Changed to grub_uint64_t.
41558 * include/grub/partition.h (struct grub_partition): Change the
41559 types of "start", "len" and "offset" to grub_disk_addr_t,
41560 grub_uint64_t and grub_disk_addr_t, respectively.
41561 (grub_partition_get_start): Return grub_disk_addr_t.
41562 (grub_partition_get_len): Return grub_uint64_t.
41564 * include/grub/misc.h (grub_strtoull): New prototype.
41565 (grub_divmod64): Likewise.
41567 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41568 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41569 grub_off_t, respectively.
41570 All callers and references changed.
41572 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41573 grub_size_t in "read".
41574 All callers and references changed.
41576 * include/grub/file.h (struct grub_file): Change the types of
41577 "offset" and "size" to grub_off_t and grub_off_t,
41578 respectively. Change the type of SECTOR to grub_disk_addr_t in
41580 (grub_file_read): Change the type of LEN to grub_size_t.
41581 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41583 (grub_file_size): Return grub_off_t.
41584 (grub_file_tell): Likewise.
41585 All callers and references changed.
41587 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41588 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41590 (struct grub_disk): Change the type of "total_sectors" to
41591 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41593 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41594 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41595 (grub_disk_write): Likewise.
41596 All callers and references changed.
41598 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41599 char * for grub_strncmp to silence gcc.
41600 (grub_iso9660_mount): Likewise.
41601 (grub_iso9660_mount): Likewise.
41602 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41604 (grub_iso9660_iterate_dir): Likewise.
41605 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41607 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41608 LEN to grub_disk_addr_t and grub_size_t, respectively.
41610 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41612 * fs/jfs.c (grub_jfs_read_file): Likewise.
41614 * fs/minix.c (grub_jfs_read_file): Likewise.
41616 * fs/sfs.c (grub_jfs_read_file): Likewise.
41618 * fs/ufs.c (grub_jfs_read_file): Likewise.
41620 * fs/xfs.c (grub_jfs_read_file): Likewise.
41622 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41623 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41626 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41627 BLKNR to -1 instead of returning GRUB_ERRNO.
41628 (grub_ext2_read_file): Change the types of SECTOR and
41629 LEN to grub_disk_addr_t and grub_size_t, respectively.
41631 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41632 LEN to grub_disk_addr_t and grub_size_t, respectively.
41634 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41637 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41638 string. Do not cast SECTOR explicitly.
41640 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41641 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41642 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41643 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41644 over 2TB and LBA mode is not supported, raise an error.
41645 (get_safe_sectors): New function.
41646 (grub_biosdisk_read): Use get_safe_sectors.
41647 (grub_biosdisk_write): Likewise.
41649 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41650 (grub_efidisk_write): Likewise.
41652 * disk/loopback.c (delete_loopback): Cosmetic changes.
41653 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41655 (grub_loopback_open): Likewise.
41656 (grub_loopback_read): Likewise. Also, change the type of POS to
41657 grub_off_t, and fix the usage of grub_memset.
41659 * commands/i386/pc/play.c: Include grub/machine/time.h.
41661 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41664 * commands/configfile.c: Include grub/env.h.
41666 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41667 GRUB_ERRNO directly instead. Change the type of POS to
41668 grub_off_t. Follow the coding standard.
41670 * commands/blocklist.c: Include grub/partition.h.
41671 (grub_cmd_blocklist): Return an error if the underlying device is
41672 not a disk. Take the starting sector of a partition into account,
41673 if a partition is used.
41675 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41677 (lba_mode): Support 64-bit addresses.
41678 (chs_mode): Likewise.
41679 (copy_buffer): Adapted to the new offsets of a length field and a
41681 (blocklist_default_start): Allocate 64-bit space.
41683 * boot/i386/pc/boot.S (force_lba): Removed.
41684 (boot_drive): Moved to under KERNEL_SECTOR.
41685 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41687 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41689 (lba_mode): Refactored to support a 64-bit address. More size
41691 (setup_sectors): Likewise.
41693 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41695 * DISTLIST: Added include/grub/i386/linux.h. Removed
41696 include/grub/i386/pc/linux.h
41698 * configure.ac (AC_INIT): Bumped to 1.94.
41700 * config.guess: Updated from gnulib.
41701 * config.sub: Likewise.
41702 * install-sh: Likewise.
41703 * mkinstalldirs: Likewise.
41705 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41707 * conf/common.rmk (grub_modules_init.lst): Depended on
41708 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41711 * genmk.rb (PModule::rule): Reverted the previous change.
41713 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41715 * conf/common.rmk (grub_modules_init.lst): Depends on
41716 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
41717 that the target does not exist before producing.
41718 (grub_modules_init.h): Remove the target before generating.
41719 (grub_emu_init.c): Likewise.
41721 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
41723 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
41725 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
41726 for the target-specific tests. Make sure that we also have the
41727 up-to-date target variables for those tests.
41729 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41731 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
41732 (PModule::rule): Likewise.
41734 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41736 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
41737 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
41738 target-specific flags should be prefixed.
41739 (PModule::rule): Likewise.
41741 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
41743 * configure.ac (CMP): Check if cmp is available explicitly.
41745 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
41747 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
41748 (target_cpu): New variable.
41749 (pkglibdir): Use target_cpu instead of host_cpu.
41751 * util/i386/pc/grub-install.in (host_cpu): Removed.
41752 (target_cpu): New variable.
41753 (pkglibdir): Use target_cpu instead of host_cpu.
41755 * util/genmoddep.c: Removed.
41757 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
41758 instead of GRUB_HOST_SIZEOF_VOID_P.
41759 * kern/dl.c: Likewise.
41761 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
41763 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41764 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41765 (GRUB_TARGET_SIZEOF_LONG): ... this.
41766 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41767 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41768 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41770 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41771 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41772 (GRUB_TARGET_SIZEOF_LONG): ... this.
41773 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41774 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41775 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41777 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41778 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41779 (GRUB_TARGET_SIZEOF_LONG): ... this.
41780 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41781 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41783 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
41784 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
41785 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
41786 instead of GRUB_HOST_SIZEOF_LONG.
41787 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
41788 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
41789 GRUB_CPU_WORDS_BIGENDIAN.
41790 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
41791 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
41794 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
41795 (genmoddep_SOURCES): Likewise.
41796 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
41797 (genmoddep_SOURCES): Likewise.
41798 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
41799 (genmoddep_SOURCES): Likewise.
41800 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
41802 (genmoddep_SOURCES): Likewise.
41804 * genmoddep.awk: New file.
41806 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
41807 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
41808 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
41809 (PModule::rule): Likewise.
41810 (Program::rule): Likewise.
41811 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
41812 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
41815 * configure.ac: Rewritten intensively to use host and target
41816 instead of build and host, respectively.
41818 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
41819 (host_cpu): Removed.
41820 (target_cpu): New variable.
41821 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
41822 (BUILD_CC): Removed.
41823 (BUILD_CFLAGS): Likewise.
41824 (BUILD_CPPFLAGS): Likewise.
41825 (TARGET_CC): New variable.
41826 (TARGET_CFLAGS): Likewise.
41827 (TARGET_CPPFLAGS): Likewise.
41828 (TARGET_LDFLAGS): Likewise.
41830 (include): Use target_cpu instead of host_cpu.
41831 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
41833 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
41835 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
41837 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
41838 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
41839 field 'false' to 'exec_on_false'.
41840 (grub_script_create_cmdif): Renamed argument names to reflect above
41843 * normal/execute.c (grub_script_execute_cmdif): Likewise.
41845 * normal/script.c (grub_script_create_cmdif): Likewise.
41847 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
41849 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
41851 (grub_hfsplus_btree_recptr): Likewise.
41852 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
41853 FILEBLOCK both to pass a block number and store next block
41855 (grub_hfsplus_read_block): Rewritten heavily to support an extent
41856 overflow file correctly. Specify errors appropriately, because
41857 fshelp expects that GRUB_ERRNO is set when fails. Reuse
41858 grub_hfsplus_btree_recptr to get the pointer to a found key.
41859 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
41862 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
41864 (_linux_mod_SOURCES): New variable.
41865 (_linux_mod_CFLAGS): Likewise.
41866 (_linux_mod_LDFLAGS): Likewise.
41867 (linux_mod_SOURCES): Likewise.
41868 (linux_mod_CFLAGS): Likewise.
41869 (linux_mod_LDFLAGS): Likewise.
41871 * DISTLIST: Added loader/i386/efi/linux.c,
41872 loader/i386/efi/linux_normal.c and
41873 include/grub/i386/efi/loader.h.
41875 * loader/i386/efi/linux.c: New file.
41876 * loader/i386/efi/linux_normal.c: Likewise.
41877 * include/grub/i386/efi/loader.h: Likewise.
41879 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
41881 * commands/blocklist.c: New file.
41883 * DISTLIST: Added commands/blocklist.c.
41885 * term/efi/console.c (grub_console_highlight_color): Use a lighter
41886 color for the background, and a darker color for the foreground.
41887 (grub_console_checkkey): Return READ_KEY.
41888 (grub_console_cls): Set the background to
41889 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
41891 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
41893 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
41894 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
41896 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
41899 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
41900 BG. The spec is wrong again.
41902 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
41904 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
41906 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41907 commands/blocklist.c.
41908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41910 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
41911 (blocklist_mod_SOURCES): New variable.
41912 (blocklist_mod_CFLAGS): Likewise.
41913 (blocklist_mod_LDFLAGS): Likewise.
41915 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
41917 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
41919 (lba_mode): Use %eax more intensively to reduce the code size.
41921 2006-05-20 Marco Gerards <marco@gnu.org>
41923 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
41925 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
41927 (script): Accept leading newlines.
41928 (newlines): New rule to describe 0 or more newlines.
41929 (commands): Accept `command' with trailing newline. Fixed the
41930 order in which arguments were passed to `grub_script_add_cmd'.
41931 Accept commands separated by newlines.
41932 (function): Changed to accept newlines.
41933 (menuentry) Rewritten.
41935 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
41936 front of the list, instead of to the end.
41938 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
41940 * util/i386/pc/grub-install.in (bindir): New variable.
41941 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
41942 Shaver <lbgwjl@gmail.com>.
41944 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
41946 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
41947 grub/machine/linux.h
41948 * loader/i386/pc/linux.c: Likewise.
41950 * include/grub/i386/pc/linux.h: Moved to ...
41951 * include/grub/i386/linux.h: ... here.
41953 * include/grub/i386/linux.h (struct linux_kernel_params): New
41956 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
41958 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
41960 (grub_video_vbe_blit_glyph): Likewise.
41961 (grub_video_vbe_blit_bitmap): Likewise.
41962 (grub_video_vbe_blit_render_target): Likewise.
41964 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
41966 * configure.ac (--with-platform): Properly quote the square
41969 2006-05-08 Marco Gerards <marco@gnu.org>
41971 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
41973 (kernel_elf_HEADERS): ...to this. Updated all users.
41974 (grubof_symlist.c): Renamed from this...
41975 (kernel_elf_symlist.c): ...to this. Updated all users.
41976 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41977 (grubof_SOURCES): Renamed from this...
41978 (kernel_elf_SOURCES): ...to this.
41979 (grubof_HEADERS): Renamed from this...
41980 (kernel_elf_HEADERS): ...to this.
41981 (grubof_CFLAGS): Renamed from this...
41982 (kernel_elf_CFLAGS): ...to this.
41983 (grubof_ASFLAGS): Renamed from this...
41984 (kernel_elf_ASFLAGS): ...to this.
41985 (grubof_LDFLAGS): Renamed from this...
41986 (kernel_elf_LDFLAGS): ...to this.
41988 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
41990 (kernel_elf_HEADERS): ...to this. Updated all users.
41991 (grubof_symlist.c): Renamed from this...
41992 (kernel_elf_symlist.c): ...to this. Updated all users.
41993 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41994 (grubof_SOURCES): Renamed from this...
41995 (kernel_elf_SOURCES): ...to this.
41996 (grubof_HEADERS): Renamed from this...
41997 (kernel_elf_HEADERS): ...to this.
41998 (grubof_CFLAGS): Renamed from this...
41999 (kernel_elf_CFLAGS): ...to this.
42000 (grubof_ASFLAGS): Renamed from this...
42001 (kernel_elf_ASFLAGS): ...to this.
42002 (grubof_LDFLAGS): Renamed from this...
42003 (kernel_elf_LDFLAGS): ...to this.
42005 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42006 `kernel.elf' instead of `grubof'.
42008 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42010 Add --with-platform to configure. Use pkglibdir instead of
42011 pkgdatadir. This is reported by Roger Leigh.
42013 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42014 (host_vendor): Likewise.
42015 (host_os): Likewise.
42016 (pkgdatadir): Likewise.
42017 (platform): New variable.
42018 (pkglibdir): Likewise.
42019 Use PKGLIBDIR instead of PKGDATADIR.
42021 * util/i386/pc/grub-install.in (datadir): Removed.
42022 (host_vendor): Likewise.
42023 (host_os): Likewise.
42024 (pkgdatadir): Likewise.
42025 (platform): New variable.
42026 (pkglibdir): Likewise.
42027 Use PKGLIBDIR instead of PKGDATADIR.
42029 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42030 instead of GRUB_DATADIR.
42032 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42034 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42037 * configure.ac (--with-platform): New option.
42038 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42040 * Makefile.in: Include a makefile based on PLATFORM instead of
42042 (pkgdatadir): Not appended by the machine type.
42043 (pkglibdir): Appended by the machine type.
42044 (host_vendor): Removed.
42045 (platform): New variable.
42046 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42047 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42048 (uninstall): Likewise.
42050 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42052 Use the environment context in the menu. Remove the commands
42053 "default" and "timeout", and use variables instead.
42055 * normal/menu.c: Include grub/env.h.
42056 (print_entry): Cast TITLE to silence gcc.
42057 (get_timeout): New function.
42058 (set_timeout): Likewise.
42059 (get_entry_number): Likewise.
42060 (run_menu): Use a default entry, a fallback entry and a timeout
42061 in the environment variables "default", "fallback" and
42062 "timeout". Also, tweak the default entry if it is not within the
42063 current menu entries.
42064 (grub_menu_run): Use a fallback entry in the environment variable
42067 * normal/main.c (read_config_file): Do not initialize
42068 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42070 (grub_normal_execute): Use a data slot to store the menu.
42072 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42073 fallback_entry and timeout.
42074 (struct grub_menu_list): Removed.
42075 (grub_menu_list_t): Likewise.
42076 (struct grub_context): Likewise.
42077 (grub_context_t): Likewise.
42078 (grub_context_get): Likewise.
42079 (grub_context_get_current_menu): Likewise.
42080 (grub_context_push_menu): Likewise.
42081 (grub_context_pop_menu): Likewise.
42082 (grub_default_init): Likewise.
42083 (grub_default_fini): Likewise.
42084 (grub_timeout_init): Likewise.
42085 (grub_timeout_fini): Likewise.
42087 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42089 (normal_mod_SOURCES): Removed normal/context.c.
42091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42092 commands/default.c, commands/timeout.c and normal/context.c.
42093 (normal_mod_SOURCES): Removed normal/context.c.
42095 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42096 commands/timeout.c and normal/context.c.
42097 (normal_mod_SOURCES): Removed normal/context.c.
42099 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42100 commands/default.c, commands/timeout.c and normal/context.c.
42101 (normal_mod_SOURCES): Removed normal/context.c.
42103 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42105 (default_mod_SOURCES): Removed.
42106 (default_mod_CFLAGS): Likewise.
42107 (default_mod_LDFLAGS): Likewise.
42108 (timeout_mod_SOURCES): Removed.
42109 (timeout_mod_CFLAGS): Likewise.
42110 (timeout_mod_LDFLAGS): Likewise.
42112 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42115 * commands/default.c: Removed.
42116 * commands/timeout.c: Likewise.
42117 * normal/context.c: Likewise.
42119 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42121 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42123 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42125 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42126 "next" to "prev" for readability.
42127 (struct grub_env_sorted_var): New struct.
42128 (grub_env_context): Renamed to ...
42129 (initial_context): ... this.
42130 (grub_env_var_context): Renamed to ...
42131 (current_context): ... this.
42132 (grub_env_find): Look only at CURRENT_CONTEXT.
42133 (grub_env_context_open): Rewritten to copy exported variables from
42135 (grub_env_context_close): Rewritten according to the new
42136 scheme. Also, add an assertion to prevent the initial context from
42138 (grub_env_insert): Removed the code for the sorted list.
42139 (grub_env_remove): Likewise.
42140 (grub_env_export): Simply mark the variable with
42141 GRUB_ENV_VAR_GLOBAL.
42142 (grub_env_set): A cosmetic change for naming consistency.
42143 (grub_env_get): Likewise.
42144 (grub_env_unset): Likewise.
42145 (grub_env_iterate): Rewritten to sort variables within this
42147 (grub_register_variable_hook): Fixed for naming consistency. Call
42148 grub_env_find again, only if NAME is not found at the first time.
42149 (mangle_data_slot_name): New function.
42150 (grub_env_set_data_slot): Likewise.
42151 (grub_env_get_data_slot): Likewise.
42152 (grub_env_unset_data_slot): Likewise.
42154 * include/grub/env.h (grub_env_var_type): New enum.
42155 (GRUB_ENV_VAR_LOCAL): New constant.
42156 (GRUB_ENV_VAR_GLOBAL): Likewise.
42157 (GRUB_ENV_VAR_DATA): Likewise.
42158 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42160 (grub_env_set): Replace VAR with NAME for consistency.
42161 (grub_register_variable_hook): Likewise.
42162 (grub_env_export): Specify the name of the argument.
42163 (grub_env_set_data_slot): New prototype.
42164 (grub_env_get_data_slot): Likewise.
42165 (grub_env_unset_data_slot): Likewise.
42167 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42169 Extend the loader so that GRUB can accept a loader which comes
42170 back to GRUB when a loaded image exits. Also, this change adds
42171 support for a chainloader on EFI.
42173 * term/efi/console.c: Include grub/misc.h.
42174 (grub_console_checkkey): Display a scan code on the top for
42175 debugging. This will be removed once the EFI port gets stable.
42176 Correct the scan code mapping.
42178 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42179 allocate memory from larger regions, in order to reduce the number
42180 of allocated regions. Otherwise, the MacOSX loader panics.
42181 (filter_memory_map): Avoid less than 1MB for compatibility with
42183 (add_memory_regions): Allocate from the tail of a region, if
42184 possible, to avoid allocating a region near to 1MB, for the MacOSX
42187 * kern/efi/init.c (grub_efi_set_prefix): Specify
42188 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42190 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42191 argument IMAGE_HANDLE and specify it to get a loaded image.
42192 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42193 grub_efi_get_loaded_image.
42194 (grub_efi_get_filename): Divide the length by the size of
42196 (grub_efi_get_device_path): New function.
42197 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42198 the length by the size of grub_efi_char16_t for a file path device
42201 * kern/loader.c (grub_loader_noreturn): New variable.
42202 (grub_loader_set): Accept a new argument NORETURN. Set
42203 GRUB_LOADER_NORETURN to NORETURN.
42204 All callers changed.
42205 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42208 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42210 (grub_efi_get_loaded_image): Take an argument to specify an image
42213 * include/grub/loader.h (grub_loader_set): Added one more argument
42216 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42217 instead of grub_efi_open_protocol.
42218 (grub_efidisk_get_device_name): Likewise.
42219 (grub_efidisk_close): Print a newline.
42220 (grub_efidisk_get_device_handle): Fixed to use
42221 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42222 GRUB_EFI_DEVICE_PATH_TYPE.
42224 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42225 * kern/efi/efi.c (device_path_guid): ... here.
42227 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42229 (kernel_mod_HEADERS): Added efi/disk.h.
42230 (_chain_mod_SOURCES): New variable.
42231 (_chain_mod_CFLAGS): Likewise.
42232 (_chain_mod_LDFLAGS): Likewise.
42233 (chain_mod_SOURCES): Likewise.
42234 (chain_mod_CFLAGS): Likewise.
42235 (chain_mod_LDFLAGS): Likewise.
42237 * DISTLIST: Added include/grub/efi/chainloader.h,
42238 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42240 * include/grub/efi/chainloader.h: New file.
42241 * loader/efi/chainloader.c: Likewise.
42242 * loader/efi/chainloader_normal.c: Likewise.
42244 2006-04-30 Marco Gerards <marco@gnu.org>
42246 * commands/configfile.c (grub_cmd_source): New function.
42247 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42248 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42250 2006-04-30 Marco Gerards <marco@gnu.org>
42252 * normal/execute.c (grub_script_execute_cmd): Change the return
42253 type to `grub_err_t'. Correctly return the error.
42254 (grub_script_execute_cmdline): In case a command line is not a
42255 command or a function, try to interpret it as an assignment.
42257 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42259 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42260 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42261 skip a node whose name is obviously invalid as UTF-16,
42262 i.e. contains a NUL character. Stop the iteration when the last
42263 directory entry is found. Instead of using the return value of
42264 grub_hfsplus_btree_iterate_node, store the value in RET and use
42265 it, because the iterator can be stopped by the last directory
42268 2006-04-30 Marco Gerards <marco@gnu.org>
42270 * include/grub/env.h (grub_env_export): New prototype. Reported
42271 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42273 2006-04-30 Marco Gerards <marco@gnu.org>
42275 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42276 size of the extents in a catalog file record.
42278 2006-04-29 Marco Gerards <marco@gnu.org>
42280 * commands/configfile.c (grub_cmd_configfile): Execute the
42281 configfile within its own context.
42283 * include/grub/env.h (grub_env_context_open): New prototype.
42284 (grub_env_context_close): Likewise.
42286 * kern/env.c (grub_env): Removed.
42287 (grub_env_sorted): Likewise.
42288 (grub_env_context): New variable.
42289 (grub_env_var_context): Likewise.
42290 (grub_env_find): Search both the active context and the global
42292 (grub_env_context_open): New function.
42293 (grub_env_context_close): Likewise.
42294 (grub_env_insert): Likewise.
42295 (grub_env_remove): Likewise.
42296 (grub_env_export): Likewise.
42297 (grub_env_set): Changed to use helper functions to avoid code
42299 (grub_env_iterate): Rewritten so both the current context and the
42300 global context are being used.
42302 * normal/command.c (export_command): New function.
42303 (grub_command_init): Register the `export' function.
42305 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42307 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42308 explicitly to suppress gcc's warnings.
42309 * fs/fat.c (grub_fat_find_dir): Likewise.
42310 (grub_fat_label): Likewise.
42311 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42312 (grub_xfs_mount): Likewise.
42313 (grub_xfs_label): Likewise.
42314 * fs/affs.c (grub_affs_mount): Likewise.
42315 (grub_affs_label): Likewise.
42316 (grub_affs_iterate_dir): Likewise.
42317 * fs/sfs.c (grub_sfs_mount): Likewise.
42318 (grub_sfs_iterate_dir): Likewise.
42319 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42320 * fs/hfs.c (grub_hfs_mount): Likewise.
42321 (grub_hfs_cmp_catkeys): Likewise.
42322 (grub_hfs_find_dir): Likewise.
42323 (grub_hfs_dir): Likewise.
42324 (grub_hfs_label): Likewise.
42325 * fs/jfs.c (grub_jfs_mount): Likewise.
42326 (grub_jfs_opendir): Likewise.
42327 (grub_jfs_getent): Likewise.
42328 (grub_jfs_lookup_symlink): Likewise.
42329 (grub_jfs_label): Likewise.
42330 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42331 (grub_hfsplus_iterate_dir): Likewise.
42332 (grub_hfsplus_btree_iterate_node): Made static.
42334 * util/grub-emu.c (prefix): New variable.
42335 (grub_machine_set_prefix): New function.
42336 (main): Do not set the environment variable "prefix" here. Only
42337 set PREFIX, which is used later by grub_machine_set_prefix.
42339 * include/grub/video.h: Do not include grub/symbol.h.
42340 (grub_video_register): Not exported. This symbol is not defined in
42342 (grub_video_unregister): Likewise.
42343 (grub_video_iterate): Likewise.
42344 (grub_video_setup): Likewise.
42345 (grub_video_restore): Likewise.
42346 (grub_video_get_info): Likewise.
42347 (grub_video_get_blit_format): Likewise.
42348 (grub_video_set_palette): Likewise.
42349 (grub_video_get_palette): Likewise.
42350 (grub_video_set_viewport): Likewise.
42351 (grub_video_get_viewport): Likewise.
42352 (grub_video_map_color): Likewise.
42353 (grub_video_map_rgb): Likewise.
42354 (grub_video_map_rgba): Likewise.
42355 (grub_video_fill_rect): Likewise.
42356 (grub_video_blit_glyph): Likewise.
42357 (grub_video_blit_bitmap): Likewise.
42358 (grub_video_blit_render_target): Likewise.
42359 (grub_video_scroll): Likewise.
42360 (grub_video_swap_buffers): Likewise.
42361 (grub_video_create_render_target): Likewise.
42362 (grub_video_delete_render_target): Likewise.
42363 (grub_video_set_active_render_target): Likewise.
42365 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42367 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42369 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42370 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42371 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42372 instead of $(srcdir)/genkernsyms.sh.
42374 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42375 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42376 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42377 instead of $(srcdir)/genkernsyms.sh.
42379 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42380 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42381 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42382 instead of $(srcdir)/genkernsyms.sh.
42384 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42385 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42386 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42387 instead of $(srcdir)/genkernsyms.sh.
42389 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42392 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42394 (gensymlist.sh): New target.
42395 (genkernsyms.sh): Likewise.
42397 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42398 genkernsyms.sh.in and gensymlist.sh.in.
42400 * genkernsyms.sh: Removed.
42401 * gensymlist.sh: Likewise.
42403 * genkernsyms.sh.in: New file.
42404 * gensymlist.sh.in: Likewise.
42406 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42408 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42409 clobber "prefix", since we may have already set it manually.
42411 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42413 * kern/misc.c (abort): New alias for grub_abort.
42415 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42417 A new machine-specific function "grub_machine_set_prefix" is
42418 defined. This is called after loading modules, so that a prefix
42419 initialization can use modules. Also, this change adds an
42420 intensive debugging feature for the memory manager via the
42421 configure option "--enable-mm-debug".
42423 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42426 * kern/sparc64/ieee1275/init.c (abort): Removed.
42427 (grub_stop): Likewise.
42428 (grub_exit): New function.
42429 (grub_set_prefix): Renamed to ...
42430 (grub_machine_set_prefix): ... this.
42431 (grub_machine_init): Do not call grub_set_prefix.
42433 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42434 (grub_machine_set_prefix): ... this.
42435 (grub_machine_init): Do not call grub_set_prefix.
42437 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42438 (grub_machine_init): Do not set the prefix here.
42440 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42442 * kern/efi/init.c: Include grub/mm.h.
42443 (grub_efi_set_prefix): New function.
42445 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42446 (grub_efi_get_filename): New function.
42447 (grub_print_device_path): Renamed to ...
42448 (grub_efi_print_device_path): ... this.
42450 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42451 [MM_DEBUG] (grub_realloc): Likewise.
42452 [MM_DEBUG] (grub_free): Likewise.
42453 [MM_DEBUG] (grub_memalign): Likewise.
42454 [MM_DEBUG] (grub_mm_debug): New variable.
42455 [MM_DEBUG] (grub_debug_malloc): New function.
42456 [MM_DEBUG] (grub_debug_free): New function.
42457 [MM_DEBUG] (grub_debug_realloc): New function.
42458 [MM_DEBUG] (grub_debug_memalign): New function.
42460 * kern/misc.c (grub_abort): Print a newline to distinguish
42463 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42464 grub_set_root_dev after loading modules. This is necessary when
42465 setting a prefix depends on modules.
42467 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42468 (grub_efi_print_device_path): ... this.
42469 (grub_efi_get_filename): New prototype.
42470 (grub_efi_set_prefix): Likewise.
42472 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42474 (grub_efidisk_get_device_handle): New prototype.
42475 (grub_efidisk_get_device_name): Likewise.
42477 * include/grub/mm.h: Include config.h.
42478 (MM_DEBUG): Removed.
42479 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42480 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42481 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42482 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42483 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42484 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42485 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42486 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42487 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42489 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42491 * disk/efi/efidisk.c: Include grub/partition.h.
42492 (iterate_child_devices): New function.
42493 (add_device): First, compare only last device path nodes, so that
42494 devices are sorted by the types.
42495 (grub_efidisk_get_device_handle): New function.
42496 (grub_efidisk_get_device_name): Likewise.
42498 * configure.ac (--enable-mm-debug): New option to enable the
42499 memory manager debugging feature. This makes the binary much
42500 bigger, so is disabled by default.
42502 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42504 Use grub_abort instead of grub_stop, and grub_exit must be
42505 define in each architecture now. Also, this change adds support
42508 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42509 (grub_getkey): New function.
42510 (grub_term_get_current): Likewise.
42512 * util/i386/pc/grub-setup.c: Include grub/term.h.
42513 (grub_getkey): New function.
42514 (grub_term_get_current): Likewise.
42516 * util/misc.c (grub_stop): Renamed to ...
42517 (grub_exit): ... this.
42519 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42520 (grub_exit): ... this.
42521 (grub_machine_init): Use grub_abort instead of abort.
42522 (grub_stop): Removed.
42524 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42527 * kern/i386/pc/startup.S (grub_exit): New function.
42528 (cold_reboot): New label.
42530 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42531 (grub_efi_init): Call grub_efidisk_init.
42532 (grub_efi_fini): Call grub_efidisk_fini.
42534 * kern/efi/efi.c: Include grub/mm.h.
42535 (grub_efi_console_control_guid): Renamed to ...
42536 (console_control_guid): ... this.
42537 (grub_efi_loaded_image_guid): Renamed to ...
42538 (loaded_image_guid): ... this.
42539 (grub_efi_locate_handle): New function.
42540 (grub_efi_open_protocol): Likewise.
42541 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42542 GRUB_EFI_CONSOLE_CONTROL_GUID.
42543 (grub_efi_exit): Removed.
42544 (grub_stop): Likewise.
42545 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42546 (grub_exit): New function.
42547 (grub_print_device_path): Likewise.
42549 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42550 (grub_enter_rescue_mode): Register "exit".
42552 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42553 (grub_abort): New function.
42555 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42557 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42559 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42561 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42562 (grub_print_device_path): New prototype.
42563 (grub_efi_locate_handle): Likewise.
42564 (grub_efi_open_protocol): Likewise.
42566 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42567 * disk/efi/efidisk.c: Likewise.
42569 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42571 * include/grub/efi/console_control.h
42572 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42574 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42575 last 8 bytes as an array.
42576 (GRUB_EFI_DISK_IO_GUID): New macro.
42577 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42578 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42579 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42581 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42582 (struct grub_efi_device_path): Rename the member "sub_type" to
42584 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42585 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42586 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42587 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42588 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42589 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42590 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42591 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42592 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42593 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42594 (struct grub_efi_pci_device_path): New structure.
42595 (grub_efi_pci_device_path_t): New type.
42596 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42597 (struct grub_efi_pccard_device_path): New structure.
42598 (grub_efi_pccard_device_path_t): New type.
42599 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42600 (struct grub_efi_memory_mapped_device_path): New structure.
42601 (grub_efi_memory_mapped_device_path_t): New type.
42602 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42603 (struct grub_efi_vendor_device_path): New structure.
42604 (grub_efi_vendor_device_path_t): New type.
42605 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42606 (struct grub_efi_controller_device_path): New structure.
42607 (grub_efi_controller_device_path_t): New type.
42608 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42609 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42610 (struct grub_efi_acpi_device_path): New structure.
42611 (grub_efi_acpi_device_path_t): New type.
42612 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42613 (struct grub_efi_expanded_acpi_device_path): New structure.
42614 (grub_efi_expanded_acpi_device_path_t): New type.
42615 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42616 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42617 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42618 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42619 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42620 (struct grub_efi_atapi_device_path): New structure.
42621 (grub_efi_atapi_device_path_t): New type.
42622 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42623 (struct grub_efi_fibre_channel_device_path): New structure.
42624 (grub_efi_fibre_channel_device_path_t): New type.
42625 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42626 (struct grub_efi_1394_device_path): New structure.
42627 (grub_efi_1394_device_path_t): New type.
42628 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42629 (struct grub_efi_usb_device_path): New structure.
42630 (grub_efi_usb_device_path_t): New type.
42631 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42632 (struct grub_efi_usb_class_device_path): New structure.
42633 (grub_efi_usb_class_device_path_t): New type.
42634 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42635 (struct grub_efi_i2o_device_path): New structure.
42636 (grub_efi_i2o_device_path_t): New type.
42637 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42638 (struct grub_efi_mac_address_device_path): New structure.
42639 (grub_efi_mac_address_device_path_t): New type.
42640 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42641 (struct grub_efi_ipv4_device_path): New structure.
42642 (grub_efi_ipv4_device_path_t): New type.
42643 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42644 (struct grub_efi_ipv6_device_path): New structure.
42645 (grub_efi_ipv6_device_path_t): New type.
42646 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42647 (struct grub_efi_infiniband_device_path): New structure.
42648 (grub_efi_infiniband_device_path_t): New type.
42649 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42650 (struct grub_efi_uart_device_path): New structure.
42651 (grub_efi_uart_device_path_t): New type.
42652 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42653 (struct grub_efi_vendor_messaging_device_path): New structure.
42654 (grub_efi_vendor_messaging_device_path_t): New type.
42655 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42656 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42657 (struct grub_efi_hard_drive_device_path): New structure.
42658 (grub_efi_hard_drive_device_path_t): New type.
42659 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42660 (struct grub_efi_cdrom_device_path): New structure.
42661 (grub_efi_cdrom_device_path_t): New type.
42662 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42663 (struct grub_efi_vendor_media_device_path): New structure.
42664 (grub_efi_vendor_media_device_path_t): New type.
42665 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42666 (struct grub_efi_file_path_device_path): New structure.
42667 (grub_efi_file_path_device_path_t): New type.
42668 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42669 (struct grub_efi_protocol_device_path): New structure.
42670 (grub_efi_protocol_device_path_t): New type.
42671 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42672 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42673 (struct grub_efi_bios_device_path): New structure.
42674 (grub_efi_bios_device_path_t): New type.
42675 (struct grub_efi_disk_io): New structure.
42676 (grub_efi_disk_io_t): New type.
42677 (struct grub_efi_block_io_media): New structure.
42678 (grub_efi_block_io_media_t): New type.
42679 (struct grub_efi_block_io): New structure.
42680 (grub_efi_block_io_t): New type.
42682 * include/grub/misc.h (grub_stop): Removed.
42683 (grub_exit): New prototype.
42684 (grub_abort): Likewise.
42686 * include/grub/disk.h (enum grub_disk_dev_id): Added
42687 GRUB_DISK_DEVICE_EFIDISK_ID.
42689 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42690 disk/efi/efidisk.c.
42691 (kernel_syms.lst): Remove the target if an error occurs.
42693 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42695 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42696 as it was simply too buggy.
42698 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42700 * kern/misc.c (grub_lltoa): New function.
42701 (grub_vsprintf): Added support for the long long suffix,
42704 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42706 * Makefile.in (LDFLAGS): Add variable.
42707 (LD): Remove variable.
42708 * configure.ac: Add -m32 to LDFLAGS.
42709 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
42710 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
42711 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
42712 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
42713 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
42715 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
42716 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
42717 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
42719 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
42721 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
42722 length for unknown glyph.
42724 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42726 Add support for pre-loaded modules into the EFI port.
42728 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
42729 completely. Accept one more argument DIR. The caller has changed.
42731 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
42733 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
42734 (grub_efi_loaded_image_guid): New variable.
42735 (grub_efi_get_loaded_image): New function.
42736 (grub_arch_modules_addr): Likewise.
42738 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
42741 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
42742 (struct grub_efi_loaded_image): New structure.
42743 (grub_efi_loaded_image_t): New type.
42745 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42747 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
42748 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
42749 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
42751 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
42753 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
42755 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
42757 * DISTLIST: Added include/grub/efi/console.h,
42758 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
42759 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42761 * include/grub/efi/console.h: New file.
42762 * include/grub/efi/time.h: Likewise.
42763 * include/grub/i386/efi/kernel.h: Likewise.
42764 * kern/efi/init.c: Likewise.
42765 * kern/efi/mm.c: Likewise.
42766 * term/efi/console.c: Likewise.
42768 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
42769 (grub_stop): Removed.
42770 (grub_get_rtc): Likewise.
42771 (grub_machine_init): Simply call grub_efi_init.
42772 (grub_machine_fini): Call grub_efi_fini.
42774 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
42775 (grub_efi_output_string): Removed.
42776 (grub_efi_stall): New function.
42777 (grub_stop): Likewise.
42778 (grub_get_rtc): Likewise.
42780 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
42781 (grub_efi_stall): New prototype.
42782 (grub_efi_allocate_pages): Likewise.
42783 (grub_efi_free_pages): Likewise.
42784 (grub_efi_get_memory_map): Likewise.
42785 (grub_efi_mm_init): Likewise.
42786 (grub_efi_mm_fini): Likewise.
42787 (grub_efi_init): Likewise.
42788 (grub_efi_fini): Likewise.
42790 * include/grub/i386/efi/time.h: Do not include
42791 grub/symbol.h. Include grub/efi/time.h.
42792 (GRUB_TICKS_PER_SECOND): Removed.
42793 (grub_get_rtc): Likewise.
42795 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
42796 Added padding. The EFI spec is buggy.
42797 (GRUB_EFI_BLACK): New macro.
42798 (GRUB_EFI_BLUE): Likewise.
42799 (GRUB_EFI_GREEN): Likewise.
42800 (GRUB_EFI_CYAN): Likewise.
42801 (GRUB_EFI_RED): Likewise.
42802 (GRUB_EFI_MAGENTA): Likewise.
42803 (GRUB_EFI_BROWN): Likewise.
42804 (GRUB_EFI_LIGHTGRAY): Likewise.
42805 (GRUB_EFI_BRIGHT): Likewise.
42806 (GRUB_EFI_DARKGRAY): Likewise.
42807 (GRUB_EFI_LIGHTBLUE): Likewise.
42808 (GRUB_EFI_LIGHTGREEN): Likewise.
42809 (GRUB_EFI_LIGHTCYAN): Likewise.
42810 (GRUB_EFI_LIGHTRED): Likewise.
42811 (GRUB_EFI_LIGHTMAGENTA): Likewise.
42812 (GRUB_EFI_YELLOW): Likewise.
42813 (GRUB_EFI_WHITE): Likewise.
42814 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
42815 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
42816 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
42817 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
42818 (GRUB_EFI_BACKGROUND_RED): Likewise.
42819 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
42820 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
42821 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
42822 (GRUB_EFI_TEXT_ATTR): Likewise.
42824 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
42825 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42826 (kernel_mod_HEADERS): Added efi/time.h.
42828 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
42830 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
42831 include/grub/efi/api.h, include/grub/efi/console_control.h,
42832 include/grub/efi/efi.h, include/grub/efi/pe32.h,
42833 include/grub/i386/efi/time.h, kern/efi/efi.c,
42834 kern/i386/efi/init.c, kern/i386/efi/startup.S,
42835 and util/i386/efi/grub-mkimage.c.
42837 * Makefile.in (RMKFILES): Added i386-efi.rmk.
42839 * genmk.rb (PModule#rule): Do not export symbols if
42840 #{prefix}_EXPORTS is set to "no".
42842 * conf/i386-efi.mk: New file.
42843 * conf/i386-efi.rmk: Likewise.
42844 * include/grub/efi/api.h: Likewise.
42845 * include/grub/efi/console_control.h: Likewise.
42846 * include/grub/efi/efi.h: Likewise.
42847 * include/grub/efi/pe32.h: Likewise.
42848 * include/grub/i386/efi/time.h: Likewise.
42849 * kern/efi/efi.c: Likewise.
42850 * kern/i386/efi/init.c: Likewise.
42851 * kern/i386/efi/startup.S: Likewise.
42852 * util/i386/efi/grub-mkimage.c: Likewise.
42854 2006-04-17 Marco Gerards <marco@gnu.org>
42856 * include/grub/script.h: Include <grub/parser.h> and
42857 "grub_script.tab.h".
42858 (struct grub_lexer_param): New struct.
42859 (struct grub_parser_param): Likewise.
42860 (grub_script_create_arglist): Pass the state in an argument.
42861 (grub_script_add_arglist): Likewise.
42862 (grub_script_create_cmdline): Likewise.
42863 (grub_script_create_cmdblock): Likewise.
42864 (grub_script_create_cmdif): Likewise.
42865 (grub_script_create_cmdmenu): Likewise.
42866 (grub_script_add_cmd): Likewise.
42867 (grub_script_arg_add): Likewise.
42868 (grub_script_lexer_ref): Likewise.
42869 (grub_script_lexer_deref): Likewise.
42870 (grub_script_lexer_record_start): Likewise.
42871 (grub_script_lexer_record_stop): Likewise.
42872 (grub_script_mem_record): Likewise.
42873 (grub_script_mem_record_stop): Likewise.
42874 (grub_script_malloc): Likewise.
42875 (grub_script_yylex): Likewise.
42876 (grub_script_yyparse): Likewise.
42877 (grub_script_yyerror): Likewise.
42878 (grub_script_yylex): Likewise.
42879 (grub_script_lexer_init): Return the state.
42881 * normal/lexer.c (grub_script_lexer_state): Removed variable.
42882 (grub_script_lexer_done): Likewise.
42883 (grub_script_lexer_getline): Likewise.
42884 (grub_script_lexer_refs): Likewise.
42885 (script): Likewise.
42886 (newscript): Likewise.
42887 (record): Likewise.
42888 (recording): Likewise.
42889 (recordpos): Likewise.
42890 (recordlen): Likewise.
42891 (grub_script_lexer_init): Return the state instead of setting
42893 (grub_script_lexer_ref): Use the newly added argument for state
42894 instead of globals.
42895 (grub_script_lexer_deref): Likewise.
42896 (grub_script_lexer_record_start): Likewise.
42897 (grub_script_lexer_record_stop): Likewise.
42898 (recordchar): Likewise.
42899 (nextchar): Likewise.
42900 (grub_script_yylex2): Likewise.
42901 (grub_script_yylex): Likewise.
42902 (grub_script_yyerror): Likewise.
42904 * normal/parser.y (func_mem): Removed variable.
42905 (menu_entry): Likewise.
42907 (%lex-param): New parser option.
42908 (%parse-param): Likewise.
42909 (script): Always return the AST.
42910 (argument): Pass the state around.
42911 (arguments): Likewise.
42912 (grubcmd): Likewise.
42913 (commands): Likewise.
42914 (function): Likewise.
42915 (menuentry): Likewise.
42916 (if_statement): Likewise.
42919 * normal/script.c (grub_script_memused): Removed variable.
42920 (grub_script_parsed): Likewise.
42921 (grub_script_malloc): Added a state argument. Use that instead of
42923 (grub_script_mem_record): Likewise.
42924 (grub_script_mem_record_stop): Likewise.
42925 (grub_script_arg_add): Likewise.
42926 (grub_script_add_arglist): Likewise.
42927 (grub_script_create_cmdline): Likewise.
42928 (grub_script_create_cmdif): Likewise.
42929 (grub_script_create_cmdmenu): Likewise.
42930 (grub_script_add_cmd): Likewise.
42931 (grub_script_parse): Setup the state before calling the parser.
42933 2006-04-16 Marco Gerards <marco@gnu.org>
42935 * normal/command.c (grub_command_init): Remove the title command.
42937 * normal/lexer.c (grub_script_yylex): Renamed from this...
42938 (grub_script_yylex2): ... to this.
42939 (grub_script_yylex): New function. Temporary
42940 introduced to filter some tokens.
42941 (grub_script_yyerror): Print a newline.
42943 * normal/main.c (read_config_file): Output information about the
42944 lines that contain errors. Wait for a key after all lines have
42945 been processed. Don't return an empty menu.
42947 * normal/parser.y (func_mem): Don't initialize.
42948 (menu_entry): Likewise.
42949 (err): New variable.
42950 (script): Don't return anything when an error was encountered.
42951 (ws, returns): Removed rules.
42952 (argument): Disabled concatenated variable support.
42953 (arguments): Remove explicit separators.
42954 (grubcmd): Likewise.
42955 (function): Likewise.
42956 (menuentry): Likewise.
42958 (commands): Likewise. Add error handling.
42960 * normal/script.c (grub_script_create_cmdline): If
42961 `grub_script_parsed' is 0, assume the parser encountered an error.
42963 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
42965 * configure.ac: Add support for EFI. Fix the typo
42966 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
42968 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42970 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
42971 foreign multibyte characters should be shown correctly.
42973 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42975 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
42977 (read_config_file): Made it to close file before returning.
42979 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
42981 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
42982 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
42983 video/i386/pc/vbefill.c.
42985 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
42986 video/i386/pc/vbefill.c.
42988 * include/grub/video.h (grub_video_blit_format): New enum.
42989 (grub_video_mode_info): Added new member blit_format.
42990 (grub_video_get_blit_format): New function prototype.
42992 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
42993 function prototype.
42994 (grub_video_vbe_map_rgb): Likewise.
42995 (grub_video_vbe_unmap_color): Likewise.
42997 * include/grub/i386/pc/vbeblit.h: New file.
42999 * include/grub/i386/pc/vbefill.h: New file.
43001 * video/video.c (grub_video_get_blit_format): New function.
43002 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43003 (grub_video_vbe_map_rgb): Likewise.
43004 (grub_video_vbe_unmap_color): Likewise.
43006 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43008 (grub_video_vbe_blit_render_target): Changed to use more optimized
43010 (grub_video_vbe_setup): Added detection for optimized settings.
43011 (grub_video_vbe_create_render_target): Likewise.
43013 * video/i386/pc/vbeblit.c: New file.
43015 * video/i386/pc/vbefill.c: New file.
43017 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43019 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43022 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43023 parsing to support both hex and dec ranges. If filename was missing
43024 show usage information.
43026 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43028 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43029 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43031 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43032 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43033 (video_mod_SOURCES): Added.
43034 (video_mod_CFLAGS): Likewise.
43035 (video_mod_LDFLAGS): Likewise.
43036 (gfxterm_mod_SOURCES): Likewise.
43037 (gfxterm_mod_CFLAGS): Likewise.
43038 (gfxterm_mod_LDFLAGS): Likewise.
43039 (videotest_mod_SOURCES): Likewise.
43040 (videotest_mod_CFLAGS): Likewise.
43041 (videotest_mod_LDFLAGS): Likewise.
43042 (vesafb_mod_SOURCES): Removed.
43043 (vesafb_mod_CFLAGS): Likewise.
43044 (vesafb_mod_LDFLAGS): Likewise.
43045 (vga_mod_SOURCES): Likewise.
43046 (vga_mod_CFLAGS): Likewise.
43047 (vga_mod_LDFLAGS): Likewise.
43049 * commands/videotest.c: New file.
43051 * font/manager.c (fill_with_default_glyph): Modified to use
43053 (grub_font_get_glyph): Likewise.
43054 (fontmanager): Renamed from this...
43055 (font_manager): ... to this.
43057 * include/grub/font.h (grub_font_glyph): Added new structure.
43058 (grub_font_get_glyph): Modified to use grub_font_glyph.
43060 * include/grub/misc.h (grub_abs): Added as inline function.
43062 * include/grub/video.h: New file.
43064 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43065 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43066 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43067 (grub_vbe_get_controller_info): Renamed from this...
43068 (grub_vbe_bios_get_controller_info): ... to this.
43069 (grub_vbe_get_mode_info): Renamed from this...
43070 (grub_vbe_bios_get_mode_info): ... to this.
43071 (grub_vbe_set_mode): Renamed from this...
43072 (grub_vbe_bios_set_mode): ... to this.
43073 (grub_vbe_get_mode): Renamed from this...
43074 (grub_vbe_bios_get_mode): ... to this.
43075 (grub_vbe_set_memory_window): Renamed from this...
43076 (grub_vbe_bios_set_memory_window): ... to this.
43077 (grub_vbe_get_memory_window): Renamed from this...
43078 (grub_vbe_bios_get_memory_window): ... to this.
43079 (grub_vbe_set_scanline_length): Renamed from this...
43080 (grub_vbe_set_scanline_length): ... to this.
43081 (grub_vbe_get_scanline_length): Renamed from this...
43082 (grub_vbe_bios_get_scanline_length): ... to this.
43083 (grub_vbe_set_display_start): Renamed from this...
43084 (grub_vbe_bios_set_display_start): ... to this.
43085 (grub_vbe_get_display_start): Renamed from this...
43086 (grub_vbe_bios_get_display_start): ... to this.
43087 (grub_vbe_set_palette_data): Renamed from this...
43088 (grub_vbe_bios_set_palette_data): ... to this.
43089 (grub_vbe_set_pixel_rgb): Removed.
43090 (grub_vbe_set_pixel_index): Likewise.
43092 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43094 (grub_vbe_bios_get_controller_info): ... to this.
43095 (grub_vbe_get_mode_info): Renamed from this...
43096 (grub_vbe_bios_get_mode_info): ... to this.
43097 (grub_vbe_set_mode): Renamed from this...
43098 (grub_vbe_bios_set_mode): ... to this.
43099 (grub_vbe_get_mode): Renamed from this...
43100 (grub_vbe_bios_get_mode): ... to this.
43101 (grub_vbe_set_memory_window): Renamed from this...
43102 (grub_vbe_bios_set_memory_window): ... to this.
43103 (grub_vbe_get_memory_window): Renamed from this...
43104 (grub_vbe_bios_get_memory_window): ... to this.
43105 (grub_vbe_set_scanline_length): Renamed from this...
43106 (grub_vbe_set_scanline_length): ... to this.
43107 (grub_vbe_get_scanline_length): Renamed from this...
43108 (grub_vbe_bios_get_scanline_length): ... to this.
43109 (grub_vbe_set_display_start): Renamed from this...
43110 (grub_vbe_bios_set_display_start): ... to this.
43111 (grub_vbe_get_display_start): Renamed from this...
43112 (grub_vbe_bios_get_display_start): ... to this.
43113 (grub_vbe_set_palette_data): Renamed from this...
43114 (grub_vbe_bios_set_palette_data): ... to this.
43115 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43116 getting corrupted after calling it. Added more pushes and pops.
43117 (grub_vbe_bios_set_mode): Likewise.
43118 (grub_vbe_bios_get_mode): Likewise.
43119 (grub_vbe_bios_get_memory_window): Likewise.
43120 (grub_vbe_bios_set_scanline_length): Likewise.
43121 (grub_vbe_bios_get_scanline_length): Likewise.
43122 (grub_vbe_bios_get_display_start): Likewise.
43123 (grub_vbe_bios_set_palette_data): Likewise.
43125 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43126 (cl_insert): Likewise.
43127 (cl_delete): Likewise.
43129 * term/gfxterm.c: New file.
43131 * term/i386/pc/vesafb.c: Removed file.
43133 * video/video.c: New file.
43135 * video/i386/pc/vbe.c (real2pm): Added new function.
43136 (grub_video_vbe_draw_pixel): Likewise.
43137 (grub_video_vbe_get_video_ptr): Likewise.
43138 (grub_video_vbe_get_pixel): Likewise
43139 (grub_video_vbe_init): Likewise.
43140 (grub_video_vbe_fini): Likewise.
43141 (grub_video_vbe_setup): Likewise.
43142 (grub_video_vbe_get_info): Likewise.
43143 (grub_video_vbe_set_palette): Likewise.
43144 (grub_video_vbe_get_palette): Likewise.
43145 (grub_video_vbe_set_viewport): Likewise.
43146 (grub_video_vbe_get_viewport): Likewise.
43147 (grub_video_vbe_map_color): Likewise.
43148 (grub_video_vbe_map_rgb): Likewise.
43149 (grub_video_vbe_map_rgba): Likewise.
43150 (grub_video_vbe_unmap_color): Likewise.
43151 (grub_video_vbe_fill_rect): Likewise.
43152 (grub_video_vbe_blit_glyph): Likewise.
43153 (grub_video_vbe_blit_bitmap): Likewise.
43154 (grub_video_vbe_blit_render_target): Likewise.
43155 (grub_video_vbe_scroll): Likewise.
43156 (grub_video_vbe_swap_buffers): Likewise.
43157 (grub_video_vbe_create_render_target): Likewise.
43158 (grub_video_vbe_delete_render_target): Likewise.
43159 (grub_video_vbe_set_active_render_target): Likewise.
43160 (grub_vbe_set_pixel_rgb): Remove function.
43161 (grub_vbe_set_pixel_index): Likewise.
43162 (index_color_mode): Remove static variable.
43163 (active_mode): Likewise.
43164 (framebuffer): Likewise.
43165 (bytes_per_scan_line): Likewise.
43166 (grub_video_vbe_adapter): Added new static variable.
43167 (framebuffer): Likewise.
43168 (render_target): Likewise.
43169 (initial_mode): Likewise.
43170 (mode_in_use): Likewise.
43171 (mode_list): Likewise.
43173 2006-03-10 Marco Gerards <marco@gnu.org>
43175 * configure.ac (AC_INIT): Bumped to 1.93.
43177 * DISTLIST: Added `include/grub/hfs.h'.
43179 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43181 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43182 18H, which might help the BIOS falling back to next boot media.
43184 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43186 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43187 Poe Chen <poe.poechen@gmail.com>.
43189 2006-01-17 Marco Gerards <marco@gnu.org>
43191 * include/grub/normal.h: Include <grub/script.h>.
43192 (grub_command_list): Removed struct.
43193 (grub_command_list_t): Removed type.
43194 (grub_menu_entry): Remove members `num' and `command_list'. Add
43195 members `commands' and `sourcecode'.
43196 * include/grub/script.h: Add inclusion guards.
43197 (grub_script_cmd_menuentry): New struct.
43198 (grub_script_execute_menuentry): New prototype.
43199 (grub_script_lexer_record_start): Likewise.
43200 (grub_script_lexer_record_stop): Likewise.
43201 * normal/execute.c (grub_script_execute_menuentry): New function.
43202 * normal/lexer.c (record, recording, recordpos, recordlen): New
43204 (grub_script_lexer_record_start): New function.
43205 (grub_script_lexer_record_stop): Likewise.
43206 (recordchar): Likewise.
43207 (nextchar): Likewise.
43208 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43209 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43210 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43211 (current_menu): New variable.
43212 (free_menu): Mainly rewritten.
43213 (grub_normal_menu_addentry): New function.
43214 (read_config_file): Rewritten.
43215 * normal/menu.c (run_menu_entry): Mainly rewritten.
43216 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43218 (run): Mainly rewritten.
43219 * normal/parser.y (menu_entry): New variable.
43220 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43221 (menuentry): New rule.
43222 (command): Add `menuentry'.
43223 (if_statement): Allow additional returns before `fi'.
43224 * normal/script.c (grub_script_create_cmdmenu): New function.
43226 2006-01-03 Marco Gerards <marco@gnu.org>
43228 * INSTALL: GNU Bison is required.
43229 * configure.ac: Rewritten the test to detect Bison.
43230 * Makefile.in (YACC): New variable. Reported by Xun Sun
43231 <xun.sun.cn@gmail.com>.
43233 2006-01-03 Marco Gerards <marco@gnu.org>
43235 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43236 the HFS+ filesystem to filesystem blocks.
43237 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43238 GCC warning is silenced.
43240 2006-01-03 Marco Gerards <marco@gnu.org>
43242 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43243 read from disk from big endian to host byte order.
43245 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43247 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43249 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43250 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43251 embedded HFS+ filesystem.
43252 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43253 (grub_hfs_sblock): Move from here...
43254 * include/grub/hfs.h: To here... New file.
43255 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43257 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43259 (grub_hfsplus_volheader): Change type of member `magic' to
43261 (grub_hfsplus_data): Add new member `embedded_offset'.
43262 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43264 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43265 Calculate the offset.
43267 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43269 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43271 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43273 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43275 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43276 ENV->NAME is NULL after allocating ENV->VALUE.
43278 2005-12-25 Marco Gerards <marco@gnu.org>
43280 * kern/env.c (grub_env_set): Rewritten the error handling code.
43282 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43284 * geninit.sh: Made more robust, and more portable.
43286 2005-12-25 Marco Gerards <marco@gnu.org>
43288 Add support for Apple HFS+ filesystems.
43290 * fs/hfsplus.c: New file.
43292 * DISTLIST: Added `fs/hfsplus.c'.
43294 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43295 (hfsplus_mod_SOURCES): New variable.
43296 (hfsplus_mod_CFLAGS): Likewise.
43297 (hfsplus_mod_LDFLAGS): Likewise.
43298 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43299 (grub_setup_SOURCES): Likewise.
43300 (grub_mkdevicemap_SOURCES): Likewise.
43301 (grub_emu_SOURCES): Likewise.
43302 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43304 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43306 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43308 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43310 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43311 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43312 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43313 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43314 normal/lexer.c, normal/parser.y, normal/script.c, and
43316 Removed kern/sparc64/cache.c.
43318 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43319 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43322 * configure.ac (AC_INIT): Bumped to 1.92.
43324 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43326 * kern/err.c (grub_error_push): Added new function to support error
43328 (grub_error_pop): Likewise.
43329 (grub_error_stack_items): New local variable to support error stacks.
43330 (grub_error_stack_pos): Likewise.
43331 (grub_error_stack_assert): Likewise.
43332 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43334 (grub_print_error): Added support to print errors from error stack.
43336 * include/grub/err.h (grub_error_push): Added function prototype.
43337 (grub_error_pop): Likewise.
43339 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43341 * configure.ac: Accept `powerpc64' as host_cpu.
43342 (amd64): Rename to `biarch32'.
43344 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43345 non-cacheline-aligned addresses.
43347 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43348 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43349 if `size' is non-zero.
43351 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43353 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43354 and `cd' to make sure the filename is not prefixed with a
43356 (pkgdata_MODULES): Add `gpt.mod'.
43357 (gpt_mod_SOURCES): New variable.
43358 (gpt_mod_CFLAGS): Likewise.
43359 (gpt_mod_LDFLAGS): Likewise.
43361 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43363 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43366 * partmap/gpt.c: New file.
43368 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43369 GPT partition map is detected.
43371 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43373 * commands/i386/pc/play.c: New file.
43374 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43375 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43378 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43380 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43381 ((unused))' to silence gcc warning.
43383 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43385 * configure.ac: Correct `AC_PROG_YACC' test.
43387 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43389 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43390 check before installing files.
43392 2005-11-22 Mike Small <smallm@panix.com>
43394 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43395 number regex so multidigit numbers are recognized correctly.
43397 2005-11-22 Mike Small <smallm@panix.com>
43399 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43400 debugging message before attempting to claim memory.
43401 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43402 multiple addresses in case of failure.
43404 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43406 * term/tparm.c (get_space): Remove empty `if' statement.
43408 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43410 * kern/parser.c (check_varstate): Rename `state' to 's'.
43412 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43414 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43415 variable definitions to the beginning of each function. Sort stack
43417 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43418 `buf' argument to `char *'.
43420 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43422 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43423 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43424 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43425 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43426 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43427 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43428 configfile.mod, search.mod, gzio.mod and test.mod.
43429 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43430 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43431 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43432 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43433 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43434 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43435 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43436 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43437 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43438 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43439 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43440 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43441 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43442 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43443 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43444 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43445 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43446 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43447 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43448 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43449 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43450 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43451 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43453 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43455 (pkgdata_MODULES): Add test.mod.
43457 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43459 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43460 appending to variables with "+=".
43461 (PModule): Use full pathname to generate *.lst filenames.
43463 * Makefile.in: Fixed list rules moved from genmk.rb.
43464 (.DELETE_ON_ERROR): New special target.
43465 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43467 * conf/i386-pc.rmk: Include conf/common.mk.
43468 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43469 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43470 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43471 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43472 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43473 configfile.mod, search.mod, gzio.mod and test.mod.
43474 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43475 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43476 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43477 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43478 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43479 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43480 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43481 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43482 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43483 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43484 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43485 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43486 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43487 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43488 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43489 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43490 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43491 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43492 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43493 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43494 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43495 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43496 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43498 * conf/common.rmk: ... to here. New file.
43500 * conf/common.mk: New file.
43502 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43504 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43505 (grub_script.tab.c): ... here.
43507 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43508 (grub_script.tab.c): ... here.
43510 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43511 (grub_script.tab.c): ... here.
43513 * normal/command.c (grub_command_find): Fixed a memory leak of
43514 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43516 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43518 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43519 "@" which marks the start of a comment on ARM.
43520 (VARIABLE): Likewise.
43522 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43524 Add support for Linux/ADFS partition tables.
43526 * partmap/acorn.c: New file.
43528 * include/grub/acorn_filecore.h: Likewise.
43530 * DISTLIST: Added `partmap/acorn.c' and
43531 `include/grub/acorn_filecore.h'.
43533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43535 (pkgdata_MODULES): Add `acorn.mod'.
43536 (acorn_mod_SOURCES): New variable.
43537 (acorn_mod_CFLAGS): Likewise.
43539 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43541 (pkgdata_MODULES): Add `acorn.mod'.
43542 (acorn_mod_SOURCES): New variable.
43543 (acorn_mod_CFLAGS): Likewise.
43545 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43546 (pkgdata_MODULES): Add `acorn.mod'.
43547 (acorn_mod_SOURCES): New variable.
43548 (acorn_mod_CFLAGS): Likewise.
43549 (acorn_mod_LDFLAGS): Likewise.
43551 * include/types.h (grub_disk_addr_t): New typedef.
43553 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43555 * geninit.sh: New file.
43557 * geninitheader.sh: Likewise.
43559 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43560 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43561 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43562 * commands/configfile.c (grub_configfile_init)
43563 (grub_configfile_fini): Likewise.
43564 * commands/default.c (grub_default_init, grub_default_fini):
43566 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43567 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43568 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43569 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43571 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43572 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43574 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43575 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43577 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43579 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43581 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43582 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43583 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43584 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43585 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43586 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43587 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43588 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43589 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43590 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43591 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43592 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43593 * partmap/amiga.c (grub_amiga_partition_map_init)
43594 (grub_amiga_partition_map_fini): Likewise.
43595 * partmap/apple.c (grub_apple_partition_map_init)
43596 (grub_apple_partition_map_fini): Likewise.
43597 * partmap/pc.c (grub_pc_partition_map_init)
43598 (grub_pc_partition_map_fini): Likewise.
43599 * partmap/sun.c (grub_sun_partition_map_init,
43600 grub_sun_partition_map_fini): Likewise.
43601 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43604 * util/grub-emu.c: Include <grub_modules_init.h>.
43605 (main): Don't initialize and de-initialize any modules directly,
43606 use `grub_init_all' and `grub_fini_all' instead.
43608 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43609 `grub_vesafb_mod_init'.
43610 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43612 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43613 `grub_vga_mod_init'. Updated all users.
43614 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43616 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43617 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43620 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43621 Generate a function to initialize the module in utilities.
43622 Updated all callers.
43623 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43624 initialize the module in utilities. Updated all callers.
43626 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43628 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43629 escape sequence and a literal ^L to clear the screen.
43631 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43632 when returning from Open Firmware.
43634 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43636 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43637 (grub_ofconsole_height): Likewise.
43638 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43639 manually insert a '\n'.
43640 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43641 `grub_ofconsole_height'. Return early if these are already set.
43643 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43645 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43646 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43647 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43648 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43649 and `normal/script.c'.
43650 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43651 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43652 (test_mod_SOURCES): New variable.
43653 (test_mod_CFLAGS): Likewise.
43654 (test_mod_LDFLAGS): Likewise.
43655 (pkgdata_MODULES): Add `test.mod'.
43656 (grub_script.tab.c): New rule.
43657 (grub_script.tab.h): Likewise.
43659 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43662 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43663 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43664 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43665 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43666 (test_mod_SOURCES): New variable.
43667 (test_mod_CFLAGS): Likewise.
43668 (pkgdata_MODULES): Add `test.mod'.
43669 (grub_script.tab.c): New rule.
43670 (grub_script.tab.h): Likewise.
43672 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43674 Add initial scripting support.
43676 * commands/test.c: New file.
43677 * include/grub/script.h: Likewise.
43678 * normal/execute.c: Likewise.
43679 * normal/function.c: Likewise.
43680 * normal/lexer.c: Likewise.
43681 * normal/parser.y: Likewise.
43682 * normal/script.c: Likewise.
43684 * configure.ac: Add `AC_PROG_YACC' test.
43686 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43687 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43688 `normal/function.c' and `normal/script.c'.
43689 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43690 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43691 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43693 (pkgdata_MODULES): Add `test.mod'.
43694 (grub_script.tab.c): New rule.
43695 (grub_script.tab.h): Likewise.
43697 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43699 * include/grub/normal.h (grub_test_init): New prototype.
43700 (grub_test_fini): Likewise.
43702 * normal/command.c: Include <grub/script.h>.
43703 (grub_command_execute): Rewritten.
43705 * util/grub-emu.c (main): Call `grub_test_init' and
43708 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43710 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
43712 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
43713 there are no pending characters.
43715 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43717 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
43718 `grub_strndup' to drop device arguments. Replace unnecessary
43719 `grub_strndup' with `grub_strdup'.
43721 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43723 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
43724 `debug' environment variable has been set.
43726 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
43728 * Makefile.in (install-local): Use $(DATA).
43729 (uninstall): Likewise.
43730 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
43731 (sbin_UTILITIES): ... to here.
43732 (sbin_SCRIPTS): New variable.
43733 (grub_install_SOURCES): New variable.
43734 * util/powerpc/ieee1275/grub-install.in: New file.
43735 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
43737 (add_segments): Call `grub_util_get_path'.
43739 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43741 From Timothy Baldwin:
43742 * commands/ls.c (grub_ls_list_files): Close FILE with
43744 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
43746 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
43748 * include/grub/parser.h: New file.
43750 * kern/parser.c: Likewise.
43752 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
43753 (grub_setup_SOURCES): Likewise.
43754 (grub_probefs_SOURCES): Likewise.
43755 (grub_emu_SOURCES): Likewise.
43756 (kernel_img_HEADERS): Add `parser.h'.
43758 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43759 (grub_emu_SOURCES): Add `kern/parser.c'.
43760 (grubof_SOURCES): Likewise.
43762 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43763 (grubof_SOURCES): Add `kern/parser.c'.
43765 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
43767 * kern/misc.c (grub_split_cmdline): Removed function.
43769 * kern/rescue.c: Include <grub/parser.h>.
43770 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
43771 of `grub_split_cmdline'.
43773 * normal/command.c: Include <grub/parser.h>.
43774 (grub_command_execute): Use `grub_parser_split_cmdline' instead
43775 of `grub_split_cmdline'.
43777 * normal/completion.c: Include <grub/parser.h>.
43778 (cmdline_state): New variable.
43779 (iterate_dir): End the filename with a quote depending on the
43780 command line state.
43781 (get_state): new function.
43782 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
43783 split the arguments and determine the current argument. When the
43784 argument string is not quoted, escape all spaces.
43786 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43788 * normal/sparc64/setjmp.S: New file.
43790 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43792 * include/grub/sparc64/libgcc.h: New file.
43793 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
43794 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
43795 normal/sparc64/setjmp.c.
43797 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43799 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
43800 * kern/sparc64/cache.S: New file.
43801 * kern/sparc64/cache.c: Removed.
43802 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
43803 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
43805 (COMMON_LDFLAGS): Add -melf64_sparc.
43806 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
43807 (grubof_SOURCES): Use cache.S instead of cache.c.
43808 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
43809 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
43810 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
43812 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
43813 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
43814 (linux_mod_CFLAGS): Commented out.
43815 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
43816 out because module isn't built.
43817 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
43818 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
43819 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
43820 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
43821 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
43822 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43823 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43824 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
43825 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
43826 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
43827 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43828 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43829 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
43830 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
43832 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
43834 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
43835 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
43836 longer, because HFS should not be used on PC.
43838 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43840 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
43841 consistently within the loop.
43843 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
43845 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
43846 directory can not be read.
43848 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43850 * configure.ac (AC_INIT): Increase the version number to 1.91.
43852 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
43853 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
43854 term/i386/pc/serial.c.
43856 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43858 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
43859 file size must be permitted.
43861 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
43862 between %ah and %al.
43864 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43866 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
43868 Call the hook with a NUL-terminated filename.
43869 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
43872 * kern/term.c (cursor_state): New variable.
43873 (grub_term_set_current): Reset the cursor state on a new
43875 (grub_setcursor): Rewritten to use CURSOR_STATE.
43876 (grub_getcursor): New function.
43878 * include/grub/term.h (grub_getcursor): New prototype.
43880 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
43881 integers on ARM. Reported by Timothy Baldwin
43882 <T.E.Baldwin99@members.leeds.ac.uk>.
43884 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
43886 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
43888 (grub_sfs_dir): Likewise.
43890 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
43892 Add support for the SFS filesystem.
43894 * fs/sfs.c: New file.
43896 * DISTLIST: Added `fs/sfs.c'.
43898 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
43899 (grub_probefs_SOURCES): Likewise.
43900 (grub_emu_SOURCES): Likewise.
43901 (pkgdata_MODULES): Add `sfs.mod'.
43902 (sfs_mod_SOURCES): New variable.
43903 (sfs_mod_CFLAGS): Likewise.
43904 (sfs_mod_LDFLAGS): Likewise.
43906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
43907 (pkgdata_MODULES): Add `sfs.mod'.
43908 (sfs_mod_SOURCES): New variable.
43909 (sfs_mod_CFLAGS): Likewise.
43911 * util/grub-emu.c (main): Call `grub_sfs_init' and
43914 * include/grub/fs.h (grub_sfs_init): New prototype.
43915 (grub_sfs_fini): Likewise.
43917 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
43919 Add support for the AFFS filesystem.
43921 * fs/affs.c: New file.
43923 * DISTLIST: Added `fs/affs.c'.
43925 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
43926 (grub_probefs_SOURCES): Likewise.
43927 (grub_emu_SOURCES): Likewise.
43928 (pkgdata_MODULES): Add `affs.mod'.
43929 (affs_mod_SOURCES): New variable.
43930 (affs_mod_CFLAGS): Likewise.
43931 (affs_mod_LDFLAGS): Likewise.
43933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
43934 (pkgdata_MODULES): Add `affs.mod'.
43935 (affs_mod_SOURCES): New variable.
43936 (affs_mod_CFLAGS): Likewise.
43938 * util/grub-emu.c (main): Call `grub_affs_init' and
43941 * include/grub/fs.h (grub_affs_init): New prototype.
43942 (grub_affs_fini): Likewise.
43944 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43946 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
43948 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43950 * configure.ac: Accept `x86_64' as host_cpu. In that case add
43953 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
43956 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
43957 (COMMON_LDFLAGS): New variable.
43958 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
43959 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
43960 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
43961 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
43962 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
43963 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
43964 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
43965 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
43966 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
43967 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
43968 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43969 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43970 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
43971 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
43972 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
43974 (normal_mod_ASFLAGS): Add `-m32'.
43976 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
43977 (grub_host_size_t, grub_host_ssize_t): New types.
43978 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
43979 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
43980 `GRUB_HOST_SIZEOF_VOID_P'.
43982 * include/grub/kernel.h (struct grub_module_header): Type of
43983 member offset changed to `grub_host_off_t'. Type of member size
43984 changed to `grub_host_size_t'.
43985 (struct grub_module_info): Type of member offset changed to
43986 `grub_host_off_t'. Type of member size changed to
43987 `grub_host_size_t'.
43989 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
43991 Make GRUB's kernel compliant to Multiboot Specification.
43993 * kern/i386/pc/startup.S (multiboot_header): New label.
43994 (multiboot_entry): Likewise.
43995 (multiboot_trampoline): Likewise.
43997 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43998 Increased to 0x4A0.
44000 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44001 put parentheses after a question mark.
44002 [!GRUB_UTIL] (my_mod): New variable.
44004 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44006 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44008 Adds support for the XFS filesystem. Btrees are not supported
44011 * fs/xfs.c: New file.
44013 * DISTLIST: Added `fs/xfs.c'.
44015 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44016 (grub_probefs_SOURCES): Likewise.
44017 (grub_emu_SOURCES): Likewise.
44018 (pkgdata_MODULES): Add `xfs.mod'.
44019 (xfs_mod_SOURCES): New variable.
44020 (xfs_mod_CFLAGS): Likewise.
44022 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44023 (pkgdata_MODULES): Add `xfs.mod'.
44024 (xfs_mod_SOURCES): New variable.
44025 (xfs_mod_CFLAGS): Likewise.
44027 * util/grub-emu.c (main): Call `grub_xfs_init' and
44030 * include/grub/fs.h (grub_xfs_init): New prototype.
44031 (grub_xfs_fini): Likewise.
44034 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44036 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44037 color modes, allow greater than 16 colors to be configured as
44040 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44042 * normal/completion.c (complete_arguments): Add the qualifier
44043 const into OPTIONS.
44045 From Omniflux <omniflux+lists@omniflux.com>:
44046 * include/grub/terminfo.h: New file.
44047 * include/grub/tparm.h: Likewise.
44048 * include/grub/i386/pc/serial.h: Likewise.
44049 * term/terminfo.c: Likewise.
44050 * term/tparm.c: Likewise.
44051 * term/i386/pc/serial.c: Likewise.
44052 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44054 (terminfo_mod_SOURCES): New variable.
44055 (terminfo_mod_CFLAGS): Likewise.
44056 (serial_mod_SOURCES): Likewise.
44057 (serial_mod_CFLAGS): Likewise.
44059 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44061 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44062 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44063 and kern/powerpc/ieee1275/cmain.c, respectively.
44065 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44066 * kern/powerpc/ieee1275/crt0.S: ... here.
44068 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44069 * kern/powerpc/ieee1275/cmain.c: ... here.
44071 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44072 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44073 instead of boot/powerpc/ieee1275/crt0.S and
44074 boot/powerpc/ieee1275/cmain.c, respectively.
44076 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44077 sectors. It was not used anyway.
44079 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44081 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44082 `unused parameter' warning.
44084 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44086 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44088 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44091 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44093 * include/grub/normal.h (enum grub_completion_type): Added
44094 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44096 * normal/cmdline.c (print_completion): Handle
44097 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44098 * normal/menu_entry.c (store_completion): Likewise.
44100 * normal/completion.c (complete_arguments): New function.
44101 (grub_normal_do_completion): Call `complete_arguments' when the
44102 current words start with a dash.
44104 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44106 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44107 `gzio.mod' instead of `io.mod').
44109 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44111 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44112 (DISTDIRS): Added io and video.
44113 Rewrite the search routine to make an output consistently.
44115 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44116 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44117 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44118 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44119 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44120 util/powerpc/ieee1275/misc.c.
44122 * include/grub/gzio.h: New file.
44123 * io/gzio.c: Likewise.
44125 * kern/file.c (grub_file_close): Call grub_device_close only if
44126 FILE->DEVICE is not NULL.
44128 * include/grub/mm.h [!NULL] (NULL): New macro.
44130 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44133 (pkgdata_MODULES): Added gzio.mod.
44134 (gzio_mod_SOURCES): New variable.
44135 (gzio_mod_CFLAGS): Likewise.
44137 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44138 (pkgdata_MODULES): Added gzio.mod.
44139 (gzio_mod_SOURCES): New variable.
44140 (gzio_mod_CFLAGS): Likewise.
44142 * commands/cat.c: Include grub/gzio.h.
44143 (grub_cmd_cat): Use grub_gzfile_open instead of
44146 * commands/cmp.c: Include grub/gzio.h.
44147 (grub_cmd_cmp): Use grub_gzfile_open instead of
44150 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44151 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44153 (grub_rescue_cmd_module): Likewise.
44155 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44157 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44158 kern/sparc64/ieee1275/init.c because it contains _start.
44159 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44161 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44163 * configure.ac: Add support for sparc64 host with ieee1275
44165 * configure: Generated from configure.ac.
44166 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44168 (grub_ofdisk_read): Likewise.
44169 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44170 pointers as (void *) to remove a warning.
44171 (grub_ofdisk_close): Likewise.
44172 (grub_ofdisk_read): Likewise.
44173 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44174 returns, so make it return void to remove a warning.
44175 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44176 Corresponding prototype change.
44177 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44178 values, and cast the pointers as (void *) to remove a warning.
44179 (grub_mm_dump): Likewise.
44180 * conf/sparc64-ieee1275.mk: New file.
44181 * conf/sparc64-ieee1275.rmk: Likewise.
44182 * include/grub/sparc64/setjmp.h: Likewise.
44183 * include/grub/sparc64/types.h: Likewise.
44184 * include/grub/sparc64/ieee1275/console.h: Likewise.
44185 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44186 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44187 * include/grub/sparc64/ieee1275/time.h: Likewise.
44188 * kern/sparc64/cache.c: Likewise.
44189 * kern/sparc64/dl.c: Likewise.
44190 * kern/sparc64/ieee1275/init.c: Likewise.
44191 * kern/sparc64/ieee1275/openfw.c: Likewise.
44193 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44195 * util/console.c (grub_ncurses_putchar): If C is greater than
44196 0x7f, set C to a question mark.
44197 (grub_ncurses_getcharwidth): New function.
44198 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44201 * normal/menu.c (print_entry): Made aware of Unicode. First,
44202 convert TITLE to UCS-4, and predict the cursor position by
44205 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44207 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44209 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44211 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44212 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44215 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44216 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44217 grub_strcpy and grub_strlen. Take it into account that a space
44218 character is inserted as a delimiter.
44220 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44222 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44223 invalid magic in the error.
44225 * commands/search.c: New file.
44227 * util/grub-emu.c (main): Call grub_search_init and
44230 * kern/rescue.c (grub_rescue_print_disks): Removed.
44231 (grub_rescue_print_devices): New function.
44232 (grub_rescue_cmd_ls): Use grub_device_iterate with
44233 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44234 grub_rescue_print_disks.
44236 * kern/partition.c (grub_partition_iterate): Return the result of
44237 PARTMAP->ITERATE instead of GRUB_ERRNO.
44239 * kern/device.c: Include grub/partition.h.
44240 (grub_device_iterate): New function.
44242 * include/grub/partition.h (grub_partition_iterate): Return int
44243 instead of grub_err_t.
44245 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44247 [GRUB_UTIL] (grub_search_fini): Likewise.
44249 * include/grub/device.h (grub_device_iterate): New prototype.
44251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44253 (pkgdata_MODULES): Added search.mod.
44254 (search_mod_SOURCES): New variable.
44255 (search_mod_CFLAGS): Likewise.
44257 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44258 (pkgdata_MODULES): Added search.mod.
44259 (search_mod_SOURCES): New variable.
44260 (search_mod_CFLAGS): Likewise.
44262 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44263 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44264 All callers changed.
44266 * DISTLIST: Added commands/search.c.
44268 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44270 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44272 (grub_getcharwidth): New function.
44274 * kern/misc.c (grub_utf8_to_ucs4): New function.
44276 * include/grub/term.h (struct grub_term): Added a new member
44278 (grub_getcharwidth): New prototype.
44280 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44282 * term/i386/pc/console.c (map_char): New function. Segregated from
44283 grub_console_putchar.
44284 (grub_console_putchar): Use map_char.
44285 (grub_console_getcharwidth): New function.
44286 (grub_console_term): Specified grub_console_getcharwidth as
44289 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44290 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44292 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44294 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44295 on grub_strtoul completely.
44296 (write_char): Declare local variables in the beginning of the
44298 (grub_vesafb_getcharwidth): New function.
44299 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44302 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44304 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44305 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44306 commands/i386/pc/vbetest.c.
44308 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44309 call grub_vbe_get_controller_info again, because the returned
44310 information is volatile.
44311 (grub_vbe_set_video_mode): Mostly rewritten.
44312 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44313 grub_vbe_status_t correctly.
44314 (grub_vbe_get_video_mode_info): Likewise.
44315 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44316 several if statements.
44318 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44319 * commands/i386/pc/vbeinfo.c: ... this.
44321 * commands/i386/pc/vbe_test.c: Renamed to ...
44322 * commands/i386/pc/vbetest.c: ... this.
44324 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44326 (grub_cmd_vbeinfo): ... this. Save video modes before
44327 iterating. Skip a video mode, if it is not available, not enough
44328 information is given or it is monochrome. Show the memory
44329 model. Leave the interpretation of MODEVAR to grub_strtoul
44331 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44332 (GRUB_MOD_FINI): Likewise.
44334 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44335 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44336 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44337 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44338 grub_strtoul completely.
44339 (real2pm): Removed.
44340 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44341 (GRUB_MOD_FINI): Likewise.
44343 * normal/misc.c: Include grub/mm.h.
44345 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44346 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44347 (vbe_list_modes_mod_SOURCES): Removed.
44348 (vbe_list_modes_mod_CFLAGS): Likewise.
44349 (vbe_test_mod_SOURCES): Likewise.
44350 (vbe_test_mod_CFLAGS): Likewise.
44351 (vbeinfo_mod_SOURCES): New variable.
44352 (vbeinfo_mod_CFLAGS): Likewise.
44353 (vbetest_mod_SOURCES): Likewise.
44354 (vbetest_mod_CFLAGS): Likewise.
44356 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44358 * normal/misc.c: New file.
44360 * DISTLIST: Added normal/misc.c.
44362 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44363 DISK to HOOK. Call HOOK with DISK.
44364 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44365 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44366 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44368 * normal/menu_entry.c (struct screen): Added a new member
44369 "completion_shown".
44370 (completion_buffer): New global variable.
44371 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44372 (store_completion): New function.
44373 (complete): Likewise.
44374 (clear_completions): Likewise.
44375 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44376 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44377 a tab, call complete.
44379 * normal/completion.c (disk_dev): Removed.
44380 (print_simple_completion): Likewise.
44381 (print_partition_completion): Likewise.
44382 (print_func): New global variable.
44383 (add_completion): Do not take the arguments WHAT or PRINT any
44384 longer. Added a new argument TYPE. Instead of printing directly,
44385 call PRINT_FUNC if not NULL.
44386 All callers changed.
44387 (complete_device): Use a local variable DEV instead of
44388 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44389 (grub_normal_do_completion): Take a new argument HOOK. Do not
44390 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44391 empty string, return NULL instead.
44392 All callers changed.
44394 * normal/cmdline.c (print_completion): New function.
44396 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44398 All callers changed.
44400 * kern/disk.c (grub_print_partinfo): Removed.
44402 * include/grub/partition.h (struct grub_partition_map): Add a new
44403 argument DISK into HOOK of ITERATE.
44404 (grub_partition_iterate): Add a new argument DISK to HOOK.
44406 * include/grub/normal.h (enum grub_completion_type): New enum.
44407 (grub_completion_type_t): New type.
44408 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44409 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44410 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44411 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44412 (grub_normal_do_completion): Added a new argument HOOK.
44413 (grub_normal_print_device_info): New prototype.
44415 * include/grub/disk.h (grub_print_partinfo): Removed.
44417 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44418 (normal_mod_SOURCES): Likewise.
44419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44420 (normal_mod_SOURCES): Likewise.
44422 * commands/ls.c (grub_ls_list_disks): Use
44423 grub_normal_print_device_info instead of grub_print_partinfo. Free
44425 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44426 duplicating the code.
44428 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44430 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44431 follow GCS more precisely.
44432 * commands/i386/pc/vbe_test.c: Likewise.
44433 * include/grub/i386/pc/vbe.h: Likewise.
44434 * term/i386/pc/vesafb.c: Likewise.
44435 * video/i386/pc/vbe.c: Likewise.
44437 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44439 * DISTLIST: Added term/i386/pc/vesafb.c
44440 DISTLIST: Added video/i386/pc/vbe.c
44441 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44442 DISTLIST: Added commands/i386/pc/vbe_test.c.
44443 * commands/i386/pc/vbe_list_modes.c: New file.
44444 * commands/i386/pc/vbe_test.c: Likewise.
44445 * term/i386/pc/vesafb.c: Likewise.
44446 * video/i386/pc/vbe.c: Likewise.
44447 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44448 (grub_vbe_probe) Added prototype.
44449 (grub_vbe_set_video_mode) Likewise.
44450 (grub_vbe_get_video_mode) Likewise.
44451 (grub_vbe_get_video_mode_info) Likewise.
44452 (grub_vbe_set_pixel_rgb) Likewise.
44453 (grub_vbe_set_pixel_index) Likewise.
44454 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44455 (pkgdata_MODULES): Added vesafb.mod.
44456 (pkgdata_MODULES): Added vbe_list_modes.mod.
44457 (pkgdata_MODULES): Added vbe_test.mod.
44458 (vbe_mod_SOURCES): Added.
44459 (vbe_mod_CFLAGS): Likewise.
44460 (vesafb_mod_SOURCES): Likewise.
44461 (vesafb_mod_CFLAGS): Likewise.
44462 (vbe_list_modes_mod_SOURCES): Likewise.
44463 (vbe_list_modes_mod_CFLAGS): Likewise.
44464 (vbe_test_mod_SOURCES): Likewise.
44465 (vbe_test_mod_CFLAGS): Likewise.
44467 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44469 * normal/command.c (grub_command_execute): If INTERACTIVE is
44470 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44471 CMDLINE. Disable the pager if INTERACTIVE is true.
44472 All callers are changed.
44474 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44475 before reading a config file.
44476 * normal/main.c (read_config_file): Even if a command is not
44477 found, register it if it is within an entry.
44479 * util/grub-emu.c: Include sys/types.h and unistd.h.
44480 (options): Added --hold.
44481 (struct arguments): Added a new member "hold".
44482 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44484 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44485 cleared by a debugger, if it is not zero.
44487 * include/grub/normal.h (grub_command_execute): Add an argument
44490 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44492 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44494 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44496 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44497 program with another one, because the old one didn't detect a bug
44498 in gcc-3.4. Always use regparm 2, because the new test is still
44499 not enough for gcc-4.0. Someone must investigate a simple test
44500 case which detects a bug in gcc-4.0.
44502 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44504 * DISTLIST: Added normal/completion.c.
44506 * normal/completion.c: New file.
44508 * term/i386/pc/console.c (grub_console_getwh): New function.
44509 (grub_console_term): Assign grub_console_getwh to getwh.
44511 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44512 function is defined in normal/completion.c as
44513 grub_normal_do_completion.
44514 (grub_cmdline_get): Use grub_normal_do_completion instead of
44517 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44518 returns non-zero, otherwise return 0.
44519 (grub_partition_iterate): First, probe the partition map. Then,
44520 call ITERATE only for this partition map.
44522 * kern/misc.c (grub_strncmp): Rewritten.
44524 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44525 returns non-zero. Otherwise return 0.
44527 * include/grub/partition.h (grub_partition_map_iterate): Return
44528 int instead of void.
44530 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44532 * include/grub/misc.h (grub_strncmp): Change the type of N to
44535 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44538 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44539 unsigned explicitly before comparing it with I.
44541 * kern/main.c (grub_env_write_root): Add the attribute unused into
44544 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44545 normal/completion.c.
44546 (normal_mod_SOURCES): Likewise.
44547 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44548 (normal_mod_SOURCES): Likewise.
44550 * normal/command.c (grub_iterate_commands): If ITERATE returns
44551 non-zero, return one immediately.
44553 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44555 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44556 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44558 (grub_vbe_get_controller_info): New function.
44559 (grub_vbe_get_mode_info): Likewise.
44560 (grub_vbe_set_mode): Likewise.
44561 (grub_vbe_get_mode): Likewise.
44562 (grub_vbe_set_memory_window): Likewise.
44563 (grub_vbe_get_memory_window): Likewise.
44564 (grub_vbe_set_scanline_length): Likewise.
44565 (grub_vbe_get_scanline_length): Likewise.
44566 (grub_vbe_set_display_start): Likewise.
44567 (grub_vbe_get_display_start): Likewise.
44568 (grub_vbe_set_palette_data): Likewise.
44569 * include/grub/i386/pc/vbe.h: New file.
44571 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44573 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44574 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44575 * DISTLIST: Likewise.
44576 * kern/ieee1275/of.c: Moved to ...
44577 * kern/ieee1275/ieee1275.c: ... here.
44579 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44581 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44582 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44583 Pass 0 as `end' parameter to grub_strtoul().
44585 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44587 * include/grub/powerpc/ieee1275/console.h: Do not include
44588 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44590 (grub_console_cur_color): Remove i386-specific prototype.
44591 (grub_console_real_putchar): Likewise.
44592 (grub_console_checkkey): Likewise.
44593 (grub_console_getkey): Likewise.
44594 (grub_console_getxy): Likewise.
44595 (grub_console_gotoxy): Likewise.
44596 (grub_console_cls): Likewise.
44597 (grub_console_setcursor): Likewise.
44598 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44599 Include <grub/machine/console.h>.
44600 * term/ieee1275/ofconsole.c: Likewise.
44602 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44604 * Makefile.in (LIBLZO): New variable.
44606 * configure.ac: Check for LZO version 2.
44608 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44609 lzo/lzo1x.h instead of lzo1x.h.
44611 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44614 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44615 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44617 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44618 copying the data from PARTITION to P.
44620 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44622 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44623 negative, unload the module.
44625 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44626 map is "pc_partition_map" but not "pc".
44627 (usage): Fix the description. The options are --boot-image and
44628 --core-image but not --boot-file or --core-file.
44629 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44630 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44633 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44634 --core-file. Specify INSTALL_DEVICE as an argument.
44636 * util/console.c: Include config.h.
44637 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44638 [HAVE_NCURSES_H]: Include ncurses.h.
44639 [HAVE_CURSES_H]: Include curses.h.
44640 [!A_NORMAL] (A_NORMAL): Defined as zero.
44641 [!A_STANDOUT] (A_STANDOUT): Likewise.
44643 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44645 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44647 * configure.ac: Check for curses libraries and headers.
44649 * Makefile.in (LIBCURSES): New variable.
44651 * genmk.rb (Script::rule): Set the executable bits.
44653 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44654 name of the PC partition map is "pc_partition_map" but not "pc".
44656 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44658 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44659 (modules): Likewise.
44660 (usage): Added descriptions for --modules and --grub-probefs.
44661 Handle --modules and --grub-probefs. Save the arguments in MODULES
44662 and GRUB_PROBEFS, respectively.
44663 Auto-detect a filesystem module against GRUBDIR. If the result is
44664 empty and modules are not specified explicitly, abort the
44665 installation. Add the result to MODULES.
44667 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44668 disk/powerpc/ieee1275/ofdisk.c,
44669 include/grub/powerpc/ieee1275/init.h and
44670 term/powerpc/ieee1275/ofconsole.c.
44671 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44672 term/ieee1275/ofconsole.c.
44674 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44676 * COPYING: Upgraded to the latest version. Only the address of the
44677 FSF office has changed.
44679 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44681 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44682 kern/ieee1275.c with kern/ieee1275/of.c.
44684 * kern/ieee1275.c: Moved to ...
44685 * kern/ieee1275/of.c: ... here.
44687 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44689 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44692 * config.guess: Updated to the latest version from gnulib.
44693 * config.sub: Likewise.
44694 * install.sh: Likewise.
44695 * mkinstalldirs: Likewise.
44697 * include/grub/console.h: Removed. This file is arch-specific. Do
44698 not put this in include/grub.
44700 * include/grub/i386/pc/console.h: Resurrected.
44702 * util/console.c: Include grub/machine/console.h instead of
44704 * util/grub-emu.c: Likewise.
44706 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44708 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44711 From Vincent Pelletier <subdino2004@yahoo.fr>
44712 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
44713 Redefined to use grub_getwh.
44714 (grub_term): New member named getwh.
44715 (grub_getwh): New prototype.
44716 * kern/term.c (grub_getwh): New function.
44717 * term/i386/pc/console.c (grub_console_getwh): New function.
44718 (grub_console_term): New member `getwh'.
44719 * term/i386/pc/vga.c (grub_vga_getwh): New function.
44720 (grub_vga_term): New member `getwh'.
44721 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
44723 (grub_ofconsole_getw): New function.
44724 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
44725 (grub_ofconsole_term): New field named getwh and new initial
44728 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
44730 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
44731 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
44732 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
44733 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
44734 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
44735 of <grub/machine/ieee1275.h>.
44736 * commands/ieee1275/reboot.c: Likewise.
44737 * boot/powerpc/ieee1275/ieee1275.c: Move ...
44738 * kern/ieee1275.c: ... to here. All users updated. Change all
44739 parameter structs to use new type `grub_ieee1275_cell_t'.
44740 * term/powerpc/ieee1275/ofconsole.c: Move ...
44741 * term/ieee1275/ofconsole.c: ... to here. All users updated.
44742 * disk/powerpc/ieee1275/ofdisk.c: Move ...
44743 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
44744 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
44746 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
44747 Remove unused prototypes. All users updated.
44748 * include/grub/powerpc/ieee1275/console.h: Removed.
44749 * include/grub/powerpc/ieee1275/ieee1275.h: Define
44750 `grub_ieee1275_cell_t'.
44751 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
44752 Cast comparisons with -1 to the correct type.
44753 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
44754 type to match `grub_ieee1275_entry_fn'.
44756 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
44758 * DISTLIST: Added util/i386/pc/grub-probefs.c.
44760 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
44761 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
44763 (grub_probefs_SOURCES): New variable.
44765 * util/i386/pc/grub-probefs.c: New file.
44767 * util/i386/pc/grub-setup.c (main): Call
44768 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
44769 grub_hfs_init and grub_jfs_init to initialize the system. Call
44770 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
44771 grub_pc_partition_map_fini to finish the system.
44773 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
44775 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
44777 (grub_multiboot_load_elf32): Likewise.
44778 (grub_multiboot_is_elf64): Likewise.
44779 (grub_multiboot_load_elf64): Likewise.
44780 (grub_multiboot_load_elf): Likewise.
44781 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
44782 an ELF32 or ELF64 file.
44783 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
44785 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
44786 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
44787 NULL before calling FS->LABEL.
44788 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
44789 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
44790 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
44791 before calling FS->LABEL.
44793 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
44795 * util/i386/pc/grub-install.in (datadir): New variable.
44797 (pkgdatadir): New variable.
44798 (pkglibdir): Removed.
44800 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
44802 * DISTLIST: Added util/i386/pc/grub-install.in.
44804 * util/i386/pc/grub-install.in: New file.
44806 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
44807 (grub_install_SOURCES): Likewise.
44809 * genmk.rb: Added support for scripts.
44810 (Script): New class.
44811 (scripts): New variable.
44813 * Makefile.in (install-local): Install sbin_SCRIPTS by
44815 (uninstall): Remove sbin_SCRIPTS.
44817 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
44818 device, try to get a GRUB device by
44819 grub_util_biosdisk_get_grub_dev.
44822 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
44823 description for --device-map.
44825 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44827 Change the semantics of variable hooks. They now return strings
44828 instead of error values.
44830 * util/i386/pc/grub-setup.c: Include grub/env.h.
44831 (setup): Use grub_device_set_root instead of grub_env_set.
44833 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
44834 grub_env_get instead of grub_device_set_root and
44835 grub_device_get_root, respectively.
44837 * kern/main.c (grub_env_write_root): New function.
44838 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
44839 grub_env_set instead of grub_device_set_root.
44841 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
44843 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
44844 rather than calling ENV->WRITE_HOOK afterwards.
44845 (grub_env_get): Return the result of ENV->READ_HOOK rather than
44846 passing a pointer of a pointer.
44847 (grub_register_variable_hook): Change the types of "read_hook" and
44848 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
44850 Allocate the default empty string on the heap, because this string
44851 may be freed later.
44853 * kern/device.c: Include grub/env.h.
44854 (grub_device_set_root): Removed.
44855 (grub_device_get_root): Likewise.
44856 (grub_device_open): Use grub_env_get instead of
44857 grub_device_get_root.
44859 * include/grub/env.h (grub_env_read_hook_t): New type.
44860 (grub_env_write_hook_t): Likewise.
44861 (grub_env_var): Change the types of "read_hook" and "write_hook"
44862 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
44863 (grub_register_variable_hook): Likewise.
44865 * include/grub/device.h (grub_device_set_root): Removed.
44866 (grub_device_set_root): Likewise.
44868 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
44869 make sure that DIRNAME terminates with '/', so that
44870 grub_fat_find_dir will fail if PATH is not a directory.
44872 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
44874 Use the qualifier auto for print_files and print_files_long.
44875 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
44877 Put a newline only if there is no error.
44878 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
44881 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44883 * kern/partition.c (grub_partition_probe): Initialize PART to
44884 NULL. Otherwise, when no partition map is registered, this returns
44887 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
44889 * partmap/apple.c (apple_partition_map_iterate): Check if POS
44890 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
44893 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
44895 * commands/ls.c (grub_ls_list_disks): Print the filesystem
44896 information on each device, if it does not have partitions. Print
44897 "Device" instead of "Disk", because this function is not specific
44900 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
44901 static to ensure that it is put on the memory rather than a
44904 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44906 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
44907 (grub_cat_init): Likewise.
44908 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
44909 (options): Likewise.
44910 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
44911 (grub_configfile_init): Likewise.
44912 * font/manager.c (GRUB_MOD_INIT): Likewise.
44913 * commands/help.c (GRUB_MOD_INIT): Likewise.
44914 (grub_help_init): Likewise.
44915 * normal/command.c (grub_command_init): Likewise.
44916 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
44917 * disk/loopback.c (grub_loop_init): Likewise.
44918 (GRUB_MOD_INIT): Likewise.
44919 * commands/ls.c (grub_ls_init): Likewise.
44920 (GRUB_MOD_INIT): Likewise.
44921 (options): Likewise.
44922 * commands/boot.c (grub_boot_init): Likewise.
44923 (GRUB_MOD_INIT): Likewise.
44924 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
44925 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
44926 (GRUB_MOD_INIT): Likewise.
44927 * commands/cmp.c (grub_cmp_init): Likewise.
44928 (GRUB_MOD_INIT): Likewise.
44930 * normal/arg.c: Use <> instead of "" to include header files.
44931 (SHORT_ARG_HELP): New macro.
44932 (SHORT_ARG_USAGE): Likewise.
44933 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
44934 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
44936 (find_short): Check if C is 'h' or 'u' explicitly.
44937 (grub_arg_show_help): Use space characters instead of tabs. Treat
44938 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
44939 are shown with --help and --usage only if they are not used for
44940 the command itself.
44941 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
44944 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
44945 const into "longarg". Change the type of "shortarg" to int.
44947 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44949 * boot/i386/pc/boot.S (boot_drive_check): New label.
44951 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
44954 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
44955 which do not pass a boot drive correctly. Copied from GRUB Legacy.
44957 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44959 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
44960 When turning off Gate A20, skip the check and return immediately,
44961 because this is not fatal usually.
44963 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44965 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
44966 be 0x7C00 instead of 0x8000.
44968 * boot/i386/pc/pxeboot.S: Rewritten.
44970 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
44972 (gate_a20_check_state): Read a byte from 0x108000. Invert the
44975 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
44977 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
44978 robustness. This routine now supports a BIOS call and System
44979 Control Port A to modify the gate A20.
44981 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44982 Increased to 0x440.
44984 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
44986 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
44987 device path and resulting ihandle.
44988 (grub_ofdisk_close): dprintf the ihandle being closed.
44989 (grub_ofdisk_read): dprintf function parameters.
44990 * kern/mm.c (grub_mm_init_region): Likewise.
44991 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
44992 (grub_linux_boot): dprintf the Linux entry point, initrd address and
44993 size, and boot arguments.
44994 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
44995 before loading into memory.
44996 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
44997 before loading into memory.
44999 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45001 * kern/mm.c: Added much documentation.
45002 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45003 8, set to 5 instead of 8.
45005 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45007 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45009 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45010 (grub_mkdevicemap_SOURCES): New variable.
45012 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45013 lib/device.c of GRUB Legacy.
45015 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45017 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45018 instead of PATH is NULL.
45020 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45022 * commands/cmp.c (BUFFER_SIZE): New macro.
45023 (grub_cmd_cmp): Close the right file at the right time. Compare
45024 only data just read. Don't report files of different size as
45025 identical. Dynamically allocate buffers. Move variable
45026 declarations at the beginning of function.
45028 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45030 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45033 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45035 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45036 when backspace is pressed at beginning of line.
45038 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45040 * DISTLIST: Added genfslist.sh.
45042 * normal/main.c (fs_module_list): New variable.
45043 (autoload_fs_module): New function.
45044 (read_fs_list): Likewise.
45045 (grub_normal_execute): Call read_fs_list.
45047 * kern/fs.c (grub_fs_autoload_hook): New variable.
45048 (grub_fs_probe): Added support for auto-loading.
45050 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45051 (grub_fs_module_list_t): New type.
45053 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45054 (grub_fs_autoload_hook): New prototype.
45056 * genfslist.sh: New file.
45058 * genmk.rb: Added a rule to generate a filesystem list.
45060 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45062 * configure.ac: Fix the test for cross-compiling.
45064 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45065 define GRUB_UTIL anymore.
45067 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45068 so this function works on other systems than just big endian.
45069 (load_modules): Likewise.
45070 (add_segments): Likewise.
45072 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45074 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45075 contains `l' modifier, get a long from va_arg().
45077 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45079 * kern/mm.c (grub_free): If the next free block which is being
45080 merged is the first free block, set the first block to the block
45082 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45084 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45086 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45087 `grub_ieee1275_chosen'.
45089 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45091 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45092 (grub_ieee1275_chosen): New variable.
45093 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45095 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45096 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45097 Rename first argument to `phandle' for consistency.
45098 (grub_ieee1275_get_property_length): Likewise.
45099 (grub_ieee1275_next_property): Likewise. Change type of first argument
45100 to grub_ieee1275_phandle_t.
45101 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45102 Move export next to declaration.
45103 (grub_ieee1275_chosen): New variable.
45104 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45105 Correct cosmetic typo.
45106 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45107 `grub_ieee1275_chosen'.
45108 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45109 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45110 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45111 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45112 `grub_ieee1275_chosen'.
45114 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45116 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45118 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45119 /chosen/bootargs as "variable=value" pairs.
45121 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45123 * include/grub/misc.h (grub_dprintf): New macro.
45124 (grub_real_dprintf): New prototype.
45125 (grub_strword): Likewise.
45126 (grub_iswordseparator): Likewise.
45127 * kern/misc.c (grub_real_dprintf): New function.
45128 (grub_strword): Likewise.
45129 (grub_iswordseparator): Likewise.
45131 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45133 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45134 (roundup): Remove macro.
45135 (grub_ieee1275_flags): Make static.
45136 (grub_ieee1275_realmode): Remove.
45137 (grub_ieee1275_test_flag): New function.
45138 (grub_ieee1275_set_flag): Likewise.
45139 (find_options): Rename to `grub_ieee1275_find_options'; update
45140 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45141 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45142 (cmain): New prototype.
45143 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45144 `grub_ieee1275_flags' directly.
45145 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45146 machine/biosdisk.h.
45147 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45148 Don't include grub/machine/init.h.
45149 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45150 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45152 (grub_ieee1275_realmode): Likewise.
45153 (grub_ieee1275_flag): New enum.
45154 (grub_ieee1275_test_flag): New prototype.
45155 (grub_ieee1275_set_flag): New prototype.
45156 * include/grub/powerpc/ieee1275/init.h: Remove file.
45157 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45158 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45159 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45160 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45162 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45163 `grub_ieee1275_test_flag'.
45164 (grub_ieee1275_encode_devname): Likewise.
45166 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45168 * include/grub/powerpc/ieee1275/ieee1275.h
45169 (grub_ieee1275_encode_devname): New prototype.
45170 (grub_ieee1275_get_filename): Likewise.
45171 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45173 (grub_set_prefix): Likewise.
45174 (grub_machine_init): Call grub_set_prefix.
45175 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45176 (grub_parse_type): New enum.
45177 (grub_ieee1275_get_devargs): New function.
45178 (grub_ieee1275_get_devname): Likewise.
45179 (grub_ieee1275_parse_args): Likewise.
45180 (grub_ieee1275_get_filename): Likewise.
45181 (grub_ieee1275_encode_devname): Likewise.
45183 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45185 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45186 `grub_loader_unset'.
45188 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45190 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45191 instead of grub_ieee1275_interpret.
45192 (grub_halt_init): New function.
45193 (grub_halt_fini): Likewise.
45194 (GRUB_MOD_INIT): Correct message grammar.
45195 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45196 instead of grub_ieee1275_interpret.
45197 (grub_reboot_init): New function.
45198 (grub_reboot_fini): Likewise.
45199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45200 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45201 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45202 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45203 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45205 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45207 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45209 (grub_halt): Likewise.
45210 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45211 (cmain): Remove __attribute__((unused)).
45212 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45213 (grub_heap_len): Likewise.
45214 (grub_machine_fini): New function.
45215 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45216 (grub_halt): Likewise.
45217 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45219 * util/powerpc/ieee1275/misc.c: New file.
45221 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45223 * DISTLIST: New file.
45224 * gendistlist.sh: Likewise.
45226 * Makefile.in (COMMON_DISTFILES): Removed.
45227 (BOOT_DISTFILES): Likewise.
45228 (CONF_DISTFILES): Likewise.
45229 (DISK_DISTFILES): Likewise.
45230 (FS_DISTFILES): Likewise.
45231 (INCLUDE_DISTFILES): Likewise.
45232 (KERN_DISTFILES): Likewise.
45233 (LOADER_DISTFILES): Likewise.
45234 (TERM_DISTFILES): Likewise.
45235 (UTIL_DISTFILES): Likewise.
45236 (DISTFILES): Likewise.
45237 (uninstall): Uninstall files in $(pkgdata_DATA).
45238 (DISTLIST): New target.
45239 (distdir): Use the contents of the file DISTLIST to get a list of
45242 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45244 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45245 descriptor. This is ported from GRUB Legacy.
45247 * gencmdlist.sh: Added an extra semicolon to make it work with
45248 old sed versions. Reported by Robert Bihlmeyer
45249 <robbe@orcus.priv.at>.
45251 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45253 Automatic loading of commands is supported.
45255 * normal/main.c (read_command_list): New function.
45256 (grub_normal_execute): Call read_command_list.
45258 * normal/command.c (grub_register_command): Return zero or CMD.
45259 Allocate CMD->NAME from the heap.
45260 Initialize CMD->MODULE_NAME to zero.
45261 Find the same name as well. If the same command is found and it is
45262 a dummy command, overwrite members. If it is not a dummy command,
45264 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45265 (grub_command_find): If a dummy command is found, load a module
45266 and retry to find a command only once.
45268 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45269 make sure that each command is loaded.
45271 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45273 (struct grub_command): Remove const from the member `name'.
45274 Add a new member `module_name'.
45275 (grub_register_command): Return grub_command_t.
45277 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45278 sure that each command is loaded.
45280 * genmk.rb (PModule::rule): Specify a module name without the
45281 suffix ".mod" to gencmdlist.sh.
45283 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45285 * gencmdlist.sh: New file.
45287 * genmk.rb (PModule::rule): Generate a rule for a command list.
45289 Generate command.lst from $(COMMANDFILES).
45291 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45292 (DATA): Added $(pkgdata_DATA).
45293 (install-local): Install files in $(pkgdata_DATA).
45295 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45297 * term/i386/pc/vga.c (debug_command): Removed.
45298 (GRUB_MOD_INIT): Do not register the command "debug".
45300 From Hollis Blanchard:
45301 * commands/configfile.c: New file.
45302 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45303 commands/configfile.c.
45304 (pkgdata_MODULES): Added configfile.mod.
45305 (configfile_mod_SOURCES): New variable.
45306 (configfile_mod_CFLAGS): Likewise.
45307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45308 commands/configfile.c.
45309 (pkgdata_MODULES): Added configfile.mod.
45310 (configfile_mod_SOURCES): New variable.
45311 (configfile_mod_CFLAGS): Likewise.
45312 * util/grub-emu.c (main): Call grub_configfile_init and
45313 grub_configfile_fini.
45314 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45316 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45318 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45320 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45323 * commands/help.c (grub_cmd_help): Do not print newlines after
45324 the last command in print_command_help.
45326 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45328 * commands/default.h: New file.
45329 * commands/timeout.h: Likewise.
45330 * normal/context.c: Likewise.
45332 * util/misc.c: Do not include sys/times.h.
45333 Include sys/time.h and grub/machine/time.h.
45334 (grub_get_rtc): Rewritten with gettimeofday.
45336 * util/grub-emu.c (main): Call grub_default_init and
45337 grub_timeout_init before grub_normal_init, and call
45338 grub_timeout_fini and grub_default_fini after grub_main.
45340 * util/console.c (grub_ncurses_checkkey): Return the read
45343 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45346 * normal/main.c (read_config_file): Push MENU. If this fails,
45347 print an error and wait for a user input.
45348 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45349 If a menu is empty or an error occurs, pop MENU.
45350 (grub_normal_execute): Pop and free MENU after grub_menu_run
45353 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45355 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45357 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45359 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45361 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45364 * include/grub/normal.h (struct grub_menu_list): New struct.
45365 (grub_menu_list_t): New type.
45366 (struct grub_context): New struct.
45367 (grub_context_t): New type.
45368 (grub_register_command): Got rid of EXPORT_FUNC.
45369 (grub_unregister_command): Likewise.
45370 (grub_context_get): New prototype.
45371 (grub_context_get_current_menu): Likewise.
45372 (grub_context_push_menu): Likewise.
45373 (grub_context_pop_menu): Likewise.
45374 [GRUB_UTIL] (grub_default_init): Likewise.
45375 [GRUB_UTIL] (grub_default_fini): Likewise.
45376 [GRUB_UTIL] (grub_timeout_init): Likewise.
45377 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45379 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45380 commands/timeout.c and normal/context.c.
45381 (pkgdata_MODULES): Added default.mod and timeout.mod.
45382 (normal_mod_SOURCES): Added normal/context.c.
45383 (default_mod_SOURCES): New variable.
45384 (default_mod_CFLAGS): Likewise.
45385 (timeout_mod_SOURCES): Likewise.
45386 (timeout_mod_CFLAGS): Likewise.
45387 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45389 (pkgdata_MODULES): Added default.mod and timeout.mod.
45390 (normal_mod_SOURCES): Added normal/context.c.
45391 (default_mod_SOURCES): New variable.
45392 (default_mod_CFLAGS): Likewise.
45393 (timeout_mod_SOURCES): Likewise.
45394 (timeout_mod_CFLAGS): Likewise.
45396 * Makefile.in (all-local): Added $(MKFILES).
45398 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45400 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45401 (grub_emu_SOURCES): Likewise.
45402 (pkgdata_MODULES): Add `sun.mod'.
45403 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45404 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45406 (pkgdata_MODULES): Add `sun.mod'.
45407 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45408 * include/grub/partition.h (grub_sun_partition_map_init): New
45410 (grub_sun_partition_map_fini): Likewise.
45411 * partmap/sun.c: New file.
45412 * util/grub-emu.c (main): Initialize and de-initialize the sun
45413 partitionmap support.
45415 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45417 This implements an Emacs-like menu entry editor.
45419 * normal/menu_entry.c: New file.
45421 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45422 characters to ASCII.
45423 (saved_char): New variable.
45424 (grub_ncurses_checkkey): Rewritten completely.
45425 (grub_ncurses_getkey): Likewise.
45426 (grub_ncurses_init): Call raw instead of cbreak.
45428 * normal/menu.c (print_entry): Do not put a space.
45429 (init_page): Renamed to ...
45430 (grub_menu_init_page): ... this. All callers changed.
45431 (edit_menu_entry): Removed.
45432 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45434 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45436 * kern/misc.c (grub_vprintf): Call grub_refresh.
45438 * normal/menu.c (DISP_LEFT): Renamed to ...
45439 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45440 * normal/menu.c (DISP_UP): Renamed to ...
45441 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45442 * normal/menu.c (DISP_RIGHT): Renamed to ...
45443 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45444 * normal/menu.c (DISP_DOWN): Renamed to ...
45445 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45446 * normal/menu.c (DISP_HLINE): Renamed to ...
45447 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45448 * normal/menu.c (DISP_VLINE): Renamed to ...
45449 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45450 * normal/menu.c (DISP_UL): Renamed to ...
45451 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45452 * normal/menu.c (DISP_UR): Renamed to ...
45453 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45454 * normal/menu.c (DISP_LL): Renamed to ...
45455 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45456 * normal/menu.c (DISP_LR): Renamed to ...
45457 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45458 * normal/menu.c (TERM_WIDTH): Renamed to ...
45459 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45460 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45461 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45462 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45463 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45464 * normal/menu.c (TERM_MARGIN): Renamed to ...
45465 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45466 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45467 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45468 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45469 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45470 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45471 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45472 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45473 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45474 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45475 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45476 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45477 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45478 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45479 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45480 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45481 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45482 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45483 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45484 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45485 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45486 All callers changed.
45488 * include/grub/normal.h: New prototype.
45490 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45491 normal/menu_entry.c.
45492 (normal_mod_SOURCES): Likewise.
45493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45494 (normal_mod_SOURCES): Likewise.
45496 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45498 * include/grub/normal.h (grub_halt_init): New prototype.
45499 (grub_halt_fini): Likewise.
45500 (grub_reboot_init): Likewise.
45501 (grub_reboot_fini): Likewise.
45503 * util/grub-emu.c: Include signal.h.
45504 (main_env): New global variable.
45505 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45507 (grub_machine_fini): New function.
45508 (main): Call grub_halt_init and grub_reboot_init before
45509 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45510 Call setjmp with MAIN_ENV to go back afterwards.
45511 Call grub_machine_fini right before return.
45513 * include/grub/util/misc.h: Include setjmp.h.
45514 (main_env): New prototype.
45516 * include/grub/kernel.h (grub_machine_fini): New prototype.
45517 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45518 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45520 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45521 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45522 * term/i386/pc/console.c (grub_console_fini): Likewise.
45524 * util/i386/pc/misc.c: New file.
45526 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45527 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45528 commands/i386/pc/reboot.c.
45530 2005-02-14 Guillem Jover <guillem@hadrons.org>
45532 * include/grub/dl.h (grub_dl_check_header): New prototype.
45533 (grub_arch_dl_check_header): Change return type to grub_err_t,
45534 remove size parameter and export function. Update all callers.
45535 * kern/dl.c (grub_dl_check_header): New function.
45536 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45537 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45538 are inside the core.
45539 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45540 independent ELF header checks.
45541 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45542 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45543 `grub_dl_check_header' instead of explicit checks. Check for the
45545 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45546 `grub_dl_check_header' instead of explicit checks. Remove arch
45547 specific ELF header checks.
45549 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45552 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45554 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45555 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45557 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45559 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45560 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45561 (part_map_iterate): Clear `grub_errno' and return 0 if
45562 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45563 * partmap/amiga.c (amiga_partition_map_iterate): Return
45564 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45565 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45567 2005-02-01 Guillem Jover <guillem@hadrons.org>
45569 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45572 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45574 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45576 (grub_rescue_cmd_linux): New prototype.
45577 (grub_rescue_cmd_initrd): Likewise.
45578 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45580 (grub_linux_release_mem): Release the memory for the initrd.
45581 (grub_load_linux): Renamed from this...
45582 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45583 Changed `entry' not to be static. Loop over memory regions to
45584 find another one when the default fails.
45585 (grub_rescue_cmd_initrd): New function.
45586 (grub_linux_init): Remove function.
45587 (grub_linux_fini): Likewise.
45588 (GRUB_MOD_INIT): Register `initrd'.
45589 (GRUB_MOD_FINI): Unregister `initrd'.
45590 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45592 (grub_linux_normal_fini): Likewise.
45593 (GRUB_MOD_INIT): Register `initrd'.
45594 (GRUB_MOD_FINI): Unregister `initrd'.
45596 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45598 * commands/help.c: New file.
45599 * normal/arg.c (show_help): Renamed to...
45600 (grub_arg_show_help): ... this.
45601 * commands/i386/pc/halt.c: New file.
45602 * commands/i386/pc/reboot.c: Likewise.
45603 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45604 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45605 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45606 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45608 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45610 (pkgdata_MODULES): Add `help.mod'.
45611 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45612 * grub/i386/pc/init.h (grub_reboot): New prototype.
45613 (grub_halt): Likewise.
45614 * include/grub/normal.h (grub_arg_show_help): New prototype.
45615 (grub_help_init): Likewise.
45616 (grub_help_fini): Likewise.
45617 * util/grub-emu.c (main): Initialize and deinitialize the help
45620 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45622 * normal/command.c (grub_command_init): Fixed the description of
45623 the `set' and `unset' commands.
45625 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45627 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45629 * commands/ieee1275/halt.c: New file.
45630 * commands/ieee1275/reboot.c: Likewise.
45631 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45632 `__attribute__ ((unused))'. Some GCS related fixed.
45633 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45634 (grub_suspend_fini): Likewise.
45635 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45637 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45638 (halt_mod_CFLAGS): New variables.
45639 * include/grub/powerpc/ieee1275/ieee1275.h
45640 (grub_ieee1275_interpret): New prototype.
45642 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45644 * include/grub/misc.h (memmove): New prototype.
45645 (memcpy): Likewise.
45647 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45649 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45650 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45652 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45654 * kern/misc.c (grub_strndup): Function rewritten.
45656 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45658 * normal/menu.c (TERM_WIDTH): Macro redefined.
45659 (TERM_TOP_BORDER_Y): Likewise.
45660 (draw_border): Replaced while-loop by a for-loop. Make the number
45661 of lines consistent with the number of lines displayed in
45662 print_entries. Added a margin below the rectangle.
45663 (print_entry): Make the entry fit in the rectangle.
45664 (print_entries): Display the scroll arrows next to the right
45667 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45669 * fs/minix.c (grub_minix_find_file): Reserve more space for
45670 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45671 `grub_strncpy' to copy `path' into it.
45673 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45675 Add the loopback device, a device via which files can be accessed
45678 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45679 (pkgdata_MODULES): Add loopback.mod.
45680 (loopback_mod_SOURCES): New variable.
45681 (loopback_mod_CFLAGS): Likewise.
45682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45684 (pkgdata_MODULES): Add loopback.mod.
45685 (loopback_mod_SOURCES): New variable.
45686 (loopback_mod_CFLAGS): Likewise.
45687 * disk/loopback.c: new file.
45688 * include/grub/normal.h (grub_loop_init): New prototype.
45689 (grub_loop_fini): New prototype.
45690 * util/grub-emu.c (main): Initialize and de-initialize loopback
45692 * include/grub/disk.h (grub_disk_dev_id): Add
45693 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45695 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45697 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45699 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45700 (suspend_mod_SOURCES): New variable.
45701 (suspend_mod_CFLAGS): Likewise.
45702 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45704 * commands/ieee1275/suspend.c: New file.
45706 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45708 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45709 ((unused))' to `__attribute__ ((used))'.
45710 (GRUB_MOD_FINI): Likewise.
45711 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
45712 * genmk.rb (PModule): Assign space to common symbols when linking
45715 2005-01-20 Marco Gerards <metgerards@student.han.nl>
45717 * include/grub/mm.h (grub_mm_init_region): Change the type of the
45718 `unsigned' arguments to `grub_size_t'.
45719 (grub_malloc): Likewise.
45720 (grub_realloc): Likewise.
45721 (grub_memalign): Likewise.
45722 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
45723 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45724 * util/misc.c (grub_malloc): Likewise.
45725 (grub_realloc): Likewise.
45726 * kern/mm.c (get_header_from_pointer): Change the casts to
45727 `unsigned' into a cast to `grub_size_t'.
45729 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
45730 point to `currnode' when `currnode' is changed.
45732 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
45733 Schottelius <nico-linux@schottelius.org>.
45735 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
45737 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
45738 (note_path): Remove variable.
45739 (GRUB_IEEE1275_NOTE_NAME): New macro.
45740 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
45741 (grub_ieee1275_note_hdr): New structure.
45742 (grub_ieee1275_note_desc): Likewise.
45743 (grub_ieee1275_note): Likewise.
45744 (load_note): Remove `dir' argument. All callers updated. Remove
45745 `note_img' and `path'. Do not load a file from `note_path'.
45746 Initialize a struct grub_ieee1275_note and write that to `out'.
45747 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
45749 2005-01-05 Marco Gerards <metgerards@student.han.nl>
45751 * util/misc.c (grub_util_read_image): Revert last change. It
45752 called `grub_util_read_at', which seeks from the beginning of the
45755 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
45757 * TODO: Add note about endianness in grub-mkimage.
45758 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
45760 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
45761 (grub_mkimage_SOURCES): New target.
45762 * include/grub/kernel.h (grub_start_addr): Remove variable.
45763 (grub_end_addr): Likewise.
45764 (grub_total_module_size): Likewise.
45765 (grub_kernel_image_size): Likewise.
45766 (GRUB_MODULE_MAGIC): New constant.
45767 (grub_module_info): New structure.
45768 (grub_arch_modules_addr): New prototype.
45769 (grub_get_end_addr): Remove prototype.
45770 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
45771 * include/grub/powerpc/ieee1275/kernel.h: New file.
45772 * include/grub/util/misc.h (grub_util_get_fp_size): New
45774 (grub_util_read_at): Likewise.
45775 (grub_util_write_image_at): Likewise.
45776 * kern/main.c (grub_get_end_addr): Remove function.
45777 (grub_load_modules): Call grub_arch_modules_addr instead of using
45778 grub_end_addr. Look for a grub_module_info struct in memory. Use
45779 the grub_module_info fields instead of calling grub_get_end_addr
45780 as loop conditions. Move grub_add_unused_region code here.
45781 (grub_add_unused_region): Remove function.
45782 * kern/i386/pc/init.c: Include grub/cache.h.
45783 (grub_machine_init): Remove call to grub_get_end_addr. Remove
45784 one call to add_mem_region.
45785 (grub_arch_modules_addr): New function.
45786 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
45787 (grub_total_module_size): Likewise.
45788 Include grub/machine/kernel.h.
45789 (grub_arch_modules_addr): New function.
45790 * util/grub-emu.c (grub_end_addr): Remove variable.
45791 (grub_total_module_size): Likewise.
45792 (grub_arch_modules_addr): New function.
45793 * util/misc.c: Include unistd.h.
45794 (grub_util_get_fp_size): New function.
45795 (grub_util_read_at): Likewise.
45796 (grub_util_write_image_at): Likewise.
45797 (grub_util_read_image): Call grub_util_read_at.
45798 (grub_util_write_image): Call grub_util_write_image_at.
45799 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
45800 additional memory in kernel_img for a struct grub_module_info.
45801 Fill in that grub_module_info.
45802 * util/powerpc/ieee1275/grub-mkimage.c: New file.
45804 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45806 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
45808 * include/grub/powerpc/ieee1275/ieee1275.h
45809 (grub_ieee1275_milliseconds): New prototype.
45810 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
45812 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
45813 grub_ieee1275_milliseconds.
45815 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45817 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
45819 (find_options): New function.
45820 (cmain): Call find_options.
45821 * include/grub/powerpc/ieee1275/ieee1275.h
45822 (grub_ieee1275_realmode): New extern variable.
45823 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
45824 grub_map if grub_ieee1275_realmode is false.
45826 2004-12-29 Marco Gerards <metgerards@student.han.nl>
45828 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
45829 lines are inserted and make it work like readline. Reported by
45830 Vincent Pelletier <subdino2004@yahoo.fr>.
45832 2004-12-28 Marco Gerards <metgerards@student.han.nl>
45834 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
45836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
45837 `kern/powerpc/cache.S'.
45839 2004-12-27 Marco Gerards <metgerards@student.han.nl>
45841 * genmk.rb: Handle the `Program' class in the main loop. Written
45842 by Johan Rydberg <jrydberg@gnu.org>.
45843 (Program): New class.
45844 (programs): New variable.
45845 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
45846 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
45847 instead of "grub/kernel.h". Include <grub/machine/init.h>.
45848 (help_arch): Function removed.
45849 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
45850 `powerpc/libgcc.h' and `loader.h'.
45851 (pkgdata_PROGRAMS): New variable.
45852 (sbin_UTILITIES): Variable removed.
45853 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
45854 (grubof_SOURCES): Variable re-defined so it only includes the
45855 core functionality.
45856 (grubof_CFLAGS): Remove `-DGRUBOF'.
45857 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
45858 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
45859 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
45860 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
45861 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
45862 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
45863 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
45864 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
45865 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
45866 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
45867 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45868 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
45869 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
45870 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
45871 (pc_mod_CFLAGS): New variables.
45872 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
45873 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
45874 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
45875 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
45877 * include/grub/i386/pc/init.h (grub_os_area_addr)
45878 (rub_os_area_size): ... to here.
45879 * include/grub/powerpc/ieee1275/ieee1275.h
45880 (grub_ieee1275_entry_fn): Export symbol.
45881 * include/grub/powerpc/ieee1275/init.h: New file.
45882 * include/grub/powerpc/libgcc.h: Likewise.
45883 * include/grub/cache.h: Likewise.
45884 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
45885 <hollis@penguinppc.org>.
45886 * kern/dl.c: Include <grub/cache.h>.
45887 (grub_dl_flush_cache): New function.
45888 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
45890 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
45891 (grub_console_init): Removed prototypes.
45892 (grub_machine_init): Don't initialize the modules anymore.
45893 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
45895 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
45896 Macro undef removed.
45897 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
45898 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
45899 relocation `R_PPC_REL32'. Return an error when the relocation is
45901 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
45902 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
45903 * util/misc.c (grub_arch_sync_caches): Likewise.
45905 2004-12-19 Marco Gerards <metgerards@student.han.nl>
45907 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
45908 `symlist.c', add `grubof_symlist.c'.
45909 (symlist.c): Variable removed.
45910 (grubof_HEADERS): Variable added.
45911 (grubof_symlist.c): New target.
45912 (kernel_syms.lst): Use `grubof_HEADERS' instead of
45913 `kernel_img_HEADERS'.
45914 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
45915 * kern/powerpc/dl.c: New file.
45916 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
45918 (grub_arch_dl_relocate_symbols): Likewise.
45919 (grub_register_exported_symbols): Likewise.
45921 2004-12-13 Marco Gerards <metgerards@student.han.nl>
45923 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
45924 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
45925 to fail instead. Reported by Vincent Pelletier
45926 <subdino2004@yahoo.fr>.
45928 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
45929 it is not allocated. Reported by Vincent Pelletier
45930 <subdino2004@yahoo.fr>.
45932 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
45933 output so the output looks better.
45935 2004-12-04 Marco Gerards <metgerards@student.han.nl>
45937 Modulize the partition map support and add support for the amiga
45940 * commands/ls.c: Include <grub/partition.h> instead of
45941 <grub/machine/partition.h>.
45942 * kern/disk.c: Likewise.
45943 * kern/rescue.c: Likewise.
45944 * loader/i386/pc/chainloader.c: Likewise.
45945 * normal/cmdline.c: Likewise.
45946 * kern/powerpc/ieee1275/init.c: Likewise.
45947 (grub_machine_init): Call `grub_pc_partition_map_init',
45948 `grub_amiga_partition_map_init' and
45949 `grub_apple_partition_map_init'.
45950 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
45951 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
45952 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
45953 `partition.h' and `pc_partition.h'.
45954 (grub_setup_SOURCES): Remove
45955 `disk/i386/pc/partition.c'. Add `kern/partition.c',
45956 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45957 (grub_emu_SOURCES): Likewise.
45958 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
45959 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
45960 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
45961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45962 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
45963 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45964 (grubof_SOURCES): Likewise.
45965 * disk/i386/pc/partition.c: File removed.
45966 * disk/powerpc/ieee1275/partition.c: Likewise.
45967 * include/grub/powerpc/ieee1275/partition.h: Likewise.
45968 * include/grub/i386/pc/partition.h: Likewise.
45969 * kern/partition.c: New file.
45970 * partmap/amiga.c: Likewise.
45971 * partmap/apple.c: Likewise.
45972 * partmap/pc.c: Likewise.
45973 * include/grub/partition.h: Likewise..
45974 * include/grub/pc_partition.h: Likewise.
45975 * util/grub-emu.c: Include <grub/partition.h> instead of
45976 <grub/machine/partition.h>.
45977 (main): Call `grub_pc_partition_map_init',
45978 `grub_amiga_partition_map_init' and
45979 `grub_apple_partition_map_init' and deinitialize afterwards.
45980 * util/i386/pc/biosdisk.c: Include `#include
45981 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45982 `<grub/machine/partition.h>'.
45983 * util/i386/pc/grub-setup.c: Likewise.
45984 * util/i386/pc/biosdisk.c: Likewise.
45985 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
45986 partition information in case of a PC partition.
45987 * util/i386/pc/grub-setup.c: Include `#include
45988 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45989 `<grub/machine/partition.h>'.
45990 (setup): Only access the PC specific partition information in case
45993 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
45995 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
45996 (grub_longjmp): Likewise.
45997 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
45999 * normal/powerpc/setjmp.S: New file.
46000 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46001 `normal/powerpc/setjmp.S'.
46002 (grubof_CFLAGS): Add `-DGRUBOF'.
46003 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46004 [GRUB_UTIL && !GRUBOF].
46006 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46008 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46009 property named `name'. Correctly handle the error returned by
46010 `grub_ieee1275_finddevice' if a device can not be opened.
46012 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46014 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46015 `actual' for negativity.
46016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46019 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46021 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46022 (PAGE_OFFSET): New macro.
46023 (CRTC_ADDR_PORT): Likewise.
46024 (CRTC_DATA_PORT): Likewise.
46025 (START_ADDR_HIGH_REGISTER): Likewise.
46026 (START_ADDR_LOW_REGISTER): Likewise.
46027 (GRAPHICS_ADDR_PORT): Likewise.
46028 (GRAPHICS_DATA_PORT): Likewise.
46029 (READ_MAP_REGISTER): Likewise.
46030 (INPUT_STATUS1_REGISTER): Likewise.
46031 (INPUT_STATUS1_VERTR_BIT): Likewise.
46032 (page): New variable.
46033 (wait_vretrace): New function.
46034 (set_read_map): Likewise.
46035 (set_start_address): Likewise.
46036 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46038 (check_vga_mem): Take the page into account.
46039 (write_char): Likewise.
46040 (write_cursor): Likewise.
46041 (scroll_up): Likewise. Copy the page to the page that is not
46042 shown and switch between both pages.
46043 (grub_vga_putchar): Fix off by one error.
46044 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46047 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46049 Add support for iso9660 (including rockridge).
46051 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46052 (iso9660_mod_SOURCES): New variable.
46053 (iso9660_mod_CFLAGS): Likewise.
46054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46055 * include/grub/fs.h (grub_iso9660_init): New prototype.
46056 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46057 * fs/iso9660.c: New file.
46059 * include/grub/misc.h (grub_strncat): New prototype.
46060 * kern/misc.c (grub_strncat): New function.
46062 * fs/hfs.c (grub_hfs_mount): Translate the error
46063 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46064 * fs/jfs.c (grub_jfs_mount): Likewise.
46065 * fs/ufs.c (grub_ufs_mount): Likewise.
46067 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46069 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46070 which initialized BAT registers.
46071 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46072 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46074 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46075 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46077 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46078 (grub_mapclaim): Likewise.
46079 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46080 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46083 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46085 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46086 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46087 -ffreestanding and -msoft-float.
46089 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46091 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46092 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46093 set in grub_ieee1275_flags.
46095 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46097 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46099 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46100 grub_console_init first.
46101 Change the memory range used for grub_ieee1275_claim and
46102 grub_mm_init_region.
46103 Print an error message if the claim fails.
46104 Include <grub/misc.h>.
46106 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46108 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46109 Call grub_children_iterate for device nodes of type `scsi',
46111 (grub_ofdisk_open): Remove manual device alias resolution.
46112 Fix memory leak when device cannot be opened.
46113 * include/grub/powerpc/ieee1275/ieee1275.h
46114 (grub_children_iterate): New prototype.
46115 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46117 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46118 Return -1 if args.size was -1.
46120 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46122 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46123 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46124 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46125 Open Firmware's memory for it; claim memory from _start to _end.
46126 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46127 (_end): New extern.
46128 (_start): Zero BSS from __bss_start to _end.
46129 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46131 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46133 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46135 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46136 -1 if args.base was -1.
46138 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46140 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46141 escape sequence instead of a literal ^L. Also call
46142 grub_ofconsole_gotoxy.
46144 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46146 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46147 void * arguments to grub_addr_t. All callers updated. Also make
46148 the `result' argument optional.
46149 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46150 All callers updated.
46152 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46154 * commands/ls.c (grub_ls_list_files): Use the string following the
46155 initial ')', if present, as the filesystem path.
46156 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46158 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46160 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46162 Make the source code of the menu interface more readable.
46164 * normal/menu.c: Include grub/mm.h.
46165 (TERM_WIDTH): New macro.
46166 (TERM_HEIGHT): Likewise.
46167 (TERM_INFO_HEIGHT): Likewise.
46168 (TERM_MARGIN): Likewise.
46169 (TERM_SCROLL_WIDTH): Likewise.
46170 (TERM_TOP_BORDER_Y): Likewise.
46171 (TERM_LEFT_BORDER_X): Likewise.
46172 (TERM_BORDER_WIDTH): Likewise.
46173 (TERM_MESSAGE_HEIGHT): Likewise.
46174 (TERM_BORDER_HEIGHT): Likewise.
46175 (TERM_NUM_ENTRIES): Likewise.
46176 (TERM_FIRST_ENTRY_Y): Likewise.
46177 (TERM_ENTRY_WIDTH): Likewise.
46178 (TERM_CURSOR_X): Likewise.
46179 (draw_border): Use macros instead of magic numbers.
46180 (print_entry): Likewise.
46181 (print_entries): Likewise.
46182 (run_menu): Likewise. Also, handle the key 'e'.
46183 (run_menu_entry): Ignore empty command lines.
46184 (print_message): Added a new argument EDIT. If EDIT is true,
46185 print a different message.
46186 (init_page): Likewise.
46187 (edit_menu_entry): New function. Not implemented yet.
46189 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46191 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46192 can be loaded from normal mode.
46194 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46196 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46197 (multiboot_mod_CFLAGS): New variables.
46198 * loader/i386/pc/linux_normal.c: New file.
46199 * loader/i386/pc/multiboot_normal.c: Likewise.
46201 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46202 attribute `unused'.
46204 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46205 `fdiro' to read the mode information from instead of `diro'.
46207 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46208 looking up a symlink.
46210 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46212 * normal/command.c (grub_command_execute): Don't parse the
46213 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46214 flags of the command.
46216 * normal/menu.c (grub_menu_run): Fix typo.
46218 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46220 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46222 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46223 `y + 1' instead of `y - 1'.
46225 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46227 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46229 From Hollis Blanchard <hollis@penguinppc.org>:
46230 * kern/misc.c (memmove): New alias for grub_memmove.
46231 (memcmp): New alias for grub_memcmp.
46232 (memset): New alias for grub_memset.
46233 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46234 Change "int handle" to "grub_ieee1275_phandle_t handle".
46235 * include/grub/powerpc/ieee1275/ieee1275.h
46236 (grub_ieee1275_get_property): Likewise.
46238 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46240 Added normal mode command `chainloader' as module chain.mod, which
46241 depends on normal.mod and _chain.mod.
46243 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46244 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46245 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46247 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46248 but arguments parsing moved to ...
46249 (grub_chainloader_cmd): ... here. New function.
46250 * include/grub/i386/pc/chainloader.h: New file.
46251 * loader/i386/pc/chainloader_normal.c: Likewise.
46253 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46255 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46256 (grub_mkimage_LDFLAGS): Likewise.
46257 (grub_emu_SOURCES): Likewise.
46258 (kernel_img_HEADERS): Added fshelp.h.
46259 * fs/ext2.c: Include <grub/fshelp.h>.
46260 (FILETYPE_REG): New macro.
46261 (FILETYPE_INO_REG): Likewise.
46262 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46264 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46266 (grub_fshelp_node): New struct.
46267 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46269 (grub_ext2_get_file_block): Removed function.
46270 (grub_ext2_read_block): New function.
46271 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46272 This function was written.
46273 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46274 (grub_ext2_find_file): Removed function.
46275 (grub_ext2_read_symlink): New function.
46276 (grub_ext2_iterate_dir): Likewise.
46277 (grub_ext2_open): Rewritten.
46278 (grub_ext2_dir): Rewritten.
46279 * include/grub/fshelp.h: New file.
46280 * fs/fshelp.c: Likewise.
46282 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46284 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46285 (print_message): Add a missing newline.
46286 (run_menu): Added timeout support.
46287 (run_menu_entry): New local function.
46288 (grub_menu_run): Added support for booting.
46290 * kern/loader.c (grub_loader_is_loaded): New function.
46292 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46293 (grub_get_rtc): Exported.
46295 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46296 (grub_get_rtc): Exported.
46298 * include/grub/normal.h (struct grub_command_list): Remove
46299 constant from the member `command'.
46301 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46303 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46305 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46307 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46309 Add support for the JFS filesystem.
46311 * fs/jfs.c: New file.
46312 * include/grub/fs.h (grub_jfs_init): New prototype.
46313 (grub_jfs_fini): New prototype.
46314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46315 (grub_emu_SOURCES): Likewise.
46316 (pkgdata_MODULES): Add jfs.mod.
46317 (jfs_mod_SOURCES): New variable.
46318 (jfs_mod_CFLAGS): Likewise.
46319 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46320 (grubof_SOURCES): Likewise.
46321 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46323 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46324 endian to the host endian.
46325 (grub_fat_utf16_to_utf8): Move function from there...
46326 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46327 the endianness of the source string anymore.
46328 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46330 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46332 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46333 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46334 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46335 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46337 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46338 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46339 for `node_found' and `it_dir'.
46340 (grub_hfs_dir): Add prototype for `dir_hook'.
46342 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46343 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46344 and `indir32' to silence a gcc warning.
46346 * include/grub/fs.h (grub_hfs_init): New prototype.
46347 (grub_hfs_fini): Likewise.
46350 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46352 Each disk device has its own id now. This is useful to make use
46353 of multiple disk devices.
46355 * include/grub/disk.h (grub_disk_dev_id): New enum.
46356 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46357 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46359 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46360 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46362 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46363 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46365 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46366 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46368 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46369 "id" which is used by the cache manager.
46371 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46374 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46376 * fs/hfs.c: New file.
46377 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46378 (grub_emu_SOURCES): Likewise.
46379 (pkgdata_MODULES): Add hfs.mod.
46380 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46381 (grubof_SOURCES): Likewise.
46382 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46384 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46385 * kern/misc.c (grub_strncasecmp): Add function.
46387 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46389 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46392 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46393 (grub_ext2_dir): In case the directory entry type is unknown, read
46396 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46398 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46399 grub_load_linux instead of grub_rescue_cmd_linux as second
46400 argument of grub_rescue_register_command.
46402 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46404 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46406 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46408 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46409 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46410 `loader/powerpc/ieee1275/linux.c',
46411 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46412 * include/grub/powerpc/ieee1275/ieee1275.h
46413 (grub_ieee1275_release): New prototype.
46414 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46415 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46416 normal, boot, linux and linux_normal.
46417 * loader/powerpc/ieee1275/linux.c: New file.
46418 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46420 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46422 * normal/arg.c (grub_arg_parse): Correct error handling after
46423 reallocating the argumentlist (check if `argl' is not null instead
46424 of checking if `args' is not null).
46425 * kern/mm.c (grub_realloc): Return the same pointer when using the
46426 same region, instead of returning the header address.
46428 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46430 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46431 one block instead of two when looking for the initial partition.
46432 (grub_partition_probe): Initialize the local variable `p' with 0.
46433 Use base 10 for the grub_strtoul call.
46434 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46435 need for one local variable.
46436 (grub_strtoul): Don't add the new value to `num', instead of that
46439 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46441 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46442 (pxeboot_img_SOURCES): New variable.
46443 (pxeboot_img_ASFLAGS): Likewise.
46444 (pxeboot_img_LDFLAGS): Likewise.
46445 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46446 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46447 <lode_leroy@hotmail.com>.
46449 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46451 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46452 there was no input.
46454 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46456 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46457 the history buffer logic.
46459 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46461 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46462 (FILETYPE_INO_SYMLINK): New macros.
46463 (grub_ext2_find_file): Check if the node is a directory using the
46464 inode stat information instead of using the filetype in the
46465 dirent. Exclude the first character of an absolute symlink.
46466 (grub_ext2_dir): Mask out the filetype part of the mode member of
46469 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46471 Add support for UFS version 1 and 2. Add support for the minix
46472 filesystem version 1 and 2, both the variants with 14 and 30 long
46475 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46477 (grub_emu_SOURCES): Likewise.
46478 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46479 (ufs_mod_SOURCES): New variable.
46480 (ufs_mod_CFLAGS): Likewise.
46481 (minix_mod_SOURCES): Likewise.
46482 (minix_mod_CFLAGS): Likewise.
46483 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46485 (grubof_SOURCES): Likewise.
46486 * fs/ufs.c: New file.
46487 * fs/minix.c: New file.
46488 * include/grub/fs.h (grub_ufs_init): New prototype.
46489 (grub_ufs_fini): Likewise.
46490 (grub_minix_init): Likewise.
46491 (grub_minix_fini): Likewise.
46492 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46495 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46498 commands/ls.c, commands/terminal.c, commands/boot.c,
46499 commands/cmp.c and commands/cat.c.
46500 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46502 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46505 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46507 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46508 and grub_, respectively. Because the conversion is trivial and
46509 mechanical, I omit the details here. Please refer to the CVS
46510 if you need more information.
46512 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46514 * include/pupa: Renamed to ...
46515 * include/grub: ... this.
46516 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46517 * util/i386/pc/grub-mkimage.c: ... this.
46518 * util/i386/pc/pupa-setup.c: Renamed to ...
46519 * util/i386/pc/grub-setup.c: ... this.
46520 * util/pupa-emu.c: Renamed to ...
46521 * util/grub-emu.c: ... this.
46523 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46525 Add support for the newworld apple macintosh (PPC). This has been
46526 tested on the powerbook 2000 only. It only adds support for
46527 generic ieee1275 functions, console and disk support. This should
46528 be easy to port to other architectures with support for Open
46531 * configure.ac: Accept the powerpc as host_cpu. In the case of
46532 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46533 specific tests are only executed while building for the i386.
46534 Inverse test for crosscompile.
46535 * genmk.rb (Utility): Allow assembler files.
46536 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46537 * conf/powerpc-ieee1275.rmk: New file.
46538 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46539 * disk/powerpc/ieee1275/partition.c: Likewise.
46540 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46541 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46542 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46543 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46544 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46545 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46546 * include/pupa/powerpc/ieee1275/loader.h
46547 * include/pupa/powerpc/setjmp.h: Likewise.
46548 * include/pupa/powerpc/types.h: Likewise.
46549 * kern/powerpc/ieee1275/init.c: Likewise.
46550 * kern/powerpc/ieee1275/openfw.c: Likewise.
46551 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46553 These files were written by Johan Rydberg
46554 (jrydberg@night.trouble.net) and I only modified them slightly.
46556 * boot/powerpc/ieee1275/cmain.c: New file.
46557 * boot/powerpc/ieee1275/crt0.S: Likewise.
46558 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46559 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46561 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46563 * Makefile.in: Update copyright.
46564 * genmodsrc.sh: Likewise.
46565 * gensymlist.sh: Likewise.
46566 * term/i386/pc/vga.c: Indent correctly.
46568 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46569 bugreporting address.
46570 * util/i386/pc/pupa-setup.c (usage): Likewise,
46571 (main): Call pupa_ext2_init and pupa_ext2_fini.
46573 * fs/fat.c (log2): Renamed to ...
46574 (fat_log2): ... this.
46575 All callers changed.
46576 * kern/misc.c (memcpy): Alias to pupa_memmove.
46577 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46579 * util/console.c (pupa_ncurses_fini): Return 0.
46581 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46582 Move fail label here.
46583 [__GNU__]: Don't warn when using stat.
46584 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46585 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46586 long int. Use strtol instead of strtoul.
46588 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46590 * commands/boot.c: New file.
46591 * commands/cat.c: Likewise.
46592 * commands/cmp.c: Likewise.
46593 * commands/ls.c: Likewise.
46594 * commands/terminal.c: Likewise.
46595 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46596 (pupa_register_command): Changed interface to match the new
46598 (pupa_command_execute): Changed (almost rewritten) so it uses
46599 pupa_split_command. Added support for setting variables using the
46601 (rescue_command): Changed to work with the new argument parser.
46602 (terminal_command): Moved from here to commands/terminal.c.
46603 (set_command): New function.
46604 (unset_command): New function.
46605 (insmod_command): New function.
46606 (rmmod_command): New function.
46607 (lsmod_command): New function.
46608 (pupa_command_init): Don't initialize the command terminal
46609 anymore. Initialize the commands set, unset, insmod, rmmod and
46611 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46612 (kernel_img_HEADERS): Add arg.h and env.h.
46613 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46614 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46615 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46617 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46619 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46620 (boot_mod_SOURCES): New variable.
46621 (terminal_mod_SOURCES): Likewise.
46622 (ls_mod_SOURCES): Likewise.
46623 (cmp_mod_SOURCES): Likewise.
46624 (cat_mod_SOURCES): Likewise.
46626 * normal/arg.c: New file.
46627 * kern/env.c: Likewise.
46628 * include/pupa/arg.h: Likewise.
46629 * include/pupa/env.h: Likewise.
46630 * font/manager.c (font_command): Changed to match argument parsing
46632 (PUPA_MOD_INIT): Likewise.
46633 * hello/hello.c (pupa_cmd_hello): Likewise.
46634 (PUPA_MOD_INIT): Likewise.
46635 * include/pupa/disk.h: Include <pupa/device.h>.
46636 (pupa_print_partinfo): New prototype.
46637 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46638 (pupa_dl_get_prefix): Likewise.
46639 * include/pupa/misc.h: Include <pupa/err.h>.
46640 (pupa_isgraph): New prototype.
46641 (pupa_isdigit): Likewise.
46642 (pupa_split_cmdline): Likewise.
46643 * include/pupa/normal.h: Include <pupa/arg.h>.
46644 (pupa_command): Changed the prototype of the member `func' to
46645 match the argument parsing interface. Added member `options'.
46646 (pupa_register_command): Updated to match function.
46647 (pupa_arg_parse): New prototype.
46648 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46649 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46650 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46651 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46652 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46653 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46654 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46655 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46656 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46657 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46658 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46659 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46660 * kern/disk.c: Include <pupa/file.h>.
46661 (pupa_print_partinfo): New function.
46662 * kern/dl.c: Include <pupa/env.h>.
46663 (pupa_dl_dir): Variable removed.
46664 (pupa_dl_load): Use the environment variable `prefix' instead of
46665 the variable pupa_dl_dir.
46666 (pupa_dl_set_prefix): Function removed.
46667 (pupa_dl_get_prefix): Likewise.
46668 * kern/i386/pc/init.c: Include <pupa/env.h>.
46669 (pupa_machine_init): Use the environment variable `prefix' instead of
46670 using pupa_dl_set_prefix to set the prefix.
46671 * kern/main.c: Include <pupa/env.h>.
46672 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46673 using pupa_dl_get_prefix to get the prefix.
46674 * kern/misc.c: Include <pupa/env.h>.
46675 (pupa_isdigit): New function.
46676 (pupa_isgraph): Likewise.
46677 (pupa_ftoa): Likewise.
46678 (pupa_vsprintf): Added support for printing values of the type
46679 `double'. Make it possible to format variable output when using
46680 formatting like `%1.2%f'.
46681 (pupa_split_cmdline): New function.
46682 * kern/rescue.c: Include <pupa/env.h>.
46683 (next_word): Removed function.
46684 (pupa_rescue_cmd_prefix): Likewise.
46685 (pupa_rescue_cmd_set): New function.
46686 (pupa_rescue_cmd_unset): New function.
46687 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46688 split the command line instead of splitting it here. Added
46689 support for setting variables using the syntax `foo=bar'. Don't
46690 initialize the prefix command anymore. Initialized the set and
46692 * normal/cmdline.c: Include <pupa/env.h>.
46693 (pupa_tab_complete): Added prototypes for print_simple_completion,
46694 print_partition_completion, add_completion, iterate_commands,
46695 iterate_dev, iterate_part and iterate_dir. Moved code to print
46696 partition information from here to kern/disk.c.
46697 (pupa_cmdline_run): Don't check if the function exists anymore.
46698 * normal/main.c: Include <pupa/env.h>.
46699 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46700 instead of using pupa_dl_get_prefix to get the prefix.
46701 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46702 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46704 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46705 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46706 ((unused))' to silence a gcc warning.
46707 (pupa_vga_setcolor): Likewise.
46708 (debug_command): Changed to match argument parsing
46710 * util/pupa-emu.c: Include <pupa/env.h>.
46711 (options): Added 0's for unused fields to silence a gcc warning.
46713 (main): Use the environment variable `prefix' instead of using
46714 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
46715 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
46718 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
46719 * util/misc.c: Include <malloc.h>.
46720 (pupa_malloc): Rewritten so errors are correctly reported.
46721 (pupa_realloc): Likewise.
46722 (pupa_memalign): Likewise.
46723 (pupa_mm_init_region): Declare unused variables with
46724 `__attribute__ ((unused))' to silence a gcc warning.
46725 * normal/i386/setjmp.S: Remove tab at the end of the file to
46726 silence a gcc warning.
46727 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
46728 variables with `__attribute__ ((unused))' to silence a gcc
46730 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
46731 local variable i unsigned to silence a gcc warning.
46733 * kern/term.c: Include <pupa/misc.h>.
46734 (pupa_more_lines): New variable.
46735 (pupa_more): Likewise.
46736 (pupa_putcode): When the pager is active pause at the end of every
46738 (pupa_set_more): New function.
46739 * include/pupa/term.h (pupa_set_more): New prototype.
46742 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
46744 Now this project is GRUB 2 rather than PUPA. The location of
46745 the CVS repository was moved to GRUB's.
46747 * configure.ac: Use bug-grub as the reporting address.
46748 Use GRUB instead of PUPA.
46749 Change the version number to 1.90.
46751 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
46753 * genkernsyms.sh: Updated copyright information.
46754 * genmk.rb: Likewise.
46755 * genmodsrc.sh: Likewise.
46756 * gensymlist.sh: Likewise.
46757 * boot/i386/pc/boot.S: Likewise.
46758 * boot/i386/pc/diskboot.S: Likewise.
46759 * disk/i386/pc/biosdisk.c: Likewise.
46760 * disk/i386/pc/partition.c: Likewise.
46761 * font/manager.c: Likewise.
46762 * fs/ext2.c: Likewise.
46763 * fs/fat.c: Likewise.
46764 * include/pupa/boot.h: Likewise.
46765 * include/pupa/device.h: Likewise.
46766 * include/pupa/disk.h: Likewise.
46767 * include/pupa/dl.h: Likewise.
46768 * include/pupa/elf.h: Likewise.
46769 * include/pupa/err.h: Likewise.
46770 * include/pupa/file.h: Likewise.
46771 * include/pupa/font.h: Likewise.
46772 * include/pupa/fs.h: Likewise.
46773 * include/pupa/kernel.h: Likewise.
46774 * include/pupa/loader.h: Likewise.
46775 * include/pupa/misc.h: Likewise.
46776 * include/pupa/mm.h: Likewise.
46777 * include/pupa/net.h: Likewise.
46778 * include/pupa/normal.h: Likewise.
46779 * include/pupa/rescue.h: Likewise.
46780 * include/pupa/setjmp.h: Likewise.
46781 * include/pupa/symbol.h: Likewise.
46782 * include/pupa/term.h: Likewise.
46783 * include/pupa/types.h: Likewise.
46784 * include/pupa/i386/setjmp.h: Likewise.
46785 * include/pupa/i386/types.h: Likewise.
46786 * include/pupa/i386/pc/biosdisk.h: Likewise.
46787 * include/pupa/i386/pc/boot.h: Likewise.
46788 * include/pupa/i386/pc/console.h: Likewise.
46789 * include/pupa/i386/pc/init.h: Likewise.
46790 * include/pupa/i386/pc/kernel.h: Likewise.
46791 * include/pupa/i386/pc/linux.h: Likewise.
46792 * include/pupa/i386/pc/loader.h: Likewise.
46793 * include/pupa/i386/pc/memory.h: Likewise.
46794 * include/pupa/i386/pc/multiboot.h: Likewise.
46795 * include/pupa/i386/pc/partition.h: Likewise.
46796 * include/pupa/i386/pc/time.h: Likewise.
46797 * include/pupa/i386/pc/vga.h: Likewise.
46798 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
46799 * include/pupa/util/getroot.h: Likewise.
46800 * include/pupa/util/misc.h: Likewise.
46801 * include/pupa/util/resolve.h: Likewise.
46802 * kern/device.c: Likewise.
46803 * kern/disk.c: Likewise.
46804 * kern/dl.c: Likewise.
46805 * kern/err.c: Likewise.
46806 * kern/file.c: Likewise.
46807 * kern/fs.c: Likewise.
46808 * kern/loader.c: Likewise.
46809 * kern/main.c: Likewise.
46810 * kern/misc.c: Likewise.
46811 * kern/mm.c: Likewise.
46812 * kern/rescue.c: Likewise.
46813 * kern/term.c: Likewise.
46814 * kern/i386/dl.c: Likewise.
46815 * kern/i386/pc/init.c: Likewise.
46816 * kern/i386/pc/lzo1x.S: Likewise.
46817 * kern/i386/pc/startup.S: Likewise.
46818 * loader/i386/pc/chainloader.c: Likewise.
46819 * loader/i386/pc/linux.c: Likewise.
46820 * loader/i386/pc/multiboot.c: Likewise.
46821 * normal/cmdline.c: Likewise.
46822 * normal/command.c: Likewise.
46823 * normal/main.c: Likewise.
46824 * normal/menu.c: Likewise.
46825 * normal/i386/setjmp.S: Likewise.
46826 * term/i386/pc/console.c: Likewise.
46827 * term/i386/pc/vga.c: Likewise.
46828 * util/console.c: Likewise.
46829 * util/genmoddep.c: Likewise.
46830 * util/misc.c: Likewise.
46831 * util/pupa-emu.c: Likewise.
46832 * util/resolve.c: Likewise.
46833 * util/unifont2pff.rb: Likewise.
46834 * util/i386/pc/biosdisk.c: Likewise.
46835 * util/i386/pc/getroot.c: Likewise.
46836 * util/i386/pc/pupa-mkimage.c: Likewise.
46837 * util/i386/pc/pupa-setup.c: Likewise.
46839 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
46841 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
46842 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
46843 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
46844 reading and reset it after reading.
46845 (pupa_ext2_close): Return PUPA_ERR_NONE.
46847 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
46849 (struct linux_kernel_header): Add kernel_version and
46851 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
46852 pupa_file_read succeeds.
46853 (pupa_rescue_cmd_initrd): Implement.
46855 2003-12-03 Marco Gerards <metgerards@student.han.nl>
46857 * fs/ext2.c (pupa_ext2_label): New function.
46858 (pupa_ext2_fs): Added label.
46859 * fs/fat.c (pupa_fat_label): New function.
46860 (pupa_fat_fs): Added label.
46861 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
46863 * kern/misc.c (pupa_strndup): New function.
46864 * include/pupa/misc.h (pupa_strndup): New prototype.
46866 * include/pupa/normal.h: Include <pupa/err.h>.
46867 (pupa_set_history): New prototype.
46868 (pupa_iterate_commands): New prototype.
46869 * normal/cmdline.c: Include <pupa/machine/partition.h>,
46870 <pupa/disk.h>, <pupa/file.h>.
46871 (hist_size): New variable.
46872 (hist_lines): Likewise.
46873 (hist_end): Likewise.
46874 (hist_used): Likewise.
46875 (pupa_set_history): New function.
46876 (pupa_history_get): Likewise.
46877 (pupa_history_add): Likewise.
46878 (pupa_history_replace): Likewise.
46879 (pupa_tab_complete): Likewise.
46880 (pupa_cmdline_run): Added tab completion and history buffer. Tab
46881 completion shows partitionnames while completing partitions, this
46882 feature was suggested by Jeff Bailey.
46883 * normal/command.c (pupa_iterate_commands): New function.
46884 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
46885 (pupa_normal_init): Initialize history buffer.
46886 (PUPA_MOD_INIT): Likewise.
46887 (pupa_normal_fini): Free the history buffer.
46888 (PUPA_MOD_FINI): Likewise.
46890 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
46893 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
46894 * configure.ac [i386]: Check for regparam bug.
46895 (NESTED_FUNC_ATTR) [! i386]: Defined.
46897 2003-11-17 Marco Gerards <metgerards@student.han.nl>
46899 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
46900 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
46901 (pupa_emu_SOURCES): New variable.
46902 (pupa_emu_LDFLAGS): Likewise.
46903 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
46904 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
46905 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
46906 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46907 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
46908 (pupa_jmp_buf): New typedef.
46909 (pupa_setjmp) [PUPA_UTIL]: New macro.
46910 (pupa_longjmp) [PUPA_UTIL]: Likewise.
46911 * include/pupa/term.h (struct pupa_term): New member `refresh'.
46912 (pupa_refresh): New prototype.
46913 * include/pupa/util/getroot.h: New file.
46914 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
46916 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
46917 (pupa_rescue_cmd_cat): Likewise.
46918 (pupa_rescue_cmd_ls): Likewise.
46919 (pupa_rescue_cmd_testload): Likewise.
46920 (pupa_rescue_cmd_lsmod): Likewise.
46921 * normal/cmdline.c (pupa_cmdline_get): Likewise.
46922 * normal/menu.c (run_menu): Likewise.
46923 * kern/term.c (pupa_cls): Likewise.
46924 (pupa_refresh): New function.
46925 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
46926 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46927 * util/console.c: New file.
46929 * util/i386/pc/getroot.c: New file.
46930 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
46931 (pupa_putchar): New function.
46932 (pupa_refresh): Likewise.
46933 (xgetcwd): Function moved to ...
46934 (strip_extra_slashes): Likewise.
46935 (get_prefix): Likewise.
46936 * util/i386/pc/getroot.c: ... here.
46937 (find_root_device): Function moved and renamed to...
46938 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
46939 Changed all callers.
46940 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
46942 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
46943 Changed all callers.
46944 * util/misc.c (pupa_memalign): New function.
46945 (pupa_mm_init_region): Likewise.
46946 (pupa_register_exported_symbols): Likewise.
46947 (pupa_putchar): Function removed.
46948 * util/pupa-emu.c: New file.
46950 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
46952 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
46953 (_multiboot_mod_SOURCES): New variable.
46954 (_multiboot_mod_CFLAGS): Likewise.
46955 * loader/i386/pc/multiboot.c: New file.
46956 * include/pupa/i386/pc/multiboot.h: Likewise.
46957 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
46958 (pupa_multiboot_real_boot): New function.
46959 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
46960 (pupa_multiboot_real_boot): New prototype.
46961 (pupa_rescue_cmd_multiboot): Likewise
46962 (pupa_rescue_cmd_module): Likewise.
46964 * kern/loader.c (pupa_loader_set): Continue when
46965 pupa_loader_unload_func() fails.
46966 (pupa_loader_unset): New function.
46967 * include/pupa/loader.h (pupa_loader_unset): New prototype.
46969 * kern/misc.c (pupa_stpcpy): New function.
46970 * include/pupa/misc.h (pupa_stpcpy): New prototype.
46972 2003-11-12 Marco Gerards <metgerards@student.han.nl>
46974 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
46975 for available extensions.
46977 * include/pupa/i386/pc/time.h: New file.
46978 * kern/disk.c: Include <pupa/machine/time.h>.
46979 (PUPA_CACHE_TIMEOUT): New macro.
46980 (pupa_last_time): New variable.
46981 (pupa_disk_open): Flush the cache when there was a timeout.
46982 (pupa_disk_close): Reset the timer.
46983 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
46985 * util/misc.c: Include <sys/times.h>
46986 (pupa_get_rtc): New function.
46988 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
46990 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
46992 (pupa_ext2_get_file_block): Use blocks member.
46994 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
46995 first block. Return -1 instead of pupa_errno on error.
46997 2003-10-27 Marco Gerards <metgerards@student.han.nl>
46999 * README: In the pupa-mkimage example use _chain instead of chain
47000 and ext2 instead of fat.
47001 * TODO: Replace ext2fs with jfs as an example. Add an item for
47002 adding journal playback for ext2fs.
47003 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47004 (pkgdata_MODULES): Added ext2.mod.
47005 (ext2_mod_SOURCES): New variable.
47006 (ext2_mod_CFLAGS): Likewise.
47007 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47008 * include/pupa/misc.h (pupa_strncpy): New prototype.
47009 (pupa_strcat): Likewise.
47010 (pupa_strncmp): Likewise.
47011 * kern/misc.c (pupa_strcat): Enable function.
47012 (pupa_strncpy): New function.
47013 (pupa_strncmp): Likewise.
47014 * fs/ext2.c: New file.
47016 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47017 when the read failed before retrying.
47018 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47019 (_FILE_OFFSET_BITS): Likewise.
47020 * configure.ac: Added AC_SYS_LARGEFILE.
47022 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47024 * genmk.rb (PModule#rule): Make sure to get only symbol names
47025 from the output of nm.
47026 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47028 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47030 I forgot to check in these changes for a long time. This adds
47031 incomplete support for VGA console, and this is still very
47032 buggy. Also, a lot of consideration is required for I18N,
47033 UNICODE, and VGA font issues. Therefore, assume that this is
47034 such that "better than nothing".
47036 * font/manager.c: New file.
47037 * include/pupa/font.h: Likewise.
47038 * include/pupa/i386/pc/vga.h: Likewise.
47039 * term/i386/pc/vga.c: Likewise.
47040 * util/unifont2pff.rb: Likewise.
47042 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47043 (pkgdata_MODULES): Added vga.mod and font.mod.
47044 (vga_mod_SOURCES): New variables.
47045 (vga_mod_CFLAGS): Likewise.
47046 (font_mod_SOURCES): Likewise.
47047 (font_mod_CFLAGS): Likewise.
47049 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47051 * include/pupa/term.h: Include pupa/err.h.
47052 (struct pupa_term): Added init and fini.
47053 Changed the argument of putchar to pupa_uint32_t.
47055 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47056 (pupa_console_real_putchar): New prototype.
47057 (pupa_console_putchar): Removed.
47058 (pupa_console_checkkey): Exported.
47059 (pupa_console_getkey): Likewise.
47061 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47064 * kern/term.c (pupa_term_set_current): Rewritten.
47065 (pupa_putchar): Likewise.
47066 (pupa_putcode): New function.
47068 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47069 (pupa_console_real_putchar): ... this.
47070 (pupa_vga_set_mode): New function.
47071 (pupa_vga_get_font): Likewise.
47073 * normal/command.c: Include pupa/term.h.
47074 (terminal_command): New function.
47075 (pupa_command_init): Register the command "terminal".
47077 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47078 (DISP_UP): Likewise.
47079 (DISP_RIGHT): Likewise.
47080 (DISP_DOWN): Likewise.
47081 (DISP_HLINE): Likewise.
47082 (DISP_VLINE): Likewise.
47083 (DISP_UL): Likewise.
47084 (DISP_UR): Likewise.
47085 (DISP_LL): Likewise.
47086 (DISP_LR): Likewise.
47088 * term/i386/pc/console.c (pupa_console_putchar): New function.
47090 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47092 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47093 FIX. Reverse the path_list.
47095 * include/pupa/normal.h: Export pupa_register_command and
47096 pupa_unregister_command.
47098 * hello/hello.c (pupa_cmd_hello): New module.
47099 * conf/i386-pc.rmk: Added hello.mod.
47101 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47103 * kern/i386/pc/lzo1x.S: New file.
47105 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47106 (compress_kernel): New variable.
47107 (generate_image): Heavily modified to support compressing a
47108 large part of the core image.
47110 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47112 (pupa_util_load_image): New function.
47114 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47115 (pupa_compressed_size): New variable.
47116 (codestart): Enable Gate A20 here.
47117 Decompress the compressed part of the core image.
47118 Rearrange the code to put functions and variables which are
47119 required for initialization in the non-compressed part.
47122 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47125 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47127 * include/pupa/i386/pc/kernel.h
47128 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47129 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47130 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47131 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47132 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47134 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47136 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47137 (Utility#rule): Likewise.
47139 * configure.ac: Check if LZO is available.
47141 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47143 * include/pupa/normal.h: New file.
47144 * include/pupa/setjmp.h: Likewise.
47145 * include/pupa/i386/setjmp.h: Likewise.
47146 * normal/cmdline.c: Likewise.
47147 * normal/command.c: Likewise.
47148 * normal/main.c: Likewise.
47149 * normal/menu.c: Likewise.
47150 * normal/i386/setjmp.S: Likewise.
47152 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47153 (pupa_rescue_cmd_initrd): Likewise.
47155 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47158 * kern/i386/pc/startup.S (translation_table): New variable.
47159 (translate_keycode): New function.
47160 (pupa_console_getkey): Call translate_keycode.
47162 * kern/rescue.c (attempt_normal_mode): New function.
47163 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47164 it failed, print a message.
47166 * kern/mm.c (pupa_real_malloc): Print more information when a
47167 free magic is broken.
47168 (pupa_free): If the first free header is not free actually, set
47171 * kern/main.c (pupa_load_normal_mode): Just load the module
47173 (pupa_main): Don't print the message
47174 "Entering into rescue mode..." here.
47176 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47178 (pupa_rescue_cmd_initrd): Likewise.
47179 (pupa_rescue_cmd_initrd): Likewise.
47181 * include/pupa/symbol.h (FUNCTION): Specify the type.
47182 (VARIABLE): Likewise.
47184 * include/pupa/err.h (pupa_err_t): Added
47185 PUPA_ERR_UNKNOWN_COMMAND.
47187 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47188 (pupa_dl_get_prefix): Likewise.
47190 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47191 Added _chain.mod and _linux.mod instead of chain.mod and
47193 (chain_mod_SOURCES): Renamed to ...
47194 (_chain_mod_SOURCES): ... this.
47195 (chain_mod_CFLAGS): Renamed to ...
47196 (_chain_mod_CFLAGS): ... this.
47197 (linux_mod_SOURCES): Renamed to ...
47198 (_linux_mod_SOURCES): ... this.
47199 (linux_mod_CFLAGS): Renamed to ...
47200 (_linux_mod_CFLAGS): ... this.
47201 (normal_mod_SOURCES): New variable.
47202 (normal_mod_CFLAGS): Likewise.
47203 (normal_mod_ASFLAGS): Likewise.
47205 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47207 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47210 * kern/dl.c (pupa_dl_ref): Refer depending modules
47212 (pupa_dl_unref): Unrefer depending modules recursively.
47213 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47214 a module is unloaded before one depending on that module is
47216 (pupa_dl_unload): Unload depending modules explicitly,
47219 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47221 * include/pupa/i386/pc/linux.h: New file.
47222 * loader/i386/pc/linux.c: Likewise.
47224 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47226 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47227 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47228 of PUPA_CHAINLOADER_BOOT_SECTOR.
47230 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47231 (pupa_linux_prot_size): New variable.
47232 (pupa_linux_tmp_addr): Likewise.
47233 (pupa_linux_real_addr): Likewise.
47234 (pupa_linux_boot_zimage): New function.
47235 (pupa_linux_boot_bzimage): Likewise.
47237 * kern/i386/pc/init.c (struct mem_region): New structure.
47238 (MAX_REGIONS): New macro.
47239 (mem_regions): New variable.
47240 (num_regions): Likewise.
47241 (pupa_os_area_addr): Likewise.
47242 (pupa_os_area_size): Likewise.
47243 (pupa_lower_mem): Likewise.
47244 (pupa_upper_mem): Likewise.
47245 (add_mem_region): New function.
47246 (compact_mem_regions): Likewise.
47247 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47248 the size of the conventional memory and that of so-called upper
47249 memory (before the first memory hole).
47250 Instead of adding each found region to free memory, use
47251 add_mem_region and add them after removing overlaps.
47252 Also, add only 1/4 of the upper memory to free memory. The rest
47253 is used for loading OS images. Maybe this is ad hoc, but this
47254 makes it much easier to relocate OS images when booting.
47256 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47257 (pupa_enter_rescue_mode): Don't register initrd and module.
47259 * kern/mm.c: Include pupa/dl.h.
47261 * kern/main.c: Include pupa/file.h and pupa/device.h.
47263 * kern/loader.c (pupa_loader_load_module_func): Removed.
47264 (pupa_loader_load_module): Likewise.
47266 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47269 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47270 (pupa_linux_tmp_addr): Likewise.
47271 (pupa_linux_real_addr): Likewise.
47272 (pupa_linux_boot_zimage): Likewise.
47273 (pupa_linux_boot_bzimage): Likewise.
47275 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47276 (pupa_upper_mem): Likewise.
47277 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47278 module is too dangerous.
47280 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47281 (pupa_os_area_size): Likewise.
47282 (pupa_loader_set): Remove the first argument. Loader doesn't
47283 manage modules or initrd any longer.
47284 (pupa_loader_load_module): Removed.
47286 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47287 (linux_mod_SOURCES): New variable.
47288 (linux_mod_CFLAGS): Likewise.
47290 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47292 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47293 the length of a blocklist correctly.
47295 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47296 Use ioctl only if the OS file is a block device.
47297 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47298 not very useful for normal files.
47300 * kern/main.c (pupa_set_root_dev): New function.
47301 (pupa_load_normal_mode): Likewise.
47302 (pupa_main): Call those above.
47304 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47307 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47309 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47311 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47312 (setup): Configure the installed partition information and the
47315 * loader/i386/pc/chainloader.c (my_mod): New variable.
47316 (pupa_chainloader_unload): New function.
47317 (pupa_rescue_cmd_chainloader): Refer itself.
47318 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47320 * kern/i386/pc/startup.S (install_partition): Removed.
47321 (version_string): Likewise.
47322 (config_file): Likewise.
47323 (pupa_install_dos_part): New variable.
47324 (pupa_install_bsd_part): Likewise.
47325 (pupa_prefix): Likewise.
47326 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47328 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47330 (make_install_device): New function.
47331 (pupa_machine_init): Set the dl prefix.
47333 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47334 (buf): Renamed to ...
47335 (linebuf): ... this.
47336 (pupa_rescue_cmd_prefix): New function.
47337 (pupa_rescue_cmd_insmod): Likewise.
47338 (pupa_rescue_cmd_rmmod): Likewise.
47339 (pupa_rescue_cmd_lsmod): Likewise.
47340 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47343 * kern/mm.c (pupa_memalign): If failed even after invalidating
47344 disk caches, unload unneeded modules and retry.
47346 * kern/misc.c (pupa_memmove): New function.
47347 (pupa_memcpy): Removed.
47348 (pupa_strcpy): New function.
47349 (pupa_itoa): Made static.
47351 * kern/dl.c (pupa_dl_iterate): New function.
47352 (pupa_dl_ref): Likewise.
47353 (pupa_dl_unref): Likewise.
47354 (pupa_dl_unload): Return if succeeded or not.
47355 (pupa_dl_unload_unneeded): New function.
47356 (pupa_dl_unload_all): Likewise.
47357 (pupa_dl_init): Renamed to ...
47358 (pupa_dl_set_prefix): ... this.
47359 (pupa_dl_get_prefix): New function.
47361 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47362 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47363 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47364 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47365 (pupa_install_dos_part): Declared.
47366 (pupa_install_bsd_part): Likewise.
47367 (pupa_prefix): Likewise.
47368 (pupa_boot_drive): Likewise.
47370 * include/pupa/types.h: Fix a typo.
47372 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47374 (pupa_memmove): Declared.
47375 (pupa_strcpy): Likewise.
47377 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47378 pupa_mod_init takes one argument, its own module.
47379 (pupa_dl_unload_unneeded): Declared.
47380 (pupa_dl_unload_all): Likewise.
47381 (pupa_dl_ref): Likewise.
47382 (pupa_dl_unref): Likewise.
47383 (pupa_dl_iterate): Likewise.
47384 (pupa_dl_init): Renamed to ...
47385 (pupa_dl_set_prefix): ... this.
47386 (pupa_dl_get_prefix): Declared.
47388 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47389 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47391 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47392 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47394 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47395 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47397 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47399 * util/i386/pc/pupa-setup.c (setup): Define the internal
47400 function find_first_partition_start at the top level, because GCC
47401 3.0.x cannot compile internal functions in deeper scopes
47403 (find_root_device): Use lstat instead of stat.
47404 Don't follow symbolic links.
47405 Fix the path-constructing code.
47407 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47408 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47409 by a BLKGETSIZE ioctl first, because block devices don't fill
47410 the member st_mode of the structure stat on Linux.
47411 [__linux__] (linux_find_partition): Use a temporary buffer
47412 REAL_DEV for the working space. Copy it to DEV before returning.
47413 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47414 buffer cache consistent.
47415 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47416 strncmp. The previous value was merely wrong.
47417 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47419 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47420 FAT size is 12. The previous value was merely wrong.
47422 * kern/main.c (pupa_main): Don't split the starting message from
47425 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47426 LF, because BIOS goes crazy about character attributes in this
47429 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47431 * include/i386/pc/util/biosdisk.h: New file.
47432 * util/i386/pc/biosdisk.c: Likewise.
47433 * util/i386/pc/pupa-setup.c: Likewise.
47435 * Makefile.in (INCLUDE_DISTFILES): Added
47436 include/pupa/i386/pc/util/biosdisk.h.
47437 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47438 directory util/i386/pc.
47439 (install-local): Added a rule for sbin_UTILITIES.
47440 (uninstall): Likewise.
47442 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47444 * util/misc.c (xrealloc): New function.
47445 (pupa_malloc): Likewise.
47446 (pupa_free): Likewise.
47447 (pupa_realloc): Likewise.
47448 (pupa_stop): Likewise.
47449 (pupa_putchar): Likewise.
47451 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47453 * include/pupa/util/misc.h (xrealloc): Declared.
47455 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47457 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47458 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47460 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47461 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47463 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47464 way should be implemented.
47465 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47467 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47468 the size of NAME for safety.
47469 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47472 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47473 (pupa_setup_SOURCES): Likewise.
47475 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47477 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47479 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47480 bunch of pushl's from pusha, because this destroys the return
47483 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47485 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47486 This means that any missing prototypes could be fatal. Also, you
47487 must take care when writing assembly code. See the comments at
47488 the beginning of startup.S, for more details.
47490 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47491 compilation mechanism.
47492 (pupa_chainloader_real_boot): Likewise.
47493 (pupa_biosdisk_rw_int13_extensions): Likewise.
47494 (pupa_biosdisk_rw_standard): Likewise.
47495 (pupa_biosdisk_check_int13_extensions): Likewise.
47496 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47497 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47498 (pupa_get_memsize): Likewise.
47499 (pupa_get_mmap_entry): Likewise.
47500 (pupa_console_putchar): Likewise.
47501 (pupa_console_setcursor): Likewise.
47502 (pupa_getrtsecs): Use pushl instead of push.
47504 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47505 memory instead of the stack for a mmap entry, because some
47506 BIOSes may ignore the maximum size and overflow.
47508 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47510 * genmk.rb (PModule#rule): Compile automatically generated
47511 sources with module-specific CFLAGS as well as other sources.
47513 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47515 * configure.ac: Check ld.
47516 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47517 respectively, before checking endianness and sizes.
47519 * Makefile.in (LD): New variable.
47521 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47523 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47525 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47527 * Changelog: New file.