1 2013-01-20 Aleš Nesrsta <starous@volny.cz>
3 Split long USB transfers into short ones.
5 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
10 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12 * util/grub-script-check.c (main): Uniform the error message.
14 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
16 Remove nested functions from ELF iterators.
18 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
20 Remove nested functions from device iterators.
22 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
23 (grub_arc_iterate_devs): Add hook_data argument.
24 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
25 (struct grub_ata_dev.iterate): Add hook_data argument.
26 * include/grub/device.h (grub_device_iterate_hook_t): New type.
27 (grub_device_iterate): Add hook_data argument.
28 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
29 (struct grub_disk_dev.iterate): Add hook_data argument.
30 (grub_disk_dev_iterate): Likewise.
31 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
33 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
35 * include/grub/partition.h (grub_partition_iterate_hook_t): New
37 (struct grub_partition_map.iterate): Add hook_data argument.
38 (grub_partition_iterate): Likewise.
39 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
40 (struct grub_scsi_dev.iterate): Add hook_data argument.
44 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
46 Fix typos for "developer" and "development".
48 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
50 Add license header to spkmodem-recv.c.
52 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
54 Rewrite spkmodem to use PIT for timing. Double the speed.
56 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
58 Add new command pcidump.
60 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
62 New terminal outputs using serial: morse and spkmodem.
64 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
66 Improve bidi handling in entry editor.
68 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
70 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
71 argument to prevent name collision.
73 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
75 Remove nested functions from script reading and parsing.
77 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
78 getline_data argument, passed to getline.
79 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
80 getline_data argument, passed to grub_parser_split_cmdline.
81 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
82 lexerstate->getline_data to lexerstate->getline.
83 (grub_script_lexer_init): Add getline_data argument, saved in
84 lexerstate->getline_data.
85 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
86 argument, passed to grub_script_parse.
87 * grub-core/script/script.c (grub_script_parse): Add getline_data
88 argument, passed to grub_script_lexer_init.
89 * include/grub/parser.h (grub_parser_split_cmdline): Update
90 prototype. Update all callers to pass appropriate getline data.
91 (struct grub_parser.parse_line): Likewise.
92 (grub_rescue_parse_line): Likewise.
93 * include/grub/reader.h (grub_reader_getline_t): Add void *
95 * include/grub/script_sh.h (struct grub_lexer_param): Add
97 (grub_script_parse): Update prototype. Update all callers to pass
98 appropriate getline data.
99 (grub_script_lexer_init): Likewise.
100 (grub_normal_parse_line): Likewise.
102 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
104 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
105 static instead of nested. Rename to ...
106 (grub_parser_execute_getline): ... this.
107 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
109 * grub-core/normal/main.c (read_config_file: getline): Make static
110 instead of nested. Rename to ...
111 (read_config_file_getline): ... this.
112 (grub_normal_read_line): Add unused data argument.
113 * grub-core/script/execute.c (grub_script_execute_sourcecode:
114 getline): Make static instead of nested. Rename to ...
115 (grub_script_execute_sourcecode_getline): ... this.
116 * util/grub-script-check.c (main: get_config_line): Make static
119 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
121 Remove nested functions from memory map iterators.
123 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
124 argument, passed to hook.
125 * grub-core/kern/i386/coreboot/mmap.c
126 (grub_linuxbios_table_iterate): Likewise.
127 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
129 (grub_machine_mmap_iterate): Add hook_data argument.
130 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
131 Add hook_data argument, passed to hook.
132 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
134 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
136 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
138 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
140 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
142 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
144 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
145 (grub_machine_mmap_iterate): Likewise.
146 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
147 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
149 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
150 Remove NESTED_FUNC_ATTR from here and from all users.
151 (grub_mmap_iterate): Update prototype.
152 (grub_efi_mmap_iterate): Update prototype. Update all callers to
153 pass appropriate hook data.
154 (grub_machine_mmap_iterate): Likewise.
156 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
157 static instead of nested.
158 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
160 (lsmmap_hook): ... this.
161 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
163 (grub_efiemu_mmap_fill: fill_hook): Likewise.
164 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
165 heap_init): Likewise.
166 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
168 (mmap_iterate_hook): ... this.
169 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
171 * grub-core/lib/ieee1275/relocator.c
172 (grub_relocator_firmware_get_max_events: count): Likewise.
173 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
175 (grub_relocator_firmware_fill_events_iter): ... this.
176 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
177 hook): Likewise. Rename to ...
178 (grub_relocator_alloc_chunk_align_iter): ... this.
179 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
181 (generate_e820_mmap_iter): ... this.
182 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
184 (count_hook): ... this.
185 (grub_linux_boot: hook): Likewise. Rename to ...
186 (grub_linux_boot_mmap_find): ... this.
187 (grub_linux_boot: hook_fill): Likewise. Rename to ...
188 (grub_linux_boot_mmap_fill): ... this.
189 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
190 hook): Likewise. Rename to ...
191 (grub_fill_multiboot_mmap_iter): ... this.
192 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
193 hook): Likewise. Rename to ...
194 (count_hook): ... this.
195 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
196 hook): Likewise. Rename to ...
197 (grub_fill_multiboot_mmap_iter): ... this.
198 * grub-core/loader/powerpc/ieee1275/linux.c
199 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
200 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
201 Likewise. Rename to ...
202 (alloc_phys_choose): ... this.
203 (determine_phys_base: get_physbase): Likewise.
204 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
205 find_hook): Likewise.
206 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
207 (malloc_hook: count_hook): Likewise.
208 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
209 Likewise. Rename to ...
210 (lower_hook): ... this.
211 (grub_mmap_get_upper: hook): Likewise. Rename to ...
212 (upper_hook): ... this.
213 (grub_mmap_get_post64: hook): Likewise. Rename to ...
214 (post64_hook): ... this.
215 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
216 Likewise. Rename to ...
217 (lower_hook): ... this.
218 (grub_mmap_get_upper: hook): Likewise. Rename to ...
219 (upper_hook): ... this.
220 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
221 (grub_mmap_iterate: fill_hook): Likewise.
222 (fill_mask): Pass addr and mask within a single struct.
223 (grub_cmd_badram: hook): Make static instead of nested. Rename
225 (badram_iter): ... this.
226 (grub_cmd_cutmem: hook): Likewise. Rename to ...
227 (cutmem_iter): ... this.
229 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
231 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
232 delimit path in strings using quotes.
233 * util/getroot.c (grub_guess_root_devices): Likewise.
234 (grub_make_system_path_relative_to_its_root): Likewise.
235 * util/grub-probe.c (probe): Likewise.
236 * util/ieee1275/ofpath.c (find_obppath): Likewise.
237 (xrealpath): Likewise.
239 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
241 Fix compilation with older compilers.
243 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
244 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
246 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
247 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
248 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
250 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
251 * include/grub/crypto.h: Add type defines.
252 * util/import_gcrypth.sed: Remove duplicate type defines.
254 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
256 New command list_trusted.
258 * grub-core/commands/verify.c (grub_cmd_list): New function.
260 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
262 * util/grub-mkimage.c (generate_image): Fix "size of public key"
265 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
267 Remove nested functions from PCI iterators.
269 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
270 passed to hook. Update all callers to pass appropriate hook data.
271 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
272 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
273 Remove NESTED_FUNC_ATTR from here and from all users.
274 (grub_pci_iterate): Update prototype.
275 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
276 instead of nested. Rename to ...
277 (grub_cs5536_find_iter): ... this.
278 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
279 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
281 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
283 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
285 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
287 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
288 * grub-core/video/radeon_fuloong2e.c
289 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
290 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
291 find_card): Likewise.
292 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
295 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
297 * grub-core/commands/verify.c: Mark messages for translating.
299 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
301 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
304 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
306 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
309 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
311 * autogen.sh: Do not try to delete nonexistant files.
312 * util/import_gcrypth.sed: Add some missing header removals.
314 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
316 Clean up dangling references to grub-setup.
317 Fixes Ubuntu bug #1082045.
319 * docs/grub.texi (Images): Refer generally to grub-install rather
320 than directly to grub-setup.
321 (Installing GRUB using grub-install): Remove direct reference to
323 (Device map) Likewise.
324 (Invoking grub-install): Likewise.
325 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
326 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
327 * util/grub-install.in (usage): Likewise.
329 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
330 Apply to grub-bios-setup and grub-sparc64-setup rather than to
332 * configure.ac: Remove grub_setup output variable.
334 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
336 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
337 grub-setup to grub-sparc64-setup.
339 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
341 Import gcrypt public-key cryptography and implement signature checking.
343 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
345 * grub-core/fs/ntfs.c: Ue more appropriate types.
346 * grub-core/fs/ntfscomp.c: Likewise.
347 * include/grub/ntfs.h: Likewise.
349 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
351 Support Apple FAT binaries on non-Apple platforms.
353 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
354 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
356 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
359 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
361 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
364 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
366 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
367 explicitly zeroing elements.
368 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
369 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
370 of elements in a structure already allocated using grub_zalloc.
371 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
373 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
375 * docs/grub.texi (grub_cpu): New subsection.
376 (grub_platform): Likewise.
378 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
380 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
382 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
384 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
387 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
389 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
390 * grub-core/fs/ntfscomp.c: Likewise.
391 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
392 (grub_ntfs_comp): Likewise.
394 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
396 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
398 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
399 of groups_per_block. All users updated.
401 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
403 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
405 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
406 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
408 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
410 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
412 Reported by: Yuta Satoh.
414 2013-01-03 Yuta Satoh <nigoro>
416 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
419 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
421 * configure.ac: Extend -Wno-trampolines to host.
423 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
425 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
428 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
430 * docs/grub.texi (Invoking grub-mkrelpath): New section.
431 (Invoking grub-script-check): Likewise.
433 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
435 * docs/grub.texi (Invoking grub-mount): New section.
436 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
438 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
440 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
441 test failures, so that a failing unit test correctly causes 'make
444 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
446 Fix failing printf test.
448 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
449 '$' in the correct order when collecting type information.
451 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
453 * docs/grub.texi (configfile): Explain environment variable
455 (source): New section.
456 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
458 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
460 Remove several trivially-unnecessary uses of nested functions.
462 * grub-core/commands/i386/pc/sendkey.c
463 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
465 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
467 (legacy_file_getline): ... this.
468 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
470 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
471 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
473 (probe_dummy_iter): ... this.
474 * grub-core/kern/i386/coreboot/mmap.c
475 (grub_linuxbios_table_iterate: check_signature): Likewise.
476 * grub-core/kern/parser.c (grub_parser_split_cmdline:
477 check_varstate): Likewise. Mark inline.
478 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
479 an additional parameter.
480 (find_long: fnd_long): Likewise. Pass two additional parameters.
481 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
482 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
483 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
484 Likewise. Rename to ...
485 (grub_cmos_find_port_iter): ... this.
486 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
488 (find_rtc_iter): ... this.
490 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
491 function directly into the function body, since it is only called
494 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
496 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
497 __attribute__ ((unused)).
498 * grub-core/video/bochs.c (find_card): Likewise.
499 * grub-core/video/cirrus.c (find_card): Likewise.
500 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
501 * grub-core/video/sis315pro.c (find_card): Likewise.
502 * grub-core/video/sm712.c (find_card): Likewise.
504 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
506 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
507 Fixes Savannah bug #37821.
509 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
511 Apply program name transformations at build-time rather than at
512 run-time. Fixes Debian bug #696465.
514 * acinclude.m4 (grub_TRANSFORM): New macro.
515 * configure.ac: Create output variables with transformed names for
517 * util/bash-completion.d/grub-completion.bash.in: Use
518 pre-transformed variables for program names.
519 * util/grub-install.in: Likewise.
520 * util/grub-kbdcomp.in: Likewise.
521 * util/grub-mkconfig.in: Likewise.
522 * util/grub-mkconfig_lib.in: Likewise.
523 * util/grub-mknetdir.in: Likewise.
524 * util/grub-mkrescue.in: Likewise.
525 * util/grub-mkstandalone.in: Likewise.
526 * util/grub-reboot.in: Likewise.
527 * util/grub-set-default.in: Likewise.
528 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
529 * tests/util/grub-shell-tester.in: Remove unused assignment.
530 * tests/util/grub-shell.in: Likewise.
531 * util/grub.d/00_header.in: Likewise.
533 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
535 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
537 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
539 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
541 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
543 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
544 Reported by: Eriks Latosheks <foresterlv>.
546 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
548 * docs/grub.texi (Network): Update instructions on generating netboot
551 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
553 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
554 around device name if necessarry.
556 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
558 * util/grub-install.in: Follow the symbolic link parameter added
561 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
563 * util/grub-install.in: Remove stale TODO.
565 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
567 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
568 dynamic allocation for the bootpath buffer.
570 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
572 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
575 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
577 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
578 argument rather than font name. All users updated.
579 (grub_gfxterm_set_window): Likewise.
581 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
583 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
586 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
588 * util/getroot.c (convert_system_partition_to_system_disk): Support
591 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
593 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
594 infinite loop on corrupted FS.
596 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
598 Fix big-endian mtime.
600 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
601 together sec and usec.
602 (grub_ufs_dir): Use correct byteswapping for UFS time.
604 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
606 Support big-endian UFS1.
608 * Makefile.util.def (libgrubmods): Add ufs_be.c
609 * grub-core/Makefile.core.def (ufs1_be): New module.
610 * grub-core/fs/ufs_be.c: New file.
611 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
614 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
616 * include/grub/types.h: Fix functionality unaffecting typo in
617 GRUB_TARGET_WORDSIZE conditional macro.
619 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
621 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
623 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
625 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
626 that /netbsd appears first (when it exists).
628 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
630 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
631 Fixes Savannah bug #37558.
633 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
635 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
636 description of extract_entries_configfile.
638 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
640 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
642 (grub_cmd_linux): Likewise.
643 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
644 preferred_lifetime. Update all users.
646 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
648 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
649 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
651 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
653 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
654 errors from grub-probe to /dev/null, not stdout.
656 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
658 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
661 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
663 * util/grub-install.in: Make the error message if $source_dir
664 doesn't exist more useful.
666 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
668 Fix grub-emu build on FreeBSD.
670 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
671 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
673 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
674 implementation is currently Linux-specific.
675 * util/getroot.c (exec_pipe): Define only on Linux or when either
676 libzfs or libnvpair is unavailable.
677 (find_root_devices_from_poolname): Remove unused path variable.
679 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
681 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
682 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
683 should fit before end == 63.
685 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
687 * util/grub-setup.c (write_rootdev): Remove unused core_img
688 parameter. Update all callers.
689 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
690 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
693 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
695 * util/grub-mkconfig_lib.in (grub_tab): New variable.
696 (grub_add_tab): New function.
697 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
698 * util/grub.d/10_illumos.in: Likewise.
699 * util/grub.d/10_kfreebsd.in: Likewise.
700 * util/grub.d/10_linux.in: Likewise.
701 * util/grub.d/10_netbsd.in: Likewise.
702 * util/grub.d/10_windows.in: Likewise.
703 * util/grub.d/10_xnu.in: Likewise.
704 * util/grub.d/20_linux_xen.in: Likewise.
705 * util/grub.d/30_os-prober.in: Likewise.
707 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
709 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
710 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
711 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
712 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
713 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
715 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
716 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
718 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
720 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
722 Reported by: BURETTE, Bernard.
724 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
726 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
729 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
731 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
732 IEEE1275 machines. Fixes powerpc-emu compilation.
733 * include/grub/terminfo.h: Likewise.
735 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
737 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
739 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
741 (efiemu_set_variable): Make vendor_guid a const pointer.
743 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
745 Don't require grub-mkconfig_lib to generate manpages for programs.
747 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
748 dependencies, don't add grub-mkconfig_lib.
749 (program): Pass empty adddeps.
750 (script): Pass grub-mkconfig_lib as adddeps.
752 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
754 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
755 * util/getroot.c (grub_find_device): Likewise.
756 (get_mdadm_uuid): Likewise.
757 (grub_util_is_imsm): Likewise.
758 (grub_util_pull_device): Likewise.
759 * util/grub-probe.c (probe): Likewise.
761 2012-09-10 Benoit Gschwind <gschwind>
763 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
764 (devs): Add devpath_8.
766 2012-09-08 Peter Jones <pjones@redhat.com>
768 * grub-core/Makefile.core.def (efifwsetup): New module.
769 * grub-core/commands/efi/efifwsetup.c: New file.
770 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
771 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
773 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
775 2012-09-05 Jiri Slaby <jslaby@suse.cz>
777 * configure.ac: Add SuSe path.
779 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
783 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
785 * util/import_gcry.py: Sort cipher_files, to make build system
786 generation more deterministic.
788 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
790 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
791 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
792 (grub_set_datetime): Likewise.
794 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
796 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
799 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
801 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
803 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
805 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
807 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
809 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
810 required for checkouts from bzr, but it may be useful for users or
811 distributors wishing to update translations against a tarball
812 distribution, and it can be helpful for the tarball to be a superset
815 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
817 * Makefile.am (EXTRA_DIST): Add
818 grub-core/tests/boot/linux.init-mips.S,
819 grub-core/tests/boot/linux.init-ppc.S, and
820 grub-core/tests/boot/linux-ppc.cfg.
822 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
824 * grub-core/mmap/mips/loongson: Remove empty directory.
826 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
828 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
831 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
833 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
836 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
838 * configure.ac: Strengthen the test for working -nostdinc -isystem.
840 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
842 * po/POTFILES.in: Regenerated.
844 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
846 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
847 (NetBSD): New subsection.
849 2012-07-22 Ales Nesrsta <starous@volny.cz>
851 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
852 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
854 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
856 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
857 * util/grub.d/10_hurd.in: Add missing quoting.
858 * util/grub.d/10_illumos.in: Likewise.
859 * util/grub.d/10_kfreebsd.in: Likewise.
860 * util/grub.d/10_linux.in: Likewise.
861 * util/grub.d/20_linux_xen.in: Likewise.
863 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
867 * grub-core/Makefile.core.def (lsefi): New module.
868 * grub-core/commands/efi/lsefi.c: New file.
869 * include/grub/efi/api.h: Add more GUIDs.
871 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
873 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
874 (grub_bsd_elf32_hook): Likewise.
875 (grub_bsd_elf64_size_hook): Likewise.
876 (grub_bsd_elf64_hook): Likewise.
877 (grub_bsd_load_elf): Likewise.
879 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
881 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
882 if hash function is unavailable.
883 (dec_stream_header): Likewise.
885 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
887 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
890 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
892 Fix coreboot compilation.
894 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
895 (grub_vga_text_init_real): ... this.
896 (grub_vga_text_fini): Rename to ...
897 (grub_vga_text_fini_real): ... this.
899 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
901 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
903 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
905 * grub-core/lib/legacy_parse.c: Support clear and testload.
907 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
909 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
911 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
913 * grub-core/fs/ext2.c: Experimental support for 64-bit.
915 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
917 * grub-core/net/tftp.c (ack): Fix endianness problem.
918 (tftp_receive): Likewise.
919 Reported by: Michael Davidsaver.
921 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
923 * gentpl.py: Make mans depend on grub-mkconfig_lib.
925 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
927 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
928 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
929 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
931 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
933 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
935 Reported by: Stuart Hayes.
937 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
939 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
941 * grub-core/Makefile.core.def (mda_text): New module.
942 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
943 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
944 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
945 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
947 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
948 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
949 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
951 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
953 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
955 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
957 * grub-core/term/i386/vga_common.c: Removed.
958 * include/grub/i386/vga_common.h: Likewise.
959 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
960 (grub_vga_cr_bw_read): Likewise.
961 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
962 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
963 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
964 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
965 grub_vga_cr_read/grub_vga_cr_write.
966 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
968 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
970 * configure.ac: Bump version to 2.00.
971 * grub-core/normal/main.c (features): Add feature_200_final.
973 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
974 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
976 * NEWS: Fix unclarity and language mistakes.
978 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
980 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
981 additional size to 3 pages.
982 Reported by: Stuart Hayes.
984 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
986 * NEWS: Add 2.00 entry.
988 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
990 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
991 put explicit "/" for empty path.
992 (wildcard_expand): Improve dprintf.
994 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
996 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
997 it's equal to currnode. This can happen with "" symlink.
999 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1001 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1002 echo shell command by printf command.
1004 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1006 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1007 the value returned by firmware is the maximal position, not diumension.
1008 (grub_terminfo_output_state): Use a more sane fallback.
1010 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1012 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1014 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1016 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1017 frequency to 150 MHz.
1019 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1023 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1025 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1027 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1029 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1031 Handle slash in HFS label.
1033 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1034 (grub_hfs_dir): Tanslate slash.
1035 (grub_hfs_label): Don't translate slash.
1037 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1039 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1040 network protocol listing since it introduces problematic dependency on
1043 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1045 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1047 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1049 Init video early on yeeloong to avoid being rebooted by watchdog.
1051 * grub-core/Makefile.am (gensm712): New target.
1052 (sm712_start.S): Likewise.
1053 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1054 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1055 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1057 * include/grub/vga.h: Move registry definitions to...
1058 * include/grub/vgaregs.h: ... here.
1060 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1062 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1065 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1067 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1068 platforms with firmware disk drivers in the core.
1070 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1072 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1073 informative verbose message.
1074 (read_lv): Handle 64-bit segment size.
1076 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1078 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1080 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1082 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1083 character but still remove trainling spaces.
1084 (grub_fat_label): Ignore archive flag.
1086 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1088 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1089 cast between linux_kernel_header and linux_kernel_params.
1091 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1093 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1095 (grub_raid6_recover_func_t): Likewise.
1096 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1097 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1099 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1101 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1103 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1107 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1108 [__NetBSD__]: Add explicit cast before bitshift.
1110 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1112 * configure.ac: Bump to 2.00~rc1.
1114 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1116 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1119 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1120 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1122 * docs/grub.texi: Fix search syntax.
1123 (Multi-boot manual config): Put msdos rather than GPT example.
1124 Grammar corrections.
1126 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1128 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1130 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1132 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1134 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1136 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1137 message on double free. Put the value of magic in case of mismatch.
1139 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1141 Speed-up video on yeeloong.
1143 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1145 (grub_video_sm712_video_fini): Unmap cached_ptr.
1146 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1147 (grub_video_sm712_set_active_render_target): Removed.
1148 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1149 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1152 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1154 Avoid flushing the same line multiple times on loongson.
1156 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1157 Step in 32 bytes and not 1 byte.
1158 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1161 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1163 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1166 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1168 Implement flow control for http.
1170 * grub-core/net/http.c (parse_line): Handle response 206.
1171 (http_receive): Stall if too many packets are in the queue.
1172 (http_establish): Fix range header.
1173 (http_seek): Fix double free.
1174 (http_close): Likewise.
1175 (http_packets_pulled): New function.
1176 (grub_http_protocol): Set http_seek
1177 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1178 (ack_real): Set window depending on i_stall.
1179 (grub_net_send_tcp_packet): Likewise.
1180 (grub_net_tcp_stall): New function.
1181 (grub_net_tcp_unstall): Likewise.
1182 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1183 (grub_net_tcp_unstall): Likewise.
1185 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1187 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1189 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1191 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1193 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1195 * tests/util/grub-shell.in: Fix a typo.
1197 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1199 Implement flow control for tftp.
1201 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1202 packets but stop only if stop condition is satisfied.
1203 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1204 `stall' instead of `eof' as stop condition.
1205 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1206 (http_err): Likewise.
1207 * grub-core/net/tftp.c (ack): Replace the first argument with data
1209 (tftp_receive): Stall if too many packets are in wait queue.
1210 (tftp_packets_pulled): New function.
1211 (grub_tftp_protocol): Set packets_pulled.
1212 * include/grub/net.h (grub_net_packets): New field count.
1213 (grub_net_put_packet): Increment count.
1214 (grub_net_remove_packet): Likewise.
1215 (grub_net_app_protocol): New field `packets_pulled'.
1216 (grub_net): New field `stall'.
1218 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1220 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1221 sync part to handle them.
1223 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1225 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1226 * grub-core/net/drivers/ieee1275/ofnet.c
1227 (grub_ieee1275_net_config_real): Likewise.
1229 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1231 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1232 the direct route for server/gateway.
1234 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1236 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1237 IP address to server name since we may not hame the DNS.
1239 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1241 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1242 freeing random buffer on failure.
1243 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1245 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1247 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1249 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1251 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1253 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1254 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1255 Handle malloc error correctly.
1257 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1259 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1262 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1264 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1267 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1269 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1270 none is explicitly specified.
1272 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1274 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1277 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1279 Respect netmask from bootp/dhcp.
1281 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1282 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1283 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1285 (grub_net_add_ipv4_local): ... this.
1286 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1287 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1288 (grub_net_add_ipv4_local): New proto.
1290 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1292 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1293 determining EFI memory map size.
1295 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1297 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1299 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1301 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1302 when looking for partition separator.
1304 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1306 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1309 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1311 Restructure FAT driver to avoid hook in label reading as it hits a
1314 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1315 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1316 (grub_fat_iterate_dir): Split into ...
1317 (grub_fat_iterate_init): ... this, ...
1318 (grub_fat_iterate_fini): ... this, ...
1319 (grub_fat_iterate_dir_next): ... and this. All users updated.
1321 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1323 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1324 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1325 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1326 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1327 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1328 New fields last_key and last_key_time.
1329 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1330 extended key-esc into extended key-extended key.
1332 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1334 Avoid unnecessary memcpy of whole video buffer.
1336 * grub-core/video/fb/video_fb.c (dirty): New struct.
1337 (framebuffer): Add members current_dirty and previous_dirty.
1338 (dirty): New function.
1339 (grub_video_fb_fill_rect): Update dirty.
1340 (common_blitter): Likewise.
1341 (grub_video_fb_scroll): Likewise.
1342 (doublebuf_blit_update_screen): Copy only dirty part.
1343 (doublebuf_pageflipping_update_screen): Likewise.
1344 (grub_video_fb_doublebuf_blit_init): Init dirty.
1345 (doublebuf_pageflipping_init): Likewise.
1346 (grub_video_fb_setup): Likewise.
1348 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1350 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1353 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1355 Fix wildcard regexp dot and other special characters handling.
1356 Reported by: Robert Mabee.
1358 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1359 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1360 (split_path): Trigger expansion on '?'.
1361 (unescape): New function.
1362 (wildcard_expand): Unescape parts copied without globbing.
1363 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1364 (grub_script_arglist_to_argv): Don't unescape expansions.
1366 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1368 * include/grub/net.h (grub_net_card): New member txbufsize.
1369 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1370 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1371 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1372 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1374 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1375 compatible property to check for macs. Set
1376 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1377 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1378 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1379 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1380 (send_card_buffer): Use txbuf.
1381 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1382 nested function out of the parent while on it.
1384 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1386 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1388 (grub_ieee1275_net_config_real): Fix config pointer.
1390 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1392 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1393 filename parsing to non-block devices.
1395 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1397 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1399 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1401 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1404 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1406 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1407 UUID search command even if hints probing failed.
1409 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1411 * po/POTFILES.in: Regenerated.
1413 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1415 Speed-up video on fuloong.
1417 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1419 (grub_pci_device_unmap_range): Handle non-cached address.
1420 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1422 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1423 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1424 (grub_video_sis315pro_set_active_render_target): Removed.
1425 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1426 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1427 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1429 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1432 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1434 * docs/grub.texi (Multi-boot manual config): New section.
1436 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1438 Avoid slow read-back from VRAM.
1440 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1442 * grub-core/video/fb/video_fb.c
1443 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1444 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1445 (front_target): Remove front_target. Add pages.
1446 (grub_video_fb_init): Skip setting front_pages.
1447 (grub_video_fb_fini): Likewise.
1448 (doublebuf_blit_update_screen): Use pages.
1449 (grub_video_fb_doublebuf_blit_init): Likewise.
1450 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1451 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1452 (grub_video_fb_setup): Prefer doublebuffing.
1454 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1456 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1459 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1463 * tests/util/grub-shell.in: Handle loongson.
1464 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1466 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1467 Reboot instead of shutdown if REBOOT is defined.
1469 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1471 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1472 sized ports since unlike on real hardware qemu supports only 32-bit
1475 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1477 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1478 * util/grub-mkrescue.in: Handle loongson.
1480 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1482 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1483 Set is_part appropriately.
1484 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1485 names. Canonicalize partition without full disk.
1487 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1489 Revert usb-quiesce since it's wrong.
1491 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1492 (grub_ofdisk_init): Don't do quiesce.
1494 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1496 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1497 PowerMac workaround to Xserves as well.
1498 Information supplied by: Benjamin Herrenschmidt.
1500 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1502 Don't assume that beginning address is also the entry point on ppc.
1504 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1505 (grub_linux_boot): Use linux_entry.
1506 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1507 (grub_linux_load64): Likewise.
1509 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1511 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1513 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1515 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1516 needlessly lose the console.
1518 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1520 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1523 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1525 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1526 than current grub_get_rtc() not implemented when booted with
1527 coreboot without TSC.
1529 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1530 Add machine/time.h to kernel headers on loongson.
1531 * grub-core/Makefile.core.def (kernel): Remove
1532 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1533 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1534 (grub_get_rtc): Likewise.
1535 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1536 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1537 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1538 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1539 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1540 rather than installing known non-working time source.
1541 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1542 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1543 * include/grub/time.h: Don't include machine/time.h.
1544 * include/grub/efi/time.h: Removed.
1545 * include/grub/i386/efi/time.h: Likewise.
1546 * include/grub/i386/ieee1275/time.h: Likewise.
1547 * include/grub/powerpc/ieee1275/time.h: Likewise.
1548 * include/grub/sparc64/ieee1275/time.h: Likewise.
1549 * include/grub/x86_64/efi/time.h: Likewise.
1551 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1553 Remove dot on i and j when combining with above diacritics.
1555 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1557 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1558 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1559 with dotless variants when any combining above is present.
1561 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1563 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1564 text and not binary.
1566 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1568 Stop polling as soon as we have the packet we were waiting for.
1570 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1572 * grub-core/net/arp.c (have_pending): New var.
1573 (pending_req): Likewise.
1574 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1576 (grub_net_arp_receive): Set have_pending.
1577 * grub-core/net/dns.c (recv_data): New field stop.
1578 (recv_hook): Set stop.
1579 (grub_net_dns_lookup): Init stop and use as stop condition.
1580 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1582 * grub-core/net/net.c (grub_net_poll_cards): New argument
1583 stop_condition. Stop when it goes true.
1584 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1586 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1588 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1590 Keep TX and RX buffers on EFI rather than always allocate new ones.
1592 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1593 card. All users updated.
1594 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1595 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1596 (get_card_packet): Likewise.
1597 (grub_efinet_findcards): Init new fields.
1599 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1601 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1602 compilation error on sparc64.
1604 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1606 Use ITC on IA64 rather than broken routine based on daytime.
1608 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1610 (grub_get_rtc) [__ia64__]: Likewise.
1611 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1612 (get_itc): New function.
1613 (grub_rtc_get_time_ms): Likewise.
1614 (grub_machine_init): Calibrate ITC.
1615 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1616 Keep only on non-ia64. Don't export since it's broken and used only
1617 if TSC is unavailable.
1619 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1621 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1623 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1624 Skip if parent is unused.
1626 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1628 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1630 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1632 Fix wildcard escaping.
1634 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1635 * grub-core/script/execute.c (wildcard_escape): .. to here.
1637 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1638 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1640 * grub-core/script/execute.c (gettext_append): Always escape.
1641 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1642 * grub-core/script/yylex.l: Don't cut away the escaping.
1643 * tests/grub_script_echo1.in: Add tests with wildcard.
1645 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1647 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
1648 (ftdi_hw_configure): Likewise.
1649 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
1651 (real_config): Handle 1.5 stop bits.
1652 (pl2303_hw_configure): Likewise.
1654 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1656 * Makefile.am: Add ppc linux bootcheck.
1657 * grub-core/tests/boot/linux-ppc.cfg: New file.
1658 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
1660 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1662 * tests/grub_script_expansion.in: Skip network protocols.
1664 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1666 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
1668 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1670 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
1674 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1676 ESCC serial driver for conducting sautomated tests in qemu.
1677 Not tested on real hardware.
1679 * include/grub/serial.h (grub_serial_port): New field escc_desc.
1680 * grub-core/term/ieee1275/escc.c: New file.
1681 * grub-core/Makefile.core.def (escc): New module.
1683 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1685 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
1687 (serial_hw_fetch): Don't read invalid handle.
1688 (serial_hw_put): Don't write into invalid handle.
1690 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1692 Add a 1.5 stop bits value.
1694 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
1695 * include/grub/serial.h (grub_serial_stop_bits_t): Add
1696 GRUB_SERIAL_STOP_BITS_1_5.
1698 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1700 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
1701 value rather than let it uninited.
1703 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1705 * grub-core/commands/wildcard.c (+check_file): New function.
1706 (wildcard_expand): Don't expand to non-existing files, expand with
1707 suffix and not attempt to expand if not needed.
1709 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1711 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
1712 out of partitions containing other partitions.
1714 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1716 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
1717 on some qemu versions with GRUB.
1719 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
1721 (grub_openbsd_bootarg_pcibios): New struct.
1722 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
1725 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1727 * tests/util/grub-shell.in: Trim firmware output on EFI.
1729 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1731 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
1732 and coreboot since it's already in kernel.
1734 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1736 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
1737 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1738 to here. New return value start. All users updated.
1739 Recursively scan linear mappings.
1740 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
1742 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1743 Use grub_util_get_dm_node_linear_info.
1744 * util/getroot.c (convert_system_partition_to_system_disk): Use
1745 grub_util_info rather than grub_dprintf.
1746 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
1748 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1750 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
1752 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
1753 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
1755 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1757 * include/grub/types.h (grub_set_unaligned64): New function.
1758 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
1761 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1763 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
1764 (grub_ofdisk_fini): Quiesce USB devices.
1766 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1768 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
1771 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1773 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
1775 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1777 * grub-core/disk/pata.c (grub_pata_pio_read)
1778 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
1779 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1781 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1783 Extend automated tests to qemu-mips.
1785 * Makefile.am: reorganise tests and enable qemu-mips.
1786 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
1787 * grub-core/tests/boot/linux.init-mips.S: New file.
1788 * tests/partmap_test.in: Handle ata0 disks.
1789 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
1792 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1794 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
1796 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
1799 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1801 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
1802 (grub_halt): Likewise.
1803 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
1805 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1807 * grub-core/term/serial.c (grub_serial_register)
1808 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
1809 the behaviour in line with x86 platforms.
1811 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1813 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
1814 (grub_ata_strncpy): Likewise.
1815 (grub_ata_identify): Add missing byteswaps.
1817 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1819 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
1821 (screen_read_char): Likewise.
1822 (grub_vga_text_cls): Likewise.
1824 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1826 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
1828 (make_file_path): Likewise.
1830 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1832 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
1834 Tested by: Paulo Flabiano Smorigo.
1835 Crucial information about API supplied by: Coleen <Last name unknown>.
1836 Reviewed by: Coleen <Last name unknown>.
1838 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1840 * util/grub-mkimage.c: Disable -Wcast-align.
1842 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1844 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
1847 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1849 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
1851 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1853 * util/grub-probe.c (escape_of_path): Fix double free.
1855 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1857 * grub-core/commands/videoinfo.c (hook): Show pitch.
1859 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1861 * util/grub.d/20_linux_xen.in: Skip xen-syms.
1863 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1865 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
1866 (probe): Add ieee1275 to OFW devices.
1868 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1870 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
1872 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1874 Handle IBM OFW path.
1876 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
1878 (of_path_of_scsi): Handle vdevice.
1880 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1882 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
1883 Allocate in multiples of 16 to avoid adding a few bytes free region the
1886 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1888 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
1889 Allocate in multiples of 16 to avoid adding a few bytes free region the
1891 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
1893 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1895 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
1897 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
1898 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
1900 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
1902 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
1904 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1906 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
1907 resulted in \\ at the end of the line.
1909 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1911 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
1912 (grub_parser_cmdline_state): Likewise.
1913 (grub_parser_split_cmdline): Likewise.
1915 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1917 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
1918 /dev/root and /dev/dm-*.
1920 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1922 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
1923 fix partially stale display.
1925 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1927 * grub-core/normal/menu_entry.c (backward_char): Use right line for
1930 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1932 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
1933 Fix MBR remapping workaround.
1934 (grub_util_biosdisk_read) [__linux__]: Likewise.
1936 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
1938 * util/grub-install.in: Check for ieee1275 and not ieee1276.
1940 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1942 * configure.ac: Bump to beta6.
1944 2012-05-31 Christer Weinigel <christer@weinigel.se>
1946 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
1948 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1950 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
1951 (grub_cmd_linux): Likewise.
1953 2012-05-31 Christer Weinigel <christer@weinigel.se>
1957 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
1958 (GRUB_EHCI_MULT_TWO): Likewise.
1959 (GRUB_EHCI_MULT_THREE): Likewise.
1960 (GRUB_EHCI_CMASK_MASK): New enum value.
1961 (GRUB_EHCI_SMASK_MASK): Likewise.
1962 (GRUB_EHCI_CMASK_OFF): Likewise.
1963 (GRUB_EHCI_SMASK_OFF): Likewise.
1964 (grub_ehci_pci_iter): Enable periodic schedule.
1965 (grub_ehci_parse_notrun): Likewise.
1966 (grub_ehci_restore_hw): Likewise.
1967 (grub_ehci_setup_qh): Set flags for low speed transfers.
1968 (grub_ehci_find_qh): Use periodic list for low speed.
1969 (grub_ehci_setup_transfer): Check periodic queue as well.
1970 (grub_ehci_check_transfer): Likewise.
1971 (grub_ehci_cancel_transfer): Cancel periodic transfer.
1973 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1975 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
1978 2012-05-31 Peter Jones <pjones@redhat.com>
1980 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
1981 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
1982 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
1984 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1986 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
1987 uninited variable. Allocate at least setup_sects.
1989 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1991 Fix handling of EFI with big memory maps.
1993 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
1994 (real_mode_mem): Likewise.
1995 (real_mode_target): Likewise.
1996 (real_mode_pages): Likewise.
1997 (prot_mode_pages): Likewise.
1998 (linux_params): New var.
1999 (linux_cmdline): Likewise.
2000 (free_pages): Don't set real mode variables.
2001 (allocate_pages): Don't allocate real mode memory.
2002 (grub_e820_add_region): Remove the limit.
2003 (grub_linux_boot): Allocate and copy real mode memory.
2004 (grub_linux_unload): Free linux_cmdline.
2005 (grub_cmd_linux): Use temporary storage for parameters.
2006 (grub_cmd_initrd): Likewise.
2007 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2008 (linux_kernel_params): Make it 1K big.
2010 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2012 * Makefile.util.def: Remove -Wno-format.
2013 * grub-core/Makefile.core.def: Likewise.
2015 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2017 * tests/cmp_unit_test.c: Add missing failure message.
2018 * tests/example_unit_test.c: Likewise.
2019 * tests/printf_unit_test.c: Likewise.
2021 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2023 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2024 relaxation of protective MBR requirements.
2026 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2028 * configure.ac: Add condition for COND_HOST_XNU.
2029 * Makefile.util.def (10_xnu): New script.
2030 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2032 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2034 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2037 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2040 Binary on other platforms stays identical.
2042 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2044 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2047 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2049 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2051 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2053 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2054 rather than defining size_t ourselves to avoid conflict.
2056 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2058 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2059 initialisation to avoid __bzero reference.
2061 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2063 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2065 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2066 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2067 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2068 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2069 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2071 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2073 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2074 * grub-core/kern/misc.c: Likewise.
2075 * grub-core/loader/i386/xnu.c: Likewise.
2076 * include/grub/i386/tsc.h: Likewise.
2077 * include/grub/symbol.h: Likewise.
2079 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2081 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2082 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2085 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2087 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2088 Implement Apple flavour.
2089 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2091 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2093 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2094 (memmove) [__APPLE__]: Likewise.
2095 (memcpy) [__APPLE__]: Likewise.
2096 (memset) [__APPLE__]: Likewise.
2097 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2098 (memmove) [__APPLE__]: Likewise.
2099 (memcpy) [__APPLE__]: Likewise.
2100 (memset) [__APPLE__]: Likewise.
2102 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2104 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2107 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2109 * grub-core/normal/main.c (read_config_file): Provide config_file and
2111 * util/grub.d/41_custom.in: Use config_directoy when available.
2113 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2115 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2116 (grub_bfs_dir): Likewise.
2118 2012-05-27 Peter Jones <pjones@redhat.com>
2120 The old code gives arguments to a printf function which can't work
2121 correctly, and the compiler complains.
2123 * grub-core/tests/example_functional_test.c (example_test): Add
2125 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2126 * include/grub/test.h (grub_test_assert_helper): New declaration.
2127 (grub_test_assert): Use grub_test_assert_helper.
2129 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2131 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2132 (exfctest): ... this to avoid overlong filenames.
2135 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2137 Handle "." and ".." on squashfs.
2139 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2140 Make inode numbers into stack.
2141 (grub_squash_read_symlink): Use stack.
2142 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2143 (make_root_node): Fill stack.
2144 (grub_squash_open): Use stack.
2146 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2148 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2151 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2153 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2154 stderr on test calls.
2156 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2158 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2160 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2162 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2164 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2166 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2169 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2171 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2172 (grub_hfsplus_iterate_dir): Add "." and "..".
2174 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2176 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2177 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2179 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2181 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2182 (find_path): Handle "." and "..".
2184 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2186 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2187 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2188 (grub_affs_iterate_dir): Handle hardlinks.
2190 2012-05-26 Matthew Garrett <mjg@redhat.com>
2192 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2193 (grub_efi_console_fini): Likewise.
2194 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2195 (grub_video_gop_fill_mode_info): Rename to ...
2196 (grub_video_gop_fill_real_mode_info): ... this.
2197 (grub_video_gop_fill_mode_info): New function.
2198 (grub_video_gop_setup): Setup double framebuffer.
2199 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2201 (grub_video_gop_swap_buffers): Copy framebuffer.
2202 (grub_video_gop_fini): Free offscreen buffer.
2203 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2205 (grub_efi_gop_blt_pixel): New struct.
2207 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2209 * gentpl.py: Remove error disabling for objconv.
2211 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2213 * configure.ac: Remove -Wunitialized as it's not available on older
2216 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2218 Fix extent overflow comparator.
2220 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2221 (grub_hfsplus_read_block): Set type.
2222 (grub_hfsplus_cmp_extkey): Compare type.
2224 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2226 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2228 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2230 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2233 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2235 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2236 (dejavu_bold_14.pf2): New target.
2238 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2240 * configure.ac: Fix djvu font detection.
2242 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2244 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2245 ext* instead of ext2.
2247 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2249 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2252 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2254 * docs/grub-dev.texi: Remove dot from .png.
2256 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2258 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2259 protective entry in any slot.
2260 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2261 if protective entry is found in any slot.
2263 Protective entry in non-first slot make no sense but is a widespread
2266 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2268 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2270 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2272 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2274 (grub_reiserfs_open): Don't free root.
2276 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2278 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2279 after freeing for safety.
2281 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2283 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2284 Reported by: Jordan Uggla.
2286 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2288 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2289 actual implementation. Specifically, clarify that the grub menu will
2290 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2293 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2295 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2298 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2300 Remove unjustified hard dependency of normal.mod on gfxterm.
2302 * include/grub/term.h (grub_term_output): New member fullscreen.
2303 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2304 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2305 (grub_gfxterm): Set .fullscreen.
2306 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2307 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2309 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2311 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2312 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2313 Mention case-insensitive AFFS, SFS and JFS.
2315 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2317 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2319 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2321 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2324 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2326 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2327 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2329 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2331 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2332 (grub_jfs_mount): Fill caseins.
2333 (grub_jfs_find_file): Respect caseins.
2335 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2337 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2340 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2342 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2343 New argument origpath. All users updated.
2345 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2347 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2348 (read_attr): Ensure that we read start of possibly compressed block.
2350 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2352 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2353 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2356 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2358 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2359 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2360 (dejavu.pf2): Replace with ...
2361 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2364 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2366 * util/grub.d/20_linux_xen.in: Add missing line.
2368 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2370 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2371 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2372 (grub_utf16_to_utf8): Likewise.
2374 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2376 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2377 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2378 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2379 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2380 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2381 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2383 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2385 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2388 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2390 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2391 (grub_udf_read_symlink): Handle read_string failure.
2393 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2395 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2398 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2400 Fix handling of UDF symlinks.
2402 * grub-core/fs/udf.c (read_string): New argument outbuf.
2404 (grub_ufs_read_symlink): Rename to ...
2405 (grub_udf_read_symlink): ... this. All users updated.
2406 Handle symlinks with more than one component.
2408 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2410 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2411 symlinks. Replace leading colon with a slash.
2413 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2415 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2418 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2420 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2421 match in inner node.
2423 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2425 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2426 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2427 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2428 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2429 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2430 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2431 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2432 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2433 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2435 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2437 Use grub-probe and not cmp to check that disk is empty.
2439 * util/grub-install.in: Use grub-probe for zero-check.
2440 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2441 (probe): Handle PRINT_ZERO_CHECK.
2442 (argp_parser): Handle -t zero_check.
2444 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2446 Flush block cache on adding disk to device map.
2448 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2449 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2451 (read_device_map): Likewise.
2452 (open_device): Flush on opening.
2454 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2456 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2457 (handle_symlink): Fix off-by-one error.
2458 Canonicalize the target.
2459 (grub_cpio_dir): Canonicalize the name.
2462 (grub_cpio_open): Canonicalize the name.
2464 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2466 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2469 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2471 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2472 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2474 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2476 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2477 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2480 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2482 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2485 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2487 Fix UFS1 big file support.
2489 * grub-core/fs/ufs.c (INODE): Removed.
2490 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2492 (INODE_MODE): Simplify.
2493 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2494 (grub_ufs_lookup_symlink): Don't use INODE.
2496 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2498 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2500 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2501 (grub_minix_data): Replace log_block_size with block_size.
2502 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2503 (grub_minix_mount): Fill block_size.
2505 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2507 * configure.ac: Bump to beta5.
2509 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2511 Fix wrapped HFS+ handling.
2513 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2514 blocks_start. All users updated.
2515 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2517 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2519 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2521 Fix long symlinks on reiserfs.
2523 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2524 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2525 (grub_reiserfs_iterate_dir): Save size for non-directories.
2526 (grub_reiserfs_open): Don't reread stat block as we already know the
2528 (grub_reiserfs_read): Split into...
2529 (grub_reiserfs_read_real): ... and ...
2530 (grub_reiserfs_read): ...this.
2532 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2534 Fix non-indexed JFS.
2536 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2537 (grub_jfs_data): New field namecomponentlen.
2538 (grub_jfs_mount): Fill namecomponentlen.
2539 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2541 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2543 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2544 * tests/grub_script_echo1.in: Add tests.
2546 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2548 * util/grub-install.in: Ignore empty devicetree directory.
2550 2012-05-08 Bean <bean123ch@gmail.com>
2552 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2554 (free_rsm): Free header as well.
2555 (free_old_fragments): Fix memory leak.
2556 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2557 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2558 (destroy_pq): Likewise.
2559 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2561 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2563 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2564 resulting hash as a precaution.
2566 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2568 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2569 '_' in variable names.
2570 * grub-core/net/net.c (grub_net_network_level_interface_register):
2573 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2575 Fix AFFS with non-512B blocks.
2577 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2578 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2579 (grub_affs_data): Replace blocksize with log_blocksize.
2580 (grub_affs_read_block): Fix non-512B blocks.
2581 (grub_affs_read_symlink): Likewise.
2582 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2583 (grub_affs_read): Fix non-512B blocks.
2584 (grub_affs_label): Likewise.
2585 (grub_affs_mtime): Likewise.
2586 (grub_affs_mount): Fix block detection routine.
2588 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2590 Add filesystem mtime to AFFS.
2592 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2593 (aftime2ctime): New function.
2594 (grub_affs_dir): Use aftime2ctime.
2595 (grub_affs_label): Fix return value.
2596 (grub_affs_mtime): New function.
2597 (grub_affs_fs): Add mtime.
2599 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2601 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2604 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2606 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2609 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2611 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2613 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2615 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2617 (FLAGS_CASE_SENSITIVE): New enum value.
2618 (cache_entry): New struct.
2619 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2620 cache_size and cache.
2621 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2622 Add log_blocksize and fshelp_flags.
2623 (grub_sfs_read_extent): Handle non-512 blocks.
2624 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2625 (grub_sfs_read_file): Handle non-512 blocks.
2626 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2628 (grub_sfs_read_symlink): Handle non-512 blocks.
2629 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2630 (grub_sfs_dir): Free cache.
2631 (grub_sfs_close): Likewise.
2633 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2635 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2638 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2640 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2642 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2644 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2646 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2648 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
2649 (grub_sfs_read_extent): Likewise.
2650 (grub_sfs_read_block): Likewise.
2651 (grub_sfs_mount): Likewise.
2652 (grub_sfs_iterate_dir): Likewise.
2653 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
2654 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2656 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2658 Fix errors on compressed NTFS with 512B clusters.
2660 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
2662 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
2664 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
2665 Relax check for inline extents.
2666 (ntfscomp): Return correct -1 on error and not 0.
2668 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2670 * util/grub-install.in: Fix handling of prefix containing spaces.
2672 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2674 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
2675 (grub_squash_read_data): Fix offset byte-swapping.
2677 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2679 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
2680 per common usage and preffered in several parts of code.
2681 (grub_memcmp): Likewise.
2682 (grub_strncmp): Likewise.
2683 * include/grub/misc.h (grub_strcasecmp): Likewise.
2684 (grub_strncasecmp): Likewise.
2685 * Makefile.util.def (cmp_test): New test.
2686 (grub_script_strcmp): Likewise.
2687 * tests/cmp_unit_test.c: New file.
2688 * tests/grub_script_strcmp.in: Likewise.
2689 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2691 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2693 * include/grub/pci.h: Move enums into no-asm part.
2695 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2697 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2699 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2701 * util/getroot.c (find_hurd_root_device): Try to make error message
2702 and comments to translators clearer.
2704 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2706 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
2708 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2710 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
2713 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2715 * docs/grub.cfg: Update.
2717 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2719 * docs/grub.texi (PXE): Remove not present variables.
2721 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2723 * grub-core/net/net.c (defserver_set_env): New function.
2724 (defserver_get_env): Likewise.
2725 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
2727 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2729 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
2732 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2734 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
2735 * grub-core/kern/emu/hostdisk.c: Likewise.
2737 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2739 Handle hurd userspace partitions.
2741 * util/getroot.c (find_hurd_root_device): New function.
2742 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2744 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2746 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
2748 Reported by: Bastian Blank.
2750 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2752 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
2753 crossing page boundary.
2755 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2757 Fix B-tree search in BFS, especially in presence of non-ASCII
2760 * grub-core/fs/bfs.c (bfs_strcmp): New function.
2761 (find_in_b_tree): Use standard bsearch + btree algorithm.
2763 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2765 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
2768 2012-05-03 Matthew Garrett <mjg@redhat.com>
2769 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2771 Suspend broadcom cards in order to stop their DMA.
2773 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
2774 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
2775 (pci): Don't build on x86 EFI.
2776 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
2777 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
2779 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
2780 stop_broadcom if running on EFI.
2781 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
2782 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
2783 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
2784 (grub_pci_find_capability): New proto.
2786 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2788 * docs/grub.texi: Remove dot from the extension as it apparently
2789 doesn't work with some makeinfo versions.
2791 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2793 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
2794 with GRUB expectance.
2796 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2798 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2800 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2802 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
2803 zero after directory block since last entry may be not 0-terminated if
2804 it ends on block boundary. Use continue instead of if spanning whole
2807 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2809 Support 4K sectors UDF inline files.
2811 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
2812 (grub_udf_extended_file_entry): Likewise.
2813 (grub_fshelp_node): Name the anonymous union. Put block at the end.
2815 (get_fshelp_size): New function.
2816 (grub_udf_read_icb): Read whole block.
2817 (grub_udf_iterate_dir): Likewise.
2818 (grub_udf_dir): Likewise.
2819 (grub_udf_open): Likewise.
2821 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2823 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2825 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2827 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
2828 inline symlinks in addition to workaround.
2830 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2832 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2834 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2836 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2838 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2840 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2842 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2844 Fix reiserfs big seek times.
2846 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
2847 exact. All users updated.
2848 (grub_reiserfs_read): Use nearest btree search for seeking.
2849 Fix return value on error.
2851 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2853 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
2855 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
2856 * docs/grub.texi: Update menuentry description.
2858 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2860 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
2861 crash when embedding onto filesystem.
2863 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2865 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
2868 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2870 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2872 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2874 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
2877 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2878 2012-05-01 Bean <bean123ch@gmail.com>
2880 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
2882 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2884 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
2885 Special behaviour for len = 0 to read whole file isn't used anywhere and
2886 can cause buffer ovewrflows in several places.
2888 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2890 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2892 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2894 Handle RAIDZ on non-512B sectors.
2896 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
2897 max_children_ashift.
2898 (fill_vdev_info_real): Fill max_children_ashift.
2899 (read_device): Use max_children_ashift.
2901 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2903 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2905 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2907 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
2909 * docs/grub.texi: Update device.map parts.
2911 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2913 Don't scan into non-diskfilter devices having diskfilter names.
2915 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
2916 (scan_disk): New argument accept_diskfilter. Fix recursion depth
2918 (scan_disk_hook): New function.
2920 2012-04-29 Bean <bean123ch@gmail.com>
2922 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
2925 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
2927 * configure.ac: Detect starfield theme font path
2928 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2930 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2932 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
2933 geometry on serial consoles.
2935 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2937 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
2938 because of network consoles.
2940 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2942 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
2945 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2947 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
2950 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
2953 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
2955 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
2958 Allocate at lest 8192 for temporary buffer as required for lzo.
2960 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2962 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
2963 to cluster_bits, since it's already added in.
2964 (grub_fat_read_data): Likewise.
2966 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2968 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
2969 as long as cluster size is multiple of 512 bytes.
2971 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2973 * util/grub-mkrescue.in: Fix locale directory.
2975 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2977 * grub-core/kern/emu/hostdisk.c (map): Make static.
2979 2012-04-23 Bean <bean123ch@gmail.com>
2981 * util/grub-fstest.c (fstest): Add missing break.
2983 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2987 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
2988 not define nr variable.
2989 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
2990 find_root_devices_from_poolname, find_root_devices_from_libzfs,
2991 grub_find_device): Do not define.
2993 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2995 Fix kfreebsd compile and behaviour.
2997 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
2999 * util/getroot.c: Fix wait.h include.
3000 (grub_guess_root_devices): Error if grub_find_device fails.
3001 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3002 (grub_util_get_dev_abstraction): Likewise.
3003 (grub_util_pull_device): Likewise.
3004 (grub_util_get_grub_dev): Likewise.
3005 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3007 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3009 Fix and unify wholedisk detection.
3011 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3012 is_part. All users updated.
3013 (device_is_wholedisk): Removed.
3014 (grub_util_biosdisk_get_grub_dev): Use is_part.
3016 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3018 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3021 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3023 * configure.ac: Bump to beta4.
3025 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3027 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3028 --fs-uuid --set UUID syntax.
3030 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3032 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3035 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3037 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3039 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3041 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3043 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3045 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3047 2012-04-18 Bean <bean123ch@gmail.com>
3049 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3052 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3054 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3056 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3057 corresponding to GRUB partitions.
3058 (grub_util_biosdisk_write): Likewise.
3060 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3062 Scan mdraid before LVM.
3064 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3065 (grub_diskfilter_register_front): ... this.
3066 (grub_diskfilter_register_back): New function.
3067 All users of grub_diskfilter_register updated.
3069 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3071 * util/grub-install.in: Fix an automatic target detection bug.
3073 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3075 * util/grub-install.in: New option --efi-directory.
3077 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3079 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3080 boot services if we have no other choice.
3082 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3084 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3086 * tests/util/grub-shell.in: Update to --directory.
3088 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3092 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3094 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3095 (grub_minix_read_file): Likewise.
3096 (grub_minix_read_inode): Likewise.
3097 (grub_minix_find_file): Likewise.
3098 (grub_minix_dir): Likewise.
3100 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3102 * util/grub-setup.c (setup): Fix partition handling and blocklist
3105 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3107 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3108 redundant buggy overlap check.
3110 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3112 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3115 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3117 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3118 kh.loadflags on pre-2.00 kernels.
3120 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3122 Terminate UNDI and PXE before launching the payload to avoid problems
3125 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3126 (grub_loader_flags): ... this. All users updated.
3127 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3128 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3129 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3130 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3132 (grub_pxe_restore): Likewise.
3133 (fini_hnd): New var.
3134 (GRUB_MOD_INIT): Register shutdown hook.
3135 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3136 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3137 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3138 (grub_loader_set): Rename second argument to flags.
3140 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3142 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3144 (grub_get_num_of_utf8_bytes): New function.
3145 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3146 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3148 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3149 (grub_ucs4_to_utf8): Change return type.
3151 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3153 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3155 * grub-core/fs/bfs.c (hop_level): Likewise.
3156 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3158 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3160 * grub-core/lib/adler32.c: Recode due to license unclearness.
3162 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3164 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3165 (test_header): Likewise.
3167 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3169 Fix --help formatting.
3171 * util/grub-mkconfig_lib.in (print_option_help): New function.
3172 (grub_fmt): Likewise.
3173 * util/grub-install.in: Use print_option_help and grub_fmt.
3174 * util/grub-kbdcomp.in: Likewise.
3175 * util/grub-mkconfig.in: Likewise.
3176 * util/grub-mknetdir.in: Likewise.
3177 * util/grub-mkrescue.in: Likewise.
3178 * util/grub-mkstandalone.in: Likewise.
3179 * util/grub-reboot.in: Likewise.
3180 * util/grub-set-default.in: Likewise.
3181 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3183 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3185 * linguas.sh: Remove autogenerated *.po.
3187 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3189 * po/README: Move language fetcing to ...
3190 * linguas.sh: ... here.
3191 * po/README: Point to linguas.sh.
3193 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3195 * po/README: Exclude ko.po due to disclaimer problems.
3197 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3199 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3201 (grub_gettext_translate_real): Handle 0th string.
3202 (grub_gettext_translate): Ensure that "" isn't translated.
3204 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3206 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3207 TRANSLATORS comment.
3208 (grub_diskfilter_print_partmap): Propagate changing of error into
3211 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3213 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3214 to uint64_t to prevent overflow.
3215 (grub_diskfilter_lv): Increase start_extent and extent_count
3216 to uint64_t to prevent overflow.
3218 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3220 * configure.ac: Increase version.
3222 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3224 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3226 * po/Rules-translit: New file.
3227 * po/arabic.sed: Likewise.
3228 * po/cyrillic.sed: Likewise.
3229 * po/greek.sed: Likewise.
3230 * po/hebrew.sed: Likewise.
3231 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3232 * po/Makefile.in.in: Add extra_dist4.
3234 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3236 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3238 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3239 modify names. Introduce MODE_BIGENDIAN.
3240 * grub-core/fs/minix_be.c: New file.
3241 * grub-core/fs/minix2_be.c: Likewise
3242 * grub-core/fs/minix3_be.c: Likewise.
3243 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3245 * grub-core/Makefile.core.def (minix_be): New module.
3246 (minix2_be): Likewise.
3247 (minix3_be): Likewise.
3249 2012-04-01 Felix <email@hamburg.de>
3251 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3252 (devs): Add MBP 2011.
3254 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3256 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3258 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3260 * grub-core/normal/cmdline.c (print_completion): New field
3262 (grub_cmdline_get): Handle width properly.
3264 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3266 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3268 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3270 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3271 after 29th of February.
3273 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3275 Fix exfat endianness handling.
3277 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3278 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3279 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3280 Byte-swap utf16 when necessary.
3281 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3283 2012-03-31 Anton Blanchard <anton@samba.org>
3284 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3286 Fix btrfs endianness handling.
3288 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3289 (lower_bound): Make root uint64_t. Use root in le.
3290 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3291 (find_path): Fix template key init.
3292 (grub_btrfs_dir): Fix mtime byteswap.
3293 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3295 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3297 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3298 recursion_depth. Break infinite resursions. All users updated.
3300 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3302 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3304 Reported by: Peter Jones.
3306 2012-03-31 Anton Blanchard <anton@samba.org>
3308 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3311 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3313 * util/grub-install.in: Fix nvram call for PreP.
3315 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3317 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3318 the error when some elements are missing into a warning.
3320 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3322 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3324 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3326 * docs/grub.texi (Invoking grub-probe): New section.
3327 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3329 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3331 Fix tab and wide character handling in editor and menu.
3333 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3334 agglomerate control characters with combining marks.
3335 (bidi_line_wrap): Allow break on tab.
3336 (grub_unicode_get_comb_start): New function.
3337 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3339 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3341 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3342 fixed_tab_size. All users updated.
3343 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3344 (grub_term_getcharwidth): Handle \t.
3345 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3348 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3350 Handle big-endian mdraid.
3352 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3353 * grub-core/Makefile.core.def (mdraid09_be): New module.
3354 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3355 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3356 * grub-core/disk/mdraid_linux_be.c: New file.
3358 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3360 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3362 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3364 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3365 missing quotes which caused confusion among translators.
3367 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3369 * util/grub-mkconfig_lib.in: Fix typo.
3371 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3373 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3375 * tests/grub_script_leading_whitespace.in: New file.
3376 * Makefile.util.def (grub_script_leading_whitespace): New test.
3378 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3380 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3383 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3385 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3386 starts with control character.
3388 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3390 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3392 (grub_gdb_outbuf): Likewise.
3394 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3396 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3397 zero terminator. Fixes a crash.
3399 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3401 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3403 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3404 images independently of preffered adderss field.
3406 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3408 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3409 * grub-core/commands/regexp.c: Likewise.
3410 * grub-core/loader/i386/linux.c: Likewise.
3411 * grub-core/partmap/msdos.c: Likewise.
3412 * grub-core/script/execute.c: Likewise.
3413 * grub-core/term/gfxterm.c: Likewise.
3415 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3417 Add variable parsing in $"..." and fix several mismatches with bash.
3419 * Makefile.util.def (grub_script_gettext): New test.
3420 * grub-core/script/execute.c (parse_string): New function.
3421 (gettext_append): Likewise.
3422 (grub_script_arglist_to_argv): Use gettext_append.
3423 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3424 * tests/grub_script_gettext.in: New file.
3426 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3428 Fix handling of leading spaces in scripts.
3430 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3432 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3433 other than skipping \r. All users updated.
3434 * tests/grub_script_echo1.in: Add space-related tests.
3435 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3437 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3439 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3441 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3443 * configure.ac: Bump up the version to beta2.
3445 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3447 Fix gettext reload bugs (e.g. inability to disable gettext
3450 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3451 main_context and secondary_context. All functions updated.
3452 (grub_gettext_translate): Rename to ...
3453 (grub_gettext_translate_real): ... this. Return NULL on failed
3455 (grub_gettext_translate): Handle secondary context.
3456 (grub_gettext_delete_list): Close file and zero-out the context.
3457 (grub_mofile_open): Don't call grub_gettext_delete_list.
3459 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3460 if locale="" to avoid pointless error message.
3461 (grub_gettext_env_write_lang): Update lang even if load fails.
3462 Handle secondary context.
3463 (grub_gettext_reread_prefix): New function.
3464 (read_main): Likewise.
3465 (read_secondary): Likewise.
3466 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3467 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3468 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3469 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3471 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3473 * configure.ac: Decrease warning level to avoid spurious warnings and
3474 to be able to compile with GCC 4.2.
3475 * Makefile.util.def: Remove -Wno-error=logical-op.
3477 2012-03-10 William Bittner <william.bittner@gmail.com>
3479 * util/import_unicode.py: Add missing brackets around string for
3482 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3484 Fix efi chainloader on network root.
3486 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3488 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3491 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3493 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3494 unused show_text member.
3495 * docs/grub.texi: Document "text" property.
3497 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3499 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3502 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3504 Fix IMSM handling on Fedora.
3506 * util/getroot.c (grub_util_is_imsm): New function.
3507 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3509 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3511 * Makefile.am: Strip gold section.
3512 * conf/Makefile.common: Likewise.
3513 * gentpl.py: Likewise.
3514 * grub-core/Makefile.core.def: Likewise.
3515 * grub-core/genmod.sh.in: Likewise.
3517 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3519 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3520 * util/grub.d/20_linux_xen.in: Likewise.
3521 Based on Debian patch.
3523 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3525 * util/grub.d/10_linux.in: Fix syntax error resulting in
3526 Richard Laager's patch.
3527 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3529 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3531 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3534 2012-03-10 Richard Laager <rlaager@wiktel.com>
3536 * util/grub.d/10_linux.in: Fix ZFS root passing.
3538 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3540 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3541 * grub-core/commands/xnu_uuid.c: Likewise.
3542 * grub-core/loader/efi/appleloader.c: Likewise.
3543 * grub-core/script/execute.c: Likewise.
3544 * grub-core/script/main.c: Likewise.
3545 * util/grub-mkfont.c: Likewise.
3547 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3549 * util/grub-mkfont.c (options): Use more appropriate "select" that
3550 "set" for face index.
3552 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3554 * util/grub-editenv.c (options): Gettextize command summaries.
3556 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3558 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3559 "out of memory" error messagge.
3561 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3563 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3564 of diskfilter for diskfilter on diskfilter support.
3566 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3568 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3570 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3572 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3575 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3577 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3579 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3581 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3583 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3585 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3588 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3590 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3592 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3594 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3596 * util/grub-install.in: Fix and gettextize error message.
3598 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3600 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3602 * util/grub-mount.c (options): Likewise.
3604 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3606 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3608 * grub-core/commands/search_wrap.c (options): Likewise.
3610 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3612 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3614 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3616 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3618 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3621 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3624 "temporary" since it's used in identifier and is limited in space.
3626 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3628 * po/POTFILES.in: Regenerate. Include *.h since they contain
3629 translatable strings as well.
3631 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3633 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3634 byte-swap on big-endian.
3635 Reported by: Lennart Sorensen
3637 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3639 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3640 (allocate_pages): Improve dprintf.
3641 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3642 code32_start. Fill code32_start and kernel_alignment in params.
3643 (grub_cmd_initrd): Use prot_init_space.
3645 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3647 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
3649 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3651 * util/grub-install.in: Add missing dot at the end of sentence.
3653 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3655 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3656 * grub-core/commands/videotest.c: Likewise.
3657 * grub-core/loader/i386/linux.c: Likewise.
3659 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3661 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
3663 Reported by: Milo Casagrande.
3665 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3667 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
3668 * grub-core/commands/gptsync.c: Likewise.
3669 * grub-core/commands/hashsum.c: Likewise.
3670 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3671 * grub-core/commands/legacycfg.c: Likewise.
3672 * grub-core/io/gzio.c: Likewise.
3673 * grub-core/net/net.c: Likewise.
3674 * grub-core/term/gfxterm.c: Likewise.
3675 * grub-core/term/terminfo.c: Likewise.
3676 * grub-core/tests/test_blockarg.c: Likewise.
3677 * grub-core/video/video.c: Likewise.
3678 * util/grub-install.in: Likewise.
3679 * util/grub-mkfont.c: Likewise.
3681 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3683 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
3685 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3687 * grub-core/commands/search_wrap.c (options): Fix a typo.
3688 Reported by: David Prévot.
3690 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3692 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
3695 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3697 * util/grub-script-check.c (main): Fix a syntax error message which was
3700 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3702 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
3704 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3706 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
3709 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3711 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
3713 * util/grub-mount.c (options): Likewise.
3715 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3717 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
3719 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3721 * grub-core/net/http.c: Add TRANSLATORS comments.
3722 * grub-core/normal/cmdline.c: Likewise.
3723 * grub-core/normal/misc.c: Likewise.
3724 * grub-core/partmap/msdos.c: Likewise.
3725 * grub-core/parttool/msdospart.c: Likewise.
3726 * grub-core/script/execute.c: Likewise.
3727 * grub-core/script/main.c: Likewise.
3728 * grub-core/term/terminfo.c: Likewise.
3729 * grub-core/video/bitmap.c: Likewise.
3730 * util/grub-install.in: Likewise.
3731 * util/grub-mkimage.c: Likewise.
3732 * util/grub-mklayout.c: Likewise.
3733 * util/grub-setup.c: Likewise.
3735 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3737 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
3738 with similar messages in grub-fstest.
3740 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3742 * util/grub-install.in: Unify "option requires an argument" message
3743 with similar messages in other files.
3744 * util/grub-mkconfig.in: Likewise.
3746 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3748 * util/grub-set-default.in: Replace printf with gettext_printf (the
3749 string in in question is already translated from grub-reboot)
3751 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3753 * configure.ac: Bump up the version to beta1.
3755 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3757 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
3758 case when min_align = 0.
3760 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3762 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
3763 and fix a case when line_start overflows.
3765 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3767 * util/grub-reboot.in (usage): Mention id posibility.
3768 * util/grub-set-default.in (usage): Likewise.
3770 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3772 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
3773 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
3774 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3775 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3776 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3777 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3778 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3780 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3782 * grub-core/commands/menuentry.c (options): Remove
3783 GRUB_ARG_OPTION_REPEATABLE.
3784 Reported by: Andreas Vogel
3786 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
3788 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
3790 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
3792 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
3795 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3797 Use sort -V by the idea of Georgi Georgiev.
3799 * util/grub-mkconfig_lib.in (version_sort): New function.
3800 (version_test_numeric): Use version_sort.
3802 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3804 Use submenus in grub-mkconfig.
3806 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
3807 * util/grub-mkconfig_lib.in (grub_quote): New function.
3808 (gettext_printf): Use gettext and not gettext_quoted to fix several
3810 * util/grub.d/10_hurd.in: Use submenus.
3811 * util/grub.d/10_kfreebsd.in: Likewise.
3812 * util/grub.d/10_linux.in: Likewise.
3813 * util/grub.d/10_netbsd.in: Likewise.
3814 * util/grub.d/20_linux_xen.in: Likewise.
3815 * util/grub.d/30_os-prober.in: Likewise.
3816 * util/grub.d/10_illumos.in: Add missing quoting.
3817 * util/grub.d/10_windows.in: Likewise.
3819 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3821 Fix menu title instability bug.
3823 * grub-core/commands/menuentry.c (options): New option --id.
3824 (grub_normal_add_menu_entry): New argument id. All users updated.
3825 (grub_cmd_menuentry): Handle --id.
3826 (grub_menu_init): Accept unknown arguments.
3827 * grub-core/normal/main.c (features): Add feature_menuentry_id and
3828 feature_menuentry_options.
3829 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
3831 (get_entry_number): Match with id as well.
3832 * include/grub/menu.h (grub_menu_entry): New member id.
3833 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
3834 * util/grub.d/00_header.in: Define menuentry_id_option.
3835 * util/grub.d/10_hurd.in: Define id.
3836 * util/grub.d/10_illumos.in: Likewise.
3837 * util/grub.d/10_kfreebsd.in: Likewise.
3838 * util/grub.d/10_linux.in: Likewise.
3839 * util/grub.d/10_netbsd.in: Likewise.
3840 * util/grub.d/10_windows.in: Likewise.
3841 * util/grub.d/20_linux_xen.in: Likewise.
3842 * util/grub.d/30_os-prober.in: Likewise.
3844 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3846 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
3847 "scope" with "body".
3849 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3851 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
3852 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
3853 prot_size and prot_file_size.
3855 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3857 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
3858 All users updated. If easily=1 require raid-5/-6 to be full.
3859 (is_node_readable): Likewise.
3860 (scan_devices): Scan incomplete but readable LVs at the end.
3861 (grub_diskfilter_memberlist): Pull missing devices.
3862 (insert_array): Skip scanning until device is complete or scan is
3864 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
3866 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
3867 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
3869 2012-03-03 Matthew Garrett <mjg@redhat.com>
3870 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3872 Avoid EFI boot services when loading Linux.
3874 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
3875 avoid_efi_bootservices. All users updated.
3876 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
3877 argument avoid_efi_bootservices. All users updated.
3878 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
3879 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
3880 align, min_align, relocatable, prefered_address. All users updated.
3881 Allocate avoiding boot services if kernel is relocatable.
3882 (grub_cmd_linux): Check if kernel is relocatable.
3883 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
3884 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
3885 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
3886 avoid_efi_boot_services.
3887 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
3888 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
3889 (linux_kernel_params): Likewise.
3891 2012-03-03 Matthew Garrett <mjg@redhat.com>
3892 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3896 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
3898 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
3899 modes. Set gop_handle.
3900 (grub_video_gop_get_edid): New function.
3901 (grub_gop_get_preferred_mode): Likewise.
3902 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
3903 (grub_video_efi_gop_adapter): Set .get_edid.
3904 * include/grub/efi/edid.h: New file.
3905 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
3907 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3909 * util/grub-install.in: Load efivars unconditionally.
3911 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3913 * po/Rules-piglatin: Change suffix from .po-update-en to
3914 .po-update-en-piglatin.
3916 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3920 * po/piglatin.sed: New file.
3921 * po/en@piglatin.header: Likewise.
3922 * po/Rules-piglatin: Likewise.
3923 * po/README: Add en@piglatin to autogenerated languages.
3925 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3927 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
3929 * grub-core/commands/hdparm.c (options): Use "Display" rather than
3930 "Check" since we don't check anything.
3931 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
3933 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
3934 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
3935 (grub_md_sha512_real): Likewise.
3937 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3939 * grub-core/commands/gptsync.c: Fix typographic quoting.
3940 * grub-core/commands/ieee1275/suspend.c: Likewise.
3941 * grub-core/commands/parttool.c: Likewise.
3942 * grub-core/commands/search_wrap.c: Likewise.
3943 * grub-core/commands/videoinfo.c: Likewise.
3944 * grub-core/gfxmenu/gui_label.c: Likewise.
3945 * grub-core/hello/hello.c: Likewise.
3946 * grub-core/kern/emu/main.c: Likewise.
3947 * grub-core/net/net.c: Likewise.
3948 * grub-core/normal/menu.c: Likewise.
3949 * grub-core/normal/menu_text.c: Likewise.
3950 * grub-core/normal/misc.c: Likewise.
3951 * util/grub-editenv.c: Likewise.
3952 * util/grub-install.in: Likewise.
3953 * util/grub-kbdcomp.in: Likewise.
3954 * util/grub-mkconfig.in: Likewise.
3955 * util/grub-mknetdir.in: Likewise.
3956 * util/grub-mkrescue.in: Likewise.
3957 * util/grub-mkstandalone.in: Likewise.
3958 * util/grub-reboot.in: Likewise.
3959 * util/grub-set-default.in: Likewise.
3960 * util/grub-setup.c: Likewise.
3961 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3963 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3965 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
3966 * grub-core/commands/keystatus.c: Likewise.
3967 * grub-core/commands/loadenv.c: Likewise.
3968 * grub-core/commands/probe.c: Likewise.
3969 * grub-core/commands/regexp.c: Likewise.
3970 * grub-core/commands/true.c: Likewise.
3971 * grub-core/commands/videoinfo.c: Likewise.
3972 * grub-core/disk/cryptodisk.c: Likewise.
3973 * grub-core/disk/ldm.c: Likewise.
3974 * grub-core/disk/loopback.c: Likewise.
3975 * grub-core/disk/luks.c: Likewise.
3976 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3977 * grub-core/kern/disk.c: Likewise.
3978 * grub-core/kern/emu/hostdisk.c: Likewise.
3980 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3982 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
3983 * util/grub-install.in: Add missing quote in the comment.
3985 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3987 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
3988 * grub-core/commands/lsmmap.c: Likewise.
3989 * grub-core/commands/minicmd.c: Likewise.
3990 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3991 * grub-core/commands/regexp.c: Likewise.
3992 * grub-core/gdb/gdb.c: Likewise.
3993 * grub-core/term/gfxterm.c: Likewise.
3994 * util/grub-mkconfig.in: Likewise.
3995 * util/grub-mkfont.c: Likewise.
3996 * util/grub-mklayout.c: Likewise.
3997 * util/grub-mknetdir.in: Likewise.
3998 * util/grub-mkrescue.in: Likewise.
3999 * util/grub.d/30_os-prober.in: Likewise.
4001 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4003 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4004 with "Direct color" and "Packed" with "Packed pixel".
4005 (grub_cmd_videoinfo): Simplify legend.
4007 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4009 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4010 absolutely unclear error message.
4012 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4014 * util/grub-mkstandalone.in: Remove confusing leftover print.
4016 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4018 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4020 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4021 (GRUB_MOD_INIT): Likewise.
4022 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4024 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4026 * util/grub-install.in (usage): Likewise.
4027 Spell ID in whole letters.
4028 Add missing ending dot.
4030 * util/grub-reboot.in: Fix capitalisation.
4031 * util/grub-set-default.in: Likewise.
4033 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4035 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4036 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4037 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4038 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4039 Disable -Werror for -Wdeprecated-declarations.
4040 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4041 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4042 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4043 (grub_util_get_grub_dev): Make luks handling dependent on
4044 HAVE_DEVICE_MAPPER and not __linux__.
4045 (get_win32_path): Fix format security.
4046 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4047 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4048 Don't try grub_find_zpool_from_dir.
4049 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4050 #ifdef-out paresdir.
4052 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4054 * util/grub-pe2elf.c (usage): Add missing noreturn.
4055 (write_section_data): Rename name to shname to avoid shadowing.
4056 (write_symbol_table): Rename name to symname to avoid shadowing.
4057 Fix write_reloc_section call.
4059 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4061 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4062 to ensure that it's after the last byte of .text.
4064 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4066 * util/ieee1275/ofpath.c (my_isdigit): New function.
4067 (trailing_digits): Use my_isdigit.
4068 (strip_trailing_digits): Likewise.
4070 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4072 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4073 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4075 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/kern/i386/pc/startup.S: Define __start.
4079 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4081 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4082 strip already transforms he format.
4084 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4086 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4088 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4090 * util/grub-install.in: Add missing gettext init.
4091 * util/grub-kbdcomp.in: Likewise.
4092 * util/grub-mkconfig.in: Likewise.
4093 * util/grub-mknetdir.in: Likewise.
4094 * util/grub-mkrescue.in: Likewise.
4095 * util/grub-mkstandalone.in: Likewise.
4096 * util/grub-reboot.in: Likewise.
4097 * util/grub-set-default.in: Likewise.
4098 * util/grub.d/00_header.in: Likewise.
4099 * util/grub.d/10_hurd.in: Likewise.
4100 * util/grub.d/10_windows.in: Likewise.
4101 * util/grub.d/30_os-prober.in: Likewise.
4102 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4104 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4106 * po/Rules-swiss: Fix header comment.
4108 2012-02-29 Andreas Vogel <anvoit>
4110 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4111 resulted in leak of arguments.
4113 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4115 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4116 reed_solomon_size const definition instead of computing it since
4117 Apple assembler doesn't support the later.
4119 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4121 * gentpl.py (kernel): Rewrite Apple part.
4123 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4125 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4127 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4129 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4131 (load_image): Likewise.
4133 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4135 * configure.ac: Fix a typo in previous commit.
4137 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4139 Don't add -Wl,-N on Apple platform.
4141 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4142 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4144 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4146 * grub-core/Makefile.core.def (lzma_decompress): Use
4147 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4149 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4151 * grub-core/genmod.sh.in: Rewrite the Apple part.
4153 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4155 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4158 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4160 * acinclude.m4 (grub_CHECK_PIC): New test.
4161 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4163 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4165 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4166 to avoid the warning.
4168 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4170 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4171 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4172 after. All users updated.
4174 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4176 Use the common size routine in hostfs so we can read disks as well.
4178 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4179 (grub_util_get_fd_size): ... this. Return size in bytes.
4181 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4182 grub_util_get_fd_size.
4184 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4186 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4187 Add blocksize retrieval.
4189 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4191 * configure.ac: Restore CFLAGS after efiemu check.
4193 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4195 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4198 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4200 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4202 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4204 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4205 (grub_cmd_halt): Likewise.
4207 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4209 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4210 for local arithmetics.
4211 Break %sp init into 2 instructions.
4212 Add 0 byte at the end.
4214 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4216 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4219 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4221 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4224 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4226 * grub-core/disk/ldm.c (make_vg): Init part.name.
4227 (grub_ldm_detect): Silence spurious warning.
4228 (grub_util_is_ldm): Likewise.
4230 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4232 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4233 sane value to avoid a spurious warning.
4235 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4237 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4238 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4240 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4242 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4243 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4245 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4247 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4248 hardcoding the relevant info.
4250 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4252 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4253 missing const qualifiers.
4254 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4256 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4258 * util/getroot.c [__APPLE__]: Add missing includes.
4259 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4261 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4263 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4265 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4267 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4270 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4272 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4274 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4276 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4277 and grub_file_close call.
4279 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4281 Add LZSS Mach-O support (needed for new xnu kernelcache).
4283 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4284 * grub-core/loader/lzss.c: New file.
4285 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4286 on Mach-O open failure.
4287 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4288 Don't free cmdsXX in uncompressedXX is set.
4289 (grub_macho_file): Init new fields.
4290 New argument is_64bit. All users updated.
4291 Handle compressed. Error out if no suitable architecture is found.
4293 (grub_macho_open): New argument is_64bit. All users updated.
4294 * grub-core/loader/macho32.c: Add defines for new fields.
4295 * grub-core/loader/macho64.c: Likewise.
4296 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4297 (grub_macho_parse): Handle compressed.
4298 Defer actual processing if compressed.
4299 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4300 "filename". All users updated.
4301 (grub_macho_size): New argument "filename". All users updated.
4302 (grub_macho_get_entry_point): Likewise.
4303 (grub_macho_load): Handle compressed.
4304 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4305 (GRUB_MACHO_LZSS_OFFSET): New define.
4306 (grub_decompress_lzss): New proto.
4307 * include/grub/machoload.h (grub_macho_file): New fields to handle
4309 (grub_macho_contains_macho64): Remove proto.
4310 (grub_macho_contains_macho32): Likewise.
4311 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4313 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4315 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4317 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4321 * Makefile.am (starfield_theme_files): New var.
4322 (starfield_DATA): Use starfield_theme_files.
4323 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4324 Add bootcheck-related files.
4325 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4326 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4327 and font_char_metrics.txt.
4328 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4329 (setjmp): Add lib/ia64/longjmp.S.
4330 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4331 * po/POTFILES.in: Regenerate.
4332 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4333 DISTFILES.common.extra1.
4334 * util/devicemap.c: Removed.
4335 * grub-core/lib/i386/relocator_backward.S: Likewise.
4336 * util/import_gcry.py: Remove unused files. Add extra_dist for
4339 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4341 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4342 grub_gettext_delete_list before changing grub_gettext_max to avoid
4343 running out of array bounds.
4345 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4347 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4348 grub_vga_text_init/grub_vga_text_fini.
4350 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4352 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4354 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4356 * configure.ac: Bump to 2.00~beta0.
4358 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4360 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4361 missing initialisation.
4363 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4365 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4367 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4369 Support v2 xnu boot arguments.
4371 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4372 New argument fsbfreq_out.
4373 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4374 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4376 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4378 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4379 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4380 (grub_xnu_boot_params): Rename to ...
4381 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4382 (grub_xnu_boot_params_v2): New struct.
4384 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4386 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4387 zeroing of CRC field before computing CRC.
4389 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4391 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4392 Change order of allocations to decrease fragmentation.
4394 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4396 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4398 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4400 Use write-combining MTRR to speed up video with buggy BIOSes.
4402 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4403 (cpuid): New define.
4406 (mtrr_base): Likewise.
4407 (mtrr_mask): Likewise.
4408 (grub_vbe_enable_mtrr_entry): New function.
4409 (grub_vbe_enable_mtrr): Likewise.
4410 (grub_vbe_disable_mtrr): Likewise.
4411 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4412 control off to BIOS.
4413 (grub_video_vbe_init): Fill mtrr.
4414 (grub_video_vbe_fini): Disable mtrr.
4415 (grub_video_vbe_get_info_and_fini): Likewise.
4416 (grub_video_vbe_setup): Enable mtrr.
4418 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4420 * include/grub/partition.h (grub_partition_map): Change prototype of
4421 embed to take a maximum value for nsectors.
4422 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4423 * include/grub/fs.h (grub_fs): Likewise.
4424 * grub-core/partmap/msdos.c (embed_signatures): New array.
4425 (pc_partition_map_embed): Check for and avoid sectors matching any
4426 of the signatures in embed_signatures, up to max_nsectors.
4427 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4428 returned sector map to max_nsectors.
4429 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4430 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4431 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4432 * util/grub-setup.c (setup): Allow for the embedding area being
4433 split into multiple blocklists. Tell dest_partmap->embed the
4434 maximum number of sectors we care about.
4436 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4438 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4439 Specify blocklist_install and reserver_first_sector for all fs.
4440 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4443 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4445 * util/grub-install.in: Clarify strings.
4446 Fix source dir check.
4448 2012-02-27 Richard Laager <rlaager@wiktel.com>
4450 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4451 "zfs" and "fuse.zfs" as synonyms.
4453 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4455 * configure.ac: Put platform and target_cpu substitutions back since
4456 they are used for directories.
4458 2012-02-27 Richard Laager <rlaager@wiktel.com>
4459 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4461 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4462 * util/grub.d/20_linux_xen.in: Likewise.
4464 2012-02-27 Richard Laager <rlaager@wiktel.com>
4466 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4469 2012-02-27 Richard Laager <rlaager@wiktel.com>
4471 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4474 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4476 Don't use insecure popen in getroot.
4478 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4479 (exec_pipe): ... here.
4480 (find_root_devices_from_poolname): Use exec_pipe.
4482 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4484 Remove platform and target_cpu replacement.
4486 * configure.ac: Remove platform and target_cpu substitutions.
4487 * tests/util/grub-shell.in: Use modinfo.
4488 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4491 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4493 Autodetect platform in grub-install but allow override.
4495 * util/grub-install.in: Autodetect platform. Support --target and
4496 --directory. Read platform from modinfo.sh.
4498 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4500 Support btrfs multi-volume probe.
4502 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4503 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4504 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4505 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4506 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4507 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4508 grub_find_root_devices_from_btrfs if on btrfs.
4510 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4512 Remove any awareness of *.c util files about target.
4514 * Makefile.util.def (grub-setup): Split to ...
4515 (grub-bios-setup): ... and this.
4516 (grub-sparc64-setup): ... and this.
4517 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4518 * docs/man/grub-setup.h2m: Split into ...
4519 * docs/man/grub-sparc64-setup.h2m: ... this.
4520 * docs/man/grub-bios-setup.h2m: ... and this.
4521 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4522 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4523 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4524 (grub_target_addr_t): Remove.
4525 (grub_target_size_t): Remove.
4526 (grub_target_ssize_t): Remove.
4527 * util/grub-install.in: Use new grub-*-setup.
4528 * util/grub-mkimagexx.c (Elf_Word): New define.
4529 (Elf_Half): Likewise.
4530 (Elf_Section): Likewise.
4531 (ELF_ST_TYPE): Likewise.
4532 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4533 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4535 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4537 Replace grub_target_addr with more appropriate types.
4539 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4540 grub_target_addr with grub_addr.
4541 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4542 grub_target_addr with grub_port.
4543 (grub_cmd_write): Likewise.
4544 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4545 grub_target_addr with grub_addr.
4546 (grub_cmd_write): Likewise.
4547 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4549 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4551 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4552 const qualifier for vendor_guid.
4554 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4556 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4558 (efiemu_memequal): Likewise.
4559 (find_variable): Likewise.
4561 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4563 Fix missing console prototype on qemu-mips.
4565 * include/grub/mips/qemu_mips/console.h: New file.
4567 2012-02-27 Matthew Garrett <mjg@redhat.com>
4568 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4570 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4571 * include/grub/efi/efi.h: Likewise.
4572 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4573 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4574 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4575 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4576 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4577 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4579 2012-02-27 Matthew Garrett <mjg@redhat.com>
4581 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4583 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4585 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4588 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4590 * configure.ac: Remove inappropriate use of program_transform_name
4591 on grubdir and bootdir but allow explicit specification of those
4594 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4596 * util/grub-mknetdir.in (grub_prefix): Removed.
4597 (subdir): Use @bootdirname@ and @grubdirname@.
4599 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4601 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4603 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4605 * po/POTFILES.in: Regenerated.
4607 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4609 Remove improper use of program_transform_name on pkglibrootdir.
4611 * configure.ac (pkglibrootdir): Removed.
4612 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4613 * util/grub-mkimage.c: Likewise.
4615 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4617 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4620 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4622 * util/grub-install.in: Use file identifier if no UUID is available
4623 or user explicitly prompted for it.
4625 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4627 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4628 (freebsd_get_zfs): New function.
4629 (grub_freebsd_boot): Pass zfs UUID.
4630 (grub_cmd_freebsd): Set zfs UUID.
4632 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4634 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4637 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4639 Add configure flag to control libzfs integration.
4641 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4643 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4645 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
4647 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
4650 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4652 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4653 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
4654 be used on non-modules.
4656 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
4657 Rename to grub_boot_init.
4658 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
4659 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
4660 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
4661 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
4662 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
4663 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
4664 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
4665 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
4667 (grub_machine_init): Remove empty inits.
4668 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
4670 (grub_machine_init): Remove empty inits.
4671 * grub-core/term/arc/console.c: Remove explicit proto.
4672 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
4673 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
4674 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4675 grub_at_keyboard_fini.
4676 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
4677 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
4678 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4680 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
4681 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
4682 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4684 * grub-core/term/ieee1275/console.c: Remove explicit proto.
4685 * grub-core/term/serial.c (GRUB_MOD_INIT)
4686 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
4687 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4689 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
4690 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
4691 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4693 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
4694 (GRUB_MOD_FINI): Likewise.
4695 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
4696 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
4697 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4698 grub_video_radeon_fuloong2e_fini.
4699 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
4700 [LOONGSON]: Rename to grub_video_sis315pro_init.
4701 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4702 grub_video_sis315pro_fini.
4703 * grub-core/video/sm712.c (GRUB_MOD_INIT)
4704 [LOONGSON]: Rename to grub_video_sm712_init.
4705 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4706 grub_video_sm712_fini.
4707 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
4708 (grub_at_keyboard_fini): Likewise.
4709 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
4710 Don't declare grub_{modname}_init.
4711 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
4712 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
4714 (grub_keylayouts_fini) [!EMU]: Likewise.
4715 * include/grub/serial.h (grub_serial_init) [!EMU]:
4717 (grub_serial_fini) [!EMU]: Likewise.
4718 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
4720 (grub_terminfo_fini) [!EMU]: Likewise.
4721 * include/grub/video.h (grub_font_init) [!EMU]:
4723 (grub_font_fini) [!EMU]: Likewise.
4724 (grub_gfxterm_init) [!EMU]: Likewise.
4725 (grub_gfxterm_fini) [!EMU]: Likewise.
4726 (grub_video_sm712_init) [!EMU]: Likewise.
4727 (grub_video_sm712_fini) [!EMU]: Likewise.
4728 (grub_video_sis315pro_init) [!EMU]: Likewise.
4729 (grub_video_sis315pro_fini) [!EMU]: Likewise.
4730 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
4731 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
4733 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4735 Make nand a prefix for nand devices.
4737 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
4739 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4741 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
4742 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
4744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4746 * include/grub/env.h (grub_env_find): Remove prototype.
4747 * grub-core/kern/env.c (grub_env_find): Make static.
4748 (grub_env_set): Remove useless set.
4750 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4752 * grub-core/kern/i386/realmode.S: Remove useless align.
4754 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4756 * include/grub/dl.h (grub_dl_load_file): Don't export.
4758 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4760 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
4763 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4765 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
4767 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
4768 not reloading whole superblock but only the part which is really needed.
4769 Remove useless grub_errors.
4770 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
4773 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4775 Don't export grub_get_rtc.
4777 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
4778 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
4780 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4782 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
4784 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4786 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
4787 argument since it can be deduced from diskfilter. All users updated.
4789 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4793 * include/grub/list.h (grub_prio_list): Removed.
4794 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
4795 GRUB_COMMAND_PRIO_MASK.
4796 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
4797 GRUB_COMMAND_FLAG_ACTIVE.
4798 (grub_prio_list_insert): Removed.
4799 (grub_prio_list_remove): Likewise.
4800 (GRUB_AS_PRIO_LIST): Likewise.
4801 (GRUB_AS_PRIO_LIST_P): Likewise.
4802 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
4803 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
4804 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
4805 * grub-core/kern/command.c (grub_register_command_prio): Inline
4807 (grub_unregister_command): Likewise.
4809 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4811 Fix interrupt mixup from previous commit.
4813 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
4814 (grub_realidt): New var.
4815 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
4817 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
4819 (grub_relocator16_boot): Set grub_relocator16_idt.
4820 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
4821 (LOCAL(realidt)): ... this.
4822 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
4823 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
4824 (grub_realidt): New variable.
4826 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4828 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
4829 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
4830 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
4831 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
4833 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
4834 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
4835 * po/POTFILES.in: Regenerate.
4837 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4839 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
4842 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4844 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
4846 (add_length): Likewise.
4848 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4849 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
4851 GDB serial and backtrace support.
4853 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
4854 (prot_to_real): Likewise.
4855 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
4856 * grub-core/Makefile.core.def (backtrace): New module.
4858 * grub-core/gdb/cstub.c: New file.
4859 * grub-core/gdb/gdb.c: Likewise.
4860 * grub-core/gdb/i386/idt.c: Likewise.
4861 * grub-core/gdb/i386/machdep.S: Likewise.
4862 * grub-core/gdb/i386/signal.c: Likewise.
4863 * grub-core/lib/i386/backtrace.c: Likewise.
4864 * grub-core/lib/backtrace.c: Likewise.
4865 * include/grub/backtrace.h: Likewise.
4866 * include/grub/gdb.h: Likewise.
4867 * include/grub/i386/gdb.h: Likewise.
4869 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4871 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
4873 (add_length): Likewise.
4874 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
4875 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
4877 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
4878 __argp_get_display_len.
4880 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4882 $"..." support in scripts.
4884 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
4885 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
4886 * grub-core/script/yylex.l: Likewise.
4887 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
4890 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4892 * gentpl.py: Remove obsolete pkglib_DATA handling.
4894 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4896 Don't transform PACKAGE_TARNAME following a discussion on autoconf
4899 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
4900 * util/grub-kbdcomp.in: Likewise.
4901 * util/grub-mkconfig.in: Likewise.
4902 * util/grub-mkconfig_lib.in: Likewise.
4903 * util/grub-mknetdir.in: Likewise.
4904 * util/grub-mkrescue.in: Likewise.
4905 * util/grub-mkstandalone.in: Likewise.
4906 * util/grub-reboot.in: Likewise.
4907 * util/grub-set-default.in: Likewise.
4908 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4910 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4914 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
4915 * util/grub.d/00_header.in: Compute prefix in the only place it's still
4916 used for backward compatibility.
4918 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4920 Add new all_video module.
4922 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
4923 * grub-core/Makefile.core.def (all_video): New module.
4924 * grub-core/genmoddep.awk: Generate dependency of all_video from
4926 * grub-core/lib/fake_module.c: New file.
4927 * grub-core/normal/main.c (features): Add feature_all_video_module.
4928 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
4929 don't do explicit search again.
4930 insmod all_video in load_video if available.
4932 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4934 Another round of string clarification and adding TRANSLATORS comments.
4936 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4938 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
4940 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4942 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
4944 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
4945 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
4947 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4949 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
4950 trailing newline implicitly. All users updated.
4952 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4954 Implement serial on IEEE1275 and EFI.
4956 * docs/grub.texi (Platform-specific limitations): Fix the columen video
4957 on emu. Mention arc and emu as the only platforms without serial
4959 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
4961 * grub-core/term/efi/serial.c: New file.
4962 * grub-core/term/ieee1275/serial.c: Likewise.
4963 * grub-core/term/serial.c (grub_serial_find): Disable direct port
4964 specification if no ns8250 driver is available.
4965 (grub_cmd_serial): Likewise.
4966 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
4967 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
4968 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
4969 (grub_efi_parity_type_t): New type.
4970 (grub_efi_stop_bits_t): Likewise.
4971 (grub_efi_serial_io_interface): New struct.
4972 * include/grub/serial.h (grub_serial_port): Make 'broken' field
4973 available for all interfaces.
4974 Add EFI and IEEE1275 fields.
4975 (grub_ofserial_init): New proto.
4976 (grub_efiserial_init): Likeiwse.
4977 * util/grub.d/00_header.in: Don't check for the presence of serial
4980 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4982 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
4983 name as if it was an alias.
4985 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4987 * grub-core/commands/lsacpi.c (options): Fix typo.
4989 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4991 Convert grub-emu to argp.
4993 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
4995 * util/argp_common.c: Rename to ...
4996 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
4997 Add missing includes.
4998 * grub-core/kern/emu/main.c: Convert to argp.
4999 * po/POTFILES.in: Regenerate.
5000 * util/grub-install.in (usage): Make first letter lowcase in messages
5002 * util/grub-setup.c (options): Likewise.
5004 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5006 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5007 Put back accidently commented-out code.
5009 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5011 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5012 loop check using Brent algorithm.
5013 (grub_hfsplus_btree_search): Likewise.
5015 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5017 * util/grub-install.in: Fix usage of wrong device for PreP install.
5019 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5021 * conf/Makefile.common (CFLAGS_GNULIB): Add
5022 -Wno-unsafe-loop-optimizations.
5023 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5025 * grub-core/commands/legacycfg.c: Add pragma to skip
5026 -Wunsafe-loop-optimizations.
5027 (check_password_md5_real): Fix loop counter type.
5028 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5030 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5031 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5033 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5034 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5035 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5037 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5038 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5039 avoid possible infinite loops.
5040 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5041 and -Wunsafe-loop-optimizations.
5042 * grub-core/script/yylex.l: Likewise.
5043 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5044 (print_glyphs): Avoid infinite loops.
5045 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5047 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5049 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5050 to avoid infinite loop.
5051 (disp_acpi_rsdt_table): Likewise.
5053 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5055 * grub-core/font/font.c (grub_font_load): Add support for default
5056 path for fonts ($prefix/fonts).
5057 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5058 for checking if string is a path.
5059 * grub-core/normal/main.c (features): Add feature_default_font_path.
5060 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5061 * util/grub.d/00_header.in: Use default directory if possible.
5062 * util/grub-install.in: Install unicode.pf2.
5064 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5066 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5067 * po/Rules-swiss: New file.
5068 * po/swiss.sed: Likewise.
5070 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5072 * grub-core/fs/btrfs.c (find_device): Fix typos.
5073 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5074 * util/grub-mkrelpath.c (argp_parser): Likewise.
5075 Reported by: Yuri Chornoivan.
5077 2012-02-23 Dalet Omega <daletomega@gmail.com>
5079 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5080 for usual informative messages.
5082 2012-02-23 Dalet Omega <daletomega@gmail.com>
5086 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5087 * conf/Makefile.common: Define starfielddir.
5088 * configure.ac: Configure starfield.
5089 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5090 * themes/starfield/README: Likewise.
5091 * themes/starfield/blob_w.png: Likewise.
5092 * themes/starfield/boot_menu_c.png: Likewise.
5093 * themes/starfield/boot_menu_e.png: Likewise.
5094 * themes/starfield/boot_menu_n.png: Likewise.
5095 * themes/starfield/boot_menu_ne.png: Likewise.
5096 * themes/starfield/boot_menu_nw.png: Likewise.
5097 * themes/starfield/boot_menu_s.png: Likewise.
5098 * themes/starfield/boot_menu_se.png: Likewise.
5099 * themes/starfield/boot_menu_sw.png: Likewise.
5100 * themes/starfield/boot_menu_w.png: Likewise.
5101 * themes/starfield/slider_c.png: Likewise.
5102 * themes/starfield/slider_n.png: Likewise.
5103 * themes/starfield/slider_s.png: Likewise.
5104 * themes/starfield/src/blob_nw.xcf: Likewise.
5105 * themes/starfield/src/bootmenu/: Likewise.
5106 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5107 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5108 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5109 * themes/starfield/src/slider_c.xcf: Likewise.
5110 * themes/starfield/src/slider_n.xcf: Likewise.
5111 * themes/starfield/src/slider_s.xcf: Likewise.
5112 * themes/starfield/src/terminalbox/: Likewise.
5113 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5114 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5115 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5116 * themes/starfield/starfield.png: Likewise.
5117 * themes/starfield/terminal_box_c.png: Likewise.
5118 * themes/starfield/terminal_box_e.png: Likewise.
5119 * themes/starfield/terminal_box_n.png: Likewise.
5120 * themes/starfield/terminal_box_ne.png: Likewise.
5121 * themes/starfield/terminal_box_nw.png: Likewise.
5122 * themes/starfield/terminal_box_s.png: Likewise.
5123 * themes/starfield/terminal_box_se.png: Likewise.
5124 * themes/starfield/terminal_box_sw.png: Likewise.
5125 * themes/starfield/terminal_box_w.png: Likewise.
5126 * themes/starfield/theme.txt: Likewise.
5128 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5130 * util/grub.d/00_header.in: Add missing export theme.
5132 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5134 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5136 Reported by: Eren D.
5138 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5140 * conf/Makefile.common (grubdatadir): Removed.
5141 (Makefile.am): Move eveything grubdata to pkgdata.
5143 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5145 * grub-core/commands/acpihalt.c (get_sleep_type):
5146 Remove unused variable.
5148 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5150 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5151 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5152 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5153 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5154 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5155 i18n with gettext no-op.
5156 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5157 GRUB_ACPI_OPCODE_STRING_CONST.
5158 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5159 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5161 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5163 * po/POTFILES.in: Regenerate.
5165 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5167 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5168 -Wno-error=missing-noreturn.
5170 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5172 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5173 condition to avoid possibly infinite loops.
5174 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5175 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5177 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5179 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5180 condition to avoid possibly infinite loops.
5182 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5184 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5187 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5189 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5191 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5193 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5195 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5197 * util/bin2h.c (usage): Add missing attribute noreturn.
5199 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5201 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5202 if the size isn't divisible by 512.
5204 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5206 Make list_push and list_remove functions rather than inline functions
5207 to decrease size and avoid aliasing violations.
5209 * include/grub/list.h (grub_list_push): Move to ...
5210 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5211 * include/grub/list.h (grub_list_remove): Move to ...
5212 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5214 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5216 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5217 and -Wunused-result.
5219 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5221 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5222 Reported by: Seth Goldberg
5224 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5226 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5228 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5230 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5231 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5233 * docs/grub.texi (Simple configuration): Document
5234 GRUB_CMDLINE_GNUMACH.
5236 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5238 * conf/Makefile.common (platform_SCRIPTS): New variable.
5239 (platform_PROGRAMS): Likewise.
5240 * gentpl.py: Mark *,module and *.image for install.
5241 * grub-core/gdb_grub.in: Add a notice of expected environment.
5242 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5243 (gmodule.pl): Likewise.
5245 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5247 Replace grub_checkkey with grub_getkey_noblock.
5249 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5250 (grub_getkey_noblock): ... this. All users updated.
5252 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5254 * grub-core/kern/emu/console.c: Move to ...
5255 * grub-core/term/emu/console.c: ...here.
5256 (grub_ncurses_getkey): Fix return value if no key is detected.
5258 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5260 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5261 (grub_unit_test_fini): Likewise.
5262 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5264 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5266 * include/grub/test.h (GRUB_UNIT_TEST)
5268 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5270 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5271 Better error handling.
5272 (grub_script_return): Likewise.
5273 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5275 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5277 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5278 rimplicit redifinition.
5280 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5282 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5285 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5287 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5288 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5291 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5293 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5294 as GRUB_ERR_BUG. Don't malloc if no device is available.
5296 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5298 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5299 Mark calling with invalid term as GRUB_ERR_BUG.
5301 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5303 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5304 packets rather than raising an error.
5306 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5308 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5311 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5313 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5314 diagnostic to dprintf.
5315 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5317 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5319 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5322 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5324 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5325 (grub_ntfs_iterate_dir): Likewise.
5327 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5329 Efiemu stylistic fixes and gettext.
5331 * grub-core/efiemu/i386/loadcore32.c
5332 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5333 * grub-core/efiemu/i386/loadcore64.c
5334 (grub_arch_efiemu_relocate_symbols64): Likewise.
5335 * grub-core/efiemu/i386/pc/cfgtables.c
5336 (grub_machine_efiemu_init_tables): Likewise.
5337 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5338 (grub_efiemu_loadcore_initXX): Add a filename argument.
5340 Improved error message.
5341 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5342 Add a filename argument.
5344 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5345 Reclassify double relocation as GRUB_ERR_BUG.
5347 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5349 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5352 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5354 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5357 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5359 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5361 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5363 Improve string. Gettextize.
5365 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5367 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5369 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5371 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5373 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5374 [GRUB_UTIL]: New function.
5375 (insert_array) [GRUB_UTIL]: Store partmaps.
5376 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5378 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5379 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5380 (probe_abstraction): Print diskfilter and not raid.
5381 Reported by: Lennart Sorensen
5383 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5385 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5386 * util/grub-mkimagexx.c (MASK3): New define.
5387 (add_value_to_slot_20b): Use MASK3.
5388 (add_value_to_slot_21): Likewise.
5389 (relocate_addresses): Fix format specification.
5390 (load_image): Explicitly init symtab_section.
5392 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5394 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5395 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5397 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5399 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5401 Reported by: Lennart Sorensen
5403 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5405 * gentpl.py: Add missing license header.
5406 * docs/grub.texi: Update copyright year.
5408 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5410 Source grub-mkconfig_lib from the build directory at build time.
5411 Suggested by: Vladimir Serbinenko.
5413 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5414 * util/grub-install.in: Define pkgdatadir if not already set, and source
5415 grub-mkconfig_lib from there.
5416 * util/grub-kbdcomp.in: Likewise.
5417 * util/grub-mkconfig.in: Likewise.
5418 * util/grub-mknetdir.in: Likewise.
5419 * util/grub-mkrescue.in: Likewise.
5420 * util/grub-mkstandalone.in: Likewise.
5421 * util/grub-reboot.in: Likewise.
5422 * util/grub-set-default.in: Likewise.
5423 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5425 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5427 Increase warning level.
5429 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5430 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5431 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5432 (TARGET_CFLAGS): Likewise.
5433 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5434 * grub-core/Makefile.core.def (decompressor_xz): Add
5435 -Wno-unreachable-code.
5436 (normal): Add -Wno-redundant-decls.
5437 (xzio): Add -Wno-unreachable-code.
5438 (lzopio): Add -Wno-redundant-decls -Wno-error.
5439 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5440 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5441 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5442 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5443 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5444 * grub-core/kern/i386/coreboot/init.c: Add exception to
5445 -Wsuggest-attribute=noreturn.
5446 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5447 * grub-core/kern/ia64/dl_helper.c: Likewise.
5448 * grub-core/kern/mips/dl.c: Likewise.
5449 * grub-core/kern/sparc64/dl.c: Likewise.
5450 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5451 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5453 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5454 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5455 * grub-core/loader/mips/linux.c: Likewise.
5456 * grub-core/loader/multiboot_elfxx.c: Likewise.
5457 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5458 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5459 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5460 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5462 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5463 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5466 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5468 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5471 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5473 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5474 Avoid improper use of strings.
5475 (grub_cmd_legacy_initrdnounzip): Likewise.
5477 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5479 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5481 (grub_util_info): Likewise.
5482 (grub_util_error): Likewise.
5484 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5486 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5487 * util/grub-fstest.c (fstest): Likewise.
5489 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5491 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5492 (grub_md_sha512_real): Likewise.
5493 (grub_util_get_geli_uuid): Likewise.
5494 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5495 (grub_util_biosdisk_open): Fix format specification.
5496 Respect format security.
5497 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5498 (xrealloc): Likewise.
5499 (xasprintf): Likewise.
5501 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5503 * util/import_gcry.py: Include grub/crypto.h in init.c.
5505 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5507 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5508 (generate_image): Make prefix a const char *.
5509 Fix format specifications. Respect format security.
5510 Avoid void * arithmetics.
5512 (argp_parser): Remove unused variable. Respect format security.
5513 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5514 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5515 (count_funcs): Remove unused variable.
5516 (relocate_addresses): Fix format specification.
5517 Disable x86-64 with elf32. Remove unused variables.
5518 (add_fixup_entry): Avoid shadowing.
5519 (make_reloc_section): Fix format specification.
5521 (locate_sections): Fix format specifications.
5522 (load_image): Avoid shadowing.
5524 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5526 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5527 Fix format specifications. Respect format security.
5528 Don't translate already translated grub_errmsg.
5529 (argp_parser): Remove unused variable
5531 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5533 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5535 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5537 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5538 (main): Likewise. Use xmalloc. Respect format security.
5540 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5542 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5544 (argp_parser): Remove unused variable.
5546 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5548 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5549 (add_pixel): Make static.
5550 (add_font): Likewise.
5551 (write_string_section): Make name and str a const char *.
5552 (write_be16_section): Make name a const char *.
5553 (print_glyphs): Make static.
5554 (write_font_ascii_bitmap): Likewise.
5555 (write_font_width_spec): Likewise.
5556 (write_font_pf2): Likewise.
5557 (argp_parser): Remove unused variable.
5558 Respect format security.
5559 (main): Avoid shadowing. Respect format security.
5561 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5563 * util/grub-editenv.c (argp_parser): Make static.
5564 (create_envblk_file): Use xmalloc.
5565 (open_envblk_file): Likewise.
5566 Resepect format security.
5567 (set_variables): Respect format security.
5569 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5571 * util/getroot.c (grub_find_device): Respect format security.
5572 (get_mdadm_uuid): Remove unused variable.
5573 (grub_util_pull_device): Dont call gettext on already translated
5575 (find_system_device): Remove unused variable.
5576 (grub_util_get_grub_dev): Likewise.
5577 (grub_make_system_path_relative_to_its_root): Respect format security.
5579 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5581 * util/grub-fstest.c (execute_command): Make first argument
5583 (read_file): Avoid shadowing.
5584 Reuse underlying error message if device open fails.
5585 (cmd_cmp): Respect format security.
5586 (root): Make const char *.
5587 (fstest): Remove args argument and use global copy.
5588 Respect format security.
5589 (argp_parser): Make static.
5590 (main): Make default_root const char *.
5592 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5594 * util/grub-mount.c (root): Make const char *.
5595 (execute_command): Make first argument a const char *.
5596 (fuse_init): Respect format security.
5597 (argp_parser): Make static. Remove unused variable.
5598 (main): Make default_root a const char *.
5599 Respect format security.
5601 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5603 * util/grub-probe.c (probe): Don't call gettext on already translated
5605 Remove unused variables.
5606 (argp_parser): Remove unused variable.
5608 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5610 * util/grub-script-check.c (argp_parser): Remove unused variable.
5611 (main): Rename read to curread to avoid shadowing.
5613 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5615 * util/misc.c (grub_util_write_image_at): Fix format specification.
5616 (grub_util_write_image): Likewise.
5617 (grub_script_execute_argument_to_string): Removed (unused).
5618 (grub_script_execute_menuentry): Likewise.
5619 (grub_putchar): Likewise.
5621 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5623 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5624 (FUNCTION) [GRUB_UTIL]: Likewise.
5625 (VARIABLE) [GRUB_UTIL]: Likewise.
5627 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5629 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5630 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5632 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5634 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5637 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5639 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5640 (LzmaEnc_SaveState): Removed (unused).
5641 (LzmaEnc_RestoreState): Likewise.
5642 (LzmaEnc_InitPriceTables): Made static.
5643 (LzmaEnc_Construct): Likewise.
5644 (LzmaEnc_FreeLits): Likewise.
5645 (LzmaEnc_Destruct): Likewise.
5646 (LzmaEnc_Init): Likewise.
5647 (LzmaEnc_InitPrices): Likewise.
5648 (LzmaEnc_Finish): Likewise.
5649 (LzmaEnc_PrepareForLzma2): Removed (unused).
5650 (LzmaEnc_MemPrepare): Likewise.
5651 (LzmaEnc_GetNumAvailableBytes): Likewise.
5652 (LzmaEnc_GetCurBuf): Likewise.
5653 (LzmaEnc_CodeOneMemBlock): Likewise.
5655 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5657 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
5658 (grub_util_ldm_embed): Likewise.
5660 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5662 * util/grub-editenv.c (print_var): Rename name to varname to
5664 (main): Rename index to curindex to avoid shadowing.
5665 Make filename a const char *.
5667 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5669 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5670 to arg_getline to avoid shadowing.
5672 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5674 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
5675 disk_ to avoid shadowing.
5677 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5679 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
5680 curindex to avoid shadowing.
5682 (MatchFinder_GetNumAvailableBytes): Make static.
5684 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5686 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
5689 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5691 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
5692 argument from encrypt to do_encrypt to avoid shadowing.
5694 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5696 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
5697 incorrect nesting of #if's.
5699 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5701 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
5702 checks which are always false on some platforms.
5703 (grub_cmd_lsacpi): Likewise.
5704 * grub-core/kern/misc.c (grub_strtoul): Likewise.
5705 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
5708 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5710 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
5711 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
5713 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5715 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
5716 re_dfa_t to avoid breaking alignment invariants.
5717 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
5718 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
5720 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5722 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
5723 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
5725 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5727 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
5730 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5732 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
5733 conserve alignment invariants.
5734 (grub_ehci_ehcc_read16): Likewise.
5735 (grub_ehci_oper_read32): Likewise.
5736 (grub_ehci_oper_write32): Likewise.
5737 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
5738 Conserve alignment invariants.
5740 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5742 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
5743 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
5746 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5748 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
5749 Remove unused variable.
5751 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5753 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
5756 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5758 * include/grub/net.h: Remove double declarations.
5760 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5762 Remove "payload" command in ia64 Linux loader since I couldn't
5763 find any evidence of it being used for anything.
5764 Replace "relocate" command with an environment variable
5766 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
5768 (ia64_boot_payload): Removed.
5769 (last_payload): Likewise.
5770 (RELOCATE_OFF): Likewise.
5771 (RELOCATE_ON): Likewise.
5772 (RELOCATE_FORCE): Likewise.
5773 (relocate): Likewise.
5774 (free_pages): Don't free payloads.
5775 (grub_load_elf64): Use common error messages.
5776 Use "linux_relocate" variable.
5777 Increase the space after boot_params.
5778 (grub_cmd_payload): Removed.
5779 (grub_cmd_relocate): Likewise.
5780 (grub_cmd_fpswa): Improve messages.
5781 (cmd_payload): Removed.
5782 (cmd_relocate): Likewise.
5783 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
5784 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
5786 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5788 Convert UHCI to DMA framework.
5790 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
5791 (grub_uhci_pci_iter): Fill new members
5792 (grub_alloc_td): Use P2V and V2P functions.
5793 (grub_free_queue): Likewise.
5794 (grub_alloc_qh): Likewise.
5795 (grub_uhci_setup_transfer): Likewise.
5796 (grub_uhci_check_transfer): Likewise.
5798 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5800 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
5801 Remove assignment in if while on it.
5803 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5805 * util/grub-mkstandalone.in: Fix modules directory.
5807 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5809 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
5811 (argp_parser): Accept "auto" as compression specification.
5813 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5815 Fix `help' with unloaded modules.
5817 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
5818 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
5819 (grub_dyncmd_dispatcher): Small stylistic fix.
5820 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
5821 explicit help is requested.
5823 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5825 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
5826 Explicitly init restart while on it.
5828 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5830 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
5833 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5835 * util/grub-mknetdir.in: Use . rather than source for POSIX
5838 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5840 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
5842 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5844 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
5847 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5849 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
5852 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5854 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
5856 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5858 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
5859 iteration of partitions.
5861 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5863 Improve gettext support. Stylistic fixes and error handling fixes while
5866 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
5868 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
5869 part. Instead setup the correct stack in RM.
5870 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
5872 * include/grub/i386/relocator_private.h: New file.
5874 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5876 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
5878 * util/grub-fstest.c (options): Add missing DEVICE part.
5880 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5882 Clarify and unify messages.
5884 * grub-core/commands/hashsum.c (options): Unify messages.
5885 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
5886 literal-only message as translatable.
5887 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
5888 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
5889 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
5891 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
5892 key, not the key used to unlock. Clarify what it's used for.
5893 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
5894 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
5895 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
5896 * util/grub-editenv.c (options): Unify "verbose" message.
5897 * util/grub-fstest.c (read_file): Unify error message.
5898 (fstest): Add quotes around commands.
5899 (options): Unify "verbose" message.
5900 * util/grub-install.in: Add quotes around variable name.
5901 * util/grub-kbdcomp.in: Unify error message.
5902 * util/grub-mkfont.c (main): Likewise.
5903 * util/grub-mkrescue.in: Likewise.
5904 * util/grub-mklayout.c (options): Unify "verbose" message.
5905 * util/grub-mkstandalone.in: Unify help and verbose messages.
5906 * util/grub-mount.c (options): Unify "verbose" message.
5907 * util/grub-probe.c (options): Likewise.
5908 * util/grub-script-check.c (options): Likewise.
5909 * util/grub-setup.c (setup): Unify no-terminator message.
5910 (options): Use DEVICE and not DEV.
5911 Unify "verbose" message.
5912 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
5914 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5916 Improve and unify messages.
5918 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
5919 name. All users updated.
5920 Print filename in error.
5921 (read_device_map): Print filename in error.
5922 * util/getroot.c (grub_guess_root_devices): Print filename in error.
5923 (grub_util_get_os_disk): Likewise.
5924 (grub_util_biosdisk_get_grub_dev): Likewise.
5925 (grub_util_check_block_device): Likewise.
5926 (grub_util_check_char_device): Likewise.
5927 (grub_make_system_path_relative_to_its_root): Likewise.
5928 * util/grub-editenv.c (create_envblk_file): Likewise.
5929 (open_envblk_file): Likewise.
5930 (write_envblk): Likewise.
5931 * util/grub-fstest.c (cmd_cp): Likewise.
5932 (cmd_cat): Likewise.
5933 (cmd_cmp): Likewise.
5934 * util/grub-menulst2cfg.c (main): Likewise.
5935 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
5936 (write_font_width_spec): Likewise.
5937 (write_font_pf2): Likewise.
5938 * util/grub-mkimage.c (generate_image): New argument outname.
5940 Remove unreacheable message.
5941 (options): Unify messages.
5942 (help_filter): Likewise.
5943 * util/grub-mklayout.c (usage): Removed (unused).
5944 (main): Print filename in error.
5945 * util/grub-mkrescue.in: Fix wrong quoting.
5946 * util/grub-setup.c (setup): Print filename in error.
5947 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
5948 (check_sas): Likewise.
5949 * util/misc.c (grub_util_get_fp_size): Removed.
5950 (grub_util_get_image_size): Print filename in error.
5951 (grub_util_read_at): Removed.
5952 (grub_util_read_image): Print filename in error.
5953 (grub_util_load_image): Likewise.
5954 (grub_util_write_image_at): New argument filename. All users updated.
5955 Print filename in error.
5956 (grub_util_write_image): New argument filename. All users updated.
5957 Print filename in error.
5958 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
5959 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
5961 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5963 * grub-core/Makefile.core.def (pxechain): New module.
5964 * grub-core/loader/i386/pc/pxechainloader.c: New file.
5965 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
5967 (grub_pc_net_config_real): Use grub_pxe_get_cached.
5968 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
5970 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5972 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
5973 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
5974 * include/grub/err.h (grub_error_saved): New struct.
5975 (grub_errmsg): Make array size explicit.
5976 * include/grub/misc.h (grub_error_save): New function.
5977 (grub_error_load): Likewise.
5978 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
5979 (grub_error_push): Update `errno' member name.
5980 (grub_error_pop): Likewise
5981 * grub-core/net/tftp.c (tftp_data): New member save_err.
5982 (tftp_receive): Save error.
5983 (tftp_open): Restore error.
5985 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5987 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
5988 to real mode down to execute A20-related code in protected mode as
5991 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5993 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
5994 NULL when the argument `level' has an unexpected value.
5996 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5998 Move platform-dependent files from $prefix to $prefix/$platform.
6000 * config.h.in (GRUB_TARGET_CPU): New definition.
6001 (GRUB_PLATFORM): Likewise.
6002 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6003 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6004 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6005 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6006 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6007 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6008 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6009 * grub-core/normal/term.c (read_terminal_list): Likewise.
6010 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6012 (grub_gettext_init_ext): Likewise.
6013 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6015 * util/grub-install.in: Update directories.
6016 * util/grub-mknetdir.in: Likewise.
6017 * util/grub-mkrescue.in: Likewise.
6019 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6021 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6022 grub_error framework. All users updated.
6024 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6026 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6027 lists (by always binsearching), improve caching (cache strings
6028 used for binsearch, not only results), improve
6029 maintainability (by using more structured binary search) and correct
6032 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6034 * grub-core/script/execute.c (grub_script_return): Fix warning.
6036 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6038 * grub-core/script/execute.c (grub_script_return): Fix potential
6040 Reported by: Jim Meyering.
6042 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6044 * po/POTFILES.in: Regenerate.
6045 * util/grub-install.in: Gettextize the strings missed in first pass.
6047 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6049 * Makefile.util.def (grub-mkdevicemap): Removed.
6050 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6051 * include/grub/util/deviceiter.h: Removed.
6052 * util/deviceiter.c: Likewise.
6053 * util/getroot.c (grub_util_get_os_disk): New function.
6054 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6055 replacement for EFI.
6056 * util/grub-mkdevicemap.c: Removed.
6057 * util/grub-probe.c (probe): Handle PRINT_DISK.
6058 (argp_parser): Handle -t disk.
6060 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6062 * util/grub-mkfont.c: Migrate to argp.
6063 * util/grub-mklayout.c: Likewise.
6064 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6065 * util/grub-mkrelpath.c: Likewise.
6066 * util/grub-probe.c: Likewise.
6067 * util/grub-script-check.c: Likewise.
6069 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6071 * util/grub-reboot.in: Add missing datarootdir.
6072 Add missing newline.
6073 * util/grub-set-default.in: Add missing datarootdir.
6074 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6075 * util/grub-mkrescue.in: Likewise.
6077 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6079 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6081 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6083 * util/grub-kbdcomp.in: Add decent help and gettextize.
6084 * docs/man/grub-kbdcomp.h2m: New file.
6086 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6088 Migrate grub-mkimage.c to argp.
6090 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6091 (grub-setup): Likewise.
6092 * util/grub-setup.c (print_version): Move to ...
6093 * util/argp_common.c (print_version): ... here.
6094 * util/grub-setup.c (argp_program_version_hook): Move to ...
6095 * util/argp_common.c (argp_program_version_hook): ... here.
6096 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6098 * util/grub-mkimage.c (main): Migrate to argp.
6100 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6102 * util/grub-mkrescue.in: Use same message as
6103 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6104 for better translations.
6106 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6108 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6109 options with generic grub-mkrescue.in with the goal of future
6112 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6114 * grub-core/kern/mm.c: Add missing include of i18n.h
6115 * grub-core/lib/relocator.c: Likewise.
6117 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6119 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6121 (allocate_pages): Check return value.
6122 Replace fatal with error.
6123 (grub_linux_boot): Replace printf with dprintf.
6124 Check find_mmap_size return value.
6125 Replace fatal with error.
6126 Don't call grub_machine_fini.
6127 (grub_load_elf64): Replace printf with dprintf.
6128 (grub_cmd_linux): Likewise.
6129 (grub_cmd_initrd): Likewise.
6130 (grub_cmd_payload): Likewise.
6132 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6134 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6136 * grub-core/video/radeon_fuloong2e.c
6137 (grub_video_radeon_fuloong2e_setup): Likewise.
6138 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6139 * grub-core/video/video.c (grub_video_set_mode): Don't override
6140 standard out of memory message.
6142 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6144 NetBSD disk wedge support.
6146 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6147 [__NetBSD__]: Handle NetBSD disk wedges.
6148 * util/getroot.c (convert_system_partition_to_system_disk)
6149 [__NetBSD__]: Likewise.
6151 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6153 * util/grub-mkconfig.in: Use umask rather than chmod to create
6154 grub.cfg.new to avoid insecure grub.cfg.
6156 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6158 * grub-core/commands/ls.c: Gettextize.
6159 * grub-core/commands/setpci.c: Likewise.
6160 * grub-core/commands/videotest.c: Likewise.
6161 * grub-core/disk/geli.c: Likewise.
6162 * grub-core/kern/mm.c: Likewise.
6163 * grub-core/lib/relocator.c: Likewise.
6164 * grub-core/loader/efi/appleloader.c: Likewise.
6165 * grub-core/loader/i386/xnu.c: Likewise.
6166 * grub-core/loader/ia64/efi/linux.c: Likewise.
6167 * grub-core/loader/xnu.c: Likewise.
6168 * grub-core/net/dns.c: Likewise.
6169 * grub-core/net/net.c: Likewise.
6170 * grub-core/script/lexer.c: Likewise.
6171 * grub-core/script/parser.y: Likewise.
6172 * grub-core/script/yylex.l: Likewise.
6173 * util/getroot.c: Likewise.
6174 * util/grub-setup.c: Likewise.
6176 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6178 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6181 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6183 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6185 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6187 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6189 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6190 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6192 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6194 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6195 * util/grub-install.in: Gettextize.
6196 * util/grub-mkconfig.in: Likewise.
6197 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6199 (grub_warn): Gettextize.
6200 * util/grub-mknetdir.in: Gettextize.
6201 * util/grub-mkrescue.in: Likewise.
6202 * util/grub-mkstandalone.in: Likewise.
6203 * util/grub-reboot.in: Likewise.
6204 * util/grub-set-default.in: Likewise.
6205 * util/grub.d/00_header.in: Likewise.
6206 * util/grub.d/10_hurd.in: Likewise.
6207 * util/grub.d/10_kfreebsd.in: Likewise.
6208 * util/grub.d/10_linux.in: Likewise.
6209 * util/grub.d/10_netbsd.in: Likewise.
6210 * util/grub.d/10_windows.in: Likewise.
6211 * util/grub.d/20_linux_xen.in: Likewise.
6212 * util/grub.d/30_os-prober.in: Likewise.
6213 * po/POTFILES-shell.in: Regenerate.
6215 2012-02-03 Richard Laager <rlaager@wiktel.com>
6217 * util/grub-mkimage.c (main): Fix format-security warning.
6218 * util/grub-mkrelpath.c (main): Likewise.
6219 * util/grub-probe.c (main): Likewise.
6221 2012-02-03 Richard Laager <rlaager@wiktel.com>
6223 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6225 Put back lost PRINT_DRIVE.
6227 2012-02-03 Richard Laager <rlaager@wiktel.com>
6229 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6230 (grub_guess_root_devices): Replace strlen with sizeof.
6232 (find_root_devices_from_poolname): Remove unused variable.
6235 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6237 Support install on multi-device filesystems.
6239 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6240 (grub_guess_root_devices): ...this. Return char **. All users updated.
6241 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6243 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6244 (find_root_devices_from_poolname): ... here.
6245 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6247 (grub_guess_root_device): Rename to ...
6248 (grub_guess_root_devices): ... this. Return char **. All users updated.
6249 * util/grub-install.in: Handle multi-device filesystems.
6250 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6251 argument. All users updated.
6252 Handle multi-device filesystems.
6253 Use 'delim' as separator.
6254 Remove device check to allow filesystems on file.
6255 (main): Support -0 argument. Handle multi-device.
6256 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6257 Fix a cross-device check while on it.
6258 (arguments): Remove root_dev.
6259 (argp_parser): Remove -r.
6260 (main): Remove root_dev.
6262 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6264 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6266 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6268 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6270 Reported by: NODA, Kai <nodakai>.
6272 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6276 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6278 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6279 (grub_ehci_setup_qh): Likewise.
6280 (grub_ehci_find_qh): Likewise.
6281 (grub_ehci_transaction): Likewise.
6282 (grub_ehci_setup_transfer): Likewise.
6283 (grub_ehci_check_transfer): Likewise.
6284 (grub_ehci_portstatus): Likewise.
6285 (grub_ehci_detect_dev): Likewise.
6286 (grub_ehci_transfer_controller_data): New field td_last_phys.
6287 (grub_ehci_setup_transfer): Fill td_last_phys.
6288 (grub_ehci_check_transfer): Use td_last_phys.
6290 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6292 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6293 if no submenu is present.
6295 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6299 * include/grub/usb.h (grub_usbms_protocol_t): New values
6300 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6301 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6302 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6303 (grub_usbms_dev): Add subclass, protocol and intrpt.
6304 Remove in_maxsz and out_maxsz.
6305 (grub_usbms_reset): Rename to ...
6306 (grub_usbms_bo_reset): .. this.
6307 (grub_usbms_cbi_cmd): New function.
6308 (grub_usbms_cbi_reset): Likewise.
6309 (grub_usbms_reset): Likewise.
6310 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6311 (grub_usbms_transfer): Rename to ...
6312 (grub_usbms_transfer_bo): ... this.
6313 (grub_usbms_transfer_cbi): Likewise.
6314 (grub_usbms_transfer): Likewise.
6316 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6317 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6319 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6320 the support for the CS5536 modification thereos and few bugfixes.
6322 * grub-core/Makefile.core.def (ehci): New module.
6323 * grub-core/bus/usb/ehci.c: New file.
6324 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6325 port and hubaddr. All users updated.
6326 Save port and hubaddr into dev structure.
6327 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6329 * include/grub/pci.h (grub_dma_phys2virt): New function.
6330 (grub_dma_virt2phys): Likewise.
6331 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6333 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6335 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6336 check as some mkfs implementations omit it.
6338 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6340 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6342 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6344 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6345 Add new member volname2.
6346 (grub_jfs_label): Use volname2 if available.
6348 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6350 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6351 over last_mounted as seen in image generated by mkfs.nilfs2.
6352 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6354 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6356 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6357 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6358 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6360 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6362 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6365 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6367 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6368 subvolume name (by removing a bogus and useless check).
6370 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6372 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6375 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6377 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6378 (grub_scsi_read_capacity10): ... this.
6379 (grub_scsi_read_capacity16): New function.
6380 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6382 Fix off-by-one error.
6383 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6385 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6386 (grub_scsi_read_capacity10): ... this.
6387 (grub_scsi_read_capacity_data): Rename to ...
6388 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6389 (grub_scsi_read_capacity16): New struct.
6390 (grub_scsi_read_capacity16_data): Likewise.
6391 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6392 grub_scsi_cmd_read_capacity10.
6393 New command grub_scsi_cmd_read_capacity16.
6395 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6399 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6400 (grub_scsi_write16): Likewise.
6401 (grub_scsi_read): Use read16 when necessary.
6402 (grub_scsi_write): Likewise.
6403 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6404 (grub_scsi_write16): Likewise.
6405 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6407 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6409 SCSI write support (for usbms mainly).
6411 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6413 (grub_scsi_write): Implement.
6414 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6416 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6418 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6421 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6423 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6425 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6427 * po/POTFILES.in: Regenerate.
6429 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6431 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6432 with grub_printf to avoid unnecessary fatal failure.
6434 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6436 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6437 (INT_MAX): Likewise.
6438 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6439 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6440 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6444 (strncpy): Likewise.
6446 (strncat): Likewise.
6447 (strcoll): Likewise.
6448 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6449 (GRUB_INT_MAX): Likewise.
6451 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6453 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6455 (optimize_utf8): Likewise.
6456 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6458 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6460 * grub-core/boot/i386/pc/lnxboot.S: Use
6461 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6462 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6464 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6466 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6468 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6470 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6471 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6472 now to avoid double free.
6473 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6475 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6476 * util/grub-probe.c (escape_of_path): Always return a new copy.
6477 (print_full_name): Escape path.
6478 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6479 Fix hints on abstractions.
6481 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6483 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6484 Don't add "root" line if no compatibility hont is available.
6485 Suggested by: Seth Goldberg.
6487 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6489 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6490 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6491 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6492 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6494 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6496 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6498 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6500 * util/grub-pe2elf.c (ehdr): Make static.
6502 (num_sections): Likewise.
6505 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6507 Eliminate ofpath limits and possible overflows.
6509 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6510 (OF_PATH_MAX): Removed.
6511 (MAX_DISK_CAT): New const.
6512 (find_obppath): Use allocated rather than preallocated buffer.
6513 Return result. Argument of_path removed. All users updated.
6515 (xrealpath): New function.
6516 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6517 Allocate rather than use preallocated buffer. All users updated.
6518 (__of_path_common): Use allocated rather than preallocatecd buffer.
6519 Return result. Argument of_path removed. All users updated.
6520 (vendor_is_ATA): Read only needed part form the file.
6521 (check_sas): Allocate depending on contents rather than fixed.
6522 (main) [STANDALONE]: Handle NULL result.
6524 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6526 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6528 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6530 Cryptodisk write support.
6532 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6533 (grub_cryptodisk_decrypt): Moved logic to ...
6534 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6535 (grub_cryptodisk_write): Implement.
6536 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6537 (grub_util_fd_write): ... this. Make global.
6538 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6540 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6542 * include/grub/list.h (grub_list_remove): Don't crash if element is
6545 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6547 Rename ofconsole to console.
6549 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6550 as sysnonym to console.
6551 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6552 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6553 Rename grub_ofconsole_ to grub_console_. All users updated
6554 (grub_console_term_output): Rename "ofconsole" to "console".
6555 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6558 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6560 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6562 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6563 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6564 GRUB_DISK_DEVICE_FILE_ID.
6566 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6568 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6569 and improve performance.
6571 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6573 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6574 missing ieee1275/ prefix on whole disk.
6576 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6578 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6579 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6581 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6583 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6585 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6587 Merge common RAID and LVM logic to an abstract diskfilter.
6588 Add LDM support using the same framework.
6590 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6591 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6592 (libgrubmods): Remove grub-core/disk/raid.c and
6593 grub-core/partmap/gpt.c.
6594 * grub-core/Makefile.core.def (ldm): New module.
6595 (raid): Renamed to diskfilter. All users updated.
6596 * grub-core/disk/raid.c: Moved to ...
6597 * grub-core/disk/diskfilter.c: ... here.
6598 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6600 (find_array): Renamed to ...
6601 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6602 (grub_is_array_readable): Renamed to ...
6603 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6604 (insert_array): New argument id.
6605 (is_node_readable): New function.
6606 (scan_device): Rename to ...
6607 (scan_disk): .. this. Restrict to one disk.
6608 (scan_devices): New function.
6609 (grub_diskfilter_iterate): Support multi-LV.
6610 Skip invisible and nameless LVs.
6611 (grub_diskfilter_memberlist): Support multi-LV.
6612 (grub_diskfilter_read_node): New function.
6613 (grub_raid_read): Most of logic moved to ...
6614 (read_segment): ... here
6615 (read_lv): New function.
6616 (grub_diskfilter_get_vg_by_uuid): New function.
6617 (grub_diskfilter_make_raid): Likewise.
6618 * grub-core/disk/ldm.c: New file.
6619 * grub-core/disk/lvm.c (vg_list): Removed.
6620 (lv_count): Likewise.
6621 (scan_depth): Likewise.
6622 (is_lv_readable): Likewise.
6623 (grub_lvm_getvalue): Advance pointer past the number.
6625 (do_lvm_scan): Refactored into ...
6626 (grub_lvm_detect): ... this. Support raid.
6627 (grub_lvm_iterate): Removed.
6628 (grub_lvm_memberlist): Likewise.
6629 (grub_lvm_open): Likewise.
6630 (grub_lvm_close): Likewise.
6631 (read_lv): Likewise.
6632 (read_node): Likewise.
6633 (is_node_readable): Likewise.
6634 (is_lv_readable): Likewise.
6635 (grub_lvm_read): Likewise.
6636 (grub_lvm_write): Likewise.
6637 (grub_lvm_dev): Use diskfilter
6638 (GRUB_MOD_INIT): Likewise.
6639 (GRUB_MOD_FINI): Likewise.
6640 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6642 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
6643 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6644 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
6645 grub_diskfilter_read_node.
6647 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
6648 grub_diskfilter_read_node.
6649 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
6650 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
6651 (grub_disk_dev_iterate): Move from here...
6652 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
6653 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6655 (grub_hostdisk_find_partition_start): Likewise.
6656 (grub_hostdisk_os_dev_to_grub_drive): New function.
6657 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
6658 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
6659 * util/getroot.c (make_device_name): ... here.
6660 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6662 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
6663 * grub-core/kern/emu/hostdisk.c
6664 (convert_system_partition_to_system_disk): Move to ...
6665 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
6666 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
6667 * util/getroot.c (device_is_wholedisk): ... here.
6668 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
6669 * util/getroot.c (find_system_device): ... here.
6670 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
6672 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
6673 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
6675 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
6677 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6679 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
6680 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
6681 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
6683 * include/grub/raid.h: Renamed to ...
6684 * include/grub/diskfilter.h: ... this.
6685 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
6686 (GRUB_RAID_LAYOUT_*): Make into array.
6687 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
6688 (grub_diskfilter_vg): New struct.
6689 (grub_diskfilter_pv_id): Likewise.
6690 (grub_raid_member): Removed.
6691 (grub_raid_array): Likewise.
6692 (grub_diskfilter_pv): New struct.
6693 (grub_diskfilter_lv): Likewise.
6694 (grub_diskfilter_segment): Likewise.
6695 (grub_diskfilter_node): Likewise.
6696 (grub_diskfilter_get_vg_by_uuid): New proto.
6697 (grub_raid_register): Inline.
6698 (grub_diskfilter_unregister): Likewise.
6699 (grub_diskfilter_make_raid): New proto.
6700 (grub_diskfilter_vg_register): Likewise.
6701 (grub_diskfilter_read_node): Likewise.
6702 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
6703 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
6704 (grub_util_is_ldm): Likewise.
6705 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
6706 (grub_hostdisk_find_partition_start): Likewise.
6707 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
6708 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
6710 (grub_gpt_partition_map_iterate): New proto.
6711 * include/grub/lvm.h (grub_lvm_vg): Removed.
6712 (grub_lvm_pv): Likewise.
6713 (grub_lvm_lv): Likewise.
6714 (grub_lvm_segment): Likewise.
6715 (grub_lvm_node): Likewise.
6716 * util/getroot.c [...]
6717 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
6718 (probe_abstraction): Likewise.
6719 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
6720 (main): Remove dead logic.
6722 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
6724 Simplify root device discover and don't fail when trying to open
6727 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
6729 (get_diskname_from_path): Likewise.
6730 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
6733 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6735 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
6737 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6739 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6742 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6744 * util/grub-install.in: Add missing \.
6745 Reported by: gentoofan
6747 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6749 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
6750 (direct_read): Use correct compressed size.
6751 (grub_squash_read_data): Likewise.
6753 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6755 * docs/grub.texi (Platform limitations): New section.
6756 (Platform-specific operations): Likewise.
6757 * docs/grub-dev.texi (Porting): Likewise.
6759 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6761 IEEE1275 disk write support.
6763 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
6765 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
6766 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
6767 and seek loginc to ...
6768 (grub_ofdisk_prepare): ... here.
6769 (grub_ofdisk_write): Implement.
6771 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6773 ARC disk write support.
6775 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
6776 (reopen): New argument writable. All users updated.
6777 Handle required access mode.
6778 (grub_arcdisk_write): Implement.
6779 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
6780 (grub_arc_firmware_vector): Make buffer to write a const buffer.
6782 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6784 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
6785 (read_sblock): Don't attempt to read superblocks outside the disk size.
6787 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6789 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
6790 first superblock to find the second one when possible.
6792 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6794 * util/grub-install.in: Fix an ARC bug.
6795 Print a warning if no platform-specific setup is available.
6797 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6799 Use static allocation rather than scratch pointer in reed_solomon.
6800 It decreases its size significantly and avoids a variable in .text.
6802 * grub-core/lib/reed_solomon.c (scratch): Removed.
6803 (chosenstat): New const or static array.
6809 (errvals): Likewise.
6811 (pol_evaluate): Replace x with log_x argument. All users updated.
6812 (syndroms): Removed.
6813 (gauss_solve): Use statically allocated arrays.
6814 (rs_recover): Likewise.
6815 Calculate syndroms directly.
6816 (decode_block): Use statically allocated arrays.
6817 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
6818 (main) [TEST]: Allow -DTEST -DSTANDALONE.
6820 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6822 Eliminate fixed limit on reed solomon decoder length.
6824 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
6825 rather than hardcoding the address.
6826 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
6827 no_reed_solomon_length.
6828 Move gate_a20 to no-reed-solomon part.
6829 Don't force a particular size of no reed-solomon part.
6830 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6832 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
6833 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
6835 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6837 * grub-core/commands/wildcard.c (match_files): Handle filenames
6838 without explicit device.
6839 (wildcard_expand): Don't add explicit device if not already present.
6840 * tests/grub_script_echo1.in: Add a new expansion test.
6842 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6844 Replace single-linked with double-linked lists. It results in more
6845 compact and more efficient code.
6847 * grub-core/kern/list.c (grub_list_push): Moved from here ...
6848 * include/grub/list.h (grub_list_push): ... to here. Set prev.
6849 (grub_list_remove): Moved from here ...
6850 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
6851 (grub_prio_list_insert): Set prev.
6852 * include/grub/list.h (grub_list): Add prev. All users updated.
6854 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6856 Handle newer autotools. Add some missing quotes while on it.
6858 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
6859 (pkglib_DATA): Move grub-mkconfig_lib from here ...
6860 (pkgdata_DATA): ... here.
6861 * Makefile.util.def (update-grub_lib): Removed.
6862 * conf/Makefile.common (pkglib_DATA): Removed.
6863 (pkglib_SCRIPTS): Likewise.
6864 (pkgdata_DATA): New variable.
6865 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
6868 Remove unused variable while on it.
6869 * tests/util/grub-shell.in: Likewise.
6870 * util/grub-install.in: Likewise.
6871 * util/grub-mkconfig.in: Likewise.
6872 * util/grub-mknetdir.in: Likewise.
6873 * util/grub-mkrescue.in: Likewise.
6874 * util/grub-mkstandalone.in: Likewise.
6875 * util/grub.d/00_header.in: Likewise.
6876 * util/grub.d/10_hurd.in: Likewise.
6877 * util/grub.d/10_illumos.in: Likewise.
6878 * util/grub.d/10_kfreebsd.in: Likewise.
6879 * util/grub.d/10_linux.in: Likewise.
6880 * util/grub.d/10_netbsd.in: Likewise.
6881 * util/grub.d/10_windows.in: Likewise.
6882 * util/grub.d/20_linux_xen.in: Likewise.
6883 * util/grub.d/30_os-prober.in: Likewise.
6884 * util/update-grub_lib.in: Removed.
6886 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
6888 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
6889 a workaround for intel problem.
6891 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
6892 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6893 2012-01-23 pfsmorigo
6895 * util/grub-install.in: Support dd'in into PreP partition.
6896 * util/grub-probe.c (probe): Support discovering partition type.
6897 (main): Support -t msdos_parttype.
6899 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6901 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
6902 infinite recursion using counter.
6903 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
6904 init to skip it if the magic check fails.
6905 (dec_stream_header): Init s->crc32.
6907 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6908 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
6909 2012-01-22 Richard Laager <rlaager@wiktel.com>
6911 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
6913 (find_bestub): Determine correct size.
6914 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
6915 (scan_disk): Align the size down.
6916 Call check pool before find_bestub to have ashift.
6918 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6920 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
6921 dprintf in no-malloc zone.
6923 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
6925 * configure.ac: Add back in test for limits.h.
6927 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6929 Support 4K-sector NTFS.
6931 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
6932 (grub_ntfs_data): Remove blocksize.
6933 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
6934 Remove data argument. All users updated.
6936 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6938 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
6939 being in .text to avoid dprel references.
6940 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
6941 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
6942 (grub_arch_highmemsize): Likewise.
6943 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
6944 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
6945 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
6947 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6949 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
6951 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
6952 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
6954 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6956 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
6958 (grub_set_datetime_cmos): Likewise.
6960 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6962 Make XZ compression parameters dependent on target and not host CPU.
6964 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
6965 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
6967 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
6970 set but not used variable.
6972 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6974 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
6975 created when no uuid support is compiled into mkfs.reiser.
6977 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6979 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
6980 (utf8_to_macroman): Do the opposite.
6981 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
6983 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6985 * configure.ac: Refise build qemu_mips w/o unifont.
6987 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6989 Eliminate grub_min/grub_max prone to overflow usage.
6991 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
6992 (poll_nonroot_hub): Likewise.
6993 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
6994 (grub_affs_label): Likewise.
6995 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
6996 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
6997 (grub_hfs_label): Likewise.
6998 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
6999 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7000 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7001 (zap_leaf_array_get): Likewise.
7002 (dnode_get_path): Likewise.
7003 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7004 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7005 * grub-core/script/execute.c (grub_script_break): Likewise.
7006 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7008 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7009 * include/grub/misc.h (grub_min): Removed.
7010 (grub_max): Likewise.
7012 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7014 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7017 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7019 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7021 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7023 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7025 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7027 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7028 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7030 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7032 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7033 rather than a hack for grub_strncasemap.
7035 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7037 Support multiple initrds
7038 Note: part of this was accidently committed in r3739.
7040 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7042 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7043 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7044 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7045 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7046 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7048 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7050 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7051 disks with unknown size.
7052 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7054 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7056 Remove defines pertaining to arbitrary limits not affecting GRUB
7059 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7060 (EXT2_MAX_SYMLINKCNT): Likewise.
7061 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7062 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7063 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7064 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7065 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7066 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7067 (DN_MAX_OBJECT_SHIFT): Likewise.
7068 (DN_MAX_OFFSET_SHIFT): Likewise.
7069 (DN_MAX_OBJECT): Likewise.
7070 (DNODES_PER_LEVEL_SHIFT): Likewise.
7071 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7072 (SPA_MAXBLOCKSIZE): Likewise.
7073 (SPA_BLOCKSIZES): Likewise.
7074 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7075 (MZAP_MAX_BLKSZ): Likewise.
7077 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7079 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7080 handle NULL appropriately.
7083 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7087 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7089 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7090 * configure.ac: Fix efiemu check.
7092 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7094 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7096 Reported by: adamwill
7098 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7100 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7102 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7104 Fix handling of wide characters in gfxterm.
7106 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7107 (clear_char): Likewise.
7108 (paint_char): Skip code == NULL chars.
7109 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7111 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7113 * grub-core/normal/charset.c: Move comment to right place.
7115 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7117 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7118 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7119 (grub_affs_mount): Revert the correct version checking.
7121 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7123 * docs/grub.texi (Unicode): Mention several other unsupported features.
7125 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7127 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7128 case statements as compile-time one.
7129 (direct_read): Prevent spurious warnings.
7130 (grub_squash_read_data): Likewise.
7132 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7134 Various squash4 fixes and LZO and XZ support.
7136 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7137 Add xzembed source files.
7138 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7139 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7140 (grub_squash_inode): New subtype long_dir.
7141 (SQUASH_TYPE_LONG_DIR): New inode type.
7142 (COMPRESSION): New enum.
7143 (XZBUFSIZ): New const.
7144 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7145 (read_chunk): Use data->decompress.
7146 (zlib_decompress): New function.
7147 (lzo_decompress): Likewise.
7148 (xz_decompress): Likewise.
7149 (squash_mount): Set new data fields.
7150 (grub_squash_iterate_dir): Handle long dir.
7151 (squash_unmount): Free xzdec and xzbuf.
7152 (grub_squash_open): Check ino type.
7153 (direct_read): Stylistic fixes. Use data->decompress.
7154 (grub_squash_read_data): Likewise.
7155 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7156 (get_byte): Likewise.
7157 (grub_zlib_disk_read): Removed.
7158 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7159 (GRUB_POSIX_BOOL_DEFINED): New define.
7160 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7161 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7162 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7163 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7165 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7167 Don't override more informative errors.
7169 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7170 * grub-core/font/font.c (open_section): Likewise.
7171 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7172 filename. Don't override errors.
7173 (grub_cmd_openbsd_ramdisk): Don't override errors.
7174 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7175 (grub_cmd_initrd): Likewise.
7176 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7177 (grub_cmd_initrd): Likewise.
7178 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7179 (grub_cmd_linux): Likewise.
7180 (grub_cmd_initrd): Likewise.
7181 (grub_cmd_payload): Likewise.
7182 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7183 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7184 (grub_cmd_module): Likewise.
7185 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7186 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7187 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7188 (grub_cmd_xnu_mkext): Likewise.
7189 (grub_cmd_xnu_ramdisk): Likewise.
7190 (grub_xnu_check_os_bundle_required): Likewise.
7191 (grub_xnu_load_kext_from_dir): Likewise.
7192 (grub_cmd_xnu_kextdir): Likewise.
7193 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7195 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7197 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7198 as 1024 in block size field. Found on one of my test images.
7199 Small optimisation while on it.
7201 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7203 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7204 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7205 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7206 performance fixes while on it.
7207 (grub_sfs_close): Fix memory leak while on it.
7208 (grub_sfs_label): Convert Latin1 to UTF-8.
7210 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7212 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7213 space to avoid overflows.
7214 (grub_hfs_label): Convert from macroman to UTF-8.
7216 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7218 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7220 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7222 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7224 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7226 * unicode: Import Unicode 6.0 data.
7228 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7230 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7233 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7235 Avoid cutting in the middle of UTF-8 character.
7237 * include/grub/charset.h (grub_getend): New function.
7238 * grub-core/script/function.c (grub_script_function_find): Use
7240 * grub-core/normal/completion.c (add_completion): Likewise.
7242 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7244 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7245 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7246 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7247 (GRUB_UNICODE_TAG_END): Likewise.
7248 (GRUB_UNICODE_LAST_VALID): Likewise.
7250 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7252 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7253 len and make it smaller. All users updated.
7254 * util/import_unicode.py: Put length and not end character.
7257 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7259 Make better Unicode-compliant and unify some UTF-8 code pathes.
7261 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7263 (grub_is_valid_utf8): Use grub_utf8_process.
7264 Check resulting code range.
7265 (grub_utf8_to_ucs4): Use grub_utf8_process.
7266 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7269 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7271 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7273 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7275 * docs/grub.texi (Filesystems): Mention AFS.
7277 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7279 * docs/grub.texi (Filesystems): Clarify restrictions.
7280 (Regexp): Mention non-Unicode regexp behaviour.
7281 (Other): Mention non-Unicode matching behaviour.
7283 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7285 Make HFS implementation use MacRoman.
7287 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7288 (macroman): New const array.
7289 (macroman_to_utf8): New function.
7290 (utf8_to_macroman): Likewise.
7291 (grub_hfs_find_dir): Use utf8_to_macroman.
7292 (grub_hfs_dir): Use macroman_to_utf8.
7293 Set case_insensitive.
7295 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7297 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7299 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7301 Integrate hints into autogeneration scripts.
7303 * docs/grub.texi (Filesystems): Add a hostdisk example.
7304 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7305 (grub-probe): Add ofpath.
7306 * gentpl.py: Remove group nosparc64.
7307 * grub-core/commands/search.c (cache_entry): New struct.
7309 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7310 * grub-core/commands/search_wrap.c (options): Add platform-specific
7312 (grub_cmd_search): Handle platform-specific hints.
7313 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7314 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7315 (grub_util_biosdisk_data): Likewise.
7316 (grub_util_biosdisk_open): Set device_map.
7317 (read_device_map): Handle "" as indication of no map.
7319 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7320 (grub_util_biosdisk_get_compatibility_hint): New function.
7321 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7322 * include/grub/emu/hostdisk.h
7323 (grub_util_biosdisk_get_compatibility_hint): New proto.
7324 * util/grub-install.in: Don't call grub-mkdevicemap.
7325 Add platform-specific hint to load.cfg.
7326 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7327 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7328 hints. Set root preliminary to compatibility hint, not to OS name.
7329 * util/grub-probe.c (PRINT_*): Add hints.
7330 (print): Make static.
7331 (escape_of_path): New function.
7332 (guess_bios_drive): Likewise.
7333 (guess_efi_drive): Likewise.
7334 (guess_baremetal_drive): Likewise.
7335 (print_full_name): Likewise.
7336 (probe): Handle hints.
7338 * util/ieee1275/devicemap.c: Removed.
7339 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7341 (grub_util_devname_to_ofpath): Return NULL on failure.
7343 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7345 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7347 * po/POTFILES.in: Regenerated.
7349 Allow purely long options
7351 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7352 (SHORT_ARG_USAGE): Likewise.
7353 (grub_arg_show_help): Compare opt with help_options.
7354 (parse_option): Receive opt as argument. If makes big simplificatons.
7357 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7359 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7360 Restructure to avoid warning.
7362 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7364 * util/grub-install.in: Account for possible escaped comma in device
7367 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7369 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7372 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7374 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7375 allocation and zero-setting.
7376 (grub_ieee1275_get_devname): Check that alias is complete.
7378 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7380 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7383 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7385 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7387 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7388 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7389 Add ieee1275 prefix.
7391 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7393 * docs/grub.texi (Filesystems): Update.
7395 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7397 Support odc, newc and bigendian cpio formats.
7399 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7400 * grub-core/Makefile.core.def (newc): New module.
7402 (cpio_be): Likewise.
7403 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7406 (head) [MODE_ODC]: Adapt for the format.
7407 (head) [MODE_NEWC]: Likewise.
7408 (head) [!MODE_*]: Write fields of interest as arrays.
7409 (MAGIC_USTAR): Removed.
7410 (read_number) [MODE_NEWC]: Change to hex.
7411 (read_number) [!MODE_*]: Parse binary arrays.
7412 (grub_cpio_find_file): Factor out the code for better structure and
7413 always use read_number.
7414 (grub_cpio_mount): Use MAGIC and MAGIC2.
7415 (grub_cpio_dir): Exit on first hook non-0 return.
7416 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7417 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7418 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7419 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7420 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7421 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7422 * grub-core/fs/newc.c: New file.
7423 * grub-core/fs/odc.c: Likewise.
7424 * grub-core/fs/cpio_be.c: Likewise.
7426 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7428 Fix handling of tar numbers occupying the whole field.
7430 * grub-core/fs/cpio.c (read_number): New function.
7431 (grub_cpio_find_file): Use read_number instead of strtoull.
7433 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7435 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7436 occupying the whole field size.
7438 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7440 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7442 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7444 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7446 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7448 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7451 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7453 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7454 (mountinfo_entry): Increase the field size to take escaping into
7456 (find_root_device_from_libzfs): Add one byte to size of strings for
7459 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7461 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7463 * util/grub-setup.c (setup): Likewise.
7465 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7470 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7472 * docs/grub.texi (Internationalisation): New section.
7474 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7476 * docs/grub.texi (Loopback booting): New section.
7478 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7480 * util/grub-mkstandalone.in: Fix minor typo errors.
7482 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7484 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7486 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7487 net/icmp.c and net/icmp6.c.
7489 (priority_queue): Likewise.
7490 * grub-core/io/bufio.c: Rewritten.
7491 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7492 TYPE_WITH_CONFIGFILE_OPTION.
7493 (legacy_commands): Add bootp and dhcp.
7494 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7495 (grub_legacy_parse): Likewise.
7496 * grub-core/lib/priority_queue.c: New file.
7497 * grub-core/net/arp.c: Add missing license header.
7498 (arp_find_entry): Removed.
7499 (arp_find_entry): Likewise.
7500 (grub_net_arp_resolve): Rename to ...
7501 (grub_net_arp_send_request): ...this.
7502 (grub_net_arp_receive): New card argument.
7503 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7504 Set router and DNS server.
7505 (grub_net_configure_by_dhcp_ack): Handle routing information.
7506 (grub_cmd_bootp): Set checksum.
7507 (grub_bootp_init): Remove net_dhcp.
7508 * grub-core/net/dns.c: New file.
7509 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7511 (get_card_packet): Handle allocation.
7512 (grub_efinet_findcards): Set mtu.
7513 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7514 (get_card_packet): Handle allocation.
7516 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7517 (GRUB_MOD_INIT): Set mtu.
7518 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7520 (get_card_packet): Handle allocation.
7521 (grub_ofnet_findcards): Set mtu.
7522 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7524 (grub_net_recv_ethernet_packet): Handle IPv6.
7525 * grub-core/net/http.c: New file.
7526 * grub-core/net/icmp.c: Likewise.
7527 * grub-core/net/icmp6.c: Likewise.
7528 * grub-core/net/ip.c (ip6addr): New type.
7530 (reassemble): Likewise.
7531 (cmp): New function.
7532 (reassembles): New variable.
7533 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7535 (send_fragmented): New function.
7536 (grub_net_send_ip_packet): Rename to ...
7537 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7539 (grub_net_recv_ip_packets): Rename to ...
7540 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7541 (free_rsm): New function.
7542 (free_old_fragments): Likewise.
7543 (grub_net_recv_ip4_packets): New function.
7544 (grub_net_send_ip6_packet): Likewise.
7545 (grub_net_send_ip_packet): Likewise.
7546 (grub_net_recv_ip6_packets): Likewise.
7547 (grub_net_recv_ip_packets): Likewise.
7548 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7549 (LINK_LAYER_CACHE_SIZE): New const.
7550 (link_layer_find_entry): New function.
7551 (grub_net_link_layer_add_address): Likewise.
7552 (grub_net_link_layer_resolve_check): Likewise.
7553 (grub_net_link_layer_resolve): Likewise.
7554 (grub_net_ipv6_get_slaac): Likewise.
7555 (grub_net_ipv6_get_link_local): Likewise.
7556 (grub_cmd_ipv6_autoconf): Likewise.
7557 (parse_ip): Handle one number representation.
7558 (parse_ip6): New functoion.
7559 (match_net): Handle IPv6.
7560 (grub_net_resolve_address): Handle IPv6 and DNS.
7561 (grub_net_resolve_net_address): Handle IPv6.
7562 (route_cmp): New function.
7563 (grub_net_route_address): Find best route.
7564 (grub_net_addr_to_str): Handle IPv6.
7565 (grub_net_addr_cmp): New function.
7566 (grub_net_add_addr): Register local route.
7567 (print_net_address): Handle net address.
7568 (grub_net_poll_cards): Retransmit TCP.
7569 (grub_net_poll_cards_idle_real): Likewise.
7570 (have_ahead): New function.
7571 (grub_net_seek_real): Use underlying seek.
7572 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7573 * grub-core/net/tcp.c: New file.
7574 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7575 (cmp): New function.
7577 (tftp_receive): Handle unordered input.
7578 (destroy_pq): New function.
7579 (tftp_close): Close pq.
7580 * grub-core/net/udp.c: Put missing license header.
7581 (grub_net_udp_socket): New function.
7582 (udp_socket_register): Likewise.
7583 (grub_net_udp_close): Likewise.
7584 (grub_net_recv_udp_packet): Check checksum.
7585 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7586 * include/grub/misc.h (grub_memchr): New function.
7587 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7588 (grub_net_card_driver): Return buf in recv.
7589 (grub_net_slaac_mac_list): New struct.
7590 (grub_network_level_protocol_id): Add ipv6.
7591 (grub_net_network_level_addr): Likewise.
7592 (grub_net_network_level_net_addr): Likewise.
7593 (grub_net_app_protocol): Add seek.
7594 (grub_net_socket): Removed.
7595 (grub_net_sockets): Likewise.
7596 (grub_net_socket_register): Likewise.
7597 (grub_net_socket_unregister): Likewise.
7598 (FOR_NET_SOCKETS): Likewise.
7599 (grub_net_add_addr): Add const.
7600 (GRUB_NET_BOOTP_*): New enum.
7601 (grub_net_addr_cmp): New proto.
7602 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7603 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7604 (grub_net_hwaddr_to_str): NEw proto.
7605 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7606 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7607 (grub_dns_init): New proto.
7608 (grub_dns_fini): Likewise.
7609 (grub_net_tcp_retransmit): Likewise.
7610 (grub_net_link_layer_add_address): Likewise.
7611 (grub_net_link_layer_resolve_check): Likewise.
7612 (grub_net_link_layer_resolve): Likewise.
7613 (grub_net_dns_lookup): Likewise.
7614 (grub_net_add_dns_server): Likewise.
7615 (grub_net_remove_dns_server): Likewise.
7616 (GRUB_NET_TRIES): New const.
7617 (GRUB_NET_INTERVAL): Likewise.
7618 * include/grub/net/arp.h: Mostly rewritten.
7619 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7620 * include/grub/net/ip.h: Mostly rewritten.
7621 * include/grub/net/netbuff.h: Indent.
7622 * include/grub/net/tcp.h: New file.
7623 * include/grub/net/udp.h: Mostly rewritten.
7624 * include/grub/priority_queue.h: New file.
7625 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7626 (grub_swap_bytes64_compile_time): Likewise.
7627 (grub_cpu_to_be16_compile_time): Likewise.
7628 (grub_cpu_to_be32_compile_time): Likewise.
7629 (grub_cpu_to_be64_compile_time): Likewise.
7630 (grub_be_to_cpu64_compile_time): Likewise.
7632 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7634 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7635 UINT_TO_PTR with cast.
7637 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7639 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7642 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7644 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
7647 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7649 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
7652 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7654 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
7655 Add missing const attribute.
7656 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
7658 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
7661 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7663 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
7665 (serpent_setkey): Likewise.
7666 (serpent_encrypt_internal): Likewise.
7667 (serpent_decrypt_internal): Likewise.
7668 (serpent_encrypt): Don't put an alignment-increasing cast.
7669 (serpent_decrypt): Likewise.
7670 (serpent_test): Likewise.
7672 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7674 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
7676 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7678 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
7680 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
7682 (PTR_TO_UINT64): Likewise.
7683 (PTR_TO_UINT32): Likewise.
7685 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7687 * util/grub-mkimage.c (generate_image): Decrease the higher limit
7689 * util/grub-setup.c (setup): Don't add redundancy past the higher load
7692 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7694 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
7695 text_width > available width a bit more gracefully.
7697 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7699 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
7700 current address calculation.
7702 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7704 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
7706 (encode_block): Likewise.
7708 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7710 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
7713 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7715 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
7716 non-RS part to avoid RS messing with GDT.
7717 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7718 Increase to suit in realmode routines.
7720 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7722 * grub-core/kern/i386/realmode.S: Increase alignment.
7723 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
7725 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7727 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
7729 (syndroms): Compute 0 syndrom.
7730 (rs_recover): Use 0 syndrom.
7732 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7734 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
7736 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7738 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
7741 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7743 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
7745 (get_top_pad): Likewise.
7746 (get_right_pad): Likewise.
7747 (get_bottom_pad): Likewise.
7749 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7751 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
7753 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7755 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
7756 attribute as the structure isn't guaranteed to be properly aligned.
7757 (grub_efi_pci_device_path): Likewise.
7758 (grub_efi_pccard_device_path): Likewise.
7759 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
7760 specify the size of `memory_type'.
7761 (grub_efi_vendor_device_path): Likewise.
7762 (grub_efi_controller_device_path): Likewise.
7763 (grub_efi_acpi_device_path): Likewise.
7764 (grub_efi_expanded_acpi_device_path): Likewise.
7765 (grub_efi_atapi_device_path): Likewise.
7766 (grub_efi_scsi_device_path): Likewise.
7767 (grub_efi_fibre_channel_device_path): Likewise.
7768 (grub_efi_1394_device_path): Likewise.
7769 (grub_efi_usb_device_path): Likewise.
7770 (grub_efi_usb_class_device_path): Likewise.
7771 (grub_efi_i2o_device_path): Likewise.
7772 (grub_efi_mac_address_device_path): Likewise.
7773 (grub_efi_ipv4_device_path): Likewise.
7774 (grub_efi_ipv6_device_path): Likewise.
7775 (grub_efi_infiniband_device_path): Likewise.
7776 (grub_efi_uart_device_path): Likewise.
7777 (grub_efi_vendor_messaging_device_path): Likewise.
7778 (grub_efi_hard_drive_device_path): Likewise.
7779 (grub_efi_cdrom_device_path): Likewise.
7780 (grub_efi_vendor_media_device_path): Likewise.
7781 (grub_efi_file_path_device_path): Likewise.
7782 (grub_efi_protocol_device_path): Likewise.
7783 (grub_efi_piwg_device_path): Likewise.
7784 (grub_efi_bios_device_path): Likewise.
7786 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7788 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
7789 (grub_ucs4_to_utf8_alloc): Likewise.
7790 (grub_ucs4_to_utf8): Likewise.
7791 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
7792 (grub_ucs4_to_utf8_alloc): Likewise.
7794 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7796 AFFS never uses unicode.
7798 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
7799 (grub_latin1_to_utf8): New inline function.
7800 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
7802 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7804 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
7807 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7809 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
7810 (grub_squash_dirent_header): Likewise.
7811 (read_chunk): Don't double swap.
7812 (grub_squash_iterate_dir): Fix swap sizes.
7814 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7816 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
7818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7820 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
7821 (grub_hfs_iterate_dir): Likewise.
7823 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7825 Fix video on platforms where unaligned access is forbidden.
7826 Make several optimisations while on it.
7828 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
7829 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7830 (grub_video_fbblit_replace_32bit_1bit): Likewise.
7831 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7833 (grub_video_fbblit_replace_16bit_1bit):
7834 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7835 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7836 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
7837 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
7838 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7839 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7840 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
7841 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
7842 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
7843 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
7844 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
7845 (grub_video_fbblit_replace_index_RGB888): Likewise.
7846 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
7847 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
7848 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
7849 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
7850 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
7851 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7852 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7854 (grub_video_fbblit_blend_XXX565_1bit):
7855 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7856 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
7857 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
7859 * grub-core/video/fb/video_fb.c (common_blitter)
7860 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
7861 (grub_video_fb_create_render_target_from_pointer)
7862 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7863 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
7864 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
7866 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
7868 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7870 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
7871 HH22 and HM10 relocations.
7873 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7875 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
7877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7879 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
7880 allocation succeeded.
7882 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7884 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
7885 argument a u8 pointer. All users updated.
7886 Handle unaligned buffers.
7888 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7890 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
7891 add_part to workaround compiler bug.
7893 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7895 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
7897 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7899 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
7900 Reserve alignment invariants.
7901 (grub_multiboot_load): Likewise.
7902 (retrieve_video_parameters): Likewise.
7903 (grub_multiboot_make_mbi): Likewise.
7905 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7907 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
7910 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7912 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
7913 (grub_pata_pio_write): Likewise.
7915 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7917 Add noreturn attributes and remove unreachable code.
7919 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
7921 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
7922 code. Mark as noreturn.
7923 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
7924 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
7925 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
7927 * grub-core/kern/main.c (grub_main): Mark as noreturn.
7928 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
7929 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
7930 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
7931 * include/grub/kernel.h (grub_main): Mark as noreturn.
7932 * include/grub/reader.h (grub_rescue_run): Likewise.
7934 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7936 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
7937 redundant declaration.
7939 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7941 * include/grub/net.h (grub_net_network_level_interfaces): Remove
7942 redundant declaration.
7943 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
7945 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7947 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
7948 to ensure alignment.
7949 (grub_hdparm_print_identify): Make argument uint16 * to ensure
7950 alignment. Ensure tmp alignment.
7951 (grub_cmd_hdparm): Ensure buf alignment.
7952 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
7953 to ensure alignment.
7954 (grub_ata_dumpinfo): Ensure text alignment.
7955 (grub_atapi_identify): Preserve alignment invariant.
7956 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
7958 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7960 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
7961 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
7962 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
7963 * include/grub/misc.h (grub_reboot)
7964 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
7965 (grub_halt) [__mips__]: Likewise.
7967 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7969 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
7970 Remove redundant declaration.
7971 (grub_mmap_get_post64): Likewise.
7972 (grub_mmap_get_upper): Likewise.
7973 (grub_mmap_get_lower): Likewise.
7975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7977 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
7978 uint32_t * to ensure alignment.
7979 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
7981 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7983 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
7984 uint16_t * to ensure alignment.
7985 (sun_pc_partition_map_iterate): Make `block' a union to ensure
7988 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7990 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
7991 to ensure alignment.
7992 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
7994 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7996 * grub-core/fs/ntfs.c (u16at): Make into inline function.
7997 Handle unaligned pointers.
8000 (fixup): Use byte access instead of v16at.
8001 (find_attr): Fix imporper usage of v32at.
8002 (read_data): Likewise.
8003 (list_file): Handle byte-swapping and unaligned strings.
8004 (grub_ntfs_label): Likewise.
8006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8008 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8009 as it's not necessarily aligned.
8011 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8013 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8014 redundant declaration.
8015 (grub_serial_init): Likewise.
8016 (grub_terminfo_init): Likewise.
8018 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8020 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8022 (ZAP_HASH_IDX): Likewise.
8023 (ZAP_LEAF_HASH_SHIFT): Likewise.
8024 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8025 (LEAF_HASH): Likewise.
8026 (ZAP_LEAF_NUMCHUNKS): Likewise.
8027 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8028 alignment invariants. Return pointer. All users updated.
8029 (ZAP_LEAF_ENTRY): Make into inline function.
8032 (xor_out): Use grub_crypto_xor.
8033 (dnode_get_path): Use grub_get_unaligned.
8034 (nvlist_find_value): Likewise.
8035 (grub_zfs_nvlist_lookup_uint64): Likewise.
8036 (grub_zfs_nvlist_lookup_string): Likewise.
8037 (get_nvlist_size): Likewise.
8038 (grub_zfs_open): Likewise.
8039 (fill_fs_info): Likewise.
8040 (grub_zfs_dir): Likewise.
8041 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8042 alignment invariants.
8043 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8044 necessarily aligned.
8046 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8048 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8050 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8052 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8053 arithmetic to conserve alignment invariants.
8055 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8057 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8058 redundant declaration.
8059 (grub_efiemu_mm_obtain_request): Likewise.
8060 (grub_efiemu_prepare): Likewise.
8062 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8064 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8067 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8069 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8070 case of aunaligned recptr.
8071 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8073 (grub_hfsplus_btree_search): Handle unaligned index.
8075 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8077 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8078 to get freetag and skip.
8080 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8082 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8084 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8085 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8087 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8089 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8090 name for checksum and fix allocation algorithm.
8092 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8094 * include/grub/types.h (grub_properly_aligned_t): New type.
8095 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8096 (grub_get_unaligned16): Add explicit casts.
8097 (grub_get_unaligned32): Likewise.
8098 (grub_get_unaligned64): Likewise.
8099 (grub_set_unaligned16): New function.
8100 (grub_set_unaligned32): Likewise.
8102 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8104 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8106 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8108 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8109 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8110 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8112 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8114 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8117 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8119 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8120 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8122 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8124 Unify and improve RAID and crypto xor.
8126 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8127 changed to grub_crypto_xor
8128 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8129 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8130 Use bigger types when possible.
8132 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8134 * grub-core/disk/raid.c (scan_devices): Fix condition.
8136 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8138 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8139 Make name a const ptr.
8141 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8143 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8144 first argument a const pointer.
8145 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8146 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8148 (grub_children_iterate): Likewise.
8149 (grub_machine_mmap_iterate): Remove redundant declaration.
8151 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8153 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8154 (grub_cmd_acpi) [!x86]: Disable EBDA.
8156 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8158 Enable UTF8 in gnulib regexp.
8160 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8161 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8162 (isupper): Use grub_isupper.
8163 (isascii): New inline function.
8164 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8165 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8166 * grub-core/normal/charset.c (grub_utf8_process): New function.
8167 (grub_utf8_to_utf16): Use grub_utf8_process.
8168 (grub_encode_utf8_character): New function.
8169 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8170 * include/grub/charset.h (grub_utf8_process): New declaration.
8171 (grub_encode_utf8_character): Likewise.
8172 * include/grub/misc.h (grub_islower): New inline function.
8173 (grub_isupper): Likewise.
8174 (grub_strchrsub): Moved down to fix the definitions.
8176 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8178 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8181 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8183 * include/grub/loader.h (grub_loader_register_preboot_hook):
8184 Use struct preboot * and not void * for handle. All users updated.
8185 (grub_loader_unregister_preboot_hook): Likewise.
8187 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8189 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8190 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8191 UTF-16-BE. All users updated.
8192 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8193 (grub_hfsplus_iterate_dir): Likewise.
8194 (grub_hfsplus_label): Likewise.
8196 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8198 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8200 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8202 Add missing const qualifiers.
8204 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8205 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8206 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8207 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8208 (grub_lvm_check_flag): Likewise.
8209 * grub-core/efiemu/i386/coredetect.c
8210 (grub_efiemu_get_default_core_name): Likewise
8211 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8212 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8213 * grub-core/fs/ntfs.c (fixup): Likewise.
8214 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8215 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8216 (fzap_lookup): Likewise.
8217 (zap_lookup): Likewise.
8218 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8219 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8220 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8221 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8222 (grub_freebsd_add_meta_module): Likewise.
8223 (grub_cmd_freebsd_module): Likewise.
8224 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8225 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8226 (grub_xnu_writetree_get_size): Likewise.
8227 (grub_xnu_writetree_toheap_real): Likewise.
8228 (grub_xnu_find_key): Likewise.
8229 (grub_xnu_create_key): Likewise.
8230 (grub_xnu_create_value): Likewise.
8231 (grub_xnu_register_memory): Likewise.
8232 (grub_xnu_check_os_bundle_required): Likewise.
8233 (grub_xnu_scan_dir_for_kexts): Likewise.
8234 (grub_xnu_load_kext_from_dir): Likewise.
8235 * grub-core/normal/color.c (color_list): Likewise.
8236 * grub-core/normal/completion.c (current_word): Likewise.
8237 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8238 * grub-core/term/serial.c (grub_serial_find): Likewise.
8239 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8240 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8242 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8243 (grub_freebsd_add_meta_module): Likewise.
8244 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8245 * include/grub/net.h (grub_net_card_driver): Likewise.
8246 (grub_net_card): Likewise.
8247 (grub_net_app_protocol): Likewise.
8248 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8249 * include/grub/serial.h (grub_serial_find): Likewise.
8250 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8251 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8252 (grub_xnu_create_value): Likewise.
8253 (grub_xnu_find_key): Likewise.
8254 (grub_xnu_scan_dir_for_kexts): Likewise.
8255 (grub_xnu_load_kext_from_dir): Likewise.
8257 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8258 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8259 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8261 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8263 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8265 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8267 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8269 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8270 (read_device): Fix size calculation.
8272 2011-11-25 Robert Millan <rmh@gnu.org>
8274 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8275 (find_root_device_from_libzfs): Add zpool output parser to be used
8276 as fallback when libzfs isn't available.
8278 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8280 * po/Makefile.in.in: Add missing escape-continuation.
8282 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8284 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8286 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8288 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8290 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8292 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8294 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8296 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8298 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8300 * grub-core/lib/adler32.c: Add missing license specification.
8301 * grub-core/lib/crc64.c: Likewise.
8302 * grub-core/loader/i386/pc/plan9.c: Likewise.
8303 * grub-core/partmap/plan.c: Likewise.
8305 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8307 Add facility to debug GRUB with gdb under qemu.
8309 * grub-core/gdb_grub.in: New file.
8310 * grub-core/gmodule.pl.in: Likewise.
8311 * grub-core/Makefile.core.def (gmodule.pl): New script.
8312 (gdb_grub): Likewise.
8314 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8316 * util/grub-mount.c (argp_parser): Accept relative pathes.
8317 * util/grub-fstest.c (argp_parser): Likewise.
8319 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8323 * Makefile.util.def (libgrubmods): Add
8324 grub-core/partmap/plan.c.
8325 * docs/grub.texi: Notice Plan9 support.
8326 * grub-core/Makefile.core.def (plan9): New module.
8327 (part_plan): Likewise.
8328 * grub-core/loader/i386/pc/plan9.c: New file.
8329 * grub-core/partmap/plan.c: Likewise.
8330 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8332 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8333 * include/grub/mm.h (grub_extend_alloc): New inline function.
8335 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8337 Make Reed-Solomon faster by using power of generator representation of
8340 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8341 (gf_double_t): Likewise.
8342 (gf_invert): Removed.
8343 (gf_powx): New array.
8344 (gf_powx_inv): Likewise.
8345 (scratch): Move higher.
8346 (gf_reduce): Removed.
8348 (gf_invert): Likewise.
8349 (init_inverts): Replaced with ...
8350 (init_powx): ...this. All users updated.
8351 (pol_evaluate): Replace multiplications with additions.
8352 (rs_encode): Likewise.
8353 (gauss_eliminate): Call gf_invert.
8354 (grub_reed_solomon_add_redundancy): Call init_powx.
8355 (grub_reed_solomon_recover): Call init_powx unconditionally.
8357 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8359 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8361 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8363 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8364 disk->partiton for safety.
8366 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8368 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8370 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8372 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8374 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8376 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8378 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8380 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8382 Fix spaces handling in proc/self/mountinfo.
8384 * util/getroot.c (unescape): New function.
8385 (grub_find_root_device_from_mountinfo): Use unescape.
8387 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8389 Support ZFS embedding.
8391 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8392 (grub_zfs_fs): Register grub_zfs_embed.
8394 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8396 Fix MIPS compilation.
8398 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8399 * include/grub/offsets.h: Rename decompressor fields from
8400 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8401 * util/grub-mkimage.c (image_targets): Use new names.
8403 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8405 Defer multiboot device parsing until we're in compressed part.
8407 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8408 bsd_part. setdevice has fallen into disuse.
8409 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8410 (bsd_part): Likewise.
8411 (boot_dev): New variable.
8412 (multiboot_trampoline): Don't parse multiboot device.
8413 Pass multiboot device in %edx.
8414 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8416 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8418 * grub-core/kern/i386/pc/startup.S: Save edx.
8419 (grub_boot_drive): Removed.
8420 (grub_install_dos_part): Likewise.
8421 (grub_install_bsd_part): Likewise.
8422 (grub_boot_device): New variable.
8423 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8424 (grub_install_bsd_part): Likewise.
8425 (grub_boot_drive): Likewise.
8426 (grub_boot_device): New variable.
8427 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8429 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8430 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8431 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8432 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8433 * util/grub-install.in: Remove redundant condition.
8435 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8437 Fix bug introduced by previous commit.
8439 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8441 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8443 Use decompressors framework on i386-pc. It increases core size
8444 by 46 bytes but improves compatibility and maintainability.
8446 * grub-core/Makefile.core.def (lzma_decompress): New image.
8447 (kernel): Add i386_pc_ldflags.
8448 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8449 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8450 to real_to_prot, prot_to_real and device info.
8451 * include/grub/offsets.h: Renamed decompressor offsets.
8452 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8453 (image_target_desc): Remove raw_size and rename decompressor fields.
8454 (compress_kernel): Handle lzma.
8455 (generate_image): Handle decompressors on i386-pc.
8457 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8459 * configure.ac: Add -fno-asynchronous-unwind-tables.
8461 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8463 Move assembly code to C by using intwrap. It increases core size
8464 by 88 bytes but improves compatibility and maintainability.
8466 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8467 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8468 ... here. Translated to C.
8469 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8470 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8471 ... here. Translated to C.
8472 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8473 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8474 ... here. Translated to C.
8475 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8476 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8477 ... here. Translated to C.
8478 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8479 * grub-core/term/i386/pc/console.c (grub_console_cls):
8480 ... here. Translated to C.
8481 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8482 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8483 ... here. Translated to C.
8484 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8485 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8487 * grub-core/term/i386/pc/console.c (int10_9): New function.
8488 (grub_console_putchar): Likewise.
8489 * include/grub/i386/pc/console.h: Removed the not anymore shared
8492 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8494 Move grub_chainloader_real_boot out of the kernel.
8496 * grub-core/Makefile.am: Remove machine/loader.h.
8497 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8499 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8501 (grub_relocator16_keep_a20_enabled): Likewise.
8502 (grub_relocator16_boot): Fill new variables.
8503 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8504 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8506 (grub_chainloader_unload): Likewise.
8507 (grub_chainloader_cmd): Likewise.
8508 * include/grub/i386/pc/loader.h: Removed.
8509 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8510 and esi. All initialisers updated.
8512 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8513 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8515 * Makefile.util.def (grub-mount): New util.
8516 * .bzrignore: Add grub-mount.
8517 * configure.ac: Check for fuse and enable grub-mount if available.
8518 * docs/man/grub-mount.h2m: New file.
8519 * util/grub-mount.c: Likewise.
8521 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8523 * grub-core/commands/efi/fixvideo.c: Gettextize.
8524 * grub-core/commands/hashsum.c: Likewise.
8525 * grub-core/commands/i386/cmostest.c: Likewise.
8526 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8527 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8528 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8529 * grub-core/commands/lsmmap.c: Likewise.
8530 * grub-core/commands/menuentry.c: Likewise.
8531 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8532 * grub-core/commands/setpci.c: Likewise.
8533 * grub-core/loader/i386/bsd.c: Likewise.
8534 * grub-core/loader/i386/linux.c: Likewise.
8535 * util/getroot.c: Likewise.
8536 * util/grub-editenv.c: Likewise.
8537 * util/grub-fstest.c: Likewise.
8538 * util/grub-mkfont.c: Likewise.
8539 * util/grub-mkimage.c: Likewise.
8540 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8541 * util/grub-pe2elf.c: Likewise.
8542 * util/grub-probe.c: Likewise.
8543 * util/grub-setup.c: Likewise.
8544 * util/ieee1275/ofpath.c: Likewise.
8545 * util/misc.c: Likewise.
8546 * util/raid.c: Likewise.
8548 2011-11-11 Robert Millan <rmh@gnu.org>
8550 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8551 __attribute__((unused)) from `os_dev', which *is* being used.
8553 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8555 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8557 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8558 GRUB_IA64_DL_GOT_ALIGN.
8559 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8560 GRUB_IA64_DL_TRAMP_ALIGN.
8562 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8564 Replace grub_fatal with normal errors in i386 linux loader.
8566 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8567 (allocate_pages): Check find_efi_mmap_size return value.
8568 (grub_e820_add_region): Return error.
8569 (grub_linux_boot): Check mmap return value.
8571 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8573 * grub-core/commands/acpihalt.c: Gettextized.
8574 * grub-core/commands/cacheinfo.c: Likewise.
8575 * grub-core/commands/cmp.c: Likewise.
8576 * grub-core/commands/efi/loadbios.c: Likewise.
8577 * grub-core/commands/gptsync.c: Likewise.
8578 * grub-core/commands/ieee1275/suspend.c: Likewise.
8579 * grub-core/commands/legacycfg.c: Likewise.
8580 * grub-core/commands/memrw.c: Likewise.
8581 * grub-core/commands/minicmd.c: Likewise.
8582 * grub-core/commands/parttool.c: Likewise.
8583 * grub-core/commands/time.c: Likewise.
8584 * grub-core/commands/videoinfo.c: Likewise.
8585 * grub-core/disk/geli.c: Likewise.
8586 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8587 * grub-core/disk/luks.c: Likewise.
8588 * grub-core/disk/lvm.c: Likewise.
8589 * grub-core/font/font_cmd.c: Likewise.
8590 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8591 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8592 * grub-core/gfxmenu/view.c: Likewise.
8593 * grub-core/kern/emu/hostdisk.c: Likewise.
8594 * grub-core/kern/emu/main.c: Likewise.
8595 * grub-core/kern/emu/misc.c: Likewise.
8596 * grub-core/kern/emu/mm.c: Likewise.
8597 * grub-core/kern/mips/arc/init.c: Likewise.
8598 * grub-core/kern/mips/loongson/init.c: Likewise.
8599 * grub-core/kern/partition.c: Likewise.
8600 * grub-core/lib/i386/halt.c: Likewise.
8601 * grub-core/lib/mips/arc/reboot.c: Likewise.
8602 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8603 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8604 * grub-core/loader/i386/xnu.c: Likewise.
8605 * grub-core/loader/multiboot.c: Likewise.
8606 * grub-core/net/bootp.c: Likewise.
8607 * grub-core/net/net.c: Likewise.
8608 * grub-core/normal/term.c: Likewise.
8609 * grub-core/partmap/bsdlabel.c: Likewise.
8610 * grub-core/parttool/msdospart.c: Likewise.
8611 * grub-core/term/gfxterm.c: Likewise.
8612 * grub-core/term/terminfo.c: Likewise.
8613 * grub-core/video/i386/pc/vbe.c: Likewise.
8614 * util/grub-menulst2cfg.c: Likewise.
8615 * util/grub-mkdevicemap.c: Likewise.
8616 * util/grub-mklayout.c: Likewise.
8617 * util/grub-mkrelpath.c: Likewise.
8618 * util/grub-script-check.c: Likewise.
8619 * util/ieee1275/grub-ofpathname.c: Likewise.
8620 * util/resolve.c: Likewise.
8622 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8624 Support %1$d syntax.
8626 * tests/printf_unit_test.c: New file.
8627 * Makefile.util.def (printf_test): New test.
8628 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8630 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8632 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8635 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8637 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8639 * grub-core/font/font.c (grub_font_load): Likewise.
8641 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8643 * util/grub-macho2img.c: Add comment concerning gettext.
8644 * grub-core/lib/legacy_parse.c: Likewise.
8646 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8648 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
8649 (grub_xvasprintf): Likewise.
8651 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8653 Add const keyword to grub_env_get and gettextize week days.
8655 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
8656 (grub_read_hook_datetime): Return const char *.
8657 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
8659 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8661 (grub_get_weekday_name): Return const char *. Call gettext.
8662 * grub-core/script/argv.c (grub_script_argv_append): Receive const
8663 char * and len as the argument. All users updated.
8664 (grub_script_argv_split_append): Receive const char *.
8665 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
8666 * include/grub/env.h (grub_env_get): Likewise.
8667 (grub_env_read_hook_t): Return const char *.
8668 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
8669 (grub_script_argv_split_append): Likewise.
8671 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8673 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
8675 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8677 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
8678 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
8680 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8682 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
8685 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8687 Fix mips compilation.
8689 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
8691 (hashes): Use in embed decoder as well (for sizes).
8692 (dec_stream_header): Fix embed decompressor logic.
8693 (dec_stream_footer): Likewise.
8695 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8697 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
8698 an error and not a fatal on unrecognised relocation types.
8700 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8702 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
8703 Issue error rather than printf on unknown arguments.
8705 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8707 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
8710 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8712 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
8715 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8717 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
8718 leftover debug printf.
8720 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8722 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
8724 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8726 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
8729 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8731 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
8733 2011-11-10 Shea Levy <slevy@tieronedesign.com>
8735 Allow all modules to perform serial IO
8737 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
8738 * include/grub/serial.h (grub_serial_port_configure): New inline
8740 (grub_serial_port_fetch): Likewise.
8741 (grub_serial_port_put): Likewise.
8742 (grub_serial_port_fini): Likewise.
8743 (grub_serial_find): New proto.
8745 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8747 Put symlink at the end of the node and fix a potential
8750 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
8751 Make symlink into an array.
8752 (set_rockridge): Set have_symlink and alloc_dirents.
8753 (grub_iso9660_read_symlink): Use new layout.
8754 (grub_iso9660_iterate_dir): Fix memory corruption.
8756 (grub_iso9660_dir): Set have_symlink.
8757 (grub_iso9660_open): Likewise.
8759 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8761 Remove local keyword.
8763 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
8764 (version_test_gt): Likewise.
8765 (version_find_latest): Likewise.
8766 (gettext_printf): Likewise.
8767 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
8769 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8771 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
8773 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8775 Fix ZFS memory and resource leaks.
8777 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
8780 (fill_vdev_info): New parameter inserted. All users updated.
8781 (check_pool_label): Likewise.
8782 (scan_disk): Likewise.
8783 (scan_devices): Close non-inserted disks.
8784 (fzap_iterate): Free l.
8785 (unmount_device): Free children descripto memory.
8787 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8789 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
8790 argument (access out of bounds).
8792 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8794 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
8797 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8799 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
8802 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8804 Fix several memory leaks.
8806 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
8807 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
8808 (grub_cpio_dir): Likewise.
8809 * grub-core/fs/fat.c (grub_fat_label): Likewise.
8810 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
8811 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
8812 (grub_romfs_label): Likewise.
8813 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
8814 (squash_unmount): New function.
8815 (grub_squash_dir): Fix memory leak.
8816 (grub_squash_open): Likewise.
8817 (grub_squash_read): Likewise.
8818 (grub_squash_mtime): Likewise.
8819 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
8820 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
8821 * util/grub-fstest.c (fstest): Likewise.
8823 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8825 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
8826 avoid accessing beyond the array.
8828 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8830 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
8832 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8836 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
8837 (GRUB_AFFS_FLAG_FFS): Removed.
8838 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
8839 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
8840 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
8841 (grub_fshelp_node): Make block 32-bit.
8842 Add block_cache and last_block_cache.
8843 (grub_affs_read_block): Fill and use block cache.
8844 (grub_affs_read_file): Removed.
8845 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
8847 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
8849 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
8851 (grub_affs_close): Free block cache.
8852 (grub_affs_read): Use grub_fshelp_read_file directly.
8854 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8856 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
8859 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
8863 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
8866 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8868 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
8870 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
8871 byteswap when needed.
8873 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8875 Fix FreeBSD compilation.
8877 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
8878 to avoid circular dependency.
8879 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
8880 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
8881 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
8883 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8885 Fix ZFS crypto error types.
8887 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
8888 (grub_gcm_decrypt): Likewise.
8889 (grub_zfs_load_key_real): Fix error code type. Handle possible error
8892 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8896 * Makefile.util.def (10_illumos): New script.
8897 * configure.ac: Set COND_HOST_ILLUMOS.
8898 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
8899 Support Illumos calls.
8900 (find_partition_start) [__sun__]: Likewise.
8901 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
8902 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
8903 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
8904 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
8906 * util/grub-probe.c (probe) [__sun__]: Do character check.
8907 * util/grub.d/10_illumos.in: New file.
8909 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8911 Support escaped commas in hostdisk.
8913 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
8914 (find_grub_drive): Use unescape_cmp.
8915 (make_device_name): Escape commas.
8917 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8919 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
8921 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8923 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
8926 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8928 Support trampoline jumps on powerpc.
8930 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
8932 (grub_dl_load_segments): Set mod->sz.
8933 (grub_dl_flush_cache): Flush whole space occupied by module, not just
8935 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
8937 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
8939 (trampoline): New struct.
8940 (trampoline_template): New const.
8941 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
8942 * include/grub/dl.h (grub_dl): Add sz element.
8943 [__powerpc__]: Follow __ia64__.
8944 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
8945 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
8946 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
8947 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
8949 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8953 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
8954 * grub-core/Makefile.core.def (zfscrypt): New module.
8955 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
8956 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
8957 it. All users updated.
8958 (grub_zfs_decrypt): New var.
8959 (grub_zfs_load_key): Likewise.
8960 (zio_checksum_functions): Add SHA256+MAC.
8961 (zio_checksum_verify): Handle incomplete comparison due to MAC.
8962 (zio_read): Handle encrypted blocks.
8963 (zap_verify): Remove incorrect check.
8964 (fzap_iterate): Handle non-standard fzap.
8965 (zap_iterate): Likewise.
8966 (zap_iterate_u64): New function.
8967 (dnode_get_fullpath): Load keys.
8968 * grub-core/fs/zfs/zfscrypt.c: New file.
8969 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
8970 (grub_crypto_ecb_encrypt): Make input const.
8971 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
8972 (grub_crypto_ecb_encrypt): Make input const.
8973 (GRUB_CIPHER_AES): New macro.
8974 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
8975 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
8976 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
8977 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
8978 prefix. All users updated.
8979 (grub_zfs_add_key): New proto.
8980 (grub_zfs_decrypt): Likewise.
8981 (grub_zfs_load_key): Likewise.
8982 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
8983 * util/grub-fstest.c (options): Add -K option.
8984 (argp_parser): Likewise.
8986 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8988 Support zle compression on ZFS.
8990 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
8991 (decomp_table): Add zle.
8992 * include/grub/zfs/zio.h (zio_compress): Add zle.
8994 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8996 Support BtrFS embedding.
8998 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
8999 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9000 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9001 * util/grub-setup.c (setup): Use fs embedding if available.
9002 Add additional sanity check.
9004 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9006 * util/grub-install.in: Fix condition for config_opt.
9008 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9010 Support third redundancy strip on raidz3.
9012 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9013 Return error on singularity. All users updated.
9014 (read_device): Don't stop on 3rd failure on raidz3.
9016 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9018 Support case-insensitive ZFS subvolumes.
9020 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9022 (zap_hash): Likewise.
9023 (name_cmp): New function.
9024 (zap_leaf_array_equal): New parameter case_insensitive.
9026 (zap_leaf_lookup): Likewise.
9027 (fzap_lookup): Likewise.
9028 (zap_lookup): Likewise.
9029 (dnode_get_path): New parameter case_insensitive. Retrieve case
9030 sensitiviness of a volume. All users updated.
9031 (dnode_get_fullpath): New parameter case_insensitive.
9033 (grub_zfs_dir): Set info.case_insensitiveness.
9035 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9037 Support second redundancy strip on raidz(2,3).
9039 * grub-core/fs/zfs/zfs.c (powx): New array.
9040 (powx_inv): Likewise.
9042 (xor_out): New function.
9044 (recovery): Likewise.
9045 (read_device): Use second redundancy strip.
9047 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9049 Use a power of generator representation of GF(256) multiplication group
9050 to save space time and complexity.
9052 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9053 (raid6_table2): Likewise.
9055 (powx_inv): Likewise.
9057 (grub_raid_block_mul): Replace with ...
9058 (grub_raid_block_mulx): ...this.
9059 (grub_raid6_init_table): Rewritten.
9060 (grub_raid6_recover): Use power of generator representation.
9062 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9064 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9065 for the right device.
9067 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9069 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9070 expected by grub-mkimage and it's more clear since there is no implicit
9073 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9075 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9077 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9079 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9081 * util/grub-mkrescue.in: Fix handling xorriso option.
9083 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9085 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9088 2011-11-03 crocket <crockabiscuit@gmail.com>
9090 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9092 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9094 XZ CRC64 and SHA256 support.
9096 * Makefile.util.def (libgrubmods): Add crc64.c.
9097 * grub-core/Makefile.core.def (crc64): New module.
9098 * grub-core/lib/crc64.c: New file.
9099 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9100 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9102 (MAX_HASH_SIZE): New define.
9103 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9104 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9105 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9106 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9107 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9108 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9109 Handle non-crc32 hashes.
9110 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9111 (dec_stream_header): Handle non-crc32 hashes.
9112 (dec_stream_footer): Likewise.
9113 (dec_block_header): Likewise.
9114 (dec_main): Likewise.
9115 (xz_dec_init): Likewise.
9116 (xz_dec_reset): Likewise.
9117 (xz_dec_end): Likewise.
9118 * util/import_gcry.py: Add CRC64 line.
9120 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9122 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9125 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9127 Make reiserfs label retrieval similar to other *_label functions.
9129 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9130 (REISERFS_MAX_LABEL_LENGTH): Removed.
9131 (REISERFS_LABEL_OFFSET): Likewise.
9132 (grub_reiserfs_label): Rewritten.
9134 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9136 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9139 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9141 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9143 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9145 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9146 drive failure on both raidz and raidz2.
9148 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9150 Fix RAIDZ(2) for >= 5 devices.
9152 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9153 asize argument. All users updated.
9155 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9159 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9160 (fill_vdev_info_real): Set ashift.
9161 (read_device): Rewrite RAIDZ part based on reverse engineering.
9163 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9165 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9166 don't report potentially unavialiable fields in debug output.
9167 (find_path): Fix double-free and memory leak.
9169 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9173 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9174 (grub_ufs_fs): Always set .label.
9176 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9180 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9181 (grub_ufs_data): New field log2_blksz.
9182 (grub_ufs_read_file): Use shifts.
9183 (grub_ufs_mount): Check block size and logarithm it.
9185 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9187 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9190 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9192 Handle symlinks and long names on tar and cpio.
9194 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9195 (ATTR_FILE): Likewise.
9196 (ATTR_DIR): Likewise.
9197 (ATTR_LNK): Likewise.
9198 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9199 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9201 (grub_cpio_mount): Zero-fill data.
9202 (handle_symlink): New function.
9203 (grub_cpio_dir): Handle symlinks.
9204 (grub_cpio_open): Likewise.
9205 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9207 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9209 Fix iso9660 filename limitations and fix memory leaks.
9211 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9212 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9214 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9216 Fix JFS file name length limitations.
9218 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9219 (grub_jfs_diropen): Fix maximum filename length.
9220 (grub_jfs_getent): Fix filename length.
9221 (grub_jfs_lookup_symlink): Fix size checks.
9223 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9225 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9228 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9230 Leverage BFS implementation to read AFS.
9232 * Makefile.util.def (libgrubmods): Add afs.c.
9233 * grub-core/Makefile.core.def (afs): New module
9234 * grub-core/fs/afs.c: New file.
9235 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9237 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9239 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9241 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9243 * grub-core/fs/bfs.c: Run indent.
9245 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9247 BFS implementation based on the specification.
9249 * grub-core/fs/bfs.c: New file.
9250 * Makefile.util.def (libgrubmods): Add bfs.c.
9251 * grub-core/Makefile.core.def (bfs): New module.
9253 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9255 * util/grub-fstest.c (cmd_cp): Clarify error message.
9256 (cmd_cmp): Likewise.
9258 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9260 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9263 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9265 Remove afs and befs because of copyright problem.
9267 * grub-core/fs/afs.c: Removed.
9268 * grub-core/fs/afs_be.c: Removed.
9269 * grub-core/fs/befs.c: Removed.
9270 * grub-core/fs/befs_be.c: Removed.
9271 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9272 * grub-core/Makefile.core.def (afs): Removed.
9275 (befs_be): Likewise.
9277 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9279 Prefer rockridge over Joliet.
9281 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9283 (set_rockridge): ... here.
9284 (grub_iso9660_mount): Check rockridge on the primary label when
9285 discovering. Ignore Joliet if Rockridge is present.
9287 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9289 Use shifts in nilfs2.
9291 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9292 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9293 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9294 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9295 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9296 (grub_nilfs2_entries_per_block): Replaced with ...
9297 (grub_nilfs2_log_entries_per_block_log): ... this.
9298 (grub_nilfs2_blocks_per_group): Replaced with ...
9299 (grub_nilfs2_blocks_per_group_log): ... this.
9300 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9301 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9302 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9303 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9304 (grub_nilfs2_palloc_entry_offset): Replaced ...
9305 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9306 (grub_nilfs2_dat_translate): Use shifts.
9307 (grub_nilfs2_read_inode): Likewise.
9308 (GRUB_MOD_INIT): Ensure that logs are correct.
9310 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9312 Use shifts in minix filesystem.
9314 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9315 (GRUB_MINIX_ZONE2SECT): Likewise.
9316 (grub_minix_data): Replace block_size with log_block_size.
9317 (grub_minix_read_file): Use shifts.
9318 (grub_minix_mount): Check block size and take a logarithm.
9320 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9322 Use shifts in squash4.
9324 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9325 (squash_mount): Check block size and take logarithm.
9326 (direct_read): Use shifts.
9328 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9330 Correct befs block counting logic.
9332 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9333 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9334 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9335 (grub_afs_read_inode): Use block_shift.
9336 (RANGE_SHIFT): New definition.
9337 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9338 unexpected conditions, use shifts and appropriate types.
9339 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9341 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9343 * grub-core/disk/raid.c (scan_devices): Check partition.
9344 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9346 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9348 Support BFS (befs) UUID.
9350 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9351 (grub_afs_small_data_element_header): New struct.
9352 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9353 (grub_afs_read_attribute) [MODE_BFS]: New function.
9354 (grub_afs_iterate_dir): Allocate for complete inode.
9355 (grub_afs_mount): Likewise.
9356 (grub_afs_uuid) [MODE_BFS]: New function.
9357 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9359 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9361 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9362 (zfs_unmount): Fix memory leak.
9364 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9366 Support NTFS reparse points.
9368 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9369 (symlink_descriptor): New struct.
9370 (grub_ntfs_read_symlink): New function.
9371 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9372 (grub_ntfs_open): Likewise.
9374 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9376 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9378 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9380 fstest xnu_uuid subcommand.
9382 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9383 grub-core/commands/xnu_uuid.c.
9384 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9385 (fstest): Handle xnu_uuid.
9386 (options): Document xnu_uuid.
9387 (argp_parser): Parse xnu_uuid.
9389 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9391 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9392 -l argument. Add newline at the end if printing.
9393 (GRUB_MOD_INIT): Document -l.
9395 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9397 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9399 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9401 ZFS multi-device and version 33 support.
9403 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9404 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9405 (grub_zfs_data): Add multidev-ice-related fields.
9406 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9407 (dva_get_offset): Make dva const.
9408 (zfs_fetch_nvlist): New function.
9409 (fill_vdev_info_real): Likewise.
9410 (fill_vdev_info): Likewise.
9411 (check_pool_label): Likewise.
9412 (scan_disk): Likewise.
9413 (scan_devices): Likewise.
9414 (read_device): Likewise.
9415 (read_dva): Likewise.
9416 (zio_read_gang): Use read_dva.
9417 (zio_read_data): Likewise.
9418 (zap_leaf_lookup): Add missing endian conversion.
9419 (zap_verify): Add missing endian conversion. All users updated.
9420 (fzap_lookup): Likewise.
9421 (fzap_iterate): Likewise.
9422 (dnode_get_path): Handle SA bonus.
9423 (nvlist_find_value): Make input const. All users updated.
9424 (unmount_device): New function.
9425 (zfs_unmount): Use unmount_device.
9426 (zfs_mount): Use scan_disk.
9427 (zfs_mtime): New function.
9428 (grub_zfs_open): Handle system attributes.
9429 (fill_fs_info): Likewise.
9430 (grub_zfs_dir): Likewise.
9431 (grub_zfs_fs): Add mtime.
9432 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9433 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9434 (SA_MTIME_OFFSET): Likewise.
9435 (SA_SYMLINK_OFFSET): Likewise.
9436 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9437 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9438 (fstest): Support zfsinfo.
9439 (argp_parser): Likewise.
9441 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9443 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9446 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9450 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9451 sharing the same block. Iterate over correct number of indices.
9452 (dnode_get_path): Handle symlinks correctly.
9454 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9456 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9458 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9462 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9463 (grub_hfsplus_btree_search): Fix types.
9464 (grub_hfsplus_label): Implement.
9466 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9468 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9470 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9472 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9474 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9476 Fix symlink handling on iso9660.
9478 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9480 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9481 (grub_iso9660_read_symlink): Moved most of code ...
9482 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9484 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9486 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9487 Use union to avoid breaking strict-aliasing rules.
9489 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9491 Support multi-extent iso files.
9493 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9495 (grub_fshelp_node): Revamp. All users updated.
9497 (read_node): New function.
9498 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9500 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9501 (get_node_size): New function.
9502 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9504 Fix memory leak on . and ..
9505 (grub_iso9660_read): Use read_node.
9506 (grub_iso9660_close): Free node.
9508 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9510 Fix tar 4G limit and handle paths containing dot.
9512 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9513 (canonicalize): New function.
9514 (grub_cpio_find_file): Use canonicalize. Store offs in
9516 (grub_cpio_dir): Use grub_disk_addr_t.
9517 (grub_cpio_open): Likewise.
9519 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9521 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9523 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9525 (grub_squash_inode): Add long_file and block_size.
9526 (grub_squash_cache_inode): New struct.
9527 (grub_squash_dirent): Make types into enum.
9528 (SQUASH_TYPE_LONG_REGULAR): New type.
9529 (grub_squash_frag_desc): Add field size.
9530 (SQUASH_BLOCK_FLAGS): New enum.
9531 (grub_squash_data): Use grub_squash_cache_inode.
9532 (grub_fshelp_node): Make ino_chunk 64-bit.
9533 (read_chunk): Minor argument change. All users updated.
9534 (squash_mount): Use correct le_to_cpu.
9535 (grub_squash_open): Handle LONG_REGULAR.
9536 (direct_read): New function.
9537 (grub_squash_read_data): Handle blocks correctly.
9539 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9541 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9543 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9545 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9547 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9549 Fix 2G limit on ZFS.
9551 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9553 (uberblock_verify): Likewise.
9554 (dmu_read): Likewise.
9555 (grub_zfs_read): Likewise. Remove invalid cast.
9557 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9559 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9560 (grub_jfs_blkno): Fix incorrect shift.
9561 (grub_jfs_read_file): Use more appropriate types.
9563 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9565 Support triple indirect on minix2 and minix3.
9567 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9568 Declare triple_indir_zone.
9569 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9572 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9576 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9577 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9578 Rename ctime to mtime. All users updated.
9579 (grub_minix_get_file_block): Fix types and double indirect computations.
9581 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9583 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9584 if no label is found.
9585 (grub_fat_iterate_dir): Fix file size type.
9586 (grub_fat_iterate_dir): Likewise.
9588 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9590 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9592 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9593 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9595 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9597 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9599 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9601 * util/import_gcry.py: Accept space between # and include.
9603 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9605 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9607 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9609 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9611 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9612 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9614 * grub-core/script/yylex.l: Add fine-grained #pragma.
9616 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9618 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9619 New inline function.
9620 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9622 (memset) [GRUB_UTIL]: Likewise.
9623 (memcmp) [GRUB_UTIL]: Likewise.
9625 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9627 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9628 inline function rather than a define.
9630 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9632 * util/grub-setup.c: Add missing include.
9634 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9636 * util/ieee1275/grub-ofpathname.c: Add missing include.
9638 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9640 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9641 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9644 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9646 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
9649 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9651 * util/grub-install.in: Add datarootdir as per automake manual
9653 * util/grub-mknetdir.in: Likewise.
9655 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9657 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
9659 * util/grub.d/10_kfreebsd.in: Likewise.
9660 * util/grub.d/10_linux.in: Likewise.
9661 * util/grub.d/10_netbsd.in: Likewise.
9662 * util/grub.d/10_windows.in: Likewise.
9663 * util/grub.d/20_linux_xen.in: Likewise.
9665 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
9667 Remove redundant grub_kernel_image_size.
9669 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
9671 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
9672 the small code. It moves it only by few bytes but simplifies the code.
9673 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
9675 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
9676 (grub_kernel_image_size): Removed.
9677 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
9678 (grub_kernel_image_size): Removed.
9679 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
9680 compiled with Apple toolchain.
9681 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
9682 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
9683 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
9684 (grub_total_module_size): Likewise.
9685 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
9687 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
9688 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
9689 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9690 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
9691 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
9692 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
9693 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
9694 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
9696 (grub_total_module_size): Removed.
9697 * util/grub-mkimage.c (image_target_desc): Remove image_size.
9698 (image_targets): Likewise.
9699 Set .compressed_size to no field on sparc.
9700 (generate_image): Remove kernel_image_size handling.
9702 2011-10-19 Szymon Janc <szymon@janc.net.pl>
9704 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
9705 NULL pointer dereference.
9707 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9709 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
9710 done with a dedicated section.
9712 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
9713 Ensure the correct position of boot_path.
9714 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
9715 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
9717 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
9718 * include/grub/boot.h: Removed. All references removed.
9719 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9721 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
9723 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9725 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
9728 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9730 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
9732 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9734 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9735 Don't add the bogus brackets.
9737 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9741 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
9742 * grub-core/Makefile.core.def (exfat): New module.
9743 * grub-core/fs/exfat.c: New file.
9744 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
9745 (GRUB_FAT_ATTR_*): Make into an enum.
9746 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
9747 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
9748 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
9749 (GRUB_FAT_MAXFILE): Removed.
9750 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
9751 (grub_current_fat_bpb_t): New type.
9752 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
9753 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
9754 (grub_fat_dir_node_t): New type.
9755 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
9756 (fat_log2) [MODE_EXFAT]: Removed.
9757 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
9758 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
9759 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
9760 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
9761 (grub_fat_label) [MODE_EXFAT]: New function.
9762 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
9763 reserved_first_sector to 0.
9765 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9767 Move grub_reboot out of the kernel.
9769 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
9770 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
9771 * grub-core/lib/efi/reboot.c: ... here.
9772 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
9773 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
9774 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
9775 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
9776 * grub-core/lib/i386/reboot_trampoline.S: ... here.
9777 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
9778 * grub-core/lib/ieee1275/reboot.c: ... here.
9779 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
9780 * grub-core/lib/mips/arc/reboot.c: ... here.
9781 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
9782 * grub-core/lib/mips/loongson/reboot.c: ...here.
9783 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
9784 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
9785 * include/grub/emu/misc.h (grub_reboot): New function declaration.
9786 * include/grub/i386/reboot.h: New file.
9787 * include/grub/mips/loongson/ec.h: Fix includes.
9788 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
9789 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
9790 * grub-core/lib/i386/reboot.c: New file.
9792 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
9794 Make grub_prefix into module to fix the arbitrary limit and save
9797 * grub-core/kern/emu/main.c (grub_prefix): Removed.
9798 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
9799 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
9800 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
9801 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
9802 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
9803 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
9804 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
9805 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9806 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
9807 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
9808 * include/grub/ia64/efi/kernel.h: Removed.
9809 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
9810 (grub_prefix): Removed.
9811 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
9812 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
9813 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
9814 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
9815 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
9816 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
9817 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
9818 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
9819 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
9820 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
9821 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
9822 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
9823 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
9824 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
9825 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
9826 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
9827 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
9828 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
9829 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
9830 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
9831 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
9832 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
9833 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
9834 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
9835 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
9836 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
9837 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
9838 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
9839 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
9841 * util/grub-mkimage.c (image_target_desc): Removed prefix and
9843 (image_targets): Likewise.
9844 (generate_image): Put prefix as a module.
9846 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9848 Replace grub_module_iterate with FOR_MODULES.
9850 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
9851 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
9852 (grub_efi_modules_addr): ...this.
9853 * grub-core/kern/efi/init.c (grub_modbase): New variable.
9854 (grub_efi_init): Set grub_modbase.
9855 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
9856 (grub_modbase): New variable.
9857 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
9858 (grub_modbase): New variable.
9859 (grub_machine_init): Set grub_modbase.
9860 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
9861 (grub_modbase): New variable.
9862 (grub_machine_init): Set grub_modbase.
9863 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
9864 (grub_modbase): New variable.
9865 (grub_machine_init): Set grub_modbase.
9866 * grub-core/kern/main.c (grub_module_iterate): Remove.
9867 (grub_modules_get_end): Use grub_modbase.
9868 (grub_load_modules): Use FOR_MODULES.
9869 (grub_load_config): Likewise.
9870 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
9871 (grub_modbase): New variable.
9872 (grub_machine_init): Set grub_modbase.
9873 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
9874 (grub_modbase): New variable.
9875 (grub_machine_init): Set grub_modbase.
9876 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
9878 (grub_modbase): New variable.
9879 (grub_machine_init): Set grub_modbase.
9880 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
9881 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
9882 (grub_module_iterate): Likewise.
9883 (grub_modbase): New variable declaration.
9884 (FOR_MODULES): New macro.
9886 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9888 * configure.ac: Check for __ctzdi2 and __ctzsi2.
9889 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
9891 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9893 Fix few obvious type discrepancies.
9895 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
9896 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
9897 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
9899 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
9900 and connected types.
9901 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
9903 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
9904 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
9905 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
9906 and connected types.
9908 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9910 Fix python 3.x incompatibilities.
9912 * gentpl.py: Put brackets around print strings.
9913 * util/import_gcry.py: Open explicitly as utf-8.
9914 Use in instead of has_key.
9916 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9918 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
9919 (GRUB_XFS_INO_AGBITS): Make into inline function.
9920 (GRUB_XFS_INO_INOINAG): Likewise.
9921 (GRUB_XFS_INO_AG): Likewise.
9922 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9923 (GRUB_XFS_EXTENT_OFFSET): Likewise.
9924 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9925 (GRUB_XFS_EXTENT_SIZE): Likewise.
9926 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
9927 (GRUB_XFS_NEXT_DIRENT): Likewise.
9928 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
9929 (grub_xfs_read_file): Fix offset type.
9931 2011-10-15 Robert Millan <rmh@gnu.org>
9933 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
9935 2011-10-15 Robert Millan <rmh@gnu.org>
9937 Fix build problem on FreeBSD and GNU/kFreeBSD.
9939 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
9941 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9943 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
9945 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
9947 (grub_hfsplus_btree_recoffset): Likewise.
9948 (grub_hfsplus_btree_recptr): Likewise.
9949 (grub_hfsplus_find_block): Likewise.
9950 (grub_hfsplus_btree_search): Likewise.
9951 (grub_hfsplus_read_block): Likewise.
9952 (grub_hfsplus_read_file): Likewise.
9953 (grub_hfsplus_mount): Likewise.
9954 (grub_hfsplus_btree_iterate_node): Likewise.
9955 (grub_hfsplus_btree_search): Likewise.
9956 (grub_hfsplus_iterate_dir): Likewise.
9957 (grub_hfsplus_read): A small code simplification.
9959 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9961 * grub-core/kern/emu/hostdisk.c
9962 (convert_system_partition_to_system_disk): Don't assume that children
9963 of mapper nodes are mapper nodes.
9965 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9967 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
9968 * include/grub/misc.h (grub_isxdigit): New function.
9969 * grub-core/video/colors.c (my_isxdigit): Removed. All users
9970 switched to grub_isxdigit.
9971 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
9972 number starting with a letter.
9974 2011-10-09 Robert Millan <rmh@gnu.org>
9976 LVM support for FreeBSD and GNU/kFreeBSD.
9978 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
9980 (LVM_DEV_MAPPER_STRING): Move from here ...
9981 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
9982 * util/getroot.c: Include `<grub/util/lvm.h>'.
9983 (grub_util_get_dev_abstraction): Enable
9984 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
9985 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
9986 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
9987 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
9989 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
9991 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
9992 when LVM abstraction is required for ${GRUB_DEVICE}.
9994 2011-10-06 Szymon Janc <szymon@janc.net.pl>
9996 Add support for LZO compression in GRUB:
9997 - import of minilzo library,
9998 - LZO decompression for btrfs,
9999 - lzop files decompression.
10001 * grub-core/io/lzopio.c: New file.
10002 * grub-core/lib/adler32.c: Likewise.
10003 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10004 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10005 * grub-core/lib/minilzo/minilzo.c: Likewise.
10006 * grub-core/lib/minilzo/minilzo.h: Likewise.
10007 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10008 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10009 grub-core/lib/minilzo/minilzo.c to common.
10010 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10011 cflags in cppflags.
10012 * grub-core/Makefile.core.def (btrfs): Likewise.
10013 * grub-core/Makefile.core.def (lzopio): New module.
10014 (adler32): Likewise.
10015 * grub-core/fs/btrfs.c: Include minilzo.h.
10016 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10017 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10018 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10019 (grub_btrfs_lzo_decompress): New function.
10020 (grub_btrfs_extent_read): Add support for LZO compression type.
10021 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10022 (GRUB_USHRT_MAX): Likewise.
10023 (GRUB_UINT_MAX): Likewise.
10024 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10025 (UINT_MAX): Likewise.
10026 (CHAR_BIT): Likewise.
10027 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10028 grub-core/lib/posix_wrap/limits.h
10029 (UCHAR_MAX): Likewise.
10030 * include/grub/file.h (grub_file_filter_id): New compression filter
10031 GRUB_FILE_FILTER_LZOPIO.
10032 * include/grub/file.h (grub_file_filter_id): Set
10033 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10034 * include/grub/types.h (grub_get_unaligned16): New function.
10035 (grub_get_unaligned32): Likewise.
10036 (grub_get_unaligned64): Likewise.
10037 * util/import_gcry.py (cryptolist): Add adler32.
10039 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10041 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10042 in perspective decreases the complexity of build system and fixes
10043 compilation right now.
10045 2011-10-01 Ales Nesrsta <starous@volny.cz>
10047 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10048 (fixed problem related to using UHCI with coreboot).
10050 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10052 * gentpl.py: Use Autogen macros so that the output template file
10053 (Makefile.tpl) size is reduced.
10055 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10057 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10060 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10062 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10063 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10065 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10067 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10070 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10072 Remove extra declaration of sleep for mingw32.
10074 * util/misc.c (sleep) [__MINGW32__]: Removed.
10075 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10077 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10079 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10081 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10083 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10084 (grub_netbsd_btinfo_bootwedge): New struct.
10085 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10087 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10089 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10091 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10094 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10096 Fix incorrect identifiers in bash-completion.
10098 * util/bash-completion.d/grub-completion.bash.in
10099 (_grub_mkpasswd-pbkdf2): Rename to ...
10100 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10101 (_grub_script-check): Rename to ...
10102 (_grub_script_check): ... this. All users updated.
10104 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10106 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10107 Return 0 if disk isn't biosdisk.
10109 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10111 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10113 * Makefile.util.def (grub-fstest): Likewise.
10115 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10117 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10118 Get sector size from disk label.
10120 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10122 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10123 */README* as well as README*.
10124 Reported by: Axel Beckert.
10126 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10128 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10129 case of less than 256 MiB of RAM.
10131 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10133 * grub-core/commands/wildcard.c (make_regex): Handle @.
10135 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10137 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10139 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10141 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10142 AC_LANG_CONFTEST macros.
10144 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10146 Add grub-fstest option to uncompress data for commands.
10148 * util/grub-fstest.c (uncompress): New var.
10149 (options): New option -u.
10151 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10153 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10154 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10156 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10158 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10159 file type was not recognized correctly (not gzip or corrupted).
10161 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10163 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10164 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10166 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10168 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10170 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10171 video_radeon_fuloong2e.
10172 * grub-core/video/radeon_fuloong2e.c: New file.
10173 * include/grub/video.h (grub_video_id_t): Add new ID
10174 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10176 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10178 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10180 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10181 that PRID matches the detected subplatform and reset the subplatform
10184 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10186 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10188 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10190 Fix PCI iterating on functions >= 4.
10192 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10193 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10195 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10196 (grub_pci_read): Fix bitmask.
10197 (grub_pci_read_word): Likewise.
10198 (grub_pci_read_byte): Likewise.
10199 (grub_pci_write): Likewise.
10200 (grub_pci_write_word): Likewise.
10201 (grub_pci_write_byte): Likewise.
10203 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10205 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10206 can still be specified in TARGET_CFLAGS)
10208 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10210 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10212 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10213 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10214 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10215 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10216 (FULOONG): Rename to ...
10217 (FULOONG2F): ... this. All users updated.
10218 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10219 (machtype_fuloong2f_str): ... this.
10220 (machtype_fuloong2e_str): New string.
10221 Check for machtype_fuloong2e_str.
10222 * grub-core/loader/mips/linux.c (loongson_machtypes)
10223 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10224 * grub-core/term/serial.c (loongson_defserial)
10225 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10226 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10227 loongson_defserial.
10228 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10230 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10231 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10232 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10233 to IMAGE_FULOONG2F_FLASH. All users updated.
10234 (image_targets): Rename images.
10235 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10237 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10239 Make enable of disk cache statistics code configurable.
10241 * configure.ac: --enable-cache-stats added.
10242 * config.h.in (DISK_CACHE_STATS): New define.
10243 * grub-core/Makefile.core.def (cacheinfo): New command.
10244 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10245 * grub-core/commands/cacheinfo.c: New file.
10246 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10247 moved to cacheinfo.c.
10248 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10250 * include/grub/disk.h: Likewise.
10252 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10254 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10255 * grub-core/Makefile.am: Likewise.
10257 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10259 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10262 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10264 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10266 (grub_jfs_lookup_symlink): Use correct starting inode.
10268 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10270 * util/grub-setup.c (main): Add missing gcry initialisation.
10272 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10274 Don't accept text modes on EFI when booting Linux.
10276 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10277 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10279 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10280 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10282 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10283 use of "/path/.." as in grub-install for EFI as well as handling
10284 symlinks correctly.
10285 Fixes Debian bug #637768.
10287 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10289 * util/grub-probe.c: Remove duplicate #include.
10291 2011-08-10 Robert Millan <rmh@gnu.org>
10293 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10295 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10297 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10298 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10300 2011-08-03 Robert Millan <rmh@gnu.org>
10302 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10303 la_array as packed.
10304 Reported by: Zachary Bedell
10306 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10308 * configure.ac: The Loongson port requires grub-mkfont due to its
10309 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10312 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10314 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10315 processing arguments (otherwise help2man fails when GRUB has not yet
10318 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10320 New script grub-mkstandalone.
10322 * Makefile.util.def (grub-mkstandalone): New script.
10323 * docs/man/grub-mkstandalone.h2m: New file.
10324 * util/grub-mkstandalone.in: Likewise.
10326 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10328 Support ATA disks with 4K sectors.
10330 * include/grub/ata.h (grub_ata): New member log_sector_size.
10331 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10332 (grub_ata_identify): Read sector size.
10333 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10335 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10337 * util/grub-install.in: Don't use uhci outside of x86.
10339 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10341 * util/grub-mkrescue.in: Add missing quotes.
10343 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10345 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10348 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10350 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10352 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10354 * include/grub/video.h: add missing EXPORT_FUND on
10355 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10357 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10359 * include/grub/mips/kernel.h: Fix define conflict.
10361 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10363 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10366 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10368 Preferred resolution detection for VBE.
10370 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10371 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10372 the Flat Panel extension, in line with the X.org VESA driver.
10373 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10375 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10376 (grub_vbe_bios_read_edid): Likewise.
10377 (grub_vbe_get_preferred_mode): Likewise.
10378 (grub_video_vbe_setup): When the mode is "auto", try to get the
10379 preferred mode from VBE, and use the largest mode that is no larger
10380 than the preferred mode (some BIOSes expose a preferred mode that is
10381 not in their mode list!). If this fails, fall back to 640x480 as a
10382 safe conservative choice.
10383 (grub_video_vbe_get_edid): New function.
10384 (grub_video_vbe_adapter): Add get_edid.
10385 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10386 (struct grub_video_adapter): Add get_edid.
10387 (grub_video_edid_checksum): Add prototype.
10388 (grub_video_edid_preferred_mode): Likewise.
10389 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10392 * grub-core/commands/videoinfo.c (print_edid): New function.
10393 (grub_cmd_videoinfo): Print EDID if available.
10395 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10396 is more appropriate on a wider range of platforms than 640x480.
10397 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10400 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10402 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10404 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10406 * po/POTFILES.in: Regenerate.
10408 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10410 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10411 incorrect memory usage.
10413 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10415 * util/grub-install.in: Source grub-mkconfig_lib.
10417 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10419 Remove getroot.c from core on emu platform.
10421 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10423 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10425 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10426 * util/getroot.c (get_win32_path): ... here.
10427 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10428 * util/getroot.c (fini_libzfs): ... here.
10429 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10430 * util/getroot.c (grub_get_libzfs_handle): ... here.
10431 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10433 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10434 * grub-core/kern/emu/misc.c
10435 (grub_make_system_path_relative_to_its_root): Moved from here...
10436 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10437 * grub-core/kern/emu/getroot.c: Moved from here ...
10438 * util/getroot.c: ... here. All users updated.
10439 * grub-core/kern/emu/raid.c: Moved from here ...
10440 * util/raid.c: ... here. All users updated.
10442 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10444 * po/POTFILES.in: Regenerate.
10446 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10448 Fix compilation on GNU/Linux.
10450 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10452 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10453 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10454 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10456 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10457 2011-07-07 Michael Gorven <michael@gorven.za.net>
10458 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10460 LUKS and GELI support.
10462 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10463 grub-core/disk/luks.c, grub-core/disk/geli.c,
10464 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10465 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10466 grub-core/lib/arg.c.
10467 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10468 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10469 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10470 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10471 (grub-bin2h): Add libgcry.a.
10472 (grub-mkimage): Likewise.
10473 (grub-mkrelpath): Likewise.
10474 (grub-script-check): Likewise.
10475 (grub-editenv): Likewise.
10476 (grub-mkpasswd-pbkdf2): Likewise.
10477 (grub-pe2elf): Likewise.
10478 (grub-fstest): Likewise.
10479 (grub-mkfont): Likewise.
10480 (grub-mkdevicemap): Likewise.
10481 (grub-probe): Likewise.
10482 (grub-ofpath): Likewise.
10483 (grub-mklayout): Likewise.
10484 (example_unit_test): Likewise.
10485 (grub-menulst2cfg): Likewise.
10486 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10487 * grub-core/Makefile.core.def (cryptodisk): New module.
10490 * grub-core/disk/AFSplitter.c: New file.
10491 * grub-core/disk/cryptodisk.c: Likewise.
10492 * grub-core/disk/geli.c: Likewise.
10493 * grub-core/disk/luks.c: Likewise.
10494 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10496 (grub_util_get_dm_abstraction): New function.
10497 (grub_util_follow_gpart_up): Likewise.
10498 (grub_util_get_geom_abstraction): Likewise.
10499 (grub_util_get_dev_abstraction): Use new functions.
10500 (grub_util_pull_device): Pull GELI and LUKS.
10501 (grub_util_get_grub_dev): Handle LUKS and GELI.
10502 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10503 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10504 (follow_geom_up): Removed.
10505 (grub_util_fd_seek): New function.
10506 (open_device): Use grub_util_fd_seek.
10507 (nread): Rename to ..
10508 (grub_util_fd_read): ... this. All users updated.
10509 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10510 (grub_crypto_cbc_decrypt): Likewise.
10511 (grub_crypto_hmac_write): Likewise.
10512 (grub_crypto_hmac_buffer): Likewise.
10513 (grub_password_get): Extend to util.
10514 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10515 New member modname.
10516 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10517 * include/grub/cryptodisk.h: New file.
10518 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10519 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10521 (grub_util_follow_gpart_up): New proto.
10522 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10523 (grub_util_fd_read): Likewise.
10524 (grub_cryptodisk_cheat_mount): Likewise.
10525 (grub_util_cryptodisk_print_uuid): Likewise.
10526 (grub_util_get_fd_sectors): Likewise.
10527 * util/grub-fstest.c (mount_crypt): New var.
10528 (fstest): Mount crypto if requested.
10529 (options): New option -C.
10530 (argp_parser): Parse -C.
10531 (main): Init and fini gcry.
10532 * util/grub-install.in: Support cryptodisk install.
10533 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10534 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10536 (prepare_grub_to_access_device): Likewise.
10537 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10538 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10539 (probe_cryptodisk_uuid): New function.
10540 (probe_abstraction): Likewise.
10541 (probe): Use new functions.
10542 * util/import_gcry.py: Create Makefile.utilgcry.def.
10543 Add modname member.
10545 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10547 Lazy device scanning.
10549 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10550 (grub-setup): Remove util/raid.c.
10551 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10552 * grub-core/disk/lvm.c (scan_depth): New variable.
10553 (grub_lvm_iterate): Rescan if necessary.
10554 (find_lv): New function based on grub_lvm_open.
10555 (grub_lvm_open): Use find_lv. Rescan on error.
10556 (is_node_readable): New function.
10557 (is_lv_readable): Likewise.
10558 (grub_lvm_scan_device): Skip already found disks.
10559 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10560 Stop if searched device is found and readable.
10561 * grub-core/disk/raid.c (inscnt): New variable.
10562 (scan_depth): Likewise.
10563 (scan_devices): New function based on grub_raid_register. Abort if
10564 looked for device is found.
10565 (grub_raid_iterate): Rescan if needed.
10566 (find_array): NEw function based on -grub_raid_open.
10567 (grub_raid_open): Use find_array and rescan.
10568 (insert_array): Set became_readable_at.
10569 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10570 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10572 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10573 (grub_util_pull_device): New function.
10574 (grub_util_get_grub_dev): Call grub_util_pull_device.
10575 * util/raid.c: Moved to ..
10576 * grub-core/kern/emu/raid.c: ... here.
10577 (grub_util_raid_getmembers): New parameter "bootable".
10578 All users updated. Support 1.x.
10579 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10581 * include/grub/disk.h (grub_disk_pull_t): New enum.
10582 (grub_disk_dev): Change iterate prototype.
10584 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10586 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10587 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10588 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10589 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10591 * include/grub/util/raid.h: Removed.
10593 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10595 * po/POTFILES.in: Regenerate.
10597 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10599 Unify sparc init with other ieee1275.
10601 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10602 instead of kern/sparc64/ieee1275/init.c.
10603 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10604 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10605 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10606 grub/machine/kernel.h.
10607 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10608 (grub_claim_heap) [__sparc__]: Use sparc version.
10609 (grub_machine_init): Moved args parsing to
10610 (grub_parse_cmdline): ...this.
10611 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10612 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10614 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10616 Move BOOTP to separate file.
10618 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10619 * grub-core/net/net.c: Move all BOOTP functions to
10620 * grub-core/net/bootp.c: ... here.
10622 Use frame interface on PXE.
10624 * grub-core/Makefile.core.def (pxecmd): Removed.
10625 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10626 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10627 * grub-core/i386/pc/pxe.c: Moved from here ...
10628 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10629 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10630 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10632 EFI network support.
10634 * grub-core/Makefile.core.def (efinet): New module.
10635 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10637 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10639 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10640 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10641 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10642 * grub-core/net/drivers/efi/efinet.c: New file.
10643 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
10644 (grub_efi_net_config): New extern var.
10646 Various cleanups and bugfixes.
10648 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
10650 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
10651 disk declared as partition.
10652 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
10654 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
10655 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
10656 (grub_debug_zalloc): Likewise.
10657 (grub_debug_realloc): Likewise.
10658 (grub_debug_memalign): Likewise.
10659 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
10660 Check that target is IPv4.
10661 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
10662 local-mac-address as fallback.
10663 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
10665 * grub-core/net/ip.c (ipchksum): Rename to ...
10666 (grub_net_ip_chksum): ... this. All users updated.
10667 (grub_net_recv_ip_packets): Special handling for DHCP.
10668 * util/grub-mkimage.c (generate_image): Zero-out aout header.
10670 Unify prefix handling
10672 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
10673 (grub_machine_get_bootlocation): ... this.
10674 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
10675 (grub_machine_get_bootlocation): ... this.
10676 (grub_prefix): New variable.
10678 (root_dev): New variable.
10680 (main): Use new variables.
10681 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
10683 (grub_machine_get_bootlocation): ... this.
10684 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
10685 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
10686 (grub_machine_get_bootlocation): ... this.
10687 (grub_machine_set_prefix): Removed.
10688 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
10689 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
10691 (grub_machine_get_bootlocation): ... this.
10692 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
10693 (grub_set_prefix_and_root): ... this. All users updated.
10694 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
10696 (grub_machine_get_bootlocation): ... this.
10697 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
10698 (grub_machine_get_bootlocation): New proto.
10699 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
10701 Less intrusive and more reliable seek on network implementation.
10703 * grub-core/kern/file.c (grub_file_net_seek): Removed.
10704 (grub_file_seek): Don't call grub_file_net_seek.
10705 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
10706 (grub_net_fs_read_real): .. this.
10707 (grub_net_seek_real): Use net->offset.
10708 (grub_net_fs_read): Seek if necessary.
10710 Unify IEEE1275 netwotk config with the other platforms.
10712 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
10714 (grub_machine_get_bootlocation): Support network.
10715 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10716 Support type and device parsing.
10717 (grub_ieee1275_get_device_type): New function.
10718 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
10720 (grub_ieee1275_net_config_real): ... this.
10721 (grub_ofnet_probecards): Removed.
10722 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
10723 * include/grub/ieee1275/ofnet.h: Removed.
10724 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
10726 (grub_ieee1275_get_device_type): New function.
10728 Unify network device closing across platforms and make more robust.
10730 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
10732 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
10734 * grub-core/net/net.c (grub_net_network_level_interface_register):
10736 (grub_net_card_unregister): Close all interfaces.
10737 (receive_packets): Don't poll if no iterfaces are registered.
10739 (grub_net_fini_hw): New function.
10740 (grub_net_restore_hw): Likewise.
10741 (fini_hnd): New variable.
10742 (GRUB_MOD_INIT): Register preboot hook.
10743 (GRUB_MOD_FINI): Run and unregister preboot hook.
10745 Poll network cards when idle.
10747 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
10748 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
10749 * grub-core/net/net.c (receive_packets): Save last poll time.
10750 (grub_net_poll_cards_idle_real): New function.
10751 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
10752 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
10753 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
10755 Rename ofnet interfaces.
10757 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
10758 (grub_ofnet_findcards): Use ofnet_%s names.
10760 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
10762 Cleanup socket opening.
10764 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
10765 (grub_net_fs_close): Likewise.
10766 (grub_net_fs_read_real): Use eof member.
10767 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
10768 (+grub_net_udp_close): New inline function.
10770 * include/grub/net/tftp.h: Moved to the top of ...
10771 * grub-core/net/tftp.c: ... here.
10772 * include/grub/net/ip.h: Moved mostly to the top of ...
10773 * grub-core/net/ip.c: ... here.
10774 * include/grub/net/ethernet.h: Moved mostly to the top of ...
10775 * grub-core/net/ethernet.c: ... here.
10777 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
10779 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
10782 * include/grub/net/ip.h (ipv4_ini): Removed.
10783 (ipv4_fini): Likewise.
10785 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
10786 (grub_net_send_ip_packets): Likewise.
10788 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10790 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
10791 grub_read_cmos prototype.
10793 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10795 VGA text support in qemu-mips
10797 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
10798 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
10799 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
10801 * grub-core/kern/i386/qemu/init.c: Renamed to ...
10802 * grub-core/kern/vga_init.c: ... this.
10803 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
10804 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
10805 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
10807 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
10808 GRUB_MACHINE_PCI_IO_BASE.
10810 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10812 MIPS qemu flash support.
10814 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
10816 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
10817 (grub_machine_init): Probe memory if its size isn't known.
10818 * util/grub-mkimage.c (image_targets): Add flash targets.
10819 (generate_image): Handle flash targets.
10821 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10823 MIPS qemu at_keyboard support.
10825 * gentpl.py (videoinkernel): Add qemu-mips.
10826 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
10827 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
10828 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
10830 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
10831 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
10832 * grub-core/term/serial.c (grub_serial_register)
10833 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
10835 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10837 CMOS support on sparc.
10839 * gentpl.py (cmos): Add powerpc and sparc.
10840 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
10842 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
10843 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
10844 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
10845 grub_set_datetime_cmos.
10846 * grub-core/lib/ieee1275/cmos.c: New file.
10847 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
10848 (find_rtc): Set no_ieee1275_rtc on error.
10849 (grub_get_datetime): Call grub_get_datetime_cmos on error.
10850 (grub_set_datetime): Call grub_set_datetime_cmos on error.
10851 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
10852 fail. Move value to argument. All users updated
10853 (grub_cmos_write): Likewise.
10854 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
10855 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
10856 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
10857 grub_get_datetime_cmos and grub_set_datetime_cmos.
10859 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10861 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
10862 sourcing grub-mkconfig_lib.
10863 * util/update-grub_lib.in: Likewise.
10864 * util/grub.d/00_header.in: Likewise.
10865 * util/grub.d/10_hurd.in: Likewise.
10866 * util/grub.d/10_kfreebsd.in: Likewise.
10867 * util/grub.d/10_linux.in: Likewise.
10868 * util/grub.d/10_netbsd.in: Likewise.
10869 * util/grub.d/10_windows.in: Likewise.
10870 * util/grub.d/20_linux_xen.in: Likewise.
10871 * util/grub.d/30_os-prober.in: Likewise.
10873 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
10875 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
10876 default_bg_color rather than black.
10877 (grub_gfxterm_fullscreen): Likewise.
10878 (grub_gfxterm_background_color_cmd): Save new background color in
10881 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10883 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
10885 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10887 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
10890 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10892 Chainloading on coreboot support.
10894 * grub-core/Makefile.core.def (chain): Add coreboot.
10895 * grub-core/loader/i386/coreboot/chainloader.c: New file.
10897 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10899 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
10902 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10904 Implement time command.
10906 * grub-core/Makefile.core.def (time): New module.
10907 * grub-core/commands/time.c: New file.
10908 * grub-core/script/parser.y: Remove "time" keyword.
10909 * grub-core/script/yylex.l: Likewise.
10911 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10913 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
10915 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10917 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
10918 when handling leftovers.
10920 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10922 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
10923 so that help2man doesn't fail.
10925 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10927 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
10928 type in pointers on sparc64.
10929 (get_card_packet): Likewise.
10931 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
10933 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
10935 (grub_cmd_videoinfo): Fetch current video mode.
10937 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10939 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
10940 because of underlying system restrictions.
10942 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10944 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
10947 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10949 Coreboot video support.
10951 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
10953 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
10954 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
10956 * grub-core/kern/i386/int.S: ... here.
10957 * grub-core/video/i386/pc/vbe.c: Updated includes.
10958 * grub-core/video/i386/pc/vga.c: Likewise.
10959 * include/grub/i386/coreboot/memory.h
10960 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
10961 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
10962 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
10963 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
10964 Disable interrupts.
10965 * include/grub/i386/pc/vga.h: Removed. All users updated.
10967 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10969 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
10970 definitions for dprintf.
10971 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
10973 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10975 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
10977 (get_card_packet): Likewise.
10979 2011-06-26 Yves Blusseau <blusseau@zetam.org>
10981 Display the path of the file when file is not found
10983 * grub-core/fs/fat.c: Display the filename when file is not found.
10984 * grub-core/fs/fshelp.c: Likewise.
10985 * grub-core/fs/hfs.c: Likewise.
10986 * grub-core/fs/jfs.c: Likewise.
10987 * grub-core/fs/minix.c: Likewise.
10988 * grub-core/fs/ufs.c: Likewise.
10989 * grub-core/fs/btrfs.c: Likewise.
10990 * grub-core/commands/i386/pc/play.c: Likewise.
10992 2011-06-26 Szymon Janc <szymon@janc.net.pl>
10994 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
10995 pointer checks before calling grub_free().
10996 * grub-core/commands/wildcard.c (match_devices): Likewise.
10997 * grub-core/commands/wildcard.c (match_files): Likewise.
10998 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
10999 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11000 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11001 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11002 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11003 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11004 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11005 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11006 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11008 2011-06-25 Patrick <p55@mailinator.com>
11010 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11012 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11014 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11015 (grub_pxe_send): Likewise.
11016 (GRUB_MOD_INIT): Fix types.
11018 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11020 * grub-core/io/xzio.c: Fix code style issues
11022 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11023 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11025 Network infrastructure.
11026 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11028 * include/grub/net/arp.h: New file.
11029 * include/grub/net/device.h: Likewise.
11030 * include/grub/net/ethernet.h: Likewise.
11031 * include/grub/net/ip.h: Likewise.
11032 * include/grub/net/netbuff.h: Likewise.
11033 * include/grub/net/tftp.h: Likewise.
11034 * include/grub/net/udp.h: Likewise.
11035 * include/grub/ieee1275/ofnet.h: Likewise.
11036 * include/grub/emu/export.h: Likewise.
11037 * include/grub/net.h: Likewise.
11038 * grub-core/net/arp.c: Likewise.
11039 * grub-core/net/ethernet.c: Likewise.
11040 * grub-core/net/ip.c: Likewise.
11041 * grub-core/net/udp.c: Likewise.
11042 * grub-core/net/tftp.c: Likewise.
11043 * grub-core/net/netbuff.c: Likewise.
11044 * grub-core/net/net.c: Likewise.
11045 * grub-core/net/drivers/emu/emunet.c: Likewise.
11046 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11047 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11049 * grub-core/Makefile.core.def (net): New module.
11052 (emunet): Likewise.
11053 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11055 * grub-core/kern/device.c (grub_net_open) : New variable.
11056 (grub_device_open): Handle network device.
11057 (grub_device_close): Likewise.
11058 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11059 (grub_grubnet_fini): Likewise.
11060 (grub_file_seek): Seek in network device.
11061 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11062 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11064 (grub_machine_fini): Call grub_grubnet_fini.
11065 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11067 (grub_ieee1275_get_aliasdevname): New function.
11068 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11069 Add unofficial Solaris network info.
11070 (grub_multiboot_make_mbi): Likewise.
11071 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11072 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11073 * include/grub/device.h (grub_fs): Removed.
11074 * include/grub/err.h (grub_err_t): Add network-related values.
11075 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11076 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11077 (grub_ieee1275_get_aliasdevname): New proto.
11078 * include/grub/net.h: Rewritten.
11080 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11082 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11085 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11087 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11088 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11089 it truncates the output.
11090 Reported by: Ximin Luo.
11092 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11094 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11096 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11098 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11099 partmap before abstraction.
11101 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11103 * util/grub-mkconfig_lib.in: Add missing quotes.
11105 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11107 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11108 old method if mountinfo would return /dev/root and /dev/root doesn't
11111 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11115 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11116 (decomp_table): Add zlib entries.
11117 (zio_read): USe 8 bits for compression function rather than 3.
11118 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11120 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11122 * grub-core/disk/ahci.c: Add missing license statements.
11123 * grub-core/fs/romfs.c: Likewise.
11124 * grub-core/lib/ia64/setjmp.S: Likewise.
11125 * grub-core/loader/i386/pc/freedos.c: Likewise.
11126 * grub-core/loader/ia64/efi/linux.c: Likewise.
11127 * grub-core/video/colors.c: Likewise.
11128 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11130 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11134 * grub-core/Makefile.core.def (ata_pthru): Removed.
11135 (ahci): New module.
11137 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11139 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11141 (grub_hdparm_do_check_powermode_cmd): Likewise.
11142 (grub_hdparm_do_smart_cmd): Likewise.
11143 (grub_hdparm_set_val_cmd): Likewise.
11144 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11145 * grub-core/disk/ahci.c: New file.
11146 * grub-core/disk/ata.c: Factor out the low-level part into ...
11147 * grub-core/disk/pata.c: ... here.
11148 * grub-core/disk/ata_pthru.c: Contents moved to ...
11149 * grub-core/disk/pata.c: ... here.
11150 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11151 (grub_scsi_iterate): Use grub_scsi_names.
11152 (grub_scsi_open): Likewise.
11153 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11154 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11155 (grub_ata_regs_t): New struct.
11156 (grub_disk_ata_pass_through_parms): Likewise.
11157 (grub_ata_device): Renamed to ...
11158 (grub_ata): ... this.
11159 (grub_ata_dev): New struct.
11160 Removed all low-level inline functions.
11161 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11162 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11163 iterate hooks and open. All users updated.
11164 * util/grub-install.in: Handle AHCI disk module.
11166 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11168 Add support for DRI and RSTn markers in JPEG files.
11170 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11171 (JPEG_MARKER_RST0): Likewise.
11172 (JPEG_MARKER_RST1): Likewise.
11173 (JPEG_MARKER_RST2): Likewise.
11174 (JPEG_MARKER_RST3): Likewise.
11175 (JPEG_MARKER_RST4): Likewise.
11176 (JPEG_MARKER_RST5): Likewise.
11177 (JPEG_MARKER_RST6): Likewise.
11178 (JPEG_MARKER_RST7): Likewise.
11179 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11180 (grub_jpeg_decode_dri): New function.
11181 (grub_jpeg_decode_sos): Move image data related part into
11182 grub_jpeg_decode_data function.
11183 (grub_jpeg_decode_data): New function.
11184 (grub_jpeg_reset): New function.
11185 (grub_jpeg_decode_jpeg): Handle new markers.
11187 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11189 * util/ieee1275/ofpath.c (check_sas): Close fd.
11190 (main): Free of_path.
11191 Reported by: David Volgyes <dvolgyes>.
11193 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11195 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11196 Reported by: David Volgyes <dvolgyes>.
11198 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11200 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11202 Reported by: David Volgyes <dvolgyes>.
11204 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11206 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11208 Reported by: David Volgyes <dvolgyes>.
11210 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11212 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11213 Prevent memory leak.
11215 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11217 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11218 (main): Close file.
11219 Reported by: David Volgyes <dvolgyes>.
11221 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11223 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11224 to continue if allocation is failed.
11226 Reported by: David Volgyes <dvolgyes>.
11228 2011-06-23 David Volgyes <dvolgyes>
11230 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11233 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11235 Fix spurious warning.
11237 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11238 (acorn_partition_map_find): Use .bin member.
11240 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11242 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11243 /dev/root as a valid device.
11245 2011-06-23 Jim Meyering <meyering@redhat.com>
11247 Avoid NULL deref in grub_device_open.
11249 * grub-core/kern/device.c (grub_device_open): Don't dereference
11250 a NULL pointer upon failed grub_env_get.
11252 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11254 Support non-512B sectors and agglomerate reads.
11256 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11257 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11258 (disk_io_guid): Removed.
11259 (make_devices): Locate solely by BlockIO.
11260 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11261 (grub_efidisk_read): Use read_blocks.
11262 (grub_efidisk_write): Use write_blocks.
11263 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11265 (get_safe_sectors): Handle non-512B sectors.
11266 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11268 (grub_biosdisk_write): Handle non-512B sectors.
11269 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11270 (grub_scsi_read): Remove special non-512B block handling (now handled
11272 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11273 and do sanity checks.
11274 (grub_disk_adjust_range): Handle non-512B sectors.
11275 (transform_sector): New function.
11276 (grub_disk_read_small): Likewise.
11277 (grub_disk_read): Rewritten.
11278 (grub_disk_write): Handle non-512B sectors.
11279 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11281 (open_device): Use log_sector_size.
11282 (grub_util_biosdisk_read): Likewise.
11283 (grub_util_biosdisk_write): Likewise.
11284 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11286 (pc_partition_map_embed): Likewise.
11287 * include/grub/disk.h (grub_disk): New field log_sector_size.
11288 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11289 (GRUB_DISK_CACHE_BITS): Increased to 6.
11290 * util/grub-fstest.c (fstest): New command testload.
11291 (argp_parser): Likewise.
11293 2011-06-16 Robert Millan <rmh@gnu.org>
11295 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11296 `ata' driver on kernel of FreeBSD 9.
11298 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11299 (get_ataraid_disk_name): New functions.
11300 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11301 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11302 get_ataraid_disk_name() and get_ada_disk_name().
11304 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11306 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11309 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11311 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11312 `ftp.gnu.org' for `alpha.gnu.org'.
11314 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11316 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11317 partitions under /dev/disk/by-id/.
11319 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11321 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11322 after ten consecutive open failures. Scanning all the way up to
11323 10000 is excessive and can cause serious performance problems in
11324 some configurations.
11325 Fixes Ubuntu bug #787461.
11327 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11329 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11332 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11333 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11335 Don't stat devices unless we have to.
11337 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11338 dir == /dev/mapper.
11339 (grub_guess_root_device): Use already known os_dev if possible.
11340 * grub-core/kern/emu/hostdisk.c
11341 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11342 if device is known to be a dm one.
11344 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11346 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11347 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11348 Reported by: Pawel Tecza.
11350 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11352 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11353 (lsefisystab): Likewise.
11355 (lsefimmap): Likewise.
11356 (hdparm): Enable on qemu-mips.
11357 (setjmp): Add ia64 nodist.
11358 (serial): Simplify tags.
11360 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11362 * Makefile.util.def (grub-ofpathname): Install manual page.
11364 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11366 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11368 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11370 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11372 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11374 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11377 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11379 Use full 64-bit division.
11381 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11382 (grub_divmod64): ... this.
11383 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11386 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11388 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11391 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11393 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11394 to avoid accidents when debugging with 'sh -x'.
11395 * grub-core/gensyminfo.sh.in: Likewise.
11396 * tests/example_scripted_test.in: Likewise.
11397 * tests/grub_cmd_regexp.in: Likewise.
11398 * tests/grub_script_blanklines.in: Likewise.
11399 * tests/grub_script_dollar.in: Likewise.
11400 * tests/grub_script_expansion.in: Likewise.
11401 * tests/grub_script_final_semicolon.in: Likewise.
11402 * tests/partmap_test.in: Likewise.
11403 * tests/util/grub-shell-tester.in: Likewise.
11404 * tests/util/grub-shell.in: Likewise.
11406 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11408 Move gfxmenu color handling to video, so that gfxterm can use it
11411 * grub-core/gfxmenu/named_colors.c: Move to ...
11412 * grub-core/video/colors.c: ... here. Rename
11413 grub_gui_get_named_color to grub_video_get_named_color.
11414 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11415 * grub-core/video/colors.c (my_isxdigit): ... here.
11416 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11418 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11419 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11421 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11423 * include/grub/gui.h (grub_gui_color_t): Move to ...
11424 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11425 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11426 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11427 * include/grub/gui.h (grub_gui_map_color): Move to ...
11428 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11429 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11431 * include/grub/video.h (grub_video_get_named_color): ... here.
11432 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11433 * include/grub/video.h (grub_video_parse_color): ... here.
11435 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11437 (gfxmenu): Remove gfxmenu/named_colors.c.
11438 (video) [videomodules]: Add video/colors.c.
11440 Add a background_color command.
11442 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11444 (GRUB_MOD_INIT): Register background_color command.
11445 (GRUB_MOD_FINI): Unregister background_color command.
11446 (redraw_screen_rect): Allow blend/replace of text layer to be
11447 controlled independently from whether there is a background bitmap.
11448 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11451 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11453 Patch BPB in ntldr and chainloader --bpb.
11455 * grub-core/fs/fat.c: Include grub/fat.h.
11456 (grub_fat_bpb): Moved to ...
11457 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11458 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11460 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11462 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11464 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11466 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11467 (GRUB_MOD_INIT): Show --bpb.
11468 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11469 * grub-core/normal/main.c (features): New variable.
11470 (GRUB_MOD_INIT): Set feature_* variables.
11471 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11473 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11475 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11477 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11480 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11482 FreeDOS direct loading support.
11484 * docs/grub.texi (Supported OS): Add FreeDOS.
11485 * grub-core/Makefile.core.def (freedos): New module.
11486 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11488 (grub_relocator16_boot): Handle %ebx.
11489 * grub-core/lib/i386/relocator16.S: Likewise.
11490 * grub-core/loader/i386/pc/freedos.c: New file.
11492 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11494 Long Linux command line support.
11496 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11497 (maximal_cmdline_size): New variable.
11498 (allocate_pages): Use maximal_cmdline_size.
11499 (grub_cmd_linux): Set and use maximal_cmdline_size.
11500 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11501 (allocate_pages): Use maximal_cmdline_size.
11502 (grub_cmd_linux): Set and use maximal_cmdline_size.
11503 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11504 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11507 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11508 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11510 Improve devmapper support
11512 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11513 (grub_util_is_lvm): New function.
11514 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11515 than lvm if not dmraid.
11516 Handle mapped md nodes.
11517 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11518 (grub_util_device_is_mapped): ... this. Make always available. All users
11520 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11521 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11523 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11525 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11527 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11529 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11530 * grub-core/modinfo.sh.in: New file.
11531 * grub-core/Makefile.core.def (modinfo.sh): New script.
11532 * util/grub-mknetdir.in: Use modinfo.sh.
11533 * util/grub-mkrescue.in: Likewise.
11535 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11537 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11538 Fix potential usage of Elf32 instead of Elf64 when compiling on
11539 32-bit architecture. Add endianness macros while on it.
11541 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11543 Use mipsel- rather than mips- in directories involving mipsel ports to
11544 allow both endiannesses coexist.
11546 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11547 mips. All conditions adjusted.
11548 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11550 * util/grub-install.in: Adjust conditions to take renaming into account.
11551 * util/grub-mkimage.c (image_targets): Likewise. New target
11552 mips-qemu_mips-elf for bigendian mips.
11554 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11556 Avoid unnecessary copying on MIPS.
11558 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11559 early if src == dest.
11560 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11561 compression is none.
11563 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11565 Reduce memory footprint on SGI by putting modules before the kernel
11566 as opposed to after.
11568 * grub-core/Makefile.core.def (kernel): Increase linking address.
11569 (none_decompress): Likewise.
11570 (xz_decompress): Likewise.
11571 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11573 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11575 (grub_arch_modules_addr): New function.
11576 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11577 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11578 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11580 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11581 (grub_total_modules_size): ... this. Make global.
11582 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11583 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11585 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11586 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11587 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11588 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11589 * util/grub-mkimage.c (image_target_desc): New flag
11590 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11591 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11592 (generate_image): Handle images with modules before kernel.
11594 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11596 Prevent potential loss of memory map by overwrite on qemu-mips.
11598 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11599 Save ram size in $s4.
11600 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11601 All users changed to grub_arch_memsize.
11602 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11604 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11605 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11606 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11609 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11611 * .bzrignore: Remove grub-dumpbios.
11613 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11615 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11616 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11617 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11618 existing options which append).
11619 * docs/grub.texi (Simple configuration): Document new options.
11620 Reported by: Ian Jackson. Fixes Debian bug #617538.
11622 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11624 * util/grub-fstest.c (cmd_cat): New function.
11625 (fstest): Handle CMD_CAT.
11626 (options): Add cat.
11627 (argp_parser): Handle cat.
11629 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11631 * Makefile.util.def (grub-bin2h): Don't install.
11632 * docs/man/grub-bin2h.h2m: Remove.
11634 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11636 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11639 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11641 Reenable qemu-mips port.
11643 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
11644 Fix small arc bug while on it.
11645 * gentpl.py: Handle qemu_mips.
11646 * grub-core/Makefile.am: Likewise.
11647 * grub-core/Makefile.core.def: Likewise.
11648 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
11649 inappropriate includes.
11650 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
11651 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
11652 * grub-core/kern/main.c (grub_modules_get_end)
11653 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
11654 * grub-core/kern/mips/qemu-mips: Moved to ..
11655 * grub-core/kern/mips/qemu_mips: ... this.
11656 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
11657 (grub_machine_init): Call terminfo_init and serial_init.
11658 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
11659 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11661 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
11663 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
11664 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
11665 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
11666 * include/grub/mips/qemu_mips/cmos.h: New file.
11667 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
11668 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
11670 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
11671 Use correct mips-style address.
11672 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
11673 (GRUB_TICKS_PER_SECOND): Removed.
11674 (grub_get_rtc): Likewise.
11675 (grub_cpu_idle): Likewise.
11676 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
11678 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
11679 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
11680 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
11681 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
11682 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11683 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11684 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
11685 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
11687 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11691 * Makefile.util.def (libgrubmods.a): Add dvh.c.
11692 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
11694 * configure.ac: New target mips-arc.
11695 * gentpl.py: Likewise.
11696 * grub-core/Makefile.am: Likewise.
11697 * grub-core/Makefile.core.def: Likewise.
11698 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
11699 (none_decompress): Likewise.
11700 (lsdev): New module.
11701 (datetime): Use lib/arc/datetime.c on ARC.
11702 (part_dvh): New module.
11703 * grub-core/commands/arc/lsdev.c: New file.
11704 * grub-core/disk/arc/arcdisk.c: Likewise.
11705 * grub-core/kern/mips/arc/init.c: Likewise.
11706 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
11708 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
11710 (grub_arch_dl_relocate_symbols): Likewise.
11711 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
11712 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
11713 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
11715 * grub-core/lib/arc/datetime.c: New file.
11716 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
11717 pci.h on non-loongson.
11718 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
11719 (grub_linux_boot): Set unused registers to 0.
11720 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
11721 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
11722 * grub-core/mmap/mips/uppermem.c: ...here.
11723 * grub-core/partmap/dvh.c: New file.
11724 * grub-core/term/arc/console.c: Likewise.
11725 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
11726 (grub_terminfo_set_current): Add terminal "arc".
11727 (grub_terminfo_readkey): Support ARC sequences.
11728 * include/grub/arc/arc.h: New file.
11729 * include/grub/arc/console.h: Likewise.
11730 * include/grub/disk.h (grub_disk_dev_id): Add
11731 GRUB_DISK_DEVICE_ARCDISK_ID.
11732 * include/grub/mips/arc/kernel.h: New file.
11733 * include/grub/mips/arc/memory.h: Likewise.
11734 * include/grub/mips/arc/time.h: Likewise.
11735 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
11736 * include/grub/mips/kernel.h (grub_halt): ... here.
11737 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
11739 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
11740 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
11741 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
11742 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
11744 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
11746 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
11747 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
11748 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
11749 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
11750 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
11751 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
11752 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
11753 (grub_phys_addr_t): Moved from here ...
11754 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
11755 (grub_vtop): Moved from here ...
11756 * include/grub/mips/memory.h (grub_vtop): ... here.
11757 (grub_map_memory): Moved from here ...
11758 * include/grub/mips/memory.h (grub_map_memory): ... here.
11759 (grub_unmap_memory): Moved from here ...
11760 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
11761 (grub_machine_mmap_iterate): Moved from here ...
11762 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
11763 (grub_mmap_get_lower): Moved from here ...
11764 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
11765 (grub_mmap_get_upper): Moved from here ...
11766 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
11767 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11769 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11770 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
11772 * include/grub/mips/time.h (grub_get_rtc): ... here.
11773 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11775 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11776 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
11778 * include/grub/mips/time.h (grub_cpu_idle): ... here.
11779 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
11781 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
11782 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
11783 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
11784 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
11785 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11786 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11787 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
11788 (GRUB_MACHINE_LINK_ADDR): Likewise.
11789 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
11791 * util/grub-install.in: Run dvhtool on ARC.
11792 * util/grub-mkimage.c (image_targets): Add mips-arc.
11793 (generate_image): Handle ECOFF output for mips-arc.
11795 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11797 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
11800 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11802 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
11803 after enabling port.
11805 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11807 Skip incorrect USB devices.
11809 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
11811 * include/grub/usb.h (grub_usb_err_t): New enum value
11812 GRUB_USB_ERR_BADDEVICE.
11814 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11816 Fuloong video init support.
11818 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
11820 (grub_vga_read_arx): New function.
11821 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
11823 (framebuffer): New members io, mmioptr and mmiobase.
11824 (read_sis_cmd): New function.
11825 (write_sis_cmd): Likewise.
11826 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
11827 rather than 640x400.
11828 * grub-core/video/sis315_init.c: New file.
11830 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11832 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
11834 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
11835 to grub_dl_register_symbol.
11837 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11839 Fix compilation errors.
11841 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
11842 potentially unused.
11843 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
11844 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
11845 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
11846 to loongson machines.
11848 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11850 Several FS mtime support.
11852 * grub-core/fs/affs.c (grub_affs_time): New struct.
11853 (grub_affs_file): New field mtime.
11854 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
11855 type. Removed 'size'. New field 'di'. All users updated.
11856 (grub_affs_mount): Simplify checsum checking.
11857 (grub_affs_iterate_dir): New helper grub_affs_create_node.
11858 (grub_affs_dir): Handle mtime.
11859 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
11860 (grub_cpio_dir): Likewise.
11861 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
11862 (grub_hfs_filerec): New field mtime.
11863 (grub_hfs_dir): Handle mtime.
11864 (grub_hfs_mtime): New function.
11865 (grub_hfs_fs): Register grub_hfs_mtime.
11866 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
11867 (grub_iso9660_dir): New field mtime.
11868 (grub_fshelp_node): New field dirent.
11869 (iso9660_to_unixtime): New function.
11870 (iso9660_to_unixtime2): Likewise.
11871 (grub_iso9660_read_symlink): Use node->dirent.
11872 (grub_iso9660_iterate_dir): Likewise.
11873 (grub_iso9660_dir): Set mtime.
11874 (grub_iso9660_mtime): New function.
11875 (grub_iso9660_fs): Register grub_iso9660_mtime.
11876 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
11877 (grub_jfs_inode): New fields atime, ctime and mtime.
11878 (grub_jfs_dir): Set mtime.
11879 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11880 * grub-core/fs/ntfs.c (list_file): Set mtime.
11881 (grub_ntfs_dir): Likewise.
11882 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
11883 (grub_reiserfs_iterate_dir): Set mtime.
11884 (grub_reiserfs_dir): Likewise.
11885 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
11886 (grub_fshelp_node): Likewise.
11887 (grub_sfs_iterate_dir): Set mtime.
11888 (grub_sfs_dir): Likewise.
11889 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
11890 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
11891 (grub_xfs_inode): New fields atime, mtime, ctime.
11892 (grub_xfs_dir): Set mtime.
11893 * include/grub/datetime.h (grub_datetime2unixtime): New function.
11894 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
11895 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
11897 Support UDF symlinks.
11899 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
11900 (grub_ufs_read_symlink): New function. All users updated.
11902 Check amiga partmap checksum.
11904 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
11905 (grub_amiga_partition): Likewise.
11906 (amiga_partition_map_checksum): New function.
11907 (amiga_partition_map_iterate): Check checksum.
11909 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11913 * Makefile.util.def (libgrubmods.a): Add romfs.
11914 * grub-core/Makefile.core.def (romfs): New module.
11915 * grub-core/fs/romfs.c: New file.
11917 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11919 Squashfs v4 support.
11921 * Makefile.util.def (libgrubmods.a): Add squash4.
11922 * grub-core/Makefile.core.def (squash4): New module.
11923 * grub-core/fs/squash4.c: New file.
11924 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
11925 disk_input_start, disk_input.
11926 (get_byte): Handle disk_input.
11927 (grub_zlib_disk_read): New function.
11928 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
11930 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11931 2011-05-15 Feiran Zheng <famcool@gmail.com>
11933 * Makefile.util.def (libgrubmods.a): Add minix3.
11934 * grub-core/Makefile.core.def (minix3): New module.
11935 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
11936 (GRUB_MINIX_BSIZE): Removed.
11937 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
11938 (grub_minix_ino_t): New type.
11939 (grub_minix_le_to_cpu_ino): New macro.
11940 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
11941 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
11942 (grub_minix_data): New field block_size.
11943 (grub_minix_read_file): Handle 64-bit correctly.
11944 * grub-core/fs/minix3.c: New file.
11946 2011-05-15 Tristan Gingold <gingold@free.fr>
11947 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
11948 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11952 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
11953 * configure.ac: Add ia64-efi target.
11954 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
11955 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
11956 * gentpl.py: Add ia64_efi platform.
11957 Rename x86_efi to efi and Add ia64-efi. All users updated.
11958 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
11959 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
11960 Remove kern/generic/rtc_get_time_ms.c on EFI.
11961 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
11962 kern/ia64/dl_helper.c on ia64-efi.
11963 Add kern/emu/cache.c on emu.
11964 (linux): Use on loader/ia64/efi/linux.c on ia64.
11965 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
11966 whether symbol is a function.
11967 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
11968 (grub_symbol): New field 'isfunc'.
11969 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
11970 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
11971 (grub_dl_load_segments): Place all sections into the same region.
11972 [__ia64__]: Create trampolines and got.
11973 [GRUB_MACHINE_EMU]: Call mprotect.
11974 (grub_dl_resolve_symbols): Resolve symbol type as well.
11975 [__ia64__]: Create function descriptors.
11976 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
11977 (grub_rtc_get_time_ms): ... this. Expressions simplified.
11978 (grub_get_rtc): New function.
11979 * grub-core/kern/emu/cache.c [__ia64__]: New file.
11980 * grub-core/kern/emu/cache.S: Renamed to ...
11981 * grub-core/kern/emu/cache_s.S: ... this.
11982 [__ia64__]: Add a nop.
11983 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
11984 [__ia64__]: New function.
11985 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
11986 * grub-core/kern/ia64/dl.c: New file.
11987 * grub-core/kern/ia64/dl_helper.c: Likewise.
11988 * grub-core/kern/ia64/efi/init.c: New file.
11989 * grub-core/kern/ia64/efi/startup.S: Likewise.
11990 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
11991 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
11992 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
11993 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
11994 * grub-core/loader/ia64/efi/linux.c: New file.
11995 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
11996 (GRUB_MOD_DEP): Likewise.
11997 (grub_dl) [__ia64__]: New fields got and tramp.
11998 (grub_dl): New field 'base'.
11999 (grub_dl_register_symbol): New argument isfunc. All users updated.
12000 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12001 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12002 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12003 (grub_ia64_dl_get_tramp_got_size): New proto.
12004 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12005 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12006 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12007 * include/grub/efi/api.h: Skip call wrappers on ia64.
12008 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12009 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12010 * include/grub/elf.h (ELF_ST_INFO): New definition.
12011 * include/grub/ia64/efi/kernel.h: New file.
12012 * include/grub/ia64/efi/memory.h: Likewise.
12013 * include/grub/ia64/efi/time.h: Likewise.
12014 * include/grub/ia64/kernel.h: Likewise.
12015 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12016 * include/grub/ia64/time.h: New file.
12017 * include/grub/ia64/types.h: Likewise.
12018 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12019 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12021 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12022 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12023 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12024 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12026 (EFI64_HEADER_SIZE): New definition. All users updated.
12027 (image_targets): Add ia64-efi.
12028 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12029 jumpers_addr. All users updated.
12030 Create function descriptors.
12031 (count_funcs): New function.
12032 (unaligned_uint32): New struct.
12033 (MASK20): New definition.
12034 (MASK19): Likewise.
12035 (MASKF21): Likewise.
12036 (add_value_to_slot_20b): New function.
12037 (add_value_to_slot_21_real): Likewise.
12038 (add_value_to_slot_21): Likewise.
12039 (ia64_kernel_trampoline): New struct.
12040 (nopm): New variable.
12042 (make_trampoline): New function.
12043 (relocate_addresses): Handle ia64.
12044 (make_reloc_section): Likewise.
12045 (load_image): Likewise.
12047 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12049 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12050 warning. Move variables before code while on it.
12052 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12056 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12057 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12058 * grub-core/boot/mips/loongson/fuloong.S: New file.
12059 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12060 Explicitly init CS5536.
12061 [FULOONG]: Don't use serial until CS5536 is available.
12062 Set GPIO based on dumps.
12063 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12064 [FULOONG]: Handle GPIO and memory controller differences.
12065 Parse machine type in $a2.
12066 * grub-core/boot/mips/startup_raw.S: Determine and save the
12068 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12069 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12070 init on architecture type.
12071 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12072 SIS315E. Don't init at_keyboard on fuloong.
12073 (grub_halt): Support Fuloong.
12074 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12075 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12076 (loongson_machtypes): New array.
12077 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12079 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12080 config. All users updated. Handle CS5536 serial.
12081 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12082 default port on machine type. Register serial as inactive.
12083 * grub-core/video/sis315pro.c: New file.
12084 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12086 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12087 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12088 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12089 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12090 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12091 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12093 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12094 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12096 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12097 (grub_arch_machine): New extern var.
12098 * include/grub/mips/loongson/serial.h
12099 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12100 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12101 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12102 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12103 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12104 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12105 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12106 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12107 * include/grub/term.h (grub_term_register_input_inactive): New inline
12109 (grub_term_register_output_inactive): Likewise.
12110 * include/grub/video.h (grub_video_driver_id): New value
12111 GRUB_VIDEO_DRIVER_SIS315PRO.
12112 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12113 New field "names". All users updated.
12114 New field value IMAGE_FULOONG_FLASH.
12115 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12117 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12119 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12120 and add some clarification.
12122 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12124 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12125 platforms if kernel is compressed.
12127 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12129 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12130 unused modules since currently referrence counter isn't reliable and
12131 there isn't much memory to recover there anyway.
12133 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12135 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12136 rather than resetting it to allow modules to reference themselves
12139 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12141 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12142 counter on dependencies since grub_dl_unref already handles this.
12144 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12146 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12147 on error if not already done.
12149 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12151 Fix few potential memory misusage.
12153 * grub-core/font/font.c (load_font_index): Don't free char_index to
12155 (grub_font_load): Zero-fill font at alloc for safety.
12156 Close file on error.
12157 (free_font): Free bmp_idx.
12159 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12161 * docs/grub.texi (Installation): Fix several outdated claims.
12163 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12165 Handle module_license on windows.
12167 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12169 (insert_string): Make argument const char * instead of char *.
12170 (write_section_data): Handle long section names.
12171 Handle module_license.
12173 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12175 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12176 handle class-free menuentries.
12177 (grub_normal_add_menu_entry): Add a check to be sure.
12179 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12181 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12184 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12186 * configure.ac: Bump version to 1.99.
12188 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12190 Give ATA device a bit more time on first try in order to allow disks
12193 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12194 if dev->present is 1. Reset dev->present on failure.
12195 (grub_ata_device_initialize): Set dev->present to 1.
12196 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12197 (grub_ata_device): New member 'present'.
12199 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12201 * util/grub-mkimage.c (generate_image): Update hash.
12203 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12205 Flush caches on DMA memory.
12207 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12208 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12209 (grub_dma_free): Likewise.
12210 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12212 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12214 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12215 to avoid asm treating ld and sd as macros.
12217 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12219 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12222 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12224 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12225 grub_decompress_core since later would fail if grub_decompress_core
12228 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12230 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12231 R_MIPS_JALR since it's used by newer compiler.
12233 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12235 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12237 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12239 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12240 file_path to 0 for surety.
12241 (grub_chainloader_boot): Set exit_data to NULL.
12242 Unset the loader once done.
12243 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12245 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12247 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12248 unknown key into a dprintf.
12250 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12252 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12253 on first non-existant partition.
12255 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12257 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12259 Reported by: Mark Korenberg.
12261 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12263 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12266 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12268 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12269 before closing to ensure that it will be readable by grub-setup.
12271 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12273 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12274 (devpath_1): Use MAKE_PIWG_PATH.
12275 (devpath_2): Likewise.
12276 (devpath_3): Likewise.
12277 (devpath_4): Likewise.
12278 (devpath_5): Likewise.
12279 (devpath_6): Likewise.
12281 The appleldr.mod was checked that to be binary identical to previous
12284 2011-05-05 Zach <mikezackles>
12286 Support 2010 Macbooks.
12288 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12289 (devs): Add devpath_6.
12291 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12293 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12294 /dev/random. /dev/urandom is good enough for our purposes (salting).
12296 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12298 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12300 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12302 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12305 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12307 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12308 and not 0 on failure.
12310 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12312 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12313 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12314 disk; otherwise grub_fs_probe will not fall back to the next
12316 (grub_pxefs_open): Likewise, for consistency.
12317 Reported and tested by: Ezekiel Grave.
12319 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12321 * tests/partmap_test.in: Don't hardcode path to parted.
12322 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12324 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12326 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12327 of `ls' to find out which devices are available.
12329 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12331 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12332 than source address for efi mmap buffer.
12334 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12336 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12337 wrong action on non-detecting the magic.
12339 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12341 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12342 already supplied by another part of the module (fixes compilation on
12345 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12347 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12348 match the one used by mdadm.
12350 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12352 * po/README: Add instructions for creating po/LINGUAS.
12354 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12356 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12359 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12360 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12361 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12362 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12363 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12364 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12365 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12366 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12367 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12368 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12369 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12370 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12371 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12372 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12373 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12374 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12375 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12376 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12377 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12378 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12379 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12380 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12382 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12384 * grub-core/kern/emu/getroot.c
12385 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12386 test that was incorrectly reintroduced in r3214.
12387 Reported by: Ian Dall. Fixes Savannah bug #33133.
12389 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12391 Fix stack pointer handling in 16-bit relocator.
12393 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12394 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12395 Fixes Ubuntu bug #683904.
12397 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12399 * configure.ac: Bump version to 1.99~rc2.
12401 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12403 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12404 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12405 * grub-core/lib/x86_64/setjmp.S: Likewise.
12406 * grub-core/lib/mips/setjmp.S: Likewise.
12407 * grub-core/lib/powerpc/setjmp.S: Likewise.
12408 * grub-core/lib/sparc64/setjmp.S: Likewise.
12410 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12412 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12413 * grub-core/lib/efi/datetime.c: Likewise.
12415 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12417 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12419 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12420 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12421 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12423 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12425 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12427 (grub_gfxterm_term_init): Likewise.
12429 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12431 Take into account the decorations the computing menu entry width.
12433 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12434 (grub_gfxmenu_create_box): Register get_border_width.
12435 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12437 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12440 2011-04-18 Endres Puschner <code@e7p.de>
12442 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12443 Don't skip first class.
12445 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12447 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12449 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12451 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12453 Complete 64-bit division support.
12455 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12456 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12457 * include/grub/misc.h (grub_divmod64): Rename to ...
12458 (grub_divmod64_full): ... this.
12459 (grub_divmod64): New inline function.
12461 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12463 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12465 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12467 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12468 performing the necessary test.
12470 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12472 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12473 (kfreebsd.elf): Likewise.
12474 (pc-chainloader.elf): Likewise.
12475 (ntldr.elf): Likewise.
12477 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12479 Identify RAID by its UUID rather than (guessed) name.
12481 * grub-core/disk/raid.c (ascii2hex): New function.
12482 (grub_raid_open): Accept mduuid/%s specification.
12483 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12484 (get_mdadm_uuid): ... this.
12485 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12487 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12489 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12492 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12494 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12496 * util/grub.d/20_linux_xen.in: Likewise.
12498 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12500 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12501 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12503 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12504 Build a list of relevant visible mounts using the mnt_id and
12505 parent_mnt_id fields, and then scan that list at the end.
12507 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12509 * docs/grub.texi (normal): New section.
12510 (normal_exit): New section.
12511 (Embedded configuration): Add reference to normal.
12512 (GRUB only offers a rescue shell): Likewise.
12513 * docs/grub-dev.texi (Error Handling): Fix typo.
12515 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12517 * NEWS: Drop obsolete entry about probe-only btrfs support.
12519 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12521 * util/import_gcry.py: Fix typo.
12523 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12525 * NEWS: Add btrfs support.
12527 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12528 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12530 BtrFS support. Written by me (Vladimir) with important bugfixes and
12531 even more important testing by Colin.
12533 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12534 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12535 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12536 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12537 mem_input_off and mem_input. All users updated to accept in-RAM input.
12538 (gzio_seek): New function.
12539 (test_zlib_header): Likewise.
12540 (grub_gzio_read): Likewise.
12541 (grub_zlib_decompress): Likewise.
12542 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12543 Accept partial and non-virtual mounts.
12544 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12545 avoid receiving /dev/dm-X as device.
12546 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12547 Handle bind and partial mounts.
12548 * grub-core/lib/crc.c: New file.
12549 * include/grub/deflate.h: Likewise.
12550 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12552 * include/grub/lib/crc.h: New file.
12554 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12556 Implement automatic module license checking according to new GNU
12559 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12560 (grub_dl_load_core): Use grub_dl_check_license.
12561 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12562 (GRUB_MOD_LICENSE): Likewise.
12563 (GRUB_MOD_DUAL_LICENSE): Likewise.
12564 All modules updated.
12566 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12568 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12569 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12571 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12573 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12575 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12577 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12579 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12582 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12584 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12585 parenthesis in the middle of the filename.
12587 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12589 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12590 rather than trying to put initrd way too high.
12591 Reported by: Ryan Lortie <desrt@desrt.ca>
12593 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12595 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12596 improperly removed string.
12598 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12600 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12602 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12603 (open_device) Likewise.
12604 (grub_util_biosdisk_close): Likewise.
12605 Reported by: Mark Korenberg.
12607 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12609 * util/grub-mkconfig_lib.in: Add missing quotes.
12611 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12613 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12616 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12618 Dynamically count the number of lines for the lower banner.
12620 * grub-core/normal/menu_entry.c (per_term_screen): New member
12622 (print_down): Use num_entries.
12623 (update_screen): Likewise.
12624 (grub_menu_entry_run): Set num_entries.
12625 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12627 (grub_print_message_indented): Move real part to ...
12628 (grub_print_message_indented_real): ... here. Additional argument
12630 (draw_border): Additional argument num_entries.
12631 (print_message): Additional argument dry_run.
12632 (print_entries): Receive menu viewer data.
12633 (grub_menu_init_page): New argment num_entries.
12634 (menu_text_set_chosen_entry): Use num_entries.
12635 (grub_menu_try_text): Likewise.
12636 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12638 (grub_ucs4_count_lines): New function.
12639 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12640 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12641 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12642 (grub_term_border_height): Likewise.
12643 (grub_term_num_entries): Likewise.
12645 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12647 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
12648 Remove now unused string.
12650 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12652 * docs/grub-dev.texi (Finding your way around): Update for 1.99
12654 (Getting started): GRUB is developed in Bazaar now, not Subversion.
12656 (Comment): Fix typo.
12657 (Getting started): General copy-editing.
12658 (Typical Development Experience): Likewise.
12659 (Error Handling): Likewise.
12660 (Video API): Likewise.
12662 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12664 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
12667 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12669 * util/grub-mkimage.c (main): Handle special naming of yeeloong
12672 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12674 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
12675 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
12678 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12680 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
12681 grub_strcpy since the lines aren't necessarily 0-terminated.
12683 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12685 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
12688 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12690 * grub-core/commands/probe.c (options): Argument to set isn't optional.
12691 (GRUB_MOD_INIT): DEVICE isn't optional.
12693 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12695 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
12696 word on new line if it's too long anyway. Fixes a hang.
12698 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12700 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
12702 * util/grub-setup.c (main): Reuse md device name if available.
12703 * util/raid.c (grub_util_raid_getmembers): Receive device name and
12704 not GRUB name as argument.
12705 Based on patch by: Florian Wagner <fwagner>.
12707 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12709 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12710 Place mbi on low memory for better compatibility.
12712 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12714 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
12716 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12717 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12719 * autogen.sh: Ensure that collate and ctype locale is C.
12720 * conf/Makefile.common: Likewise.
12722 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12724 * grub-core/normal/menu.c: Add missing include.
12726 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12728 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
12730 2011-04-08 Martin Zuther <mzuther@mzuther.de>
12732 * util/grub-mkconfig.in: Ignore emacsen backup.
12734 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12736 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
12738 (grub_util_biosdisk_close): Likewise.
12740 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12742 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
12743 const attribute and use grub_isdigit.
12745 2011-04-06 Andrey <dev_null@ukr.net>
12747 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
12750 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12752 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
12753 useful grub_dprintf's.
12755 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12757 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
12759 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12761 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
12763 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12765 Output errors if theme loading failed.
12767 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
12768 grub_gfxterm_fullscreen on error paths to ...
12769 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
12770 theme loading error.
12772 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12774 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
12775 space for older compilers.
12776 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12778 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12780 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
12781 and report them as not RAID members since they are useless for GRUB.
12782 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12784 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12786 Increase LVM implementation robustness in order not to crash on
12787 configurations like pvmove. Previously code assumed that in some places
12788 only lvs or only pvs are used whereas it seems that they are used
12791 * grub-core/disk/lvm.c (read_node): New function.
12792 (read_lv): Use read_node.
12793 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
12794 Match volumes only at the end when all lvs are found. Take both
12795 pvs (first) and lvs (second) into account.
12796 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
12797 mirror_* into node_*. All users updated.
12798 (grub_lvm_stripe): Merge this ...
12799 (grub_lvm_mirror): ... and this ...
12800 (grub_lvm_node): ... into this. All users updated.
12802 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12804 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
12805 of function to allow further scanning for LVMs.
12807 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12809 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
12810 on failed seek as it breaks open fd reusage.
12812 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12814 * util/grub-install.in: Add a recommendation to use --recheck before
12817 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12819 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
12822 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12824 GRUB developper manual based on existing Internals section and
12825 contributions by the various authors with active copyright assignment.
12827 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
12828 * docs/font_char_metrics.png: New file.
12829 * docs/font_char_metrics.txt: Likewise.
12830 * docs/grub-dev.texi: Likewise.
12831 * docs/grub.texi (Internals): Move from here ...
12832 * docs/grub-dev.texi: ... here.
12834 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12836 Store the loopback device as data on loopback grub_disk structures,
12837 rather than the file it points to. This fixes use of freed memory
12838 if an existing loopback device is replaced.
12840 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
12841 disk->data, not dev->file.
12842 (grub_loopback_read): Adjust file assignment to match.
12843 Fixes Ubuntu bug #742967.
12845 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12847 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
12848 when replacing an existing device.
12850 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
12852 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
12853 memory corruptions.
12855 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
12857 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
12858 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
12859 (grub_jfs_read_inode): Likewise.
12860 (grub_jfs_opendir): Likewise. Remove now useless casts.
12861 (grub_jfs_getent): Likewise.
12862 Make ino a grub_uint32_t rather than int.
12863 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
12864 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
12865 division and module with bit operations.
12866 (grub_jfs_find_file): Make ino a grub_uint32_t.
12867 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
12869 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12871 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
12872 warning. (This was in fact always initialised before use, but GCC
12873 wasn't smart enough to prove that.)
12874 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12876 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12878 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
12880 (efi_wrap_1): Likewise.
12881 (efi_wrap_2): Likewise.
12882 (efi_wrap_3): Likewise.
12883 (efi_wrap_4): Likewise.
12884 (efi_wrap_5): Likewise.
12885 (efi_wrap_6): Likewise.
12886 (efi_wrap_10): Likewise.
12887 Based on information by: Red Hat/Peter Jones.
12889 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12891 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
12892 set-but-not-used variable.
12894 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12896 * docs/grub.texi (Simple configuration): Be more explicit about
12897 GRUB_DEFAULT, and add an example.
12898 Reported by: Leslie Rhorer.
12900 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12902 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
12905 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12907 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
12908 * util/grub.d/20_linux_xen.in: Likewise.
12910 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12912 * util/grub.d/10_linux.in: Try alternative config filenames where
12913 we parse config file.
12914 * util/grub.d/20_linux_xen.in: Likewise.
12916 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12918 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
12919 * util/grub.d/20_linux_xen.in: Likewise.
12921 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12923 * grub-core/disk/raid.c (insert_array): Add few potentially
12924 useful grub_util_info.
12925 (grub_raid_register): Likewise.
12927 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12929 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
12930 Preserve partition number in mdadm code path.
12932 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12934 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
12935 few potentially useful grub_util_info.
12937 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12939 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
12941 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12943 * docs/grub.texi (default): Use @example rather than nested
12944 itemized lists to avoid breaking gendocs.
12946 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12948 * docs/grub.texi (Future): Update.
12950 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12952 * docs/grub.texi (Environment): New chapter.
12953 (Changes from GRUB Legacy): Link to "Environment block" section for
12954 details of limitations.
12955 (Simple configuration): Likewise. Link to documentation of gfxmode
12956 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
12958 (Shell-like scripting): Note that normal variables are stored in the
12960 (gettext): Link to documentation of lang and locale_dir.
12961 (list_env): New section.
12962 (load_env): New section.
12963 (save_env): New section.
12965 (Reporting bugs): Fix typo.
12967 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12969 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
12972 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12974 * grub-core/term/at_keyboard.c (set_scancodes)
12975 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
12977 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12979 * docs/grub.texi (Menu-specific commands): Remove some semantics
12980 that were true in GRUB Legacy but not in GRUB 2.
12981 (submenu): New section.
12982 (false): New section.
12983 (read): New section.
12984 (true): New section.
12986 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12988 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
12990 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12992 * docs/grub.texi (Simple configuration): Explain some of the
12993 current limitations of grub-mkconfig.
12994 Reported by: Leslie Rhorer.
12996 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12998 Old macs search for boot.efi rather than for bootia32.efi.
13000 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13001 * util/grub-mkrescue.in: Likewise.
13002 Suggested by: Peter Jones.
13004 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13006 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13008 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13010 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13011 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13012 (grub_lvm_mirror): New struct.
13013 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13014 (grub_lvm_iterate): Iterate only visible volumes.
13015 (grub_lvm_read): Factor out to ..
13016 (read_lv): ... this. Support mirrors.
13017 (grub_lvm_read): New wrapper function.
13018 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13019 stripped or mirrored.
13021 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13023 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13025 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13027 * docs/grub.texi (loopback): New section.
13029 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13031 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13034 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13036 * docs/grub.texi (BIOS installation): New section, partly based on
13037 previous text in other sections.
13038 (Installing GRUB using grub-install): Replace BIOS discussion with a
13040 (Images): Likewise.
13042 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13044 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13045 [HAVE_DIOCGDINFO]: Add safety checks.
13047 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13049 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13050 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13052 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13054 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13055 real_sb->size is zero (e.g. RAID-0), get the disk size from
13056 real_sb->data_size instead.
13057 Fixes Ubuntu bug #743136.
13059 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13061 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13062 printf clauses for printing size and start.
13064 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13066 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13067 Reported and tested by: Timothy Nikkel.
13069 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13071 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13072 (dirty_region_add_real): ... this.
13073 (dirty_region_add): Don't discard margin refresh when performing
13076 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13078 * grub-core/lib/relocator.c (allocate_regstart)
13079 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13080 terminals are capabple of malloc-free operation.
13081 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13082 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13084 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13086 * util/grub-setup.c: Copy the partition table zone if floppy support
13087 is disabled, even if no partition table is found.
13089 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13090 during POST if an invalid partition table is contained in the PBR
13091 of the active partition when GRUB is installed to a partition.
13093 2011-03-28 Colin Watson <cjwatson@debian.org>
13095 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13098 2011-03-28 Colin Watson <cjwatson@debian.org>
13100 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13101 to be specific about what kind of RAID device we're scanning for.
13103 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13105 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13106 return freed string.
13108 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13110 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13112 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13114 Use libgeom on FreeBSD to detect partitions.
13116 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13117 (grub-mkrelpath): Likewise.
13118 (grub-script-check): Likewise.
13119 (grub-editenv): Likewise.
13120 (grub-mkpasswd-pbkdf2): Likewise.
13121 (grub-fstest): Likewise.
13122 (grub-mkfont): Likewise.
13123 (grub-mkdevicemap): Likewise.
13124 (grub-probe): Likewise.
13125 (grub-setup): Likewise.
13126 (grub-ofpathname): Likewise.
13127 (grub-mklayout): Likewise.
13128 (example_unit_test): Likewise.
13129 (grub-menulst2cfg): Likewise.
13130 * grub-core/Makefile.core.def (grub-emu): Likewise.
13131 (grub-emu-lite): Likewise.
13132 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13133 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13134 define HAVE_DIOCGDINFO.
13135 (follow_geom_up) [FreeBSD]: New function.
13136 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13137 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13138 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13139 unconditionally of HAVE_DIOCGDINFO.
13141 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13143 Fix FreeBSD compilation problem.
13145 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13146 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13148 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13150 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13151 Switch back to page zero before loading a kernel, since some kernel
13152 drivers expect that.
13153 Thanks to: Felix Kuehling.
13155 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13157 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13158 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13159 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13161 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13163 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13164 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13166 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13168 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13169 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13170 malloc is disabled.
13172 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13174 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13175 for modules headers when counting the needed allocation size.
13177 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13179 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13180 if no ASCII character is found to prevent crash.
13182 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13184 * grub-core/video/bitmap.c (match_extension): Ignore case.
13186 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13188 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13190 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13192 * grub-core/script/parser.y: Declare "time" as valid argument.
13194 2011-03-23 Peter Jones <pjones@redhat.com>
13196 Fix incorrect assert failure reporting.
13198 * grub-core/tests/example_functional_test.c (example_test): Add
13200 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13201 (failure_start): ...this. Check that malloc succeeded.
13202 Don't call xvasprintf. Return failure struct.
13203 (failure_append_vtext): New function.
13204 (failure_append_text): Likewise.
13205 (add_failure): Likewise.
13206 (grub_test_assert_helper): Likewise.
13207 * include/grub/test.h (grub_test_assert_helper): New declaration.
13208 (grub_test_assert): Macro rewritten.
13210 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13212 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13214 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13216 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13218 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13220 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13221 into GRUB-style one.
13223 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13225 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13226 error and not grub_errno.
13227 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13229 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13231 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13232 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13234 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13236 * grub-core/efiemu/i386/pc/cfgtables.c
13237 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13238 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13239 (grub_xnu_unlock): Likewise.
13240 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13242 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13244 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13245 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13246 * grub-core/commands/hashsum.c (aliases): Likewise.
13247 * grub-core/commands/setpci.c (pci_registers): Likewise.
13248 * grub-core/disk/usbms.c (attach_hook): Likewise.
13249 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13250 (zio_checksum_table): Likewise.
13251 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13252 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13253 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13254 * grub-core/lib/relocator.c (leftovers): Likewise.
13255 (extra_blocks): Likewise.
13256 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13257 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13258 (modules_last): Likewise.
13259 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13260 (devices): Likewise.
13261 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13262 (modules_last): Likewise.
13263 * grub-core/normal/auth.c (users): Likewise.
13264 * grub-core/normal/context.c (initial_menu): Likewise.
13265 (current_menu): Likewise.
13266 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13267 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13268 (grub_serial_terminfo_input_template): Likewise.
13269 (grub_serial_terminfo_output_template): Likewise.
13270 (grub_serial_terminfo_input): Likewise.
13271 (grub_serial_terminfo_output): Likewise.
13272 (registered): Likewise.
13273 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13275 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13277 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13278 grub_video_mode_type_t.
13279 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13280 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13281 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13283 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13285 * util/grub-install.in: Correct the x86-64 name as x86_64.
13287 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13289 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13290 initial chunk read from the kernel always includes GRUB's multiboot
13291 header, which is now outside the first sector.
13293 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13295 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13296 cached mmap_size, so that this works correctly when called multiple
13298 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13300 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13302 * docs/grub.texi (Simple configuration): Tidy up formatting.
13304 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13306 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13307 Set-but-not-used variable removed.
13309 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13311 Workaround yet another IEEE1275 bug.
13313 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13314 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13315 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13316 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13318 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13319 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13321 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13323 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13326 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13328 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13329 empty, since in that case we can only generate either nothing or a
13330 syntactically invalid configuration file.
13331 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13333 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13335 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13336 (Making a GRUB bootable CD-ROM): Likewise.
13337 (Invoking grub-mkrescue): New section.
13338 Reported by: Yann Dirson. Fixes Debian bug #612585.
13340 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13342 * util/grub-install.in: Remove unnecessary brackets from tr
13344 * util/grub.d/10_hurd.in: Likewise.
13345 * util/grub.d/10_kfreebsd.in: Likewise.
13346 * util/grub.d/10_linux.in: Likewise.
13347 * util/grub.d/20_linux_xen.in: Likewise.
13348 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13350 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13352 * include/grub/file.h (not_easly_seekable): Rename to ...
13353 (not_easily_seekable): ... this. Update all users.
13355 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13357 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13360 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13362 * util/grub-mkimage.c (generate_image): Refuse to create the images
13363 bigger than the actual flash (512K) in Loongson machines. 512K is also
13364 the biggest chip supported by them.
13366 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13368 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13370 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13373 super_offset field.
13375 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13377 * util/grub-install.in: Ignore install device on platforms
13378 where it doesn't make sense. Always use UUIDs except on pc, efi and
13380 Reported by: Daniel Kahn Gillmor.
13382 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13384 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13386 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13388 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13389 (iterate_real): Don't rely on partition being non-NULL.
13391 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13393 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13394 supported platforms. Put a compile time assert for this rather than
13395 generate a warning with 32-bit shift.
13397 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13399 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13400 logical expression more readable.
13402 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13404 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13405 even if some elements have a name.
13406 Reported by: Alexander GQ Gerasiov.
13408 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13410 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13411 path unreadable if `grub-probe -t abstraction' fails, for example if
13412 memberlist fails on an LVM volume group.
13413 Reported by: Darius Jahandarie.
13415 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13417 * docs/grub.texi (Simple configuration): Document
13418 GRUB_PRELOAD_MODULES.
13420 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13422 * .bzrignore: Remove nonexistent grub-pbkdf2.
13424 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13426 * configure.ac: Bump version to 1.99~rc1.
13428 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13430 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13433 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13435 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13438 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13440 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13442 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13444 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13447 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13449 Fix compilation on cygwin.
13451 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13452 -R .drectve on cygwin.
13453 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13454 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13455 (COND_CYGWIN): New condition.
13456 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13457 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13458 not @TARGET_OBJ2ELF@.
13459 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13460 type to determine whether aux is to be used.
13462 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13464 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13465 realpath'ed device string.
13466 Handle floppy (somewhat).
13467 Issue error in unknown case rather than garbage.
13468 Reported by: Axel Beckert.
13470 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13472 * util/grub.d/00_header.in (load_video): Handle the case when no video
13474 Thanks to: Axel Beckert.
13476 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13478 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13479 variable. Fixes problem on big endian platforms.
13481 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13483 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13484 It doesn't work well there.
13486 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13488 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13490 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13491 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13494 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13496 Use alias->path rather than buggy "canon".
13498 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13499 (ofdisk_hash_add): New argument curcan. All users updated.
13501 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13503 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13505 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13507 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13508 loadmask before doing any calculations. Use correct type for offset.
13509 (grub_linux_load64): Likewise.
13511 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13513 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13515 (console_grub_equivalences_unshift): Likewise.
13516 Reported by: Daniel Dehennin.
13518 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13520 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13521 (set_env_limn_ro): Likewise.
13522 (GRUB_MOD_INIT): Likewise.
13523 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13524 ARRAY_SIZE while on it.
13525 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13526 * grub-core/normal/context.c (grub_env_export): Move from here ...
13527 * grub-core/kern/env.c (grub_env_export): ... here.
13528 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13530 * grub-core/kern/main.c (grub_main): Export root and prefix.
13531 * include/grub/env.h (grub_env_export): Export.
13532 Reported by: Seth Goldberg.
13534 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13536 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13537 Take into account space used by ELF sections and multiboot palette.
13538 Reported by: Grégoire Sutre.
13540 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13544 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13546 Pass more appropriate video id to Linux.
13548 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13549 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13551 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13552 shift params->lfb_size.
13553 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13555 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13557 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13559 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13561 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13562 separator and pass bootpath/devid even if only one of them is available.
13563 Reported by: Seth Goldberg.
13565 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13567 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13568 implementations bug on them.
13570 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13572 (filter_memory_map): Likewise.
13574 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13576 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13577 Reported by: nebuchadnezzar.
13579 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13581 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13582 Reported by: nebuchadnezzar.
13584 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13586 Submenu default support.
13588 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13589 auto_boot. All users updated.
13591 Handle chosen and default with submenus.
13592 (grub_menu_execute_with_fallback): Declared static.
13593 Don't notify failure if autobooted. Upper level does it.
13594 (menuentry_eq): New function.
13595 (get_entry_number): Use menuentry_eq.
13596 (show_menu): New parameter "autobooted". All users updated.
13597 (grub_show_menu): Likewise.
13598 * include/grub/normal.h (grub_show_menu): Likewise.
13599 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13600 (grub_menu_execute_with_fallback): Likewise.
13602 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13604 * util/grub-mklayout.c (usage): Update help text.
13606 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13608 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13610 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13612 * util/grub-menulst2cfg.c (main): Trim the line.
13614 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13616 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13617 (grub_machine_init): Don't check amount of low memory as reportedly
13618 INT 12h can be broken and if low memory is too low we wouldn't have
13619 gotten into grub_machine_init anyway.
13621 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13623 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13624 (grub_machine_mmap_iterate): Take low memory into account
13626 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13628 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13630 Reported by: TiCPU.
13632 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13634 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13637 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13639 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13640 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13642 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13644 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
13645 openbsd and netbsd types being in part_bsd module.
13647 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13649 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
13650 (_FILE_OFFSET_BITS): Likewise.
13651 Reported by: Seth Goldberg.
13653 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13655 * configure.ac: Check for libdevmapper header.
13657 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13659 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
13661 (fzap_lookup): Likewise.
13662 (dnode_get): Likewise.
13663 (make_mdn): Likewise.
13664 (zfs_mount): Likewise.
13665 (fzap_iterate): Use temporary pointer to avoid aliasing.
13666 (grub_zfs_read): Likewise.
13667 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
13668 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
13669 pointers to avoid aliasing.
13670 (grub_cmd_xnu_kernel64): Likewise.
13671 (grub_xnu_load_driver): Likewise.
13673 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13675 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
13677 (grub_cmd_terminal_output): Likewise.
13678 Reported and tested by: Grégoire Sutre.
13680 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13682 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
13684 Reported and tested by: Grégoire Sutre.
13686 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13688 * configure.ac: Do CPU substitution even if it's specified explicitly.
13689 Reported and tested by: Alain Greppin.
13691 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13693 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
13694 Reported and tested by: Alain Greppin.
13696 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13698 Satisfy some bison versions need for inttypes.h.
13700 * grub-core/lib/posix_wrap/inttypes.h: New file.
13701 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
13702 (int16_t): Likewise.
13703 (int32_t): Likewise.
13704 (int64_t): Likewise.
13705 Reported and tested by: Alain Greppin.
13707 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13709 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
13710 Silence spurious warning.
13711 Reported and tested by: Alain Greppin.
13713 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13715 * docs/grub.texi (Support automatic decompression): Update with xz
13716 decompression support.
13718 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13720 Improve loaders' kernel command line handling.
13722 * grub-core/lib/cmdline.c: New file.
13723 * include/grub/lib/cmdline.h: Likewise.
13724 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
13725 grub_create_loader_cmdline to create kernel command line.
13726 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13727 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
13728 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
13729 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
13730 (linux): Add lib/cmdline.c on common.
13732 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13734 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
13735 inopos might be unaligned.
13737 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13739 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
13740 endian transformations.
13741 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13742 Based on report by: Doug Nazar.
13744 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
13746 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
13747 array->members[i].start_sector.
13748 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
13750 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13752 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
13753 Reported and tested by: Grégoire Sutre.
13755 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13757 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
13758 avoid causing test failures by clearing the screen.
13760 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13762 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13763 Fix prefix check to handle the case where dir ends with a slash
13764 (most significantly, "/" itself).
13765 Reported by: Michael Vogt.
13767 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13769 Run terminfo_cls on initing terminfo output to clear the screen and
13770 move the cursor to (0,0).
13772 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
13773 Call grub_terminfo_output_init.
13774 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
13775 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
13776 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
13778 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13780 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
13783 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13785 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
13788 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13790 The E820 type 5 is BADRAM, not EXEC_CODE.
13792 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13793 (GRUB_E820_BADRAM): New define.
13794 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
13795 into reserved. Propagate BADRAM.
13796 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13797 (GRUB_E820_BADRAM): New define.
13799 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13801 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
13802 Ignore the memory post-4G.
13803 (grub_relocator_firmware_alloc_region): Additional debug statement.
13805 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13807 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
13809 Reported by: David Pravec.
13811 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13813 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
13816 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13818 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
13820 (grub_reed_solomon_recover): Likewise.
13822 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13824 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
13826 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13828 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
13831 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
13833 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
13834 descriptions of extract_legacy_entries_source and
13835 extract_legacy_entries_configfile.
13836 Reported by: Seung Soo, Ha.
13838 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
13840 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
13841 on devices that do not implement function 0.
13843 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
13845 * grub-core/fs/hfsplus.c: Make parent unsigned.
13846 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
13848 (grub_hfsplus_cmp_extkey): Likewise
13850 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13852 * util/grub-install.in: Correctly use bootloader_id and not
13853 GRUB_DISTRIBUTOR on efibootmgr line.
13855 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13857 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
13859 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
13861 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
13862 Xen and reorder menu item wording to make it clearer that this entry
13863 will launch Xen. Print separate messages when loading Xen and
13866 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13868 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
13869 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
13870 loop in case of incorrect amiga partmap.
13872 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13874 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
13875 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
13878 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13880 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
13882 Reported by: crocket
13884 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13886 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
13888 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
13890 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13892 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
13894 (grub_cmd_xnu_kextdir): Likewise.
13895 (grub_cmd_xnu_splash): Likewise.
13897 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13899 Avoid using Reed-Solomon with 0 redundancy.
13901 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
13902 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
13904 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
13905 (grub_reed_solomon_recover): Likewise.
13907 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13909 Don't use disk subsystem in freebsd_boot.
13911 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
13912 (freebsd_biosdev): Likewise.
13913 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
13914 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
13916 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13918 Handling of files of unknown size is currently limited. They can't be
13919 used e.g. for initrd or modules. Moreover gzip handling of not
13920 easily seekable files is buggy. Disable unknown file size for now. May
13921 be inefficient but works.
13923 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
13924 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
13926 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
13928 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
13931 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
13933 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
13935 2010-12-25 Shea Levy <shlevy>
13937 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
13939 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13941 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
13942 Windows Server 2008.
13943 Reported by: Devin Giddings.
13945 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13947 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
13948 writing an error message because of async power management.
13949 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
13950 (grub_reboot): Likewise.
13952 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
13954 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
13955 keep unit tests from failing when they shouldn't.
13957 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13959 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
13960 previous patch increased the size of the RS code by 20 bytes (at
13961 least with gcc-4.4), so increase this by 20 bytes to match.
13962 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13964 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13966 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
13967 scratch area. Make sure to initialise chosen in standalone mode as
13968 well as non-standalone.
13969 Reported by: Robert Hooker and Andy Whitcroft.
13970 Tested by: Andy Whitcroft.
13972 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13974 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
13975 constructing a new unescaped string and passing it to grub_xputs in
13976 one go, rather than passing characters to grub_printf one at a time.
13978 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13980 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
13981 initialising utf16.
13983 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13985 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
13986 comment. Add an extra layer of quotation, requiring the output of
13987 this function to be used in a printf format string.
13988 (gettext_printf): New function.
13989 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
13990 Extract translatable strings from here-documents and use a temporary
13991 variable instead, so that xgettext can find them.
13992 * util/grub.d/10_kfreebsd.in: Likewise.
13993 * util/grub.d/10_linux.in: Likewise.
13994 * util/grub.d/20_linux_xen.in: Likewise.
13996 * po/grub.d.sed: New file.
13997 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
13998 arguments. Set c-format flags on all strings extracted from
13999 util/grub.d/ (xgettext refuses to include these itself for strings
14000 it extracted from a shell file, but these really are c-format).
14002 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14004 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14005 Avoid next pointing to nowhere.
14007 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14009 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14010 rather than assuming than rootblock is exactly in the middle.
14011 (grub_affs_label): Likewise.
14013 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14015 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14016 reserved_first_sector to 0.
14017 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14018 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14019 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14021 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14023 Fix handling of UTF-16 UDF labels.
14025 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14026 (read_string): .. here.
14027 (grub_udf_label): Use read_string.
14029 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14031 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14032 editor under argument scope.
14033 Reported by: Jordan Uggla
14035 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14037 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14039 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14041 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14042 line, and other keys scroll an entire page (previous handling was
14043 for \r and \n to scroll a page and other keys to scroll two lines).
14045 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14047 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14048 Set ptrdest to correct get_physical_target_address rather than
14049 incorrect get_virtual_current_address.
14051 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14053 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14054 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14056 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14058 * .bzrignore: Ignore grub-core/rs_decoder.S.
14060 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14062 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14063 .mo/.mo.gz opening sequence to ...
14064 (grub_mofile_open_lang): ... here.
14065 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14066 * util/grub.d/00_header.in (grub_lang): Include country part of
14068 Reported by: Mario Limonciello.
14070 2010-12-09 Robert Millan <rmh@gnu.org>
14072 * NEWS: Document addition of ZFS support.
14074 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14076 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14077 rather than `/ 2', as the latter requires -Wa,--divide which would
14078 require bumping our minimum binutils version.
14080 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14082 * util/grub-script-check.c (main): Print script line number on
14085 2010-12-01 Robert Millan <rmh@gnu.org>
14087 * grub-core/fs/zfs/zfs.c: New file.
14088 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14089 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14090 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14091 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14093 * include/grub/zfs/dmu.h: Likewise.
14094 * include/grub/zfs/dmu_objset.h: Likewise.
14095 * include/grub/zfs/dnode.h: Likewise.
14096 * include/grub/zfs/dsl_dataset.h: Likewise.
14097 * include/grub/zfs/dsl_dir.h: Likewise.
14098 * include/grub/zfs/sa_impl.h: Likewise.
14099 * include/grub/zfs/spa.h: Likewise.
14100 * include/grub/zfs/uberblock_impl.h: Likewise.
14101 * include/grub/zfs/vdev_impl.h: Likewise.
14102 * include/grub/zfs/zap_impl.h: Likewise.
14103 * include/grub/zfs/zap_leaf.h: Likewise.
14104 * include/grub/zfs/zfs.h: Likewise.
14105 * include/grub/zfs/zfs_acl.h: Likewise.
14106 * include/grub/zfs/zfs_znode.h: Likewise.
14107 * include/grub/zfs/zil.h: Likewise.
14108 * include/grub/zfs/zio.h: Likewise.
14109 * include/grub/zfs/zio_checksum.h: Likewise.
14111 * Makefile.util.def: Build ZFS into libgrubmods.
14112 * grub-core/Makefile.core.def: Build zfs.mod.
14114 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14116 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14118 * grub-core/commands/wildcard.c (match_files): Likewise.
14120 2010-11-30 Robert Millan <rmh@gnu.org>
14122 * grub-core/loader/i386/bsd.c
14123 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14124 whether kernel is loaded using grub_loader_is_loaded(), rather
14125 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14126 certain error conditions.
14128 2010-11-30 Robert Millan <rmh@gnu.org>
14130 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14131 (grub_cmd_echo): Call grub_refresh() after printing a message.
14133 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14135 Avoid using tricks for initialising endian variables.
14137 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14139 (GRUB_MOD_INIT): Don't byte-swap.
14140 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14141 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14142 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14143 (grub_swap_bytes32_compile_time): Likewise.
14144 (grub_cpu_to_le32_compile_time): Likewise.
14145 (grub_cpu_to_le16_compile_time): Likewise.
14147 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14149 * util/grub-setup.c (setup): Stop recommending --force. People who
14150 understand the dangers of blocklists are able to find this option
14151 anyway and the ones who don't shouldn't use it anyway.
14153 2010-11-26 Robert Millan <rmh@gnu.org>
14155 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14158 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14160 Fix LVM-on-RAID probing.
14162 * util/grub-probe.c (probe): Remember which disk was detected as
14163 RAID (perhaps an LVM physical volume). Use that disk's raidname
14164 rather than that of the top-level disk.
14166 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14168 Fix cmdline argument quotes for setparams command of menuentry
14171 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14172 quotes for arguments.
14173 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14174 grub_strchrsub function instead.
14176 * include/grub/misc.h (grub_strchrsub): New function.
14178 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14180 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14181 effort by skipping "." and ".." entries up-front.
14182 Suggested by: Michael Lazarev.
14184 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14186 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14187 ldflags to ldadd, to fix link line ordering.
14188 (none_decompress): Likewise.
14190 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14192 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14194 (grub-emu-lite): Remove kern/emu/cache.S.
14196 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14198 * util/deviceiter.c (compare_devices): If the by-id link for a
14199 device couldn't be resolved, fall back to sorting by the by-id link
14200 rather than segfaulting.
14201 Reported and tested by: Daniel Mierswa.
14203 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14205 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14206 ldflags, to fix link line ordering.
14208 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14210 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14211 linkers are picky about this.
14213 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14215 * grub-core/Makefile.am (command.lst): Adjust sed expression
14216 ordering so that extended and priority commands aren't treated as
14219 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14221 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14222 Remove byte-swapping function calls, which are not valid in
14223 structure initialisers.
14224 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14226 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14227 grub_gpt_partition_type_bios_boot.
14229 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14231 Fix test program build on GNU/kFreeBSD.
14233 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14234 $(LIBNVPAIR)' library dependencies.
14236 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14238 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14240 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14242 * util/grub-install.in: Remove excessive quoting that broke
14243 installations to RAID devices.
14245 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14247 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14248 bootloader version instead of 0.
14250 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14252 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14255 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14257 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14258 retrieve the metadat sector if size isn't known.
14259 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14261 2010-11-18 Robert Millan <rmh@gnu.org>
14263 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14264 with grub_memcmp().
14266 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14268 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14270 Reported by: Jordan Uggla.
14272 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14274 Make better UTF compliant.
14276 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14277 sequences as incorrect.
14278 (grub_is_valid_utf8): Likewise.
14279 (grub_utf8_to_ucs4): Likewise.
14280 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14281 (grub_ucs4_to_utf8_alloc): Likewise.
14282 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14284 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14286 Make legacy_source behave like source.
14288 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14290 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14292 2010-11-16 Colin Watson <cjwatson@debian.org>
14294 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14295 (-Wunused implies -Wunused-parameter, but not vice versa).
14297 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14299 * configure.ac: Make error messages less confusing by testing for
14300 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14301 accepted, but produces a diagnostic if something else is wrong).
14303 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14305 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14306 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14308 (grub_keyboard_controller_init)
14309 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14310 read the initial state since controller isn't inited yet.
14312 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14314 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14315 allocate_regbeg may need to create new chunk header.
14317 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14319 Fix quoting in legacy parser.
14321 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14323 (grub_legacy_parse): Likewise.
14324 Reported by: Jordan Uggla.
14325 Tested by: Jordan Uggla.
14327 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14329 Don't add -lgcc on i386 and x86_64.
14331 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14332 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14333 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14335 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14337 * configure.ac: Add -Wno-trampolines when supported.
14339 2010-11-14 Modestas Vainius <modax@debian.org>
14341 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14344 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14346 Add generic logical block size support for UDF.
14348 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14349 (GRUB_UDF_BLKSZ): Removed.
14350 (struct grub_udf_data): New field "lbshift" to hold the logical block
14351 size of the file system in log2 format. All users updated.
14352 (sblocklist): Change type to unsigned.
14353 (grub_udf_mount): Change type of "sblklist" to unsigned.
14354 Move AVDP search before VRS recognition, because the latter requires
14355 knowledge of the logical block size, which is detected during the
14357 Detect and validate logical block size during AVDP search, adding
14358 support for block sizes 512, 1024 and 4096.
14359 Make VRS recognition independent of block size.
14361 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14363 Properly handle deleted files on UDF.
14365 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14366 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14369 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14371 Support reading files larger than 2 GiB.
14373 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14374 "offset" to grub_off_t.
14375 (grub_udf_read_file): Likewise for parameter "pos".
14377 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14379 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14381 (Simple configuration): Refer to Changes from GRUB Legacy about
14382 save_env availability.
14384 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14386 * util/grub-install.in: Ignore empty partition table detection
14387 instead of trying to include part_ module.
14389 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14391 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14392 LVM on RAID support.
14394 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14396 Properly define WORDS_BIGENDIAN in wrapped environments.
14398 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14400 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14402 Reported by: Manoel Rebelo Abranches.
14403 Tested by: Manoel Rebelo Abranches.
14405 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14407 * util/grub-mkconfig.in: Fix quoting.
14409 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14411 Support big ext2 files.
14413 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14414 (grub_ext2_read_block): Support triple indirect blocks.
14415 (grub_ext2_read_file): Use 64-bit types and read size_high.
14416 (grub_ext2_open): Read size_high.
14417 Reported by: Ximin Luo.
14418 Tested by: Manoel Rebelo Abranches.
14420 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14422 * util/grub-install.in: Handle filenames containing spaces.
14423 Reported by: Jordan Uggla.
14424 Tested by: Jordan Uggla.
14426 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14428 * util/grub-mkconfig.in (grub_script_check): New variable.
14429 Use grub_script_check instead of grub-script-check.
14430 Reported by: Barry Jackson.
14432 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14434 * docs/grub.texi (menu): Correct the order.
14435 Reported by: D. Hugh Redelmeier.
14437 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14439 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14442 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14444 * include/grub/elfload.h (grub_elf32_size): New parameter.
14446 Return maximum segments alignment.
14447 (grub_elf64_size): Likewise.
14448 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14449 Return maximum segments alignment.
14450 (grub_elf64_size): Likewise.
14451 * grub-core/loader/powerpc/ieee1275/linux.c:
14452 (grub_linux_claimmap_iterate): New function. Uses the
14453 "available" property in the "memory" node for memory allocation
14454 for kernel in the PowerPC loader.
14455 (grub_linux_load32): Correctly find linux entry point offset.
14456 (grub_linux_load64): Likewise.
14458 2010-11-07 Robert Millan <rmh@gnu.org>
14460 On mips-yeeloong, build with -march=loongson2f when this flag is
14461 available (GCC >= 4.4).
14462 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14464 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14465 or otherwise add -march=mips3.
14467 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14469 Suppress shell expansion on echo '*' and echo "*" like cases.
14470 Reported by: Jordan Uggla.
14472 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14473 string arguments before shell expansion.
14474 * tests/grub_cmd_echo.in: New testcases.
14476 2010-11-07 Robert Millan <rmh@gnu.org>
14478 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14481 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14483 * grub-core/kern/emu/hostdisk.c
14484 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14486 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14488 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14489 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14490 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14492 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14494 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14496 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14498 * util/grub-install.in: Replace useless recomendation to pass
14499 --modules with a recomendation to report a bug.
14501 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14503 Properly register serial terminfo.
14504 Reported by: Jordan Uggla
14506 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14508 (grub_serial_terminfo_output_template): Likewise.
14509 (grub_cmd_serial): Register "serial" with terminfo.
14510 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14511 grub_serial_terminfo_output.
14513 2010-11-05 Robert Millan <rmh@gnu.org>
14515 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14518 2010-11-05 Robert Millan <rmh@gnu.org>
14520 On Yeeloong, pass machine type information to Linux.
14522 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14523 (LOONGSON_MACHTYPE): New macro, set to
14524 "machtype=lemote-yeeloong-2f-8.9inches".
14525 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14526 additional argument to Linux.
14528 2010-11-04 Robert Millan <rmh@gnu.org>
14530 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14531 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14532 (its SATA disks are detected as slaveless IDE master drives on
14534 Reported by Carsten Aulbert.
14536 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14538 * util/bin2h.c (main): Fix spelling error in generated output.
14540 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14542 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14544 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14546 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14547 vga= option is supplied.
14549 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14551 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14552 * util/grub.d/10_kfreebsd.in: Likewise.
14553 * util/grub.d/10_linux.in: Likewise.
14554 * util/grub.d/20_linux_xen.in: Likewise.
14556 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14558 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14559 argument as an argument to no-argument option.
14561 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14563 * util/grub.d/10_linux.in: Add missing load_video with explicit
14564 GRUB_GFXPAYLOAD_LINUX.
14566 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14568 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14570 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14572 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14573 elements with invlid index.
14574 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14575 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14577 * include/grub/raid.h (grub_raid_member): New struct.
14578 (grub_raid_array): Transform devices and start_sector into usage of
14579 grub_raid_member. All users updated
14580 (allocated_devs): New member.
14582 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14584 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14587 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14589 NetBSD build fix for getline function conflict from gnulib.
14591 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14592 components that depend on gnulib headers.
14593 (libgrubmods.a): Renamed from earlier libgrub.a.
14594 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14596 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14598 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14599 install rather than creating a broken install.
14601 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14603 * util/grub-setup.c (argp): Remove misleading example of installing to
14606 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14608 * util/grub-setup.c (setup): Clarify the error message.
14610 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14612 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14614 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14616 * grub-core/kern/emu/misc.c
14617 (grub_make_system_path_relative_to_its_root)
14618 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14620 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14622 * grub-core/kern/emu/misc.c
14623 (grub_make_system_path_relative_to_its_root): Revert r2882.
14625 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14627 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14628 useless field head. All users updated.
14629 (free_subchunk): Correct handling of IN_REGION subchunk.
14631 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14633 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14634 (Supported kernels): Likewise.
14636 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14638 Make mktemp invocations portable.
14640 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14641 exit if mktemp fails.
14642 * tests/grub_script_blockarg.in: Likewise.
14643 * tests/partmap_test.in: Likewise.
14644 * tests/util/grub-shell-tester.in: Likewise.
14645 * tests/util/grub-shell.in: Likewise.
14646 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14647 * Makefile.am: Likewise, and chain shell commands with `&&'
14649 * util/grub-mkrescue.in: Use the same explicit template as above, and
14650 exit if mktemp fails.
14652 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
14654 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
14655 Linux kernel, reported by Dennis Schridde.
14657 2010-10-17 Szymon Janc <szymon@janc.net.pl>
14659 * grub-core/normal/auth.c (grub_auth_check_authentication):
14660 Set-but-not-used variable removed.
14662 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14664 * docs/grub.texi (GNU/Linux): Document APM unavailability with
14665 32-bit linux protocol.
14667 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14669 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
14670 cursor shape for sanity.
14672 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14674 * docs/grub.texi (Installation): Document buggy BIOS install.
14676 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14678 * docs/grub.texi (Installation): Indent.
14680 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14682 * util/grub-setup.c (setup): New parameter allow_floppy.
14683 (arguments): New member allow_floppy.
14684 (argp_parser): Handle --allow-floppy.
14685 (main): Pass allow_floppy.
14686 * util/grub-install.in: New option --allow-floppy passed though to
14689 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14691 * util/grub-install.in: Handle partitionless disks.
14693 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14695 * util/grub-setup.c (setup): Don't clean blocklists before readability
14698 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14700 * docs/grub.texi (Installation): Document embedding zone. Remove
14701 obsolete grub-install example.
14703 2010-10-16 Szymon Janc <szymon@janc.net.pl>
14705 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
14706 Set-but-not-used variable ifdef'ed.
14707 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
14708 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
14710 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
14711 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
14712 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14713 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
14714 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
14715 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
14716 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
14717 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
14718 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
14719 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
14720 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
14723 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14725 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
14726 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
14729 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14731 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
14732 synonym to _S5_. Needed for some DSDTs.
14734 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14736 Userspace ACPI parser debugging.
14738 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
14739 headers and add relevant defines. Don't include standard headers.
14740 (main) [GRUB_DSDT_TEST]: New function.
14741 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
14742 Don't declare functions.
14744 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14746 Remove dead grub_efi_mm_fini.
14748 * grub-core/kern/efi/mm.c (allocated_page): Removed.
14749 (ALLOCATED_PAGES_SIZE): Likewise.
14750 (MAX_ALLOCATED_PAGES): Likewise.
14751 (allocated_pages): Likewise.
14752 (grub_efi_allocate_pages): Don't record allocated pages.
14753 (grub_efi_free_pages): Likewise.
14754 (grub_efi_mm_init): Likewise.
14755 (grub_efi_mm_fini): Removed.
14757 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14759 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
14760 (grub_efi_mm_init): Take into account the memory map size increase.
14762 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14764 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
14765 (serial_hw_put): Wait based on real time rather than port reads. Don't
14767 * include/grub/serial.h (grub_serial_port): New field broken.
14769 2010-10-16 Robert Millan <rmh@gnu.org>
14771 * grub-core/kern/emu/misc.c
14772 (grub_make_system_path_relative_to_its_root): Fix premature return
14773 when processing non-root ZFS filesystems.
14774 Reported by Sergio Talens-Oliag.
14776 2010-10-15 Robert Millan <rmh@gnu.org>
14778 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
14779 guarantee compressed ones are processed first.
14781 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14783 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
14784 grub_efiemu_autocore.
14786 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14788 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
14790 (grub_console_getkey): Use correct jae opcode rather than ja.
14792 2010-10-12 Robert Millan <rmh@gnu.org>
14794 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
14795 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
14796 variable. All references updated.
14798 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
14800 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
14802 Correctly distinguish mdraid flavours.
14804 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
14805 (insert_array): New argument raid.
14806 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
14807 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
14808 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
14810 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
14812 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
14813 handling of special keys.
14815 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14817 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
14818 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
14820 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14822 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
14823 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
14825 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
14826 Use right endpoint when querying descriptor.
14828 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14830 Clear out 0x80 color bit on EFI.
14832 Reported by: decoder and meta tech.
14834 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
14835 (grub_console_setcolorstate): Clear out 0x80 bit.
14836 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
14837 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
14838 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
14840 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14842 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
14845 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14847 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
14848 mo_file after freeing.
14850 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14852 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
14854 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14856 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
14859 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14861 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
14864 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14866 Put terminfo into core on ieee1275 and yeeloong (needed for console).
14868 * gentpl.py: New groups terminfoinkernel and terminfomodule.
14869 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
14870 and terminfo.h when needed.
14871 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
14872 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
14873 (terminfo): Enable only on terminfokernel.
14874 (extcmd): Likewise.
14875 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
14876 * include/grub/lib/arg.h: Likewise.
14877 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
14878 incorrect usage of ->.
14880 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14882 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
14883 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
14885 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14887 Fix coreboot compilation.
14889 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14890 Take VBE info into account even if only text is supported.
14891 (fill_vbe_info): Take into account the case when only VGA text
14893 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
14894 on coreboot, multiboot and qemu.
14896 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14898 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
14900 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
14902 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14904 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
14907 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14909 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
14910 if they were BSD-style.
14912 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14914 * grub-core/boot/i386/pc/lnxboot.S: Replace
14915 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
14916 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
14918 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14920 Write embedding zone using Reed-Solomon.
14922 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
14923 * grub-core/Makefile.am (rs_decoder.S): New target.
14924 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
14925 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
14926 (multiboot): Move to RS part.
14927 (post_reed_solomon): New label.
14928 (grub_boot_drive): Move to non-RS part since it's modified in memory
14930 Include rs_decoder.S.
14931 * grub-core/lib/reed_solomon.c: New file.
14932 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
14934 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
14935 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
14936 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
14937 * include/grub/partition.h (grub_partition_map): Change prototype of
14938 embed to allow returning additional sectors.
14939 * include/grub/reed_solomon.h: New file.
14940 * util/grub-setup.c (setup): Handle Reed-Solomon.
14942 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
14944 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14945 i386 and x86-64 definedness tests.
14947 2010-09-27 Yves Blusseau <blusseau@zetam.org>
14949 Fix generation of kernel_syms.lst
14951 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
14954 2010-09-26 Robert Millan <rmh@gnu.org>
14956 Support degraded ZFS arrays in "grub-probe -t device" resolution.
14958 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
14959 the pool is an array of devices, iterate through it and return the
14960 first device that passes a stat() test (instead of blindly returning
14963 2010-09-26 Robert Millan <rmh@gnu.org>
14965 Build fixes for GNU/kFreeBSD.
14967 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
14968 to programs that require ZFS conversion.
14969 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
14970 kernels that don't have FLOPPY_MAJOR.
14972 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14974 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
14976 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14978 Fix grub-emu build.
14980 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
14981 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
14982 mdraid09 and mdraid1x.
14984 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
14986 Re-enable grub-extras.
14988 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
14989 avoid confusing Automake. Run autogen only twice, once for the top
14990 level and once for grub-core. Add Makefile.util.def and
14991 Makefile.core.def from extra modules to the appropriate autogen
14992 invocations. If Makefile.common exists in an extra module, include
14993 it in both Makefile.util.am and grub-core/Makefile.core.am;
14994 similarly, include any Makefile.util.common file in Makefile.util.am
14995 and any Makefile.core.common file in grub-core/Makefile.core.am.
14996 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
14997 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
14998 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
14999 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15001 * gentpl.py (gvar_add): Turn GVARS into a set.
15002 (global_variable_initializers): Sort global variables on output.
15003 (vars_init): New function.
15004 (first_time): Likewise.
15005 (library): Ensure that non-global variable initialisations are
15006 emitted before the first time we emit code for a library block.
15007 Append to variables rather than setting them. Only emit
15008 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15009 each conditional path.
15010 (program): installdir() emits an Autogen macro, so must be passed to
15011 var_add rather than gvar_add.
15013 (script): Likewise.
15014 (rules): New function, centralising handling for different target
15015 types. Set up Guile association lists for first_time and vars_init,
15016 and send most output to a diversion so that variable initialisations
15017 can be emitted first.
15018 (module_rules): Use new rules function.
15019 (kernel_rules): Likewise.
15020 (image_rules): Likewise.
15021 (library_rules): Likewise.
15022 (program_rules): Likewise.
15023 (script_rules): Likewise.
15024 (data_rules): Likewise.
15026 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15028 * .bzrignore: Add contrib and grub-core/contrib. Remove
15029 grub-core/Makefile.gcry.am.
15031 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15033 * grub-core/lib/LzFind.c: Add missing include.
15034 * grub-core/lib/LzmaEnc.c: Likewise.
15035 * grub-core/script/lexer.c: Likewise.
15036 * grub-core/script/yylex.l: Likewise.
15037 * util/grub-macho2img.c: Likewise.
15038 * util/grub-menulst2cfg.c: Likewise.
15039 * util/grub-mklayout.c: Likewise.
15040 * util/grub-mkpasswd-pbkdf2.c
15041 * util/grub-mkrelpath.c: Likewise.
15042 * util/resolve.c: Likewise.
15044 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15046 * Makefile.util.def (example_unit_test): Add
15047 grub-core/gnulib/libgnu.a.
15049 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15051 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15053 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15055 Support xz compression on yeeloong.
15057 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15058 * configure.ac: Check for LZMA.
15059 * grub-core/Makefile.core.def (xz_decompress): New target.
15060 (none_decompress): Likewise.
15061 * grub-core/boot/decompressor/minilib.c: New file.
15062 * grub-core/boot/decompressor/none.c: Likewise.
15063 * grub-core/boot/decompressor/xz.c: Likewise.
15064 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15065 * grub-core/kern/mips/cache_flush.S: Likewise.
15066 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15067 * grub-core/kern/mips/startup.S: Move first stage to ...
15068 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15070 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15071 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15072 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15073 Allocate statically.
15074 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15075 Allocate statically or use scratch. Don't check CRC32.
15076 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15077 Allocate statically. Don't check CRC32.
15078 * include/grub/decompressor.h: New file.
15079 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15081 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15082 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15083 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15084 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15085 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15086 * util/grub-mkimage.c (grub_compression_t): New type.
15087 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15088 (image_target_desc): New field default_compression.
15089 (image_targets): Adjust yeeloong targets.
15090 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15091 (compress_kernel): New parameter comp.
15092 (generate_image): Likewise. Handle new compression case.
15093 (options): New option --compression
15095 (main): Handle new option.
15097 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15099 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15101 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15103 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15104 typo in __i386__ conditional.
15106 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15108 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15111 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15113 Implement EFI and ACPI multiboot2 extensions.
15115 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15116 new tags as supported.
15117 (acpiv2_size): New function.
15118 (grub_multiboot_get_mbi_size): Take new tags into account.
15119 (grub_multiboot_make_mbi): Add new tags.
15120 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15122 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15124 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15125 Added missing configuration of USB device.
15127 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15129 * grub-core/normal/menu_entry.c (run): Make sure we always return
15132 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15134 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15135 NumberOfPages is UINT64 according to the UEFI specification, not
15136 UINTN. Fix printf format.
15138 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15140 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15141 `err' to grub_usb_err_t.
15142 Reported and tested by: KESHAV P.R.
15144 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15146 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15147 tpart non-const, so that we can assign to it. (Since this is a
15148 typedef, the constness refers to the pointer rather than what it
15151 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15153 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15154 $(top_srcdir)/grub-core/gnulib as well as
15155 $(top_builddir)/grub-core/gnulib.
15156 Reported by: KESHAV P.R.
15158 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15160 * util/grub-install.in: Fix the bootloader ID option to be
15161 consistently --bootloader-id, not --bootloader_id.
15162 Reported by: KESHAV P.R.
15164 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15166 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15167 check hash checksum." consistently translatable.
15169 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15171 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15174 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15176 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15177 (GRUB_MOD_INIT): Register sha1sum command.
15178 (GRUB_MOD_FINI): Unregister sha1sum command.
15180 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15182 Keep boot and grub directory names in sync with utils scripts
15184 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15185 * config.h.in: Add previous macros.
15186 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15187 * util/grub-install.in: Use $bootdir and $grubdir variables.
15189 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15191 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15192 convert partition names to disk names if the new `convert' parameter
15194 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15195 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15196 disk in its own right. This can happen with Xen disk images.
15198 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15200 * util/grub-editenv.c: Update strings to avoid warnings when generating
15202 * util/grub-setup.c: Likewise.
15204 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15206 * configure.ac: Change version to 1.99~beta0.
15208 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15210 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15212 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15214 * include/multiboot.h: Resynced with specification.
15215 * include/multiboot2.h: Likewise.
15217 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15219 Fix po directory handling.
15221 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15222 * grub-core/gnulib/Makefile.am: Import gettext module.
15223 * m4/gnulib-cache.m4: Likewise.
15224 * m4/gnulib-comp.m4: Likewise.
15225 * m4/gettext.m4: New file, from gnulib.
15226 * m4/glibc2.m4: Likewise.
15227 * m4/iconv.m4: Likewise.
15228 * m4/intdiv0.m4: Likewise.
15229 * m4/intl.m4: Likewise.
15230 * m4/intldir.m4: Likewise.
15231 * m4/intlmacosx.m4: Likewise.
15232 * m4/intmax.m4: Likewise.
15233 * m4/inttypes-pri.m4: Likewise.
15234 * m4/lcmessage.m4: Likewise.
15235 * m4/lib-ld.m4: Likewise.
15236 * m4/lib-link.m4: Likewise.
15237 * m4/lib-prefix.m4: Likewise.
15238 * m4/lock.m4: Likewise.
15239 * m4/nls.m4: Likewise.
15240 * m4/po.m4: Likewise.
15241 * m4/printf-posix.m4: Likewise.
15242 * m4/progtest.m4: Likewise.
15243 * m4/threadlib.m4: Likewise.
15244 * m4/uintmax_t.m4: Likewise.
15245 * m4/visibility.m4: Likewise.
15246 * po/Makefile.am: Remove.
15247 * po/Makefile.in.in: New file, from gettext.
15248 ($(DOMAIN).pot-update): Support POTFILES-shell.
15249 * po/Makevars: New file.
15250 * po/POTFILES-shell: Rename to ...
15251 * po/POTFILES-shell.in: ... this. Update.
15252 * po/POTFILES: Rename to ...
15253 * po/POTFILES.in: ... this. Update.
15254 * po/Rules-quot: New file, from gettext.
15255 * po/boldquot.sed: Likewise.
15256 * po/en@boldquot.header: Likewise.
15257 * po/en@quot.header: Likewise.
15258 * po/insert-header.sin: Likewise.
15259 * po/quot.sed: Likewise.
15260 * po/remove-potcdate.sin: Likewise.
15262 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15264 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15268 * util/grub.d/20_linux_xen.in: Use submenus.
15270 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15274 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15275 parameter submenu. All users updated.
15276 * grub-core/normal/main.c (free_menu): Rename to ...
15277 (grub_normal_free_menu): ... this. Made global.
15278 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15280 * grub-core/normal/menu_entry.c (screen): New field submenu.
15281 (make_screen): Set submenu.
15282 (run): Open new context if requested.
15283 * include/grub/menu.h (grub_menu_entry): New field submenu.
15284 * include/grub/normal.h (grub_normal_free_menu): New proto.
15286 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15288 Menu entries extractor.
15290 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15292 (GRUB_MOD_INIT): Register new variants.
15293 (GRUB_MOD_FINI): Unregister new variants.
15294 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15295 into grub_cmd_legacy_source.
15296 (grub_cmd_legacy_source): Implement extractor variants.
15297 (GRUB_MOD_INIT): Register new variants.
15298 (GRUB_MOD_FINI): Unregister new variants.
15299 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15301 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15302 search as an extractor.
15303 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15304 test as an extractor.
15305 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15307 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15308 (grub_env_new_context): New function.
15309 (grub_env_context_open): Likewise.
15310 (grub_env_extractor_open): Likewise.
15311 (grub_env_extractor_close): Likewise.
15312 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15313 grub_extractor_level.
15314 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15315 * include/grub/env.h (grub_env_extractor_open): New proto.
15316 (grub_env_extractor_close): Likewise.
15317 * include/grub/normal.h (grub_extractor_level): New external variable.
15319 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15321 Make cutmem accept a region specification.
15322 Suggested by: Samuel Thibault
15324 * grub-core/mmap/mmap.c (parsemem): New function.
15325 (grub_cmd_cutmem): Handle new arguments.
15327 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15329 New command cutmem.
15331 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15332 (GRUB_MOD_INIT): Register new command.
15333 (GRUB_MOD_FINI): Unregister new command.
15335 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15337 Support some annoying BSD and Minix subpartitions.
15339 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15340 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15341 Properly handle concatenation.
15342 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15343 * grub-core/normal/completion.c (iterate_partition): Likewise.
15344 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15345 contain partition. All users updated.
15346 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15348 (grub_openbsdlabel_partition_map): Likewise.
15349 (bsdlabel_partition_map_iterate): Rename to ..
15350 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15351 (bsdlabel_partition_map_iterate): New function.
15352 (netopenbsdlabel_partition_map_iterate): Likewise.
15353 (netbsdlabel_partition_map_iterate): Likewise.
15354 (openbsdlabel_partition_map_iterate): Likewise.
15355 (GRUB_MOD_INIT): Register new partmaps.
15356 (GRUB_MOD_FINI): Unregister new partmaps.
15357 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15358 (grub_partition_msdos_iterate): ... this. All users updated.
15359 Don't support embedding other than in a minix partition.
15360 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15362 * include/grub/partition.h (grub_partition): New field msdostype.
15363 * util/grub-install.in: Handle openbsd and netbsd types being in
15366 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15368 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15370 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15371 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15372 (mdraid09): ... this.
15373 (mdraid1x): New module.
15374 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15375 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15377 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15379 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15382 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15384 * grub-core/commands/efi/lsefimmap.c: Correct header.
15387 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15389 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15390 as printf format strings; the translations might contain '%' which
15391 could cause a crash.
15393 * util/grub-fstest.c (argp_parser): Likewise.
15394 * util/grub-setup.c (argp_parser): Likewise.
15397 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15399 Use argp in grub-fstest.
15401 * util/grub-fstest.c: Don't include getopt.h.
15403 (root): New variable.
15404 (args_count): Likewise.
15406 (num_disks): Likewise.
15407 (images): Likewise.
15409 (debug_str): Likewise.
15411 (options): Transformed to argp.
15413 (main): Split argument parsing into ...
15414 (argp_parser): ... this. Changed to argp format.
15415 (argp): New variable.
15416 (main): Use argp_parse.
15418 2010-09-20 Tristan Gingold <gingold@free.fr>
15419 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15420 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15422 * grub-core/commands/efi/lsefimmap.c: New file.
15423 * grub-core/Makefile.core.def (lsefimmap): New module.
15424 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15426 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15428 Pause the execution (10s max) if any errors are displayed so the user
15429 has a chance to see them.
15431 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15432 (grub_print_error): Increment grub_err_printed_errors.
15433 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15434 execution if any errors were displayed.
15435 (show_menu): Remove old code for pause.
15436 * grub-core/normal/menu_entry.c (run): Likewise.
15437 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15439 (grub_normal_get_char_counter): Likewise.
15440 * include/grub/err.h (grub_err_printed_errors): New external variable.
15441 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15443 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15445 Support multiboot VBE info.
15447 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15448 Take VBE info into account.
15449 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15450 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15451 Call fill_vbe_info when appropriate.
15452 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15453 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15455 (grub_multiboot_get_mbi_size): Take new tags into account.
15456 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15457 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15458 Call fill_vbe_tag when appropriate.
15459 (grub_multiboot_make_mbi): Properly align tags.
15460 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15462 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15464 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15466 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15468 Suport manual terminal geometry specification.
15470 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15471 Save state in grub_ofconsole_terminfo_output.
15472 (grub_ofconsole_term): Use grub_terminfo_getwh.
15473 (grub_ofconsole_getwh): Removed.
15474 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15475 (grub_serial_term): Use grub_terminfo_getwh.
15476 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15477 (options): New struct.
15478 (OPTION_*): New enum.
15479 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15480 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15482 (grub_terminfo_getwh): New proto.
15483 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15485 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15487 Handle legacy "terminal" command.
15489 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15491 (legacy_commands): Add terminal and title.
15492 (grub_legacy_parse): Handle terminal. Simplify title handling.
15494 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15496 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15497 parameters overflow.
15499 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15501 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15504 * docs/grub.texi (Shell-like scripting): Document `!'.
15505 (Network): Simplify using new i386-pc-pxe format. Mention
15510 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15512 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15513 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15516 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15518 * grub-core/commands/efi/lsefisystab.c: Correct header.
15519 * grub-core/commands/efi/lssal.c: Likewise.
15520 * grub-core/commands/testload.c: Likewise.
15522 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15524 * util/grub-mkrescue.in: Add explicit root argument to --set to
15525 prevent the UUID being interpreted as an argument to --set (matches
15526 previous change to prepare_grub_to_access_device).
15528 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15530 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15531 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15532 the verbosity of later #ifs.
15533 (find_partition_start): Define this function on FreeBSD too.
15534 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15536 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15539 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15541 * util/grub-editenv.c: Use argp instead of getopt.
15543 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15545 * util/grub-setup.c: Use argp instead of getopt.
15547 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15549 Use gnulib-tool to create gnulib source files.
15551 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15552 grub-core/gnulib directories
15553 * .bzignore: Add **/.deps and autogenerated gnulib files
15554 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15555 of gnulib macros, add grub-core/gnulib/Makefile
15556 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15557 include m4 directory to aclocal.
15558 * Makefile.util.def: Remove direct compilation of gnulib source files
15559 and use the new grub-core/gnulib/libgnu.a.
15560 * build-aux/config.rpath: move config.rpath from top directory to
15562 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15564 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15565 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15566 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15568 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15571 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15573 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15574 grub-core/genmod.sh and grub-core/gensyminfo.sh
15576 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15578 Add a test for echo command options.
15580 * tests/grub_cmd_echo.in: New test.
15581 * Makefile.util.def: Rules for new test.
15583 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15585 Remove crc.mod and move crc command to hashsum.mod.
15586 Remove lib/crc.c - users updated to use gcrypt implementation.
15588 * grub-core/commands/crc.c: Removed.
15589 * grub-core/Makefile.core.def (crc): Module removed.
15590 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15591 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15592 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15593 * grub-core/lib/crc.c: Removed.
15594 * include/grub/lib/crc.h: Removed.
15595 * Makefile.util.def (crc): Remove lib/crc.c
15596 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15597 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15598 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15599 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15600 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15601 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15603 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15605 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15607 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15609 Split config.h for util and core.
15611 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15612 (ADDR32): Likewise.
15613 (DATA32): Likewise.
15614 (BSS_START_SYMBOL): Likewise.
15615 (END_SYMBOL): Likewise.
15616 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15617 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15618 * config.h.in: New file.
15619 * configure.ac: Use config-util.h as config define file.
15620 Rename MACHINE into GRUB_MACHINE. All users updated.
15621 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15623 (NESTED_FUNC_ATTR): Likewise.
15624 Substitue new variables.
15625 (COND_HAVE_ASM_USCORE): New conditional.
15626 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15627 (kernel_syms.lst): Use ASM_PREFIX.
15628 * grub-core/kern/emu/console.c: Include config-util.h.
15629 * grub-core/kern/emu/misc.c: Likewise.
15630 * grub-core/kern/emu/mm.c: Likewise.
15631 * include/grub/emu/misc.h: Likewise.
15632 * include/grub/libgcc.h: Likewise.
15634 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15636 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15638 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15639 Fix GRUB_TERM_KEY_* constants usage.
15640 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15642 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15644 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
15646 * grub-core/bus/usb/uhci.c: Remove empty define.
15647 (grub_uhci_check_transfer): Add missing cast.
15648 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
15650 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
15652 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
15654 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15656 * grub-core/Makefile.core.def (legacycfg): Add
15657 lib/i386/pc/vesa_modes_table.c on emu.
15659 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15661 Reduce number of temporary files generated by build system.
15663 * grub-core/gencmdlist.sh: Removed.
15664 * grub-core/genfslist.sh: Removed.
15665 * grub-core/genhandlerlist.sh: Removed.
15666 * grub-core/genmodsrc.sh: Removed.
15667 * grub-core/genpartmaplist.sh: Removed.
15668 * grub-core/genparttoollist.sh: Removed.
15669 * grub-core/gentermiinallist.sh: Removed.
15670 * grub-core/genvideolist.sh: Removed.
15672 * grub-core/genmod.sh.in: New file.
15673 * grub-core/gensyminfo.sh.in: New file.
15675 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
15676 * conf/Makefile.extra-dist: Update with new files.
15677 * gentpl.py: Remove rules related to unnecessary temporary files.
15678 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
15680 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
15682 * grub-core/bus/usb/uhci.c: Remove empty #define.
15683 * grub-core/genmoddep.awk: Updated with new syminfo format.
15684 * util/bash-completion.d/Makefile.am: Add config.log to
15687 2010-09-19 Yves Blusseau <blusseau@zetam.org>
15689 * Makefile.util.def: Add forgotten $(LIBINTL) library.
15691 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15693 * util/grub-mkconfig.in: Check the config script for syntax errors
15696 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
15697 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15699 * Makefile.util.def (grub-install): Use util/grub-install.in on all
15701 * util/grub-install.in: Add EFI and IEEE1275 support.
15702 * util/i386/efi/grub-install.in: Removed.
15703 * util/ieee1275/grub-install.in: Likewise.
15705 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15707 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
15708 (grub_cmd_cmosclean): Likewise.
15709 (GRUB_MOD_INIT): Register command cmosclean.
15710 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
15711 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
15713 2010-09-18 Carles Pina i Estany <carles@pina.cat>
15714 2010-09-18 Aleš Nesrsta <starous@volny.cz>
15715 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15717 Add keyboard layouts support.
15719 * Makefile.util.def (grub-mklayout): New file.
15720 (grub-kbdcomp): New script.
15721 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
15722 Add keyboard_layouts.h.
15723 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
15724 commands/boot.c on yeeloong.
15725 (keylayouts): New module.
15726 * grub-core/bus/usb/ohci.c
15727 * grub-core/bus/usb/uhci.c
15728 * grub-core/bus/usb/usbhub.c (rescan): New variable.
15729 (grub_usb_add_hub): Poll interrupt pipe for device handling.
15730 (attach_root_port): Likewise.
15731 (poll_nonroot_hub): Likewise.
15732 (grub_usb_poll_devices): Likewise.
15733 (detach_device): Close transfer.
15734 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
15736 (grub_usb_bulk_setup_readwrite): Likewise.
15737 (grub_usb_bulk_finish_readwrite): Likewise.
15738 * grub-core/commands/keylayouts.c: New file.
15739 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
15740 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
15742 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
15743 support scancode 2.
15744 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
15745 * include/grub/keyboard_layouts.h: New file.
15746 * util/grub-mklayout.c: New file.
15747 * util/grub-kbdcomp.in: Likewise.
15749 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15751 Unify memory types.
15753 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
15754 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
15756 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
15757 (grub_upper_mem): Likewise.
15758 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
15759 * include/grub/memory.h (grub_memory_type_t): New enum.
15762 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15764 * grub-core/Makefile.core.def (lsapm): New module.
15765 * grub-core/commands/i386/pc/lsapm.c: New file.
15766 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
15767 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
15769 * include/grub/i386/pc/apm.h: New file.
15770 * include/multiboot.h (multiboot_apm_info): New struct.
15772 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15774 GRUB-legacy configuration file support.
15776 * Makefile.util.def (grub-menulst2cfg): New util.
15777 * docs/man/grub-menulst2cfg.h2m: New file.
15778 * grub-core/Makefile.core.def (legacycfg): New module.
15779 * grub-core/commands/legacycfg.c: New file.
15780 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
15781 (grub_normal_add_menu_entry): ... this.
15782 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
15783 (grub_normal_set_password): ...this.
15784 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
15785 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
15786 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
15787 * grub-core/lib/legacy_parse.c: New file.
15788 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
15789 * include/grub/i386/pc/vesa_modes_table.h: New file.
15790 * include/grub/legacy_parse.h: Likewise.
15791 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
15792 * util/grub-menulst2cfg.c: New file.
15794 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15796 * grub-core/kern/emu/hostdisk.c
15797 (convert_system_partition_to_system_disk): Initialise node.
15799 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15801 * grub-core/kern/emu/hostdisk.c
15802 (convert_system_partition_to_system_disk): Fix devmapper memory pool
15804 Reported and based on patch by: Modestas Vainius.
15806 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15808 Fix DM-RAID probing with recent versions of device-mapper udev
15811 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
15812 canonicalise device paths under /dev/mapper/.
15813 (convert_system_partition_to_system_disk): Compare the
15814 uncanonicalised path to /dev/mapper/ rather than the canonicalised
15815 path, since device nodes under /dev/mapper/ are often symlinks.
15817 2010-09-17 Yves Blusseau <blusseau@zetam.org>
15819 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
15821 2010-09-16 Yves Blusseau <blusseau@zetam.org>
15823 * configure.ac: Avoid some annoying error messages if freetype-config
15824 program is not found.
15826 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15828 Support RAID on virtio devices, and others.
15830 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
15832 [__MINGW32__] (grub_find_device): ... this.
15833 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
15834 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
15835 reasonable default if dir is NULL.
15836 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
15838 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
15839 (grub_guess_root_device): Update callers.
15840 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
15842 * util/raid.c (grub_util_getdiskname): Remove.
15843 (grub_util_raid_getmembers): Use grub_find_device rather than
15844 grub_util_getdiskname.
15846 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15848 * docs/grub.texi (serial): Remove obsolete comment about GRUB
15849 needing to be compiled with serial support.
15850 (ls): Indicate that multiple files are accepted.
15851 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
15852 indicate that multiple files are accepted.
15854 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15856 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
15857 libgrub_a_init.c, and util/bash-completion.d/grub.
15859 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15861 * util/grub-setup.c (setup): Fix incorrect container semantics.
15863 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15865 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
15867 Reported by: J. Nick Terry
15869 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15871 Move embedding routines to partmap sources files.
15873 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
15874 [GRUB_UTIL]: New variable.
15875 (gpt_partition_map_iterate): Set part.parent.
15876 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
15877 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
15878 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
15880 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
15881 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
15882 (grub_partition_map) [GRUB_UTIL]: New field embed.
15883 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
15884 (setup): Use ->embed.
15886 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15888 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
15890 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
15891 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
15893 2010-09-15 Yves Blusseau <blusseau@zetam.org>
15895 Add function to get completions from usage.
15897 * util/bash-completion.d/grub-completion.bash.in: Add function to get
15898 completions from usage. Use LC_ALL=C to get options properly.
15900 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15902 * grub-core/gnulib/basename-lgpl.c: Imported.
15903 * grub-core/gnulib/basename.c: Likewise.
15904 * grub-core/gnulib/dirname-lgpl.c: Likewise.
15905 * grub-core/gnulib/dirname.c: Likewise.
15906 * grub-core/gnulib/dirname.h: Likewise.
15907 * grub-core/gnulib/stripslash.c: Likewise.
15909 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15911 * grub-core/gnulib/error.c: Resynced.
15912 * grub-core/gnulib/getopt.c: Likewise.
15913 * grub-core/gnulib/getopt_int.h: Likewise.
15914 * grub-core/gnulib/regex.h: Likewise.
15915 * grub-core/gnulib/regex_internal.c: Likewise.
15916 * grub-core/gnulib/regex_internal.h: Likewise.
15918 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15920 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
15921 CRC calculations and validity checks.
15922 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
15925 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15927 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
15929 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15931 Fix incorrect echo options handling.
15932 Reported by: Yves Blusseau.
15934 * include/grub/command.h (grub_command_flags_t): New flags
15935 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
15936 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
15937 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
15939 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15941 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
15943 (GRUB_COMMAND_FLAG_MENU): Likewise.
15944 (GRUB_COMMAND_FLAG_BOTH): Likewise.
15945 (GRUB_COMMAND_FLAG_TITLE): Removed.
15946 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
15947 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
15948 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
15949 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
15950 (grub_command_flags_t): New enum. All users updated.
15952 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
15954 Fix solaris compilation.
15956 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
15957 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
15958 (grub-emu-list): Likewise.
15960 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15962 Remove deprecated root command.
15964 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
15967 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15969 * util/i386/pc/grub-setup.c: Merge this ...
15970 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
15971 * util/grub-setup.c: ... into this.
15972 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
15975 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15977 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
15980 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15982 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
15985 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15987 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15988 explicit root argument to set to prevent UUID to be interpreted as
15991 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15993 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
15995 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15997 Don't export grub_gate_a20.
15999 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16000 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16002 (grub_gate_a20): ... this. All users updated.
16003 * include/grub/i386/pc/init.h: Removed. All users updated.
16005 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16007 Create euro.pf2 which supports most European languages.
16009 * Makefile.am (grubdata_DATA): Add euro.pf2.
16010 (euro.pf2): New target.
16011 (CLEANFILES): Add euro.pf2.
16013 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16015 * configure.ac: Disable emu-usb by default to prevent inadvertent
16018 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16020 Disable usbserial on grub-emu since our libusb code isn't good enough
16023 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16024 (usbserial_pl2303): Likewise.
16025 (usbserial_ftdi): Likewise.
16027 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16029 * include/grub/disk.h (grub_disk): Remove has_partitions.
16031 * disk/loopback.c (grub_loopback): Remove has_partitions.
16033 (options): Remove partitions. All users updated.
16034 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16035 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16036 actual partition table is found.
16038 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16040 Remove readability checks (too many false negatives).
16042 * util/grub-install.in: Remove readability checks.
16043 * util/grub-mkconfig.in: Likewise.
16044 * util/grub.d/10_hurd.in: Likewise.
16045 * util/grub.d/10_kfreebsd.in: Likewise.
16046 * util/grub.d/10_linux.in: Likewise.
16047 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16050 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16052 Enable acpi shutdown on all ACPI platforms.
16054 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16055 on coreboo, multiboot and EFI.
16056 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16057 (grub_acpi_halt): Likewise.
16058 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16059 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16060 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16061 * grub-core/lib/i386/halt.c (grub_halt)
16062 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16064 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16066 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16069 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16071 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16072 * grub-core/video/efi_uga.c: Likewise.
16074 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16076 Filter devaliases and never open same device twice.
16078 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16079 (last_ihandle): Likewise.
16080 (ofdisk_hash_ent): New member shortest.
16081 (ofdisk_hash_add): Add canonical path too.
16082 (scan): New function.
16083 (grub_ofdisk_iterate): Iterate over hashed entries.
16084 (compute_dev_path): Don't add :0.
16085 (grub_ofdisk_open): Don't really open the disk.
16086 (grub_ofdisk_close): Avoid closing unrelated disk.
16087 (grub_ofdisk_read): Implement reopen logic.
16088 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16090 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16093 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16097 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16098 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16099 right address. Add sparc64_ieee1275_ldflags.
16100 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16101 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16102 to grub_host_to_target_addr
16103 (load_image): Likewise.
16105 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16107 * grub-core/normal/completion.c (complete_file): Handle device
16109 Fix based on patch by Doug Nazar.
16111 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16113 grub-mknetdir script.
16115 * Makefile.util.def (grub-mknetdir): New module.
16116 * tests/util/grub-shell.in: Support boot=net
16117 * util/grub-mknetdir.in: New file.
16119 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16121 videoinfo on non-vbe.
16123 * grub-core/Makefile.core.def (vbeinfo): Removed.
16124 (vbetest): Removed.
16125 (videoinfo): New module.
16126 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16127 * grub-core/commands/i386/pc/vbetest.c: Removed.
16128 * grub-core/commands/videoinfo.c: New file.
16129 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16131 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16133 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16134 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16135 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16136 mode_number. New parameter mode. All users updated.
16137 (grub_video_gop_iterate): New function.
16138 (grub_video_efi_gop): New member iterate.
16139 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16140 (grub_vbe_set_video_mode): Remove setting useless fields.
16141 (vbe2videoinfo): New function.
16142 (grub_video_vbe_iterate): Likewise.
16143 (grub_video_vbe_setup): Use vbe2videoinfo.
16144 (grub_video_vbe_print_adapter_specific_info): New function.
16145 (grub_video_vbe_adapter): New fields iterate and
16146 print_adapter_specific_info.
16147 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16149 (grub_video_mode_info): New field mode_number.
16150 (grub_video_adapter): New fields iterate and
16151 print_adapter_specific_info.
16153 2010-09-13 Tristan Gingold <gingold@free.fr>
16154 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16155 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16157 * grub-core/commands/efi/lsefisystab.c: New file.
16158 * grub-core/commands/efi/lssal.c: Likewise.
16159 * grub-core/Makefile.core.def (lsacpi): New module.
16160 (lsefisystab): Likewise.
16161 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16162 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16163 (grub_efi_sal_system_table): New struct.
16164 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16165 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16166 (grub_efi_sal_system_table_platform_features): Likewise.
16167 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16168 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16169 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16170 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16172 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16174 Support explicit user claim that a device is BIOS-visible.
16176 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16177 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16178 * grub-core/kern/emu/hostdisk.c
16179 (convert_system_partition_to_system_disk): Support mdX.
16180 (find_system_device): New parameter add. All users updated.
16181 (grub_util_biosdisk_is_present): New function.
16182 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16185 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16187 Search hints support.
16189 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16192 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16194 Bash completion script for util commands
16196 * Makefile.am: Add util/bash-completion.d directory
16197 * configure.ac: Likewise.
16198 * util/bash-completion.d/Makefile.am: New file.
16199 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16201 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16203 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16204 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16205 Reported by: Yves Blusseau.
16207 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16209 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16210 partition size and offset.
16212 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16214 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16216 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16218 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16220 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16222 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16223 (grub_xvasprintf): Likewise.
16225 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16227 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16229 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16231 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16232 args ending with NULL.
16234 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16236 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16239 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16241 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16243 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16245 Shutdown using ACPI.
16247 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16248 * grub-core/commands/acpihalt.c: New file.
16249 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16250 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16251 (grub_acpi_halt): New proto.
16252 (GRUB_ACPI_SLP_EN): New const.
16253 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16254 (GRUB_ACPI_OPCODE_*): New enum.
16255 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16257 2010-09-11 Tristan Gingold <gingold@free.fr>
16258 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16259 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16261 * commands/lsacpi.c: New file.
16262 * grub-core/Makefile.core.def (lsacpi): New module.
16263 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16264 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16265 (grub_acpi_madt_entry_header): New struct.
16266 (grub_acpi_madt): Likewise.
16267 (grub_acpi_madt_entry_interrupt_override): Likewise.
16268 (grub_acpi_madt_entry_sapic): Likewise.
16269 (grub_acpi_madt_entry_lsapic): Likewise.
16270 (grub_acpi_madt_entry_platform_int_source): Likewise.
16271 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16272 (PRIuGRUB_UINT32_T): Likewise.
16273 (PRIxGRUB_UINT64_T): Likewise.
16275 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16277 Implement loading palette on ieee1275_fb.
16279 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16280 (have_setcolors): Likewise.
16281 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16282 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16283 (grub_video_ieee1275_set_palette): Implement.
16285 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16286 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16288 * util/grub-install.in (grub_partition): New variable.
16289 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16290 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16291 Fixes a bug reported by Yves Blusseau.
16293 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16297 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16298 =grub_cpu_flush_cache on all mips and not only yeeloong.
16299 * configure.ac (COND_mips): New conditional.
16300 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16302 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16303 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16304 [GRUB_LINKER_HAVE_INIT]: New function.
16305 (grub_emu_post_init): Likewise.
16306 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16307 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16308 * include/grub/cache.h (_mips): Include mips/cache.h.
16309 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16310 LVM and RAID prototypes.
16311 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16312 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16315 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16317 * util/grub-install.in: Don't try to verify core.img until after
16318 running grub-mkimage to create it.
16320 2010-09-10 Robert Millan <rmh@gnu.org>
16322 * util/grub.d/10_hurd.in: Add misc readability checks.
16323 * util/grub.d/10_kfreebsd.in: Likewise.
16324 * util/grub.d/10_linux.in: Likewise.
16326 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16328 * util/grub-install.in: ${imgext} won't be defined here until the
16329 install branch is merged. For the meantime, only verify core.img on
16330 i386-pc and sparc64-ieee1275 platforms.
16332 2010-09-10 Robert Millan <rmh@gnu.org>
16334 Solaris support in grub_find_zpool_from_dir(). Thanks
16335 Seth Goldberg for referring to getextmntent() facility.
16337 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16339 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16341 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16342 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16343 method for finding zpool name.
16345 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16347 grub-fstest needs the host and hostfs modules while other utilities
16348 actively require those modules to be absent, so grub-fstest needs
16349 its own initialisation and finalisation code.
16351 * Makefile.am (grub_fstest.pp): New target.
16352 (grub_fstest_init.lst): Likewise.
16353 (grub_fstest_init.c): Likewise.
16354 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16356 2010-09-10 Robert Millan <rmh@gnu.org>
16358 * configure.ac: Check for `struct statfs.f_fstypename' and
16359 `struct statfs.f_mntfromname'.
16361 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16362 kFreeBSD-specific code.
16364 2010-09-10 Robert Millan <rmh@gnu.org>
16366 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16367 on ZFS. Now non-main filesystems are supported as / too.
16369 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16371 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16372 and grub-core/disk/host.c to ...
16373 (grub-fstest): ... here. Having the host disk implementation
16374 present confuses grub-probe and other utility programs.
16376 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16377 when writing to a file, not when writing to stdout.
16379 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16381 * tests/partmap_test.in: New test for partitions.
16382 * Makefile.util.def: Rules for new test.
16384 2010-09-09 Robert Millan <rmh@gnu.org>
16386 * util/grub-probe.c (probe): Fix a pair of unhandled error
16389 2010-09-09 Robert Millan <rmh@gnu.org>
16391 Basic Btrfs support (detection and UUID).
16393 * grub-core/fs/btrfs.c: New file.
16394 * Makefile.util.def (library): Register btrfs.c.
16395 * grub-core/Makefile.core.def: Likewise.
16397 2010-09-08 Robert Millan <rmh@gnu.org>
16399 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16400 with (optional) parameters to specify device and relative path.
16401 * util/grub-install.in: Use is_path_readable_by_grub() to
16402 verify readability of a few critical files.
16403 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16404 verify readability of grub.cfg.new.
16406 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16408 Split minix.mod into minix.mod and minix2.mod.
16410 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16411 * grub-core/Makefile.core.def (minix2): New module.
16412 * grub-core/fs/minix.c: Use definitions instead of runtime version
16414 * grub-core/fs/minix2.c: New file.
16416 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16418 Add new --boot-directory option to replace --root-directory
16420 * util/grub-install.in: Add new --boot-directory option
16421 * util/grub-reboot.in: Likewise.
16422 * util/grub-set-default.in: Likewise.
16424 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16426 * util/grub-mkconfig.in: Use new variable.
16428 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16430 * configure.ac: Define some useful variables.
16432 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16434 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16435 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16436 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16437 Use terminfo and don't use cursor-on/cursor-off unless it's known
16439 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16440 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16442 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16444 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16445 starts with "(,", fill the drive containing the loaded image in
16446 between those two characters, but expect that a full partition
16447 specification including partition map names will follow.
16449 2010-09-08 Robert Millan <rmh@gnu.org>
16451 * configure.ac: Remove `--enable-grub-fstest' option.
16452 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16454 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16455 `grub-fstest' instead of `grub-probe' for readability verification.
16456 * util/grub-probe.c (probe): Remove readability verification kludge.
16458 2010-09-08 Robert Millan <rmh@gnu.org>
16460 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16461 initializing `GRUB_FS'.
16463 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16465 Not command (!) support to GRUB script.
16467 * tests/grub_script_not.in: New test.
16468 * Makefile.util.def: Rules for new test.
16470 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16471 ! command as a special case.
16472 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16474 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16476 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16479 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16481 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16483 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16485 * docs/grub.texi (Shell-like scripting): Documentation for break,
16486 continue, shift and return commands.
16488 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16490 Rename CD-ROM to cd on BIOS.
16492 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16494 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16496 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16498 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16499 * util/grub-probe.c (main): Likewise.
16500 * util/i386/pc/grub-setup.c (main): Likewise.
16501 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16502 Reported and debugged by: alexxy
16504 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16506 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16509 2010-09-05 Jo Shields <directhex@apebox.org>
16511 * util/grub.d/30_os-prober.in: Add missing classes.
16513 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16515 * docs/grub.texi (Theme file format): Document new position format.
16517 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16519 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16520 a table. Use @code instead of @verbatim.
16522 2010-09-05 Colin D Bennett <colin@gibibit.com>
16524 Gfxmenu documentation.
16526 * docs/grub.texi (Theme file format): New chapter.
16528 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16530 * grub-core/Makefile.core.def (xzio): New module.
16531 * grub-core/io/xzio.c: New file.
16532 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16533 * grub-core/lib/xzembed/xz_config.h: Likewise.
16534 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16535 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16536 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16537 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16538 * grub-core/lib/xzembed/xz_private.h: Likewise.
16539 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16540 * include/grub/file.h (grub_file_filter_id): New compression filter
16541 GRUB_FILE_FILTER_XZIO.
16543 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16545 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16546 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16549 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16551 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16552 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16554 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16556 Uncompressed checksum support.
16558 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16559 (check_list): New parameter uncompress.
16560 (grub_cmd_hashsum): Handle --uncompress.
16562 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16564 Reintroduce testload.
16566 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16568 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16569 (GRUB_MOD_INIT): New function.
16570 (GRUB_MOD_FINI): Likewise.
16571 * grub-core/Makefile.core.def (testload): New module.
16573 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16575 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16576 (uint8_t): New type.
16577 (uint16_t): Likewise.
16578 (uint32_t): Likewise.
16579 (uint64_t): Likewise.
16581 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16583 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16585 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16587 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16589 (grub_gzfile_open): Removed. All users updated.
16590 (GRUB_MOD_INIT): New function.
16591 (GRUB_MOD_FINI): Likewise.
16592 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16593 (grub_file_filters_enabled): Likewise.
16594 (grub_file_open): Handle filters.
16595 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16596 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16597 * include/grub/file.h (grub_file_filter_id_t): New type.
16598 (grub_file_filter_t): Likewise.
16599 (grub_file_filters_all): New extern variable.
16600 (grub_file_filters_enabled): Likewise.
16601 (grub_file_filter_register): New inline function.
16602 (grub_file_filter_unregister): Likewise.
16603 (grub_file_filter_disable): Likewise.
16604 (grub_file_filter_disable_compression): Likewise.
16605 * include/grub/gzio.h: Removed.
16607 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16609 Filename expansion support for wildcards in GRUB script.
16611 * tests/grub_script_expansion.in: New test.
16612 * Makefile.util.def: Rule for new test.
16614 * grub-core/commands/wildcard.c: New file, implements filename
16615 expansion support for GRUB script.
16616 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16617 * grub-core/script/argv.c: Cosmetic changes.
16618 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16619 Refactored to perform wildcard expansion on arguments.
16620 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16623 * tests/util/grub-shell.in: Fix quoting for read input.
16625 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16627 Support for updating environment variables with matched substrings
16630 * tests/grub_cmd_regexp.in: New test.
16631 * Makefile.util.def: Rule for new test.
16633 * grub-core/commands/regexp.c: New option -s to update environment
16634 variables with regexp matches.
16636 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16638 * include/grub/file.h (grub_file): New member not_easly_seekable.
16639 (grub_file_seekable): New inline function.
16640 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16642 (grub_gzio_open): Set not_easly_seekable.
16643 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
16644 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
16646 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16648 Support for options to appear multiple times on cmdline.
16650 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
16651 * grub-core/commands/extcmd.c: Support for repeatable option.
16652 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
16653 repeatable option support.
16655 Refactor menuentry into a regular command.
16657 * grub-core/commands/menuentry.c: New file, menuentry command
16659 * grub-core/Makefile.core.def: Rule update for normal.mod.
16660 * grub-core/normal/main.c: Moved menuentry creation to
16661 grub-core/commands/menuentry.c.
16662 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
16663 (grub_menu_execute_entry_real): Removed.
16664 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
16666 (grub_script_execute_menuentry): Removed.
16667 * grub-core/script/parser.y (menuentry): Removed.
16668 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
16669 * grub-core/script/yylex.l (menuentry): Removed.
16670 * include/grub/menu.h (grub_menu_init): New prototype.
16671 (grub_menu_fini): New prototype.
16672 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
16673 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
16674 (grub_script_execute_sourcecode): New prototype.
16676 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16678 "return" command for GRUB script functions.
16680 * tests/grub_script_return.in: New test.
16681 * Makefile.util.def: Rules for new test.
16683 * grub-core/script/execute.c (grub_script_return): New function.
16684 * grub-core/script/main.c: Register/unregister return commaond.
16685 * include/grub/script_sh.h (grub_script_return): New prototype.
16687 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16689 "setparams" command to update positional parameters.
16691 * tests/grub_script_setparams.in: New test.
16692 * Makefile.util.def: Rules for new test.
16694 * grub-core/script/argv.c (grub_script_argv_make): New function.
16695 * grub-core/script/execute.c (replace_scope): New function.
16696 (grub_script_setparams): New function.
16697 * grub-core/script/lexer.c: Remove unused variables.
16698 * grub-core/script/main.c: Register/unregister setparams command.
16699 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
16700 (grub_script_setparams): New prototype.
16702 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16704 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
16707 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16709 Support for passing block of commands as an argument to extcmds.
16711 * Makefile.util.def: Rules for new test.
16712 * tests/grub_script_blockarg.in: New test.
16713 * grub-core/tests/test_blockarg.c: New file, block argument
16714 command used in the test.
16716 * include/grub/extcmd.h (grub_extcmd_context): New struct.
16717 (grub_register_extcmd_prio): New function prototype.
16718 (grub_extcmd_dispatcher): New function prototype.
16719 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
16721 * include/grub/script_sh.h (struct grub_script): New members
16722 `children', `next_siblings' and `refcnt' for block arguments and
16723 reference counting.
16724 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
16725 (grub_script_arg): New member `script' for block argument.
16726 (grub_script_argv): New member `script' for block argument.
16727 (grub_parser_param): New member `scripts' for block argument.
16728 (grub_script_mem_free): New extern function prototype.
16729 (grub_script_ref): New function prototype.
16730 (grub_script_unref): New function prototype.
16732 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
16733 extcmd form to support block arguments.
16734 * grub-core/script/argv.c: Block arguments support.
16735 * grub-core/script/execute.c: Likewise.
16736 * grub-core/script/lexer.c: Likewise.
16737 * grub-core/script/main.c: Likewise.
16738 * grub-core/script/script.c: Likewise.
16739 * grub-core/script/parser.y: Likewise. New `block' and `block0'
16742 * grub-core/commands/acpi.c: Update extcmd implementations with
16743 grub_extcmd_context_t.
16744 * grub-core/commands/cat.c: Likewise.
16745 * grub-core/commands/echo.c: Likewise.
16746 * grub-core/commands/extcmd.c: Likewise.
16747 * grub-core/commands/hashsum.c: Likewise.
16748 * grub-core/commands/hdparm.c: Likewise.
16749 * grub-core/commands/help.c: Likewise.
16750 * grub-core/commands/hexdump.c: Likewise.
16751 * grub-core/commands/i386/cpuid.c: Likewise.
16752 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16753 * grub-core/commands/i386/pc/halt.c: Likewise.
16754 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16755 * grub-core/commands/iorw.c: Likewise.
16756 * grub-core/commands/keystatus.c: Likewise.
16757 * grub-core/commands/loadenv.c: Likewise.
16758 * grub-core/commands/ls.c: Likewise.
16759 * grub-core/commands/lspci.c: Likewise.
16760 * grub-core/commands/memrw.c: Likewise.
16761 * grub-core/commands/probe.c: Likewise.
16762 * grub-core/commands/search_wrap.c: Likewise.
16763 * grub-core/commands/setpci.c: Likewise.
16764 * grub-core/commands/sleep.c: Likewise.
16765 * grub-core/disk/loopback.c: Likewise.
16766 * grub-core/hello/hello.c: Likewise.
16767 * grub-core/loader/i386/bsd.c: Likewise.
16768 * grub-core/loader/xnu.c: Likewise.
16769 * grub-core/term/gfxterm.c: Likewise.
16770 * grub-core/term/serial.c: Likewise.
16771 * grub-core/tests/lib/functional_test.c: Likewise.
16773 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16775 Multi-line quoted strings support.
16777 * grub-core/script/lexer.c (append_newline): Removed.
16778 (grub_script_lexer_yywrap): Refactored.
16779 (grub_script_lexer_init): Refactored.
16780 * grub-core/script/yylex.l (yywrap): New function.
16781 (grub_lexer_resplit): New function.
16782 (grub_lexer_unput): New function.
16783 * include/grub/script_sh.h (grub_lexer_param): New members, unput
16785 * tests/grub_script_echo1.in: Added few more testcases.
16787 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16789 * grub-core/kern/misc.c: Don't add abort alias in utils.
16790 Reported by: echoline.
16792 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
16794 Add missing files into "make dist" tarball for other platforms.
16796 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
16797 * conf/Makefile.common (dist_noinst_DATA): New variable.
16798 * conf/Makefile.extra-dist: Added missing make dist files.
16799 * grub-core/Makefile.core.def: Likewise.
16801 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16803 Compress grub_prefix.
16805 * grub-core/boot/i386/pc/lnxboot.S: Use
16806 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
16807 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
16808 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
16809 GRUB_MACHINE_PREFIX_END. All users updated.
16810 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
16811 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
16813 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16814 * util/grub-mkimage.c (image_target_desc): Change data_end to
16815 prefix_end. All users updated.
16817 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16819 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
16821 (grub_openbsd_boot): Likewise.
16822 (grub_netbsd_boot): Likewise.
16823 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
16824 (grub_xnu_boot): Likewise.
16826 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16828 * configure.ac: Clean LIBS variable after tests.
16830 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16832 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
16834 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16836 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
16837 echo if libdevmapper will be used.
16839 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
16841 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
16842 constant for the same file.
16844 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16846 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
16848 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16850 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
16853 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16855 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
16856 required by the boot protocol.
16858 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
16859 ebp and edi members.
16860 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
16861 state.ebp and state.edi.
16862 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
16863 %ebp and %edi according to grub_relocator32_ebp and
16864 grub_relocator32_edi respectively.
16865 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
16868 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16870 Add i386-pc-pxe image target.
16872 * util/grub-mkimage.c (image_target_desc): New enum value
16874 (image_targets): New target i386-pc-pxe.
16875 (generate_image): Handle i386-pc-pxe image.
16877 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16881 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
16882 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
16884 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
16885 (grub_pxe_pxenv): Correct type.
16887 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16889 * NEWS: Document most of the important changes since 1.98.
16891 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16893 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
16894 generated manual page) a little.
16896 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16898 * docs/grub.texi: Add myself as an author.
16900 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16902 * Makefile.util.def (libgrub.a): Add missing sunpc.
16903 Reported by: Seth Goldberg.
16905 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16907 Interrupt wrapping and code simplifications.
16909 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
16910 x86_noieee1275 which are functionaly equivalent in this case.
16911 (grub-install): Make source on each platform explicit. Enable on
16913 * gentpl.py (x86_efi_pc): Removed group.
16914 (x86_noefi): Likewise.
16915 (i386_noefi): Likewise.
16916 (x86_noieee1275): Likewise.
16917 (i386_noieee1275): Likewise.
16918 (i386_noefi_noieee1275): Likewise.
16919 (i386_pc_qemu_coreboot): Likewise.
16920 (i386_coreboot_multiboot): Likewise.
16921 (i386_pc_coreboot_multiboot_qemu): Likewise.
16922 (x86_noefi_mips): Likewise.
16923 (noieee1275): Likewise.
16924 (ieee1275_mips): Likewise.
16925 (noemu_noieee1275): Likewise.
16928 (videoinkernel): Likewise.
16929 (videomodules): Likewise.
16930 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
16931 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
16932 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
16933 include/grub/loader.h, include/grub/msdos_partition.h,
16934 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
16935 include/grub/machine/console.h, include/grub/machine/vga.h,
16936 include/grub/machine/vbe.h, include/grub/machine/init.h,
16937 include/grub/machine/kernel.h, include/grub/cpu/time.h,
16938 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
16939 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
16940 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
16941 * grub-core/Makefile.core.def (kernel): Explicit the source for
16942 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
16943 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
16944 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
16945 Use videoinkernel tag.
16946 (usb): Enable on all usb.
16947 (usbserial_common): Likewise.
16948 (usbserial_pl2303): Likewise.
16949 (usbserial_ftdi): Likewise.
16950 (uhci): Enable on all x86.
16951 (ohci): Enable on all pci.
16952 (cmostest): Enable on all CMOS.
16953 (acpi): Include commands/acpi.c on all platforms.
16954 (halt): Add relevant lib/*/halt.c.
16955 (hdparm): Enable on all pci.
16957 (usbtest): Enable on all usb.
16958 (ata): Enable on all pci.
16959 (ata_pthru): Likewise.
16960 (usbms): Enable on all usb.
16961 (usb_keyboard): Likewise.
16962 (font): Use tag videomodules.
16964 (datetime): Use tag cmos. Enable on all noemu.
16965 (mmap): Use tags common and x86.
16966 (gfxterm): Use tag videomodules.
16967 (bitmap): Likewise.
16968 (bitmap_scale): Likewise.
16969 (video_fb): Likewise.
16971 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
16972 adjust padding accordingly. All users updated.
16973 (grub_ohci_transaction): Fix bad format specification.
16974 (GRUB_MOD_INIT): Add asserts for struct size.
16975 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
16976 (grub_alloc_td): Likewise.
16977 (grub_free_queue): Likewise.
16978 (grub_uhci_transfer): Likewise.
16979 (grub_uhci_transaction): Fix bad format specification.
16980 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16981 (grub_usb_bulk_readwrite): Likewise.
16982 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
16983 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
16985 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
16987 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
16988 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
16989 Transformed into C.
16990 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
16991 Moved from here ...
16992 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
16993 ... here. Transformed into C. Made static.
16994 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
16995 Moved from here ...
16996 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
16997 ... here. Transformed into C. Made static.
16998 * grub-core/kern/i386/pc/startup.S
16999 (grub_biosdisk_check_int13_extensions): Moved from here ...
17000 * grub-core/disk/i386/pc/biosdisk.c
17001 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17003 * grub-core/kern/i386/pc/startup.S
17004 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17005 * grub-core/disk/i386/pc/biosdisk.c
17006 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17007 Transformed into C. Made static.
17008 * grub-core/kern/i386/pc/startup.S
17009 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17010 * grub-core/disk/i386/pc/biosdisk.c
17011 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17012 Transformed into C. Made static.
17013 * grub-core/kern/i386/pc/startup.S
17014 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17015 * grub-core/disk/i386/pc/biosdisk.c
17016 (grub_biosdisk_get_diskinfo_standard): ... here.
17017 Transformed into C. Made static.
17018 * grub-core/kern/i386/pc/startup.S
17019 (grub_biosdisk_get_num_floppies): Moved from here ...
17020 * grub-core/disk/i386/pc/biosdisk.c
17021 (grub_biosdisk_get_num_floppies): ... here.
17022 Transformed into C. Made static.
17023 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17025 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17026 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17027 Transformed into C. Made static.
17028 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17029 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17030 Transformed into C. Made static.
17031 * grub-core/kern/i386/ieee1275/init.c: Removed.
17032 * grub-core/kern/i386/misc.S: Likewise.
17033 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17034 Splitted from here ...
17035 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17036 Transformed into C. Made static. All users updated.
17037 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17038 Transformed into C. Made static. All users updated.
17039 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17041 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17042 Transformed into C. Made static. All users updated.
17043 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17045 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17046 Transformed into C. Made static. All users updated.
17047 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17048 Removed (replaced by C version).
17049 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17051 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17052 Transformed into C. Made static.
17053 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17055 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17056 ... here. Transformed into C.
17057 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17059 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17060 ... here. Transformed into C.
17061 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17063 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17064 ... here. Transformed into C. Made static.
17065 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17067 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17068 ... here. Transformed into C.
17069 * grub-core/kern/i386/pc/startup.S
17070 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17071 * grub-core/video/i386/pc/vbe.c
17072 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17073 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17075 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17076 ... here. Transformed into C.
17077 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17079 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17080 ... here. Transformed into C.
17081 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17083 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17084 ... here. Transformed into C.
17085 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17087 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17088 ... here. Transformed into C.
17089 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17091 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17092 ... here. Transformed into C. Made static.
17093 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17095 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17096 ... here. Transformed into C. Made static.
17097 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17099 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17100 ... here. Transformed into C. Made static.
17101 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17102 pxe_rm_entry as third argument.
17103 (grub_bios_interrupt): New function.
17104 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17105 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17106 of calling grub_stop.
17107 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17108 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17109 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17110 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17111 * grub-core/lib/i386/halt.c: Moved from here ...
17112 * grub-core/lib/i386/halt.c: ... here.
17113 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17114 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17115 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17117 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17118 * include/grub/i386/coreboot/init.h: Removed.
17119 * include/grub/i386/multiboot/init.h: Likewise.
17120 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17121 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17122 * include/grub/i386/pc/int.h: New file.
17123 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17124 (grub_pxe_scan): Removed.
17125 (grub_pxe_call): Update prototype.
17126 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17128 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17129 * include/grub/i386/qemu/init.h: Removed.
17130 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17132 (grub_halt): Likewise.
17133 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17134 (grub_reboot): Likewise.
17135 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17136 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17137 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17139 2010-08-30 Robert Millan <rmh@gnu.org>
17141 * NEWS: Document addition of ZFS support in `grub-install' and
17144 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17146 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17149 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17151 Remove leftover embedding of font objects.
17153 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17154 * util/grub-install.in (font): Removed.
17155 * util/grub-mkimage.c (generate_image): Remove font support. All users
17158 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17160 Remove leftover embedding of font objects.
17162 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17163 * util/grub-install.in (font): Removed.
17164 * util/grub-mkimage.c (generate_image): Remove font support. All users
17167 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17169 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17170 Reported by: Ian Turner
17172 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17174 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17175 timeout to avoid indefinite boot stalling.
17177 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17179 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17180 (grub_env_write_color_highlight): Likewise.
17182 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17184 * grub-core/normal/term.c (print_more): Return to normal and not
17185 to standard state after printing "---MORE---".
17187 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17189 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17190 Mask out the bit 0x80 since it has other meaning that specifiing color.
17192 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17194 New relocator. Allows for more kernel support and more straightforward
17197 * Makefile.am (BOOTTARGET): New variable.
17198 (QEMU32): Likewise.
17199 (linux.init.x86_64): New target.
17200 (linux.init.i386): Likewise.
17201 (multiboot.elf): Likewise.
17202 (kfreebsd.elf): Likewise.
17203 (kfreebsd.aout): Likewise.
17204 (pc-chainloader.elf): Likewise.
17205 (pc-chainloader.bin): Likewise.
17206 (ntldr.elf): Likewise.
17207 (ntldr.bin): Likewise.
17208 (multiboot2.elf): Likewise.
17209 (kfreebsd.init.x86_64): Likewise.
17210 (kfreebsd.init.i386): Likewise.
17211 (knetbsd.init.i386): Likewise.
17212 (kopenbsd.init.i386): Likewise.
17213 (knetbsd.init.x86_64): Likewise.
17214 (kopenbsd.init.x86_64): Likewise.
17215 (linux-initramfs.i386): Likewise.
17216 (linux-initramfs.x86_64): Likewise.
17217 (kfreebsd-mfsroot.i386.img): Likewise.
17218 (knetbsd.image.i386): Likewise.
17219 (kopenbsd.image.i386): Likewise.
17220 (kopenbsd.image.x86_64): Likewise.
17221 (knetbsd.miniroot-image.i386.img): Likewise.
17222 (kfreebsd-mfsroot.x86_64.img): Likewise.
17223 (knetbsd.image.x86_64): Likewise.
17224 (knetbsd.miniroot-image.x86_64.img): Likewise.
17225 (kfreebsd-mfsroot.i386.gz): Likewise.
17226 (bootcheck-kfreebsd-i386): Likewise.
17227 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17228 (bootcheck-kfreebsd-x86_64): Likewise.
17229 (knetbsd.miniroot-image.i386.gz): Likewise.
17230 (bootcheck-knetbsd-i386): Likewise.
17231 (bootcheck-kopenbsd-i386): Likewise.
17232 (bootcheck-kopenbsd-x86_64): Likewise.
17233 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17234 (bootcheck-knetbsd-x86_64): Likewise.
17235 (bootcheck-linux-i386): Likewise.
17236 (bootcheck-linux-x86_64): Likewise.
17237 (bootcheck-linux16-i386): Likewise.
17238 (bootcheck-linux16-x86_64): Likewise.
17239 (bootcheck-multiboot): Likewise.
17240 (bootcheck-multiboot2): Likewise.
17241 (bootcheck-kfreebsd-aout): Likewise.
17242 (bootcheck-pc-chainloader): Likewise.
17243 (bootcheck-ntldr): Likewise.
17244 (CLEANFILES): Add new targets.
17245 (BOOTCHECKS): New variable.
17246 (.PHONY): Add bootchecks.
17247 (SUCCESSFUL_BOOT_STRING): New variable.
17248 (BOOTCHECK_TIMEOUT): Likewise.
17249 (bootcheck): New target
17250 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17251 * configure.ac: Correct efiemu excuse.
17252 * docs/grub.texi (Supported kernels): New chapter.
17253 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17254 include/grub/mm_private.h. Simplify inclusion of
17255 include/grub/boot.h, include/grub/loader.h
17256 and include/grub/msdos_partition.h
17257 (KERNEL_HEADER_FILES) [i386_coreboot]:
17258 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17259 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17260 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17261 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17262 include/grub/machine/loader.h.
17263 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17264 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17266 (pci.mod): Enable on i386-multiboot.
17267 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17268 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17270 (relocator.mod): Rewritten.
17271 (aout.mod): Enable on all x86.
17272 (bsd.mod): Likewise.
17273 (ntldr.mod): New module.
17274 (linux.mod): Use loader/i386/linux.c on all x86.
17275 (xnu.mod): Enable on all x86.
17276 (vga_text.mod): disable on EFI and QEMU.
17277 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17278 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17279 * grub-core/efiemu/loadcore.c: Likewise.
17280 * grub-core/efiemu/main.c: Likewise.
17281 (grub_efiemu_exit_boot_services): Removed.
17282 (grub_efiemu_finish_boot_services): Likewise.
17283 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17285 * grub-core/efiemu/i386/nocfgtables.c: New file.
17286 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17287 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17288 (grub_efi_finish_boot_services): Moved from here ...
17289 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17290 Fille finish memory map and related data.
17291 (finish_mmap_buf): New variable.
17292 (grub_efi_uintn_t finish_mmap_size): Likewise.
17293 (grub_efi_uintn_t finish_key): Likewise.
17294 (grub_efi_uintn_t finish_desc_size): Likewise.
17295 (grub_efi_uint32_t finish_desc_version): Likewise.
17296 (grub_efi_is_finished): Likewise.
17297 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17299 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17300 (grub_elf64_phdr_iterate): Likewise.
17301 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17302 (grub_os_area_size): Likewise.
17303 (grub_machine_init): Don't reserve os area.
17304 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17305 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17306 * grub-core/kern/i386/loader.S: Removed.
17307 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17308 (grub_os_area_size): Likewise.
17309 (grub_machine_init): Don't reserve os area.
17310 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17311 Don't call grub_dl_unload_all.
17312 Don't include loader.S.
17313 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17314 Declare the memory after _end as available.
17315 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17316 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17317 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17318 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17319 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17320 * include/grub/mm_private.h (grub_mm_header): ... here.
17321 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17322 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17323 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17324 (grub_mm_region): ..here. Removed addr. Added pre_size.
17326 * grub-core/kern/mm.c (base): Renamed to ...
17327 (grub_mm_base): ... this. Made global.
17328 (grub_real_malloc): Alloc from end of region.
17329 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17330 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17331 * grub-core/kern/powerpc/cache_flush.S: ... here.
17332 * grub-core/lib/efi/relocator.c: New file.
17333 * grub-core/lib/i386/relocator.c: Rewritten.
17334 * grub-core/lib/i386/relocator16.S: New file.
17335 * grub-core/lib/i386/relocator32.S: Likewise.
17336 * grub-core/lib/i386/relocator64.S: Likewise.
17337 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17338 * grub-core/lib/i386/relocator_common.S: New file.
17339 * grub-core/lib/ieee1275/relocator.c: Likewise.
17340 * grub-core/lib/mips/relocator.c: Rewritten.
17341 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17342 stylistic adjustments.
17343 * grub-core/lib/powerpc/relocator.c: New file.
17344 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17345 * grub-core/lib/relocator.c: Rewritten.
17346 * grub-core/lib/x86_64/relocator_asm.S: New file.
17347 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17348 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17349 (bsd_tag): New struct.
17350 (tags): New variable.
17351 (tags_last): Likewise.
17352 (netbsd_module): New struct.
17353 (netbsd_mods): New variable.
17354 (netbsd_mods_last): Likewise.
17355 (openbsd_opts): New parameter "serial".
17356 (OPENBSD_SERIAL_ARG): New definition.
17357 (netbsd_opts): New parameter "serial".
17358 (NETBSD_SERIAL_ARG): New definition.
17359 (grub_freebsd_add_meta): Reorganised into ...
17360 (grub_bsd_add_meta): ...this. All users updated.
17361 (grub_freebsd_add_mmap): Reorganised into ...
17362 (generate_e820_mmap): ...this...
17363 (grub_bsd_add_mmap): ...and this. All users updated.
17364 (grub_freebsd_list_modules): Use tags.
17365 (grub_netbsd_add_meta_module): New function.
17366 (grub_netbsd_list_modules): Likewise.
17367 (grub_freebsd_boot): Use relocator and finish EFI.
17368 (grub_openbsd_boot): Likewise.
17369 (grub_netbsd_setup_video): New function.
17370 (grub_netbsd_add_modules): Likewise.
17371 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17373 (grub_bsd_unload): Unload tags.
17374 (grub_bsd_load_aout): Use relocator.
17375 (grub_bsd_elf32_size_hook): New function.
17376 (grub_bsd_elf32_hook): Use relocator.
17377 (grub_bsd_elf64_size_hook): New function.
17378 (grub_bsd_elf64_hook): Use relocator.
17379 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17380 (grub_bsd_load): Zero-out openbsd_ramdisk.
17381 (grub_bsd_load): Use relocator.
17382 (grub_cmd_openbsd): Support serial.
17383 (grub_cmd_netbsd): Support modules.
17384 (grub_cmd_freebsd_module): Use relocator.
17385 (grub_netbsd_module_load): New function.
17386 (grub_cmd_netbsd_module): Likewise.
17387 (grub_cmd_openbsd_ramdisk): Likewise.
17388 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17390 (GRUB_MOD_FINI): Unregister new commands.
17391 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17392 (grub_freebsd_load_elfmodule_obj): Use relocator.
17393 (grub_freebsd_load_elfmodule): Likewise.
17394 (grub_freebsd_load_elf_meta): Likewise.
17395 (grub_netbsd_load_elf_meta): New function.
17396 (grub_openbsd_find_ramdisk): Likewise.
17397 * grub-core/loader/i386/bsd_helper.S: Removed.
17398 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17399 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17400 * grub-core/loader/i386/efi/linux.c: Likewise.
17401 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17402 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17403 (DEFAULT_VIDEO_MODE): Likewise.
17404 (real_mode_target): New variable.
17405 (prot_mode_target): Likewise.
17406 (initrd_mem_target): Likewise.
17407 (relocator): Likewise.
17408 (efi_mmap_buf): Likewise.
17409 (efi_mmap_size): Likewise.
17410 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17411 (free_pages): Use relocator.
17412 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17413 (grub_linux_setup_video): Return error.
17414 (grub_linux_trampoline_start): Removed.
17415 (grub_linux_trampoline_end): Likewise.
17416 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17417 andd video parameters depending on firmware.
17418 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17419 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17420 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17421 (grub_cmd_initrd): Use relocator.
17422 * grub-core/loader/i386/linux_trampoline.S: Removed.
17423 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17424 (elf_sec_entsize): Likewise.
17425 (elf_sec_shstrndx): Likewise.
17426 (elf_sections): Likewise.
17427 (grub_multiboot_load): Use relocator.
17428 (grub_multiboot_get_mbi_size): Account for sections.
17429 (grub_multiboot_make_mbi): Use relocator and support sections.
17430 (grub_multiboot_add_elfsyms): New function.
17431 (grub_multiboot_free_mbi): Free sections.
17432 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17433 (grub_linux_real_target): Likewise.
17434 (grub_linux_real_chunk): Likewise.
17435 (grub_linux16_prot_size): Likewise.
17436 (grub_linux16_boot): Use relocator.
17437 (grub_linux_unload): Unload relocator.
17438 (grub_cmd_linux): Use relocator.
17439 (grub_cmd_initrd): Likewise.
17440 * grub-core/loader/i386/pc/ntldr.c: New file.
17441 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17442 Don't try to guess CPU frequency.
17443 (grub_xnu_set_video): Stretch bitmap.
17444 (grub_xnu_boot): Use relocator.
17445 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17446 (grub_linux_unload): Free relocator.
17447 (grub_linux_load32): Use relocator.
17448 (grub_linux_load64): Likewise.
17449 (grub_cmd_initrd): Likewise.
17450 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17451 (grub_multiboot_unload): Unload relocator.
17452 (grub_cmd_multiboot): Use relocator.
17453 (grub_cmd_module): Likewise.
17454 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17455 Use relocator and support sections.
17456 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17457 (elf_sec_entsize): Likewise.
17458 (elf_sec_shstrndx): Likewise.
17459 (elf_sections): Likewise.
17460 (grub_multiboot_load): Use relocator.
17461 (grub_multiboot_get_mbi_size): Account for sections.
17462 (grub_multiboot_make_mbi): Use relocator and support sections.
17463 (grub_multiboot_add_elfsyms): New function.
17464 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17465 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17466 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17467 Prototype changed. All users updated.
17468 (grub_xnu_align_heap): Simplified.
17469 (grub_xnu_writetree_toheap): Likewise.
17470 (grub_xnu_unload): Unload relocator.
17471 (grub_cmd_xnu_kernel): Use relocator.
17472 (grub_cmd_xnu_kernel64): Likewise.
17473 (grub_xnu_register_memory): Simplified.
17474 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17475 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17477 (grub_console_checkkey): Likewise.
17478 (grub_console_getkey): Likewise.
17479 (grub_console_getwh): Likewise.
17480 (grub_console_getxy): Likewise.
17481 (grub_console_gotoxy): Likewise.
17482 (grub_console_cls): Likewise.
17483 (grub_console_setcolorstate): Likewise.
17484 (grub_console_setcursor): Likewise.
17485 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17486 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17487 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17488 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17489 * grub-core/tests/boot/kernel-8086.S: Likewise.
17490 * grub-core/tests/boot/kernel-i386.S: Likewise.
17491 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17492 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17493 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17494 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17495 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17496 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17497 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17498 * grub-core/tests/boot/linux.cfg: Likewise.
17499 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17500 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17501 * grub-core/tests/boot/linux16.cfg: Likewise.
17502 * grub-core/tests/boot/multiboot.cfg: Likewise.
17503 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17504 * grub-core/tests/boot/ntldr.cfg: Likewise.
17505 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17506 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17507 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17509 * include/grub/dl.h (grub_dl_unload_all): Removed.
17510 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17511 (grub_efi_finish_boot_services): Change prototype.
17512 (grub_efi_is_finished): New variable.
17513 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17515 (grub_efiemu_finish_boot_services): Removed.
17516 (grub_machine_efiemu_init_tables): New prototype.
17517 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17518 (grub_elf64_phdr_iterate): Likewise.
17519 * include/grub/i386/bsd.h: Include relocator.h.
17520 (freebsd_tag_header): New struct.
17521 (grub_openbsd_bios_mmap): Removed.
17522 (grub_unix_real_boot): Removed.
17523 (grub_freebsd_load_elfmodule32): Changed prototype.
17524 (grub_freebsd_load_elfmodule_obj64): Likewise.
17525 (grub_freebsd_load_elf_meta32): Likewise.
17526 (grub_freebsd_load_elf_meta64): Likewise.
17527 (grub_freebsd_add_meta): Removed.
17528 (grub_netbsd_load_elf_meta32): New prototype.
17529 (grub_netbsd_load_elf_meta64): Likewise.
17530 (grub_bsd_add_meta): Likewise.
17531 (grub_openbsd_ramdisk_descriptor): New struct.
17532 (grub_openbsd_find_ramdisk32): New prototype.
17533 (grub_openbsd_find_ramdisk64): Likewise.
17534 * include/grub/i386/coreboot/loader.h: Removed.
17535 * include/grub/i386/efi/loader.h: Likewise.
17536 * include/grub/i386/ieee1275/loader.h: Likewise.
17537 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17539 * include/grub/i386/loader.h: Removed.
17540 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17542 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17543 (grub_phys_addr_t): New type.
17544 (grub_vtop): New inline function.
17545 (grub_map_memory): Likewise.
17546 (grub_unmap_memory): Likewise.
17547 * include/grub/i386/multiboot/loader.h: Removed.
17548 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17549 (NETBSD_BTINFO_CONSOLE): New definition.
17550 (NETBSD_BTINFO_SYMTAB): Likewise.
17551 (NETBSD_BTINFO_MODULES): Likewise.
17552 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17553 (grub_netbsd_bootinfo): New struct.
17554 (grub_netbsd_btinfo_common): Use explicit bitsize.
17555 (grub_netbsd_btinfo_mmap_entry): Removed.
17556 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17557 (grub_netbsd_btinfo_bootdisk): New struct.
17558 (grub_netbsd_btinfo_symtab): Likewise.
17559 (grub_netbsd_btinfo_serial): Likewise.
17560 (grub_netbsd_btinfo_modules): Likewise.
17561 (grub_netbsd_btinfo_framebuf): Likewise.
17562 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17563 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17565 (grub_openbsd_bootargs): Use explicit bitsize.
17566 (grub_openbsd_bootarg_console): New struct.
17567 (GRUB_OPENBSD_COM_MAJOR): New definition.
17568 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17569 * include/grub/i386/pc/efiemu.h: Removed.
17570 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17571 * include/grub/i386/qemu/loader.h: Removed.
17572 * include/grub/i386/relocator.h: Rewritten.
17573 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17574 * include/grub/mips/memory.h: New file.
17575 * include/grub/mips/multiboot.h: Rewritten.
17576 * include/grub/mips/relocator.h: Rewritten.
17577 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17578 (grub_vtop): New function.
17579 (grub_map_memory): Likewise.
17580 (grub_unmap_memory): Likewise.
17581 * include/grub/misc.h (ALIGN_DOWN): New definition.
17582 * include/grub/mm.h (grub_mm_check_real): New proto.
17583 (GRUB_MM_CHECK): New definition.
17584 * include/grub/mm_private.h: New file.
17585 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17586 (grub_multiboot_get_mbi_size): Removed.
17587 (grub_multiboot_make_mbi): Change prottype.
17588 (grub_multiboot_set_accepts_video): New proto.
17589 (grub_multiboot_add_elfsyms): Likewise.
17590 (grub_multiboot_payload_eip): New variable.
17591 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17593 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17595 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17596 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17597 * include/grub/powerpc/ieee1275/loader.h: Removed.
17598 * include/grub/powerpc/memory.h: New file.
17599 * include/grub/powerpc/relocator.h: Likewise.
17600 * include/grub/relocator.h: Likewise.
17601 * include/grub/relocator_private.h: Likewise.
17602 * include/grub/sparc64/ieee1275/loader.h: Removed.
17603 * include/grub/x86_64/memory.h: New file.
17604 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17605 (grub_xnu_heap_malloc): Likewise.
17606 (grub_xnu_heap_real_start): Removed.
17607 (grub_xnu_heap_start): Likewise.
17608 (grub_xnu_relocator): New variable.
17609 (grub_xnu_heap_target_start): Likewise.
17610 * tests/util/grub-shell.in: Support non-pc.
17611 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17613 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17615 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17617 (grub_bidi_logical_to_visual): Check that malloc succeded.
17618 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17620 (grub_xputs_normal): Likewise.
17622 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17624 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17627 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17629 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17631 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17633 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17635 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17637 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17640 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17642 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
17644 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17646 * grub-core/normal/term.c (print_more): Fix a memory leak.
17647 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
17648 (grub_xputs_normal): Likewise.
17650 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17652 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
17653 the begining of the string
17655 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17657 * grub-core/script/script.c (grub_script_parse): Free parsed on
17660 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17662 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
17665 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17667 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
17670 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17672 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
17673 (scroll_up): Fix a memory leak.
17675 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17677 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
17680 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
17682 Handle USB pendrives exposed as floppies.
17684 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
17686 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17687 Check for partitions on all devices.
17689 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17691 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
17692 (readkey): Likewise.
17694 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17696 Multiple variable names support to "export" command.
17698 * normal/context.c (grub_cmd_export): "export" command supports
17699 multiple variable names.
17701 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
17703 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
17704 --target=drive output to Mach device name.
17706 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17708 New Automake based build system for GRUB.
17710 * ABOUT-NLS: New file.
17711 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
17712 in Makefile.util.def file.
17713 * Makefile.util.def: New file. Autogen build definitions file for
17715 * conf/Makefile.common: New file. Common variables for GRUB host
17716 utils and target modules.
17717 * conf/Makefile.extra-dist: New file. Extra files for make dist.
17718 * docs/Makefile.am: New file. Automake file for docs.
17719 * gentpl.py: New file. Python script to generate Autogen
17721 * grub-core/Makefile.am: New file. GRUB target modules' rules
17722 that doesn't fit in Makefile.core.def file.
17723 * grub-core/Makefile.core.def: New file. Autogen build
17724 definitions file for GRUB target modules.
17725 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
17726 specific setjmp.S file.
17727 * po/Makefile.am: New file.
17729 * .bzrignore: New ignores.
17730 * INSTALL: New requirements, without Ruby.
17731 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
17732 * autogen.sh: Updated to invoke autogen as necessary.
17733 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
17734 and defines for Automake conditionals.
17735 * geninit.sh: Refactoring.
17737 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
17739 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
17742 * include/grub/test.h: Fix functional test modules' naming.
17743 * grub-core/tests/example_functional_test.c: Fix test module name.
17745 * util/misc.c: Hosted versions' of grub functions for libgrub.a
17746 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
17747 * util/grub-editenv.c: Likewise.
17748 * util/grub-fstest.c: Likewise.
17749 * util/grub-mkdevicemap.c: Likewise.
17750 * util/grub-mkfont.c: Likewise.
17751 * util/grub-mkimage.c: Likewise.
17752 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17753 * util/grub-probe.c: Likewise.
17754 * util/grub-script-check.c: Likewise.
17755 * util/i386/pc/grub-setup.c: Likewise.
17756 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17758 * tests/util/grub-shell.in: Fix override directory path.
17759 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
17760 * util/import_gcry.py: Create Makefile.gcry.def file instead.
17762 * util/lvm.c: Update #includes.
17763 * util/raid.c: Likewise.
17764 * util/resolve.c: Likewise.
17765 * grub-core/bus/emu/pci.c: Likewise.
17766 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
17767 * grub-core/lib/posix_wrap/string.h: Likewise.
17768 * grub-core/kern/emu/main.c: Likewise.
17770 * grub-core/gensymlist.sh: New file. Script for generating kernel
17772 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
17774 * grub-core/gentrigtables.c: Fix unused variable warnings.
17776 * Makefile.in: Removed.
17777 * conf/any-emu.rmk: Removed.
17778 * conf/common.rmk: Removed.
17779 * conf/i386-coreboot.rmk: Removed.
17780 * conf/i386-efi.rmk: Removed.
17781 * conf/i386-ieee1275.rmk: Removed.
17782 * conf/i386-multiboot.rmk: Removed.
17783 * conf/i386-pc.rmk: Removed.
17784 * conf/i386-qemu.rmk: Removed.
17785 * conf/i386.rmk: Removed.
17786 * conf/mips-yeeloong.rmk: Removed.
17787 * conf/mips.rmk: Removed.
17788 * conf/powerpc-ieee1275.rmk: Removed.
17789 * conf/sparc64-ieee1275.rmk: Removed.
17790 * conf/tests.rmk: Removed.
17791 * conf/x86-efi.rmk: Removed.
17792 * conf/x86_64-efi.rmk: Removed.
17793 * gendistlist.sh: Removed.
17794 * geninitheader.sh: Removed.
17795 * genkernsyms.sh.in: Removed.
17796 * genmk.rb: Removed.
17797 * gensymlist.sh.in: Removed.
17798 * mkinstalldirs: Removed.
17800 * grub-core/boot: ... to here.
17802 * grub-core/bus: ... to here.
17803 * commands: Moved ...
17804 * grub-core/commands: ... to here.
17806 * grub-core/disk: ... to here.
17807 * efiemu: Moved ...
17808 * grub-core/efiemu: ... to here.
17810 * grub-core/font: ... to here.
17812 * grub-core/fs: ... to here.
17813 * gencmdlist.sh: Moved ...
17814 * grub-core/gencmdlist.sh: ... to here.
17815 * genemuinit.sh: Moved ...
17816 * grub-core/genemuinit.sh: ... to here.
17817 * genemuinitheader.sh: Moved ...
17818 * grub-core/genemuinitheader.sh: ... to here.
17819 * genfslist.sh: Moved ...
17820 * grub-core/genfslist.sh: ... to here.
17821 * genhandlerlist.sh: Moved ...
17822 * grub-core/genhandlerlist.sh: ... to here.
17823 * genmoddep.awk: Moved ...
17824 * grub-core/genmoddep.awk: ... to here.
17825 * genmodsrc.sh: Moved ...
17826 * grub-core/genmodsrc.sh: ... to here.
17827 * genpartmaplist.sh: Moved ...
17828 * grub-core/genpartmaplist.sh: ... to here.
17829 * genparttoollist.sh: Moved ...
17830 * grub-core/genparttoollist.sh: ... to here.
17831 * genterminallist.sh: Moved ...
17832 * grub-core/genterminallist.sh: ... to here.
17833 * gentrigtables.c: Moved ...
17834 * grub-core/gentrigtables.c: ... to here.
17835 * genvideolist.sh: Moved ...
17836 * grub-core/genvideolist.sh: ... to here.
17837 * gettext: Moved ...
17838 * grub-core/gettext: ... to here.
17839 * gfxmenu: Moved ...
17840 * grub-core/gfxmenu: ... to here.
17841 * gnulib: Moved ...
17842 * grub-core/gnulib: ... to here.
17844 * grub-core/hello: ... to here.
17846 * grub-core/hook: ... to here.
17848 * grub-core/io: ... to here.
17850 * grub-core/kern: ... to here.
17852 * grub-core/lib: ... to here.
17853 * loader: Moved ...
17854 * grub-core/loader: ... to here.
17856 * grub-core/mmap: ... to here.
17857 * normal: Moved ...
17858 * grub-core/normal: ... to here.
17859 * partmap: Moved ...
17860 * grub-core/partmap: ... to here.
17861 * parttool: Moved ...
17862 * grub-core/parttool: ... to here.
17863 * script: Moved ...
17864 * grub-core/script: ... to here.
17866 * grub-core/term: ... to here
17867 * tests/example_functional_test.c: Moved ...
17868 * grub-core/tests/example_functional_test.c: ... to here.
17869 * tests/lib/functional_test.c: Moved ...
17870 * grub-core/tests/lib/functional_test.c: ... to here.
17871 * tests/lib/test.c: Moved ...
17872 * grub-core/tests/lib/test.c: ... to here.
17874 * grub-core/video: ... to here.
17876 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17878 Replace --enable-grub-emu-modules with grub-emu-lite.
17880 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
17883 * include/grub/emu/misc.h (grub_emu_init): New prototype.
17884 * kern/emu/full.c: New file. For grub-emu specific initialization.
17885 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
17886 * kern/emu/main.c: Call initialization function grub_emu_init.
17888 * Makefile.in: Include grub-emu-lite in install.
17889 * commands/parttool.c: Use grub_no_autoload to differentiate
17890 between grub-emu and grub-emu-lite.
17891 * include/grub/misc.h: New variable grub_no_autoload.
17893 * conf/any-emu.rmk: New rules for grub-emu-lite.
17894 * configure.ac: Remove --enable-grub-emu-modules.
17895 * genmk.rb: Cleanup unnecessary rules.
17896 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
17898 * normal/main.c: Don't load list files on grub-emu-lite.
17899 * util/misc.c (grub_arch_sync_caches): Removed.
17901 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
17903 * kern/mips/startup.S (grub_prefix): Update comment to refer to
17904 grub-mkimage rather than grub-mkelfimage.
17905 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17907 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17909 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
17910 a key after CapsLock or NumLock. It's just a qemu bug.
17912 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17914 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
17915 needed by libusb wrapper.
17917 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17919 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
17921 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17923 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
17924 --nounzip is passed.
17926 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
17928 USB hotunplugging and USB serial support.
17930 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
17931 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
17932 (grub_uhci_transfer): Respect timeout and set *actual.
17933 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
17934 non-standard length.
17935 (grub_usb_device_attach): Autoload modules.
17936 (GRUB_MOD_INIT): Set grub_term_poll_usb.
17937 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
17938 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
17940 (grub_usb_add_hub): Fill nports and children.
17941 (attach_root_port): Receive hub instead of controller.
17942 All users updated. Fill hub->devices.
17943 (grub_usb_root_hub): Allocate hub->devices.
17944 (detach_device): New function.
17945 (poll_nonroot_hub): Fill children and detach devices.
17946 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
17947 actual arguments. All users updated.
17948 (grub_usb_bulk_read_extended): New function.
17949 * bus/usb/serial/common.c: New file.
17950 * bus/usb/serial/ftdi.c: Likewise.
17951 * bus/usb/serial/pl2303.c: Likewise.
17952 * commands/terminal.c (handle_command): Support wildcard.
17953 * commands/usbtest.c: Output "Unknown" instead of empty string.
17954 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
17955 (usbserial_common_mod_SOURCES): New variable.
17956 (usbserial_common_mod_CFLAGS): Likewise.
17957 (usbserial_common_mod_LDFLAGS): Likewise.
17958 (pkglib_MODULES): Add usbserial_pl2303.mod.
17959 (usbserial_pl2303_mod_SOURCES): New variable.
17960 (usbserial_pl2303_mod_CFLAGS): Likewise.
17961 (usbserial_pl2303_mod_LDFLAGS): Likewise.
17962 (pkglib_MODULES): Add usbserial_ftdi.mod.
17963 (usbserial_ftdi_mod_SOURCES): New variable.
17964 (usbserial_ftdi_mod_CFLAGS): Likewise.
17965 (usbserial_ftdi_mod_LDFLAGS): Likewise.
17966 (pkglib_MODULES): Add serial.mod.
17967 (serial_mod_SOURCES): New variable.
17968 (serial_mod_CFLAGS): Likewise.
17969 (serial_mod_LDFLAGS): Likewise.
17970 * conf/i386-pc.rmk: Likewise.
17971 * conf/mips-yeeloong.rmk: Likewise.
17972 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
17973 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
17974 * disk/usbms.c (first_available_slot): New variable.
17975 (grub_usbms_attach): Don't reuse free slots due to potential cache
17977 * include/grub/serial.h: Moved to ..
17978 * include/grub/ns8250.h: ...this.
17979 * include/grub/serial.h: New file.
17980 * include/grub/term.h (grub_term_poll_usb): New variable.
17981 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
17982 readkey. All users updated.
17983 (grub_terminfo_output_state): Pass term to put.
17984 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
17985 (grub_usb_controller_dev): Add timeout and actual arguments to
17986 transfer. All users updated.
17987 (grub_usb_interface): New field detach_data.
17988 (grub_usb_device): New fields children and nports.
17989 (grub_usb_ep_type_t): New type.
17990 (grub_usb_get_ep_type): New function.
17991 (grub_usb_bulk_read_extended): Likewise.
17992 * include/grub/usbdesc.h (grub_usb_desc): New type.
17993 * include/grub/usbserial.h: New file.
17994 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
17995 * kern/term.c (grub_term_poll_usb): New variable.
17996 (grub_getkey): Call grub_term_poll_usb if set.
17997 (grub_checkkey): Likewise.
17998 (grub_getkeystatus): Likewise.
17999 * term/serial.c: Moved controller-specific parts to ...
18000 * term/ns8250.c: ... here.
18001 * term/serial.c: Mostly rewritten.
18002 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18005 2010-08-20 Robert Millan <rmh@gnu.org>
18007 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18008 a separate module and maybe other interesting combinations.
18010 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18011 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18012 (kfreebsd_entry): Add generic filesystem module load routine.
18013 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18015 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18017 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18018 "numcenter" (I misunderstood the purpose of this entry).
18019 * docs/grub.texi (sendkey): Likewise.
18021 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18023 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18024 status flag options; simply omitting the option is equivalent and
18025 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18026 (keysym_table): Rename "num5numlock" to "numlock".
18027 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18028 can uniformly say that only the last of multiple `sendkey'
18029 invocations has any effect.
18030 * docs/grub.texi (sendkey): New section.
18032 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18034 * commands/i386/pc/sendkey.c (options): Fix three typos.
18036 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18038 Implement sendkey support.
18040 * commands/i386/pc/sendkey.c: New file.
18041 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18042 (sendkey_mod_SOURCES): New variable.
18043 (sendkey_mod_CFLAGS): Likewise.
18044 (sendkey_mod_LDFLAGS): Likewise.
18046 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18048 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18049 fix warnings from Autoconf.
18051 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18053 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18054 to avoid false positives with some assemblers that output things
18055 like "someprefix_func" as part of their output.
18057 2010-08-15 Robert Millan <rmh@gnu.org>
18059 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18061 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18062 grub_get_libzfs_handle() errors.
18064 2010-08-14 Robert Millan <rmh@gnu.org>
18066 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18067 filesystem is not ZFS.
18069 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18071 Fix for misspelled color names defaulting to black/black (bug
18072 reported by Doug Nazar)
18074 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18075 status to prototype.
18076 * normal/color.c (grub_parse_color_name_pair): Return failure
18078 (grub_env_write_color_normal): Ignore bad color names.
18079 (grub_env_write_color_highlight): Likewise.
18080 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18082 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18084 "shift" command support to GRUB script.
18086 * include/grub/script_sh.h (grub_script_shift): New prototype.
18087 * script/execute.c (grub_script_shift): New function.
18088 * script/main.c (grub_script_init): Register shift command.
18089 (grub_script_fini): Unregister shift command.
18090 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18092 * tests/grub_script_shift.in: New testcase.
18093 * conf/tests.rmk: Rules for new testcase.
18095 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18097 "continue" command support to GRUB script.
18099 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18100 (grub_script_break): Continue support.
18101 * script/main.c (grub_script_init): Register continue command.
18102 (grub_script_fini): Unregister continue command.
18104 * tests/grub_script_continue.in: New testcase.
18105 * conf/tests.rmk: Rules for new testcase.
18107 2010-08-12 BVK Chaitanya <bvk@dbook>
18109 "break" command support to GRUB script.
18111 * conf/common.rmk: Rule updates to grub-script-check.
18112 * include/grub/misc.h (grub_min): New function.
18113 * include/grub/script_sh.h (grub_script_init): New prototype.
18114 (grub_script_fini): New prototype.
18115 (grub_script_break): New prototype.
18116 * script/main.c (grub_script_init): New function.
18117 (grub_script_fini): New function.
18118 * script/execute.c (grub_script_break): New function.
18119 * normal/main.c: Calls to grub_script_{init,fini}.
18120 * util/grub-script-check.c (grub_script_break): New function.
18122 * tests/grub_script_break.in: New testcase.
18123 * conf/tests.rmk: Rules for new test case.
18125 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18127 Function parameters support to GRUB script.
18129 * script/yylex.l (VARIABLE): Regular expression update.
18130 * script/function.c (grub_script_function_call): Moved ...
18131 * script/execute.c (grub_script_function_call): ... to here.
18132 (grub_script_execute_arglist_to_argv): Removed.
18133 (grub_script_arglist_to_argv): New function.
18134 * script/argv.c: New file.
18135 (grub_script_argv_free): New function.
18136 (grub_script_argv_next): Likewise.
18137 (grub_script_argv_append): Likewise.
18138 (grub_script_argv_split_append): Likewise.
18139 * include/grub/script_sh.h (grub_script_argv): New struct.
18140 (grub_script_argv_free): New function.
18141 (grub_script_argv_next): Likewise.
18142 (grub_script_argv_append): Likewise.
18143 (grub_script_argv_split_append): Likewise.
18145 * conf/common.rmk (normal.mod): New source script/argv.c.
18147 * tests/grub_script_echo1.in: More tests.
18148 * tests/grub_script_vars1.in: Likewise.
18149 * tests/grub_script_functions.in: New test case.
18150 * conf/tests.rmk: Rules for new testcase.
18152 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18154 Remove grub_script_cmdblock struct.
18156 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18157 * script/parser.y: Likewise.
18158 * script/execute.c: Rename cmdblock suffix to cmdlist.
18159 * script/script.c: Likewise.
18160 * util/grub-script-check.c: Likewise.
18162 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18164 * .bzrignore: add grub-macho2img
18166 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18168 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18170 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18172 Remove the dump of sm712 initialisation sequence.
18174 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18175 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18176 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18177 (GRUB_VGA_CR_*): Added many registers.
18178 (GRUB_VGA_SR_*): Likewise.
18179 (GRUB_VGA_GR_*): Likewise.
18180 (grub_vga_write_arx): New function.
18181 (grub_video_hw_config): New struct.
18182 (grub_vga_set_geometry): New function.
18183 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18184 GRUB_PCI_CLASS_SUBCLASS_VGA.
18185 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18186 * video/sm712.c (grub_sm712_write_reg): New function
18187 (grub_sm712_read_reg): Likewise.
18188 (grub_sm712_sr_write): Likewise.
18189 (grub_sm712_gr_write): Likewise.
18190 (grub_sm712_cr_write): Likewise.
18191 (grub_sm712_write_arx): Likewise.
18192 (grub_sm712_cr_shadow_write): Likewise.
18193 (grub_sm712_write_dda_lookup): Likewise.
18194 (grub_video_sm712_setup): Initialise the video rather then
18195 blindly replay the dump.
18196 (main) [TEST]: Add a routine to be able to compile as standalone for
18198 * video/sm712_init.c (sm712_init): Removed.
18199 (sm712_sr_seq1): New array.
18200 (sm712_sr_seq2): Likewise.
18202 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18204 * include/grub/vga.h: Add missing grub/pci.h include.
18206 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18208 * util/grub-macho2img.c (main): fix typo
18210 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18212 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18213 (grub_vga_gr_read): Likewise.
18214 (grub_vga_cr_write): Likewise.
18215 (grub_vga_cr_read): Likewise.
18216 (grub_vga_sr_write): Likewise.
18217 (grub_vga_sr_read): Likewise.
18218 (grub_vga_palette_read): Likewise.
18219 (grub_vga_palette_write): Likewise.
18220 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18221 (grub_sm712_sr_read): New function.
18222 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18223 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18225 2010-08-09 Robert Millan <rmh@gnu.org>
18227 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18228 out unused variables on non-ZFS build.
18230 2010-08-08 Robert Millan <rmh@gnu.org>
18232 Fix path generation for sub-filesystems in ZFS.
18234 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18237 2010-08-08 Robert Millan <rmh@gnu.org>
18239 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18241 2010-08-08 Robert Millan <rmh@gnu.org>
18243 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18244 exist, issue a proper error message (rely on `ls' for translated
18247 2010-08-08 Robert Millan <rmh@gnu.org>
18249 Fix grub-probe invocation.
18251 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18253 2010-08-04 Robert Millan <rmh@gnu.org>
18255 * configure.ac: Remove checks for getfsstat() and getmntany().
18256 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18257 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18258 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18259 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18260 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18262 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18263 via find_mount_point_from_dir() and getfsstat() / getmntany().
18265 2010-08-04 Robert Millan <rmh@gnu.org>
18267 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18268 (grub_find_zpool_from_mount_point): Merge into ...
18269 (grub_find_zpool_from_dir): ... this.
18270 * kern/emu/misc.c: Likewise.
18273 (grub_make_system_path_relative_to_its_root): Replace
18274 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18275 with grub_find_zpool_from_dir().
18276 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18278 2010-08-04 Robert Millan <rmh@gnu.org>
18280 Support OpenSolaris in ZFS device resolution.
18282 * configure.ac: Check for getmntany().
18283 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18284 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18287 2010-08-03 Robert Millan <rmh@gnu.org>
18289 Fix grub-emu build.
18291 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18292 * include/grub/emu/misc.h: ... here.
18294 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18295 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18297 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18298 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18299 (grub_get_libzfs_handle): Move to ...
18300 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18301 (grub_get_libzfs_handle): ... here.
18303 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18305 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18306 as command name case.
18308 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18310 * disk/raid.c (insert_array): Select unique numbers for named arrays
18311 as well, for use as keys in the disk cache.
18313 2010-08-01 Robert Millan <rmh@gnu.org>
18315 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18316 kFreeBSD device name, except on ZFS where the filesystem label is
18318 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18319 `/boot/zfs/zpool.cache'.
18320 Set mountfrom kernel variable using ${kfreebsd_device}.
18322 2010-08-01 Robert Millan <rmh@gnu.org>
18324 Make it even harder to use uninitialized `libzfs_handle' (and
18325 make the interface a bit simpler).
18327 * include/grub/util/misc.h (grub_util_init_libzfs)
18328 (libzfs_handle): Remove.
18329 (grub_get_libzfs_handle): New prototype.
18331 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18333 (grub_util_init_libzfs): Remove.
18334 (grub_get_libzfs_handle): New function.
18336 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18337 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18338 accessing `libzfs_handle' directly.
18340 2010-08-01 Robert Millan <rmh@gnu.org>
18342 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18343 (grub_find_zpool_from_mount_point): New function prototypes.
18345 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18346 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18348 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18349 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18350 `static' attribute.
18352 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18353 finding zpool from mount point into ...
18354 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18356 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18357 requested path is part of a ZFS pool, use
18358 grub_find_zpool_from_mount_point() to detect its filesystem name,
18359 and generate a path with `/fsname@path' syntax.
18361 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18363 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18364 (void) rather than () so that this is a proper prototype.
18366 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18368 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18370 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18372 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18373 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18375 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18377 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18379 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18381 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18383 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18385 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18386 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18387 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18388 disable gfxpayload.
18389 (Shell-like scripting): Add real content.
18390 (Serial terminal): Suggest `terminal_input serial; terminal_output
18391 serial' rather than putting the two commands on separate lines,
18392 since console input will be inoperative after the first command.
18393 (menuentry): Document --class, --users, and --hotkey options.
18394 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18395 Vladimir Serbinenko).
18397 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18398 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18400 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18402 2010-08-01 Robert Millan <rmh@gnu.org>
18404 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18405 (grub_find_zpool_from_mount_point): New function prototypes.
18407 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18408 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18410 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18411 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18412 `static' attribute.
18414 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18415 finding zpool from mount point into ...
18416 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18418 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18419 requested path is part of a ZFS pool, use
18420 grub_find_zpool_from_mount_point() to detect its filesystem name,
18421 and generate a path with `/fsname@path' syntax.
18423 2010-08-01 Robert Millan <rmh@gnu.org>
18425 Prevent accidental use of uninitialized libzfs_handle.
18427 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18428 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18429 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18431 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18433 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18434 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18436 2010-08-01 Robert Millan <rmh@gnu.org>
18438 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18440 2010-07-31 Robert Millan <rmh@gnu.org>
18442 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18444 2010-07-31 Robert Millan <rmh@gnu.org>
18446 * kern/emu/misc.c: Add missing license header.
18448 2010-07-31 Robert Millan <rmh@gnu.org>
18450 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18452 * include/grub/util/libnvpair.h: Include `<config.h>'.
18453 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18454 declaring libnvpair prototypes ourselves.
18455 * include/grub/util/libzfs.h: Include `<config.h>'.
18456 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18457 declaring libzfs prototypes ourselves.
18459 (libzfs_handle): Moved to ...
18460 * include/grub/util/misc.h (libzfs_handle): ... here.
18461 Include `<grub/util/libzfs.h>'.
18463 2010-07-30 Robert Millan <rmh@gnu.org>
18465 * include/grub/emu/misc.h: Add missing license header.
18467 2010-07-30 Robert Millan <rmh@gnu.org>
18469 Enable `grub-probe -t device' resolution on ZFS.
18471 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18472 * include/grub/util/libnvpair.h: New file.
18473 * include/grub/util/libzfs.h: New file.
18475 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18476 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18477 `<grub/util/libnvpair.h>'.
18478 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18480 (find_mount_point_from_dir): New static function.
18481 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18483 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18484 find_root_device_from_libzfs() before ressorting to find_root_device().
18486 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18488 * util/misc.c: Include `<grub/util/libzfs.h>'.
18489 (grub_util_init_libzfs): New function.
18490 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18491 [HAVE_LIBZFS] (fini_libzfs): New static function.
18492 (grub_util_init_libzfs): New function.
18493 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18495 2010-07-30 Robert Millan <rmh@gnu.org>
18497 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18498 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18499 `warn_unused_result' attribute.
18500 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18501 (grub_xasprintf, grub_xvasprintf): Likewise.
18502 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18504 2010-07-29 Robert Millan <rmh@gnu.org>
18506 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18507 (probe): Handle `PRINT_FS_LABEL'.
18508 (main): Handle `-t fs_label'.
18510 2010-07-29 Robert Millan <rmh@gnu.org>
18512 * configure.ac: Remove grub-mkisofs checks.
18514 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18516 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18517 Reported by: Lennart Sorensen.
18519 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18521 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18522 prior to terminal_input/terminal_output separation. It's been over 1.5
18523 years and those versions weren't widely deployed.
18525 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18527 * disk/raid.c (insert_array): Don't count named arrays when looking
18528 for unused array numbers.
18529 Reported and tested by: Michael Guntsche.
18531 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18533 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18534 implementation of this so that grub-emu links again, with a note
18535 that this should support hotplugging in the future.
18537 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18539 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18541 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18543 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18545 (grub_loopback_close): Remove empty function.
18546 (grub_loopback_dev): Remove close method.
18548 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18550 Disable EFI cursor when the EFI console becomes inactive.
18552 * term/efi/console.c (grub_efi_console_init): New function.
18553 (grub_efi_console_fini): New function.
18554 (grub_console_term_output): Register init and fini methods.
18556 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18558 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18561 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18563 * disk/loopback.c (grub_loopback): Replace filename with file.
18564 (delete_loopback): Handle new semantics.
18565 (grub_cmd_loopback): Likewise.
18566 (grub_loopback_iterate): Likewise.
18567 (grub_loopback_close): Likewise.
18569 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18571 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18573 Reported by: Tito Keitel.
18575 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18577 * docs/grub.texi (Naming convention): Document new naming convention.
18579 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18580 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18582 Generate device.map in something closer to the old ordering.
18584 * util/deviceiter.c (struct device): New declaration.
18585 (compare_file_names): Rename to ...
18586 (compare_devices): ... this. Sort by kernel name in preference to
18587 the stable by-id name, but keep the latter as a fallback comparison.
18588 Update header comment.
18589 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18590 of `struct device' rather than of plain file names.
18592 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18594 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18597 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18599 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18601 (setv1table): Likewise.
18603 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18605 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18606 removing the homehost if present.
18607 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18608 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18609 removing the homehost if present.
18610 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18612 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18614 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18615 parameter. Set its pointer target to 0.
18616 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18617 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18618 `data_offset' value from the superblock for 1.x metadata.
18619 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18620 data on the device.
18621 (insert_array): Record the start sector of data on the device.
18622 (grub_raid_register): Pass start_sector parameters to
18623 grub_raid_list->detect and insert_array.
18624 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18626 (struct grub_raid): Add start_sector parameter to `detect'.
18628 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18629 __attribute__ ((packed)), leaving a comment.
18630 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18631 (grub_mdraid_detect_09): ... here and ...
18632 (grub_mdraid_detect_1x): ... here.
18634 2010-07-20 Peter Henn <peter.henn@web.de>
18636 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18637 chunk size and disk size, which are already given as sector counts
18638 as distinct from the 0.90 units. Fetch the correct device number
18639 from the role table instead of using the table index.
18641 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18643 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
18644 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
18645 (WriteMostly1): New macro.
18646 Set array->name to NULL for metadata format 0.90. Add support for
18647 metadata 1.x. Fix some comments.
18648 * disk/raid.c (): Add support for name based RAID arrays. Fix a
18650 * util/getroot.c (grub_util_get_grub_dev): Add support for
18651 /dev/md/name style devices.
18653 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18655 * .bzrignore: Ignore 20_linux_xen.
18657 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
18659 * util/import_unicode.py: Remove unnecessary imports.
18661 2010-07-17 Aleš Nesrsta <starous@volny.cz>
18663 Hotplugging and USB hub support.
18665 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
18666 (grub_ohci): Likewise.
18667 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
18668 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
18669 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
18670 (GRUB_OHCI_CTRL_EDS): Likewise.
18671 (GRUB_OHCI_BULK_EDS): Likewise.
18672 (GRUB_OHCI_TDS): Likewise.
18673 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
18674 (grub_ohci_ed_phys2virt): New function.
18675 (grub_ohci_virt_to_phys): Likewise.
18676 (grub_ohci_td_phys2virt): Likewise.
18677 (grub_ohci_td_virt2phys): Likewise.
18678 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
18680 (grub_ohci_find_ed): New function.
18681 (grub_ohci_alloc_td): Likewise.
18682 (grub_ohci_free_td): Likewise.
18683 (grub_ohci_free_tds): Likewise.
18684 (grub_ohci_transfer): Use previously allocated memory.
18685 (grub_ohci_portstatus): Reset status changed bit.
18686 (grub_ohci_detect_dev): Supply status changed.
18687 (grub_ohci_fini_hw): Free memory.
18688 (grub_ohci_restore_hw): Reallocate memory.
18689 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
18690 Reset status change.
18691 (grub_uhci_detect_dev): Supply status_change.
18692 * bus/usb/usb.c (attach_hooks): New var.
18693 (grub_usb_device_attach): New function.
18694 (grub_usb_register_attach_hook_class): Likewise.
18695 (grub_usb_unregister_attach_hook_class): Likewise.
18696 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
18697 (grub_usb_add_hub): Reset connection changed bit.
18698 (attach_root_port): New function.
18699 (grub_usb_root_hub): Likewise.
18700 (poll_nonroot_hub): Likewise.
18701 (grub_usb_poll_devices): Likewise.
18702 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
18703 * disk/usbms.c (grub_usbms_open): Use device hooks.
18704 (grub_usbms_iterate) :Poll devices.
18705 (grub_usbms_finddevs): Split into ...
18706 (grub_usbms_attach): ... this ...
18707 (grub_usbms_attach): ... and this.
18708 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
18710 (grub_usb_interface): New fields attached and detach_hook.
18711 (grub_usb_attach_hook_class): New type.
18712 (grub_usb_attach_desc): New struct.
18713 (grub_usb_register_attach_hook_class): New function.
18714 (grub_usb_unregister_attach_hook_class): Likewise.
18715 (grub_usb_poll_devices): Likewise.
18716 (grub_usb_device_attach): Likewise.
18717 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
18718 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
18720 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18722 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
18723 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
18724 delta determination style. Works with most NetBSD partitions too.
18726 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18728 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
18729 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
18731 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18733 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
18735 2010-07-14 Anton Blanchard <anton@samba.org>
18737 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
18740 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18742 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
18744 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18746 * kern/partition.c (grub_partition_check_containment): New function to
18747 check that a partition is physically contained in a parent. Since
18748 offsets are relative (and non-negative), this reduces to checking that
18749 the partition ends before its parent.
18750 (grub_partition_map_probe): Discard out-of-range sub-partitions.
18751 (grub_partition_iterate): Likewise.
18752 * include/grub/partition.h (grub_partition_map): Slightly more detailed
18754 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
18755 partitions that start before their parent, and add debug printfs.
18757 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18759 * Makefile.in (.SUFFIX): Spell correctly, as ...
18760 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
18761 bare module name without `.mod', e.g. `test') tried to invoke a
18764 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18766 * README: Point to the Info manual.
18768 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
18770 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
18771 2nd superblock position from partition size.
18773 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
18775 * Makefile.in (MAINTAINER_CLEANFILES): Remove
18776 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
18777 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
18780 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18782 Restructure SCSI .id handling.
18783 Reported and tested by: Aleš Nesrsta.
18785 * disk/ata.c (grub_atapi_close): Removed. All users updated.
18786 (grub_atapi_dev): Changed .name to "ata". New field .id.
18787 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
18788 (grub_usbms_dev): New field .id.
18789 * disk/scsi.c (grub_scsi_iterate): Generate name.
18790 (grub_scsi_open): Parse name.
18791 * include/grub/scsi.h (grub_make_scsi_id): New function.
18792 (grub_scsi_dev): Change iterate and open to number instead of naming
18793 busses. All users updated.
18794 (grub_scsi): Remove name. Add .bus.
18796 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18798 * commands/help.c (grub_cmd_help): Fix a typo.
18800 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18802 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
18803 Reported and tested by: Colin Watson.
18805 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18807 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
18810 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18812 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
18814 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
18816 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
18819 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18821 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
18822 and disk/raid6_recover.c.
18823 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18824 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18826 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18828 * term/gfxterm.c (repaint_schedulded): Rename to ...
18829 (repaint_scheduled): ... this. Update all callers.
18830 (repaint_was_schedulded): Rename to ...
18831 (repaint_was_scheduled): ... this. Update all callers.
18833 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18835 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
18836 which we expect to be handled by upper layers.
18838 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
18840 * bus/usb/usbhub.c: #include time.h header.
18842 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18844 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
18845 entry_name also for entries without stat blocks (e.g. ".."); fixes
18846 corruption of the first entry in a directory.
18848 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18850 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
18851 after setting gfxterm as the active terminal. GRUB_BACKGROUND
18852 doesn't work otherwise.
18854 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18856 * docs/grub.texi (Features): Update list of supported file systems.
18857 (GNU/Linux): Update for GRUB 2.
18858 (Serial terminal): Remove mention of --disable-serial, which was a
18859 GRUB Legacy configure option. Update instructions to use
18860 `terminal_input' and `terminal_output' rather than `terminal'.
18861 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
18862 configuration' and `Installing GRUB using grub-install'.
18863 (Menu entry editor): Update for GRUB 2.
18864 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
18865 Document new -a, -u, and -v options.
18866 (initrd): New section.
18867 (initrd16): New section.
18868 (linux): New section.
18869 (linux16): New section.
18870 (search): The `var' argument to `--set' is optional.
18871 (GRUB only offers a rescue shell): Go into a little more detail on
18874 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18876 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
18878 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18880 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
18881 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
18883 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18885 * util/i386/pc/grub-setup.c (setup): Rename prefix to
18886 install_prefix, in line with install_dos_part and install_bsd_part.
18887 Add new prefix variable, which is copied to install_prefix after
18888 comparing core.img in memory with the one read from disk in the
18889 no-embedding case, and use that rather than overwriting
18890 install_prefix immediately when installing to a partition.
18891 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
18894 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18896 * configure.ac: Avoid == in test command, it's not portable.
18897 * util/grub.d/30_os-prober.in: Likewise.
18899 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
18901 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
18903 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18905 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
18906 multiple (top-level) partmaps.
18908 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18910 * util/i386/efi/grub-install.in: Don't use empty grub_device.
18911 Reported by: Tino Keitel.
18913 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18915 Bidi and diacritics support.
18917 * Makefile.in (widthspec.bin): New target.
18918 (widthspec.h): Likewise.
18919 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
18920 * autogen.sh: Generate unidata.c.
18921 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
18922 * commands/ls.c (grub_ls_list_devices): Likewise.
18923 (grub_ls_list_files): Likewise.
18924 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18925 (grub_mini_cmd_lsmod): Likewise.
18926 * commands/read.c: Likewise.
18927 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
18928 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
18929 * lib/arg.c (grub_arg_show_help): Likewise.
18930 * lib/crypto.c (grub_password_get): Likewise.
18931 * normal/auth.c (grub_username_get): Likewise.
18932 * normal/misc.c (grub_normal_print_device_info): Likewise.
18933 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
18934 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
18935 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
18936 (normal/charset.c_DEPENDENCIES): New variable.
18937 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
18938 (pkglib_MODULES): Remove charset.mod.
18939 (charset_mod_SOURCES): Removed.
18940 (charset_mod_CFLAGS): Likewise.
18941 (charset_mod_LDFLAGS): Likewise.
18942 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
18943 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
18945 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18946 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18947 (kernel_img_HEADERS): Add terminfo.h.
18948 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
18949 Fill ->font. Reverse ascii bitmaps.
18950 (grub_font_get_xheight): New function.
18951 * font/font.c (grub_font_get_string_width): Moved from here ...
18952 * gfxmenu/font.c (grub_font_get_string_width): ... here.
18953 * font/font.c (grub_font_draw_string): Moved from here ...
18954 * gfxmenu/font.c (grub_font_draw_string): ... here.
18955 * font/font.c (grub_font_dup_glyph): New function.
18956 (grub_font_blit_glyph): Likewise.
18957 (grub_font_blit_glyph_mirror): Likewise.
18958 (blit_comb): Likewise.
18959 (grub_font_construct_dry_run): Likewise.
18960 (grub_font_get_constructed_device_width): Likewise.
18961 (grub_font_construct_glyph): Likewise.
18962 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
18963 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
18964 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
18965 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
18966 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
18967 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
18968 (grub_font_get_xheight): New proto.
18969 (grub_font_get_constructed_device_width): Likewise.
18970 (grub_font_construct_glyph): Likewise.
18971 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
18972 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
18973 * include/grub/font.h (grub_font_draw_string): Moved from here ...
18974 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
18975 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
18976 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
18977 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
18978 (grub_console_getcharwidth): Likewise.
18979 * include/grub/misc.h (grub_xputs): New proto.
18980 (grub_puts): Inlined.
18981 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
18982 (grub_normal_get_line_counter): Removed.
18983 (grub_install_newline_hook): Likewise.
18984 (grub_normal_get_char_counter): New proto.
18985 (grub_normal_reset_more): Likewise.
18986 (grub_xputs_normal): Likewise.
18987 * include/grub/powerpc/ieee1275/console.h: Removed.
18988 * include/grub/sparc64/ieee1275/console.h: Likewise.
18989 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
18990 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
18991 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
18992 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
18993 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
18994 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
18995 (grub_term_input): Pass reference to self. All users updated.
18996 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
18997 Pass reference to self. New fields normal_color, highlight_color and
18998 data. All users updated.
18999 (grub_putchar): Removed.
19000 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19001 (grub_unicode_estimate_width): New function.
19002 (grub_term_getcharwidth): Add defaults.
19003 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19004 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19005 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19006 (grub_cls): Remove EXPORT_FUNC.
19007 (grub_setcolorstate): Inline.
19008 (grub_newline_hook): Removed.
19009 * include/grub/terminfo.h: Rewritten. All users updated.
19010 * include/grub/unicode.h: New file.
19011 * include/grub/video.h (grub_video_signed_rect): New type.
19012 * kern/emu/console.c (grub_console_highlight_color): Removed.
19013 (grub_console_normal_color): Likewise.
19014 (grub_console_standard_color): Made static.
19015 (grub_ncurses_putchar): Remove mapping.
19016 (grub_ncurses_getcharwidth): Removed.
19017 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19018 (grub_ncurses_setcolor): Removed.
19019 (grub_ncurses_getcolor): Likewise.
19020 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19021 (grub_console_putchar): ... this.
19022 (grub_console_putchar): Handle argument difference.
19023 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19024 console_init_early and console_init_lately.
19025 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19026 * kern/misc.c (grub_puts): Removed.
19027 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19028 (grub_vsnprintf_real): Remove str = NULL support.
19029 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19030 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19031 * kern/term.c (grub_putcode): Renamed to ...
19032 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19033 (grub_putchar): Removed.
19034 (grub_xputs_dumb): New function.
19035 (grub_xputs): New variable.
19036 * lib/charset.c: Move from here ...
19037 * normal/charset.c: ... to here.
19038 (grub_ucs4_to_utf8): New function.
19039 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19040 (join_types): New variable.
19041 (unpack_join): New function.
19042 (bidi_types): New variable.
19043 (unpack_bidi): New function.
19044 (get_bidi_type): Likewise.
19045 (get_join_type): Likewise.
19046 (is_mirrored): Likewise.
19047 (grub_unicode_get_comb_type): Likewise.
19048 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19049 (is_type_after): Likewise.
19050 (grub_unicode_aglomerate_comb): Likewise.
19051 (bidi_line_wrap): Likewise.
19052 (grub_bidi_line_logical_to_visual): Likewise.
19053 (grub_bidi_logical_to_visual): Likewise.
19054 (grub_unicode_mirror_code): Likewise.
19055 (grub_unicode_shape_code): Likewise.
19056 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19057 Don't use grub_putchar.
19058 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19059 (grub_normal_reader_init): Likewise.
19060 (grub_xputs_saved): New variable.
19061 (GRUB_MOD_INIT): Set grub_xputs.
19062 (GRUB_MOD_FINI): Restore grub_xputs.
19063 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19064 (menu_init): Avoid printing gfxmenu error.
19065 (show_menu): Use grub_normal_get_char_counter.
19066 * normal/menu_entry.c (update_screen): Fix out-of-array.
19067 (complete): Avoid NULL dereferencing.
19068 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19069 * normal/menu_text.c (print_spaces): Removed.
19070 (grub_print_ucs4): Likewise.
19071 (grub_print_message_indented): Use grub_print_ucs4.
19072 (print_message): Use grub_putcode.
19073 (print_entry): Hanlde diacritics.
19074 * normal/term.c (term_state): New type.
19075 (grub_more_lines): Removed.
19076 (term_states): New variable.
19077 (grub_normal_line_counter): Renamed to ..
19078 (grub_normal_char_counter): ...this. All users updated.
19079 (grub_normal_get_line_counter): Renamed to ...
19080 (grub_normal_get_char_counter): ... this.
19081 (grub_normal_reset_more): New function.
19082 (process_newline): Removed.
19083 (print_more): New function.
19084 (grub_install_newline_hook): Removed.
19085 (map_code): New function.
19086 (grub_puts_terminal): Use grub_print_ucs4.
19087 (putglyph): New function.
19088 (putcode_real): Likewise.
19089 (grub_putcode): Use putcode_real.
19090 (get_maxwidth): New function.
19091 (get_startwidth): Likewise.
19092 (print_ucs4_terminal): Likewise.
19093 (find_term_state): Likewise.
19094 (put_glyphs_terminal): Likewise.
19095 (print_backlog): Likewise.
19096 (print_ucs4_real): Likewise.
19097 (grub_print_ucs4): Likewise.
19098 (grub_xputs_normal): Likewise.
19099 * term/efi/console.c (grub_console_putchar): Output diacritics.
19100 (grub_console_getcharwidth): Removed.
19101 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19102 * term/gfxterm.c (clear_char): Free chars.
19103 (scroll_up): Avoid leaking memory.
19104 (grub_gfxterm_putchar): Support diacritics.
19105 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19106 * term/i386/pc/console.c (grub_console_term_output): Declare as
19107 GRUB_TERM_CODE_TYPE_VGA.
19108 * term/i386/pc/vga.c (grub_vga_term): Declare as
19109 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19110 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19111 GRUB_TERM_CODE_TYPE_VGA.
19112 * term/i386/vga_common.c (map_char): Removed.
19113 (grub_console_putchar): Likewise.
19114 (grub_console_getcharwidth): Likewise.
19115 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19116 (colors): Reordered to match terminfo.
19117 (grub_ofconsole_normal_color): Removed.
19118 (grub_ofconsole_writeesc): Likewise.
19119 (grub_ofconsole_highlight_color): Likewise.
19120 (grub_ofconsole_getcharwidth): Likewise.
19121 (grub_ofconsole_setcolorstate): Likewise.
19122 (grub_ofconsole_setcolor): Likewise.
19123 (grub_ofconsole_getcolor): Likewise.
19124 (grub_ofconsole_readkey): Renamed to ...
19125 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19127 (grub_ofconsole_checkkey): Removed.
19128 (grub_ofconsole_getkey): Likewise.
19129 (grub_ofconsole_getxy): Likewise.
19130 (grub_ofconsole_gotoxy): Likewise.
19131 (grub_ofconsole_cls): Likewise.
19132 (grub_ofconsole_refresh): Likewise.
19133 (grub_ofconsole_terminfo_input): New struct.
19134 (grub_ofconsole_terminfo_output): Likewise.
19135 (grub_ofconsole_term_input): Use terminfo.
19136 (grub_ofconsole_term_output): Likewise.
19137 (grub_console_init): Split into ...
19138 (grub_console_init_early): ...this and ...
19139 (grub_console_init_lately): ...this. Use terminfo.
19140 (grub_ofconsole_putchar): Renamed to ...
19141 (put): ... this. Remove mapping.
19142 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19143 * term/serial.c: Simplify using terminfo.
19146 (keep_track): Likewise.
19147 (registered): Likewise.
19148 (input_buf): Likewise.
19149 (npending): Likewise.
19150 (serial_translate_key_sequence): Likewise.
19151 (fill_input_buf): Likewise.
19152 (grub_serial_checkkey): Likewise.
19153 (grub_serial_getkey): Likewise.
19154 (grub_serial_getxy): Likewise.
19155 (grub_serial_gotoxy): Likewise.
19156 (grub_serial_putchar): Likewise.
19157 (grub_serial_cls): Likewise.
19158 (grub_serial_setcolorstate): Likewise.
19159 (grub_serial_setcursor): Likewise.
19160 (serial_hw_init): Use serial_hw_fetch.
19161 (grub_serial_terminfo_input): New variable.
19162 (grub_serial_terminfo_output): Likewise.
19163 (grub_serial_term_input): Use terminfo.
19164 (grub_serial_term_output): Likewise.
19165 * term/terminfo.c (putstr): Use put.
19166 (grub_terminfo_all_free): New function
19167 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19168 (grub_terminfo_output_register): New function.
19169 (grub_terminfo_output_unregister): Likewise.
19170 (grub_terminfo_getxy): Likewise.
19171 (grub_terminfo_readkey): Likewise.
19172 (grub_terminfo_checkkey): Likewise.
19173 (grub_terminfo_getkey): Likewise.
19174 (grub_terminfo_input_init): Likewise.
19175 (print_terminfo): Likewise.
19176 (grub_cmd_terminfo): Handle encoding.
19177 (grub_terminfo_gotoxy): Track position.
19178 (grub_terminfo_cls): Likewise.
19179 (grub_terminfo_putchar): Likewise.
19180 (grub_terminfo_setcolorstate): Handle colors
19181 (grub_terminfo_cursor_on): This ...
19182 (grub_terminfo_cursor_off): ... and this merged into ...
19183 (grub_terminfo_setcursor): ... this.
19184 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19185 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19186 * unicode/BidiMirroring.txt: Likewise.
19187 * unicode/UnicodeData.txt: Likewise.
19188 * unicode/COPYING: Likewise.
19189 * util/grub-editenv.c (grub_putchar): Removed.
19190 (grub_xputs_real): New function.
19191 (grub_xputs): New variable.
19192 * util/grub-fstest.c (grub_putchar): Removed.
19193 (grub_xputs_real): New function.
19194 (grub_xputs): New variable.
19195 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19196 (grub_xputs_real): New function.
19197 (grub_xputs): New variable.
19198 * util/grub-probe.c (grub_putchar): Removed.
19199 (grub_xputs_real): New function.
19200 (grub_xputs): New variable.
19201 * util/grub-script-check.c (grub_putchar): Removed.
19202 (grub_xputs_real): New function.
19203 (grub_xputs): New variable.
19204 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19205 (grub_xputs_real): New function.
19206 (grub_xputs): New variable.
19207 * util/import_unicode.py: New file.
19208 * util/grub-mkfont.c (ft_errmsgs): New array.
19209 (grub_glyph_info): Make bitmap a pointer.
19210 (file_formats): New type WIDTH_SPEC.
19211 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19212 (options): Add width-spec.
19214 (add_char): Renamed to ...
19215 (add_glyph): ... this.
19216 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19217 (glyph_replace): New type.
19218 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19219 (add_char): New function.
19220 (add_subst): Likewise.
19221 (process_cursive): Likewise.
19222 (add_font): Handle GSUB.
19223 (write_font_width_spec): New function.
19224 (main): Sort glyphs.
19225 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19226 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19227 * kern/term.c (grub_cls): Moved from here...
19228 * normal/term.c (grub_cls): ... here.
19230 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19232 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19233 suitable for using within the format argument of printf when
19234 converting grub_size_t.
19235 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19236 "x" to convert grub_size_t arguments.
19238 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19240 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19242 (list_get_minimal_size): Take selection box into account.
19244 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19246 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19249 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19251 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19252 devices when iterating over /dev/disk/by-id; they will be handled
19253 later if appropriate, which they aren't always (e.g. LVM).
19255 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19257 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19258 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19260 (grub_halt): Likewise.
19261 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19263 (grub_halt): Don't return, even if all of shut-down, power-off, and
19266 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19268 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19269 arguments, not three.
19271 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19273 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19274 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19275 LVM-on-RAID is handled correctly.
19277 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19279 * docs/grub.texi (Changes from GRUB Legacy): New section.
19280 (Future): Fix typo.
19282 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19284 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19285 grub.d/README accidentally ends up executable for one reason or
19286 another. Ignore it.
19288 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19290 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19291 (gpt_partition_map_iterate): Support non-512B sectors.
19293 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19295 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19296 Tested by: Seth Goldberg.
19298 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19300 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19301 Properly align mbi.
19302 Reported by: Seth Goldberg.
19304 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19306 * util/grub-mkrescue.in: Avoid module duplication.
19308 2010-07-01 Sean Finney <seanius@seanius.net>
19310 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19312 2010-07-01 Sean Finney <seanius@seanius.net>
19314 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19316 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19318 * disk/lvm.c (grub_lvm_checkvalue): New function.
19319 (grub_lvm_check_flag): Likewise.
19321 2010-07-01 Robert Millan <rmh@gnu.org>
19323 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19324 Support 'p' as partition separator on kernel of FreeBSD (used
19326 (grub_util_biosdisk_get_grub_dev): Likewise.
19328 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19330 Yeeloong firmware port.
19332 * boot/mips/yeeloong/fwstart.S: New file.
19333 * bus/cs5536.c (gpiodump): New const.
19334 (set_io_space): New function.
19335 (set_iod): Likewise.
19336 (set_p2d): Likewise.
19337 (grub_cs5536_init_geode): Likewise.
19338 * commands/mips/yeeloong/lsspd.c: New file.
19339 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19340 (serial_mod_SOURCES): New variable.
19341 (serial_mod_CFLAGS): Likewise.
19342 (serial_mod_LDFLAGS): Likewise.
19343 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19344 term/terminfo.c and term/tparm.c.
19345 (pkglib_IMAGES): Add fwstart.img.
19346 (fwstart_img_SOURCES): New variable.
19347 (fwstart_img_CFLAGS): Likewise.
19348 (fwstart_img_ASFLAGS): Likewise.
19349 (fwstart_img_LDFLAGS): Likewise.
19350 (fwstart_img_FORMAT): Likewise.
19351 (pkglib_MODULES): Add lsspd.mod.
19352 (lsspd_mod_SOURCES): New variable.
19353 (lsspd_mod_CFLAGS): Likewise.
19354 (lsspd_mod_LDFLAGS): Likewise.
19355 (pkglib_MODULES): Add halt.mod.
19356 (halt_mod_SOURCES): New variable.
19357 (halt_mod_CFLAGS): Likewise.
19358 (halt_mod_LDFLAGS): Likewise.
19359 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19360 (serial_mod_SOURCES): Removed.
19361 (serial_mod_CFLAGS): Likewise.
19362 (serial_mod_LDFLAGS): Likewise.
19363 * disk/ata.c (check_device): New function.
19364 (grub_ata_device_initialize): Use check_device.
19365 (grub_ata_iterate): Recheck devices.
19366 (grub_ata_open): Likewise.
19367 (grub_atapi_iterate): Likewise.
19368 (grub_atapi_open): Likewise.
19369 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19370 (GRUB_ATA_CH1_PORT1): Likewise.
19371 (GRUB_ATA_CH0_PORT2): Likewise.
19372 (GRUB_ATA_CH1_PORT2): Likewise.
19373 * include/grub/mips/loongson.h: New file.
19374 * include/grub/mips/yeeloong/ec.h: Likewise.
19375 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19376 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19377 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19378 * include/grub/misc.h (grub_halt): Declare as noreturn.
19379 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19380 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19381 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19382 (UART_ENABLE_DTRRTS): Likewise.
19383 (UART_ENABLE_MODEM): Removed.
19384 (UART_ENABLE_OUT2): New const.
19385 * include/grub/term.h (grub_term_register_input_active): New function.
19386 (grub_term_register_output_active): Likewise.
19387 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19389 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19390 (init_pci): New function.
19391 (grub_machine_init): Execute platform init when firmware. Init serial.
19392 (grub_halt): Implement.
19393 (grub_exit): Likewise.
19394 (grub_reboot): Likewise.
19395 * term/serial.c (serial_hw_init): Update macros.
19396 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19397 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19398 (image_targets): New target mipsel-yeeloong-flash.
19399 (generate_image): Support IMAGE_YEELOONG_FLASH.
19400 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19401 (grub_video_sm712_setup): Init card.
19402 (grub_video_sm712_set_palette): Removed.
19403 * video/sm712_init.c: New file.
19405 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19407 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19408 PATH when running help2man and then run it on the unadorned
19409 executable names, rather than passing $(builddir)/* paths to
19410 help2man. This avoids the build directory ending up in generated
19413 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19415 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19416 to avoid accidents when debugging with 'sh -x'.
19417 * util/grub-mkrescue.in: Likewise.
19418 * util/grub.d/00_header.in: Likewise.
19419 * util/grub.d/10_hurd.in: Likewise.
19420 * util/grub.d/10_kfreebsd.in: Likewise.
19421 * util/grub.d/10_linux.in: Likewise.
19422 * util/grub.d/10_netbsd.in: Likewise.
19423 * util/grub.d/10_windows.in: Likewise.
19424 * util/grub.d/20_linux_xen.in: Likewise.
19425 * util/grub.d/30_os-prober.in: Likewise.
19426 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19428 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19430 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19431 last character in the buffer.
19432 Reported by: Vladimir Serbinenko.
19434 2010-06-29 Robert Millan <rmh@gnu.org>
19436 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19437 (Command-line and menu entry commands): Document `badram' command.
19439 2010-06-28 Robert Millan <rmh@gnu.org>
19441 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19442 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19443 command using ${GRUB_BADRAM} as parameter.
19445 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19447 * docs/grub.texi (Device map): New section.
19448 (Themes): New section (stub).
19449 * Makefile.in (docs/grub.info): The info documentation now builds
19450 without errors. Make sure it stays that way.
19452 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19454 Use normal parser for menu entries.
19455 Reported by: Thomas Frauendorfer
19457 * include/grub/parser.h (grub_parser_execute): Don't export.
19458 * normal/menu.c (grub_menu_execute_entry_real): New function.
19459 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19461 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19463 * docs/grub.texi (Embedded configuration): New section (replacing
19464 old "Preset Menu" stub).
19465 (Images): New section.
19466 (configfile): Note that any menu entries defined in `file' are shown
19469 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19471 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19473 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19475 * util/grub-install.in: Add --debug-image= option.
19477 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19479 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19482 * util/deviceiter.c (check_device): Rename to ...
19483 (check_device_readable_unique): ... this. Update all callers.
19484 Maintain and check a list of which devices (by canonicalized name)
19485 have already been seen.
19486 (clear_seen_devices): New function.
19487 (compare_file_names) [__linux__]: New function.
19488 (grub_util_iterate_devices): Clear the list of seen devices on exit
19489 and (just in case) on entry.
19490 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19491 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19492 seen-devices list, superseded by general code in check_device.
19494 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19496 * commands/cat.c (options): New variable.
19497 (grub_cmd_cat): Parse options. If the --dos option is given, print
19498 DOS-style "\r\n" line endings as simple newlines (Debian bug
19500 (GRUB_MOD_INIT): Use extcmd.
19501 (GRUB_MOD_FINI): Likewise.
19502 * docs/grub.texi (cat): Document --dos.
19504 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19506 XEN with Linux grub-mkconfig support.
19508 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19509 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19510 GRUB_CMDLINE_XEN_DEFAULT.
19511 * util/grub.d/20_linux_xen.in: New file.
19513 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19515 Initialise VGA video on qemu ourselves.
19517 * boot/i386/qemu/boot.S: Don't call 0xc000.
19518 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19519 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19520 (kernel_img_HEADERS): Add pci.h.
19521 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19522 * configure.ac: Force unifont on qemu and yeeloong.
19523 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19524 (grub_vga_palette_write): Use correct register.
19525 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19526 Call grub_qemu_init_cirrus.
19527 * kern/i386/qemu/init.c: New file.
19528 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19530 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19532 2010-06-26 Pavel Roskin <proski@gnu.org>
19534 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19537 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19539 * docs/grub.texi (Simple configuration): Explain that
19540 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19541 set to `true' to disable their respective recovery entries, not
19544 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19546 Make the `source' command slightly faster.
19548 * normal/main.c (grub_normal_execute): Don't re-read list files when
19551 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19553 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19554 field position and mask size to red fields from mode_info, not
19556 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19557 Remove redundant tag->common.framebuffer_type assignment.
19558 Reported by: Seth Goldberg.
19560 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19562 Sync up other versions of the Linux loader with Robert Millan's
19563 change of 2010-01-09, "Make loader output a bit more user-friendly".
19565 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19567 (grub_cmd_linux): Likewise.
19568 (grub_cmd_initrd): Likewise.
19569 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19570 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19572 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19574 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19575 larger than MEMORY_MAP_SIZE.
19577 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19579 Fix parallel build.
19581 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19583 * script/parser.y: #include grub_script.tab.h header.
19585 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19587 Support >3GiB and <16MiB RAM in i386-qemu.
19589 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19590 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19591 (grub_lower_mem): Removed.
19592 (grub_upper_mem): Likewise.
19593 (mem_size): Made static.
19594 (above_4g): New variable.
19595 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19596 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19599 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19601 Cirrus 5446 and Bochs video cards support.
19603 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19605 (video_cirrus_mod_SOURCES): New variable.
19606 (video_cirrus_mod_CFLAGS): Likewise.
19607 (video_cirrus_mod_LDFLAGS): Likewise.
19608 (video_bochs_mod_SOURCES): Likewise.
19609 (video_bochs_mod_CFLAGS): Likewise.
19610 (video_bochs_mod_LDFLAGS): Likewise.
19611 * include/grub/vga.h: New file.
19612 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19613 (grub_video_fb_set_page_t): New type.
19614 (grub_video_fb_setup): New prototype.
19615 (grub_video_fb_swap_buffers): Likewise.
19616 (grub_video_fb_get_info_and_fini): Likewise.
19617 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19618 (CRTC_DATA_PORT): Likewise.
19619 (CRTC_CURSOR): Likewise.
19620 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19621 (CRTC_CURSOR_ADDR_LOW): Likewise.
19622 (CRTC_CURSOR_DISABLE): Likewise.
19623 (update_cursor): Use grub_vga_cr_write.
19624 (grub_vga_text_setcursor): Likewise.
19625 * video/bochs.c: New file.
19626 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19627 (palette): Likewise.
19628 (palette_size): Likewise.
19629 (framebuffer): New variable.
19630 (grub_video_fb_init): Use 'framebuffer'.
19631 (grub_video_fb_fini): Likewise.
19632 (grub_video_fb_get_info): Likewise.
19633 (grub_video_fb_get_palette): Likewise.
19634 (grub_video_fb_set_palette): Likewise.
19635 (grub_video_fb_set_viewport): Likewise.
19636 (grub_video_fb_get_viewport): Likewise.
19637 (grub_video_fb_map_color): Likewise.
19638 (grub_video_fb_map_rgb): Likewise.
19639 (grub_video_fb_map_rgba): Likewise.
19640 (grub_video_fb_unmap_color): Likewise.
19641 (grub_video_fb_unmap_color_int): Likewise.
19642 (grub_video_fb_fill_rect): Likewise.
19643 (grub_video_fb_blit_bitmap): Likewise.
19644 (grub_video_fb_blit_render_target): Likewise.
19645 (grub_video_fb_scroll): Likewise.
19646 (grub_video_fb_create_render_target): Likewise.
19647 (grub_video_fb_doublebuf_blit_init): Likewise.
19648 (grub_video_fb_set_active_render_target): Handle doublebuffering.
19649 (doublebuf_pageflipping_update_screen): New function.
19650 (doublebuf_pageflipping_init): Likewise.
19651 (grub_video_fb_setup): Likewise.
19652 (grub_video_fb_swap_buffers): Likewise.
19653 (grub_video_fb_get_info_and_fini): Likewise.
19654 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
19656 (doublebuf_pageflipping_commit): Restructured into ...
19657 (doublebuf_pageflipping_set_page): ... this.
19658 (doublebuf_pageflipping_update_screen): Removed.
19659 (doublebuf_pageflipping_init): Likewise.
19660 (double_buffering_init): Likewise.
19661 (grub_video_vbe_setup): Use grub_video_fb_setup.
19662 (grub_video_vbe_swap_buffers): Removed.
19663 (grub_video_vbe_set_active_render_target): Likewise.
19664 (grub_video_vbe_get_active_render_target): Likewise.
19665 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
19666 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
19667 grub_video_fb_set_active_render_target and
19668 grub_video_fb_get_active_render_target.
19669 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
19670 (SEQUENCER_DATA_PORT): Likewise.
19671 (MAP_MASK_REGISTER): Likewise.
19672 (CRTC_ADDR_PORT): Likewise.
19673 (CRTC_DATA_PORT): Likewise.
19674 (START_ADDR_HIGH_REGISTER): Likewise.
19675 (START_ADDR_LOW_REGISTER): Likewise.
19676 (GRAPHICS_ADDR_PORT): Likewise.
19677 (GRAPHICS_DATA_PORT): Likewise.
19678 (READ_MAP_REGISTER): Likewise.
19679 (INPUT_STATUS1_REGISTER): Likewise.
19680 (INPUT_STATUS1_VERTR_BIT): Likewise.
19681 (get_map_mask): Use grub_vga_sr_read.
19682 (set_map_mask): Use grub_vga_sr_write.
19683 (set_read_map): Use grub_vga_gr_write.
19684 (set_start_address): Use grub_vga_cr_write.
19685 * video/sm712.c (framebuffer): Remove leftover fields.
19687 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
19689 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
19690 setting GRUB_VIDEO_BACKEND. Make it available as a user override
19691 instead. Replace the gfxterm backend check with a check that
19692 ${GRUB_PREFIX}/video.lst is non-empty.
19693 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
19695 (load_video): New generated function. Call it before loading
19696 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
19697 * util/grub.d/10_linux.in (linux_entry): Call load_video.
19698 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
19699 * docs/grub.texi (Simple configuration): Document
19700 GRUB_VIDEO_BACKEND.
19702 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19704 Use video functions in linux and xnu loaders.
19706 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
19707 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
19708 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
19709 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
19710 loader/i386/pc/linux.c.
19711 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
19712 (find_line_len): Removed.
19713 (find_framebuf): Likewise.
19714 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
19715 * loader/i386/efi/xnu.c: Removed.
19716 * loader/i386/pc/xnu.c: Moved from here...
19717 * loader/i386/xnu.c: ...here.
19719 Enable priorities in video drivers.
19721 * include/grub/video.h (grub_video_adapter_prio_t): New type.
19722 (grub_video_adapter): New field prio.
19723 (grub_video_register): Respect prio when inserting.
19724 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
19725 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
19726 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
19727 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
19728 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
19729 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
19730 * video/sm712.c (grub_video_sm712_adapter): Likewise.
19734 * include/grub/video.h (grub_video_driver_id_t): New value
19735 GRUB_VIDEO_DRIVER_SDL.
19736 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
19738 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19740 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
19741 argument to printf.
19742 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19744 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19746 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
19747 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19749 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19751 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
19752 directly, and recommend grub-install instead.
19753 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19755 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19757 Fix i386-pc prefix handling with nested partitions (Debian bug
19758 #585068). Note that the case where the core image is booted using
19759 multiboot and relocated from its original location still requires
19762 * kern/i386/pc/init.c (make_install_device): If the prefix starts
19763 with "(,", fill the boot drive in between those two characters, but
19764 expect that a full partition specification including partition map
19766 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
19767 specified, write a prefix without the drive name but including a
19768 full partition specification.
19770 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
19772 * util/grub-mkconfig.in: Ignore non-option arguments, for
19773 compatibility with older versions (before 2010-06-12) which did the
19774 same. In particular, this makes it easier to ship an update-grub
19775 wrapper which is compatible with that used with GRUB Legacy (Debian
19778 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19780 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
19781 for manual page generation.
19783 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19785 * po/POTFILES: Remove leftover commands/handler.c.
19787 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19789 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
19790 left this script non-functional.
19792 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19794 * docs/man/grub-emu.h2m: New file.
19796 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
19798 * docs/grub.texi (Commands): Document reduced command set in rescue
19800 (cpuid): New section.
19802 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
19804 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
19805 new partition naming style.
19806 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
19808 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
19810 Add "-o grub.iso" like cmdline options support.
19812 * util/grub-install.in: Improve cmdline option parsing.
19813 * util/grub-mkconfig.in: Likewise.
19814 * util/grub-mkrescue.in: Likewise.
19815 * util/grub-reboot.in: Likewise.
19816 * util/grub-set-default.in: Likewise.
19817 * util/i386/efi/grub-install.in: Likewise.
19818 * util/ieee1275/grub-install.in: Likewise.
19819 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19821 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19823 * .bzrignore: Ignore 41_custom.
19825 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19827 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
19829 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19831 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
19832 prototype declarations.
19834 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
19835 generating fs, partmap, and video lists.
19836 * include/grub/fs.h (grub_fs_register): Omit prototype if
19837 GRUB_LST_GENERATOR is defined.
19838 * include/grub/partition.h (grub_partition_map_register): Likewise.
19839 * include/grub/video.h (grub_video_register): Likewise.
19841 2010-06-12 Javier Martín <lordhabbit@gmail.com>
19843 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
19845 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19847 * util/grub-mkrescue.in: Support --xorriso argument.
19849 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19851 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
19852 Suggested by: Thomas Schmitt.
19854 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19856 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
19857 Suggested by: Thomas Schmitt.
19859 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19861 custom.cfg support.
19863 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
19864 * util/grub.d/41_custom.in: New file.
19866 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19868 * util/grub-mkrescue.in (make_image): Remove sh module, which has
19869 been merged back into normal.
19871 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19873 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
19874 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
19876 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19878 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
19879 when generating manual pages.
19880 * docs/man/grub-bin2h.h2m: New file.
19881 * docs/man/grub-editenv.h2m: New file.
19882 * docs/man/grub-fstest.h2m: New file.
19883 * docs/man/grub-install.h2m: New file.
19884 * docs/man/grub-macho2img.h2m: New file.
19885 * docs/man/grub-mkconfig.h2m: New file.
19886 * docs/man/grub-mkdevicemap.h2m: New file.
19887 * docs/man/grub-mkfont.h2m: New file.
19888 * docs/man/grub-mkimage.h2m: New file.
19889 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
19890 * docs/man/grub-mkrelpath.h2m: New file.
19891 * docs/man/grub-mkrescue.h2m: New file.
19892 * docs/man/grub-ofpathname.h2m: New file.
19893 * docs/man/grub-pe2elf.h2m: New file.
19894 * docs/man/grub-probe.h2m: New file.
19895 * docs/man/grub-reboot.h2m: New file.
19896 * docs/man/grub-script-check.h2m: New file.
19897 * docs/man/grub-set-default.h2m: New file.
19898 * docs/man/grub-setup.h2m: New file.
19900 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
19902 Use FOR_* macros instead of *_iterate whenever possible.
19904 * commands/handler.c: Removed.
19905 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
19906 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
19907 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19908 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
19909 (grub_probe_SOURCES): Remove kern/parser.c.
19910 (util/grub-script-check.c_DEPENDENCIES): Removed.
19911 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
19912 and grub_script_check_init.c.
19913 (grub_script_check_init.lst): Removed.
19914 (grub_script_check_init.h): Likewise.
19915 (grub_script_check_init.c): Likewise.
19916 (pkglib_MODULES): Remove handler.mod and sh.mod.
19917 (handler_mod_SOURCES): Removed.
19918 (handler_mod_CFLAGS): Likewise.
19919 (handler_mod_LDFLAGS): Likewise.
19920 (normal_mod_SOURCES): Remove normal/handler.c.
19921 Add script/main.c, script/script.c, script/execute.c,
19922 script/function.c, script/lexer.c, grub_script.tab.c
19923 and grub_script.yy.c.
19924 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19925 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19926 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
19927 (grub_setup_SOURCES): Remove kern/parser.c.
19928 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19929 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
19930 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19931 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19932 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19933 (grub_setup_SOURCES): Remove kern/parser.c.
19934 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19935 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
19936 * include/grub/command.h (grub_command_iterate): Removed.
19937 (FOR_COMMANDS): New macro.
19938 * include/grub/dl.h (grub_dl): New member next.
19939 (grub_dl_iterate): Removed.
19940 (grub_dl_head): New variable declaration.
19941 (FOR_DL_MODULES): New macro.
19942 * include/grub/fs.h: Include list.h.
19943 (grub_fs): Make next first element.
19944 (grub_fs_list): New variable declaration.
19945 (grub_fs_register): Make inline.
19946 (grub_fs_unregister): Likewise.
19947 (grub_fs_iterate): Removed.
19948 (FOR_FILESYSTEMS): New macro.
19949 * include/grub/handler.h: Removed.
19950 * include/grub/list.h (grub_list_hook_t): Removed.
19951 (grub_list_test_t): Likewise.
19952 (grub_list_pop): Likewise.
19953 (grub_list_iterate): Likewise.
19954 (grub_list_insert): Likewise.
19955 (FOR_LIST_ELEMENTS): New macro.
19956 * include/grub/parser.h (grub_parser_class): Removed.
19957 (grub_parser_register): Likewise.
19958 (grub_parser_unregister): Likewise.
19959 (grub_parser_get_current): Likewise.
19960 (grub_parser_set_current): Likewise.
19961 (grub_register_rescue_parser): Likewise.
19962 (grub_rescue_parse_line): New function.
19963 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
19964 * include/grub/script_sh.h (grub_script_function_list): New variable
19966 (FOR_SCRIPT_FUNCTIONS): New macro.
19967 (grub_script_function_iterate): Removed.
19968 (grub_normal_parse_line): New prototype.
19969 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
19970 (FOR_DISABLED_TERM_INPUTS): Likewise.
19971 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19972 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19973 * include/grub/video.h (grub_video_adapter): Move 'next' to first
19975 (grub_video_register): Inline.
19976 (grub_video_unregister): Likewise.
19977 (grub_video_adapter_list): New variable declaration.
19978 (grub_video_iterate): Removed.
19979 (FOR_VIDEO_ADAPTERS): New macro.
19980 * kern/dl.c (grub_dl_list): Removed. All users updated.
19981 (grub_dl_iterate): Removed.
19982 * kern/fs.c (grub_fs_list): Make global.
19983 (grub_fs_register): Removed.
19984 (grub_fs_unregister): Likewise.
19985 (grub_fs_iterate): Likewise.
19986 * kern/handler.c: Removed.
19987 * kern/list.c (grub_list_pop): Removed.
19988 (grub_list_iterate): Likewise.
19989 (grub_list_insert): Likewise.
19990 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
19991 (grub_prio_list_insert): Don't use grub_list_insert.
19992 * kern/main.c (grub_register_rescue_parser): Don't call
19993 grub_register_rescue_parser.
19994 * kern/parser.c (grub_parser_class): Removed.
19995 (grub_parser_execute): Use grub_rescue_parse_line.
19996 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
19997 (grub_rescue_parser): Removed.
19998 (grub_register_rescue_parser): Likewise.
19999 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20000 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20001 (grub_auth_check_authentication): Likewise.
20002 * normal/completion.c (iterate_command): Removed.
20003 (grub_normal_do_completion): Use FOR_COMMANDS.
20004 * normal/handler.c: Removed.
20005 * normal/main.c (read_config_file): Remove parser changing.
20006 (grub_normal_execute): Don't call read_handler_list.
20007 (grub_normal_read_line_real): Statically allocate prompt.
20008 (grub_cmdline_run): Use grub_normal_parse_line.
20009 (GRUB_MOD_FINI): Don't call free_handler_list.
20010 * normal/menu_entry.c (run): Likewise.
20011 * script/function.c (grub_script_function_list): Make global.
20012 (grub_script_function_iterate): Removed.
20013 * script/main.c (grub_normal_parse_line): Make global.
20014 (grub_sh_parser): Removed.
20015 (GRUB_MOD_INIT): Likewise.
20016 (GRUB_MOD_FINI): Likewise.
20017 * tests/lib/functional_test.c (grub_functional_test): Use
20019 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20020 (grub_test_run): Use FOR_LIST_ELEMENTS.
20021 * tests/lib/unit_test.c (main): Likewise.
20022 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20024 * util/grub-fstest.c (grub_term_input_class): Removed.
20025 (grub_term_output_class): Likewise.
20026 * util/grub-probe.c: Likewise.
20027 * util/i386/pc/grub-setup.c: Likewise.
20028 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20029 * util/grub-script-check.c (main): Don't call grub_init_all and
20031 * video/video.c (grub_video_adapter_list): Make global.
20032 (grub_video_register): Removed.
20033 (grub_video_unregister): Likewise.
20034 (grub_video_iterate): Likewise.
20036 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20038 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20039 reported by Henrique Ferreiro.
20041 2010-06-09 Robert Millan <rmh@gnu.org>
20043 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20044 ones, when both are available.
20046 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20048 Make --version uniform and avoid hard-coded program name.
20050 * util/grub-mkimage.c (main): Use `program_name' instead of
20052 * util/i386/pc/grub-setup.c (main): Likewise.
20053 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20054 * util/grub-install.in: Save the basename of $0 in $self, and use the
20055 latter in informational messages. Use the same format for --version
20056 as the binary programs.
20057 * util/grub-mkconfig.in: Likewise.
20058 * util/grub-mkrescue.in: Likewise.
20059 * util/grub-reboot.in: Likewise.
20060 * util/grub-set-default.in: Likewise.
20061 * util/i386/efi/grub-install.in: Likewise.
20062 * util/ieee1275/grub-install.in: Likewise.
20063 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20065 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20067 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20068 embedding area. Use <= instead of == when checking for non-emptiness.
20070 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20072 * configure.ac: Add `.' to the directories searched for unifont.
20074 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20076 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20079 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20081 * docs/grub.texi (History): Expand to cover GRUB 2.
20082 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20083 commands, not `terminal'.
20084 (serial): Likewise.
20085 (terminal_input): New section.
20086 (terminal_output): New section.
20087 (uppermem): New section (stub).
20088 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20090 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20092 * docs/grub.texi (Security): Menu entries are unrestricted by
20093 default, not restricted to superusers as I had previously thought.
20094 Reword to account for this.
20096 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20098 * kern/emu/misc.c (device_mapper_null_log): New function.
20099 (grub_device_mapper_supported): New function.
20100 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20102 * kern/emu/hostdisk.c (find_partition_start): Check whether
20103 device-mapper is supported before trying to use it.
20104 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20106 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20108 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20109 (File name syntax): Likewise.
20110 (help): --all is no longer supported in GRUB 2. Be more precise
20111 about pattern matching.
20113 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20115 * normal/completion.c (grub_normal_do_completion): When completing
20116 arguments to "set" and the current word contains an equals sign,
20117 skip to after the equals sign before starting completion.
20119 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20121 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20123 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20125 * docs/grub.texi (Network): New section.
20126 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20127 `(nd)' as in GRUB Legacy.
20128 (pxe_unload): New section.
20130 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20132 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20133 in the rescue shell, so recommend using `set' instead. Thanks,
20136 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20138 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20139 (password): New section.
20140 (password_pbkdf2): New section.
20141 (search): New section.
20142 (Security): New section.
20143 (Troubleshooting): New section, currently very incomplete.
20144 (Invoking grub-mkpasswd-pbkdf2): New section.
20145 (Internals): New section, currently very incomplete.
20147 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20149 * util/grub.d/00_header.in: Add some more quoting (of
20150 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20152 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20154 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20156 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20157 to `count', fixing variable shadowing that broke the -c option.
20159 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20161 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20162 in case they contain spaces.
20164 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20166 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20167 "part_" to partmap module names, in line with grub-install.
20168 Reported by: Jindřich Makovička (Debian bug #584426).
20170 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20172 * util/grub-mkimage.c: Make target-related error messages slightly
20173 more helpful; -O talks about "format". Explicitly point to the use
20174 of -O if no target is specified.
20175 Reported by: Didier Raboud (Debian bug #584415).
20177 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20179 * INSTALL: Document several build requirements for optional features
20180 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20182 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20184 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20185 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20186 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20188 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20190 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20191 Thanks to Jordan Uggla for spotting this.
20193 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20195 Finally make USB usable.
20197 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20198 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20199 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20200 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20201 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20202 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20203 (GRUB_OHCI_FSMPS): Likewise.
20204 (GRUB_OHCI_PERIODIC_START): Likewise.
20205 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20206 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20207 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20208 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20209 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20210 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20211 (grub_ohci_transaction): Likewise.
20212 (grub_ohci_transfer): Improve condition detection algorithms.
20213 Handle toggle property. Program the transactions correctly.
20214 Improve error handling. Various important fixups.
20215 (grub_ohci_portstatus): Put register writes in right order.
20216 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20217 (grub_uhci_transfer): Don't show "failed" message on success.
20218 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20220 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20221 determine its size.
20222 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20223 before initialization is completed. Use IN direction for empty
20224 transfers. Use last_trans and compute toggle.
20225 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20226 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20227 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20228 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20229 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20230 (grub_usb_device): Increase toggle to 256.
20231 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20232 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20233 GRUB_USBMS_SUBCLASS_SFF8070.
20234 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20235 (grub_scsi_inquiry): New member page and alloc_length.
20236 (grub_scsi_request_sense): New structure.
20237 (grub_scsi_request_sense_data): Likewise.
20238 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20240 * disk/scsi.c (grub_scsi_request_sense): New function.
20241 (grub_scsi_test_unit_ready): Likewise.
20242 (grub_scsi_inquiry): Fill new fields.
20243 (grub_scsi_read_capacity): Likewise.
20244 (grub_scsi_read10): Add request sense at the end.
20245 (grub_scsi_read12): Likewise.
20246 (grub_scsi_write10): Likewise.
20247 (grub_scsi_write12): Likewise.
20248 (grub_scsi_open): Add Test Unit Ready.
20249 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20250 Support additional subclasses. Con't clear halt yet. Activate the
20251 proper config. Calculate LUNs correctly.
20252 (grub_usbms_transfer): Various important fixups.
20254 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20256 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20257 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20258 (grub_ohci_fini_hw): New function.
20259 (grub_ohci_restore_hw): Likewise.
20260 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20261 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20262 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20264 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20266 Dedicated DMA allocations.
20268 * bus/pci.c (grub_memalign_dma32): New function
20269 (grub_dma_free): Likewise.
20270 (grub_dma_get_virt): Likewise.
20271 (grub_dma_get_phys): Likewise.
20272 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20273 (grub_ohci_pci_iter): Use dma32_alloc.
20274 (grub_ohci_transfer): Likewise.
20275 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20276 (grub_usb_bulk_readwrite): Likewise.
20277 * include/grub/pci.h: Add declarations.
20279 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20283 * bus/cs5536.c: New file.
20284 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20285 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20286 (cs5536_mod_SOURCES): New variable.
20287 (cs5536_mod_CFLAGS): Likewise.
20288 (cs5536_mod_LDFLAGS): Likewise.
20289 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20291 (kernel_img_SOURCES): Add bus/cs5536.c.
20292 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20294 (usb_mod_SOURCES): New variable.
20295 (usb_mod_CFLAGS): New variable.
20296 (usb_mod_LDFLAGS): New variable.
20297 (usbtest_mod_SOURCES): New variable.
20298 (usbtest_mod_CFLAGS): New variable.
20299 (usbtest_mod_LDFLAGS): New variable.
20300 (ohci_mod_SOURCES): New variable.
20301 (ohci_mod_CFLAGS): New variable.
20302 (ohci_mod_LDFLAGS): New variable.
20303 (usbms_mod_SOURCES): New variable.
20304 (usbms_mod_CFLAGS): New variable.
20305 (usbms_mod_LDFLAGS): New variable.
20306 (usb_keyboard_mod_SOURCES): New variable.
20307 (usb_keyboard_mod_CFLAGS): New variable.
20308 (usb_keyboard_mod_LDFLAGS): New variable.
20309 * include/grub/smbus.h: New file.
20310 * include/grub/cs5536.h: New file.
20312 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20314 * util/grub.d/00_header.in: Add safety check to make sure that
20315 ${locale_dir} exists before trying to probe it.
20317 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20319 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20320 per the GNU Coding Standards; this is now too obscure to be worth
20323 (chainloader): Remove cross-reference to `SCO UnixWare'.
20325 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20327 * docs/grub.texi (Chain-loading): New section.
20328 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20329 adjusted for GRUB 2.
20330 (SCO UnixWare): Likewise.
20332 (chainloader): Add reference to `Block list syntax'.
20333 (drivemap): New section.
20334 (parttool): New section.
20336 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20338 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20340 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20341 (Installing GRUB using grub-install): Remove reference to the grub
20342 shell; mention `grub-mkimage' and `grub-setup' instead.
20343 (Invoking grub-install): Likewise.
20344 (Interface): Add reference to `Menu entry editor'.
20345 (serial): Remove `--device' option.
20347 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20349 * docs/grub.texi (Configuration): New section, documenting
20350 configuration file generation using grub-mkconfig. I've left a slot
20351 for documenting the full shell scripting format but have not yet
20352 started on writing that up.
20353 (Invoking grub-mkconfig): New section.
20355 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20357 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20358 (GNU GRUB manual): Likewise.
20359 (General commands): Update description of `terminfo' for GRUB 2.
20361 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20363 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20364 (GRUB_MOD_INIT): Fix capitalisation.
20365 * docs/grub.texi (Command-line and menu entry commands): Document
20366 gettext and gptsync commands.
20368 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20370 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20371 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20373 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20375 Add btrfs probing support, currently only in the single-device case.
20377 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20379 (grub_guess_root_device): Call find_root_device_from_mountinfo
20380 before looking in /dev.
20382 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20384 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20385 GRUB_DISK_SIZE_UNKNOWN.
20386 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20388 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20390 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20391 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20392 corrupted or not synced properly.
20394 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20396 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20397 Reported by: Seth Goldberg.
20399 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20401 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20403 Reported by: Seth Goldberg.
20405 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20407 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20408 Reported by: Seth Goldberg.
20410 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20412 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20413 64-bit address as signed on MIPS.
20415 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20417 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20418 to the empty string.
20420 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20422 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20424 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20425 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20426 * kern/misc.c (__enable_execute_stack): Disable on
20429 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20431 Make grub-probe work with symbolic links under /dev/mapper as well
20432 as with real block devices. The Linux world seems to be (at best)
20433 in transition here, and GRUB shouldn't get caught in the middle.
20435 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20438 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20440 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20441 input files (in which case exit zero).
20443 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20445 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20446 return NULL for various reasons even if it has a maximum-length
20447 buffer: for example, there might be a symlink loop, or the path
20448 might exceed PATH_MAX. If this happens, return NULL.
20450 2010-05-27 Robert Millan <rmh@gnu.org>
20452 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20453 partmap module to handle cross-partmap setups.
20454 Reported by Orestes Mas. Gràcies!
20456 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20458 * util/grub-mkrescue.in: Initialise override_dir rather than
20459 assuming that it's unset or empty in the environment.
20461 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20463 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20464 variable index into p_index to suppress a warning with -Wshadow.
20466 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20468 * INSTALL: Added flex >= 2.5.35 requirement.
20470 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20472 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20474 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20478 * commands/i386/cmostest.c: New file.
20479 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20480 (cmostest_mod_SOURCES): New variable.
20481 (cmostest_mod_CFLAGS): Likewise.
20482 (cmostest_mod_LDFLAGS): Likewise.
20483 * conf/i386-pc.rmk: Likewise.
20484 * docs/grub.texi (Vendor power-on keys): New section.
20485 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20486 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20487 and GRUB_BUTTON_CMOS_ADDRESS.
20488 * util/grub.d/00_header.in: Handle powering-on by separate button.
20490 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20492 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20493 Removed drawing_scrollbar argument. All users updated
20495 Reported by Jo Shields
20497 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20499 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20500 buffer since gfxterm handles double repaint.
20502 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20504 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20505 * term/gfxterm.c (real_scroll): Likewise.
20507 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20509 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20510 before calling BIOS.
20512 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20514 * include/grub/i18n.h: Always enable grub_gettext.
20516 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20518 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20519 partition naming style.
20521 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20523 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20524 not the first option.
20526 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20528 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20530 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20532 * util/misc.c: Move inclusion of <limits.h> to ...
20533 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20535 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20537 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20538 Fix merge error in NetBSD code.
20539 (find_partition_start) [__NetBSD__]: Likewise.
20541 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20543 Fix grub-mkrescue usage unit testing.
20545 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20547 2010-05-18 Christian Franke <franke@computer.org>
20549 * util/grub.d/10_windows.in: Use path names instead of
20550 drive letters to prevent warning from Cygwin 1.7.
20551 Add drivemap command to menuentry if needed.
20553 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20555 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20556 gnumach and gnumach.gz.
20558 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20560 * include/grub/i18n.h (gettext): Inline instead of using #define.
20561 (grub_gettext): Likewise.
20564 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20566 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20567 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20568 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20569 (main): Add a slash after pkglibdirroot.
20571 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20573 * util/grub-install.in: Add missing "in" keyword.
20575 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20577 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20578 Reported by: Seth Goldberg.
20580 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20582 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20584 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20586 * configure.ac: Check for Linux device-mapper support.
20588 * util/hostdisk.c (device_is_mapped): New function.
20589 (find_partition_start): New function, partly broken out from
20590 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20591 device-mapper support added.
20592 (linux_find_partition): Use find_partition_start.
20593 (convert_system_partition_to_system_disk): Add `st' argument.
20594 Support Linux /dev/mapper/* devices if device-mapper support is
20595 available; only DM-RAID devices are understood at present.
20596 (find_system_device): Add `st' argument. Pass it to
20597 convert_system_partition_to_system_disk.
20598 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20599 find_system_device and convert_system_partition_to_system_disk. Use
20600 find_partition_start.
20602 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20603 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20604 * util/deviceiter.c [__linux__]: Define MINOR.
20605 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20606 * util/mkdevicemap.c (grub_putchar): New function.
20607 (grub_getkey): New function.
20608 (grub_refresh): New function.
20609 (main): Set debug=all if -v -v is used.
20611 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20613 Fix build with non-GNU libcs.
20615 * util/misc.c (canonicalize_file_name): Move to ...
20616 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20617 grub_make_system_path_relative_to_its_root.
20619 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20621 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20622 we handle finding grub-mkimage. Default to finding grub-mkimage in
20623 ${bindir} with program_transform_name applied, and provide a
20624 --grub-mkimage option to override this.
20626 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20628 Remove grub-mkisofs.
20630 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20631 (grub_mkisofs_SOURCES): Removed.
20632 (grub_mkisofs_CFLAGS): Removed.
20633 * util/mkisofs/defaults.h: Removed.
20634 * util/mkisofs/eltorito.c: Likewise.
20635 * util/mkisofs/exclude.h: Likewise.
20636 * util/mkisofs/hash.c: Likewise.
20637 * util/mkisofs/include/: Likewise.
20638 * util/mkisofs/include/fctldefs.h: Likewise.
20639 * util/mkisofs/include/mconfig.h: Likewise.
20640 * util/mkisofs/include/prototyp.h: Likewise.
20641 * util/mkisofs/include/statdefs.h: Likewise.
20642 * util/mkisofs/iso9660.h: Likewise.
20643 * util/mkisofs/joliet.c: Likewise.
20644 * util/mkisofs/match.c: Likewise.
20645 * util/mkisofs/match.h: Likewise.
20646 * util/mkisofs/mkisofs.c: Likewise.
20647 * util/mkisofs/mkisofs.h: Likewise.
20648 * util/mkisofs/msdos_partition.h: Likewise.
20649 * util/mkisofs/multi.c: Likewise.
20650 * util/mkisofs/name.c: Likewise.
20651 * util/mkisofs/rock.c: Likewise.
20652 * util/mkisofs/tree.c: Likewise.
20653 * util/mkisofs/write.c: Likewise.
20655 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20657 Unify grub-mkimage accross platforms.
20659 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
20660 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
20661 (grub_mkelfimage_SOURCES): Removed.
20662 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
20663 (util/grub-mkimage.c_DEPENDENCIES): .. this.
20664 (bin_UTILITIES): Add grub-mkimage.
20665 (grub_mkimage_SOURCES): New variable.
20666 (kernel_img_HEADERS): Remove machine/kernel.h.
20667 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
20668 (pkglib_PROGRAMS): Add kernel.img.
20669 (kernel_img_HEADERS): Add machine/kernel.h.
20670 (kernel_img_FORMAT): Removed.
20671 (bin_UTILITIES): Remove grub-mkimage.
20672 (grub_mkimage_SOURCES): Removed.
20673 (grub_mkimage_CFLAGS): Likewise.
20674 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20675 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
20676 (pkglib_PROGRAMS): Add kernel.img.
20677 (bin_UTILITIES): Remove grub-mkimage.
20678 (grub_mkimage_SOURCES): Removed.
20679 (grub_mkimage_CFLAGS): Likewise.
20680 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20681 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
20682 (pkglib_PROGRAMS): Add kernel.img.
20683 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
20684 (pkglib_PROGRAMS): Add kernel.img.
20685 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
20686 (grub_mkimage_SOURCES): Removed.
20687 (grub_mkimage_CFLAGS): Likewise.
20688 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20689 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
20690 (pkglib_PROGRAMS): Add kernel.img.
20691 (bin_UTILITIES): Remove grub-mkimage.
20692 (grub_mkimage_SOURCES): Removed.
20693 (grub_mkimage_CFLAGS): Likewise.
20694 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20695 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
20696 (grub_mkimage_SOURCES): Removed.
20697 (grub_mkimage_CFLAGS): Likewise.
20698 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20699 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
20700 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
20701 (grub_pe32_optional_header): ... this.
20702 (grub_pe64_optional_header): ... and this. All users updated.
20703 (GRUB_PE32_PE32_MAGIC): Split into ..
20704 (GRUB_PE32_PE32_MAGIC): .. this.
20705 (GRUB_PE32_PE64_MAGIC): .. and this.
20706 (GRUB_PE32_SIGNATURE_SIZE): New definition.
20707 * include/grub/elf.h (PT_GNU_STACK): New definition.
20708 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
20709 * include/grub/i386/efi/kernel.h: Likewise.
20710 * include/grub/i386/kernel.h: Likewise.
20711 * include/grub/i386/pc/kernel.h: Likewise.
20712 * include/grub/i386/qemu/boot.h: Likewise.
20713 * include/grub/mips/kernel.h: Likewise.
20714 * include/grub/mips/qemu-mips/kernel.h: Likewise.
20715 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20716 * include/grub/powerpc/kernel.h: Likewise.
20717 * include/grub/sparc64/ieee1275/boot.h: Likewise.
20718 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20719 * include/grub/sparc64/kernel.h: Likewise.
20720 * include/grub/x86_64/efi/kernel.h: Likewise.
20721 * include/grub/x86_64/kernel.h: Likewise.
20722 * include/grub/offsets.h: New file.
20723 * include/grub/kernel.h (grub_module_info): Split into ...
20724 (grub_module_info32): ... this.
20725 (grub_module_info64): ... and this.
20726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
20727 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
20728 (grub_boot_blocklist): Moved from here ...
20729 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
20730 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
20731 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
20732 * include/grub/types.h (grub_target_to_host16): Removed.
20733 (grub_target_to_host32): Likewise.
20734 (grub_target_to_host64): Likewise.
20735 (grub_host_to_target16): Likewise.
20736 (grub_host_to_target32): Likewise.
20737 (grub_host_to_target64): Likewise.
20738 (grub_host_to_target_addr): Likewise.
20740 Support grub-mkrescue for efi, coreboot and qemu.
20742 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
20743 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
20744 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
20745 * util/grub-mkrawimage.c: Moved from here ...
20746 * util/grub-mkimage.c: ... here. All users updated.
20747 (ALIGN_ADDR): Use image_target.
20748 (TARGET_NO_FIELD): New const.
20749 (image_target_desc): New type.
20750 (image_targets): New array.
20751 (grub_target_to_host64): Use image_target.
20752 (grub_target_to_host32): Likewise.
20753 (grub_target_to_host16): Likewise.
20754 (grub_host_to_target64): Likewise.
20755 (grub_host_to_target32): Likewise.
20756 (grub_host_to_target16): Likewise.
20757 (grub_host_to_target_addr): Likewise.
20758 (generate_image): Handle multiimage.
20759 (main): Require -O parameter. All users updated.
20760 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
20761 util/efi/grub-mkimage.c
20762 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
20763 New option --rom-directory.
20765 * util/i386/efi/grub-mkimage.c: Removed.
20766 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
20767 (grub_target_to_host32): Likewise.
20768 (grub_target_to_host64): Likewise.
20769 (grub_host_to_target16): Likewise.
20770 (grub_host_to_target32): Likewise.
20771 (grub_host_to_target64): Likewise.
20772 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
20773 (grub_target_to_host32): Likewise.
20774 (grub_target_to_host64): Likewise.
20775 (grub_host_to_target16): Likewise.
20776 (grub_host_to_target32): Likewise.
20777 (grub_host_to_target64): Likewise.
20779 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
20781 Source tree is reorganized for emu build.
20783 * include/grub/util/console.h: Move from here...
20784 * include/grub/emu/console.h: ...to here.
20785 * include/grub/util/getroot.h: Move from here...
20786 * include/grub/emu/getroot.h: ...to here.
20787 * include/grub/util/hostdisk.h: Move from here...
20788 * include/grub/emu/hostdisk.h: ...to here.
20789 * util/console.c: Move from here...
20790 * kern/emu/console.c: ...to here.
20791 * util/getroot.c: Move from here...
20792 * kern/emu/getroot.c: ...to here.
20793 * util/grub-emu.c: Move from here...
20794 * kern/emu/main.c: ...to here.
20795 * util/hostdisk.c: Move from here...
20796 * kern/emu/hostdisk.c: ...to here.
20797 * util/hostfs.c: Move from here...
20798 * kern/emu/hostfs.c: ...to here.
20799 * util/mm.c: Move from here...
20800 * kern/emu/mm.c: ...to here.
20801 * util/pci.c: Move from here...
20802 * bus/emu/pci.c: ...to here.
20803 * util/sdl.c: Move from here...
20804 * video/emu/sdl.c: ...to here.
20805 * util/time.c: Move from here...
20806 * kern/emu/time.c: ...to here.
20807 * util/usb.c: Move from here...
20808 * bus/usb/emu/usb.c: ...to here.
20810 * include/grub/emu/misc.h: New header for grub-emu functions.
20811 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
20813 * conf/any-emu.rmk: Rule updates for above renames.
20814 * conf/common.rmk: Likewise.
20815 * conf/i386-pc.rmk: Likewise.
20816 * conf/i386-qemu.rmk: Likewise.
20817 * conf/mips.rmk: Likewise.
20818 * conf/sparc64-ieee1275.rmk: Likewise.
20819 * conf/x86-efi.rmk: Likewise.
20821 * disk/lvm.h: #include updates for above renames.
20822 * util/grub-mkrelpath.c: Likewise.
20823 * util/grub-probe.c: Likewise.
20824 * util/i386/pc/grub-setup.c: Likewise.
20825 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20826 * kern/emu/console.c: Likewise.
20827 * kern/emu/getroot.c: Likewise.
20828 * kern/emu/hostdisk.c: Likewise.
20829 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
20831 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
20832 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
20833 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
20834 * util/misc.c: Remove grub-emu functions.
20836 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20839 Reported by: Thorsten Grützmacher.
20841 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
20843 (circprog_set_property): Register and unregister timeout hook.
20844 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
20845 (label_destroy): Free template. and unregister hook.
20846 (label_set_state): New function.
20847 (label_set_property): Handle templates and hooks.
20848 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
20850 (progress_bar_set_property): Register and unregister timeout hook.
20851 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
20852 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
20853 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
20854 (update_timeout_visit): Removed.
20855 (update_timeouts): New function.
20856 (redraw_timeouts): Likewise.
20857 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
20858 (grub_gfxmenu_clear_timeout): Likewise.
20859 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
20860 (grub_gfxmenu_timeout_notify): Likewise.
20861 (grub_gfxmenu_timeout_notifications): New external variable.
20862 (grub_gfxmenu_timeout_register): New function.
20863 (grub_gfxmenu_timeout_unregister): Likewise.
20865 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20867 Transform (broken) vga terminal into (working) vga video driver.
20869 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
20870 video/i386/pc/vga.c.
20871 * include/grub/video.h (grub_video_driver_id):
20872 Add GRUB_VIDEO_DRIVER_VGA.
20873 * term/i386/pc/vga.c: Renamed to ...
20874 * video/i386/pc/vga.c: ...this
20875 (DEBUG_VGA): Removed.
20876 (CHAR_WIDTH): Likewise.
20877 (CHAR_HEIGHT): Likewise.
20878 (TEXT_WIDTH): Likewise.
20879 (TEXT_HEIGHT): Likewise.
20880 (DEFAULT_FG_COLOR): Likewise.
20881 (DEFAULT_BG_COLOR): Likewise.
20882 (colored_char): Likewise.
20885 (cursor_state): Likewise.
20886 (fg_color): Likewise.
20887 (bg_color): Likewise.
20888 (text_buf): Likewise.
20891 (framebuffer): New variable.
20892 (set_read_map): Disabled.
20893 (setup): New variable.
20894 (is_target): Likewise.
20895 (grub_vga_mod_init): Likewise.
20896 (grub_vga_mod_fini): Likewise.
20897 (check_vga_mem): Likewise.
20898 (write_char): Likewise.
20899 (write_cursor): Likewise.
20900 (scroll_up): Likewise.
20901 (grub_vga_putchar): Likewise.
20902 (grub_vga_getcharwidth): Likewise.
20903 (grub_vga_getwh): Likewise.
20904 (grub_vga_getxy): Likewise.
20905 (grub_vga_gotoxy): Likewise.
20906 (grub_vga_cls): Likewise.
20907 (grub_vga_setcolorstate): Likewise.
20908 (grub_vga_setcursor): Likewise.
20909 (grub_video_vga_init): New function.
20910 (grub_video_vga_setup): Likewise.
20911 (grub_video_vga_fini): Likewise.
20912 (update_target): Likewise.
20913 (grub_video_vga_blit_bitmap): Likewise.
20914 (grub_video_vga_blit_render_target): Likewise.
20915 (grub_video_vga_set_active_render_target): Likewise.
20916 (grub_video_vga_get_active_render_target): Likewise.
20917 (grub_video_vga_swap_buffers): Likewise.
20918 (grub_video_vga_set_palette): Likewise.
20919 (grub_video_vga_get_info_and_fini): Likewise.
20920 (grub_vga_term): Removed.
20921 (grub_video_vga_adapter): New variable.
20922 (GRUB_MOD_INIT): Register a video driver instead of terminal.
20923 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
20925 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20927 * video/readers/jpeg.c: Indented.
20929 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20931 Various jpeg cleanups.
20933 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
20934 (grub_jpeg_decode_quan_table): Use sizeof.
20935 (grub_jpeg_decode_du): Use ARRAY_SIZE.
20937 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
20939 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
20940 tables. Ignore non-last ac bit.
20941 (grub_jpeg_decode_quan_table): Likewise.
20943 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20945 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
20946 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
20947 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20948 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
20949 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
20950 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
20952 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20954 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
20957 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20959 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
20961 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20963 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
20966 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20968 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
20971 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20973 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
20976 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20978 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
20980 2010-05-01 Christian Franke <franke@computer.org>
20982 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
20983 Remove broken Cygwin path conversion.
20984 * util/misc.c: [__CYGWIN__] Add include and define.
20985 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
20987 (make_system_path_relative_to_its_root): Simplify loop, replace early
20989 [__CYGWIN__] Add conversion to win32 path.
20990 Include "/" case in trailing slash removal.
20992 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20994 * kern/main.c (grub_load_config): Fix copy-pasted comment.
20995 Reported by: Seth Goldberg
20997 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20999 * commands/help.c (grub_cmd_help): Fix a typo.
21000 Reported by: Seth Goldberg
21002 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21004 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21006 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21007 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21008 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21009 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21010 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21011 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21012 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21013 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21014 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21015 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21016 * normal/context.c (GRUB_MOD_INIT): Likewise.
21017 * normal/main.c (GRUB_MOD_INIT): Likewise.
21018 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21019 * term/serial.c (GRUB_MOD_INIT): Likewise.
21020 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21022 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21024 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21027 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21029 * commands/iorw.c: New file.
21030 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21031 (iorw_mod_SOURCES): New variable.
21032 (iorw_mod_CFLAGS): Likewise.
21033 (iorw_mod_LDFLAGS): Likewise.
21035 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21039 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21040 * normal/main.c (hotkey_aliases): New variable.
21041 (grub_normal_add_menu_entry): Parse "--hotkey".
21042 * normal/menu_text.c (run_menu): Handle hotkeys.
21044 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21046 * kern/i386/coreboot/init.c (grub_machine_init): Call
21047 grub_machine_mmap_init on qemu.
21049 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21051 * boot/i386/qemu/boot.S: Add a missing .code16.
21053 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21055 Use LBIO on coreboot.
21057 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21058 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21059 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21061 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21062 grub_machine_mmap_init on coreboot.
21063 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21064 GRUB_LINUXBIOS_MEMBER_LINK.
21065 (grub_machine_mmap_iterate): Fix declaration.
21066 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21068 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21070 Split coreboot and multiboot ports.
21072 * conf/i386-multiboot.rmk: New file.
21073 * configure.ac: Add multiboot port.
21074 * include/grub/i386/multiboot/boot.h: New file.
21075 * include/grub/i386/multiboot/console.h: Likewise.
21076 * include/grub/i386/multiboot/init.h: Likewise.
21077 * include/grub/i386/multiboot/kernel.h: Likewise.
21078 * include/grub/i386/multiboot/loader.h: Likewise.
21079 * include/grub/i386/multiboot/memory.h: Likewise.
21080 * include/grub/i386/multiboot/serial.h: Likewise.
21081 * include/grub/i386/multiboot/time.h: Likewise.
21082 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21083 * loader/multiboot.c: Likewise.
21084 * loader/multiboot_mbi2.c: Likewise.
21085 * util/grub-mkrescue.in: Generate multiboot rescue.
21087 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21089 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21091 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21093 Merge handling of input and output terminals. Fix a hang.
21095 * commands/terminal.c (abstract_terminal): New struct.
21096 (handle_command): New function. Based on grub_cmd_terminal_input.
21097 (grub_cmd_terminal_input): Use handle_command.
21098 (grub_cmd_terminal_output): Use handle_command.
21100 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21102 Fix comment handling.
21104 * tests/grub_script_comments.in: New testcase.
21105 * conf/tests.rmk: Rules for new testcase.
21106 * script/yylex.l: Updated flex rules.
21108 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21110 * docs/grub.texi (play): Document that zero pitches produce rests.
21111 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21114 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21116 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21119 2010-04-26 Christian Franke <franke@computer.org>
21121 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21122 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21123 (grub_get_prefix): Remove function.
21124 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21125 make_system_path_relative_to_its_root ().
21126 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21128 2010-04-24 Christian Franke <franke@computer.org>
21130 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21131 (kernel_img_LDFLAGS): Remove -static-libgcc.
21133 2010-04-24 Christian Franke <franke@computer.org>
21135 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21136 and CHECK_END_SYMBOL if grub-emu is built.
21137 Unset TARGET_OBJ2ELF if grub-emu is built
21138 without module support.
21140 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21144 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21145 (grub_fstest_SOURCES): Likewise.
21146 (pkglib_MODULES): Add nilfs2.mod.
21147 (nilfs2_mod_SOURCES): New variable.
21148 (nilfs2_mod_CFLAGS): Likewise.
21149 (nilfs2_mod_LDFLAGS): Likewise.
21150 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21151 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21152 * fs/nilfs2.c: New file.
21154 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21156 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21159 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21161 Add grub-mkconfig support for NetBSD.
21163 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21164 * util/grub-mkconfig.in: export new NetBSD specific variables.
21165 * po/POTFILES-shell: added 10_netbsd.in.
21166 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21168 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21170 Fix emu build with grub-emu-pci and grub-emu-modules.
21172 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21174 * include/grub/libpciaccess.h: New file.
21175 * conf/any-emu.rmk: Update kernel headers for emu build.
21177 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21179 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21181 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21183 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21185 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21187 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21188 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21189 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21190 util/ieee1275/ofpath.c.
21191 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21192 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21193 * include/grub/sparc64/ieee1275/boot.h
21194 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21195 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21196 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21197 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21199 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21200 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21201 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21204 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21206 * util/grub-mkconfig.in: Corrected two == equality tests.
21207 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21208 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21209 expect a number appended to it.
21210 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21211 expects a number appended to it.
21213 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21215 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21217 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21219 * util/hostdisk.c (make_device_name): Change to new partition naming.
21221 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21223 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21225 2010-04-17 Christian Franke <franke@computer.org>
21227 * Makefile.in: Add missing localedir setting.
21229 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21231 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21232 mistake in r2156. Noticed by Anthony Fok.
21234 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21236 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21238 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21240 Fix a spurious, uninitialized variable warning.
21242 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21243 Initialize variable, shdr.
21244 (grub_freebsd_load_elfmodule): Likewise.
21245 (grub_freebsd_load_elf_meta): Likewise.
21247 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21249 Fix for escaped dollar in double quoted strings.
21251 * script/yylex.l: Updated flex rules.
21252 * conf/tests.rmk: Rule for new testcase.
21253 * tests/grub_script_dollar.in: New testcase.
21255 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21256 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21258 Enclose all translated strings in grub.cfg in single quotes, and
21259 escape them appropriately (Ubuntu bug #552921).
21261 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21262 * util/grub.d/10_hurd.in: Use it.
21263 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21264 * util/grub.d/10_linux.in (linux_entry): Likewise.
21266 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21268 Fix cygwin compilation.
21270 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21271 * include/grub/misc.h (__register_frame_info)
21272 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21273 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21274 * kern/misc.c (__register_frame_info)
21275 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21276 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21278 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21280 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21282 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21284 Unify libgcc processing.
21286 * Makefile.in (kernel_img_LDFLAGS): New variable.
21287 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21288 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21290 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21291 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21292 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21293 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21294 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21295 overwriting. Remove -lgcc and -static-libgcc
21296 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21297 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21298 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21299 (kernel_img_LDFLAGS): Append instead of overwriting.
21300 Remove -lgcc and -static-libgcc
21301 * conf/sparc64-ieee1275.rmk: Likewise.
21302 * include/grub/powerpc/libgcc.h: Move to ...
21303 * include/grub/libgcc.h: .. this.
21304 * include/grub/libgcc.h: Don't export most of the function on x86.
21305 (__bswapsi2): New export.
21306 (__bswapdi2): Likewise.
21307 * include/grub/mips/libgcc.h: Removed.
21308 * include/grub/sparc64/libgcc.h: Likewise.
21310 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21312 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21313 disk_info_msg (conflicts with gettexting into languages with cases).
21315 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21317 Add grub-probe support for NetBSD.
21319 * util/getroot.c (find_root_device): Convert block device to
21320 character device on NetBSD.
21321 * util/probe.c (probe): Require character device on NetBSD.
21322 * util/hostdisk.c: NetBSD specific headers.
21323 (configure_device_driver): new function to tune device driver
21324 parameters (currently only for NetBSD floppy driver).
21325 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21326 via disklabel ioctl).
21327 (open_device): call configure_device_driver on NetBSD.
21328 (convert_system_partition_to_system_disk): NetBSD specific code.
21329 (device_is_wholedisk): Likewise.
21330 (grub_util_biosdisk_get_grub_dev): Likewise.
21331 (make_device_name): Fixed a typo in bsd_part_str.
21332 * configure.ac: check for opendisk() and getrawpartition() on
21333 NetBSD and set LIBUTIL.
21334 * Makefile.in: add LIBUTIL to LIBS.
21336 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21340 * util/grub-script-check.c: Better help message.
21342 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21346 * configure.ac: Flex version check.
21347 * conf/common.rmk: Add -Wno-error to sh.mod.
21348 * script/yylex.l: Remove all #pragma.
21350 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21352 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21354 Reported by: Seth Goldberg.
21356 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21358 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21359 Rename "module" to "module2".
21360 Reported by: Seth Goldberg.
21362 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21364 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21366 Reported by: Seth Goldberg.
21368 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21370 * lib/posix_wrap/locale.h: Add missing file.
21371 Reported by: Seth Goldberg.
21373 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21375 grub-emu module load support.
21377 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21378 NO_DYNAMIC_MODULES switched to this.
21379 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21380 (CFLAGS): Likewise.
21381 * conf/any-emu.rmk: Generate symlist.
21382 (kernel_img_HEADERS): Add util/datetime.h.
21383 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21384 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21385 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21386 kern/$(target_cpu)/cache.S.
21387 * configure.ac (grub-emu-modules): New option.
21388 * genmk.rb: Handle multiple source lists.
21389 * include/grub/sdl.h: New file.
21390 * include/grub/libusb.h: Likewise.
21391 * util/grub-emu.c (main): Hanle (host) root.
21392 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21393 GRUB_ERR_UNKNOWN_DEVICE.
21394 * util/misc.c: Move mm functions to ...
21395 * util/mm.c: ... here. All users updated.
21397 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21399 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21400 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21402 (maintainer-clean): Remove libgcrypt-grub.
21404 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21406 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21408 2010-04-09 EFI Coder <eficoder@hotmail.com>
21410 * normal/menu_text.c (print_message): Clean up the message and show
21411 the Fn information when on EFI
21412 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21414 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21416 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21418 * normal/crypto.c (read_crypto_list): Likewise.
21419 * normal/dyncmd.c (read_command_list): Likewise.
21420 * normal/term.c (read_terminal_list): Likewise.
21421 * normal/main.c (read_lists): Use explicit prefix.
21422 (read_lists_hook): Use read_lists.
21423 (grub_normal_execute): Likewise.
21425 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21427 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21428 Reported by: Thomas Schmitt.
21429 Add -no-emul-boot to grub-mkisofs parameters.
21431 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21433 * font/font.c: Indented.
21435 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21437 Elif support to GRUB script (by Deepak Vankadaru).
21439 * tests/grub_script_if.in: New testcase.
21440 * conf/tests.rmk: Rule for new testcase.
21441 * script/parser.y: Grammar rules for elif.
21443 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21445 While and until loops support to GRUB script.
21447 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21448 (grub_script_create_cmdwhile): New function prototype.
21449 (grub_script_execute_cmdwhile): New function prototype.
21450 * script/execute.c (grub_script_execute_cmdwhile): New function.
21451 * script/parser.y (command): New commands.
21452 (whilecmd): New grammar rule.
21453 (untilcmd): New grammar rule.
21454 * script/script.c (grub_script_create_cmdwhile): New function.
21455 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21458 * tests/grub_script_while1.in: New testcase.
21459 * conf/tests.rmk: Rule for new testcase.
21461 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21463 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21466 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21468 GRUB_BACKGROUND support.
21470 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21471 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21473 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21475 Load fonts and modules for gfxmenu in grub-mkconfig.
21476 Idea by: Mario Vazquez
21478 * util/grub.d/00_header.in: Load pf2 and image modules.
21480 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21482 grub-mkconfig multiple terminal support.
21484 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21485 * util/grub.d/00_header.in: Likewise.
21487 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21489 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21490 we use cd $(srcdir).
21492 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21494 * util/grub.d/10_linux.in: Only use the first word of
21495 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21496 spaces in GRUB_DISTRIBUTOR.
21497 * util/grub.d/10_kfreebsd.in: Likewise.
21498 * util/grub.d/10_hurd.in: Likewise.
21500 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21502 Fix unit testing framework for Qemu 0.12.
21504 * tests/util/grub-shell.in: Remove -serial stdio option.
21506 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21508 POSIX header file wrappers.
21510 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21512 * lib/posix_wrap/ctype.h: Likewise.
21513 * lib/posix_wrap/errno.h: Likewise.
21514 * lib/posix_wrap/langinfo.h: Likewise.
21515 * lib/posix_wrap/limits.h: Likewise.
21516 * lib/posix_wrap/localcharset.h: Likewise.
21517 * lib/posix_wrap/stdint.h: Likewise.
21518 * lib/posix_wrap/stdio.h: Likewise.
21519 * lib/posix_wrap/stdlib.h: Likewise.
21520 * lib/posix_wrap/string.h: Likewise.
21521 * lib/posix_wrap/sys/types.h: Likewise.
21522 * lib/posix_wrap/unistd.h: Likewise.
21523 * lib/posix_wrap/wchar.h: Likewise.
21524 * lib/posix_wrap/wctype.h: Likewise.
21525 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21526 (grub_script.yy.h): Likewise.
21527 * script/yylex.l: Remove POSIX emulation #defines.
21528 * Makefile.in (POSIX_CFLAGS): New variable.
21529 (GNULIB_UTIL_CFLAGS): Likewise.
21533 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21534 (regexp_mod_SOURCES): New variable.
21535 (regexp_mod_CFLAGS): Likewise.
21536 (regexp_mod_LDFLAGS): Likewise.
21537 * commands/regexp.c: New file.
21538 * gnulib/regcomp.c: New file. Imported from gnulib.
21539 * gnulib/regex.c: Likewise.
21540 * gnulib/regex_internal.c: Likewise.
21541 * gnulib/regex_internal.h: Likewise.
21542 * gnulib/regexec.c: Likewise.
21543 * gnulib/regex.h: Likewise.
21545 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21547 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21548 unsupported video mode types.
21550 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21552 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21554 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21556 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21557 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21559 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21561 Remove unused grub_vga_get_font.
21563 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21564 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21566 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21568 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21569 * include/grub/misc.h: Likewise.
21571 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21573 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21574 for which failure is fatal.
21576 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21578 * util/grub-install.in: Use mkdir -p to create grub directory.
21579 * util/i386/efi/grub-install.in: Likewise.
21580 * util/ieee1275/grub-install.in: Likewise.
21582 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21584 * Makefile.in (LEX): new variable.
21586 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21588 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21589 `=' and added double quotes on operands of this equality test.
21591 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21593 * Makefile.in (uninstall): Remove a leftover debug echo.
21594 Reported by: Grégoire Sutre
21596 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21598 MIPS multiboot2 support.
21600 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21601 (multiboot2_mod_SOURCES): New variable.
21602 (multiboot2_mod_CFLAGS): Likewise.
21603 (multiboot2_mod_LDFLAGS): Likewise.
21604 (multiboot2_mod_ASFLAGS): Likewise.
21605 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21607 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21608 (MULTIBOOT_MBI_REGISTER): Likewise.
21609 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21610 (MULTIBOOT_ELF32_MACHINE): Likewise.
21611 (MULTIBOOT_ELF64_MACHINE): Likewise.
21612 * include/grub/mips/multiboot.h: New file.
21613 * include/grub/video.h (grub_video_driver_id): New type
21614 GRUB_VIDEO_DRIVER_SM712.
21615 (grub_video_get_info_and_fini): Export.
21616 (grub_video_get_palette): Likewise.
21617 (grub_video_get_driver_id): Likewise.
21618 * include/multiboot2.h: Resynced with spec.
21619 * loader/i386/multiboot.c: Moved from here ...
21620 * loader/multiboot.c: ... here. All users updated.
21621 (grub_multiboot_boot): Use platform-specific macros.
21622 * loader/i386/multiboot_elfxx.c: Moved from here ...
21623 * loader/multiboot_elfxx.c: ... here. All users updated.
21624 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21625 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21626 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21628 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21630 Import gnulib argp module.
21632 * gnulib/argp-ba.c: New file.
21633 * gnulib/argp-eexst.c: Likewise.
21634 * gnulib/argp-fmtstream.c: Likewise.
21635 * gnulib/argp-fmtstream.h: Likewise.
21636 * gnulib/argp-fs-xinl.c: Likewise.
21637 * gnulib/argp-help.c: Likewise.
21638 * gnulib/argp-namefrob.h: Likewise.
21639 * gnulib/argp-parse.c: Likewise.
21640 * gnulib/argp-pin.c: Likewise.
21641 * gnulib/argp-pv.c: Likewise.
21642 * gnulib/argp-pvh.c: Likewise.
21643 * gnulib/argp-version-etc.c: Likewise.
21644 * gnulib/argp-version-etc.h: Likewise.
21645 * gnulib/argp-xinl.c: Likewise.
21646 * gnulib/argp.h: Likewise.
21648 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21650 * kern/device.c (grub_device_iterate): Clear errors after failed
21653 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21655 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
21656 returned by firmware.
21658 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
21660 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
21661 compilation on coreboot and qemu
21663 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21665 * include/multiboot2.h: Resync with spec.
21667 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21669 Multiboot2 tag support
21671 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
21672 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
21673 Remove loader/multiboot_loader.c.
21674 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
21675 (grub_multiboot2_real_boot): Likewise.
21676 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
21677 (grub_get_multiboot_mmap_count): New proto.
21678 (grub_fill_multiboot_mmap): Likewise.
21679 (grub_multiboot_set_video_mode): Likewise.
21680 (grub_multiboot_set_console): Likewise.
21681 (grub_multiboot_load): Likewise.
21682 (grub_multiboot_load_elf): Likewise.
21683 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
21684 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
21685 * include/multiboot.h: Resynced with specification.
21686 * include/multiboot2.h: Resynced with specification.
21687 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
21688 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
21689 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
21690 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
21692 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
21693 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
21694 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
21696 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
21698 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
21699 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21701 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
21702 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
21703 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
21705 * loader/i386/multiboot_mbi2.c: New file.
21707 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21709 Resync with gnulib.
21711 * Makefile.in (GNULIB_CFLAGS): New variable.
21712 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
21713 (grub_script_check_CFLAGS): New variable.
21714 * gnulib/alloca.h: Resync with gnulib.
21715 * gnulib/error.c: Likewise.
21716 * gnulib/error.h: Likewise.
21717 * gnulib/fnmatch.c: Likewise.
21718 * gnulib/fnmatch_loop.c: Likewise.
21719 * gnulib/getdelim.c: Likewise.
21720 * gnulib/getline.c: Likewise.
21721 * gnulib/getopt.c: Likewise.
21722 * gnulib/getopt1.c: Likewise.
21723 * gnulib/getopt_int.h: Likewise.
21724 * gnulib/gettext.h: Likewise.
21725 * gnulib/progname.c: Likewise.
21726 * gnulib/progname.h: Likewise.
21728 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
21730 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
21731 which is the case with --disabled-nls.
21733 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
21734 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
21735 * util/misc.c: Likewise.
21736 * util/mkisofs/mkisofs.c: Likewise.
21737 * util/mkisofs/mkisofs.h: Likewise.
21739 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21741 Simplify Apple CC support.
21743 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
21744 Add 0 byte at the end not to have a symbol with empty target.
21745 * mmap/i386/pc/mmap_helper.S: Likewise.
21746 * genmk.rb: Ignore errors 2030 and 2050.
21747 * kern/i386/pc/startup.S: Use LOCAL when possible.
21749 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
21751 Testcase and the fix for final semicolon on cmdline.
21753 * tests/grub_script_final_semicolon.in: New testcase.
21754 * conf/tests.rmk: Rules for the new testcase.
21755 * script/parser.y: Grammar fix.
21757 2010-03-26 BVK Chaitanya <bvk@localhost>
21759 Blank lines testcase for GRUB script.
21761 * tests/grub_script_blanklines.in: New testcase.
21762 * conf/tests.rmk: Rules for the new testcase.
21764 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21766 Don't use __FILE__.
21768 * genmk.rb: Add -DGRUB_FILE to all C targets.
21769 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
21770 * include/grub/list.h: Likewise.
21771 * include/grub/misc.h: Likewise.
21772 * include/grub/mm.h: Likewise.
21773 * include/grub/test.h: Likewise.
21774 * kern/mm.c: Likewise.
21775 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
21777 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21779 Sunpc partitions support.
21781 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
21782 (grub_fstest_SOURCES): Likewise.
21783 (pkglib_MODULES): Add part_sunpc.mod.
21784 (part_sunpc_mod_SOURCES): New variable.
21785 (part_sunpc_mod_CFLAGS): Likewise.
21786 (part_sunpc_mod_LDFLAGS): Likewise.
21787 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
21788 * partmap/sunpc.c: New file.
21790 2010-03-26 BVK Chaitanya <bvk@localhost>
21792 For loop support to GRUB script.
21794 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
21795 (grub_script_create_cmdfor): New function prototype.
21796 (grub_script_execute_cmdfor): New function prototype.
21797 * script/execute.c (grub_script_execute_cmdfor): New function.
21798 * script/parser.y (command): New for command.
21799 (forcmd): New grammar rule.
21800 * script/script.c (grub_script_create_cmdfor): New function.
21801 * util/grub-script-check.c (grub_script_execute_cmdfor): New
21803 * tests/grub_script_for1.in: New testcase.
21804 * conf/tests.rmk: Rules for new testcase.
21806 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21810 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
21811 'partition' is NULL, grub_partition_get_start already does that.
21812 * commands/loadenv.c (check_blocklists): Likewise.
21813 (write_blocklists): Likewise.
21814 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
21815 (grub_fstest_SOURCES): Likewise.
21816 (pkglib_MODULES): Add part_bsd.mod.
21817 (part_bsd_mod_SOURCES): New variable.
21818 (part_bsd_mod_CFLAGS): Likewise.
21819 (part_bsd_mod_LDFLAGS): Likewise.
21820 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
21821 (grub_emu_SOURCES): Likewise.
21822 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21823 * include/grub/bsdlabel.h: New file.
21824 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
21826 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
21827 (grub_partition_map_list): New variable.
21828 (grub_partition_map_register): Inline.
21829 (grub_partition_map_unregister): Likewise.
21830 (FOR_PARTITION_MAPS): New macro.
21831 (grub_partition_map_iterate): Removed.
21832 (grub_partition_get_start): Handle nested partitions.
21833 * include/grub/msdos_partition.h: Remove bsd-related entries.
21834 (grub_pc_partition): Remove.
21835 * kern/disk.c (grub_disk_close): Free partition data.
21836 (grub_disk_adjust_range): Handle nested partitions.
21837 * kern/partition.c (grub_partition_map_probe): New function.
21838 (grub_partition_probe): Parse name to number, handle subpartitions.
21839 (get_partmap): New function.
21840 (grub_partition_iterate): Handle subpartitions.
21841 (grub_partition_get_name): Likewise.
21842 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
21843 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
21844 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
21845 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
21847 (acorn_partition_map_probe): Remove.
21848 (acorn_partition_map_get_name): Likewise.
21849 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
21851 Set 'index' to 0 since there can be only one partition entry per sector.
21852 (amiga_partition_map_probe): Remove.
21853 (amiga_partition_map_get_name): Likewise.
21854 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
21856 Set 'offset' and 'index' to real positions of partitions.
21857 (apple_partition_map_probe): Remove.
21858 (apple_partition_map_get_name): Likewise.
21859 * partmap/bsdlabel.c: New file.
21860 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
21862 Allocate 'data' so it can be correctly freed.
21863 Set 'index' to offset inside sector.
21864 (gpt_partition_map_probe): Remove.
21865 (gpt_partition_map_get_name): Likewise.
21866 * partmap/msdos.c (grub_partition_parse): Remove.
21867 (pc_partition_map_iterate): Don't force raw access.
21869 Make 'ext_offset' a local variable.
21870 (pc_partition_map_probe): Remove.
21871 (pc_partition_map_get_name): Remove.
21872 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
21874 (sun_partition_map_probe): Remove.
21875 (sun_partition_map_get_name): Likewise.
21876 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
21877 (grub_pcpart_type): Likewise.
21878 * util/hostdisk.c (open_device): Handle new numbering scheme.
21879 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
21880 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
21881 * util/grub-probe.c (probe_partmap): Handle nested paritions.
21882 * util/grub-install.in: Insert all subpartition modules.
21883 * util/ieee1275/grub-install.in: Likewise.
21885 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
21887 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
21890 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
21892 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
21894 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
21896 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
21897 match where 'make install' puts them.
21898 * util/i386/efi/grub-install.in: Likewise.
21900 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
21902 * .bzrignore: Add gentrigtables, grub-script-check,
21903 grub_script_check_init.c, grub_script_check_init.h, and
21906 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
21908 * kern/parser.c: Indented.
21910 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21912 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
21914 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21916 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
21917 alpha_mask_size == 0 case.
21919 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
21921 GRUB shell lexer and parser improvements.
21923 * conf/any-emu.rmk: Build rule updates.
21924 * conf/common.rmk: Likewise.
21925 * conf/i386-coreboot.rmk: Likewise.
21926 * conf/i386-efi.rmk: Likewise.
21927 * conf/i386-ieee1275.rmk: Likewise.
21928 * conf/i386-pc.rmk: Likewise.
21929 * conf/powerpc-ieee1275.rmk: Likewise.
21930 * conf/x86_64-efi.rmk: Likewise.
21932 * configure.ac: Configure check for flex.
21934 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
21936 (grub_lexer_param): Struct member updates.
21937 (grub_parser_param): Likewise.
21938 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
21939 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
21940 (grub_script_lexer_init): Prototype update.
21941 (grub_script_lexer_record_start): Likewise.
21942 (grub_script_lexer_record_stop): Likewise.
21943 (grub_script_lexer_yywrap): New function prototype.
21944 (grub_script_lexer_fini): Likewise.
21945 (grub_script_execute_argument_to_string): Removed by...
21946 (grub_script_execute_argument_to_argv): ...better version.
21948 * script/execute.c (ROUND_UPTO): New macro.
21949 (grub_script_execute_cmdline): Out of memory fixes.
21950 (grub_script_execute_menuentry): Likewise.
21951 (grub_script_execute_argument_to_string): Removed. Update all
21953 (grub_script_execute_argument_to_argv): ...better version.
21954 * script/function.c (grub_script_function_create): Use
21955 grub_script_execute_argument_to_argv instead of
21956 grub_script_execute_argument_to_string.
21958 * script/lexer.c (check_varstate): Removed.
21959 (check_textstate): Removed.
21960 (grub_script_lexer_record_start): Likewise.
21961 (grub_script_lexer_record_stop): Likewise.
21962 (recordchar): Replaced with...
21963 (grub_script_lexer_record): ...new function.
21964 (nextchar): Removed.
21965 (grub_script_lexer_init): Rewritten.
21966 (grub_script_yylex): Rewritten.
21967 (append_newline): New function.
21968 (grub_script_lexer_yywrap): New function.
21969 (grub_script_lexer_fini): New function.
21970 (grub_script_yyerror): Sets error flag.
21972 * script/yylex.l: New file.
21973 (grub_lexer_yyfree): Wrapper for flex yyffre.
21974 (grub_lexer_yyalloc): Likewise.
21975 (grub_lexer_yyrealloc): Likewise.
21976 * script/parser.y: Refactored.
21978 * script/script.c (grub_script_arg_add): Out of memory fixes.
21979 (grub_script_add_arglist): Likewise.
21980 (grub_script_create_cmdline): Likewise.
21981 (grub_script_create_cmdmenu): Likewise.
21982 (grub_script_add_cmd): Likewise.
21983 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
21984 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
21987 * tests/grub_script_echo1.in: New testcase.
21988 * tests/grub_script_vars1.in: New testcase.
21989 * tests/grub_script_echo_keywords.in: New testcase.
21991 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21993 Remove some redundancy in build system.
21995 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
21996 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
21997 (TARGET_LDFLAGS): Add -nostdlib.
21998 (TARGET_IMG_LDFLAGS): Likewise.
21999 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22000 anything since mmap isn't available.
22001 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22003 (pkglib_MODULES): Remove reboot.mod.
22004 (reboot_mod_SOURCES): Removed.
22005 (reboot_mod_CFLAGS): Likewise.
22006 (reboot_mod_LDFLAGS): Likewise.
22007 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22008 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22009 (DEFSYMFILES): Add kernel_syms.lst.
22010 (kernel_img_HEADERS): Add common headers.
22011 (symlist.c): New target.
22012 (kernel_syms.lst): Likewise.
22013 (pkglib_MODULES): Add memdisk.mod.
22014 (memdisk_mod_SOURCES): New variable.
22015 (memdisk_mod_CFLAGS): Likewise.
22016 (memdisk_mod_LDFLAGS): Likewise.
22017 (pkglib_MODULES): Add reboot.mod.
22018 (reboot_mod_SOURCES): New variable.
22019 (reboot_mod_CFLAGS): Likewise.
22020 (reboot_mod_LDFLAGS): Likewise.
22021 (pkglib_MODULES): Add date.mod.
22022 (date_mod_SOURCES): New variable.
22023 (date_mod_CFLAGS): Likewise.
22024 (date_mod_LDFLAGS): Likewise.
22025 (pkglib_MODULES): Add datehook.mod.
22026 (datehook_mod_SOURCES): New variable.
22027 (datehook_mod_CFLAGS): Likewise.
22028 (datehook_mod_LDFLAGS): Likewise.
22029 (pkglib_MODULES): Add lsmmap.mod.
22030 (lsmmap_mod_SOURCES): New variable.
22031 (lsmmap_mod_CFLAGS): Likewise.
22032 (lsmmap_mod_LDFLAGS): Likewise.
22033 (pkglib_MODULES): Add boot.mod.
22034 (boot_mod_SOURCES): New variable.
22035 (boot_mod_CFLAGS): Likewise.
22036 (boot_mod_LDFLAGS): Likewise.
22037 * conf/i386-coreboot.rmk: Removed redundant parts.
22038 * conf/i386-ieee1275.rmk: Likewise.
22039 * conf/i386-pc.rmk: Likewise.
22040 * conf/mips-yeeloong.rmk: Likewise.
22041 * conf/mips.rmk: Likewise.
22042 * conf/powerpc-ieee1275.rmk: Likewise.
22043 * conf/sparc64-ieee1275.rmk: Likewise.
22044 * conf/x86_64-efi.rmk: Likewise.
22045 * conf/i386-coreboot.rmk: Moved qemu parts ..
22046 * conf/i386-qemu.rmk: ... here
22047 * conf/i386-efi.rmk: Moved common parts to...
22048 * conf/x86-efi.rmk: ... here.
22049 * conf/i386.rmk: Added modules common to all x86 variants.
22050 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22051 * disk/memdisk.c: Remove grub/machine/kernel.h.
22052 * gensymlist.sh.in: Include symbol.h.
22053 * hook/datehook.c: Correct module name.
22054 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22055 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22056 * include/grub/i386/efi/serial.h: New file.
22057 * include/grub/x86_64/efi/serial.h: Likewise.
22058 * util/time.c: Likewise.
22059 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22061 2010-03-14 Colin King <colin.king@ubuntu.com>
22062 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22064 Shrink the pre-partition-table part of boot.img by eight bytes.
22066 * boot/i386/pc/boot.S (ERR): New macro.
22067 (chs_mode): Use ERR.
22068 (geometry_error): Likewise.
22069 (hd_probe_error): Remove. This is only used once, so we wrwite
22071 (read_error): Instead of printing read_error_string, just set up
22072 %si and fall through to ...
22073 (error_message): ... this new function, also used by ERR.
22075 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22077 Speed up consecutive hostdisk operations on the same device.
22079 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22080 (grub_util_biosdisk_open): Initialise disk->data.
22081 (struct linux_partition_cache): New structure.
22082 (linux_find_partition): Cache partition start positions; these are
22083 expensive to compute on every read and write.
22084 (open_device): Cache open file descriptor in disk->data, so that we
22085 don't have to reopen it and flush the buffer cache for consecutive
22086 operations on the same device.
22087 (grub_util_biosdisk_close): New function.
22088 (grub_util_biosdisk_dev): Set `close' member.
22090 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22091 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22092 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22093 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22094 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22096 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22098 Compile parts of grub-emu as modules.
22100 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22101 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22102 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22103 (all-local): Add $(GRUB_EMU).
22104 (install-local): Install $(GRUB_EMU).
22105 (uninstall): Uninstall $(GRUB_EMU).
22106 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22107 * kern/dl.c: Likewise.
22108 * commands/sleep.c: Not include machine/time.h.
22109 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22110 (COMMON_CFLAGS): Likewise.
22111 (sbin_UTILITIES): Remove grub-emu.
22112 (grub_emu_SOURCES): Removed.
22113 (kernel_img_RELOCATABLE): New variable.
22114 (pkglib_PROGRAMS): Add kernel.img.
22115 (kernel_img_SOURCES): New variable
22116 (kernel_img_CFLAGS): Likewise.
22117 (kernel_img_LDFLAGS): Likewise.
22118 (TARGET_NO_STRIP): Likewise.
22119 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22120 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22121 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22122 (grub-emu): New target.
22123 (GRUB_EMU): New variable.
22124 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22125 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22126 * loader/xnu.c: Likewise.
22127 * include/grub/pci.h: Likewise.
22128 * genemuinit.sh: New file.
22129 * genemuinitheader.sh: Likewise.
22130 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22131 Support TARGET_NO_DYNAMIC_MODULES.
22132 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22133 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22134 * disk/loopback.c: Likewise.
22135 * font/font_cmd.c: Likewise.
22136 * partmap/acorn.c: Likewise.
22137 * partmap/amiga.c: Likewise.
22138 * partmap/apple.c: Likewise.
22139 * partmap/gpt.c: Likewise.
22140 * partmap/msdos.c: Likewise.
22141 * partmap/sun.c: Likewise.
22142 * parttool/msdospart.c: Likewise.
22143 * term/gfxterm.c: Likewise.
22144 * video/bitmap.c: Likewise.
22145 * video/readers/jpeg.c: Likewise.
22146 * video/readers/png.c: Likewise.
22147 * video/readers/tga.c: Likewise.
22148 * video/video.c: Likewise.
22149 * util/grub-emu.c (read_command_list): Removed.
22150 (main): Don't call util_init_nls.
22151 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22152 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22154 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22156 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22157 date.mod, datehook.mod.
22158 (datetime_mod_SOURCES): New variable.
22159 (datetime_mod_CFLAGS): Likewise.
22160 (datetime_mod_LDFLAGS): Likewise.
22161 (date_mod_SOURCES): Likewise.
22162 (date_mod_CFLAGS): Likewise.
22163 (date_mod_LDFLAGS): Likewise.
22164 (datehook_mod_SOURCES): Likewise.
22165 (datehook_mod_CFLAGS): Likewise.
22166 (datehook_mod_LDFLAGS): Likewise.
22167 * conf/sparc64-ieee1275.rmk: Likewise.
22168 * lib/ieee1275/datetime.c: New file.
22170 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22172 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22173 (ieee1275_fb_mod_SOURCES): New variable.
22174 (ieee1275_fb_mod_CFLAGS): Likewise.
22175 (ieee1275_fb_mod_LDFLAGS): Likewise.
22176 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22178 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22179 (HEAP_MAX_ADDR): Likewise.
22180 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22182 Correct stop condition.
22183 (grub_ieee1275_devices_iterate): New function.
22184 * video/ieee1275.c: New file.
22186 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22188 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22190 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22192 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22193 SCRATCH_PAD_DISKBOOT as scratch.
22194 (bootit): Pass Openfirmware pointer in %o4.
22195 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22197 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22198 with util/grub-mkrawimage.c.
22199 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22200 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22201 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22202 (grub_aout_load) [GRUB_UTIL]: Likewise.
22203 * include/grub/kernel.h (grub_modules_get_end): New proto.
22204 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22205 (SCRATCH_PAD_BOOT): New definition.
22206 (SCRATCH_PAD_DISKBOOT): Likewise.
22207 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22208 * include/grub/sparc64/ieee1275/ieee1275.h
22209 (grub_ieee1275_original_stack): New variable
22210 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22212 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22213 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22214 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22215 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22216 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22217 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22218 (grub_platform_image_format_t): New type.
22219 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22220 * kern/main.c (grub_modules_get_end)
22221 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22222 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22223 (codestart): Switch stacks.
22224 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22226 (grub_heap_init): Use grub_modules_get_end.
22227 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22229 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22231 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22233 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22235 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22237 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22239 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22242 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22244 * genmoddep.awk: Output all missing symbols and not only first.
22246 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22248 * NEWS: Put the date of 1.98 release.
22250 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22252 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22255 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22257 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22258 completition in the middle of string.
22260 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22262 * util/grub-mkrescue.in: Use mktemp with explicit template.
22264 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22266 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22268 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22270 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22273 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22275 Fix FreeBSD compilation.
22277 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22278 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22280 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22282 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22284 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22286 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22288 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22290 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22292 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22294 Support relative image path in theme file.
22296 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22297 (image_set_property): Handle theme_dir and relative path.
22299 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22301 * configure.ac: Alias amd64 to x86_64.
22303 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22305 * NEWS: mention multiboot on EFI.
22307 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22309 * kern/main.c (grub_load_modules): Handle errors from init functions of
22312 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22314 * normal/autofs.c (autoload_fs_module): Handle errors.
22316 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22318 Disable linux.mod on qemu-mips since it's not functional and leads
22319 to compilation failure.
22321 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22322 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22323 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22324 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22325 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22326 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22327 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22328 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22329 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22330 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22331 Reported by: BVK Chaitanya
22333 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22335 * INSTALL: Add gettext as a dependency and add qemu to a new section
22336 "Prerequisites for make-check".
22338 2010-03-04 Christian Franke <franke@computer.org>
22340 * util/grub-pe2elf.c: Add missing include "progname.h".
22342 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22344 * normal/crypto.c (read_crypto_list): Fix a typo.
22345 Reported by: Seth Goldberg.
22347 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22349 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22350 Reported by: Seth Goldberg.
22352 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22354 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22357 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22359 * genmk.rb: Remove terminal*.lst in make clean.
22360 Reported by: Seth Goldberg.
22362 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22364 * util/i386/efi/grub-install.in: Copy gettext files.
22366 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22368 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22370 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22372 Wait for user entry basing on presence of output rather than on errors.
22374 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22375 (grub_install_newline_hook): Likewise.
22376 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22377 * normal/menu.c (show_menu): Check line_counter to determine presence
22379 * normal/term.c (grub_normal_line_counter): New variable.
22380 (grub_normal_get_line_counter): New function.
22381 (grub_install_newline_hook): Likewise.
22383 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22385 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22387 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22389 * configure.ac: Update version to 1.98.
22391 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22393 * util/grub.d/10_linux.in (linux_entry): Don't default to
22394 gfxpayload=keep if Linux doesn't support video handover.
22396 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22398 Don't compile video modules on yeeloong since video subsystem is part
22401 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22402 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22403 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22404 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22405 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22406 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22407 * include/grub/bitmap_scale.h: Likewise.
22408 * include/grub/bufio.h: Likewise.
22409 * include/grub/font.h: Likewise.
22410 * include/grub/gfxterm.h: Likewise.
22411 * include/grub/video.h: Likewise.
22412 * include/grub/vbe.h: Don't include video_fb.h.
22413 * video/i386/pc/vbe.c: Include video_fb.h.
22414 * commands/i386/pc/vbetest.c: Include video.h.
22416 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22418 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22419 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22420 default entry if GRUB_SAVEDEFAULT=true. This allows using
22421 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22422 saving a new default on every boot.
22424 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22426 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22427 * normal/term.c (read_terminal_list): Likewise.
22428 * normal/main.c (grub_normal_init_page): Likewise.
22429 (grub_normal_read_line_real): Likewise.
22431 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22433 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22435 Reported by: Seth Goldberg.
22437 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22439 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22440 duplicate declaration of `start'.
22442 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22444 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22446 Reported by: Georgy Buranov
22448 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22450 * util/grub-mkrawimage.c (usage): Change string formatting to
22453 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22455 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22458 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22460 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22461 Reported by: Michael Suchanek.
22463 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22465 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22466 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22468 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22470 Remove any reference to non-free fonts.
22472 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22473 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22474 uses non-free components.
22475 * font/font.c (grub_font_get_name): Remove example name.
22476 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22477 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22478 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22479 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22481 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22483 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22485 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22487 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22489 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22491 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22493 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22495 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22497 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22499 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22500 * docs/grub.texi (Command-line and menu entry commands): Document play
22503 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22505 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22506 parse arguments as inline tempo and notes. Move code for playing notes
22508 (play): ... new function.
22510 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22512 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22513 grub_uint16_t instead of short.
22514 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22515 disk from little endian to cpu endianness.
22517 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22519 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22520 GRUB_TICKS_PER_SECOND instead of 120.
22522 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22524 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22525 escape sequence after \e.
22527 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22529 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22530 non-ASCII characters.
22532 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22534 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22535 set root in single quotes to prevent \, from being unescaped.
22537 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22539 Prevent unknown commands from stopping menuentry execution.
22541 * script/execute.c (grub_script_execute_cmdline): Print error after
22544 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22546 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22547 Reported by: Pavel Pisa.
22549 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22551 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22553 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22555 Merge grub_ieee1275_map_physical into grub_map and rename to
22558 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22559 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22561 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22562 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22564 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22566 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22568 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22569 opening and not after.
22571 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22573 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22576 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22578 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22579 (alloc_phys): Use ALIGN_UP instead of align_addr.
22581 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22583 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22585 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22587 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22589 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22591 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22594 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22596 Fix over-4GiB seek on sparc64.
22598 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22599 Replace pos_i and pos_lo with pos. All users updated.
22600 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22602 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22604 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22607 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22609 * util/grub-mkrawimage.c (main): Call set_program_name.
22611 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22613 Properly align 64-bit targets.
22615 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22616 (generate_image): Use ALIGN_ADDR.
22618 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22620 Properly create cross-endian images.
22622 * include/grub/types.h (grub_host_to_target_addr): New macro
22623 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22625 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22627 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22629 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22631 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22633 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22634 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22635 (grub_linux_boot): Divide by 64K when on VESA.
22637 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22639 Support GRUB_GFXPAYLOAD_LINUX.
22641 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22642 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
22644 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22646 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
22647 to show messages instead of discarding them.
22648 Process errors after executing command and not before. Keep old method
22651 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
22653 * configure.ac: Check for ft2build.h.
22655 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22657 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
22659 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22661 * genkernsyms.sh.in: Use TARGET_CC.
22663 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
22667 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22669 * include/grub/multiboot2.h: Remove leftover file.
22670 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
22671 * include/grub/partition.h [GRUB_UTIL]: Likewise.
22673 2010-02-07 Yves Blusseau <blusseau@zetam.org>
22675 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
22677 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22679 Fix warnings in grub-emu when compiling with maximum warning options.
22681 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
22682 (grub_arch_modules_addr): Return 0 and not NULL.
22683 * util/misc.c (ENABLE_RELOCATABLE): New definition.
22684 (xstrdup): Use newstr instead of dup.
22685 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
22686 of disk to dsk to avoid shadowing.
22687 (find_free_slot): Fix prototype.
22688 * util/getroot.c (grub_util_is_dmraid): Make static.
22689 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
22690 Add missing prototype.
22691 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
22693 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22695 * loader/i386/linux.c (grub_linux_setup_video): Handle error
22698 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22700 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
22703 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22705 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
22706 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
22707 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
22708 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
22709 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
22710 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
22712 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22714 * include/grub/err.h (grub_err_printf): Don't export.
22716 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22718 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
22720 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22722 * include/grub/i18n.h (grub_gettext_dummy): Removed.
22723 * kern/misc.c (grub_gettext_dummy): Make static.
22725 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22727 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
22729 * kern/term.c (grub_putchar): Likewise.
22731 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22733 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
22734 buggy hook call and memory leak.
22736 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22738 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
22740 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22742 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
22744 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22746 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
22748 Return grub_errno on allocation error.
22750 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22752 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
22754 2010-02-06 Yves Blusseau <blusseau@zetam.org>
22756 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
22757 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
22759 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22761 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
22763 (grub_pxefs_open): Likewise.
22765 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22767 * util/grub.d/10_hurd.in: Add --class information to menuentries.
22768 * util/grub.d/10_kfreebsd.in: Likewise.
22769 * util/grub.d/10_linux.in: Likewise.
22771 2010-02-06 Colin D Bennett <colin@gibibit.com>
22773 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
22774 (gfxmenu_mod_SOURCES): New variable.
22775 (gfxmenu_mod_CFLAGS): Likewise.
22776 (gfxmenu_mod_LDFLAGS): Likewise.
22777 * include/grub/term.h (grub_term_set_current_output): Declare
22779 * docs/gfxmenu-theme-example.txt: New file.
22780 * gfxmenu/gfxmenu.c: Likewise.
22781 * gfxmenu/gui_box.c: Likewise.
22782 * gfxmenu/gui_canvas.c: Likewise.
22783 * gfxmenu/gui_circular_progress.c: Likewise.
22784 * gfxmenu/gui_image.c: Likewise.
22785 * gfxmenu/gui_label.c: Likewise.
22786 * gfxmenu/gui_list.c: Likewise.
22787 * gfxmenu/gui_progress_bar.c: Likewise.
22788 * gfxmenu/gui_string_util.c: Likewise.
22789 * gfxmenu/gui_util.c: Likewise.
22790 * gfxmenu/icon_manager.c: Likewise.
22791 * gfxmenu/model.c: Likewise.
22792 * gfxmenu/named_colors.c: Likewise.
22793 * gfxmenu/theme_loader.c: Likewise.
22794 * gfxmenu/view.c: Likewise.
22795 * gfxmenu/widget-box.c: Likewise.
22796 * include/grub/gfxmenu_model.h: Likewise.
22797 * include/grub/gfxmenu_view.h: Likewise.
22798 * include/grub/gfxwidgets.h: Likewise.
22799 * include/grub/gui.h: Likewise.
22800 * include/grub/gui_string_util.h: Likewise.
22801 * include/grub/icon_manager.h: Likewise.
22803 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22805 Agglomerate scrolling in gfxterm.
22807 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
22808 (grub_virtual_screen_setup): Initialise 'total_screen'.
22809 (write_char): Split to ...
22810 (paint_char): ... this ...
22811 (write_char): ... and this.
22812 (paint_char): Handle delayed scrolling.
22813 (draw_cursor): Likewise.
22814 (scroll_up): Split to ...
22815 (real_scroll): ... this ...
22816 (scroll_up): ... and this.
22817 (real_scroll): Handle multi-line scroll and draw below-the-bottom
22819 (grub_gfxterm_refresh): Call real_scroll.
22821 2010-02-06 Colin D Bennett <colin@gibibit.com>
22823 * include/grub/misc.h (grub_iscntrl): New inline function.
22824 (grub_isalnum): Likewise.
22825 (grub_strtol): Likewise.
22827 2010-02-06 Colin D Bennett <colin@gibibit.com>
22829 * normal/menu_text.c (get_entry_number): Move from here ...
22830 * normal/menu.c (get_entry_number): ... moved here.
22831 * include/grub/menu.h (grub_menu_get_default_entry_index):
22833 * normal/menu.c (grub_menu_get_default_entry_index): New function.
22834 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
22835 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
22836 (grub_menu_viewer_should_return): Likewise.
22837 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
22838 * normal/menu_text.c (run_menu): Enable menu switching.
22839 * normal/menu_viewer.c (should_return): New variable.
22840 (menu_viewer_changed): Likewise.
22841 (grub_menu_viewer_show_menu): Handle menu viewer changes.
22842 (grub_menu_viewer_should_return): New function.
22843 (menuviewer_write_hook): Likewise.
22844 (grub_menu_viewer_init): Likewise.
22846 2010-02-06 Colin D Bennet <colin@gibibit.com>
22847 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22849 Support for gfxterm in a window.
22851 * include/grub/gfxterm.h: New file.
22852 * include/grub/video.h (struct grub_video_rect): New declaration.
22853 (grub_video_rect_t): Likewise.
22854 * term/gfxterm.c (struct grub_gfxterm_window): New type.
22855 (refcount): New variable.
22856 (render_target): Likewise.
22857 (window): Likewise.
22858 (repaint_callback): Likewise.
22859 (grub_virtual_screen_setup): Use 'render_target'.
22860 (init_window): New function.
22861 (grub_gfxterm_init_window): Likewise.
22862 (grub_gfxterm_init): Check reference counter.
22864 (destroy_window): New function.
22865 (grub_gfxterm_destroy_window): Likewise.
22866 (grub_gfxterm_fini): Check reference counter.
22867 Use destroy_window.
22868 (redraw_screen_rect): Restore viewport.
22869 Use 'render_target' and 'window'.
22870 Call 'repaint_callback'.
22871 (write_char): Use 'render_target'.
22872 (draw_cursor): Likewise.
22873 (scroll_up): Restore viewport.
22874 Use 'render_target' and 'window'.
22875 Call 'repaint_callback'.
22876 (grub_gfxterm_cls): Likewise.
22877 (grub_gfxterm_refresh): Use 'window'.
22878 (grub_gfxterm_set_repaint_callback): New function.
22879 (grub_gfxterm_background_image_cmd): Use 'window'.
22880 (grub_gfxterm_get_term): New function.
22881 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
22883 2010-02-06 Colin D Bennett <colin@gibibit.com>
22885 Bitmap scaling support.
22887 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
22888 (bitmap_scale_mod_SOURCES): New variable.
22889 (bitmap_scale_mod_CFLAGS): Likewise.
22890 (bitmap_scale_mod_LDFLAGS): Likewise.
22891 * include/grub/bitmap_scale.h: New file.
22892 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
22893 (background_image_cmd_options): New variable.
22894 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
22895 (cmd): Rename and change type to ...
22896 (background_image_cmd_handle): ... this. All users updated.
22897 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
22898 * video/bitmap_scale.c: New file.
22900 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22904 * Makefile.in (LIBSDL): New variable.
22905 (enable_grub_emu_sdl): Likewise.
22906 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
22907 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
22908 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
22909 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
22910 * util/sdl.c: New file.
22912 2010-02-06 Colin D Bennett <colin@gibibit.com>
22913 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22915 Double buffering support.
22917 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
22918 * include/grub/video.h: Update comment.
22919 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
22921 (grub_video_fb_doublebuf_blit_init): New prototype.
22922 * term/gfxterm.c (scroll_up): Support double buffering.
22923 (grub_gfxterm_refresh): Likewise.
22924 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
22925 (grub_video_fb_doublebuf_blit_init): Likewise.
22926 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
22927 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
22928 'displayed_page', 'render_page' and 'update_screen'.
22929 (grub_video_vbe_fini): Free offscreen buffer.
22930 (doublebuf_pageflipping_commit): New function.
22931 (doublebuf_pageflipping_update_screen): Likewise.
22932 (doublebuf_pageflipping_init): Likewise.
22933 (double_buffering_init): Likewise.
22934 (grub_video_vbe_setup): Enable doublebuffering.
22935 (grub_video_vbe_swap_buffers): Implement.
22936 (grub_video_vbe_set_active_render_target): Handle double buffering.
22937 (grub_video_vbe_get_active_render_target): Likewise.
22938 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
22939 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
22940 (grub_video_vbe_enable_double_buffering): Likewise.
22941 (grub_video_vbe_swap_buffers): Use update_screen.
22942 (grub_video_set_mode): Use double buffering.
22944 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22946 * maintainance/gentrigtables.py: Remove.
22947 * lib/trig.c: Likewise.
22949 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
22951 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
22953 (trigtables.c): New rule.
22954 (gentrigtables): Likewise.
22955 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
22957 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22959 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
22962 2010-02-06 Colin D Bennet <colin@gibibit.com>
22964 Trigonometry support.
22966 * include/grub/trig.h: New file.
22967 * lib/trig.c: Likewise.
22968 * maintainance/gentrigtables.py: Likewise.
22969 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
22970 (trig_mod_SOURCES): New variable.
22971 (trig_mod_CFLAGS): Likewise.
22972 (trig_mod_LDFLAGS): Likewise.
22974 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22976 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
22979 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22981 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
22984 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22986 * util/hostdisk.c (open_device): Don't use partition device when reading
22987 before the partition.
22988 (grub_util_biosdisk_read): Don't read from partition and before the
22989 partition in single operation.
22990 (grub_util_biosdisk_write): Don't write to partition and before the
22991 partition in single operation.
22993 2010-02-03 Torsten Landschoff <torsten@debian.org>
22995 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22998 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23000 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23002 (grub_biosdisk_write): Refuse to write to CDROM.
23004 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23006 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23008 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23010 * font/font.c (find_glyph): Check that bmp_idx is available before
23012 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23013 with (font == NULL).
23015 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23017 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23019 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23021 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23022 * util/grub-script-check.c (getline): Fix empty lines case.
23024 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23026 * Makefile.in (check): Exit with fail status when one of the tests
23028 * tests/example_functional_test.c (example_test): Fix reversed assert.
23029 * tests/example_unit_test.c (example_test): Likewise.
23031 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23033 * util/grub.d/10_linux.in: This script does not use any of the
23034 contents of gettext.sh, only the external command `gettext', so stop
23035 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23036 the same prefix as GRUB.)
23037 * util/grub.d/10_kfreebsd.in: Likewise.
23039 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23041 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23044 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23046 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23049 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23051 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23052 having a 4KiB and not 32KiB buffer size.
23054 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23056 * util/hostfs.c: Include `<errno.h>'.
23057 (grub_hostfs_read): Handle errors from fseeko() and fread().
23059 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23061 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23062 loop when using read hooks on files whose size isn't sector-aligned.
23064 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23066 Remove unused parameter.
23068 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23069 (grub_iso9660_open): Remove initialization of `data->length'.
23071 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23073 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23074 memleak conditions.
23076 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23078 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23079 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23081 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23083 * util/bin2h.c (usage): Fix warning (space after backslash).
23085 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23087 * font/font.c: Include `grub/fontformat.h.
23088 Remove font file format constants.
23089 (grub_font_load): Use the new macros.
23090 * include/grub/fontformat.h: New file.
23091 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23092 (write_font_pf2): Use the new macros.
23094 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23096 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23099 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23101 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23103 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23104 (_start): Macroify `0x7F'.
23106 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23107 (make_install_device): Use "(pxe)" as fallback prefix when booting
23110 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23112 * configure.ac: Reset LIBS after check for libgcc symbols.
23114 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23116 * util/hostdisk.c (open_device): Add trailing newline to debug
23119 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23121 * configure.ac: Check for `limits.h'.
23122 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23124 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23126 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23127 capitalize error strings.
23129 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23131 * util/grub.d/10_hurd.in: Add a recovery mode.
23133 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23135 * configure.ac: Check for libgcc symbols with -nostdlib.
23137 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23139 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23141 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23143 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23144 stack since heap may be unavailable at that point.
23145 (grub_ofconsole_gotoxy): Likewise.
23147 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23149 * configure.ac: Check for _restgpr_14_x.
23150 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23151 and _savegpr_* prototypes.
23153 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23155 Use generic grub_reboot() for i386-efi.
23157 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23158 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23159 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23161 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23163 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23164 presence of "prefix" variable as it breaks when normal.mod is
23167 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23169 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23170 stack since heap is unavailable at that point.
23172 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23174 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23175 (grub_freebsd_bootinfo): Rewritten.
23176 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23178 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23180 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23182 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23184 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23187 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23189 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23190 around for handling "/" to the correct fix. Fix a memory leak. Use
23191 xstrdup instead of strdup.
23193 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23195 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23197 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23199 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23201 * font/font.c (struct grub_font): New member 'bmp_idx'.
23202 (font_init): Initialise 'bmp_idx'.
23203 (load_font_index): Fill 'bmp_idx'.
23204 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23206 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23208 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23211 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23213 Move context handling out of the kernel.
23215 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23216 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23217 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23218 * conf/i386-efi.rmk: Likewise.
23219 * conf/i386-ieee1275.rmk: Likewise.
23220 * conf/i386-pc.rmk: Likewise.
23221 * conf/powerpc-ieee1275.rmk: Likewise.
23222 * conf/sparc64-ieee1275.rmk: Likewise.
23223 * conf/x86_64-efi.rmk: Likewise.
23224 * include/grub/env.h: Include grub/menu.h.
23225 (grub_env_var_type): Removed.
23226 (grub_env_var): Replaced field 'type' with 'global'.
23227 (grub_env_find): New prototype.
23228 (grub_env_context_open): Remove EXPORT_FUNC.
23229 (grub_env_context_close): Likewise.
23230 (grub_env_export): Likewise.
23231 (grub_env_set_data_slot): Removed.
23232 (grub_env_get_data_slot): Likewise.
23233 (grub_env_unset_data_slot): Likewise.
23234 (grub_env_unset_menu): New prototype.
23235 (grub_env_set_menu): Likewise.
23236 (grub_env_get_menu): Likewise.
23237 * include/grub/env_private.h: New file.
23238 * include/grub/normal.h (grub_context_init): New prototype.
23239 (grub_context_fini): Likewise.
23240 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23241 * normal/context.c (grub_cmd_export): ... to here.
23242 * kern/env.c: Include env_private.h.
23243 (HASHSZ): Moved to include/grub/env_private.h.
23244 (grub_env_context): Likewise.
23245 (grub_env_sorted_var): Likewise.
23246 (current_context): Renamed from this ...
23247 (grub_current_context): ...to this. 'static' removed. All users updated.
23248 (grub_env_find): Removed 'static'.
23249 (grub_env_context_open): Moved to normal/context.c.
23250 (grub_env_context_close): Likewise.
23251 (grub_env_export): Likewise.
23252 (mangle_data_slot_name): Removed.
23253 (grub_env_set_data_slot): Likewise.
23254 (grub_env_get_data_slot): Likewise.
23255 (grub_env_unset_data_slot): Likewise.
23256 * kern/main.c (grub_set_root_dev): Don't export root.
23257 It will be done later.
23258 (grub_main): Don't export prefix.
23259 It will be done later.
23260 * normal/context.c: New file.
23261 * normal/main.c (free_menu): Use grub_env_unset_menu.
23262 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23263 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23264 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23265 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23267 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23271 * commands/setpci.c: New file.
23272 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23273 (setpci_mod_SOURCES): New variable.
23274 (setpci_mod_CFLAGS): Likewise.
23275 (setpci_mod_LDFLAGS): Likewise.
23277 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23279 Byte-addressable PCI configuration space.
23281 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23283 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23284 GRUB_PCI_REG_CACHELINE.
23285 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23286 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23287 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23288 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23289 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23290 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23291 grub_pci_make_address.
23292 (lock_rom_area): Likewise.
23293 * commands/lspci.c (grub_lspci_iter): Use macroses
23294 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23295 of grub_pci_make_address.
23296 * disk/ata.c (grub_ata_pciinit): Likewise.
23297 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23298 (GRUB_PCI_REG_VENDOR): Likewise.
23299 (GRUB_PCI_REG_DEVICE): Likewise.
23300 (GRUB_PCI_REG_COMMAND): Likewise.
23301 (GRUB_PCI_REG_STATUS): Likewise.
23302 (GRUB_PCI_REG_REVISION): Likewise.
23303 (GRUB_PCI_REG_CLASS): Likewise.
23304 (GRUB_PCI_REG_CACHELINE): Likewise.
23305 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23306 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23307 (GRUB_PCI_REG_BIST): Likewise.
23308 (GRUB_PCI_REG_ADDRESSES): Likewise.
23309 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23310 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23311 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23312 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23313 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23314 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23315 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23316 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23317 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23318 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23319 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23320 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23321 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23322 (GRUB_PCI_REG_MIN_GNT): Likewise.
23323 (GRUB_PCI_REG_MAX_LAT): Likewise.
23324 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23325 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23326 * video/efi_uga.c (find_framebuf): Likewise.
23327 * video/sm712.c (grub_video_sm712_setup): Likewise.
23328 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23331 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23333 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23334 can be reliably determined to be supported.
23336 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23338 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23339 that VESA is supported.
23340 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23343 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23345 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23347 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23349 * util/misc.c (make_system_path_relative_to_its_root): Work around
23350 special-casing of "/", as previous incarnation of this routine did.
23352 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23354 Fix any-emu compilation.
23356 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23357 * grub_bin2h_SOURCES: New variable.
23359 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23361 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23363 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23365 * util/grub.d/00_header.in: Fix handling of locale_dir.
23367 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23369 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23370 as possible unifont location (Gentoo).
23371 Reported by: Alexander Brüning
23373 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23375 Don't try to generate lists for kernel.img.
23377 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23378 (pkglib_MODULES): Remove kernel.img.
23379 (kernel_img_EXPORTS): Removed.
23380 (kernel_img_RELOCATABLE): New variable.
23381 * conf/x86_64-efi.rmk: Likewise.
23382 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23384 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23386 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23387 grub_xasprintf or grub_snprintf.
23388 (grub_vsprintf): Likewise.
23389 (grub_snprintf): New proto.
23390 (grub_vsnprintf): Likewise.
23391 (grub_xasprintf): Likewise.
23392 (grub_xvasprintf): Likewise.
23393 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23394 (grub_sprintf): Removed.
23395 (grub_vsnprintf): New function.
23396 (grub_snprintf): Likewise.
23397 (grub_xvasprintf): Likewise.
23398 (grub_xasprintf): Likewise.
23399 (grub_vsprintf): Renamed to ...
23400 (grub_vsnprintf_real): ...this. New argument max_len.
23402 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23404 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23405 fix grub-script-check warning.
23407 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23409 * include/grub/font.h (grub_font_load): Fix prototype.
23411 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23413 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23415 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23417 * include/grub/x86_64/at_keyboard.h: New file.
23419 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23421 * loader/mips/linux.c: Include missing grub/i18n.h.
23423 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23425 * normal/menu.c (notify_execution_failure): Clarify error message.
23427 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23429 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23430 return value (and revert all return statements). Update users.
23432 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23434 * kern/device.c (grub_device_iterate): Allocate new part_ent
23435 structure based on sizeof (*p) rather than sizeof (p->next), to
23436 account for structure padding.
23438 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23439 disk is NULL, which might happen for LVM physical volumes with no
23442 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23444 * loader/mips/linux.c (grub_cmd_initrd)
23445 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23447 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23449 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23450 (grub_video_video_init, grub_video_bitmap_init)
23451 (grub_font_manager_init, grub_term_gfxterm_init)
23452 (grub_at_keyboard_init): New extern declarations.
23453 (grub_machine_init): Initialize gfxterm and at_keyboard.
23455 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23457 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23458 `gfxterm.mod' into core image.
23460 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23461 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23462 (kernel_img_FORMAT): Copy to ...
23464 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23465 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23466 (kernel_img_FORMAT): ... here, and ...
23468 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23469 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23470 (kernel_img_FORMAT): ... here.
23472 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23473 and input (at_keyboard) terminals in kernel.
23474 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23476 (pkglib_MODULES): Remove `pci.mod'.
23477 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23478 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23479 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23480 (at_keyboard_mod_LDFLAGS): Remove variables.
23482 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23484 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23486 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23488 * include/grub/mips/libgcc.h: Only export symbols for functions
23489 that libgcc provides.
23491 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23495 * bus/bonito.c: New file.
23496 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23497 GRUB_PCI_NUM_DEVICES.
23498 * term/i386/pc/serial.c: Move to ...
23499 * term/serial.c: ... here. All users updated.
23500 * util/i386/pc/grub-mkimage.c: Move to ...
23501 * util/grub-mkrawimage.c: ... here. All users updated.
23502 * term/i386/pc/at_keyboard.c: Move to ...
23503 * term/at_keyboard.c: ... here. All users updated.
23504 * conf/mips-qemu-mips.rmk: New file.
23505 * conf/mips-yeeloong.rmk: Likewise.
23506 * conf/mips.rmk: Likewise.
23507 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23509 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23511 (grub_ata_pciinit): Support CS5536.
23512 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23513 * font/font_cmd.c (loadfont_command): Open file before passing it to
23515 (pseudo_file_read): New function.
23516 (pseudo_file_close): Likewise.
23517 (pseudo_fs): New structure.
23518 (load_font_module): New function.
23519 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23520 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23521 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23522 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23523 * include/grub/i386/at_keyboard.h: Split into ...
23524 * include/grub/at_keyboard.h: ... this ...
23525 * include/grub/i386/at_keyboard.h: ... and this.
23526 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23528 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23530 (grub_elf64_size): Likewise.
23531 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23533 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23534 * include/grub/i386/coreboot/serial.h: Rewritten.
23535 * include/grub/i386/ieee1275/serial.h: Include
23536 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23537 * include/grub/i386/pc/serial.h: Moved from here ...
23538 * include/grub/serial.h: ... to here. All users updated.
23539 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23540 (GRUB_PCI_NUM_BUS): Likewise.
23541 (GRUB_PCI_NUM_DEVICES): Likewise.
23542 (grub_pci_device_map_range): Add missing volatile keyword.
23543 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23544 * include/grub/mips/at_keyboard.h: New file.
23545 * include/grub/mips/cache.h: Likewise.
23546 * include/grub/mips/io.h: Likewise.
23547 * include/grub/mips/kernel.h: Likewise.
23548 * include/grub/mips/libgcc.h: Likewise.
23549 * include/grub/mips/pci.h: Likewise.
23550 * include/grub/mips/qemu-mips/boot.h: Likewise.
23551 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23552 * include/grub/mips/qemu-mips/loader.h: Likewise.
23553 * include/grub/mips/qemu-mips/memory.h: Likewise.
23554 * include/grub/mips/qemu-mips/serial.h: Likewise.
23555 * include/grub/mips/qemu-mips/time.h: Likewise.
23556 * include/grub/mips/relocator.h: Likewise.
23557 * include/grub/mips/time.h: Likewise.
23558 * include/grub/mips/types.h: Likewise.
23559 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23560 * include/grub/mips/yeeloong/boot.h: Likewise.
23561 * include/grub/mips/yeeloong/kernel.h: Likewise.
23562 * include/grub/mips/yeeloong/loader.h: Likewise.
23563 * include/grub/mips/yeeloong/memory.h: Likewise.
23564 * include/grub/mips/yeeloong/pci.h: Likewise.
23565 * include/grub/mips/yeeloong/serial.h: Likewise.
23566 * include/grub/mips/yeeloong/time.h: Likewise.
23567 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23568 * kern/elf.c (grub_elf32_size): New parameter. All users
23570 (grub_elf64_size): Likewise.
23571 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23572 Load modules before saying "Welcome to GRUB!".
23573 Call grub_refresh after saying "Welcome to GRUB!".
23574 * kern/mips/cache.S: New file.
23575 * kern/mips/cache_flush.S: Likewise.
23576 * kern/mips/dl.c: Likewise.
23577 * kern/mips/init.c: Likewise.
23578 * kern/mips/qemu-mips/init.c: Likewise.
23579 * kern/mips/startup.S: Likewise.
23580 * kern/mips/yeeloong/init.c: Likewise.
23581 * kern/term.c (grub_putcode): Handle NULL terminal.
23582 (grub_getcharwidth): Likewise.
23583 (grub_getkey): Likewise.
23584 (grub_checkkey): Likewise.
23585 (grub_getkeystatus): Likewise.
23586 (grub_getxy): Likewise.
23587 (grub_getwh): Likewise.
23588 (grub_gotoxy): Likewise.
23589 (grub_cls): Likewise.
23590 (grub_setcolorstate): Likewise.
23591 (grub_setcolor): Likewise.
23592 (grub_getcolor): Likewise.
23593 (grub_refresh): Likewise.
23594 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23595 (write_jump): Add hatch nop.
23596 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23597 * lib/mips/setjmp.S: New file.
23598 * loader/mips/linux.c: Likewise.
23599 * term/i386/pc/at_keyboard.c: Move from here ...
23600 * term/at_keyboard.c: ... to here.
23601 * term/i386/pc/serial.c: Moved from here ...
23602 * term/serial.c: ... to here. All users updated.
23603 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23604 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23605 (serial_translate_key_sequence): Avoid deadlock.
23606 (grub_serial_getkey): Handle backspace.
23607 (grub_serial_putchar): Fix newline handling.
23608 * util/i386/pc/grub-mkimage.c: Move from here ...
23609 * util/grub-mkrawimage.c: ... to here. All users updated.
23610 (generate_image): New parameters 'font_path' and 'format'.
23611 Support embedding font.
23612 Use grub_host_to_target* instead of grub_cpu_to_le*.
23613 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23614 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23615 (options): New option "--font".
23617 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23618 (main): Handle "--font".
23619 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23620 (grub_virtual_screen_setup): Set bg_color_display.
23621 (redraw_screen_rect): Use bg_color_display instead of incorrect
23623 (grub_gfxterm_cls): Likewise.
23624 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23625 Support embedding config file.
23626 (add_segments): Likewise.
23627 (options): New option "--config".
23628 (main): Handle "--config".
23629 * video/sm712.c: New file.
23631 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23633 Fix parallel builds.
23635 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23636 font.c depend on ascii.h).
23638 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23640 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23642 2010-01-11 Carles Pina i Estany <carles@pina.cat>
23644 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
23645 By default: disabled.
23646 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
23649 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23651 * font/font.c: Update copyright years.
23652 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
23654 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23656 * font/font.c: Include `ascii.h'.
23657 (ASCII_BITMAP_SIZE): New macro.
23658 (ascii_font_glyph): Define.
23659 (ascii_glyph_lookup): New function.
23660 (grub_font_get_string_width): Change comment. If glyph not found, use
23661 ascii_glyph_lookup.
23662 (grub_font_get_glyph_with_fallback): If glyph not available returns
23663 ascii_glyph_lookup.
23664 * util/grub-mkfont.c (file_formats): New enum.
23665 (options): Add `ascii-bitmaps' new option.
23666 (usage): Add `asii-bitmaps' new option.
23667 (write_font_ascii_bitmap): New function.
23668 (write_font): Rename to ...
23669 (write_font_p2): ... this. Remove print_glyphs call.
23670 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
23671 used. Call print_glyphs.
23672 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
23674 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23676 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
23677 (grub_bin2h_SOURCES): New variable.
23678 * util/bin2h.c: New file.
23680 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23682 * include/multiboot.h: Resynced with spec.
23683 * include/multiboot2.h: Likewise.
23684 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
23685 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
23687 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23689 * include/grub/term.h (grub_term_register_input,
23690 grub_term_register_output): Check return of terminal init()
23691 routines, and abort if errors are raised.
23693 * commands/terminal.c: Update copyright year.
23695 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23697 * commands/terminal.c (grub_cmd_terminal_input)
23698 (grub_cmd_terminal_output): Check return of terminal init()
23699 routines, and abort if errors are raised.
23701 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23703 * include/grub/i386/bsd.h: Fix include pathes.
23705 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23707 Add missing *BSD copyright headers.
23709 * include/grub/aout.h: Add BSD licence.
23710 * include/grub/i386/bsd.h: Parts under different licences moved to ...
23711 * include/grub/i386/freebsd_linker.h: ... here,
23712 * include/grub/i386/freebsd_reboot.h: ... here,
23713 * include/grub/i386/netbsd_bootinfo.h: ... here,
23714 * include/grub/i386/netbsd_reboot.h: ... here,
23715 * include/grub/i386/openbsd_bootarg.h: ... here,
23716 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
23717 licence to each file.
23719 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23721 * acinclude.m4: Remove `nop' assembly instruction; it's not
23722 implemented by all architectures.
23724 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23726 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
23727 ELILO. This is no longer necessary.
23729 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
23731 Added new tool, grub-scrit-check to verify grub.cfg syntax.
23733 * util/grub-script-check.c: grub-script-check tool.
23734 * conf/common.rmk: Make rules for grub-script-check.
23736 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23738 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
23739 spotting it back in 2008. Shame on me for forgetting he did.
23741 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
23743 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23745 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
23746 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
23747 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
23748 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
23749 (GRUB_VIDEO_TYPE_EFI): Rename to ...
23750 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
23752 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
23754 * include/grub/test.h: Add license header.
23755 * tests/example_functional_test.c: Likewise.
23756 * tests/example_unit_test.c: Likewise.
23757 * tests/lib/functional_test.c: Likewise.
23758 * tests/lib/test.c: Likewise.
23759 * tests/lib/unit_test.c: Likewise.
23761 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
23763 Use flag-based instead of hook-based video mode selection and "auto"
23766 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
23767 (grub_video_set_mode): Changed prototype. All users updated.
23768 (grub_video_check_mode_flag): New inline function.
23769 * video/video.c (parse_modespec): New function.
23770 (grub_video_set_mode): Parse flags and keywords.
23772 2010-01-17 Carles Pina i Estany <carles@pina.cat>
23774 * util/misc.c (grub_util_info): Fix the order of the parameters in a
23777 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
23779 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
23781 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23783 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
23785 * util/grub-emu.c (usage): Likewise.
23786 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
23787 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23788 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23789 * util/i386/pc/grub-setup.c (usage): Likewise.
23791 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23793 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
23795 (grub_util_info): Likewise.
23796 (grub_util_error): Likewise.
23797 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
23798 and/or new lines in `grub_util_warna', `grub_util_info',
23799 `grub_util_error' calls.
23800 * util/getroot.c: Likewise.
23801 * util/grub-editenv.c: Likewise.
23802 * util/grub-emu.c: Likewise.
23803 * util/grub-fstest.c: Likewise.
23804 * util/grub-mkdevicemap.c: Likewise.
23805 * util/grub-mkfont.c: Likewise.
23806 * util/grub-mkpasswd-pbkdf2.c: Likewise.
23807 * util/grub-mkrelpath.c: Likewise.
23808 * util/grub-pe2elf.c: Likewise.
23809 * util/grub-probe.c: Likewise.
23810 * util/hostdisk.c: Likewise.
23811 * util/i386/efi/grub-mkimage.c: Likewise.
23812 * util/i386/pc/grub-mkimage.c: Likewise.
23813 * util/i386/pc/grub-setup.c: Likewise.
23814 * util/ieee1275/ofpath.c: Likewise.
23815 * util/mkisofs/eltorito.c: Likewise.
23816 * util/mkisofs/rock.c: Likewise.
23817 * util/mkisofs/write.c: Likewise.
23818 * util/raid.c: Likewise.
23819 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
23820 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23822 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23824 Enable multiboot on non-pc.
23826 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
23827 multiboot.mod and multiboot2.mod to ...
23828 * conf/i386.rmk (pkglib_MODULES): ... here.
23829 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
23831 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
23832 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
23834 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
23835 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
23837 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
23838 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
23840 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
23841 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
23843 (ata_mod_SOURCES): Removed.
23844 (ata_mod_CFLAGS): Likewise.
23845 (ata_mod_LDFLAGS): Likewise.
23846 (relocator_mod_SOURCES): Removed.
23847 (relocator_mod_CFLAGS): Likewise.
23848 (relocator_mod_ASFLAGS): Likewise.
23849 (relocator_mod_LDFLAGS): Likewise.
23851 * include/grub/x86_64/multiboot.h: New file.
23852 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
23855 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23857 Video multiboot support.
23859 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
23861 * include/multiboot.h: Resynced with multiboot specification.
23862 * include/multiboot2.h: Likewise.
23863 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
23864 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
23865 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
23866 (HAS_VGA_TEXT): Likewise.
23867 (accepts_video): New variable.
23868 (grub_multiboot_set_accepts_video): New function.
23869 (grub_multiboot_get_mbi_size): Account for video structures.
23870 (set_video_mode): New function.
23871 (retrieve_video_parameters): Likewise.
23872 (grub_multiboot_make_mbi): Fill video fields.
23874 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23878 * include/grub/video.h (grub_video_driver_id): New type.
23879 (grub_video_adapter): New member 'id'. All users updated.
23880 (grub_video_get_driver_id): New proto.
23881 * video/video.c (grub_video_get_driver_id): New function.
23883 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23885 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
23888 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23890 * normal/cmdline.c (print_completion): Gettextizze.
23892 2001-01-14 Carles Pina i Estany <carles@pina.cat>
23894 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
23896 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23898 * gettext/gettext.c (grub_gettext_translate): Push and pop
23900 (grub_gettext_delete_list): Change comment style.
23901 * kern/err.c (grub_error): Gettextizze.
23902 (grub_fatal): Gettextizze.
23904 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23906 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
23907 (grub_linux16_real_boot): ... this.
23908 * kern/i386/loader.S: Likewise.
23909 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
23910 (grub_linux16_boot): New function. Switches to text mode and calls
23911 grub_linux16_real_boot().
23913 * loader/i386/bsd.c: Include `<grub/video.h>'.
23914 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
23915 text mode before calling grub_unix_real_boot().
23917 * loader/i386/multiboot.c: Include `<grub/video.h>'.
23918 (grub_multiboot_boot): Switch to text mode before calling
23919 grub_relocator32_boot().
23921 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
23922 (grub_chainloader_boot): Switch to text mode before calling
23923 grub_chainloader_real_boot().
23925 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23926 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23928 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
23931 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23932 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23934 * util/grub.d/00_header.in: Define a "savedefault" function for use
23936 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
23938 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23939 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23941 * util/grub-mkconfig_lib.in (save_default_entry): Only set
23942 saved_entry if boot_once is unset.
23943 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
23944 previous saved entry (i.e. grub-reboot).
23946 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23948 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
23950 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23952 * util/grub.d/00_header.in: Use `set var=val' rather than plain
23954 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
23956 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23958 * util/grub-reboot.in: Fix --version output.
23959 * util/grub-set-default.in: Likewise.
23961 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23963 * util/grub.d/00_header.in: Silently ignore zero-sized environment
23966 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23968 * util/grub.d/00_header.in: Quote the value assigned to `default',
23969 in case it contains spaces.
23971 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23973 * util/grub.d/30_os-prober.in: Fix merge error that moved a
23974 `save_default_entry' call from the macosx case to the linux case.
23976 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
23977 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
23979 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
23980 in `chosen' environment variable.
23981 * normal/menu_text.c (get_entry_number): Check if the variable
23982 matches the title of a menu entry.
23983 (run_menu): Pass menu to get_entry_number.
23985 * util/grub-reboot.in: New file.
23986 * util/grub-set-default.in: New file.
23987 * conf/common.rmk (grub-reboot): New utility.
23988 (grub-set-default): New utility.
23990 * util/grub-mkconfig_lib.in (save_default_entry): New function.
23991 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
23992 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
23993 move it to `saved_entry' for the next boot. Load environment on
23995 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
23996 * util/grub.d/10_hurd.in: Likewise.
23997 * util/grub.d/10_linux.in (linux_entry): Likewise.
23998 * util/grub.d/10_windows.in: Likewise.
23999 * util/grub.d/30_os-prober.in: Likewise.
24001 * util/grub-install.in: Create environment block.
24002 * util/i386/efi/grub-install.in: Likewise.
24003 * util/ieee1275/grub-install.in: Likewise.
24004 * util/sparc64/ieee1275/grub-install.in: Likewise.
24006 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24008 Unit testing framework for GRUB.
24010 * Makefile.in: Test framework build rules for 'make check'.
24011 * conf/tests.rmk: Build rules for individual tests and framework.
24013 * include/grub/test.h: Header file for whitebox tests.
24014 * tests/lib/functional_test.c: Framework support for whitebox
24016 * tests/lib/test.c: Common whitebox testing code for unit and
24018 * tests/lib/unit_test.c: Framework support for whitebox unit
24021 * tests/util/grub-shell-tester.in: Support utility for grub-script
24023 * tests/util/grub-shell.in: Utility to execute grub-script
24024 commands in a Qemu instance.
24026 * tests/example_functional_test.c: Example whitebox functional
24028 * tests/example_grub_script_test.in: Example grub-script test.
24029 * tests/example_scripted_test.in: Example scripted test.
24030 * tests/example_unit_test.c: Example whitebox unit test.
24032 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24034 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24035 Add loader/i386/multiboot_mbi.c.
24036 (multiboot2_mod_SOURCES): Likewise.
24037 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24038 (multiboot2_mod_SOURCES): Likewise.
24039 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24040 (grub_multiboot_make_mbi): Likewise.
24041 (grub_multiboot_free_mbi): Likewise.
24042 (grub_multiboot_init_mbi): Likewise.
24043 (grub_multiboot_add_module): Likewise.
24044 (grub_multiboot_set_bootdev): Likewise.
24045 * loader/i386/multiboot.c (mbi): Removed.
24046 (mbi_dest): Likewise.
24047 (alloc_mbi): New variable.
24048 (grub_multiboot_payload_size): Removed. All users updated.
24049 (grub_multiboot_pure_size): New variable.
24050 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24051 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24052 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24053 (grub_fill_multiboot_mmap): Likewise.
24054 (grub_multiboot_get_bootdev): Likewise.
24055 (grub_multiboot): Use multiboot_mbi functions.
24056 * loader/i386/multiboot_mbi.c: New file.
24058 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24060 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24061 it would result in module crash.
24063 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24065 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24066 (grub_ofconsole_getwh): Split to ...
24067 (grub_ofconsole_getwh): ... this.
24068 (grub_ofconsole_dimensions): ...and this.
24069 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24071 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24073 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24075 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24077 * loader/i386/pc/multiboot2.c: Removed stalled file.
24079 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24081 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24082 Reported by: Grégoire Sutre
24084 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24086 * util/misc.c (canonicalize_file_name): New function.
24087 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24088 instead of realpath().
24090 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24092 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24093 and make it clearer that it's optional. Based on confusion
24096 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24098 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24099 in premature implicit newline.
24101 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24103 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24104 which resulted in garbled command line at the end of screen.
24106 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24108 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24109 initialization with similar approach as with other Linux loaders.
24111 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24113 Fix i386-ieee1275 build.
24115 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24116 and grub_term_height() for video_{width,height} initialization.
24118 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24120 Fix grub-emu build.
24122 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24124 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24125 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24127 Support for multiple terminals.
24129 * Makefile.in (pkglib_DATA): terminal.lst.
24130 (terminal.lst): New target.
24131 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24132 (GRUB_MOD_INIT(handler)): Likewise.
24133 (GRUB_MOD_FINI(handler)): Likewise.
24134 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24135 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24136 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24137 (grub_cmd_sleep): Use grub_term_save_pos.
24138 * commands/terminal.c: New file.
24139 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24140 commands/terminal.c and lib/charset.c.
24141 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24142 (pkglib_MODULES): Add terminal.mod.
24143 (terminal_mod_SOURCES): New variable.
24144 (terminal_mod_CFLAGS): Likewise.
24145 (terminal_mod_LDFLAGS): Likewise.
24146 * genhandlerlist.sh: Don't handle terminals.
24147 * genmk.rb: Generate terminal-*.lst.
24148 * genterminallist.sh: New file.
24149 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24150 (grub_is_valid_utf8): Likewise.
24151 (grub_utf8_to_ucs4_alloc): Likewise.
24152 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24153 (grub_menu_register_viewer): Changed argument.
24154 (grub_menu_try_text): New proto.
24155 (grub_gfxmenu_try_hook): New declaration.
24156 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24157 (grub_menu_init_page): Additional argument term.
24158 (grub_normal_init_page): Likewise.
24159 (grub_cmdline_get): Arguments simplified.
24160 (grub_utf8_to_ucs4_alloc): Removed.
24161 (grub_print_ucs4): Additional argument term.
24162 (grub_getstringwidth): Likewise.
24163 (grub_print_message_indented): Likewise.
24164 (grub_menu_text_register_instances): New proto.
24165 (grub_show_menu): Likewise.
24166 (read_terminal_list): Likewise.
24167 (grub_set_more): Likewise.
24168 * include/grub/parser.h: Include handler.h.
24169 * include/grub/reader.h: Rewritten.
24170 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24171 (GRUB_TERM_WIDTH): Changed to function.
24172 (GRUB_TERM_HEIGHT): Likewise.
24173 (GRUB_TERM_BORDER_WIDTH): Likewise.
24174 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24175 (GRUB_TERM_NUM_ENTRIES): Likewise.
24176 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24177 (GRUB_TERM_CURSOR_X): Likewise.
24178 (grub_term_input_class): Likewise.
24179 (grub_term_output_class): Likewise.
24180 (grub_term_outputs_disabled): New declaration.
24181 (grub_term_inputs_disabled): Likewise.
24182 (grub_term_outputs): Likewise.
24183 (grub_term_inputs): Likewise.
24184 (grub_term_register_input): Rewritten.
24185 (grub_term_register_output): Likewise.
24186 (grub_term_unregister_input): Likewise.
24187 (grub_term_unregister_output): Likewise.
24188 (FOR_ACTIVE_TERM_INPUTS): New macro.
24189 (FOR_DISABLED_TERM_INPUTS): Likewise.
24190 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24191 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24192 * include/grub/terminfo.h: Add oterm argument to all protypes.
24193 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24194 Use grub_rescue_run.
24195 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24197 * kern/reader.c: Removed. All users updated.
24198 * kern/rescue_reader.c (grub_rescue_init): Removed.
24199 (grub_rescue_reader): Likewise.
24200 (grub_register_rescue_reader): Likewise.
24201 (grub_rescue_run): New function based on kern/reader.c.
24202 * kern/term.c: Adapted for multiterm.
24203 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24204 (grub_is_valid_utf8): Likewise.
24205 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24206 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24208 * loader/i386/linux.c (grub_linux_boot): Likewise.
24209 * normal/auth.c (grub_username_get): New function.
24210 (grub_auth_check_authentication): Use grub_username_get.
24211 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24212 * normal/color.c: Adapt for multiterm.
24213 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24214 (grub_normal_init_page): Additional argument term.
24215 (read_lists): Call read_terminal_lists.
24216 (grub_enter_normal_mode): Call grub_cmdline_run.
24217 Handle grub_normal_exit_level.
24218 (grub_cmd_normal): Make reentrant.
24219 (grub_cmd_normal_exit): New function.
24220 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24221 * normal/menu.c: Adapt for multiterm.
24222 * normal/menu_entry.c: Likewise.
24223 * normal/menu_text.c: Likewise.
24224 * normal/menu_viewer.c: Removed. All users updated.
24225 * normal/term.c: New file.
24226 * util/console.c: Change order of includes to workaround a bug in
24228 * term/terminfo.c: New argument oterm on all exported functions.
24230 * util/grub-editenv.c (grub_term_input_class): Removed.
24231 (grub_term_output_class): Likewise.
24233 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24235 Make loader output a bit more user-friendly.
24237 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24238 is being loaded. Likewise for the Hurd.
24240 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24241 that kernel of FreeBSD ${version} is being loaded.
24243 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24245 (grub_cmd_initrd): Likewise.
24246 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24247 that Linux ${version} is being loaded. Likewise for initrd.
24249 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24251 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24253 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24255 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24256 (GRUB_MOD_INIT): Gettextizze.
24257 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24258 (GRUB_MOD_INIT): Gettextizze.
24259 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24260 (grub_cmd_linux): Capitalise Linux.
24261 (GRUB_MOD_INIT): Gettextizze.
24262 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24263 (grub_cmd_linux): Capitalise Linux.
24264 (GRUB_MOD_INIT): Gettextizze.
24265 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24266 (grub_cmd_linux): Capitalise Linux.
24267 (GRUB_MOD_INIT): Gettextizze.
24268 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24269 (GRUB_MOD_INIT): Gettextizze.
24270 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24271 (grub_cmd_linux): Capitalise Linux.
24272 (GRUB_MOD_INIT): Gettextizze.
24273 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24274 (grub_cpu_xnu_init): Gettextizze.
24275 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24276 (GRUB_MOD_INIT): Gettextizze.
24277 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24278 (GRUB_MOD_INIT): Gettextizze.
24279 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24280 (grub_linux_load64): Capitalise Linux.
24281 (GRUB_MOD_INIT): Gettextizze.
24282 * loader/xnu.c: Include `<grub/i18n.h>'.
24283 (GRUB_MOD_INIT): Gettextizze.
24284 * po/POTFILES: Add `loader/efi/appleloader.c',
24285 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24286 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24287 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24288 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24289 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24290 and `loader/xnu.c'.
24292 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24294 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24296 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24298 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24299 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24300 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24302 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24304 Reset Multiboot 2 support. New loader implements the draft in
24305 /branches/multiboot2 and shares as much code as possible with the
24306 production Multiboot 1 implementation.
24308 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24309 * loader/multiboot2.c: Likewise.
24310 * loader/i386/multiboot_helper.S: Likewise.
24311 * include/multiboot2.h: Replace with latest version from the draft
24312 in /branches/multiboot2.
24314 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24315 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24316 and `loader/multiboot2.c'.
24317 (pkglib_MODULES): Add `multiboot2.mod'.
24318 (multiboot2_mod_SOURCES): New variable.
24319 (multiboot2_mod_LDFLAGS): Likewise.
24320 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24322 * conf/i386-pc.rmk: Likewise.
24324 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24325 (multiboot_mod_SOURCES): Remove variable.
24326 (multiboot_mod_LDFLAGS): Likewise.
24327 (multiboot_mod_CFLAGS): Likewise.
24329 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24330 `<multiboot2.h>' instead of `<multiboot.h>'.
24331 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24332 (MULTIBOOT_HEADER_MAGIC): New macros.
24334 * loader/multiboot_loader.c (module_version_status): Remove variable.
24335 (find_multi_boot2_header): Remove function.
24336 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24337 logic. Always check for the Multiboot version we're compiling for.
24338 (grub_cmd_module_loader): Likewise.
24339 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24340 command instead of `multiboot'.
24342 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24344 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24345 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24348 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24349 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24351 Fix breakage introduced with previous commit.
24353 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24355 * normal/handler.c (read_handler_list): Revert part of previous commit
24356 affecting this file.
24357 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24358 (grub_normal_execute): ... here.
24360 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24362 Merge prefix-redefinition-fix branch.
24364 * normal/autofs.c (read_fs_list): Make function capable of being
24365 run multiple times, gracefuly replacing the previous data
24367 * normal/dyncmd.c (read_command_list): Likewise.
24368 * normal/handler.c (read_handler_list): Likewise.
24369 * normal/main.c (read_lists): New function. Calls all the
24370 list reading functions.
24371 (grub_normal_execute): Use read_lists() instead of calling all
24372 list reading functions explicitly. Register read_lists() as a
24373 variable hook attached to ${prefix}.
24375 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24377 Merge crypto branch.
24379 * Makefile.in (pkglib_DATA): Add crypto.lst.
24380 (crypto.lst): New target.
24381 * commands/hashsum.c: New file.
24382 * commands/password.c (check_password): Use grub_crypto_memcmp.
24383 * commands/password_pbkdf2.c: New file.
24384 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24385 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24386 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24387 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24388 -I$(srcdir)/lib/libgcrypt_wrap.
24389 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24390 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24391 password_pbkdf2.mod.
24392 (crypto_mod_SOURCES): New variable.
24393 (crypto_mod_CFLAGS): Likewise.
24394 (crypto_mod_LDFLAGS): Likewise.
24395 (hashsum_mod_SOURCES): New variable.
24396 (hashsum_mod_CFLAGS): Likewise.
24397 (hashsum_mod_LDFLAGS): Likewise.
24398 (pbkdf2_mod_SOURCES): New variable.
24399 (pbkdf2_mod_CFLAGS): Likewise.
24400 (pbkdf2_mod_LDFLAGS): Likewise.
24401 (password_pbkdf2_mod_SOURCES): New variable.
24402 (password_pbkdf2_mod_CFLAGS): Likewise.
24403 (password_pbkdf2_mod_LDFLAGS): Likewise.
24404 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24405 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24406 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24407 Include conf/gcry.rmk.
24408 * include/grub/auth.h: Rewritten.
24409 * include/grub/crypto.h: New file.
24410 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24411 * include/grub/normal.h (read_crypto_list): New prototype.
24412 * lib/crypto.c: New file.
24413 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24414 * lib/pbkdf2.c: Likewise.
24415 * normal/auth.c (grub_auth_strcmp): Removed.
24416 (grub_iswordseparator): Likewise.
24417 (grub_auth_strword): Likewise.
24418 (is_authenticated): Use grub_strword.
24419 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24420 and grub_strword. Pass entered password to authentication callback.
24421 * normal/crypto.c: New file.
24422 * normal/main.c: Call read_crypto_list.
24423 * util/grub-mkpasswd-pbkdf2.c: New file.
24424 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24426 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24428 Fix descent and ascent calculation.
24430 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24431 (options): New option "asce".
24433 (add_char): Ignore invalid glyphs for descent calculation.
24434 Calculate ascent from actual content.
24435 (print_glyphs): Use 'asce'.
24436 (write_font): Likewise. Allow ascent override.
24437 (main): Handle "asce" option.
24439 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24441 * kern/err.c: Include `<grub/i18n.h>'.
24442 (grub_print_error): Add full stop. Gettextizze.
24443 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24444 (grub_bsd_load_elf): Capitalise ELF.
24445 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24446 (grub_cmd_freebsd_module): Likewise.
24447 (grub_cmd_freebsd_module_elf): Likewise.
24448 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24450 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24452 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24453 * commands/search_file.c (HELP_MESSAGE): New macro.
24454 * commands/search_label.c (HELP_MESSAGE): Likewise.
24455 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24456 * po/POTFILES: Add `commands/search_file.c',
24457 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24458 `commands/search.c'.
24460 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24462 * config.rpath: Update from Gnulib.
24464 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24466 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24468 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24470 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24472 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24474 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24475 arguments to fread so that we get a return value in bytes, rather
24476 than something that will normally be rounded down to 0.
24477 Adjust error handling to avoid producing garbage when size_t is not
24478 the same size as long long.
24480 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24482 * util/mkisofs/write.c (padblock_write): Check return value of
24485 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24487 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24490 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24492 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24494 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24495 instead of manual alignment.
24496 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24497 verbose). Avoid attempts to read past end of the device
24498 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24499 but GRUB_DISK_CACHE_SIZE may exceed that).
24501 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24503 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24504 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24507 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24509 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24511 (grub_efi_piwg_device_path): New structure
24512 (grub_efi_piwg_device_path_t): New type.
24513 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24514 (devpath_1): Transform to a structure. All users updated.
24515 (devpath_2): Likewise.
24516 (devpath_3): Likewise.
24517 (devpath_4): Likewise.
24518 (devpath_5): Likewise.
24520 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24522 * loader/efi/appleloader.c: Restored. Update all users.
24524 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24526 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24528 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24529 (struct boot_blocklist): Move from here ...
24530 * include/grub/i386/pc/boot.h [ASM_FILE]
24531 (struct grub_boot_blocklist): ... to here. Update all users.
24532 (setup): Only initialize `start' member of `first_block'
24533 structure. Add assert() calls to verify the other members.
24535 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24536 (generate_image): Fix broken blocklist length initialization.
24537 Add assert() call to verify blocklist `segment' field.
24539 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24541 * loader/efi/appleloader.c: Remove. Update all users.
24543 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24545 * boot/i386/pc/boot.S: Update copyright year.
24546 * boot/i386/pc/cdboot.S: Likewise.
24547 * boot/i386/pc/diskboot.S: Likewise.
24548 * boot/i386/pc/lnxboot.S: Likewise.
24549 * boot/i386/pc/pxeboot.S: Likewise.
24550 * bus/pci.c: Likewise.
24551 * commands/cmp.c: Likewise.
24552 * commands/help.c: Likewise.
24553 * commands/hexdump.c: Likewise.
24554 * commands/i386/pc/halt.c: Likewise.
24555 * commands/i386/pc/play.c: Likewise.
24556 * commands/i386/pc/vbeinfo.c: Likewise.
24557 * commands/ls.c: Likewise.
24558 * commands/test.c: Likewise.
24559 * disk/dmraid_nvidia.c: Likewise.
24560 * disk/i386/pc/biosdisk.c: Likewise.
24561 * disk/ieee1275/nand.c: Likewise.
24562 * disk/ieee1275/ofdisk.c: Likewise.
24563 * disk/lvm.c: Likewise.
24564 * disk/raid.c: Likewise.
24565 * disk/raid6_recover.c: Likewise.
24566 * disk/scsi.c: Likewise.
24567 * fs/affs.c: Likewise.
24568 * fs/cpio.c: Likewise.
24569 * fs/ext2.c: Likewise.
24570 * fs/hfs.c: Likewise.
24571 * fs/iso9660.c: Likewise.
24572 * fs/ntfs.c: Likewise.
24573 * fs/sfs.c: Likewise.
24574 * fs/udf.c: Likewise.
24575 * fs/ufs.c: Likewise.
24576 * fs/xfs.c: Likewise.
24577 * gencmdlist.sh: Likewise.
24578 * genmk.rb: Likewise.
24579 * include/grub/disk.h: Likewise.
24580 * include/grub/efi/api.h: Likewise.
24581 * include/grub/efi/efi.h: Likewise.
24582 * include/grub/efi/pe32.h: Likewise.
24583 * include/grub/elf.h: Likewise.
24584 * include/grub/fs.h: Likewise.
24585 * include/grub/i386/at_keyboard.h: Likewise.
24586 * include/grub/i386/pc/memory.h: Likewise.
24587 * include/grub/i386/pc/vbe.h: Likewise.
24588 * include/grub/i386/pci.h: Likewise.
24589 * include/grub/i386/tsc.h: Likewise.
24590 * include/grub/ieee1275/ieee1275.h: Likewise.
24591 * include/grub/ntfs.h: Likewise.
24592 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24593 * include/grub/sparc64/libgcc.h: Likewise.
24594 * include/grub/symbol.h: Likewise.
24595 * include/grub/types.h: Likewise.
24596 * include/multiboot2.h: Likewise.
24597 * io/gzio.c: Likewise.
24598 * kern/device.c: Likewise.
24599 * kern/disk.c: Likewise.
24600 * kern/efi/efi.c: Likewise.
24601 * kern/efi/mm.c: Likewise.
24602 * kern/elf.c: Likewise.
24603 * kern/file.c: Likewise.
24604 * kern/i386/dl.c: Likewise.
24605 * kern/i386/pc/init.c: Likewise.
24606 * kern/i386/pc/startup.S: Likewise.
24607 * kern/ieee1275/ieee1275.c: Likewise.
24608 * kern/ieee1275/init.c: Likewise.
24609 * kern/main.c: Likewise.
24610 * kern/mm.c: Likewise.
24611 * kern/powerpc/dl.c: Likewise.
24612 * kern/sparc64/dl.c: Likewise.
24613 * kern/x86_64/dl.c: Likewise.
24614 * lib/hexdump.c: Likewise.
24615 * loader/efi/appleloader.c: Likewise.
24616 * loader/i386/ieee1275/linux.c: Likewise.
24617 * loader/i386/pc/chainloader.c: Likewise.
24618 * loader/i386/pc/linux.c: Likewise.
24619 * loader/i386/pc/multiboot2.c: Likewise.
24620 * loader/ieee1275/multiboot2.c: Likewise.
24621 * loader/multiboot2.c: Likewise.
24622 * loader/multiboot_loader.c: Likewise.
24623 * loader/powerpc/ieee1275/linux.c: Likewise.
24624 * normal/completion.c: Likewise.
24625 * normal/menu_entry.c: Likewise.
24626 * partmap/apple.c: Likewise.
24627 * util/grub.d/10_hurd.in: Likewise.
24628 * util/hostfs.c: Likewise.
24629 * video/readers/png.c: Likewise.
24631 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24633 * include/grub/misc.h (GNUC_PREREQ): New macro.
24634 (ATTRIBUTE_ERROR): New macro.
24635 * include/grub/list.h (grub_bad_type_cast_real): Use
24638 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24640 * normal/menu_text.c (print_message): Change messages.
24642 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24644 * normal/menu_entry.c (store_completion): Gettextizze.
24646 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24648 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
24650 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24652 * po/POTFILES: Sort correctly.
24654 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24656 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
24657 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
24658 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
24660 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
24661 summary. Gettextizze the strings.
24662 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
24663 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
24664 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
24666 (GRUB_MOD_INIT): Remove command name from summary.
24667 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
24669 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
24670 * term/i386/pc/serial.c (options): Add full stops.
24671 (GRUB_MOD_INIT): Remove command name from the summary.
24673 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24675 * commands/acpi.c: Gettextizze help strings and/or options. Include
24676 `grub/i18n.h' if needed.
24677 * commands/blocklist.c: Likewise.
24678 * commands/boot.c: Likewise.
24679 * commands/cat.c: Likewise.
24680 * commands/cmp.c: Likewise.
24681 * commands/configfile.c: Likewise.
24682 * commands/crc.c: Likewise.
24683 * commands/date.c: Likewise.
24684 * commands/echo.c: Likewise.
24685 * commands/efi/fixvideo.c: Likewise.
24686 * commands/efi/loadbios.c: Likewise.
24687 * commands/gptsync.c: Likewise.
24688 * commands/halt.c: Likewise.
24689 * commands/handler.c: Likewise.
24690 * commands/hdparm.c: Likewise.
24691 * commands/hexdump.c: Likewise.
24692 * commands/i386/cpuid.c: Likewise.
24693 * commands/i386/pc/drivemap.c: Likewise.
24694 * commands/i386/pc/halt.c: Likewise.
24695 * commands/i386/pc/pxecmd.c: Likewise.
24696 * commands/i386/pc/vbeinfo.c: Likewise.
24697 * commands/i386/pc/vbetest.c: Likewise.
24698 * commands/ieee1275/suspend.c: Likewise.
24699 * commands/keystatus.c: Likewise.
24700 * commands/loadenv.c: Likewise.
24701 * commands/ls.c: Likewise.
24702 * commands/lsmmap.c: Likewise.
24703 * commands/lspci.c: Likewise.
24704 * commands/memrw.c: Likewise.
24705 * commands/minicmd.c: Likewise.
24706 * commands/parttool.c: Likewise.
24707 * commands/password.c: Likewise.
24708 * commands/probe.c: Likewise.
24709 * commands/read.c: Likewise.
24710 * commands/reboot.c: Likewise.
24711 * commands/search.c: Likewise.
24712 * commands/sleep.c: Likewise.
24713 * commands/test.c: Likewise.
24714 * commands/true.c: Likewise.
24715 * commands/usbtest.c: Likewise.
24716 * commands/videotest.c: Likewise.
24717 * commands/xnu_uuid.c: Likewise.
24718 * disk/loopback.c: Likewise.
24719 * hello/hello.c: Likewise.
24720 * loader/i386/bsd.c: Likewise.
24721 * term/i386/pc/serial.c: Likewise.
24722 * po/POTFILES: Add new files.
24724 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
24726 * term/i386/pc/at_keyboard.c
24727 (keyboard_controller_wait_untill_ready): Rename to ...
24728 (keyboard_controller_wait_until_ready): ... this. Update all users.
24730 2010-01-01 Carles Pina i Estany <carles@pina.cat>
24732 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
24733 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
24734 string using string width.
24735 * normal/menu_text.c (grub_print_message_indented): Use
24736 grub_print_spaces and not print_spaces.
24737 (print_timeout): Likewise.
24738 (print_spaces): Move to...
24739 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
24741 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
24743 Import from Gnulib.
24745 * gnulib/getdelim.c: New file.
24746 * gnulib/getline.c: Likewise.
24748 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
24750 * include/grub/list.h (grub_assert_fail): Removed.
24751 (grub_bad_type_cast_real): New function.
24752 (grub_bad_type_cast): New macro.
24753 (GRUB_AS_LIST): Use grub_bad_type_cast.
24754 (GRUB_AS_LIST_P): Likewise.
24755 (GRUB_AS_NAMED_LIST): Likewise.
24756 (GRUB_AS_NAMED_LIST_P): Likewise.
24757 (GRUB_AS_PRIO_LIST): Likewise.
24758 (GRUB_AS_PRIO_LIST_P): Likewise.
24759 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
24761 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
24763 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
24766 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
24768 * configure.ac: Check for TARGET_CFLAGS initialization before we
24769 initialize it ourselves (sigh).
24770 Move a few modifications to TARGET_CFLAGS to be unconditional
24771 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
24774 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
24775 * term/i386/pc/at_keyboard.c
24776 (keyboard_controller_wait_untill_ready): Likewise.
24777 (keyboard_controller_led): Rename `led_status' paramter to avoid
24780 2009-12-28 Carles Pina i Estany <carles@pina.cat>
24782 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
24785 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24787 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
24789 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24791 * normal/menu_text.c (grub_print_message_indented): Prevent
24792 past-the-end-of-array dereference.
24794 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24796 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
24797 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
24799 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24801 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
24802 * normal/main.c (grub_normal_read_line): Remove a space from the
24805 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24807 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
24808 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24809 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24810 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24811 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24812 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24813 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24815 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24817 * video/readers/jpeg.c (cmd): Declare.
24818 (grub_cmd_jpegtest): Use `grub_command_t' type.
24819 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24821 (GRUB_MOD_FINI): Use `cmd' to unregister.
24822 * video/readers/png.c (cmd): Declare.
24823 (grub_cmd_pngtest): Use `grub_command_t' type.
24824 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24826 (GRUB_MOD_FINI): Use `cmd' to unregister.
24827 * video/readers/tga.c (cmd): Declare.
24828 (grub_cmd_tgatest): Use `grub_command_t' type.
24829 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24831 (GRUB_MOD_FINI): Use `cmd' to unregister.
24833 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24835 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
24837 * kern/corecmd.c (grub_register_core_commands): Likewise.
24838 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
24839 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24840 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
24841 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24842 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24843 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
24844 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24845 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
24846 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24847 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24848 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24849 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24850 * normal/handler.c (insert_handler): Likewise.
24851 * normal/main.c (GRUB_MOD_INIT): Likewise.
24852 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24854 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24856 * commands/help.c (grub_cmd_help): Print the command name before the
24858 (GRUB_MOD_INIT): Remove command name from the summary.
24859 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
24861 * lib/arg.c (find_long): Print the command name before the summary.
24862 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
24864 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
24865 * commands/cat.c (GRUB_MOD_INIT): Likewise.
24866 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
24867 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24868 * commands/crc.c (GRUB_MOD_INIT): Likewise.
24869 * commands/date.c (GRUB_MOD_INIT): Likewise.
24870 * commands/echo.c (GRUB_MOD_INIT): Likewise.
24871 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
24872 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24873 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24874 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
24875 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
24876 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
24877 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
24878 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24879 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
24880 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
24881 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
24882 * commands/ls.c (GRUB_MOD_INIT): Likewise.
24883 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24884 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24885 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24886 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
24887 * commands/password.c (GRUB_MOD_INIT): Likewise.
24888 * commands/probe.c (GRUB_MOD_INIT): Likewise.
24889 * commands/read.c (GRUB_MOD_INIT): Likewise.
24890 * commands/search.c (GRUB_MOD_INIT): Likewise.
24891 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
24892 * commands/test.c (GRUB_MOD_INIT): Likewise.
24893 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
24894 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24895 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24896 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
24897 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24898 * lib/arg.c (GRUB_MOD_INIT): Likewise.
24899 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
24900 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24901 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24902 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24903 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24904 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
24905 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
24906 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
24908 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24910 Use search command for preliminar UUID search.
24912 * commands/search.c: Split into ...
24913 * commands/search_wrap.c: ...this
24914 * commands/search.c: ...and this.
24915 * commands/search_file.c: New file.
24916 * commands/search_label.c: New file.
24917 * commands/search_uuid.c: New file.
24918 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
24919 Add commands/search_wrap.c, commands/search_file.c,
24920 commands/search_label.c and commands/search_uuid.c.
24921 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
24922 (search_mod_SOURCES): Set to commands/search_wrap.c.
24923 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
24925 (search_fs_file_mod_SOURCES): New variable.
24926 (search_fs_file_mod_CFLAGS): Likewise.
24927 (search_fs_file_mod_LDFLAGS): Likewise.
24928 (search_label_mod_SOURCES): Likewise.
24929 (search_label_mod_CFLAGS): Likewise.
24930 (search_label_mod_LDFLAGS): Likewise.
24931 (search_fs_uuid_mod_SOURCES): New variable.
24932 (search_fs_uuid_mod_CFLAGS): Likewise.
24933 (search_fs_uuid_mod_LDFLAGS): Likewise.
24934 (fs_file_mod_SOURCES): Removed.
24935 (fs_file_mod_CFLAGS): Likewise.
24936 (fs_file_mod_LDFLAGS): Likewise.
24937 (fs_uuid_mod_SOURCES): Removed.
24938 (fs_uuid_mod_CFLAGS): Likewise.
24939 (fs_uuid_mod_LDFLAGS): Likewise.
24940 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
24941 Set to util/grub-install.in.
24942 * disk/fs_file.c: Removed.
24943 * disk/fs_uuid.c: Likewise.
24944 * include/grub/search.h: New file.
24945 * util/grub-install.in: Handle sparc64.
24946 Create and use load.cfg.
24947 * util/sparc64/ieee1275/grub-install.in: Removed.
24949 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24951 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
24952 Ignore return status if CF is cleared.
24953 (grub_biosdisk_get_diskinfo_standard): Likewise.
24955 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24957 * term/i386/pc/at_keyboard.c
24958 (keyboard_controller_wait_untill_ready): New function.
24959 (grub_keyboard_controller_write, grub_keyboard_controller_read)
24960 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
24961 for keyboard polling, rather than duplicate the same loop. This
24962 saves a few bytes in code size.
24964 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24966 Support for (pxe[:server[:gateway]]) syntax and
24967 use environment variable for PXE.
24969 * commands/i386/pc/pxecmd.c (options): Removed.
24970 (print_ip): Removed.
24971 (grub_cmd_pxe): Removed
24972 (grub_cmd_pxe_unload): New function.
24973 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
24974 (grub_pxe_your_ip): Made static.
24975 (grub_pxe_default_server_ip): Likewise.
24976 (grub_pxe_default_gateway_ip): Likewise.
24977 (grub_pxe_blksize): Likewise.
24978 (parse_ip): New function.
24979 (grub_pxe_open): Support server and gateway specification.
24980 (grub_pxe_close): Free disk->data.
24981 (grub_pxefs_open): Use disk->data.
24982 (grub_pxefs_read): Likewise.
24983 (grub_env_write_readonly): New function.
24984 (set_mac_env): Likewise.
24985 (set_env_limn_ro): Likewise.
24986 (parse_dhcp_vendor): Likewise.
24987 (grub_pxe_detect): Set the environment variables.
24988 (set_ip_env): New function.
24989 (write_ip_env): Likewise.
24990 (grub_env_write_pxe_default_server): Likewise.
24991 (grub_env_write_pxe_default_gateway): Likewise.
24992 (grub_env_write_pxe_blocksize): Likewise.
24993 (GRUB_MOD_INIT(pxe)): Set environment variables.
24994 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
24995 (grub_pxe_mac_addr_t): ... this. All users updated.
24996 (grub_pxe_your_ip): Removed.
24997 (grub_pxe_server_ip): Likewise.
24998 (grub_pxe_gateway_ip): Likewise.
24999 (grub_pxe_blksize): Likewise.
25001 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25003 * commands/help.c: Include `<grub/i18n.h>'.
25004 (grub_cmd_help): Gettextizze.
25005 (GRUB_MOD_INIT): Likewise.
25006 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25007 (GRUB_MOD_INIT): Gettextizze.
25008 * commands/search.c: Include `<grub/i18n.h>'.
25009 (options): Gettextizze.
25010 (GRUB_MOD_INIT): Gettextizze.
25011 * lib/arg.c: Include `<grub/i18n.h>'.
25012 (help_options): Gettextizze.
25013 (find_long): Likewise.
25014 (grub_arg_show_help): Likewise.
25015 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25016 (read_command_list): Gettextizze.
25017 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25018 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25020 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25022 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25023 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25024 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25025 (led_status): New variable.
25026 (keyboard_controller_led): New function.
25027 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25028 update led status for caps lock, num lock and scroll lock.
25030 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25032 * util/hostdisk.c (open_device): Fix a comment.
25034 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25036 * util/grub-install.in (host_os): New variable.
25037 * util/i386/efi/grub-install.in (host_os): Likewise.
25039 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25041 * util/mkisofs/write.c (padblock_write): Abort when given an
25042 excedingly large embed image, instead of silently truncating it.
25044 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25046 * include/multiboot.h: Indentation fixes.
25048 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25050 * include/multiboot.h (struct multiboot_aout_symbol_table)
25051 (struct multiboot_elf_section_header_table): New structure
25052 declarations (stolen from GRUB Legacy).
25053 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25056 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25057 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25060 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25062 * include/multiboot.h: Make comments src2texi-friendly.
25064 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25066 For consistency with [multiboot]/docs/boot.S.
25068 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25069 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25070 (MULTIBOOT_MAGIC2): Rename from this ...
25071 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25073 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25075 * include/multiboot.h: Remove `<grub/types.h>'.
25076 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25077 types. Update all users.
25079 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25081 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25082 `couldn't' and `can not' by `cannot'.
25083 * commands/i386/pc/drivemap.c: Likewise.
25084 * disk/ata.c: Likewise.
25085 * disk/ieee1275/nand.c: Likewise.
25086 * fs/affs.c: Likewise.
25087 * fs/fat.c: Likewise.
25088 * fs/hfs.c: Likewise.
25089 * fs/hfsplus.c: Likewise.
25090 * fs/iso9660.c: Likewise.
25091 * fs/jfs.c: Likewise.
25092 * fs/minix.c: Likewise.
25093 * fs/reiserfs.c: Likewise.
25094 * fs/sfs.c: Likewise.
25095 * fs/udf.c: Likewise.
25096 * fs/ufs.c: Likewise.
25097 * fs/xfs.c: Likewise.
25098 * loader/powerpc/ieee1275/linux.c: Likewise.
25099 * loader/sparc64/ieee1275/linux.c: Likewise.
25100 * util/grub-probe.c: Likewise.
25101 * util/misc.c: Likewise.
25103 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25105 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25107 * commands/acpi.c: Likewise.
25108 * commands/blocklist.c: Likewise.
25109 * commands/efi/loadbios.c: Likewise.
25110 * commands/i386/pc/drivemap.c: Likewise.
25111 * commands/loadenv.c: Likewise.
25112 * commands/memrw.c: Likewise.
25113 * commands/password.c: Likewise.
25114 * commands/videotest.c: Likewise.
25115 * disk/ata.c: Likewise.
25116 * disk/ata_pthru.c: Likewise.
25117 * disk/dmraid_nvidia.c: Likewise.
25118 * disk/ieee1275/nand.c: Likewise.
25119 * disk/ieee1275/ofdisk.c: Likewise.
25120 * disk/loopback.c: Likewise.
25121 * disk/lvm.c: Likewise.
25122 * disk/mdraid_linux.c: Likewise.
25123 * disk/raid.c: Likewise.
25124 * disk/raid6_recover.c: Likewise.
25125 * disk/scsi.c: Likewise.
25126 * efiemu/main.c: Likewise.
25127 * efiemu/mm.c: Likewise.
25128 * efiemu/pnvram.c: Likewise.
25129 * efiemu/symbols.c: Likewise.
25130 * font/font.c: Likewise.
25131 * fs/cpio.c: Likewise.
25132 * fs/hfsplus.c: Likewise.
25133 * fs/iso9660.c: Likewise.
25134 * fs/jfs.c: Likewise.
25135 * fs/minix.c: Likewise.
25136 * fs/ntfs.c: Likewise.
25137 * fs/ntfscomp.c: Likewise.
25138 * fs/reiserfs.c: Likewise.
25139 * fs/ufs.c: Likewise.
25140 * fs/xfs.c: Likewise.
25141 * gettext/gettext.c: Likewise.
25142 * include/grub/auth.h: Likewise.
25143 * kern/elf.c: Likewise.
25144 * kern/file.c: Likewise.
25145 * kern/ieee1275/init.c: Likewise.
25146 * kern/ieee1275/mmap.c: Likewise.
25147 * kern/ieee1275/openfw.c: Likewise.
25148 * kern/powerpc/dl.c: Likewise.
25149 * kern/sparc64/dl.c: Likewise.
25150 * lib/arg.c: Likewise.
25151 * loader/i386/bsd.c: Likewise.
25152 * loader/i386/bsdXX.c: Likewise.
25153 * loader/i386/efi/linux.c: Likewise.
25154 * loader/i386/efi/xnu.c: Likewise.
25155 * loader/i386/ieee1275/linux.c: Likewise.
25156 * loader/i386/linux.c: Likewise.
25157 * loader/i386/multiboot.c: Likewise.
25158 * loader/i386/pc/linux.c: Likewise.
25159 * loader/i386/pc/multiboot2.c: Likewise.
25160 * loader/i386/xnu.c: Likewise.
25161 * loader/ieee1275/multiboot2.c: Likewise.
25162 * loader/macho.c: Likewise.
25163 * loader/machoXX.c: Likewise.
25164 * loader/multiboot2.c: Likewise.
25165 * loader/multiboot_loader.c: Likewise.
25166 * loader/powerpc/ieee1275/linux.c: Likewise.
25167 * loader/sparc64/ieee1275/linux.c: Likewise.
25168 * loader/xnu.c: Likewise.
25169 * loader/xnu_resume.c: Likewise.
25170 * mmap/i386/pc/mmap.c: Likewise.
25171 * normal/menu_viewer.c: Likewise.
25172 * partmap/acorn.c: Likewise.
25173 * partmap/amiga.c: Likewise.
25174 * partmap/apple.c: Likewise.
25175 * script/lexer.c: Likewise.
25176 * term/gfxterm.c: Likewise.
25177 * term/i386/pc/serial.c: Likewise.
25178 * term/i386/pc/vga.c: Likewise.
25179 * term/ieee1275/ofconsole.c: Likewise.
25180 * term/terminfo.c: Likewise.
25181 * video/bitmap.c: Likewise.
25182 * video/efi_gop.c: Likewise.
25183 * video/efi_uga.c: Likewise.
25184 * video/fb/video_fb.c: Likewise.
25185 * video/i386/pc/vbe.c: Likewise.
25186 * video/readers/tga.c: Likewise.
25187 * video/video.c: Likewise.
25189 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25191 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25192 * commands/lspci.c: Likewise.
25193 * commands/probe.c: Likewise.
25194 * commands/xnu_uuid.c: Likewise.
25195 * conf/i386-coreboot.rmk: Likewise.
25196 * conf/i386-efi.rmk: Likewise.
25197 * conf/i386-ieee1275.rmk: Likewise.
25198 * conf/i386-pc.rmk: Likewise.
25199 * conf/powerpc-ieee1275.rmk: Likewise.
25200 * conf/sparc64-ieee1275.rmk: Likewise.
25201 * conf/x86_64-efi.rmk: Likewise.
25202 * fs/i386/pc/pxe.c: Likewise.
25203 * gettext/gettext.c: Likewise.
25204 * include/grub/efi/graphics_output.h: Likewise.
25205 * include/grub/i386/pc/memory.h: Likewise.
25206 * kern/env.c: Likewise.
25207 * kern/i386/qemu/startup.S: Likewise.
25208 * lib/i386/pc/biosnum.c: Likewise.
25209 * lib/i386/relocator.c: Likewise.
25210 * lib/i386/relocator_asm.S: Likewise.
25211 * lib/relocator.c: Likewise.
25212 * loader/i386/bsd.c: Likewise.
25213 * loader/i386/multiboot.c: Likewise.
25214 * loader/i386/pc/chainloader.c: Likewise.
25215 * loader/i386/xnu.c: Likewise.
25216 * loader/xnu.c: Likewise.
25217 * normal/main.c: Likewise.
25218 * normal/menu_text.c: Likewise.
25219 * util/getroot.c: Likewise.
25220 * util/grub-mkconfig_lib.in: Likewise.
25221 * util/grub.d/00_header.in: Likewise.
25222 * util/i386/pc/grub-mkimage.c: Likewise.
25223 * util/mkisofs/eltorito.c: Likewise.
25224 * util/mkisofs/exclude.h: Likewise.
25225 * util/mkisofs/hash.c: Likewise.
25226 * util/mkisofs/iso9660.h: Likewise.
25227 * util/mkisofs/joliet.c: Likewise.
25228 * util/mkisofs/mkisofs.c: Likewise.
25229 * util/mkisofs/mkisofs.h: Likewise.
25230 * util/mkisofs/multi.c: Likewise.
25231 * util/mkisofs/name.c: Likewise.
25232 * util/mkisofs/rock.c: Likewise.
25233 * util/mkisofs/tree.c: Likewise.
25234 * util/mkisofs/write.c: Likewise.
25235 * video/efi_gop.c: Likewise.
25237 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25239 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25242 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25244 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25245 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25247 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25249 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25250 (GRUB_MOD_INIT(memrw)): Update help line.
25252 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25254 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25255 Use grub_extcmd_t. All users updated.
25256 (options): New variable.
25257 (grub_cmd_read): Restructure for readability. Support "-v" option.
25258 (grub_cmd_write): Restructure for readability.
25260 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25262 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25264 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25266 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25267 with the actual contents of the correspondending make variable.
25268 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25269 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25270 specifying `*.lst' and `efiemu??.o'
25272 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25274 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25275 after function name.
25276 Noticed by Rene Engelhard <rene@debian.org>.
25278 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25280 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25281 (options): New variable.
25282 (iospace): Likewise.
25283 (grub_lspci_iter): List IO spaces if "-i" was given.
25284 (grub_cmd_lspci): Parse options.
25285 (GRUB_MOD_INIT(lspci)): Use extcmd.
25286 (GRUB_MOD_FINI(lspci)): Likewise.
25288 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25290 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25291 `function' keyword.
25292 Patch by Tony Mancill <tmancill@debian.org>.
25294 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25296 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25297 (grub_uhci_portstatus): Likewise.
25298 (grub_uhci_portstatus): Add necessary delay.
25299 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25301 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25303 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25304 (GRUB_MOD_INIT): Likewise.
25305 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25306 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25307 * commands/echo.c (options): Fix capitalizations and/or full stops.
25308 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25309 (enable_rom_area): Likewise.
25310 (GRUB_MOD_INIT): Likewise.
25311 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25312 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25313 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25314 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25315 * commands/hexdump.c (options): Likewise.
25316 * commands/i386/cpuid.c (options): Likewise.
25317 (GRUB_MOD_INIT): Likewise.
25318 * commands/i386/pc/drivemap.c (options): Likewise.
25319 (GRUB_MOD_INIT): Likewise.
25320 * commands/i386/pc/halt (options): Likewise.
25321 (GRUB_MOD_INIT): Likewise.
25322 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25323 * commands/i386/pc/pxecmd.c (options): Likewise.
25324 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25325 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25326 * commands/keystatus.c (options): Likewise.
25327 (GRUB_MOD_INIT): Likewise.
25328 * commands/loadenv.c (options): Likewise.
25329 * commands/ls.c (options): Likewise.
25330 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25331 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25332 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25333 * commands/parttool.c (helpmsg): Likewise.
25334 * commands/probe.c (options): Likewise.
25335 * commands/read.c (GRUB_MOD_INIT): Likewise.
25336 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25337 * commands/search.c (options): Likewise.
25338 * commands/sleep.c (options): Likewise.
25339 * commands/test.c (GRUB_MOD_INIT): Likewise.
25340 * commands/true.c (GRUB_MOD_INIT): Likewise.
25341 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25342 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25343 * lib/arg.c (help_options): Likewise.
25344 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25346 * po/POTFILES: Add `commands/loadenv.c'.
25348 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25350 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25351 instead of specifying them explicit.
25353 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25355 * NEWS: Add grub-probe support for GNU/Hurd.
25357 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25359 * NEWS: gettext was added after 1.97.
25361 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25363 * util/mkisofs/msdos_partition.h: New file (based on
25364 include/grub/msdos_partition.h).
25365 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25366 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25367 (ld_options, main): Recognize --protective-msdos-label.
25368 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25369 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25370 (padblock_write): If `use_protective_msdos_label' is set, patch a
25371 protective DOS-style label in the output image.
25373 * util/grub-mkrescue.in: Use --protective-msdos-label.
25375 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25377 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25380 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25382 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25384 (ld_options, main): Recognize `--embedded-boot'.
25385 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25387 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25388 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25389 (padblock_write): Likewise. Rewrite to support embedded boot image.
25391 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25392 for BIOS-based disk boot instead of only ElTorito.
25394 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25396 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25397 build (not needed for bootstrap).
25399 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25401 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25402 from i386-pc build (not needed for bootstrap).
25403 Rewrite a pair of strings.
25405 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25407 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25409 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25411 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25413 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25415 * kern/env.c (grub_env_context_open): Mark exported variable for
25418 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25420 * kern/env.c (grub_env_export): Create nonexistent variables before
25423 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25425 * include/grub/auth.h: Include `<grub/i18n.h>'.
25426 (GRUB_GET_PASSWORD): Gettextizze string.
25427 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25429 (grub_utf8_to_ucs4_alloc): Fix indentation.
25430 (grub_print_ucs4): Likewise.
25431 (grub_getstringwidth): Likewise.
25432 (print_message_indented): New declaration.
25433 * normal/auth.c: Include `<grub/i18n.h>'.
25434 (grub_auth_check_authentication): Gettexttize string.
25435 * normal/cmdline.c: Include `<grub/i18n.h>'.
25436 (grub_cmdline_get): Gettextizze.
25437 * normal/color.c: Include `<grub/i18n.h>'.
25438 (grub_parse_color_name_pair): Gettexttize strings.
25439 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25440 string (use `print_message_indented').
25441 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25442 `include/grub/normal.h'.
25443 (print_message_indented): Renamed to ...
25444 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25445 used in normal/main.c).
25446 (print_message): Use `grub_print_message_indented' instead of
25447 `print_message_indented'.
25448 (print_timeout): Likewise.
25449 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25450 (grub_normal_print_device_info): Gettexttize strings.
25451 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25453 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25455 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25456 of arguments. Return number of tokens and not arguments. All users
25459 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25461 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25462 non-MSDOS paritions.
25464 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25466 * include/grub/types.h (UNUSED): Removed since it conflicts with
25467 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25468 Reported by Grégoire Sutre.
25470 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25472 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25473 (grub_print_ucs4_alloc): Likewise.
25474 (grub_getstringwidth): Likewise.
25475 * normal/main.c (grub_normal_init_page): Gettextize version string.
25476 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25477 (getstringwidth): Renamed to ...
25478 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25479 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25480 (grub_print_ucs4): Remove `static' qualifer (now used in
25482 * po/POTFILES: Add normal/main.c.
25484 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25486 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25487 (print_message_indented): Add `margin_left' and `margin_right'
25489 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25491 (print_timeout): Use `print_message_indented' to print the message.
25492 Deletes `second_stage' parameter.
25493 (run_menu): Update `print_timeout' calls.
25495 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25497 Fix console palette on OpenFirmware.
25499 * term/ieee1275/ofconsole.c (MAX): Removed.
25500 (colors): Redone based on VGA palette.
25501 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25502 colors are supported.
25503 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25505 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25507 Fix potential EfiEmu double prepare.
25509 * efiemu/main.c (prepared): New variable
25510 (grub_efiemu_unload): Set prepare to '0'.
25511 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25513 set_virtual_address_map support.
25515 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25517 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25519 (grub_efiemu_crc32): Likewise.
25520 (grub_efiemu_crc64): Likewise.
25521 (grub_efiemu_set_virtual_address_map): Likewise.
25522 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25524 (grub_autoefi_set_virtual_address_map): Likewise.
25525 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25526 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25527 Restructure flow to accomodate it.
25528 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25529 (grub_efiemu_crc): Recompute CRC32.
25530 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25531 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25532 * efiemu/symbols.c (relocated_handle): New variable.
25533 (grub_efiemu_free_syms): Free relocated_handle.
25534 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25535 (grub_efiemu_write_sym_markers): New function.
25536 (grub_efiemu_set_virtual_address_map): Likewise.
25538 Newer XNU parameters.
25540 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25541 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25542 (grub_xnu_fill_devicetree): New prototype.
25543 (grub_xnu_heap_real_start): New variable.
25544 * loader/xnu.c (get_name_ptr): New function.
25545 (grub_xnu_load_driver): Fill namelen and name.
25547 64-bit xnu support.
25549 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25550 and 'loader/macho64.c'.
25551 * conf/i386-pc.rmk: Likewise.
25552 * conf/x86_64-efi.rmk: Likewise.
25553 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25554 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25555 * include/grub/macho.h (grub_macho_segment64): New structure.
25556 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25557 (grub_macho_size32): ... to this.
25558 (grub_macho32_get_entry_point): Renamed from ...
25559 (grub_macho_get_entry_point32): ... to this.
25560 (grub_macho_contains_macho64): New prototype.
25561 (grub_macho_size64): Likewise.
25562 (grub_macho_get_entry_point64): Likewise.
25563 (grub_macho32_load): Renamed from ...
25564 (grub_macho_load32): ... to this.
25565 (grub_macho32_filesize): Renamed from ...
25566 (grub_macho_filesize32): ... to this.
25567 (grub_macho32_readfile): Renamed from ...
25568 (grub_macho_readfile32): ... to this.
25569 (grub_macho_filesize64): New prototype.
25570 (grub_macho_readfile64): Likewise.
25571 (grub_macho_parse32): Likewise.
25572 (grub_macho_parse64): Likewise.
25573 * loader/macho.c: Split into ...
25574 * loader/machoXX.c: ... and this. Replace 32 with XX.
25575 * loader/macho32.c: New file.
25576 * loader/macho64.c: Likewise.
25577 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25578 (grub_cmd_xnu_kernel): Make 32-bit only.
25579 (grub_cmd_xnu_kernel64): New function.
25580 (grub_xnu_load_driver): Support Mach-O 64.
25581 (grub_cmd_xnu_mkext): Likewise.
25582 * util/grub.d/30_os-prober.in (osx_entry): New function.
25583 Generate entries for 64-bit boot too.
25585 Eliminate ad-hoc tree format in XNU and EfiEmu.
25587 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25588 * efiemu/pnvram.c: Rewritten to use environment variables.
25591 Inline utf16_to_utf8.
25593 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25594 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25596 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25598 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25599 * commands/usbtest.c (grub_usb_get_string): ... move here.
25600 (usb_print_str): Fix error handling.
25601 * include/grub/usb.h (grub_usb_get_string): Remove.
25603 UTF-8 to UTF-16 transformation.
25605 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25606 (charset_mod_SOURCES): New variable.
25607 (charset_mod_CFLAGS): Likewise.
25608 (charset_mod_LDFLAGS): Likewise.
25609 * include/grub/utf.h: New file.
25610 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25612 Support for device properties.
25614 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25615 (grub_xnu_devprop_device_header): Likewise.
25616 (grub_xnu_devprop_device_descriptor): Likewise.
25617 (grub_xnu_devprop_add_device): New prototype.
25618 (grub_xnu_devprop_remove_device): Likewise.
25619 (grub_xnu_devprop_remove_property): Likewise.
25620 (grub_xnu_devprop_add_property_utf8): Likewise.
25621 (grub_xnu_devprop_add_property_utf16): Likewise.
25622 (grub_cpu_xnu_init): Likewise.
25623 (grub_cpu_xnu_fini): Likewise.
25624 (grub_cpu_xnu_unload): Likewise.
25625 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25626 (property_descriptor): Likewise.
25627 (devices): New variable.
25628 (grub_xnu_devprop_remove_property): New function.
25629 (grub_xnu_devprop_add_device): Likewise.
25630 (grub_xnu_devprop_remove_device): Likewise.
25631 (grub_xnu_devprop_add_property): Likewise.
25632 (grub_xnu_devprop_add_property_utf8): Likewise.
25633 (grub_xnu_devprop_add_property_utf16): Likewise.
25634 (hextoval): Likewise.
25635 (grub_cpu_xnu_fill_devprop): Likewise.
25636 (grub_cmd_devprop_load): Likewise.
25637 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25638 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25639 (cmd_devprop_load): New variable.
25640 (grub_cpu_xnu_init): New function.
25641 (grub_cpu_xnu_fini): Likewise.
25642 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
25643 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
25644 (grub_cmd_xnu_devtree): Likewise.
25645 (hextoval): New function.
25646 (unescape): Likewise.
25647 (grub_xnu_fill_devicetree): Likewise.
25649 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
25650 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
25652 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25654 Workaround for broken ATI VBE.
25656 * video/i386/pc/vbe.c (last_set_mode): New variable.
25657 (grub_vbe_set_video_mode): Set 'last_set_mode'.
25658 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
25659 (grub_video_vbe_setup): Don't check for reserved flag.
25661 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
25663 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
25664 the `find' command.
25666 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
25668 UUID support for HFS.
25670 * fs/hfs.c (grub_hfs_uuid): New function.
25671 (grub_hfs_fs): New value .uuid.
25672 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
25674 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
25676 Fix a segfault with parsing unknown long options.
25678 * util/grub-mkrelpath.c (options): Zero terminate it.
25680 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25682 * include/grub/misc.h (grub_puts): New declaration.
25683 (grub_puts_): Likewise.
25684 * kern/misc.c (grub_puts): New definition.
25685 (grub_puts_): Likewise.
25687 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25689 * util/grub-probe.c (probe): Improve error message.
25691 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25693 * loader/i386/multiboot_elfxx.c
25694 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
25697 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25699 Relocator framework
25701 * loader/i386/xnu_helper.S: Removed. All users updated.
25702 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
25703 (relocator_mod_SOURCES): New variable.
25704 (relocator_mod_CFLAGS): Likewise.
25705 (relocator_mod_LDFLAGS): Likewise.
25706 (relocator_mod_ASFLAGS): Likewise.
25707 * conf/x86_64.rmk: Likewise.
25708 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
25709 (grub_multiboot_payload_entry_offset): Likewise.
25710 (grub_multiboot_forward_relocator): Likewise.
25711 (grub_multiboot_forward_relocator_end): Likewise.
25712 (grub_multiboot_backward_relocator): Likewise.
25713 (grub_multiboot_backward_relocator_end): Likewise.
25714 (grub_multiboot_payload_eip): New variable.
25715 (grub_multiboot_payload_orig): Likewise.
25716 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
25717 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
25718 * include/grub/i386/memory.h
25719 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
25720 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
25721 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
25722 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
25723 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
25724 * include/grub/i386/relocator.h: New file.
25725 * include/grub/x86_64/relocator.h: Likewise.
25726 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
25727 (XNU_RELOCATOR): New macro.
25728 (grub_xnu_launcher_start): Remove.
25729 (grub_xnu_launcher_end): Likewise.
25730 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
25731 (grub_xnu_heap_real_start): Remove.
25732 (grub_xnu_heap_start): Change to void *. All users updated.
25733 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
25734 * lib/i386/relocator.c: New file.
25735 * lib/i386/relocator_asm.S: Likewise.
25736 * lib/i386/relocator_backward.S: Likewise.
25737 * lib/mips/relocator.c: Likewise.
25738 * lib/mips/relocator_asm.S: Likewise.
25739 * lib/relocator.c: Likewise.
25740 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
25742 (playground): Likewise.
25743 (grub_multiboot_payload_orig): New variable.
25744 (grub_multiboot_payload_dest): Likewise.
25745 (grub_multiboot_payload_size): Likewise.
25746 (grub_multiboot_payload_eip): Likewise.
25747 (grub_multiboot_payload_esp): Likewise.
25748 (grub_multiboot_boot): Use grub_relocator32_boot.
25749 (grub_multiboot_unload): Free relocators.
25750 (grub_multiboot): Setup stack. Use relocators.
25751 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
25752 (grub_multiboot_load_elfXX): Use relocators.
25753 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
25754 (grub_multiboot_payload_size): Likewise.
25755 (grub_multiboot_payload_dest): Likewise.
25756 (grub_multiboot_payload_entry_offset): Likewise.
25757 (grub_multiboot_forward_relocator): Likewise.
25758 (grub_multiboot_backward_relocator): Likewise.
25759 (grub_multiboot_real_boot): Likewise.
25760 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
25761 (grub_xnu_entry_point): Likewise.
25762 (grub_xnu_arg1): Likewise.
25763 (grub_xnu_stack): Likewise.
25764 (grub_xnu_launch): Removed.
25765 (grub_xnu_boot_resume): New function.
25766 (grub_xnu_boot): Use relocators.
25767 * loader/i386/xnu_helper.S: Removed.
25768 * loader/xnu.c (grub_xnu_heap_start): New variable.
25769 (grub_xnu_heap_size): Likewise.
25770 (grub_xnu_heap_malloc): Use relocators.
25771 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
25773 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25775 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
25778 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25780 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
25781 GRUB_ERR_NONE before calling grub_env_set.
25783 2009-12-12 Robert Millan <rmh@aybabtu.com>
25785 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
25786 * genmk.rb (video): New variable.
25787 (CLEANFILES, VIDEOFILES): Add #{video}.
25788 (#{video}): New target rule.
25789 * genvideolist.sh: New file.
25790 * Makefile.in (pkglib_DATA): Add video.lst.
25791 (video.lst): New target rule.
25792 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
25794 * util/grub.d/30_os-prober.in: Replace `vbe' with
25795 ${GRUB_VIDEO_BACKEND}.
25797 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
25799 * THANKS: Add David Miller.
25801 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
25803 libpciaccess support.
25805 * Makefile.in (LIBPCIACCESS): New variable.
25806 (enable_grub_emu_pci): Likewise.
25807 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
25808 util/pci.c and commands/lspci.c.
25809 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
25810 * configure.ac (grub-emu-pci): New option.
25811 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
25812 (grub_pci_device_unmap_range): Likewise.
25813 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
25814 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
25815 (grub_pci_address_t) [!GRUB_UTIL]: New type.
25816 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
25817 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
25818 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
25819 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
25820 * include/grub/pciutils.h: New file.
25821 * util/pci.c: Likewise.
25823 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
25825 * util/misc.c: Don't include <errno.h> twice.
25827 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
25829 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
25830 name in an error message.
25831 (grub_biosdisk_rw): Likewise.
25833 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25835 Eliminate NTFS 4Gib barrier.
25837 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
25838 (read_run_data): Likewise.
25839 (grub_ntfs_read_run_list): Likewise.
25840 (grub_ntfs_read_block): Likewise.
25841 (grub_ntfs_iterate_dir): Likewise.
25842 (read_mft): Likewise.
25843 (read_data): Likewise.
25845 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
25846 to avoid 64-bit division
25847 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
25848 (grub_ntfs_rlst): Use grub_disk_addr_t.
25850 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25852 Eliminate grub-fstest 4Gib barrier.
25854 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
25855 (read_file): Fix error reporting.
25857 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25859 Eliminate hexdump 4Gib barrier.
25861 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
25862 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
25864 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25866 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
25869 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
25871 Remove miscellaneous files in distclean target.
25873 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
25875 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
25877 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
25878 if they're already set. This resolves the conflict between my
25879 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
25880 fixing the --grub-probe option again.
25881 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
25882 change on 2009-10-06, so that we now once again source
25883 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
25885 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
25887 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
25888 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
25889 `util/devicemap.c'.
25891 2009-12-08 Carles Pina i Estany <carles@pina.cat>
25893 * include/grub/misc.h (grub_printf_): New declaration.
25894 * kern/misc.c (grub_printf_): New definition.
25895 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
25896 instead of `grub_printf' and `_'.
25897 * normal/menu_entry.c (store_completion): Likewise.
25899 (grub_menu_entry_run): Likewise.
25900 * normal/menu_text.c (grub_wait_after_message): Likewise.
25901 (notify_booting): Likewise.
25902 (notify_fallback): Likewise.
25903 (notify_execution_failure): Likewise.
25905 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
25907 * configure.ac: Check for vasprintf.
25908 * util/misc.c (asprintf): Move allocation from here ...
25909 (vasprintf): ... to here. New function.
25910 (xasprintf): New function.
25911 * include/grub/util/misc.h (vasprintf, xasprintf): Add
25913 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25914 * util/grub-mkfont.c (write_font): Likewise.
25915 * util/grub-probe.c (probe): Likewise.
25916 * util/hostdisk.c (make_device_name): Likewise.
25918 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
25920 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
25921 anything even prefixed with 'cdrom' as a cdrom.
25923 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
25925 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
25928 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25930 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
25931 grub_gettext_msg_list.
25932 (grub_gettext_gettranslation_from_position): Return const char *
25934 (grub_gettext_translate): Add the translated strings into a list,
25935 returns from the list if existing there.
25936 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
25937 (grub_gettext_delete_list): Delete the list.
25938 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
25939 lang environment variable is changed.
25940 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
25942 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25944 Rename kernel.mod to kernel.img.
25946 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
25947 (kernel_mod_EXPORTS): Rename to ...
25948 (kernel_img_EXPORTS): ... this.
25949 (kernel_mod_SOURCES): Rename to ...
25950 (kernel_img_SOURCES): ... this.
25951 (kernel_mod_HEADERS): Rename to ...
25952 (kernel_img_HEADERS): ... this. All users updated.
25953 (kernel_mod_CFLAGS): Rename to ...
25954 (kernel_img_CFLAGS): ... this.
25955 (kernel_mod_ASFLAGS): Rename to ...
25956 (kernel_img_ASFLAGS): ... this.
25957 (kernel_mod_LDFLAGS): Rename to ...
25958 (kernel_img_LDFLAGS): ... this.
25959 * conf/x86_64-efi.rmk: Likewise.
25960 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
25961 (read_kernel_image): ... this. All users updated.
25962 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
25964 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25966 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
25967 (print_spaces): New function.
25968 (grub_print_ucs4): New function.
25969 (getstringwidth): New function.
25970 (print_message_indented): New function.
25971 (print_message): Gettexttize strings using print_message_indented.
25972 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
25974 (get_entry_number): Gettextize and uses dynamic terminal width.
25975 (notify_booting, notify_fallback, notify_execution_failure):
25977 * normal/menu_entry.c (store_completion): Cleanup the gettextized
25980 (grub_menu_entry_run): Likewise.
25981 * PO/POTFILES: Add normal/menu_entry.c.
25983 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25985 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
25987 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25989 * util/grub-install.in: Install gettext .mo files.
25990 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
25992 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25994 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
25997 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
25999 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26000 non-firmware-dependant one in realmode.S takes precedence.
26002 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26004 * commands/halt.c: Replace misc arch-specific headers with
26006 * commands/reboot.c: Likewise.
26007 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26009 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26010 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26011 (kernel_img_SOURCES): ... to here.
26013 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26014 * include/grub/i386/pc/init.h: Likewise.
26015 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26016 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26018 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26020 * include/grub/i386/halt.h: Remove.
26021 * include/grub/i386/reboot.h: Likewise.
26023 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26025 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26027 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26028 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26029 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26031 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26032 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26033 (usage): Add missing comma in printf.
26035 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26037 Use the same reboot approach on i386 coreboot and qemu as we do on
26040 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26041 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26042 * kern/i386/reboot.c: Remove.
26043 * include/grub/i386/reboot.h (grub_reboot): Export function.
26044 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26045 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26046 0xf000:0xfff0 instead of 0xffff:0x0000.
26047 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26048 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26050 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26052 Fix $srcdir != $objdir build.
26054 * Makefile.in (po/%.po): Rewrite as ...
26055 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26057 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26059 Fix GNU/Hurd grub-install crash.
26060 * util/grub-probe.c (probe): Try to access `path' only when it is not
26063 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26065 Correct module naming.
26067 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26068 (GRUB_MOD_INIT(efi_uga)): ... to this
26069 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26070 (GRUB_MOD_FINI(efi_uga)): ... to this
26071 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26072 (GRUB_MOD_INIT(efi_gop)): ... to this
26073 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26074 (GRUB_MOD_FINI(efi_gop)): ... to this
26076 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26078 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26080 (usage): Translate `arg' strings using gettext().
26081 Thanks to Jordi Mallach for the suggestion.
26083 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26085 GOP support. Based on patch from Bean
26086 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26088 * video/efi_gop.c: New file.
26089 * include/grub/efi/graphics_output.h: Likewise.
26090 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26091 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26093 * conf/x86_64-efi.rmk: Likewise.
26095 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26097 Rename efi_fb to efi_uga.
26099 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26101 (efi_fb_mod_SOURCES): Rename this ...
26102 (efi_uga_mod_SOURCES): ... to this.
26103 (efi_fb_mod_CFLAGS): Rename this ...
26104 (efi_uga_mod_CFLAGS): ... to this.
26105 (efi_fb_mod_LDFLAGS): Rename this ...
26106 (efi_uga_mod_LDFLAGS): ... to this.
26107 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26109 (efi_fb_mod_SOURCES): Rename this ...
26110 (efi_uga_mod_SOURCES): ... to this.
26111 (efi_fb_mod_CFLAGS): Rename this ...
26112 (efi_uga_mod_CFLAGS): ... to this.
26113 (efi_fb_mod_LDFLAGS): Rename this ...
26114 (efi_uga_mod_LDFLAGS): ... to this.
26115 * video/efi_fb.c: Move this ...
26116 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26118 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26120 * po/README: New file. Explain our PO file workflow.
26122 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26124 * po/ChangeLog: Remove. Move relevant entries back to ...
26125 * ChangeLog: ... here.
26126 * po/ca.po: Remove (now handled by TLP).
26127 * po/id.po: Likewise.
26128 * po/zh_CN.po: Likewise.
26129 * Makefile.in (LINGUAS): Initialize in a way that supports
26132 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26134 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26135 reliing on po/LINGUAS.
26136 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26137 (po/%.po): ... this.
26139 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26141 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26142 (main): Use `program_name' instead of nonexistent `progname'.
26144 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26146 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26147 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26149 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26151 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26153 * conf/i386-efi.rmk: Likewise.
26154 * conf/i386-ieee1275.rmk: Likewise.
26155 * conf/powerpc-ieee1275.rmk: Likewise.
26156 * conf/sparc64-ieee1275.rmk: Likewise.
26157 * conf/x86_64-efi.rmk: Likewise.
26159 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26161 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26163 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26165 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26167 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26169 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26170 (grub_mkdevicemap_SOURCES): New variable.
26171 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26172 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26173 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26174 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26175 (grub_mkdevicemap_SOURCES): Remove.
26176 * conf/i386-efi.rmk: Likewise.
26177 * conf/i386-ieee1275.rmk: Likewise.
26178 * conf/i386-pc.rmk: Likewise.
26179 * conf/powerpc-ieee1275.rmk: Likewise.
26180 * conf/sparc64-ieee1275.rmk: Likewise.
26181 * conf/x86_64-efi.rmk: Likewise.
26182 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26183 (usage): Fix strings to use `program_name'.
26184 (main): Initialize gettext.
26185 * util/grub-editenv.c: Likewise.
26186 * util/grub-emu.c: Likewise.
26187 * util/grub-fstest.c: Likewise.
26188 * util/grub-mkdevicemap.c: Likewise.
26189 * util/grub-mkfont.c: Likewise.
26190 * util/grub-mkrelpath.c: Likewise.
26191 * util/grub-pe2elf.c: Likewise.
26192 * util/grub-probe.c: Likewise.
26193 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26194 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26195 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26197 * util/misc.c: Include `"progname.h"'.
26198 (progname): Remove variable.
26199 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26201 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26203 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26204 printf and print a newline after the menuentry header line.
26205 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26207 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26209 autoconf >= 2.60 support $(localedir).
26211 * INSTALL: Note that autoconf 2.60 is required.
26212 * configure.ac (AC_PREREQ): Bump to 2.60.
26213 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26214 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26216 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26218 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26221 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26223 * normal/main.c (grub_normal_read_line): Fix off-by-one
26226 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26228 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26229 "parser.grub" in grub_command_execute() call.
26231 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26233 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26234 * conf/i386-efi.rmk: Likewise.
26235 * conf/i386-ieee1275.rmk: Likewise.
26236 * conf/i386-pc.rmk: Likewise.
26237 * conf/powerpc-ieee1275.rmk: Likewise.
26238 * conf/sparc64-ieee1275.rmk: Likewise.
26239 * conf/x86_64-efi.rmk: Likewise.
26240 * gettext/gettex.c: Include <grub/i18n.h>.
26241 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26243 * include/grub/i18n.h: ... to here
26244 * include/grub/i18n.h: ... to here.
26245 * kern/misc.c: Include <grub/i18n.h>
26246 (grub_gettext_dummy): Move above user.
26248 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26250 * util/Makefile.in (install-local): Convert a `for' into a normal
26253 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26255 * autogen.sh: Add automake call.
26256 * config.guess: Remove.
26257 * config.sub: Likewise.
26258 * install-sh: Likewise.
26260 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26262 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26264 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26266 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26267 function to a normal shell `for'.
26269 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26271 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26273 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26275 * util/grub-mkrelpath.c: New file.
26276 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26277 (grub_mkrelpath_SOURCES): New variable.
26278 * include/grub/util/misc.h: New function prototype.
26279 * util/misc.c (make_system_path_relative_to_its_root): New function.
26281 * util/grub-mkconfig_lib.in (bindir): New variable.
26282 (grub_mkrelpath): Likewise.
26283 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26285 * util/probe.c (probe): Make the file path relative to its root.
26286 Change a info message to use the GRUB path. Enable again the
26287 check if we can read the file with GRUB facilities.
26289 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26292 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26294 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26297 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26299 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26302 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26304 * util/getroot.c (grub_util_is_dmraid): New function.
26305 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26306 devices as normal ones, not as LVM.
26308 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26310 * conf/common.rmk: Add grub-gettext_lib target and updates
26311 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26313 * gettext/gettext.c: New file. (Reads mo files).
26314 * include/grub/file.h (grub_file_pread): New prototype.
26315 * include/grub/i18n.h (_): New prototype.
26316 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26318 * kern/misc.c (grub_gettext_dummy): New function.
26319 * normal/menu_text.c: Include <grub/i18n.h>.
26320 * normal/menu_text.c (print_timeout): Gettexttize string.
26321 * normal/menu_text.c (print_message): Gettexttize string.
26322 * po/POTFILES: Add `normal/menu_text.c'.
26323 * po/ca.po: Add new translations.
26324 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26325 gettext module and defines locale_dir and lang in grub.cfg.
26326 * NEWS: Add gettext support.
26328 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26330 * util/hostdisk.c: Include `<grub/i18n.h>'.
26331 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26332 (make_device_name): Rewrite using asprintf.
26333 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26334 (find_system_device): If a device is not found, generate one just
26335 by reusing the OS path name.
26336 (read_device_map): Make it permissible for device.map not to exist.
26338 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26340 * script/sh/execute.c: Move from here ...
26341 * script/execute.c: ... to here. Update all users.
26342 * script/sh/function.c: Move from here ...
26343 * script/function.c: ... to here. Update all users.
26344 * script/sh/lexer.c: Move from here ...
26345 * script/lexer.c: ... to here. Update all users.
26346 * script/sh/main.c: Move from here ...
26347 * script/main.c: ... to here. Update all users.
26348 * script/sh/parser.y: Move from here ...
26349 * script/parser.y: ... to here. Update all users.
26350 * script/sh/script.c: Move from here ...
26351 * script/script.c: ... to here. Update all users.
26353 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26355 * configure.ac: Detect all `emu' platforms. Define
26356 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26357 --enable-grub-emu logic. Disable include/grub/machine
26358 symlink on `emu' platforms.
26360 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26361 * gensymlist.sh.in: Likewise.
26363 * include/grub/i386/coreboot/machine.h: Remove file.
26364 * include/grub/i386/efi/machine.h: Likewise.
26365 * include/grub/i386/ieee1275/machine.h: Likewise.
26366 * include/grub/i386/pc/machine.h: Likewise.
26367 * include/grub/i386/qemu/machine.h: Likewise.
26368 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26369 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26370 * include/grub/x86_64/efi/machine.h: Likewise.
26372 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26373 * commands/halt.c: Likewise.
26374 * commands/reboot.c: Likewise.
26375 * include/grub/autoefi.h: Likewise.
26376 * include/grub/i386/at_keyboard.h: Likewise.
26377 * include/grub/i386/kernel.h: Likewise.
26378 * include/grub/i386/loader.h: Likewise.
26379 * include/grub/i386/pc/memory.h: Likewise.
26380 * kern/dl.c: Likewise.
26381 * kern/i386/coreboot/init.c: Likewise.
26382 * loader/i386/bsd.c: Likewise.
26383 * loader/i386/linux.c: Likewise.
26384 * loader/multiboot_loader.c: Likewise.
26385 * term/i386/pc/serial.c: Likewise.
26386 * term/usb_keyboard.c: Likewise.
26388 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26389 `<grub/machine/machine.h>'
26390 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26391 * util/misc.c: Remove `<grub/machine/machine.h>' and
26392 `<grub/machine/time.h>'.
26394 * Makefile.in (enable_grub_emu): Remove variable.
26395 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26397 * conf/any-emu.rmk: New file.
26398 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26399 (grub_emu_init.c): Move from here ...
26400 * conf/any-emu.rmk: ... to here.
26402 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26403 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26404 * conf/any-emu.rmk: ... to here.
26406 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26408 * include/grub/parser.h (grub_parser_register): Document need
26409 of `name' parameter.
26410 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26411 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26414 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26416 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26418 * include/grub/i18n.h (N_): New macro.
26419 * util/mkisofs/mkisofs.h: Likewise.
26420 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26422 (usage): Use gettext() to translate help strings when printing them.
26424 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26426 Based on patch from Bean
26427 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26429 * video/efi_fb.c: New file.
26430 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26431 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26433 * conf/x86_64-efi.rmk: Likewise.
26435 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26437 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26438 * util/i386/pc/grub-setup.c: Likewise.
26440 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26442 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26444 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26445 file_get_storage_info to implement grub_guess_root_device.
26447 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26449 * Makefile.in (target): Use make's builtin $(shell) function
26450 instead of calling directly $(SHELL) to create the locale directories,
26451 inside the $(foreach) function.
26453 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26455 * util/grub-mkrescue.in: Print an error and usage if output option
26456 has not been given.
26458 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26460 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26461 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26462 root and /boot are on different devices.
26464 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26466 Fix build for srcdir != objdir.
26468 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26469 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26471 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26472 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26473 reference for input.
26475 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26477 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26478 or hardlinking it). Remove -J option, Joliet is not compatible with
26479 multiple source directories.
26481 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26482 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26484 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26485 (process_input_dir): New function. Process an arbitrary input
26487 Misc adjustments to support both "override mode" and system-wide mode.
26489 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26491 * configure.ac (UNIFONT_BDF): Rename to ...
26492 (FONT_SOURCE): ... this. Update all users.
26494 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26496 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26497 to the list of unifont files to look for.
26499 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26501 Patch from Joe Auricchio <jauricchio@gmail.com>
26502 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26503 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26504 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26506 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26508 * Makefile.in (install-local): Add a missing backslash.
26510 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26512 * include/grub/x86_64/io.h: New file.
26514 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26516 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26517 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26518 Include `"progname.h"'.
26519 (main): Initialize gettext.
26520 * util/i386/pc/grub-setup.c: Gettexttize.
26521 * util/i386/pc/grub-mkimage.c: Likewise.
26523 * Makefile.in (po/*.po): Redefine as ...
26524 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26526 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26528 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26530 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26531 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26532 (program_name): Remove.
26533 (main): Initialize gettext support.
26534 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26535 Include `<libintl.h>'.
26538 * util/mkisofs/eltorito.c: Gettexttize.
26539 * util/mkisofs/joliet.c: Likewise.
26540 * util/mkisofs/mkisofs.c: Likewise.
26541 * util/mkisofs/multi.c: Likewise.
26542 * util/mkisofs/rock.c: Likewise.
26543 * util/mkisofs/tree.c: Likewise.
26544 * util/mkisofs/write.c: Likewise.
26546 * po/POTFILES: Update with new files.
26548 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26550 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26551 * util/mkisofs/iso9660.h: Likewise.
26552 * util/mkisofs/joliet.c: Likewise.
26553 * util/mkisofs/mkisofs.c: Likewise.
26554 * util/mkisofs/mkisofs.h: Likewise.
26555 * util/mkisofs/rock.c: Likewise.
26556 * util/mkisofs/tree.c: Likewise.
26557 * util/mkisofs/write.c: Likewise.
26559 * util/mkisofs/eltorito.c (rcsid): Remove.
26560 * util/mkisofs/hash.c: Likewise.
26561 * util/mkisofs/joliet.c: Likewise.
26562 * util/mkisofs/name.c: Likewise.
26563 * util/mkisofs/rock.c: Likewise.
26564 * util/mkisofs/tree.c: Likewise.
26565 * util/mkisofs/write.c: Likewise.
26567 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26569 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26570 instead of static allocation.
26571 * util/mkisofs/match.h: Likewise.
26573 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26575 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26576 and `util/grub.d/10_linux.in'.
26577 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26578 translatable Shell files.
26580 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26582 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26584 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26586 * INSTALL: Document Automake is needed for bootstrap.
26587 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26588 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26589 Add gettext initialization.
26590 (kfreebsd_entry): Make menuentry output translatable.
26592 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26594 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26595 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26596 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26597 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26598 (LINGUAS): Auto-generate using `po/LINGUAS'.
26599 * po/LINGUAS: New file.
26601 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26603 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26605 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26606 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26607 bindtextdomain() calls for gettext initialization.
26609 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26611 * gnulib/progname.c: New file (imported from Gnulib).
26612 * gnulib/progname.h: Likewise.
26613 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26614 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26615 (usage): Replace `progname' with `program_name'.
26616 (main): Use set_program_name() for program name initialization.
26618 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26620 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26622 * Makefile.in (CPPFLAGS): ... to here.
26624 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26626 * aclocal.m4: Move from here ...
26627 * acinclude.m4: ... to here.
26628 * autogen.sh: Add call to `aclocal'.
26629 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26631 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26633 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26634 (LINGUAS): New variable.
26635 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26636 (install-local): Install MO files.
26637 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26638 * include/grub/i18n.h: New file.
26639 * po/POTFILES: New file.
26640 * po/ca.po: New file.
26641 * util/grub.d/10_linux.in (bindir): New variable.
26642 Add gettext initialization.
26643 (linux_entry): Make menuentry output translatable.
26644 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
26645 (usage): Make --help output translatable.
26646 (main): Initialize gettext.
26648 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26650 * import_gcry.py: New file (written by Vladimir with minor
26652 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
26654 * INSTALL: Document that Python is required for bootstrap.
26656 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26658 Import ciphers from libgcrypt 1.4.4.
26660 * lib/libgcrypt/cipher/ChangeLog
26661 * lib/libgcrypt/cipher/ac.c
26662 * lib/libgcrypt/cipher/arcfour.c
26663 * lib/libgcrypt/cipher/bithelp.h
26664 * lib/libgcrypt/cipher/blowfish.c
26665 * lib/libgcrypt/cipher/camellia-glue.c
26666 * lib/libgcrypt/cipher/camellia.c
26667 * lib/libgcrypt/cipher/camellia.h
26668 * lib/libgcrypt/cipher/cast5.c
26669 * lib/libgcrypt/cipher/cipher.c
26670 * lib/libgcrypt/cipher/crc.c
26671 * lib/libgcrypt/cipher/des.c
26672 * lib/libgcrypt/cipher/dsa.c
26673 * lib/libgcrypt/cipher/ecc.c
26674 * lib/libgcrypt/cipher/elgamal.c
26675 * lib/libgcrypt/cipher/hash-common.c
26676 * lib/libgcrypt/cipher/hash-common.h
26677 * lib/libgcrypt/cipher/hmac-tests.c
26678 * lib/libgcrypt/cipher/md.c
26679 * lib/libgcrypt/cipher/md4.c
26680 * lib/libgcrypt/cipher/md5.c
26681 * lib/libgcrypt/cipher/primegen.c
26682 * lib/libgcrypt/cipher/pubkey.c
26683 * lib/libgcrypt/cipher/rfc2268.c
26684 * lib/libgcrypt/cipher/rijndael-tables.h
26685 * lib/libgcrypt/cipher/rijndael.c
26686 * lib/libgcrypt/cipher/rmd.h
26687 * lib/libgcrypt/cipher/rmd160.c
26688 * lib/libgcrypt/cipher/rsa.c
26689 * lib/libgcrypt/cipher/seed.c
26690 * lib/libgcrypt/cipher/serpent.c
26691 * lib/libgcrypt/cipher/sha1.c
26692 * lib/libgcrypt/cipher/sha256.c
26693 * lib/libgcrypt/cipher/sha512.c
26694 * lib/libgcrypt/cipher/tiger.c
26695 * lib/libgcrypt/cipher/twofish.c
26696 * lib/libgcrypt/cipher/whirlpool.c
26698 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26700 Fix build for systems without error().
26702 * gnulib/error.c: New file (imported from Gnulib).
26703 * gnulib/error.h: Likewise.
26704 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
26705 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
26706 (this variable is now used by error()).
26708 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26710 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
26711 instead of relying that char is signed.
26713 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
26715 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
26716 blocksize different from specified.
26717 (grub_pxefs_read): Likewise.
26719 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26721 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
26723 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
26724 (grub_ata_readwrite): Likewise. Update 2 format strings.
26725 (grub_atapi_read): Likewise.
26727 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
26728 * conf/i386.rmk (pkglib_MODULES): ... to here ...
26729 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
26730 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
26731 (ata_mod_LDFLAGS): Move from here ...
26732 * conf/i386.rmk: ... to here ...
26733 * conf/x86_64-efi.rmk: ... and here.
26734 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
26735 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
26737 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26739 Relicense multiboot.h, with RMS' blessing.
26741 * include/multiboot.h: Change to X11 license.
26743 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
26745 Support --version in grub-mkisofs.
26747 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
26748 (OPTION_VERSION): New macro.
26749 (ld_options): Recognize --version.
26750 (usage): Move `program_name' from here ...
26751 (program_name): ... to here. Add `static' qualifier.
26752 (main): Recognize `OPTION_VERSION'.
26754 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
26756 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
26757 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
26759 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26761 Fix help2man generation for mkisofs.
26763 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
26764 (usage): Send output to stdout (rather than stderr).
26766 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26768 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
26769 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26770 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
26771 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26772 (bin_SCRIPTS): Add `grub-mkfloppy'.
26773 (grub_mkfloppy_SOURCES): New variable.
26775 * util/grub-mkrescue.in: New file.
26776 * util/i386/pc/grub-mkfloppy.in: New file.
26778 * util/i386/coreboot/grub-mkrescue.in: Remove.
26779 * util/i386/pc/grub-mkrescue.in: Remove.
26781 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26783 * include/grub/multiboot.h (struct grub_multiboot_header): Move
26785 * include/multiboot.h (struct multiboot_header): ... to here. Update
26787 * include/grub/multiboot.h (struct grub_multiboot_info): Move
26789 * include/multiboot.h (struct multiboot_info): ... to here. Update
26791 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
26793 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
26795 * include/grub/multiboot.h (struct grub_mod_list): Move
26797 * include/multiboot.h (struct multiboot_mod_list): ... to here.
26800 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26802 * include/multiboot2.h (multiboot_word): Rename from this ...
26803 (multiboot2_word): ... to this. Update all users.
26804 (multiboot_header): Rename from this ...
26805 (multiboot2_header): ... to this. Update all users.
26806 (multiboot_tag_header): Rename from this ...
26807 (multiboot2_tag_header): ... to this. Update all users.
26808 (multiboot_tag_start): Rename from this ...
26809 (multiboot2_tag_start): ... to this. Update all users.
26810 (multiboot_tag_name): Rename from this ...
26811 (multiboot2_tag_name): ... to this. Update all users.
26812 (multiboot_tag_module): Rename from this ...
26813 (multiboot2_tag_module): ... to this. Update all users.
26814 (multiboot_tag_memory): Rename from this ...
26815 (multiboot2_tag_memory): ... to this. Update all users.
26816 (multiboot_tag_unused): Rename from this ...
26817 (multiboot2_tag_unused): ... to this. Update all users.
26818 (multiboot_tag_end): Rename from this ...
26819 (multiboot2_tag_end): ... to this. Update all users.
26821 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26823 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
26824 this platform we should support Multiboot1 first.
26826 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26827 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
26828 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
26830 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26832 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
26833 of write calls (converting them to fwrite() if they aren't already).
26834 (get_torito_desc): Likewise.
26835 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
26837 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26839 * util/i386/pc/grub-install.in: Move from here ...
26840 * util/grub-install.in: ... to here. Update all users.
26842 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
26844 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
26846 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26848 Support for El Torito without floppy emulation.
26850 * util/mkisofs/eltorito.c: Include `<errno.h>'.
26851 (init_boot_catalog): Improve error handling.
26852 (get_torito_desc): Don't use floppy emulation unless requested by
26853 user. Patch boot information table when requested via
26854 `-boot-info-table'.
26855 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
26856 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
26857 (use_boot_info_table): New variables.
26858 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
26859 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
26860 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
26861 `--eltorito-emul-floppy'.
26862 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
26863 and `OPTION_ELTORITO_EMUL_FLOPPY'.
26864 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
26865 (use_boot_info_table, get_731): New prototypes.
26866 * util/mkisofs/write.c (get_731): New function.
26868 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
26870 Fix the generation of the man page.
26872 * util/pc/i386/grub-install.in: Source
26873 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26875 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26877 Large file support for grub-mkisofs.
26879 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
26880 * util/mkisofs/mkisofs.c (next_extent, last_extent)
26881 (session_start): Upgrade type to `uint64_t'. Update all users.
26882 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
26883 (struct directory_entry): Upgrade type of `starting_block' and
26884 `size' to `uint64_t'. Update all users.
26885 (struct deferred): Remove unused structure.
26886 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
26888 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
26889 file is larger than `UINT32_MAX'.
26890 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
26891 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
26893 (struct deferred_write): Upgrade type of `extent' and `size' to
26894 `uint64_t'. Update all users.
26895 (last_extent_written): Upgrade type to `uint64_t'. Update all
26897 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
26898 Update all users. Upgrade type of `remain' to `int64_t' and
26899 `use' to `size_t'. Use error() to handle fread() errors.
26900 (write_files): Rely on write_one_file() rather than calling
26901 xfwrite() directly.
26903 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
26905 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
26907 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26909 * util/mkisofs/fnmatch.c: Remove.
26910 * util/mkisofs/getopt1.c: Likewise.
26911 * util/mkisofs/getopt.c: Likewise.
26912 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
26913 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
26914 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
26915 `gnulib/getopt1.c' and `gnulib/getopt.c'.
26916 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
26918 * configure.ac: Detect `mingw32msvc' host_os.
26919 Check for lstat(), getuid() and getgid().
26921 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
26922 instances of `u_char' with `uint8_t'.
26924 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
26925 [!HAVE_GETUID] (getuid): New function (stub).
26926 [!HAVE_GETGID] (getgid): Likewise.
26927 [!HAVE_LSTAT] (lstat): Likewise.
26928 [!S_IROTH] (S_IROTH): New macro (dummy).
26929 [!S_IRGRP] (S_IRGRP): Likewise.
26931 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26933 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
26934 conditional expression).
26936 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26938 Import from Gnulib.
26940 * gnulib/fnmatch.c: New file.
26941 * gnulib/fnmatch.h: Likewise.
26942 * gnulib/fnmatch_loop.c: Likewise.
26943 * gnulib/getopt.c: Likewise.
26944 * gnulib/getopt.h: Likewise.
26945 * gnulib/getopt1.c: Likewise.
26946 * gnulib/getopt_int.h: Likewise.
26947 * gnulib/gettext.h: Likewise.
26949 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26951 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
26952 * normal/handler.c (read_handler_list): Likewise.
26954 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26958 * kern/command.c (grub_register_command_prio): Use
26959 grub_zalloc() instead of explicitly zeroing data.
26960 * kern/list.c: Include `<grub/mm.h>'.
26961 (grub_named_list_find): Replace `0' with `NULL'.
26962 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
26963 (fs_module_list): Change type to `grub_named_list_t'. Update all
26965 * normal/dyncmd.c (read_command_list): Add space between function
26966 call and parenthesis.
26967 * normal/handler.c (read_handler_list): Likewise.
26969 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26971 * normal/auth.c (punishment_delay): Moved from here ...
26972 (grub_auth_strcmp): ... to here (inside function).
26974 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26976 * include/grub/list.h (struct grub_named_list): Remove `const'
26977 qualifier from `name'.
26978 (struct grub_prio_list): Likewise.
26980 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26982 * normal/auth.c: Include `<grub/time.h>'.
26983 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
26985 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26987 * normal/auth.c (punishment_delay): New variable.
26988 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
26989 (grub_auth_check_authentication): Punish failed login attempts with
26990 an incremental (2^N) delay.
26992 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26994 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
26995 path with $(srcdir).
26997 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26999 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27001 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27003 * util/i386/coreboot/grub-mkrescue.in: New file.
27004 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27007 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27008 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27009 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27011 * util/mkisofs/defaults.h: New file.
27012 * util/mkisofs/eltorito.c: Likewise.
27013 * util/mkisofs/exclude.h: Likewise.
27014 * util/mkisofs/fnmatch.c: Likewise.
27015 * util/mkisofs/getopt.c: Likewise.
27016 * util/mkisofs/getopt1.c: Likewise.
27017 * util/mkisofs/hash.c: Likewise.
27018 * util/mkisofs/include/fctldefs.h: Likewise.
27019 * util/mkisofs/include/mconfig.h: Likewise.
27020 * util/mkisofs/include/prototyp.h: Likewise.
27021 * util/mkisofs/include/statdefs.h: Likewise.
27022 * util/mkisofs/iso9660.h: Likewise.
27023 * util/mkisofs/joliet.c: Likewise.
27024 * util/mkisofs/match.c: Likewise.
27025 * util/mkisofs/match.h: Likewise.
27026 * util/mkisofs/mkisofs.c: Likewise.
27027 * util/mkisofs/mkisofs.h: Likewise.
27028 * util/mkisofs/multi.c: Likewise.
27029 * util/mkisofs/name.c: Likewise.
27030 * util/mkisofs/rock.c: Likewise.
27031 * util/mkisofs/tree.c: Likewise.
27032 * util/mkisofs/write.c: Likewise.
27034 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27036 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27039 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27041 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27042 `grub-mkimage' (and use $0 when possible).
27044 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27046 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27047 error message for excessively large memory map.
27049 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27051 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27054 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27056 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27057 message for coreboot users.
27059 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27061 Fix build with GNU gold.
27063 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27064 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27065 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27067 * aclocal.m4: Likewise.
27069 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27071 * configure.ac (AC_PREREQ): Bump to 2.59d.
27072 * INSTALL: Make it more clear when Autoconf and Ruby are
27073 needed and when to run `./autogen.sh'.
27075 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27077 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27080 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27082 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27084 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27086 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27087 giving it to GNU Mach.
27089 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27091 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27092 GNU partition number to get internal GRUB partition number.
27094 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27096 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27097 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27099 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27101 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27102 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27105 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27107 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27109 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27113 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27114 `-isystem=$(srcdir)/include'.
27116 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27118 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27119 checked (grub-install doesn't currently rely on it).
27121 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27125 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27126 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27127 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27128 * conf/i386-ieee1275.rmk: Likewise.
27129 * conf/i386-pc.rmk: Likewise.
27130 * conf/powerpc-ieee1275.rmk: Likewise.
27131 * conf/sparc64-ieee1275.rmk: Likewise.
27132 * conf/x86_64-efi.rmk: Likewise.
27134 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27136 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27138 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27140 * include/grub/misc.h: Stop checking for APPLE_CC.
27142 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27144 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27145 doesn't cause an infinite call loop.
27147 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27149 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27152 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27154 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27156 * Makefile.in: Likewise.
27158 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27160 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27162 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27164 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27166 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27168 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27170 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27172 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27174 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27176 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27178 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27179 in $(MAKEINFO) invocation. This makes it clear in output that
27180 errors are being ignored.
27182 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27184 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27186 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27187 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27188 * conf/i386-ieee1275.rmk: Likewise.
27189 * conf/i386-pc.rmk: Likewise.
27190 * conf/powerpc-ieee1275.rmk: Likewise.
27191 * conf/sparc64-ieee1275.rmk: Likewise.
27192 * conf/x86_64-efi.rmk: Likewise.
27194 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27196 * util/grub-editenv.c (main): If only a command is given, use
27197 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27198 (usage): FILENAME is now optional and has a default.
27200 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27202 Improve grub-mkconfig performance when there are several menu
27203 entries on a single filesystem.
27205 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27206 prepare_grub_to_access_device.
27207 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27208 * util/grub.d/30_os-prober.in: Likewise.
27210 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27212 * util/grub.d/10_freebsd.in: Remove.
27213 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27214 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27216 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27218 * docs/grub.cfg: Fix example usage of *BSD loaders.
27220 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27222 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27223 grub_util_error() call.
27225 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27227 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27228 `reserved_first_sector' member.
27229 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27230 `reserved_first_sector' to 1.
27231 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27232 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27233 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27234 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27235 filesystems which begin at first sector.
27236 (options): New option --skip-fs-probe.
27237 (main): Handle --skip-fs-probe and pass it to setup().
27239 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27241 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27242 (memset): Fix function prototype.
27244 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27245 2009-10-25 Vasily Averin <vvs@parallels.com>
27247 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27248 `dirent.direntlen == 0'.
27250 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27252 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27254 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27256 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27258 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27259 `__trampoline_setup' and `__ucmpdi2'.
27260 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27261 that libgcc provides.
27263 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27265 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27266 * include/grub/sparc64/libgcc.h (memset): Likewise.
27267 * include/grub/misc.h (memset, memcmp): New function prototypes.
27269 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27271 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27273 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27275 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27277 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27278 * docs/grub.cfg: Compensate for recent change in multiboot
27279 loader (since 2009-08-14 it won't pass filename to payload).
27280 * util/grub.d/10_hurd.in: Likewise.
27282 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27284 * config.guess: Update to latest version from config git
27286 * config.sub: Likewise.
27288 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27290 Fix build on sparc64.
27292 * configure.ac: Perform checks for libgcc symbols before
27293 adding `-nostdlib' to LDFLAGS.
27295 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27297 Let user specify OpenBSD root device.
27299 * loader/i386/bsd.c (openbsd_root): New variable.
27300 (openbsd_opts): New option 'root'.
27301 (OPENBSD_ROOT_ARG): New macro.
27302 (grub_openbsd_boot): Use 'openbsd_root'.
27303 (grub_cmd_openbsd): Fill 'openbsd_root'.
27305 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27307 * NEWS: Misc adjustments.
27309 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27311 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27313 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27315 * configure.ac: Bump version to 1.97.
27317 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27319 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27320 -mno-3dnow on x86 architectures. Some toolchains enable these
27321 features by default, but they rely on registers that aren't enabled
27322 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27324 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27326 Make entry text a bit more readable.
27328 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27330 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27332 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27334 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27336 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27339 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27341 * configure.ac: Add missing dollar.
27343 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27345 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27347 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27348 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27350 * include/grub/sparc64/libgcc.h: Likewise. Use
27351 preprocessor conditionals.
27353 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27355 * conf/common.rmk (grub-dumpbios): Remove rule.
27356 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27357 * util/grub-dumpbios.in: Remove file.
27359 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27361 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27362 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27364 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27365 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27368 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27369 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27370 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27371 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27374 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27376 * term/tparm.c: Switch to GPLv3.
27378 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27380 * include/grub/i386/cpuid.h: Add header protection.
27382 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27384 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27386 * include/grub/i386/cpuid.h: New file.
27387 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27388 (has_longmode): Rename to ...
27389 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27390 `static' attribute.
27391 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27392 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27393 on a CPU that doesn't implement AMD64 instruction set.
27395 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27397 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27398 that version.texi is rebuilt on version number changes.
27400 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27402 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27405 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27407 * util/i386/pc/grub-install.in: Source
27408 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27409 that the --grub-probe option will work.
27410 * util/sparc64/ieee1275/grub-install.in: Likewise.
27412 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27414 * configure.ac: Bump version to 1.97~beta4.
27416 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27418 Resync grub-mkdevicemap in x86_64-efi.
27420 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27421 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27422 `util/devicemap.c'.
27424 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27426 * util/grub-editenv.c (create_envblk_file): Write new block with a
27427 .new suffix and then rename it into place, to ensure atomic
27430 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27432 Do not automatically install headers.
27434 * Makefile.in (include_DATA): Remove. Update all users.
27436 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27438 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27439 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27441 * util/osdetect.lua: Remove.
27442 * script/lua/lauxlib.c: Likewise.
27443 * script/lua/ldebug.c: Likewise.
27444 * script/lua/grub_main.c: Likewise.
27445 * script/lua/lauxlib.h: Likewise.
27446 * script/lua/ldebug.h: Likewise.
27447 * script/lua/ltablib.c: Likewise.
27448 * script/lua/liolib.c: Likewise.
27449 * script/lua/lstrlib.c: Likewise.
27450 * script/lua/lualib.h: Likewise.
27451 * script/lua/ldo.c: Likewise.
27452 * script/lua/ldump.c: Likewise.
27453 * script/lua/ldo.h: Likewise.
27454 * script/lua/loslib.c: Likewise.
27455 * script/lua/lundump.c: Likewise.
27456 * script/lua/grub_lib.c: Likewise.
27457 * script/lua/ldblib.c: Likewise.
27458 * script/lua/lundump.h: Likewise.
27459 * script/lua/lmem.c: Likewise.
27460 * script/lua/grub_lib.h: Likewise.
27461 * script/lua/lmathlib.c: Likewise.
27462 * script/lua/lstate.c: Likewise.
27463 * script/lua/ltm.c: Likewise.
27464 * script/lua/lvm.c: Likewise.
27465 * script/lua/lmem.h: Likewise.
27466 * script/lua/lstate.h: Likewise.
27467 * script/lua/ltm.h: Likewise.
27468 * script/lua/ltable.c: Likewise.
27469 * script/lua/lvm.h: Likewise.
27470 * script/lua/llex.c: Likewise.
27471 * script/lua/lgc.c: Likewise.
27472 * script/lua/grub_lua.h: Likewise.
27473 * script/lua/loadlib.c: Likewise.
27474 * script/lua/lfunc.c: Likewise.
27475 * script/lua/lopcodes.c: Likewise.
27476 * script/lua/lparser.c: Likewise.
27477 * script/lua/ltable.h: Likewise.
27478 * script/lua/llex.h: Likewise.
27479 * script/lua/lgc.h: Likewise.
27480 * script/lua/lfunc.h: Likewise.
27481 * script/lua/lbaselib.c: Likewise.
27482 * script/lua/lopcodes.h: Likewise.
27483 * script/lua/lparser.h: Likewise.
27484 * script/lua/lzio.c: Likewise.
27485 * script/lua/linit.c: Likewise.
27486 * script/lua/lobject.c: Likewise.
27487 * script/lua/llimits.h: Likewise.
27488 * script/lua/lstring.c: Likewise.
27489 * script/lua/lzio.h: Likewise.
27490 * script/lua/lapi.c: Likewise.
27491 * script/lua/lcode.c: Likewise.
27492 * script/lua/lua.h: Likewise.
27493 * script/lua/lobject.h: Likewise.
27494 * script/lua/lstring.h: Likewise.
27495 * script/lua/lapi.h: Likewise.
27496 * script/lua/lcode.h: Likewise.
27497 * script/lua/luaconf.h: Likewise.
27499 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27501 * docs/grub.texi (Command-line and menu entry commands): Document
27502 date and echo commands.
27504 2009-09-24 Pavel Roskin <proski@gnu.org>
27506 * include/grub/kernel.h (struct grub_module_header): Remove
27507 `grub_module_header_types'. Make `type' unsigned. Make `size'
27508 32-bit on all platforms.
27509 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27510 8-bit field. Use grub_host_to_target32() for `size'.
27511 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27512 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27513 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27515 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27517 Fix "lost keypress" bug in at_keyboard.
27519 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27520 Checks for readyness of input buffer (without flushing it).
27521 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27522 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27524 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27526 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27527 size check within GRUB_MACHINE_PCBIOS section.
27529 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27531 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27533 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27534 KEYBOARD_ISREADY check.
27535 (grub_at_keyboard_checkkey): Rename to ...
27536 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27537 Remove gratuitous cast.
27539 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27541 * configure.ac: Call AC_PROG_MKDIR_P.
27542 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27543 version.texi in $(builddir) rather than $(srcdir).
27544 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27545 to makeinfo's @include search path.
27547 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27549 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27551 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27553 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27556 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27558 Build info documentation. Some code borrowed from Automake.
27560 * configure.ac: Check for makeinfo.
27561 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27562 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27564 (MOSTLYCLEANFILES): Add vti.tmp.
27565 (docs/version.texi, docs/stamp-vti): Update automatically.
27566 (docs/grub.info): Build info documentation. Use --force and ignore
27568 (all-local): Add $(INFOS).
27569 (install-local): Install info files.
27570 (uninstall): Uninstall info files.
27571 * docs/version.texi: Remove from revision control. This file is
27572 automatically generated on build now.
27573 * gendistlist.sh: Add `*.info'.
27575 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27577 * kern/term.c: Fix indentation.
27579 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27581 * util/hostdisk.c: Fix a comment.
27583 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27585 Fix regression introduced in r2539.
27587 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27590 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27592 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27593 os-prober. Under normal operation, it does not print anything to
27594 stderr; if it does, we need to debug it, and throwing away stderr
27595 makes that excessively difficult.
27597 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27599 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27601 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27603 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27604 AC_LANG_PROGRAM from autoconf.
27605 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27606 prototypes (fixes warning).
27608 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27609 `--disable-werror' was used.
27611 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27613 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27614 uninitialized `lastaddr'.
27616 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27618 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27620 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27622 * commands/test.c (get_fileinfo): Return immediately if
27623 grub_fs_probe fails.
27625 2009-09-14 José Martínez <xosemp@gmail.com>
27627 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27629 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27631 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27634 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27636 * configure.ac: Remove --enable-grub-pe2elf. Only build
27637 grub-pe2elf when needed by the build system itself.
27638 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27640 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27642 * configure.ac: Bump version to 1.97~beta3.
27643 * docs/version.texi: Likewise.
27645 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27647 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
27648 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
27650 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
27651 (grub_linux_setup_video): ... to here (with some adjustments).
27653 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27655 Fix memory corruption issue (spotted by Colin Watson).
27657 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
27658 causing returned size to be stored in an incorrect memory location.
27659 Fix use of uninitialized value when storing the returned size.
27661 2009-09-12 Yves Blusseau <blusseau@zetam.org>
27663 Change clean rules to properly remove files
27665 * genmk.rb: add new clean rules
27666 * Makefile.in (clean): add the new targets
27667 (mostlyclean): likewise
27669 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27671 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
27673 * fs/ntfs.c (init_file): Understand 64-bit sizes for
27674 non-resident files.
27676 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27678 * configure.ac: Don't look for help2man when cross-compiling. Fixes
27679 part of bug #27349.
27681 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27683 * util/grub-mkconfig.in: Make the created config mode 400 and
27684 print a warning if it fails.
27686 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
27688 * util/grub.d/40_custom.in: Ask user to type custom entries below
27689 comment, rather than below 'exec tail' line.
27691 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27693 * util/grub.d/40_custom.in: Make sure that the explanatory text is
27694 visible in grub.cfg.
27696 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27698 * util/grub.d/40_custom.in: Make it a little clearer how to use this
27701 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27703 * docs/grub.cfg: Add an example menu entry for memtest86+.
27705 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
27707 * config.guess: Update to latest version from config git.
27708 * config.sub: Likewise.
27710 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
27712 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
27713 unknown-command case. Fixes bug #27320.
27715 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
27717 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
27718 `help' if the command exists.
27720 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
27722 * INSTALL: Require GCC 4.1.3 or later.
27724 2009-09-06 Yves Blusseau <blusseau@zetam.org>
27726 * Makefile.in (RMKFILES): add i386-qemu.rmk
27727 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
27728 $(srcdir)/stamp-h.in
27730 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
27732 * util/grub-probe.c (probe): Comment out buggy codepath, which
27733 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
27734 should be re-enabled after 1.97.
27736 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
27738 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
27741 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
27743 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
27744 unnecessary calls to grub_error.
27746 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
27748 * NEWS: Mention `keystatus' and Unicode fonts.
27750 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
27752 * configure.ac: Bump version to 1.97~beta2.
27753 * docs/version.texi: Likewise.
27755 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27757 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
27758 containing unwind information in some cases where it previously did
27759 not. Use -fno-dwarf2-cfi-asm if available to restore the old
27760 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
27763 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
27765 Embedding loadenv module into grub-emu
27767 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
27769 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
27770 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
27771 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
27772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
27773 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
27774 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
27776 2009-09-03 Magnus Granberg <zorry@ume.nu>
27778 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
27779 include -fPIE in the default specs.
27780 * configure.ac: Check if pie_possible is yes and add -fno-PIE
27783 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
27785 * INSTALL: Note that GNU Bison 2.3 or later is required.
27787 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27789 * kern/i386/pc/startup.S: Fix typo.
27791 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
27793 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
27796 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27798 * docs/grub.texi (Naming convention): Describe one-based partition
27800 (Device syntax): Likewise.
27801 (File name syntax): Likewise.
27802 (Block list syntax): Likewise.
27803 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
27805 (File name syntax): Likewise.
27806 (Command-line and menu entry commands): Document acpi, blocklist,
27807 crc, export, insmod, keystatus, ls, set, and unset commands.
27809 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27811 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
27812 to avoid implying that only one of --shift, --ctrl, or --alt may be
27815 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27817 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
27818 rather than comparing against S_IFREG, which will almost never work.
27820 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
27822 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
27823 (write_blocklists): Likewise.
27825 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
27827 * script/lua/grub_lua.h (fputs): Supply a format string as the first
27828 argument to grub_printf.
27830 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
27832 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
27835 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27837 * kern/file.c (grub_file_read): Spelling fix
27839 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27841 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
27842 loading of headers in some cases.
27844 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
27846 * configure.ac: Bump version to 1.97~beta1.
27847 * docs/version.texi: Likewise.
27849 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
27851 * include/grub/i386/xnu.h: Add license header.
27852 include grub/err.h explicitly.
27854 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27856 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
27857 to `ufs' in the vfs.root.mountfrom kernel parameter.
27859 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27861 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
27863 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
27864 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
27866 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
27867 `ARRAY_SIZE' macro.
27869 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27871 * kern/file.c (grub_file_read): Check offset.
27872 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
27873 * fs/jfs.c (grub_jfs_read_file): Likewise.
27874 * fs/ntfs.c (grub_ntfs_read): Likewise.
27875 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
27876 * fs/minix.c (grub_minix_read_file): Correct offset check.
27877 * fs/ufs.c (grub_ufs_read_file): Likewise.
27879 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27881 * term/i386/pc/console.c (bios_data_area): Cast
27882 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
27884 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27886 1-bit optimised blitters.
27888 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
27890 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27891 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27892 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27893 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27894 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27895 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27896 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
27898 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27899 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27900 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27901 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27902 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27903 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27904 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
27906 * video/video.c (grub_video_get_blit_format): Return
27907 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
27909 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27911 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
27912 the first argument to grub_printf.
27914 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27915 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
27917 Add `getkeystatus' terminal method. Add a new `keystatus' command
27920 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
27921 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
27922 modifier key bitmasks.
27923 (struct grub_term_input): Add `getkeystatus' member.
27924 (grub_getkeystatus): Add prototype.
27925 * kern/term.c (grub_getkeystatus): New function.
27927 * include/grub/i386/pc/memory.h
27928 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
27929 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
27931 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
27932 (grub_console_term_input): Set `getkeystatus' member.
27933 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
27935 (grub_usb_keyboard_getreport): Likewise.
27936 (grub_usb_keyboard_checkkey): Likewise.
27937 (grub_usb_keyboard_getkeystatus): New function.
27938 (grub_usb_keyboard_term): Set `getkeystatus' member.
27940 * commands/keystatus.c: New file.
27941 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
27942 (keystatus_mod_SOURCES): New variable.
27943 (keystatus_mod_CFLAGS): Likewise.
27944 (keystatus_mod_LDFLAGS): Likewise.
27945 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
27946 commands/keystatus.c.
27947 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27948 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27949 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27951 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27952 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27954 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27956 Split befs.mod and afs.mod into *_be.mod and *.mod
27958 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
27959 (grub_fstest_SOURCES): Likewise.
27960 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
27961 (afs_be_mod_SOURCES): New variable.
27962 (afs_be_mod_CFLAGS): Likewise.
27963 (afs_be_mod_LDFLAGS): Likewise.
27964 (befs_be_mod_SOURCES): Likewise.
27965 (befs_be_mod_CFLAGS): Likewise.
27966 (befs_be_mod_LDFLAGS): Likewise.
27967 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
27968 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27969 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27970 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27971 (grub_emu_SOURCES): Likewise.
27972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27973 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27974 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27975 * fs/afs_be.c: New file.
27976 * fs/befs_be.c: New file.
27977 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
27978 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
27979 (U16): Replaced with ...
27980 (grub_afs_to_cpu16): ...this. All users updated.
27981 (U32): Replaced with ...
27982 (grub_afs_to_cpu32): ...this. All users updated.
27983 (U64): Replaced with ...
27984 (grub_afs_to_cpu64): ...this. All users updated.
27985 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
27986 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
27987 (grub_afs_validate_sblock): Check only one endianness.
27988 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27989 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27990 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27991 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27992 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27993 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27994 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27995 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27997 2009-08-26 Bean <bean123ch@gmail.com>
27999 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28001 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28002 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28003 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28005 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28007 NetBSD memory map support.
28009 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28010 (grub_netbsd_btinfo_mmap_header): New structure.
28011 (grub_netbsd_btinfo_mmap_entry): Likewise.
28012 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28014 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28016 Enable bsd.mod on coreboot.
28018 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28019 (bsd_mod_SOURCES): New variable.
28020 (bsd_mod_CFLAGS): Likewise.
28021 (bsd_mod_LDFLAGS): Likewise.
28022 (bsd_mod_ASFLAGS): Likewise.
28023 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28024 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28026 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28028 Cleanup NetBSD root support.
28030 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28031 grub_bsd_get_device.
28034 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28036 * util/grub.d/00_header.in: Move check for the video backend of
28037 gfxterm from here ...
28038 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28039 a suitable video backend.
28041 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28043 Fix breakage in grub-setup.
28045 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28046 "msdos_partition_map".
28048 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28050 Fix breakage in normal/auth.c.
28052 * normal/auth.c (grub_iswordseparator): New function.
28054 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28056 Authentication support.
28058 * commands/password.c: New file.
28059 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28060 (password_mod_SOURCES): New variable.
28061 (password_mod_CFLAGS): Likewise.
28062 (password_mod_LDFLAGS): Likewise.
28063 (normal_mod_SOURCES): Add normal/auth.c.
28064 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28066 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28067 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28068 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28070 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28071 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28072 * include/grub/auth.h: New file.
28073 * include/grub/err.h (grub_err_t): New enum value
28074 GRUB_ERR_ACCESS_DENIED.
28075 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28077 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28078 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28080 * normal/auth.c: New file.
28081 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28082 (grub_cmdline_run): Don't allow to go to command line without
28084 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28085 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28086 menuentry without superuser rights.
28087 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28088 user isn't a superuser.
28090 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28092 Save space by inlining misc.c functions.
28094 * kern/misc.c (grub_iswordseparator): Made static.
28095 * kern/misc.c (grub_strcat): Moved from here ...
28096 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28097 * kern/misc.c (grub_strncat): Moved from here ...
28098 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28099 * kern/misc.c (grub_strcasecmp): Moved from here ...
28100 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28101 * kern/misc.c (grub_strncasecmp): Moved from here ...
28102 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28103 * kern/misc.c (grub_isalpha): Moved from here ...
28104 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28105 * kern/misc.c (grub_isdigit): Moved from here ...
28106 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28107 * kern/misc.c (grub_isgraph): Moved from here ...
28108 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28109 * kern/misc.c (grub_tolower): Moved from here ...
28110 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28112 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28114 * script/sh/function.c (grub_script_function_find): Cut error message
28115 not to flood terminal.
28116 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28118 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28120 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28122 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28123 `report' grub_uint8_t *.
28124 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28125 Use a 50-millisecond timeout rather than just repeating
28126 grub_usb_keyboard_getreport 50 times.
28127 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28129 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28131 Rename *_partition_map to part_*
28133 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28134 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28135 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28136 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28138 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28140 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28141 * util/grub-probe.c (probe_partmap): Don't transform partition name
28142 to get module name.
28144 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28146 Fix OpenBSD and NetBSD support.
28148 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28149 memory address conflict.
28150 (OPENBSD_MMAP_ACPI): New definition.
28151 (OPENBSD_MMAP_NVS): Likewise.
28152 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28153 and OPENBSD_MMAP_NVS.
28154 Add memory map terminator
28155 Explicit cast when calling grub_unix_real_boot.
28156 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28158 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28160 Let user specify NetBSD root device.
28162 * loader/i386/bsd.c (netbsd_root): New variable.
28163 (netbsd_opts): New option 'root'.
28164 (NETBSD_ROOT_ARG): New macro.
28165 (grub_netbsd_boot): Use 'netbsd_root'.
28166 (grub_bsd_unload): Free 'netbsd_root'.
28167 (grub_cmd_netbsd): Fill 'netbsd_root'.
28169 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28171 Support for 64-bit NetBSD.
28173 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28174 point when booting non-FreeBSD.
28176 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28178 Support --no-smp and --no-acpi for NetBSD.
28180 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28181 (NETBSD_AB_NOACPI): Likewise.
28182 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28183 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28185 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28187 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28189 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28190 errors. Call grub_error when needed.
28192 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28194 * commands/search.c (search_fs): Try searching without autoload first.
28195 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28196 filesystem module explicitly for faster booting.
28198 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28200 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28202 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28204 * util/grub.d/30_os-prober.in: Disable os-prober if
28205 `GRUB_DISABLE_OS_PROBER' was set to true.
28207 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28209 * partmap/pc.c: Rename to ...
28210 * partmap/msdos.c: ... this. Update all users.
28211 (grub_pc_partition_map): Rename to ...
28212 (grub_msdos_partition_map): ... this. Update all users.
28214 * parttool/pcpart.c: Rename to ...
28215 * parttool/msdospart.c: ... this. Update all users.
28217 * include/grub/pc_partition.h: Rename to ...
28218 * include/grub/msdos_partition.h: ... this. Update all users.
28219 (grub_pc_partition_bsd_entry): Rename to ...
28220 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28221 (grub_pc_partition_disk_label): Rename to ...
28222 (grub_msdos_partition_disk_label): ... this. Update all users.
28223 (grub_pc_partition_entry): Rename to ...
28224 (grub_msdos_partition_entry): ... this. Update all users.
28225 (grub_pc_partition_mbr): Rename to ...
28226 (grub_msdos_partition_mbr): ... this. Update all users.
28227 (grub_pc_partition): Rename to ...
28228 (grub_msdos_partition): ... this. Update all users.
28229 (grub_pc_partition_is_empty): Rename to ...
28230 (grub_msdos_partition_is_empty): ... this. Update all users.
28231 (grub_pc_partition_is_extended): Rename to ...
28232 (grub_msdos_partition_is_extended): ... this. Update all users.
28233 (grub_pc_partition_is_bsd): Rename to ...
28234 (grub_msdos_partition_is_bsd): ... this. Update all users.
28236 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28237 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28238 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28239 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28240 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28241 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28242 (gpt_mod_LDFLAGS): Rename to ...
28243 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28244 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28245 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28246 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28247 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28248 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28249 (part_gpt_mod_LDFLAGS): ... this.
28250 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28251 `pcpart.mod' to `msdospart.mod'.
28252 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28254 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28255 (msdospart_mod_LDFLAGS): ... this.
28257 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28259 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28260 (openbsd_opts): Likewise.
28261 (netbsd_opts): Likewise.
28262 (freebsd_flags): Added 0 terminator.
28263 (openbsd_flags): Likewise.
28264 (netbsd_flags): Likewise.
28265 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28266 (grub_cmd_freebsd): Transformed into extended command.
28267 (grub_cmd_openbsd): Likewise.
28268 (grub_cmd_netbsd): Likewise.
28269 (cmd_freebsd): Changed type to grub_extcmd_t.
28270 (cmd_openbsd): Likewise.
28271 (cmd_netbsd): Likewise.
28272 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28273 grub_cmd_openbsd as extended commands.
28274 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28275 cmd_netbsd and cmd_openbsd
28277 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28279 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28281 2009-08-21 Pavel Roskin <proski@gnu.org>
28283 * Makefile.in (install-local): When checking if a file is in the
28284 build directory, use "test -e" to detect symlinks.
28286 * Makefile.in (install-local): Remove all files in
28287 $(DESTDIR)$(pkglibdir) before installing new files there.
28289 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28291 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28294 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28296 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28297 explicitly specified by the user.
28299 2009-08-18 Pavel Roskin <proski@gnu.org>
28301 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28302 grub_uint8_t pointer for data.
28303 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28305 * video/fb/fbutil.c: Remove unnecessary casts.
28307 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28311 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28312 (grub_vbe_set_video_mode): Save active mode info
28313 only after setting the mode.
28314 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28317 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28319 Rename variables for clarity.
28321 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28322 (active_vbe_mode_info): ... this. All users updated.
28323 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28325 (initial_mode): Rename to ...
28326 (initial_vbe_mode): ... this. All users updated.
28327 (mode_in_use): Rename to ..
28328 (vbe_mode_in_use): ... this. All users updated.
28329 (mode_list): Rename to ..
28330 (vbe_mode_list): ... this. All users updated.
28331 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28332 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28333 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28334 'mode_list_size' to 'vbe_mode_list_size'.
28335 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28336 'best_mode_info' to 'best_vbe_mode_info' and
28337 'best_mode' to 'best_vbe_mode'
28339 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28341 Remove duplicate grub_video_fb_get_video_ptr.
28343 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28344 (grub_video_fb_get_video_ptr): ... this.
28345 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28346 * video/fb/fbutil.c: Add comment about addressing.
28347 (get_data_ptr): Rename to ...
28348 (grub_video_fb_get_video_ptr): ... this. All users updated.
28349 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28351 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28353 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28354 grub_dprintf() that was just added.
28356 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28358 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28359 (DEFAULT_VIDEO_MODE): Remove macros.
28360 (grub_linux_boot): Remove assumption that Linux has FB support,
28361 and use "text" as default video mode.
28363 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28365 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28367 * fs/fat.c (grub_fat_read_data): Likewise.
28369 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28371 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28373 (grub_module): Likewise.
28375 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28377 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28378 mbi->cmdline but free playground.
28380 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28382 Handle group offset on UFS1.
28384 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28385 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28387 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28389 Split ufs.mod into ufs1.mod and ufs2.mod.
28391 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28392 (grub_fstest_SOURCES): Likewise.
28393 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28394 (ufs_mod_SOURCES): Remove.
28395 (ufs_mod_CFLAGS): Likewise.
28396 (ufs_mod_LDFLAGS): Likewise.
28397 (ufs1_mod_SOURCES): New variable.
28398 (ufs1_mod_CFLAGS): Likewise.
28399 (ufs1_mod_LDFLAGS): Likewise.
28400 (ufs2_mod_SOURCES): New variable.
28401 (ufs2_mod_CFLAGS): Likewise.
28402 (ufs2_mod_LDFLAGS): Likewise.
28403 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28404 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28406 (grub_emu_SOURCES): Likewise.
28407 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28408 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28409 (grub_setup_SOURCES): Likewise.
28410 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28411 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28412 (grub_setup_SOURCES): Likewise.
28413 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28415 * fs/ufs2.c: New file.
28416 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28418 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28422 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28423 subsystem at the end.
28424 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28425 (video_fb_mod_SOURCES): New variable.
28426 (video_fb_mod_CFLAGS): Likewise.
28427 (video_fb_mod_LDFLAGS): Likewise.
28428 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28429 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28430 * video/i386/pc/vbeblit.c: Moved from here ...
28431 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28432 * video/i386/pc/vbefill.c: Moved from here ...
28433 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28434 * video/i386/pc/vbeutil.c: Moved from here ...
28435 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28436 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28437 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28438 * include/grub/i386/pc/vbefill.h: Moved from here ...
28439 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28440 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28441 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28442 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28443 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28444 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28445 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28446 (grub_video_adapter): Added 'get_info_and_fini'.
28447 (grub_video_get_info_and_fini): New prototype.
28448 (grub_video_set_mode): make modestring const char *.
28449 * loader/i386/linux.c (grub_linux_setup_video): Use
28450 grub_video_get_info_and_fini.
28451 (grub_linux_boot): Move modesetting just before booting.
28452 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28453 grub_video_get_info_and_fini.
28454 * video/i386/pc/vbe.c: Moved framebuffer part ...
28455 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28456 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28457 grub_video_fbstd_colors and grub_video_fb_set_palette.
28458 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28459 grub_video_fb_init.
28460 (grub_video_vbe_fini): Use grub_video_fb_fini.
28461 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28462 render_target and use grub_video_fb_set_active_render_target and
28463 grub_video_fb_set_palette.
28464 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28465 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28466 (grub_video_vbe_adapter): Use framebuffer.
28467 * video/video.c (grub_video_get_info_and_fini): New function.
28468 (grub_video_set_mode): Make modestring const char *.
28469 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28470 values are already initialised.
28472 2009-08-14 Pavel Roskin <proski@gnu.org>
28474 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28476 * boot/i386/pc/diskboot.S: Likewise.
28477 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28478 sectors allow compilation on MacOSX.
28479 * conf/i386-pc.rmk: Enable unconditional compilation of
28482 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28484 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28485 * util/grub.d/00_header.in: Enter interruptible sleep if
28486 GRUB_HIDDEN_TIMEOUT is set.
28488 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28490 * include/grub/symbol.h: Add the LOCAL macro.
28491 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28492 starting with "L_".
28494 2009-08-13 Pavel Roskin <proski@gnu.org>
28496 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28497 any modern compilers we support.
28499 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28500 Use local labels starting with "L_" so that Apple assembler
28501 knows they are local.
28503 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28505 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28506 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28507 (bsd_kernel_types): ... this enum.
28509 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28510 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28511 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28513 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28514 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28515 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28518 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28520 * util/grub-dumpdevtree: Moved from here ...
28521 * util/i386/efi/grub-dumpdevtree: ... to here.
28522 (hexify): New function. Converts a string to its hex version.
28523 Generate hex versions of "efi" and "device-properties" by calling
28524 hexify() on the ASCII strings rather than by hardcoding numbers.
28526 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28528 * fs/jfs.c: Update copyright year.
28530 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28532 * util/grub.d/00_header.in: Fix a comment.
28533 * util/grub.d/10_linux.in: Likewise.
28534 * util/grub.d/10_windows.in: Likewise.
28535 * util/grub.d/10_hurd.in: Likewise.
28537 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28539 * util/grub-mkconfig.in: Allow the user to specify the used font
28542 2009-08-08 Pavel Roskin <proski@gnu.org>
28544 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28545 available, xfs.mod needs it now.
28547 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28548 the "g" modifier in sed when the intention is to strip something
28549 once. This fixes comparison of kernels with multiple dashes.
28551 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28552 on it. Add missing space before closing bracket. Fix
28553 misleading formatting.
28555 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28557 * docs/grub.texi: Major overhaul. Remove all sections that are
28558 specific to GRUB Legacy, or mostly composed of Legacy-specific
28561 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28563 * docs/version.texi: New file. Provides version information for
28566 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28568 * docs/grub.texi: Update CVS information to SVN.
28569 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28571 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28573 * util/grub-mkconfig.in: Remove a wrong `fi'.
28575 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28577 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28578 (grub_jfs_uuid): New function.
28579 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28581 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28583 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28585 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28586 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28588 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28590 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28591 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28594 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28595 not just "vmlinu[zx]".
28596 Moved from here ...
28597 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28600 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28601 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28604 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28606 * util/grub.d/10_freebsd.in: Use an absolute device path for
28607 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28609 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28611 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28612 handling of multiple abstraction modules.
28614 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28616 Fix a bug resulting in black screen when loading Linux using a
28619 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28622 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28623 (grub_vbe_bios_getset_dac_palette_width): New function.
28624 (grub_vbe_bios_get_dac_palette_width)
28625 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28626 grub_vbe_bios_getset_dac_palette_width()).
28628 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28629 check for return status.
28630 (grub_vbe_get_video_mode_info): When getting information for a packed
28631 mode (<= 8 bpp), obtain DAC palette width using
28632 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28633 {red,green,blue}_mark_size.
28635 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28637 * commands/search.c (options): Fix help output to match actual code.
28639 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28641 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28644 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28646 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
28647 on XFS or ReiserFS.
28649 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28651 Support Apple partition map with sector size different from 512 bytes.
28653 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
28654 (apple_partition_map_iterate): Respect 'aheader.blocksize'
28655 and 'apart.partmap_size'.
28657 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28658 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
28662 * commands/i386/cpuid.c (options): New variable.
28663 (grub_cmd_cpuid): Return real error.
28664 (GRUB_MOD_INIT(cpuid)): Declare options.
28666 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
28668 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
28671 2009-07-31 Bean <bean123ch@gmail.com>
28673 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
28675 (grub_fshelp_node): Move inode field to the end.
28676 (grub_xfs_data): Remove inode field.
28677 (grub_xfs_inode_block): Calculate inode size using sblock.
28678 (grub_xfs_inode_offset): Likewise.
28679 (grub_xfs_read_inode): Calculate inode size using sblock.
28680 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
28681 (grub_xfs_iterate_dir): Calculate inode size using sblock.
28682 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
28683 to match inode size.
28684 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
28685 not accessible when data is null.
28686 (grub_xfs_open): Likewise.
28688 2009-07-31 Bean <bean123ch@gmail.com>
28690 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
28691 Don't change pv->disk if it's already set.
28693 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
28694 (grub_raid_register): ... here.
28695 (grub_raid_rescan): Removed.
28697 * include/grub/raid.h (grub_raid_rescan): Removed.
28699 * util/grub-fstest.c: Remove include file <grub/raid.h>.
28700 (fstest): Replace grub_raid_rescan with module fini function followed
28703 * util/grub-probe.c: Add include file <grub/raid.h>.
28704 (probe_raid_level): New function.
28705 (probe): Detect abstraction by walking the disk device, support two
28706 level of abstraction (LVM on RAID) when detecting partition map.
28708 2009-07-31 Pavel Roskin <proski@gnu.org>
28710 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
28711 to grub_zalloc(), it was erroneous.
28712 Reported by Bean <bean123ch@gmail.com>
28714 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
28716 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
28717 embedding zone, not only the first one.
28719 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
28721 * term/gfxterm.c (clear_char): New function.
28722 (grub_virtual_screen_setup): Use clear_char.
28723 (scroll_up): Likewise.
28724 (grub_virtual_screen_cls): Likewise.
28726 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
28728 * util/deviceiter.c (get_acceleraid_disk_name): New static
28730 (grub_util_iterate_devices): Handle Accelraid devices.
28731 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
28733 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
28735 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
28736 separator for the suggested gfxpayload string (';' collides with the
28737 parser and needs escaping).
28739 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
28741 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
28742 Clear direction flag before jumping to OS.
28743 (grub_multiboot2_real_boot): Likewise.
28745 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28747 * util/i386/pc/grub-install: Fix parsing of --disk-module
28750 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28752 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
28755 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
28757 * util/grub-mkconfig.in (package_version): New variable.
28758 Use it do display the version.
28760 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28762 * kern/file.c (grub_file_open): Revert to previous check with
28765 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28767 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
28768 from help line. It's out of sync with code.
28770 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28772 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
28773 entries on failed boot.
28775 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28777 * kern/file.c (grub_file_open): Fix an error check.
28779 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
28781 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
28782 partition map couldn't be identified.
28784 2009-07-23 Pavel Roskin <proski@gnu.org>
28786 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
28787 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
28788 case of little endian words becomes just an optimization.
28789 Respect const modifier.
28790 (md5_final): Use code that doesn't depend on endianness.
28792 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
28793 to avoid loss of upper bits if align is unsigned and shorter
28796 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28798 UUID support for UFS
28800 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
28801 (grub_ufs_uuid): New function.
28802 (grub_ufs_fs): add .uuid
28804 2009-07-21 Pavel Roskin <proski@gnu.org>
28806 * kern/dl.c (grub_dl_check_header): Make static.
28808 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
28810 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
28811 add drivemap for Vista. It breaks Windows 7.
28813 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28815 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
28818 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28822 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
28823 (grub_fstest_SOURCES): Likewise.
28824 (pkglib_MODULES): Add befs.mod.
28825 (befs_mod_SOURCES): New variable.
28826 (befs_mod_CFLAGS): Likewise.
28827 (befs_mod_LDFLAGS): Likewise.
28828 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28829 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28830 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28831 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28832 (grub_setup_SOURCES): Likewise.
28833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28834 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28835 (grub_setup_SOURCES): Likewise.
28836 * fs/befs.c: New file.
28837 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
28838 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
28839 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
28840 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
28841 (B_KEY_INDEX_ALIGN): New declaration.
28842 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
28843 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
28844 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
28845 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
28846 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
28847 (grub_afs_mount) [MODE_BFS]: Likewise.
28848 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
28849 (grub_afs_fs): Use GRUB_AFS_FSNAME
28850 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
28851 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
28852 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
28853 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
28855 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
28857 * util/getroot.c (find_root_device): Add support for MacOSX.
28858 * util/hostdisk.c: Likewise.
28860 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28862 * font/font.c (find_glyph): Check whether a font is present to avoid
28863 segmentation fault.
28865 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
28867 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
28869 2009-07-20 Pavel Roskin <proski@gnu.org>
28871 * configure.ac: Trim excessively wordy excuses.
28873 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28875 Add symlink, mtime and label support to AtheFS.
28877 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
28878 (grub_afs_iterate_dir): Handle symlinks.
28879 (grub_afs_open): Use grub_afs_read_symlink.
28880 (grub_afs_dir): Likewise.
28882 (grub_afs_label): New function.
28883 (grub_afs_fs): Add grub_afs_label.
28884 (grub_afs_read_symlink): New function.
28886 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28888 Fix AtheFS support.
28890 * fs/afs.c: Fix comments style.
28891 (grub_afs_blockrun): Declare as packed.
28892 (grub_afs_datastream): Likewise.
28893 (grub_afs_bnode): Likewise.
28894 (grub_afs_btree): Likewise.
28895 (grub_afs_sblock): Likewise.
28896 Declare `name' as char.
28897 (grub_afs_inode): Declare as packed.
28898 Change void *vnode to grub_uint32_t unused.
28899 (grub_afs_iterate_dir): Check that key_size is positive.
28900 (grub_afs_mount): Don't read superblock twice.
28901 (grub_afs_dir): Don't free node in case of error,
28902 grub_fshelp_find_file already handles this.
28903 (grub_afs_open): Likewise.
28905 2009-07-19 Pavel Roskin <proski@gnu.org>
28907 * Makefile.in: Remove LIBLZO and enable_lzo.
28908 * conf/i386-pc.rmk: Remove lzo support.
28909 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
28910 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
28912 * kern/i386/pc/lzo1x.S: Remove.
28913 * kern/i386/pc/startup.S: Remove lzo support.
28914 * util/i386/pc/grub-mkimage.c: Likewise.
28916 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
28918 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
28919 * fs/xfs.c (grub_xfs_dir): Likewise.
28920 * fs/afs.c (grub_afs_dir): Likewise.
28921 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
28922 (grub_iso9660_open): Likewise.
28923 * fs/jfs.c (grub_jfs_open): Likewise.
28924 * fs/ext2.c (grub_ext2_dir): Likewise.
28925 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
28926 * script/sh/lexer.c (grub_script_yylex): Likewise.
28928 2009-07-16 Pavel Roskin <proski@gnu.org>
28930 * configure.ac: Never add "-c" to CFLAGS.
28932 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
28934 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
28935 grub_cv_cc_efiemu should be used.
28937 * configure.ac: Typo fixes.
28939 * kern/mm.c (grub_zalloc): New function.
28940 (grub_debug_zalloc): Likewise.
28941 * include/grub/mm.h: Declare grub_zalloc() and
28942 grub_debug_zalloc().
28943 * util/misc.c (grub_zalloc): New function.
28944 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
28945 instead of grub_malloc(), remove unneeded initializations.
28946 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
28947 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
28948 * commands/parttool.c (grub_cmd_parttool): Likewise.
28949 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
28950 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
28951 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
28952 * disk/usbms.c (grub_usbms_finddevs): Likewise.
28953 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
28954 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
28955 (grub_cmd_efiemu_pnvram): Likewise.
28956 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
28957 * fs/iso9660.c (grub_iso9660_mount): Likewise.
28958 (grub_iso9660_iterate_dir): Likewise.
28959 * fs/jfs.c (grub_jfs_opendir): Likewise.
28960 * fs/ntfs.c (list_file): Likewise.
28961 (grub_ntfs_mount): Likewise.
28962 * kern/disk.c (grub_disk_open): Likewise.
28963 * kern/dl.c (grub_dl_load_core): Likewise.
28964 * kern/elf.c (grub_elf_file): Likewise.
28965 * kern/env.c (grub_env_context_open): Likewise.
28966 (grub_env_set): Likewise.
28967 (grub_env_set_data_slot): Likewise.
28968 * kern/file.c (grub_file_open): Likewise.
28969 * kern/fs.c (grub_fs_blocklist_open): Likewise.
28970 * loader/i386/multiboot.c (grub_module): Likewise.
28971 * loader/xnu.c (grub_xnu_create_key): Likewise.
28972 (grub_xnu_create_value): Likewise.
28973 * normal/main.c (grub_normal_add_menu_entry): Likewise.
28974 (read_config_file): Likewise.
28975 * normal/menu_entry.c (make_screen): Likewise.
28976 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28977 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
28978 * script/sh/script.c (grub_script_parse): Likewise.
28979 * video/bitmap.c (grub_video_bitmap_create): Likewise.
28980 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
28981 * video/readers/png.c (grub_png_output_byte): Likewise.
28982 (grub_video_reader_png): Likewise.
28984 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28986 Enable all targets that can be built by default
28988 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
28989 grub-mkfont and grub-fstest if they can be built
28991 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28993 Fix hang and segmentation fault in grub-emu-usb
28995 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
28996 * util/usb.c (grub_libusb_devices): likewise
28997 (grub_libusb_init): rename to ...
28998 (GRUB_MOD_INIT (libusb)):...this
28999 (grub_libusb_fini): rename to ..
29000 (GRUB_MOD_FINI (libusb)):...this
29001 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29002 * include/grub/disk.h (grub_raid_init): removed, it's useless
29003 (grub_raid_fini): likewise
29004 (grub_lvm_init): likewise
29005 (grub_lvm_fini): likewise
29006 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29009 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29013 * Makefile.in (LIBUSB): new macro
29014 * genmk.rb (Utility/print_tail): new method
29015 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29016 (top level): call util.print_tail at the end.
29018 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29020 Make FreeBSD accept zpool.cache
29022 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29023 type is /boot/zfs/zpool.cache
29025 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29029 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29030 correct wrong typedef
29031 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29033 2009-07-15 Pavel Roskin <proski@gnu.org>
29035 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29036 * kern/disk.c (struct grub_disk_cache): Likewise.
29038 * commands/probe.c (options): Typo fix.
29040 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29041 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29043 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29045 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29046 the end of "Error" to make the message more readable.
29048 * boot/i386/pc/boot.S (kernel_segment): Remove.
29049 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29052 * boot/i386/pc/boot.S (boot_version): Remove.
29053 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29056 * include/grub/i386/pc/boot.h: Sort all offsets.
29057 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29058 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29059 * boot/i386/pc/boot.S: Assert location of every offset listed in
29060 include/grub/i386/pc/boot.h.
29062 2009-07-13 Pavel Roskin <proski@gnu.org>
29064 * include/grub/i386/coreboot/machine.h: Rename
29065 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29066 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29067 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29069 * kern/dl.c: Force native word size to suppress warnings when
29070 compiling grub-emu.
29072 * kern/device.c (grub_device_iterate): Change struct part_ent to
29073 hold the name, not a pointer to it. Use one grub_malloc() per
29074 partition, not two. Free partition_name if grub_malloc() fails.
29075 Set ents to NULL only before grub_partition_iterate() is called.
29077 2009-07-11 Bean <bean123ch@gmail.com>
29079 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29082 2009-07-10 Bean <bean123ch@gmail.com>
29083 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29085 * kern/ieee1275/openfw.c (grub_children_iterate)
29086 (grub_devalias_iterate): Fix size evaluation for property or path
29087 strings, which was broken since r2132.
29089 2009-07-07 Pavel Roskin <proski@gnu.org>
29091 * commands/search.c (search_file): Merge into ...
29092 (search_fs): ... this. Accept search type as argument.
29093 (grub_cmd_search): Pass search type to search_fs().
29095 * include/grub/util/console.h: New file.
29096 * util/console.c: Use it instead of grub/machine/console.h.
29097 * util/grub-emu.c: Likewise.
29099 * lib/arg.c (find_long_option): Remove.
29100 (find_long): Add `len' argument, make `s' const char *.
29101 (grub_arg_parse): Parse long options in place, not in a
29104 2009-07-06 Pavel Roskin <proski@gnu.org>
29106 * commands/search.c (search_fs): Fix potential NULL pointer
29109 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29112 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29114 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29117 2009-07-05 Pavel Roskin <proski@gnu.org>
29119 * include/grub/i386/linux.h (struct linux_kernel_params):
29120 Restore padding3, it's still needed.
29122 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29124 * util/osdetect.lua: Likewise.
29126 2009-07-05 Bean <bean123ch@gmail.com>
29128 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29130 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29131 (grub_lua_getenv): Likewise.
29132 (grub_lua_setenv): Likewise.
29133 (save_errno): New function.
29134 (push_result): Likewise.
29135 (grub_lua_enum_device): Likewise.
29136 (grub_lua_enum_file): Likewise.
29137 (grub_lua_file_open): Likewise.
29138 (grub_lua_file_close): Likewise.
29139 (grub_lua_file_seek): Likewise.
29140 (grub_lua_file_read): Likewise.
29141 (grub_lua_file_getline): Likewise.
29142 (grub_lua_file_getsize): Likewise.
29143 (grub_lua_file_getpos): Likewise.
29144 (grub_lua_file_eof): Likewise.
29145 (grub_lua_file_exist): Likewise.
29146 (grub_lua_add_menu): Likewise.
29148 * script/lua/grub_lua.h (isupper): New inline function.
29149 (islower): Likewise.
29150 (ispunct): Likewise.
29151 (isxdigit): Likewise.
29152 (strcspn): Change to normal function.
29153 (strpbkr): New function declaration.
29154 (memchr): Likewise.
29156 * script/lua/grub_main.c (scan_str): New function.
29157 (strcspn): Likewise.
29158 (strpbrk): Likewise.
29159 (memchr): Likewise.
29161 * script/lua/linit.c (lualibs): Enable the string library.
29163 * util/osdetect.lua: New file.
29165 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29167 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29168 `capabilities' member.
29170 2009-07-02 Pavel Roskin <proski@gnu.org>
29172 * genparttoollist.sh: Add missing newline at the end.
29174 2009-07-01 Pavel Roskin <proski@gnu.org>
29176 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29178 * util/hostdisk.c (open_device): Remove `const' from
29179 `sysctl_size', as sysctlbyname() can change it (in this case it
29180 doesn't actually happen).
29182 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29183 using signed long int constants.
29185 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29186 constant to avoid a warning on FreeBSD.
29188 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29191 * Makefile.in: Install include/grub/machine symlink.
29193 * Makefile.in: When installing symlinks, use "cp -fR", which
29194 works on FreeBSD and MacOSX.
29195 From Yves Blusseau <cl7m42e02@sneakemail.com>
29197 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29198 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29200 * util/misc.c: Move grub_reboot() and grub_halt() ...
29201 * util/grub-emu.c: ... here. Make main_env static.
29202 * include/grub/util/misc.h: Remove main_env.
29204 * kern/mm.c: Use correct format to print size_t.
29206 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29207 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29208 * kern/powerpc/dl.c: Likewise.
29209 * kern/sparc64/dl.c: Likewise.
29210 * kern/x86_64/dl.c: Likewise.
29212 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29214 Fix grub-emu build on sparc64-ieee1275.
29216 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29217 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29219 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29221 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29222 (grub_reboot, grub_halt): New functions.
29224 * util/i386/pc/misc.c: Delete. Update all users.
29225 * util/sparc64/ieee1275/misc.c: Likewise.
29226 * util/powerpc/ieee1275/misc.c: Likewise.
29228 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29230 * conf/i386.rmk (setjmp_mod_SOURCES)
29231 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29232 * conf/common.rmk (setjmp_mod_SOURCES)
29233 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29234 to use $(target_cpu).
29235 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29236 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29237 * conf/powerpc-ieee1275.rmk: Likewise.
29238 * conf/sparc64-ieee1275.rmk: Likewise.
29240 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29241 $(target_cpu) for kern/$(target_cpu)/dl.c.
29242 * conf/i386-efi.rmk: Likewise.
29243 * conf/i386-ieee1275.rmk: Likewise.
29244 * conf/x86_64-efi.rmk: Likewise.
29245 * conf/i386-coreboot.rmk: Likewise.
29246 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29247 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29248 kern/$(target_cpu)/cache.S.
29249 * conf/sparc64-ieee1275.rmk: Likewise.
29251 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29253 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29254 type to `grub_uint8_t', and adjust `padding9' accordingly.
29256 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29258 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29260 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29261 assembly in final jump, using register constraints.
29263 (grub_linux_boot): For text mode, initialize `have_vga' using
29264 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29266 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29267 right before the final jump.
29269 Set `video_mode' to 0x3.
29271 Document initialization of `video_page', `video_mode' and
29274 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29276 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29277 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29278 and set GRUB_LINUX_FLAG_QUIET appropriately.
29280 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29282 Fix build on Debian / sparc.
29284 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29286 2009-06-28 Pavel Roskin <proski@gnu.org>
29288 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29291 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29293 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29295 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29298 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29302 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29303 file can't be opened. grub_file_open() is already supposed to set
29304 grub_errno / grub_errmsg appropriately.
29305 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29307 2009-06-27 Pavel Roskin <proski@gnu.org>
29308 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29310 * include/grub/dl.h: Include grub/elf.h.
29311 (struct grub_dl): Add symtab field.
29312 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29313 GRUB_MODULES_MACHINE_READONLY.
29314 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29315 of the header for read-only modules.
29316 (grub_dl_unload): Free mod->symtab for read-only modules.
29317 * kern/i386/dl.c: Use mod->symtab.
29318 * kern/powerpc/dl.c: Likewise.
29319 * kern/sparc64/dl.c: Likewise.
29320 * kern/x86_64/dl.c: Likewise.
29322 * conf/i386-qemu.rmk: New file.
29323 * kern/i386/qemu/startup.S: Likewise.
29324 * kern/i386/qemu/mmap.c: Likewise.
29325 * boot/i386/qemu/boot.S: Likewise.
29326 * include/grub/i386/qemu/time.h: Likewise.
29327 * include/grub/i386/qemu/serial.h: Likewise.
29328 * include/grub/i386/qemu/kernel.h: Likewise.
29329 * include/grub/i386/qemu/console.h: Likewise.
29330 * include/grub/i386/qemu/boot.h: Likewise.
29331 * include/grub/i386/qemu/init.h: Likewise.
29332 * include/grub/i386/qemu/machine.h: Likewise.
29333 * include/grub/i386/qemu/loader.h: Likewise.
29334 * include/grub/i386/qemu/memory.h: Likewise.
29336 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29337 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29338 [qemu] (pkglib_IMAGES): Add `boot.img'.
29339 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29340 [qemu] (boot_img_FORMAT): New variables.
29341 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29342 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29343 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29344 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29345 [qemu] (kernel_img_FORMAT): New variables.
29347 * configure.ac: Recognise `i386-qemu'.
29349 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29350 (for no compression).
29351 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29352 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29353 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29354 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29357 2009-06-27 Pavel Roskin <proski@gnu.org>
29359 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29361 * efiemu/prepare32.c: Likewise.
29362 * efiemu/prepare64.c: Likewise.
29364 2009-06-26 Pavel Roskin <proski@gnu.org>
29366 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29367 * include/grub/elf.h: Define symbols without "32" or "64" based
29368 on GRUB_TARGET_WORDSIZE.
29369 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29370 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29372 * efiemu/loadcore64.c: Likewise.
29373 * loader/i386/bsd32.c: Likewise.
29374 * loader/i386/bsd64.c: Likewise.
29375 * kern/dl.c: Remove own ELF definitions.
29376 * util/i386/efi/grub-mkimage.c: Likewise.
29378 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29380 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29381 segment 0x0 unconditionally, because the reference generated by
29382 GAS is an absolute address.
29384 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29386 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29387 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29389 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29391 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29392 indexes. Check for -f explicitly.
29393 (search_file): Improve error message.
29394 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29396 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29398 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29399 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29401 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29403 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29404 * conf/i386-ieee1275.rmk: Likewise.
29405 * conf/i386-coreboot.rmk: Likewise.
29407 * kern/i386/pc/startup.S (grub_stop): Remove function.
29408 * kern/i386/ieee1275/startup.S: Likewise.
29409 * kern/i386/coreboot/startup.S: Likewise.
29410 * kern/i386/misc.S (grub_stop): New function.
29412 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29414 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29415 * kern/i386/realmode.S (real_to_prot): ... to here.
29417 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29419 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29421 (kernel_elf_SOURCES): Rename to ...
29422 (kernel_img_SOURCES): ... this.
29423 (kernel_elf_HEADERS): Rename to ...
29424 (kernel_img_HEADERS): ... this. Update all users.
29425 (kernel_elf_ASFLAGS): Rename to ...
29426 (kernel_img_ASFLAGS): ... this.
29427 (kernel_elf_CFLAGS): Rename to ...
29428 (kernel_img_CFLAGS): ... this.
29429 (kernel_elf_LDFLAGS): Rename to ...
29430 (kernel_img_LDFLAGS): ... this.
29431 * conf/i386-coreboot.rmk: Likewise.
29432 * conf/powerpc-ieee1275.rmk: Likewise.
29434 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29437 2009-06-21 Pavel Roskin <proski@gnu.org>
29439 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29440 to match nested functions.
29441 * loader/sparc64/ieee1275/linux.c: Likewise.
29443 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29445 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29447 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29448 all i386 platforms.
29450 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29452 Fix asm file handling on ELF, and remove workarounds.
29454 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29455 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29456 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29457 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29459 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29461 Load BSD ELF modules
29463 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29464 and loader/i386/bsd64.c
29465 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29466 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29467 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29468 (grub_freebsd_load_elfmodule32): New declaration
29469 (grub_freebsd_load_elfmoduleobj64): Likewise
29470 (grub_freebsd_load_elf_meta32): Likewise
29471 (grub_freebsd_load_elf_meta64): Likewise
29472 (grub_freebsd_add_meta): Likewise
29473 (grub_freebsd_add_meta_module): Likewise
29474 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29475 (grub_freebsd_add_meta_module): Likewise and move module-specific
29476 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29477 (grub_cmd_freebsd): Add elf-kernel specific parts
29478 based on grub_freebsd_add_meta_module
29479 (grub_cmd_freebsd_module): Add type parsing moved from
29480 grub_freebsd_add_meta_module
29481 (grub_cmd_freebsd_module_elf): New function
29482 (cmd_freebsd_module_elf): New variable
29483 (GRUB_MOD_INIT): Register freebsd_module_elf
29484 * loader/i386/bsd32.c: New file
29485 * loader/i386/bsd64.c: Likewise
29486 * loader/i386/bsdXX.c: Likewise
29487 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29488 (grub_elf64_load): Likewise
29489 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29491 (grub_elf64_load_hook_t): Likewise
29493 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29495 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29497 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29498 don't write a menu entry for recovery mode.
29500 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29502 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29503 after it's no longer needed.
29505 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29507 * include/grub/i386/loader.h (grub_linux_prot_size)
29508 (grub_linux_tmp_addr, grub_linux_real_addr)
29509 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29510 GRUB_MACHINE_PCBIOS.
29511 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29512 common grub_util_info() call to ...
29513 (generate_image): ... here.
29514 Fix use of uninitialized memory, comparison of signed with
29515 unsigned integers and memory leak.
29516 Remove bogus module address message.
29518 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29520 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29522 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29524 2009-06-19 Pavel Roskin <proski@gnu.org>
29526 * configure.ac: Remove stray AC_MSG_CHECKING.
29528 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29530 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29532 2009-06-18 Pavel Roskin <proski@gnu.org>
29534 * conf/common.rmk: Add fs_file.mod.
29535 * disk/fs_file.c: New file.
29536 * include/grub/disk.h (enum grub_disk_dev_id): Add
29537 GRUB_DISK_DEVICE_FILE_ID.
29539 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29541 Fix build with Apple's toolchain. Part 2
29543 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29546 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29548 Fix build with Apple's toolchain. Part 1
29550 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29552 * configure.ac: remove a leftover AC_MSG_RESULT
29553 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29556 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29560 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29561 (decomp_block): initialize ch
29562 use grub_memcpy instead of memcpy
29564 2009-06-17 Pavel Roskin <proski@gnu.org>
29566 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29567 version, use declarations needed to use vga_text as the startup
29570 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29571 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29573 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29574 and grub_at_keyboard_fini(), it's done on module load and
29577 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29579 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29580 file can't be found.
29581 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29583 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29585 Fix newline handling
29587 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29588 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29589 (grub_script_yylex): don't segfault on unterminated script
29590 newline terminates command and variable
29592 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29594 avoid double grub_adjust_range call. Bug reported by David Simner
29596 * kern/disk.c (grub_disk_write): change to raw disk access before
29599 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29601 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29602 spaces, for the benefit of help2man.
29603 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29605 2009-06-16 Pavel Roskin <proski@gnu.org>
29607 * kern/i386/halt.c: Include grub/machine/init.h.
29608 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29610 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29612 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29613 drivemap menuentry.
29615 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29617 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29620 2009-06-16 Pavel Roskin <proski@gnu.org>
29622 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29623 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29624 save %dx, we only need %dl and we never change it.
29625 * boot/i386/pc/cdboot.S: Don't set the root drive.
29626 * boot/i386/pc/pxeboot.S: Likewise.
29627 * include/grub/i386/pc/boot.h: Remove
29628 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29629 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29630 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29631 * kern/i386/pc/init.c (make_install_device): Remove references
29632 to grub_root_drive.
29633 * kern/i386/pc/startup.S: Likewise.
29634 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29636 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29640 * commands/xnu_uuid.c: new file
29641 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29642 (xnu_uuid_mod_SOURCES): new variable
29643 (xnu_uuid_mod_CFLAGS): likewise
29644 (xnu_uuid_mod_LDFLAGS): likewise
29645 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29646 * conf/i386-ieee1275.rmk: likewise
29647 * conf/i386-pc.rmk: likewise
29648 * conf/powerpc-ieee1275.rmk: likewise
29649 * conf/sparc64-ieee1275.rmk: likewise
29650 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
29652 2009-06-16 Pavel Roskin <proski@gnu.org>
29654 * configure.ac: Avoid '==' in test command, it's not portable.
29656 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29660 * commands/probe.c: new file
29661 * conf/common.rmk (pkglib_MODULES): add probe.mod
29662 (probe_mod_SOURCES): new variable
29663 (probe_mod_CFLAGS): likewise
29664 (probe_mod_LDFLAGS): likewise
29665 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29666 * conf/i386-ieee1275.rmk: likewise
29667 * conf/i386-pc.rmk: likewise
29668 * conf/powerpc-ieee1275.rmk: likewise
29669 * conf/sparc64-ieee1275.rmk: likewise
29671 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
29673 Fix handling of string like \"hello\" and "a
29676 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
29677 (grub_script_yylex): fix parsing of quoting, escaping and newline
29679 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
29681 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
29684 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
29686 * util/grub-mkconfig.in: Fix parsing of --output option.
29688 2009-06-12 Pavel Roskin <proski@gnu.org>
29690 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
29691 genmk.rb don't need to be generated or installed.
29693 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
29695 * commands/i386/pc/drivemap_int13h.S: add more comments
29697 2009-06-11 Pavel Roskin <proski@gnu.org>
29699 * Makefile.in (uninstall): Uninstall manuals.
29701 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
29702 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
29703 and update-grub_lib in two places.
29704 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
29706 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
29707 a compiler warning.
29709 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
29710 `entry_lo' to fix variable shadowing.
29712 2009-06-11 Christian Franke <franke@computer.org>
29714 * kern/misc.c (__enable_execute_stack): Add missing return type
29715 to prevent gcc warning.
29717 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29719 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
29721 2009-06-11 Pavel Roskin <proski@gnu.org>
29723 * Makefile.in: Don't rely on any scripts being executable.
29724 Always use $(SHELL) to run shell scripts.
29726 * configure.ac: Always define ___main if using -nostdlib. This
29727 fixes tests on Cygwin.
29729 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
29733 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
29734 is in bytes and not in blocks
29736 2009-06-11 Pavel Roskin <proski@gnu.org>
29738 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
29741 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29743 * util/grub.d/30_os-prober.in: Fix a comment. Source
29744 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
29745 to set the root device. Place drivemap command in the generated
29748 2009-06-11 Pavel Roskin <proski@gnu.org>
29750 * configure.ac: Remove host_m32. Issues with 64-bit utilities
29751 have long been resolved.
29753 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
29755 * util/grub.d/10_linux.in: Capitalise "Linux".
29757 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
29759 2009-06-11 Pavel Roskin <proski@gnu.org>
29761 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
29762 fix a gcc warning and ensure that the function won't ever exit.
29764 * kern/i386/ieee1275/init.c: Add missing prototype for
29765 grub_stop_floppy().
29767 * loader/ieee1275/multiboot2.c [__i386__]: Include
29768 grub/cpu/multiboot.h.
29770 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
29771 casts to short - they are not portable and cause warnings. Fix
29772 use of uninitialized values in input_buf. Use ARRAY_SIZE.
29774 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
29778 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
29780 (grub_get_root_biosnumber_saved): new variable
29781 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
29782 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
29783 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
29784 %dx after the call if necessary
29785 * conf/common.rmk (pkglib_MODULES): remove boot.mod
29786 (boot_mod_SOURCES): remove
29787 (boot_mod_CFLAGS): remove
29788 (boot_mod_LDFLAGS): remove
29789 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
29790 (boot_mod_SOURCES): new variable
29791 (boot_mod_CFLAGS): likewise
29792 (boot_mod_LDFLAGS): likewise
29793 * conf/i386-efi.rmk: likewise
29794 * conf/i386-ieee1275.rmk: likewise
29795 * conf/i386-pc.rmk: likewise
29796 * conf/powerpc-ieee1275.rmk: likewise
29797 * conf/sparc64-ieee1275.rmk: likewise
29798 * conf/x86_64-efi.rmk: likewise
29799 * include/grub/i386/pc/biosnum.h: new file
29800 * lib/i386/pc/biosnum.c: likewise
29801 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
29802 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
29803 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
29805 2009-06-10 Pavel Roskin <proski@gnu.org>
29807 * io/gzio.c (test_header): Don't reuse one buffer for all data.
29808 Use separate variables. Read only the file size at the end, but
29809 not the checksum that we don't use.
29811 * kern/file.c (grub_file_read): Use void pointer for the buffer.
29812 Adjust all callers.
29814 * kern/ieee1275/openfw.c: Remove libc includes.
29815 * kern/ieee1275/cmain.c: Likewise.
29816 * include/grub/ieee1275/ieee1275.h: Likewise.
29818 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
29821 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29823 * Makefile.in: Remove all trailing whitespace.
29824 * conf/i386-pc.rmk: Likewise.
29825 * conf/powerpc-ieee1275.rmk: Likewise.
29826 * conf/sparc64-ieee1275.rmk: Likewise.
29827 * docs/grub.texi: Likewise.
29828 * docs/texinfo.tex: Likewise.
29829 * disk/fs_uuid.c: Likewise.
29830 * disk/lvm.c: Likewise.
29831 * disk/scsi.c: Likewise.
29832 * disk/ata.c: Likewise.
29833 * disk/ieee1275/ofdisk.c: Likewise.
29834 * disk/i386/pc/biosdisk.c: Likewise.
29835 * disk/host.c: Likewise.
29836 * disk/raid.c: Likewise.
29837 * disk/efi/efidisk.c: Likewise.
29838 * disk/usbms.c: Likewise.
29839 * disk/memdisk.c: Likewise.
29840 * disk/loopback.c: Likewise.
29841 * kern/powerpc/dl.c: Likewise.
29842 * kern/device.c: Likewise.
29843 * kern/dl.c: Likewise.
29844 * kern/sparc64/dl.c: Likewise.
29845 * kern/ieee1275/ieee1275.c: Likewise.
29846 * kern/term.c: Likewise.
29847 * kern/fs.c: Likewise.
29848 * kern/i386/dl.c: Likewise.
29849 * kern/i386/pc/startup.S: Likewise.
29850 * kern/i386/pc/init.c: Likewise.
29851 * kern/i386/pc/mmap.c: Likewise.
29852 * kern/i386/pc/lzo1x.S: Likewise.
29853 * kern/i386/ieee1275/init.c: Likewise.
29854 * kern/i386/realmode.S: Likewise.
29855 * kern/i386/tsc.c: Likewise.
29856 * kern/partition.c: Likewise.
29857 * kern/corecmd.c: Likewise.
29858 * kern/file.c: Likewise.
29859 * kern/efi/efi.c: Likewise.
29860 * kern/efi/init.c: Likewise.
29861 * kern/efi/mm.c: Likewise.
29862 * kern/main.c: Likewise.
29863 * kern/err.c: Likewise.
29864 * kern/env.c: Likewise.
29865 * kern/disk.c: Likewise.
29866 * kern/generic/millisleep.c: Likewise.
29867 * kern/generic/rtc_get_time_ms.c: Likewise.
29868 * kern/misc.c: Likewise.
29869 * kern/parser.c: Likewise.
29870 * genmk.rb: Likewise.
29871 * configure.ac: Likewise.
29872 * boot/i386/pc/diskboot.S: Likewise.
29873 * boot/i386/pc/pxeboot.S: Likewise.
29874 * boot/i386/pc/boot.S: Likewise.
29875 * boot/i386/pc/lnxboot.S: Likewise.
29876 * boot/i386/pc/cdboot.S: Likewise.
29877 * parttool/pcpart.c: Likewise.
29878 * video/readers/tga.c: Likewise.
29879 * video/video.c: Likewise.
29880 * video/bitmap.c: Likewise.
29881 * lib/envblk.c: Likewise.
29882 * lib/i386/setjmp.S: Likewise.
29883 * fs/xfs.c: Likewise.
29884 * fs/afs.c: Likewise.
29885 * fs/fat.c: Likewise.
29886 * fs/ntfs.c: Likewise.
29887 * fs/udf.c: Likewise.
29888 * fs/affs.c: Likewise.
29889 * fs/iso9660.c: Likewise.
29890 * fs/hfs.c: Likewise.
29891 * fs/fshelp.c: Likewise.
29892 * fs/ext2.c: Likewise.
29893 * fs/jfs.c: Likewise.
29894 * fs/reiserfs.c: Likewise.
29895 * fs/hfsplus.c: Likewise.
29896 * fs/minix.c: Likewise.
29897 * fs/cpio.c: Likewise.
29898 * fs/sfs.c: Likewise.
29899 * fs/ufs.c: Likewise.
29900 * efiemu/prepare.c: Likewise.
29901 * efiemu/loadcore_common.c: Likewise.
29902 * efiemu/runtime/efiemu.sh: Likewise.
29903 * efiemu/runtime/efiemu.S: Likewise.
29904 * efiemu/runtime/efiemu.c: Likewise.
29905 * efiemu/pnvram.c: Likewise.
29906 * efiemu/main.c: Likewise.
29907 * efiemu/i386/pc/cfgtables.c: Likewise.
29908 * efiemu/i386/loadcore64.c: Likewise.
29909 * efiemu/i386/loadcore32.c: Likewise.
29910 * efiemu/loadcore.c: Likewise.
29911 * efiemu/symbols.c: Likewise.
29912 * efiemu/mm.c: Likewise.
29913 * include/grub/autoefi.h: Likewise.
29914 * include/grub/datetime.h: Likewise.
29915 * include/grub/term.h: Likewise.
29916 * include/grub/hfs.h: Likewise.
29917 * include/grub/lvm.h: Likewise.
29918 * include/grub/i386/tsc.h: Likewise.
29919 * include/grub/i386/linux.h: Likewise.
29920 * include/grub/i386/xnu.h: Likewise.
29921 * include/grub/i386/efiemu.h: Likewise.
29922 * include/grub/i386/pc/biosdisk.h: Likewise.
29923 * include/grub/i386/pc/memory.h: Likewise.
29924 * include/grub/i386/pc/vbe.h: Likewise.
29925 * include/grub/parttool.h: Likewise.
29926 * include/grub/video.h: Likewise.
29927 * include/grub/memory.h: Likewise.
29928 * include/grub/fs.h: Likewise.
29929 * include/grub/partition.h: Likewise.
29930 * include/grub/xnu.h: Likewise.
29931 * include/grub/efi/api.h: Likewise.
29932 * include/grub/efi/pe32.h: Likewise.
29933 * include/grub/efi/memory.h: Likewise.
29934 * include/grub/multiboot.h: Likewise.
29935 * include/grub/usbdesc.h: Likewise.
29936 * include/grub/multiboot2.h: Likewise.
29937 * include/grub/acpi.h: Likewise.
29938 * include/grub/efiemu/efiemu.h: Likewise.
29939 * include/grub/disk.h: Likewise.
29940 * include/grub/ieee1275/ieee1275.h: Likewise.
29941 * include/grub/net.h: Likewise.
29942 * include/grub/machoload.h: Likewise.
29943 * include/grub/macho.h: Likewise.
29944 * include/multiboot.h: Likewise.
29945 * genmoddep.awk: Likewise.
29946 * normal/main.c: Likewise.
29947 * normal/menu_entry.c: Likewise.
29948 * normal/menu_viewer.c: Likewise.
29949 * normal/completion.c: Likewise.
29950 * normal/cmdline.c: Likewise.
29951 * normal/misc.c: Likewise.
29952 * normal/datetime.c: Likewise.
29953 * bus/usb/usbtrans.c: Likewise.
29954 * bus/usb/ohci.c: Likewise.
29955 * bus/usb/uhci.c: Likewise.
29956 * bus/usb/usb.c: Likewise.
29957 * mmap/efi/mmap.c: Likewise.
29958 * mmap/i386/pc/mmap_helper.S: Likewise.
29959 * mmap/i386/pc/mmap.c: Likewise.
29960 * mmap/i386/mmap.c: Likewise.
29961 * mmap/i386/uppermem.c: Likewise.
29962 * mmap/mmap.c: Likewise.
29963 * commands/acpi.c: Likewise.
29964 * commands/echo.c: Likewise.
29965 * commands/blocklist.c: Likewise.
29966 * commands/loadenv.c: Likewise.
29967 * commands/usbtest.c: Likewise.
29968 * commands/boot.c: Likewise.
29969 * commands/parttool.c: Likewise.
29970 * commands/search.c: Likewise.
29971 * commands/cat.c: Likewise.
29972 * commands/i386/pc/play.c: Likewise.
29973 * commands/i386/pc/drivemap.c: Likewise.
29974 * commands/i386/pc/vbeinfo.c: Likewise.
29975 * commands/i386/pc/acpi.c: Likewise.
29976 * commands/i386/pc/vbetest.c: Likewise.
29977 * commands/ls.c: Likewise.
29978 * commands/cmp.c: Likewise.
29979 * commands/test.c: Likewise.
29980 * commands/efi/acpi.c: Likewise.
29981 * commands/gptsync.c: Likewise.
29982 * commands/help.c: Likewise.
29983 * partmap/amiga.c: Likewise.
29984 * partmap/apple.c: Likewise.
29985 * partmap/acorn.c: Likewise.
29986 * partmap/pc.c: Likewise.
29987 * partmap/sun.c: Likewise.
29988 * partmap/gpt.c: Likewise.
29989 * script/sh/lexer.c: Likewise.
29990 * script/sh/function.c: Likewise.
29991 * font/font.c: Likewise.
29992 * font/font_cmd.c: Likewise.
29993 * loader/powerpc/ieee1275/linux.c: Likewise.
29994 * loader/efi/chainloader.c: Likewise.
29995 * loader/multiboot_loader.c: Likewise.
29996 * loader/macho.c: Likewise.
29997 * loader/i386/multiboot.c: Likewise.
29998 * loader/i386/linux.c: Likewise.
29999 * loader/i386/pc/linux.c: Likewise.
30000 * loader/i386/pc/multiboot2.c: Likewise.
30001 * loader/i386/pc/chainloader.c: Likewise.
30002 * loader/i386/pc/xnu.c: Likewise.
30003 * loader/i386/bsd_trampoline.S: Likewise.
30004 * loader/i386/efi/linux.c: Likewise.
30005 * loader/i386/multiboot_elfxx.c: Likewise.
30006 * loader/i386/bsd_helper.S: Likewise.
30007 * loader/i386/bsd.c: Likewise.
30008 * loader/i386/linux_trampoline.S: Likewise.
30009 * loader/i386/xnu_helper.S: Likewise.
30010 * loader/i386/xnu.c: Likewise.
30011 * loader/i386/bsd_pagetable.c: Likewise.
30012 * loader/i386/multiboot_helper.S: Likewise.
30013 * loader/xnu.c: Likewise.
30014 * loader/xnu_resume.c: Likewise.
30015 * io/gzio.c: Likewise.
30016 * term/efi/console.c: Likewise.
30017 * term/terminfo.c: Likewise.
30018 * term/ieee1275/ofconsole.c: Likewise.
30019 * term/i386/pc/serial.c: Likewise.
30020 * term/i386/pc/vesafb.c: Likewise.
30021 * term/i386/pc/vga.c: Likewise.
30022 * term/usb_keyboard.c: Likewise.
30023 * term/gfxterm.c: Likewise.
30024 * aclocal.m4: Likewise.
30025 * util/lvm.c: Likewise.
30026 * util/grub.d/30_os-prober.in: Likewise.
30027 * util/grub.d/10_hurd.in: Likewise.
30028 * util/console.c: Likewise.
30029 * util/grub-macho2img.c: Likewise.
30030 * util/grub-probe.c: Likewise.
30031 * util/hostfs.c: Likewise.
30032 * util/i386/pc/grub-mkimage.c: Likewise.
30033 * util/i386/pc/grub-setup.c: Likewise.
30034 * util/i386/efi/grub-mkimage.c: Likewise.
30035 * util/grub-mkconfig.in: Likewise.
30036 * util/raid.c: Likewise.
30037 * util/resolve.c: Likewise.
30038 * util/grub-mkdevicemap.c: Likewise.
30039 * util/grub-emu.c: Likewise.
30040 * util/getroot.c: Likewise.
30041 * util/hostdisk.c: Likewise.
30042 * util/usb.c: Likewise.
30043 * util/grub-editenv.c: Likewise.
30044 * util/misc.c: Likewise.
30046 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30048 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30049 `genparttoollist.sh'.
30050 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30051 Add `*.sh' to the list find searches for and change `mdate.sh'
30054 2009-06-10 Pavel Roskin <proski@gnu.org>
30056 * include/grub/multiboot2.h: Provide compatibility defines for
30058 * include/multiboot2.h: Include stdint.h only if needed, using
30060 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30062 * loader/ieee1275/multiboot2.c: Likewise.
30063 * loader/multiboot2.c: Likewise.
30064 * loader/multiboot_loader.c: Likewise.
30066 * configure.ac: Use -nostdlib when probing for the target. It
30067 should not be required to have libc for the target.
30069 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30070 they fail without libc headers for the target.
30071 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30073 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30074 preprocessor conditionals.
30076 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30077 build system doesn't need to be aware of the tar.c internals.
30079 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30081 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30083 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30085 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30086 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30088 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30090 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30091 aren't available if ata.mod gets used.
30093 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30095 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30096 initialising controller.
30097 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30099 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30101 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30102 to choose between ata and biosdisk module on i386-pc.
30104 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30106 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30107 Subclass and Programming Interface fields in terms of the 3 byte
30108 Class Code register.
30109 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30111 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30112 interface is OHCI. Add grub_dprintf for symmetry with
30114 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30115 interface is UHCI. Add interf variable for programming
30116 interface. Print interface with class/subclass.
30118 * bus/usb/ohci.c: Set interf with correct field.
30120 * bus/usb/uhci.c: Remove unneeded doubled lines.
30121 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30122 Remove whitespace inside comment.
30124 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30126 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30127 as fallback an equivalent option without depth.
30129 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30131 Not fail if unable to retrieve C/H/S on LBA disks
30133 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30134 if unable to retrieve C/H/S on LBA disks
30136 2009-06-08 Pavel Roskin <proski@gnu.org>
30138 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30141 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30143 * Makefile.in (uninstall): Remove all $lib_DATA files.
30145 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30147 Bugfix: install on partitionless device
30149 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30152 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30154 * Makefile.in (uninstall): Remove all $include_DATA files.
30156 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30158 * commands/true.c: New file. Implement the true and false commands.
30159 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30160 (true_mod_SOURCES): New variable.
30161 (true_mod_CFLAGS): Likewise.
30162 (true_mod_LDFLAGS): Likewise.
30164 2009-06-05 Colin D Bennett <colin@gibibit.com>
30166 Optimized font character lookup using binary search instead of linear
30167 search. Fonts now are required to have the character index ordered by
30170 * font/font.c (load_font_index): Verify that fonts have ordered
30172 (find_glyph): Use binary search instead of linear search to find a
30173 character in a font.
30175 2009-06-05 Michael Scherer <misc@mandriva.org>
30177 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30178 uses case sensitive btree.
30179 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30180 only for case insensitive filesystems.
30182 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30184 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30185 * conf/common.rmk (search_mod_CFLAGS): likewise
30187 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30189 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30190 compensate a compiler bug
30192 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30194 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30197 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30199 Definitions for creating asm symbols with Apple's CC
30201 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30202 [APPLE_CC] (VARIABLE): likewise
30204 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30206 Disable lnxboot.img when compiled
30209 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30210 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30211 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30212 [! APPLE_CC] (CODE_LENG): skip
30213 [! APPLE_CC] (setup_sects): likewise
30214 [! APPLE_CC]: skip filling
30216 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30218 Address in trampolines based on 32-bit registers when compiled
30221 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30223 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30225 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30227 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30229 * kern/misc.c [APPLE_CC] (memcpy): new function
30230 [APPLE_CC] (memmove): likewise
30231 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30232 (memcpy): define alias conditionally on !APPLE_CC
30235 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30236 APPLE_CC are defined
30237 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30238 (grub_assert_fail): make prototype conditional
30240 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30242 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30244 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30246 (CLEANFILES): add grub-macho2img
30247 (grub_macho2img_SOURCES): new variable
30248 * kern/i386/pc/startup.S (bss_start): new variable
30249 (bss_end): likewise
30250 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30251 * util/grub-macho2img.c: new file
30253 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30255 Use objconv when compiling with Apple's CC
30257 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30258 (efiemu64.o): likewise
30259 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30260 when compiling with Apple's CC
30261 (efiemu64_s.o): likewise
30262 * configure.ac: check for objconv when compiling with Apple's CC
30263 * genmk.rb: use objconv for modules when compiled with Apple's CC
30265 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30267 Define segment as well as section when compiling with
30270 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30271 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30272 (efiemu_convert_pointer): likewise
30273 (efiemu_set_virtual_address_map): likewise
30274 (efiemu_convert_pointer): likewise
30275 (efiemu_getcrc32): likewise
30276 (init_crc32_table): likewise
30277 (reflect): likewise
30278 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30279 (GRUB_MOD_DEP): likewise
30281 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30283 Allow a compilation without -mcmodel=large
30285 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30286 when compiled without -mcmodel=large
30287 (filter_memory_map): remove memory post 4 GiB when compiled
30288 without -mcmodel=large
30289 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30290 TARGET_CFLAGS when -mcmodel=large isn't supported
30292 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30294 Remove nested functions in efiemu core
30296 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30298 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30300 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30302 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30304 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30306 (grub_cpu_is_tsc_supported): likewise
30307 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30309 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30311 Absolute addressing through constant with Apple's cc
30313 * kern/i386/pc/startup.S: Define necessary constants
30314 and address through it when using ABS with Apple's CC
30315 * boot/i386/pc/diskboot.S: likewise
30316 * boot/i386/pc/boot.S: likewise
30317 * boot/i386/pc/lnxboot.S: likewise
30318 * boot/i386/pc/cdboot.S: likewise
30319 * mmap/i386/pc/mmap_helper.S: likewise
30320 * commands/i386/pc/drivemap_int13h.S: likewise
30322 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30324 Check if compiler is apple cc
30326 * Makefile.in (ASFLAGS): new variable
30327 (TARGET_ASFLAGS): likewise
30328 (TARGET_MODULE_FORMAT): likewise
30329 (TARGET_APPLE_CC): likewise
30330 (OBJCONV): likewise
30331 (TARGET_IMG_CFLAGS): likewise
30332 (TARGET_CPPFLAGS): add includedir
30333 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30334 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30335 Check for linker script only if compiler isn't Apple's CC
30336 (TARGET_MODULE_FORMAT): set
30337 (TARGET_APPLE_CC): likewise
30338 (TARGET_ASFLAGS): likewise
30339 (ASFLAGS): likewise
30340 Check for objcopy only if compiler isn't Apple's CC
30341 Check for BSS symbol only if compiler isn't Apple's CC
30342 * genmk.rb: adapt nm options if we use Apple's utils
30343 * aclocal.m4 (grub_apple_cc): new test
30344 (grub_apple_target_cc): likewise
30346 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30348 Simplify sed expressions and improve awk
30350 * Makefile.in (install-local): simplify sed expression
30351 * gencmdlist.sh: likewise
30352 * genmoddep.awk: avoid adding module as a dependency of itself
30354 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30356 Add missing start symbols
30358 * boot/i386/pc/boot.S: add start
30359 * boot/i386/pc/pxeboot.S: likewise
30361 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30363 Fix wrong assumptions with grub-mkimage on EFI
30365 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30366 (relocate_addresses): consider both r_addend and value at offset
30367 (make_mods_section): zerofill modinfo and header
30368 (convert_elf): write prefix here
30370 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30372 Use .asciz instead of .string
30374 * i386/pc/diskboot.S: use .asciz instead of .string
30375 * i386/pc/boot.S: likewise
30376 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30377 (GRUB_MOD_NAME): likewise
30379 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30383 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30384 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30385 (grub_video_setup): remove
30386 (grub_video_set_mode): new prototype
30387 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30389 (linux_vesafb_res): compile only on PCBIOS
30390 (grub_linux_boot): support gfxpayload
30391 * loader/i386/pc/xnu.c (video_hook): new function
30392 (grub_xnu_set_video): support gfxpayload
30393 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30394 (DEFAULT_VIDEO_HEIGHT): likewise
30395 (DEFAULT_VIDEO_FLAGS): likewise
30396 (DEFAULT_VIDEO_MODE): new definition
30397 (video_hook): new function
30398 (grub_gfxterm_init): use grub_video_set_mode
30399 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30401 * video/video.c (grub_video_setup): removed
30402 (grub_video_set_mode): new function based on grub_gfxterm_init and
30405 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30407 Avoid calling biosdisk in drivemap
30409 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30410 (revparse_biosdisk): likewise
30411 (list_mappings): derive name from id directly
30412 (grub_cmd_drivemap): use tryparse_diskstring
30414 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30418 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30419 (grub_lexer_param): add tokenonhold
30420 (grub_script_create_cmdline): remove cmdline. All callers updated
30421 (grub_script_function_create): make functionname
30422 grub_script_arg. All callers updated
30423 (grub_script_execute_argument_to_string): new prototype
30424 * kern/parser.c (state_transitions): reorder
30425 (grub_parser_cmdline_state): fix a bug and make more compact
30426 * script/sh/execute.c (grub_script_execute_argument_to_string):
30428 (grub_script_execute_cmdline): use new format
30429 * script/sh/function.c (grub_script_function_create): make functionname
30430 grub_script_arg. All callers updated
30431 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30432 (grub_script_yylex): remove
30433 (grub_script_yylex2): renamed to ...
30434 (grub_script_yylex): ...renamed
30435 parse the expressions like a${b}c
30436 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30437 (GRUB_PARSER_TOKEN_VAR): remove
30438 (GRUB_PARSER_TOKEN_NAME): likewise
30439 ("if"): declare as typeless
30440 ("while"): likewise
30441 ("function"): likewise
30446 (argument): likewise
30447 (script): accept empty scripts and make exit on error
30448 (arguments): use GRUB_PARSER_TOKEN_ARG
30449 (function): likewise
30450 (command): move error handling to script
30451 (menuentry): move grub_script_lexer_ref before
30452 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30453 argument. All callers updated
30455 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30457 Prevent GRUB from probing floppies during boot.
30459 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30460 * commands/search.c (options): Add --no-floppy.
30461 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30462 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30463 --no-floppy when searching for UUIDs.
30465 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30467 Simplify the code duplication in commands/search.c.
30469 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30470 (search_fs): ... this. Update all users.
30472 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30474 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30476 2009-05-28 Pavel Roskin <proski@gnu.org>
30478 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30479 Remove the original symlink explicitly.
30481 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30482 just one slash. That's how grub_fshelp_find_file() does it.
30484 2009-05-26 Pavel Roskin <proski@gnu.org>
30486 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30489 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30492 2009-05-25 Christian Franke <franke@computer.org>
30494 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30496 (grub_atapi_identify): Add wait after drive select.
30497 (grub_ata_identify): Do more strict status register check before
30498 calling grub_atapi_identify (). Suppress error message if status
30499 register is 0x00 after command failure. Add status register
30500 check after PIO read to avoid bogus identify due to stuck DRQ.
30501 Thanks to Pavel Roskin for testing.
30502 (grub_device_initialize): Remove unsafe status register check.
30503 Thanks to 'phcoder' for problem report and patch.
30504 Prevent sign extension in debug message.
30506 2009-05-23 Colin D Bennett <colin@gibibit.com>
30508 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30509 definition file, and functions defined in `normal/menu.c' have had
30510 their prototypes moved to `include/grub/menu.h' for consistency.
30512 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30514 (grub_menu_get_entry): Likewise.
30515 (grub_menu_get_timeout): Likewise.
30516 (grub_menu_set_timeout): Likewise.
30517 (grub_menu_execute_entry): Likewise.
30518 (grub_menu_execute_with_fallback): Likewise.
30519 (grub_menu_entry_run): Likewise.
30521 * include/grub/normal.h: Re-ordered and grouped function
30522 prototypes by file that the function is defined in.
30523 (grub_menu_execute_callback): Removed; moved to menu.h.
30524 (grub_menu_get_entry): Likewise.
30525 (grub_menu_get_timeout): Likewise.
30526 (grub_menu_set_timeout): Likewise.
30527 (grub_menu_execute_entry): Likewise.
30528 (grub_menu_execute_with_fallback): Likewise.
30529 (grub_menu_entry_run): Likewise.
30530 (grub_menu_addentry): Renamed from this ...
30531 (grub_normal_add_menu_entry): ... to this.
30533 * normal/main.c (grub_menu_addentry): Renamed from this ...
30534 (grub_normal_add_menu_entry): ... to this.
30536 * script/sh/execute.c (grub_script_execute_menuentry): Update
30537 reference to renamed grub_menu_addentry function.
30539 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30541 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30543 2009-05-22 Pavel Roskin <proski@gnu.org>
30545 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30546 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30547 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30548 compiling for the i386 targets, but not for the utilities.
30550 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30552 (grub_root_drive): Likewise.
30553 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30555 (grub_root_drive): Change size to byte.
30556 (grub_start_addr): Remove.
30557 (grub_end_addr): Likewise.
30558 (grub_apm_bios_info): Likewise.
30560 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30562 * normal/i386: Remove.
30563 * normal/powerpc: Likewise.
30564 * normal/sparc64: Likewise.
30565 * normal/x86_64: Likewise.
30567 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30569 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30570 * loader/i386/linux_trampoline.S: Fix indentation
30571 * loader/i386/xnu_helper.S: Likewise
30573 2009-05-18 Colin D Bennett <colin@gibibit.com>
30575 Display error messages when parsing a Lua statement fails.
30576 Previously, executing a syntactically invalid statement like
30577 ")foo" or "bar;" would silently fail.
30579 * script/lua/grub_main.c (handle_lua_error): New function.
30580 (grub_lua_parse_line): Improved reporting of Lua parser and
30583 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30585 Remove -Werror which causes build to fail on some systems
30587 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30588 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30589 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30591 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30593 trampoline for linux on 64-bit platform
30595 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30596 loader/i386/efi/linux_trampoline.S
30597 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30599 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30601 * loader/i386/linux_trampoline.S: moved here
30602 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30604 (jumpvector): removed
30605 (grub_linux_trampoline_start): new declaration
30606 (grub_linux_trampoline_end): likewise
30607 (grub_linux_boot): use trampoline when on 64-bit platform
30608 * loader/i386/linux.c: likewise
30610 2009-05-16 Pavel Roskin <proski@gnu.org>
30612 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30613 const to avoid a warning.
30614 (grub_lua_setenv): Likewise.
30615 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30616 lmsg to fix a warning.
30618 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30620 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30621 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30622 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30623 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30624 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30625 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30626 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30627 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30629 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30631 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30633 2009-05-16 Bean <bean123ch@gmail.com>
30635 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30636 (lua_mod_SOURCES): New variable.
30637 (lua_mod_CFLAGS): Likewise.
30638 (lua_mod_LDFLAGS): Likewise.
30640 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30641 (setjmp_mod_SOURCES): New variable.
30642 (setjmp_mod_CFLAGS): Likewise.
30643 (setjmp_LDFLAGS): Likewise.
30645 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
30646 (setjmp_mod_SOURCES): New variable.
30647 (setjmp_mod_CFLAGS): Likewise.
30648 (setjmp_LDFLAGS): Likewise.
30650 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30651 (setjmp_mod_SOURCES): New variable.
30652 (setjmp_mod_CFLAGS): Likewise.
30653 (setjmp_LDFLAGS): Likewise.
30655 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30656 (setjmp_mod_SOURCES): New variable.
30657 (setjmp_mod_CFLAGS): Likewise.
30658 (setjmp_LDFLAGS): Likewise.
30660 * normal/i386/setjmp.S: Moved from here ...
30661 * lib/i386/setjmp.S: ... Moved here
30662 * normal/x86_64/setjmp.S: Moved from here ...
30663 * lib/x86_64/setjmp.S: ... Moved here
30664 * normal/powerpc/setjmp.S: Moved from here ...
30665 * lib/powerpc/setjmp.S: ... Moved here
30666 * normal/sparc64/setjmp.S: Moved from here ...
30667 * lib/sparc64/setjmp.S: ... Moved here
30669 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
30670 returns_twice in mingw.
30672 * script/lua/grub_lib.c: New file.
30673 * script/lua/grub_lib.h: Likewise.
30674 * script/lua/grub_lua.h: Likewise.
30675 * script/lua/grub_main.c: Likewise.
30676 * script/lua/lapi.c: Likewise.
30677 * script/lua/lapi.h: Likewise.
30678 * script/lua/lauxlib.c: Likewise.
30679 * script/lua/lauxlib.h: Likewise.
30680 * script/lua/lbaselib.c: Likewise.
30681 * script/lua/lcode.c: Likewise.
30682 * script/lua/lcode.h: Likewise.
30683 * script/lua/ldblib.c: Likewise.
30684 * script/lua/ldebug.c: Likewise.
30685 * script/lua/ldebug.h: Likewise.
30686 * script/lua/ldo.c: Likewise.
30687 * script/lua/ldo.h: Likewise.
30688 * script/lua/ldump.c: Likewise.
30689 * script/lua/lfunc.c: Likewise.
30690 * script/lua/lfunc.h: Likewise.
30691 * script/lua/lgc.c: Likewise.
30692 * script/lua/lgc.h: Likewise.
30693 * script/lua/linit.c: Likewise.
30694 * script/lua/liolib.c: Likewise.
30695 * script/lua/llex.c: Likewise.
30696 * script/lua/llex.h: Likewise.
30697 * script/lua/llimits.h: Likewise.
30698 * script/lua/lmathlib.c: Likewise.
30699 * script/lua/lmem.c: Likewise.
30700 * script/lua/lmem.h: Likewise.
30701 * script/lua/loadlib.c: Likewise.
30702 * script/lua/lobject.c: Likewise.
30703 * script/lua/lobject.h: Likewise.
30704 * script/lua/lopcodes.c: Likewise.
30705 * script/lua/lopcodes.h: Likewise.
30706 * script/lua/loslib.c: Likewise.
30707 * script/lua/lparser.c: Likewise.
30708 * script/lua/lparser.h: Likewise.
30709 * script/lua/lstate.c: Likewise.
30710 * script/lua/lstate.h: Likewise.
30711 * script/lua/lstring.c: Likewise.
30712 * script/lua/lstring.h: Likewise.
30713 * script/lua/lstrlib.c: Likewise.
30714 * script/lua/ltable.c: Likewise.
30715 * script/lua/ltable.h: Likewise.
30716 * script/lua/ltablib.c: Likewise.
30717 * script/lua/ltm.c: Likewise.
30718 * script/lua/ltm.h: Likewise.
30719 * script/lua/lua.h: Likewise.
30720 * script/lua/luaconf.h: Likewise.
30721 * script/lua/lualib.h: Likewise.
30722 * script/lua/lundump.c: Likewise.
30723 * script/lua/lundump.h: Likewise.
30724 * script/lua/lvm.c: Likewise.
30725 * script/lua/lvm.h: Likewise.
30726 * script/lua/lzio.c: Likewise.
30727 * script/lua/lzio.h: Likewise.
30729 2009-05-16 Bean <bean123ch@gmail.com>
30731 * include/grub/kernel.h (grub_module_header_types): Add type
30734 * kern/main.c (grub_load_config): New function.
30735 (grub_main): Call grub_load_config to read boot config.
30737 * grub-mkimage (generate_image): New parameter config_path.
30738 (options): New option --config.
30739 (main): Parse --config option, and pass it to generate_image.
30741 2009-05-14 Christian Franke <franke@computer.org>
30743 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
30744 This fixes build on Cygwin.
30746 2009-05-14 Pavel Roskin <proski@gnu.org>
30748 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
30749 jump. This saves two bytes, so the typical case of 2 swapped
30750 drives would fit 32 bytes.
30752 2009-05-13 Pavel Roskin <proski@gnu.org>
30754 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
30755 grub_uint32_t to avoid a warning.
30757 * loader/i386/linux.c (allocate_pages): When assigning
30758 real_mode_mem, cast through grub_size_t to fix a warning. The
30759 code already makes sure that the value would fit a pointer.
30760 (grub_linux_setup_video): Cast render_target->data to
30761 grub_size_t to fix a warning.
30763 2009-05-13 Javier Martín <lordhabbit@gmail.com>
30765 * commands/i386/pc/drivemap.c: New file - implement drivemap
30767 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
30768 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
30770 2009-05-13 Pavel Roskin <proski@gnu.org>
30772 * util/i386/pc/grub-setup.c (setup): Remove unused variable
30773 embedding_area_exists.
30775 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
30777 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
30778 it easier to understand / work with.
30779 Improve warning messages for cases where there's no embedding area,
30780 or when it is too small (or core.img too large).
30782 2009-05-13 Pavel Roskin <proski@gnu.org>
30784 * loader/i386/pc/multiboot2.c: Add necessary includes for
30785 grub_multiboot2_real_boot().
30787 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
30788 PX record is always little-endian. We only need the lower 2
30791 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
30792 facilitate code reuse.
30793 (grub_cpio_mount): Use "struct head", not a char buffer. This
30794 fixes a warning reported by gcc 4.4.
30796 * kernel/disk.c (grub_disk_read): Use void pointer for the
30798 (grub_disk_write): Use const void pointer for the buffer.
30799 Adjust all callers. Remove unnecessary casts.
30801 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
30803 * util/i386/pc/grub-install.in: Update copyright year.
30805 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30809 * commands/gptsync.c: new file
30810 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
30811 (gptsync_mod_SOURCES): new variable
30812 (gptsync_mod_CFLAGS): likewise
30813 (gptsync_mod_LDFLAGS): likewise
30814 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
30816 (GRUB_PC_PARTITION_TYPE_HFS): likewise
30817 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
30818 * conf/i386-ieee1275.rmk: likewise
30819 * conf/i386-pc.rmk: likewise
30820 * conf/powerpc-ieee1275.rmk: likewise
30822 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30826 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
30827 (grub_dl_ref): likewise
30829 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
30831 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
30832 split in two functions (one for msdos and one for gpt).
30834 2009-05-08 Pavel Roskin <proski@gnu.org>
30836 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
30839 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
30840 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
30841 Initialize them with -1. Add sanity check for bad1. Eliminate
30844 2009-05-08 David S. Miller <davem@davemloft.net>
30846 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
30848 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
30850 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
30853 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
30855 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30856 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
30858 2009-05-05 David S. Miller <davem@davemloft.net>
30860 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
30862 2009-05-05 Pavel Roskin <proski@gnu.org>
30864 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
30865 of grub_dl_ref() and grub_dl_unref().
30866 * commands/parttool.c: Remove preprocessor conditionals around
30867 grub_dl_ref() and grub_dl_unref().
30868 * fs/affs.c: Likewise.
30869 * fs/afs.c: Likewise.
30870 * fs/cpio.c: Likewise.
30871 * fs/ext2.c: Likewise.
30872 * fs/fat.c: Likewise.
30873 * fs/hfs.c: Likewise.
30874 * fs/hfsplus.c: Likewise.
30875 * fs/iso9660.c: Likewise.
30876 * fs/jfs.c: Likewise.
30877 * fs/minix.c: Likewise.
30878 * fs/ntfs.c: Likewise.
30879 * fs/reiserfs.c: Likewise.
30880 * fs/sfs.c: Likewise.
30881 * fs/udf.c: Likewise.
30882 * fs/ufs.c: Likewise.
30883 * fs/xfs.c: Likewise.
30884 * include/grub/dl.h: Likewise.
30885 * loader/xnu.c: Likewise.
30887 2009-05-04 Pavel Roskin <proski@gnu.org>
30889 * commands/acpi.c: Remove unused variable my_mod.
30890 * partmap/amiga.c: Likewise.
30891 * partmap/apple.c: Likewise.
30892 * partmap/gpt.c: Likewise.
30893 * partmap/pc.c: Likewise.
30894 * partmap/sun.c: Likewise.
30895 * term/gfxterm.c: Likewise.
30896 * term/i386/pc/vesafb.c: Likewise.
30897 * term/i386/pc/vga.c: Likewise.
30899 2009-05-04 David S. Miller <davem@davemloft.net>
30901 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
30902 pointer args to grub_ieee1275_get_property().
30904 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
30906 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
30907 devices, and do not traverse down under controller nodes.
30909 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
30910 (grub_ofdisk_open): Use it to un-escape "," characters.
30911 * kern/disk.c (find_part_sep): New.
30912 (grub_disk_open): Use it to find the first non-escaped ','
30913 character in the disk name.
30914 * util/ieee1275/devicemap.c (escape_of_path): New.
30915 (grub_util_emit_devicemap_entry): Use it.
30916 * util/sparc64/ieee1275/grub-install.in: Update script to
30917 strip partition specifiers properly by not triggering on
30918 '\' escaped ',' characters.
30920 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30922 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
30924 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
30926 (linux_vesafb_modes): Add a lot of additional modes to the list (based
30927 on documentation from Wikipedia).
30929 2009-05-04 Pavel Roskin <proski@gnu.org>
30931 * disk/ata.c: Spelling fixes.
30932 * disk/raid.c: Likewise.
30933 * disk/usbms.c: Likewise.
30934 * disk/dmraid_nvidia.c: Likewise.
30935 * kern/ieee1275/openfw.c: Likewise.
30936 * kern/ieee1275/init.c: Likewise.
30937 * kern/ieee1275/cmain.c: Likewise.
30938 * boot/i386/pc/cdboot.S: Likewise.
30939 * video/readers/png.c: Likewise.
30940 * video/i386/pc/vbe.c: Likewise.
30941 * fs/udf.c: Likewise.
30942 * fs/hfs.c: Likewise.
30943 * fs/reiserfs.c: Likewise.
30944 * efiemu/runtime/efiemu.c: Likewise.
30945 * efiemu/main.c: Likewise.
30946 * efiemu/mm.c: Likewise.
30947 * include/grub/elf.h: Likewise.
30948 * include/grub/xnu.h: Likewise.
30949 * include/grub/usbdesc.h: Likewise.
30950 * include/grub/usb.h: Likewise.
30951 * include/grub/script_sh.h: Likewise.
30952 * include/grub/lib/LzmaEnc.h: Likewise.
30953 * include/grub/efiemu/efiemu.h: Likewise.
30954 * include/grub/command.h: Likewise.
30955 * normal/menu.c: Likewise.
30956 * normal/main.c: Likewise.
30957 * normal/datetime.c: Likewise.
30958 * bus/usb/uhci.c: Likewise.
30959 * mmap/i386/uppermem.c: Likewise.
30960 * mmap/mmap.c: Likewise.
30961 * commands/acpi.c: Likewise.
30962 * commands/test.c: Likewise.
30963 * partmap/apple.c: Likewise.
30964 * font/font.c: Likewise.
30965 * loader/sparc64/ieee1275/linux.c: Likewise.
30966 * loader/macho.c: Likewise.
30967 * loader/i386/bsd_trampoline.S: Likewise.
30968 * loader/i386/bsd.c: Likewise.
30969 * loader/xnu.c: Likewise.
30970 * term/i386/pc/vesafb.c: Likewise.
30971 * term/usb_keyboard.c: Likewise.
30972 * util/resolve.c: Likewise.
30973 * util/getroot.c: Likewise.
30975 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30977 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
30979 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30981 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
30984 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30986 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
30987 parameter only available on BIOS.
30989 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30991 Removed wrong semicolon in declaration
30993 * grub/misc.h (grub_dprintf): remove semicolon
30995 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30997 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
30998 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
30999 is done by grub_cmd_linux() now).
31000 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31001 restore video to text mode.
31002 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31003 indicates lack of "vga=" parameter. "vga=0" is mapped to
31004 `GRUB_LINUX_VID_MODE_NORMAL'.
31006 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31008 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31009 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31010 and `normal/script.c'. Add `kern/rescue_reader.c',
31011 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31012 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31013 `grub_script.tab.c'.
31015 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31016 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31018 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31019 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31021 * Makefile.in: Remove duplicated 2008 in Copyright line.
31023 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31025 * util/misc.c (grub_util_warn): New function. Emits a warning
31027 * include/grub/util/misc.h (grub_util_warn): New declaration.
31029 * util/i386/pc/grub-install.in: Understand --force and pass it down
31032 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31034 (setup): Improve error messages and add warnings when requested to
31035 install in odd layouts. Refuse to install using blocklists unless
31038 2009-05-04 martin f. krafft <madduck@madduck.net>
31040 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31042 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31044 Updated copyright year
31046 * fs/hfsplus.c: updated copyright year
31048 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31052 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31053 in the space previously used by unused3
31054 (grub_hfsplus_uuid): new function
31055 (grub_hfsplus_fs): added uuid field
31057 2009-05-03 Pavel Roskin <proski@gnu.org>
31059 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31060 suppress warnings. It's no longer needed.
31061 * disk/host.c: Likewise.
31062 * disk/ata_pthru.c: Likewise.
31063 * disk/loopback.c: Likewise.
31064 * hook/datehook.c: Likewise.
31065 * parttool/pcpart.c: Likewise.
31066 * fs/i386/pc/pxe.c: Likewise.
31067 * fs/ntfscomp.c: Likewise.
31068 * efiemu/main.c: Likewise.
31069 * mmap/mmap.c: Likewise.
31070 * commands/crc.c: Likewise.
31071 * commands/hexdump.c: Likewise.
31072 * commands/hdparm.c: Likewise.
31073 * commands/acpi.c: Likewise.
31074 * commands/echo.c: Likewise.
31075 * commands/minicmd.c: Likewise.
31076 * commands/blocklist.c: Likewise.
31077 * commands/memrw.c: Likewise.
31078 * commands/loadenv.c: Likewise.
31079 * commands/usbtest.c: Likewise.
31080 * commands/lsmmap.c: Likewise.
31081 * commands/boot.c: Likewise.
31082 * commands/parttool.c: Likewise.
31083 * commands/configfile.c: Likewise.
31084 * commands/search.c: Likewise.
31085 * commands/ieee1275/suspend.c: Likewise.
31086 * commands/cat.c: Likewise.
31087 * commands/i386/pc/pxecmd.c: Likewise.
31088 * commands/i386/pc/play.c: Likewise.
31089 * commands/i386/pc/halt.c: Likewise.
31090 * commands/i386/pc/vbeinfo.c: Likewise.
31091 * commands/i386/pc/vbetest.c: Likewise.
31092 * commands/lspci.c: Likewise.
31093 * commands/date.c: Likewise.
31094 * commands/handler.c: Likewise.
31095 * commands/ls.c: Likewise.
31096 * commands/test.c: Likewise.
31097 * commands/cmp.c: Likewise.
31098 * commands/efi/loadbios.c: Likewise.
31099 * commands/efi/fixvideo.c: Likewise.
31100 * commands/halt.c: Likewise.
31101 * commands/help.c: Likewise.
31102 * commands/reboot.c: Likewise.
31103 * hello/hello.c: Likewise.
31104 * script/sh/main.c: Likewise.
31105 * loader/xnu.c: Likewise.
31106 * term/terminfo.c: Likewise.
31107 * term/i386/pc/serial.c: Likewise.
31108 * term/usb_keyboard.c: Likewise.
31110 2009-05-03 David S. Miller <davem@davemloft.net>
31112 * normal/menu.c: Include grub/parser.h
31114 2009-05-03 Pavel Roskin <proski@gnu.org>
31116 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31118 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31119 Suggested by Javier Martín <lordhabbit@gmail.com>
31121 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31122 efiemu??.o doesn't exist.
31123 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31126 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31128 FreeBSD 64-bit support
31130 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31131 and loader/i386/bsd_trampoline.S
31132 (bsd_mod_ASFLAGS): new variable
31133 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31134 (FREEBSD_MODTYPE_KERNEL64): likewise
31135 (grub_bsd64_trampoline_start): likewise
31136 (grub_bsd64_trampoline_end): likewise
31137 (grub_bsd64_trampoline_selfjump): likewise
31138 (grub_bsd64_trampoline_gdt): likewise
31139 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31140 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31141 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31142 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31143 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31145 * loader/i386/bsd_pagetable.c: new file
31146 * loader/i386/bsd_trampoline.S: likewise
31147 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31148 (ALIGN_VAR): likewise
31149 (entry_hi): new variable
31150 (kern_end_mdofs): likewise
31151 (is_64bit): likewise
31152 (grub_freebsd_add_meta): use ALIGN_VAR
31153 (grub_e820_mmap): new declaration
31154 (grub_freebsd_add_mmap): new function
31155 (grub_freebsd_add_meta_module): support 64 bit kernels
31156 (grub_freebsd_list_modules): use ALIGN_VAR
31157 (gdt_descriptor): new declaration
31158 (grub_freebsd_boot): support 64 bit kernels
31159 (grub_bsd_elf64_hook): new function
31160 (grub_bsd_load_elf): support elf64
31162 2009-05-03 Bean <bean123ch@gmail.com>
31164 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31165 after we get the result of if statement.
31167 2009-05-03 Bean <bean123ch@gmail.com>
31169 * Makefile.in (enable_efiemu): New variable.
31171 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31173 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31175 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31176 path, add -mno-red-zone option.
31177 (efiemu64_s.o): Likewise.
31178 (efiemu64.o): Use macro $^ for source file.
31180 * configure.ac (--enable-efiemu): New option.
31182 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31186 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31187 (pkglib_MODULES): add xnu.mod
31188 (xnu_mod_SOURCES): new variable
31189 (xnu_mod_CFLAGS): likewise
31190 (xnu_mod_LDFLAGS): likewise
31191 (xnu_mod_ASFLAGS): likewise
31192 * conf/i386-pc.rmk: likewise
31193 * conf/x86_64-efi.rmk: likewise
31194 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31196 * include/grub/i386/macho.h: new file
31197 * include/grub/i386/xnu.h: likewise
31198 * include/grub/macho.h: likewise
31199 * include/grub/machoload.h: likewise
31200 * include/grub/x86_64/macho.h: likewise
31201 * include/grub/x86_64/xnu.h: likewise
31202 * include/grub/xnu.h: likewise
31203 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31204 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31205 * loader/i386/efi/xnu.c: new file
31206 * loader/i386/pc/xnu.c: likewise
31207 * loader/i386/xnu.c: likewise
31208 * loader/i386/xnu_helper.S: likewise
31209 * loader/macho.c: likewise
31210 * loader/xnu.c: likewise
31211 * loader/xnu_resume.c: likewise
31212 * util/grub-dumpdevtree: likewise
31213 * include/grub/i386/pit.h: include grub/err.h
31214 (grub_pit_wait): export
31215 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31217 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31221 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31222 _linux_efi, linux_efi.
31223 new files in grub-emu
31224 new targets efiemu32.o and efiemu64.o
31225 * loader/linux_normal_efiemu.c: likewise
31226 * loader/i386/efi/linux.c: added preliminary efiemu support
31227 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31229 * include/grub/autoefi.h: new file
31230 * include/grub/i386/efiemu.h: likewise
31231 * include/grub/i386/pc/efiemu.h: likewise
31232 * include/grub/efi/api.h: add LL suffix when necessary
31233 new definitions relating to tables
31234 * include/grub/efiemu/efiemu.h: new file
31235 * include/grub/efiemu/runtime.h: likewise
31236 * efiemu/prepare.c: likewise
31237 * efiemu/loadcore_common.c: likewise
31238 * efiemu/loadcore64.c: likewise
31239 * efiemu/runtime/efiemu.sh: likewise
31240 * efiemu/runtime/efiemu.S: likewise
31241 * efiemu/runtime/efiemu.c: likewise
31242 * efiemu/runtime/config.h: likewise
31243 * efiemu/prepare32.c: likewise
31244 * efiemu/main.c: likewise
31245 * efiemu/modules/pnvram.c: likewise
31246 * efiemu/modules/i386: likewise
31247 * efiemu/modules/i386/pc: likewise
31248 * efiemu/modules/acpi.c: likewise
31249 * efiemu/i386/pc/cfgtables.c: likewise
31250 * efiemu/i386/loadcore64.c: likewise
31251 * efiemu/i386/loadcore32.c: likewise
31252 * efiemu/prepare64.c: likewise
31253 * efiemu/loadcore.c: likewise
31254 * efiemu/symbols.c: likewise
31255 * efiemu/mm.c: likewise
31256 * efiemu/loadcore32.c: likewise
31258 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31262 * commands/acpi.c: new file
31263 * commands/i386/pc/acpi.c: likewise
31264 * commands/efi/acpi.c: likewise
31265 * include/grub/acpi.h: likewise
31266 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31267 (acpi_mod_SOURCES): new variable
31268 (acpi_mod_CFLAGS): likewise
31269 (acpi_mod_LDFLAGS): likewise
31270 * conf/i386-efi.rmk: likewise
31271 * conf/x86_64-efi.rmk: likewise
31273 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31275 Missing part from mmap patch
31277 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31278 (grub_mmap_unregister)
31279 (grub_mmap_free_and_unregister): use grub_mmap_register
31281 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31285 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31286 * loader/i386/linux.c (find_mmap_size): likewise
31287 (allocate_pages): likewise
31288 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31289 (grub_fill_multiboot_mmap): likewise
31290 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31291 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31292 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31293 (OPENBSD_MMAP_RESERVED): likewise
31294 * include/grub/i386/pc/memory.h: include grub/memory.h
31295 (grub_lower_mem): removed
31296 (grub_upper_mem): likewise
31297 (GRUB_MACHINE_MEMORY_ACPI): new definition
31298 (GRUB_MACHINE_MEMORY_NVS): likewise
31299 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31300 (GRUB_MACHINE_MEMORY_HOLE): likewise
31301 (grub_machine_mmap_register): likewise
31302 (grub_machine_mmap_unregister): likewise
31303 (grub_machine_get_upper): likewise
31304 (grub_machine_get_lower): likewise
31305 (grub_machine_get_post64): likewise
31306 * include/grub/i386/efi/memory.h: new file
31307 * include/grub/x86_64/efi/memory.h: likewise
31308 * include/grub/efi/memory.h: likewise
31309 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31310 (mmap_mod_SOURCES): new variable
31311 (mmap_mod_LDFLAGS): likewise
31312 (mmap_mod_ASFLAGS): likewise
31313 * conf/i386-coreboot.rmk: likewise
31314 * conf/i386-ieee1275.rmk: likewise
31315 * conf/i386-efi.rmk: likewise
31316 * conf/x86_64-efi.rmk: likewise
31317 * include/grub/types.h (UINT_TO_PTR): new macro
31318 (PTR_TO_UINT32): likewise
31319 (PTR_TO_UINT64): likewise
31320 * include/grub/memory.h: new file
31321 * mmap/i386/pc/mmap.c: likewise
31322 * mmap/i386/pc/mmap_helper.S: likewise
31323 * mmap/i386/uppermem.c: likewise
31324 * mmap/mmap.c: likewise
31325 * mmap/efi/mmap.c: likewise
31326 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31328 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31329 (grub_upper_mem): likewise
31330 (grub_machine_init): don't use grub_upper_mem,
31331 make grub_lower_mem local
31332 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31333 grub_mmap_iterate and grub_mmap_get_upper
31334 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31336 2009-05-02 Bean <bean123ch@gmail.com>
31338 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31339 script/sh/parser.y.
31340 (pkglib_MODULES): Add normal.mod and sh.mod.
31341 (normal_SOURCES): New variable.
31342 (normal_mod_CFLAGS): Likewise.
31343 (normal_mod_LDFLAGS): Likewise.
31344 (sh_mod_SOURCES): Likewise.
31345 (sh_mod_CFLAGS): Likewise.
31346 (sh_mod_LDFLAGS): Likewise.
31348 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31349 script/sh/lexer.c_DEPENDENCIES.
31350 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31351 kern/rescue_reader.c and kern/rescue_parser.c.
31352 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31353 (grub_emu_SOURCES): Change source files.
31354 (pkglib_MODULES): Remove normal.mod.
31355 (normal_SOURCES): Removed.
31356 (normal_mod_CFLAGS): Likewise.
31357 (normal_mod_LDFLAGS): Likewise.
31358 * conf/i386-coreboot.rmk: Likewise.
31359 * conf/i386-efi.rmk: Likewise.
31360 * conf/i386-ieee1276.rmk: Likewise.
31361 * conf/powerpc-ieee1275.rmk: Likewise.
31362 * conf/sparc64-ieee1275.rmk: Likewise.
31363 * conf/x86_64-efi.rmk: Likewise.
31365 * include/grub/command.h (grub_command_execute): New inline function.
31367 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31369 * include/grub/normal.h: Remove <grub/setjmp.h>.
31370 (grub_fs_module_list): Moved to normal/autofs.c.
31371 (grub_exit_env): Removed.
31372 (grub_command_execute): Likewise.
31373 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31375 (read_command_list): New function declaration.
31376 (read_fs_list): Likewise.
31378 * include/parser.h: Include <grub/reader.h>.
31379 (grub_parser_split_cmdline): Change type of getline parameter.
31380 (grub_parser): New structure.
31381 (grub_parser_class): New variable.
31382 (grub_parser_execute): New function declaration.
31383 (grub_register_rescue_parser): Likewise.
31384 (grub_parser_register): New inline function.
31385 (grub_parser_unregister): Likewise.
31386 (grub_parser_get_current): Likewise.
31387 (grub_parser_set_current): Likewise.
31389 * include/grub/reader.h: New file.
31390 * kern/reader.c: Likewise.
31391 * kern/rescue_parser.c: Likewise.
31392 * kern/rescue_reader.c: Likewise.
31393 * normal/autofs.c: Likewise.
31394 * normal/dyncmd.c: Likewise.
31396 * include/grub/rescue.h: Removed.
31397 * normal/command.h: Likewise.
31399 * include/grub/script.h: Moved to ...
31400 * include/grub/script_sh.h: ... Moved here.
31401 * normal/execute.c: Moved to ...
31402 * script/sh/execute.c: ... Moved here.
31403 * normal/function.c: Moved to ...
31404 * script/sh/function.c: ... Moved here.
31405 * normal/lexer.c: Moved to ...
31406 * script/sh/lexer.c: ... Moved here.
31407 * normal/parser.y: Moved to ...
31408 * script/sh/parser.y: ... Moved here.
31409 * normal/script.c: Moved to ...
31410 * script/sh/script.c: ... Moved here.
31412 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31414 (grub_exit_env): Removed.
31415 (fs_module_list): Moved to normal/autofs.c.
31416 (grub_file_getline): Don't handle comment here.
31417 (free_menu): Skip removed field entry->commands.
31418 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31420 (read_config_file): Removed nested parameter, change getline function.
31421 (grub_enter_normal_mode): Removed.
31422 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31423 (read_command_list): Likewise.
31424 (autoload_fs_module): Moved to normal/autofs.c.
31425 (read_fs_list): Likewise.
31426 (reader_nested): New variable.
31427 (grub_normal_execute): Run parser.sh to switch to sh parser.
31428 (grub_cmd_rescue): Removed.
31429 (cmd_normal): Removed.
31430 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31432 (grub_cmdline_run): New function.
31433 (grub_normal_reader_init): Likewise.
31434 (grub_normal_read_line): Likewise.
31435 (grub_env_write_pager): Likewise.
31436 (cmdline): New variable.
31437 (grub_normal_reader): Likewise.
31438 (GRUB_MOD_INIT): Register normal reader and set as current, register
31439 pager hook, register normal command with grub_register_command_prio,
31440 so that it won't show up in command.lst.
31441 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31442 grub_fs_autoload_hook.
31444 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31445 (grub_menu_execute_entry): Replace grub_script_execute with
31446 grub_parser_execute, change parameter to grub_command_execute.
31448 * normal/menu_text.c: Remove <grub/script.h>.
31450 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31451 and <grub/parser.h>.
31452 (run): Change editor_getline to use new parser interface. Change
31453 parameter to grub_command_execute.
31455 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31456 <grub/reader.h> and <grub/parser.h>.
31457 (grub_load_normal_mode): Execute normal command.
31458 (grub_main): Call grub_register_core_commands,
31459 grub_register_rescue_parser and grub_register_rescue_reader, use
31460 grub_reader_loop to enter input loop.
31462 * kern/parser.c (grub_parser_split_cmdline): Change type of
31464 (grub_parser_class): New variable.
31465 (grub_parser_execute): New function.
31467 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31468 * loader/multiboot2.c: Likewise.
31469 * loader/sparc64/ieee1275/linux.c: Likewise.
31471 * util/grub-emu.c (read_command_list): New dummy function.
31473 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31475 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31476 count to 16 for CCISS and IDA.
31478 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31480 * normal/menu_text.c (grub_wait_after_message): Print a newline
31481 after waiting for user input.
31483 * loader/i386/linux.c: Include `<grub/normal.h>'.
31484 (grub_cmd_linux): Improve the error message about `ask' mode, by
31485 waiting for user input so it's not missed (we can do this, since
31486 user requested interaction).
31488 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31490 Added missing lst to grub-mkrescue
31492 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31493 and ${input_dir}/parttool.lst
31495 2009-04-30 David S. Miller <davem@davemloft.net>
31497 * util/hostdisk.c (device_is_wholedisk): New function.
31498 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31499 zero only if device_is_wholedisk() returns true.
31501 * util/hostdisk.c (convert_system_partition_to_system_disk):
31502 Handle virtual disk devices named /dev/vdiskX as found on sparc
31505 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31506 lettered partition specifier is found, convert to numbered.
31508 2009-04-29 David S. Miller <davem@davemloft.net>
31510 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31511 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31513 * normal/command.c: Add missing newline at end of file.
31515 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31517 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31518 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31519 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31520 ihandles have a 32-bit type but need to be stored in a "void *".
31522 2009-04-28 Pavel Roskin <proski@gnu.org>
31524 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31525 not disk. Adjust all dependencies.
31526 (grub_fs_uuid_close): Use grub_device_close(), not
31529 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31530 parent's partition, don't copy it by reference, as it gets freed
31533 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31535 Preboot hooks support
31537 * commands/boot.c (struct grub_preboot_t): new declaration
31538 (preboots_head): new variable
31539 (preboots_tail): likewise
31540 (grub_loader_register_preboot_hook): new function
31541 (grub_loader_unregister_preboot_hook): likewise
31542 (grub_loader_set): launch preboot hooks
31543 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31544 (grub_loader_register_preboot_hook): new declaration
31545 (grub_loader_unregister_preboot_hook): likewise
31547 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31551 * disk/scsi.c (grub_scsi_open): added missing cast when
31552 calling grub_dprintf
31554 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31556 Bug and warning fixes
31558 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31560 * commands/test.c (test_parse): fixed bug with file tests and corrected
31561 declaration of find_file
31563 2009-04-26 Pavel Roskin <proski@gnu.org>
31565 * Makefile.in: Don't install empty manual pages if help2man is
31566 missing. Use help2man option for output, not shell redirection.
31568 2009-04-26 David S. Miller <davem@davemloft.net>
31570 * util/grub-mkdevicemap.c (make_device_map): Add missing
31571 NESTED_FUNC_ATTR to process_device().
31573 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31577 * commands/test.c: rewritten to use bash-like test
31579 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31581 Parttool autoloading and improvements
31583 * Makefile.in (pkglib_DATA): add parttool.lst
31584 (parttool.lst): new target
31585 * genmk.rb: generate parttool-*
31586 (CLEANFILES): add #{parttool}
31587 (PARTTOOLFILES): new variable
31588 * genparttoollist.sh: new file
31589 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31590 (grub_pcpart_type): likewise
31591 * commands/parttool.c (helpmsg): new variable
31592 (grub_cmd_parttool): output help if not enough arguments are supplied
31594 (GRUB_MOD_INIT(parttool)): use helpmsg
31596 2009-04-24 David S. Miller <davem@davemloft.net>
31598 Avoiding opening same device multiple times in device iterator.
31600 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31601 and use it to build a list of partitions in iterate_disk() and
31602 iterate_partition().
31604 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31607 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31608 grub_devalias_iterate() result instead of unconditional 0.
31609 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31610 Also, capture hook return value, either directly or via
31611 grub_children_iterate(), and propagate to caller.
31612 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31613 grub_children_iterate): Return value is now 'int' instead of
31615 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31616 like a proper iterator, stopping when hooks return non-zero.
31617 (grub_devalias_iterate): Likewise.
31619 2009-04-23 David S. Miller <davem@davemloft.net>
31621 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31623 2009-04-22 David S. Miller <davem@davemloft.net>
31625 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31626 is larger than address_cells, use that value for address_cells too.
31628 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31629 IEEE1275_MAX_PATH_LEN): Define.
31630 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31631 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31632 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31633 'devtype'. Explicitly NULL terminate devalias expansion.
31635 * util/sparc64/ieee1275/misc.c: New file.
31636 * util/sparc64/ieee1275/grub-setup.c: New file.
31637 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31638 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31639 * util/sparc64/ieee1275/grub-install.in: New file.
31640 * util/ieee1275/ofpath.c: New file.
31641 * util/ieee1275/devicemap.c: New file.
31642 * util/devicemap.c: New file.
31643 * util/deviceiter.c: New file.
31644 * kern/sparc64/ieee1275/init.c: New file.
31645 * include/grub/util/ofpath.h: New file.
31646 * include/grub/util/deviceiter.h: New file.
31647 * util/grub-mkdevicemap.c: Include deviceiter.h.
31648 Implement using grub_util_emit_devicemap_entry and
31649 grub_util_iterate_devices.
31650 * conf/i386-corebook.rmk: Build util/deviceiter.c and
31651 util/devicemap.c into grub-mkdevicemap
31652 * conf/i386-efi.rmk: Likewise.
31653 * conf/i386-ieee1275.rmk: Likewise.
31654 * conf/i386-pc.rmk: Likewise.
31655 * conf/powerpc-ieee1275.rmk: Likewise.
31656 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
31657 images and installation utilities. Build kernel as image
31658 instead of as elf binary. Use common rules as much as possible.
31660 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
31662 Correct GPT definition
31664 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31667 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
31669 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
31671 2009-04-19 David S. Miller <davem@davemloft.net>
31673 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
31674 (grub_rescue_cmd_linux): Rename to...
31675 (grub_cmd_linux): and fix prototype.
31676 (grub_rescue_cmd_initrd): Rename to...
31677 (grub_cmd_initrd): and fix prototype.
31678 (cmd_linux, cmd_initrd): New.
31679 (GRUB_MOD_INIT(linux)): Use grub_register_command().
31680 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
31682 2009-04-17 Pavel Roskin <proski@gnu.org>
31684 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
31686 (grub_ohci_transfer): Likewise.
31688 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
31690 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
31691 return without a value. Fix inconsistent indentation.
31693 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
31694 match struct grub_fs.
31696 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
31697 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
31698 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31699 * commands/lspci.c (grub_lspci_iter): Likewise.
31701 2009-04-16 Bean <bean123ch@gmail.com>
31703 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
31706 2009-04-15 Pavel Roskin <proski@gnu.org>
31708 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
31709 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
31710 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
31713 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31715 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
31716 that no multiple data or metadata areas are supported and `Unknown
31719 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31721 Move loader out of the kernel
31723 * kern/loader.c: moved to ...
31724 * commands/boot.c: ... moved here
31725 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
31726 * commands/boot.c (grub_cmd_boot): moved here. All users updated
31727 * include/grub/kernel.h (grub_machine_fini): export
31728 * include/grub/loader.h (grub_loader_is_loaded): update declaration
31729 (grub_loader_set): likewise
31730 (grub_loader_unset): likewise
31731 (grub_loader_boot): likewise
31732 * conf/common.rmk: new module boot.mod
31733 (pkglib_MODULES): add boot.mod
31734 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
31735 (grub_emu_SOURCES): likewise
31736 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
31737 (grub_emu_SOURCES): likewise
31738 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
31739 (grub_emu_SOURCES): likewise
31740 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
31741 (grub_emu_SOURCES): likewise
31742 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
31743 (grub_emu_SOURCES): likewise
31744 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
31745 (grub_emu_SOURCES): likewise
31746 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
31747 (grub_emu_SOURCES): likewise
31749 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31751 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
31753 * kern/misc.c (grub_itoa): Removed function
31754 (grub_ltoa): likewise
31755 (grub_vsprintf): use grub_lltoa
31757 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31761 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
31762 * conf/i386-coreboot.rmk: likewise
31763 * conf/i386-ieee1275.rmk: likewise
31764 * conf/powerpc-ieee1275.rmk: likewise
31766 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31768 * INSTALL: Add that `./autogen.sh' needs to be run before
31771 2009-04-14 Bean <bean123ch@gmail.com>
31773 * Makefile.in (pkglib_DATA): Add handler.lst.
31774 (handler.lst): New rule.
31776 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
31777 * conf/i386-coreboot.rmk: Likewise.
31778 * conf/i386-ieee1275.rmk: Likewise.
31779 * conf/i386-efi.rmk: Likewise.
31780 * conf/x86_64-efi.rmk: Likewise.
31781 * conf/powerpc-ieee1275.rmk: Likewise.
31782 * conf/sparc64-ieee1275.rmk: Likewise.
31784 * genhandlerlist.sh: New file.
31786 * genmk.rb: Add rules to generate handler.lst.
31788 * include/grub/normal.h (grub_file_getline): New function definition.
31789 (read_handler_list): Likewise.
31790 (free_handler_list): Likewise.
31792 * include/grub/term.h (grub_term_register_input): Add name parameter
31793 for auto generation of handler.lst.
31794 (grub_term_register_output): Likewise.
31796 * normal/handler.c: New file.
31798 * normal/main.c (get_line): Renamed to grub_file_getline.
31799 (read_config_file): Use the newly renamed grub_file_getline.
31800 (read_command_list): Likewise.
31801 (read_fs_list): Likewise.
31802 (grub_normal_execute): Call read_handler_list to parse handler.lst.
31803 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
31805 * term/efi/console.c (grub_console_init): Add name parameter for auto
31806 generation of handler.lst.
31807 * term/gfxterm.c: Likewise.
31808 * term/i386/pc/at_keyboard.c: Likewise.
31809 * term/i386/pc/console.c: Likewise.
31810 * term/i386/pc/serial.c: Likewise.
31811 * term/i386/pc/vesafb.c: Likewise.
31812 * term/i386/pc/vga.c: Likewise.
31813 * term/i386/pc/vga_text.c: Likewise.
31814 * term/ieee1275/ofconsole.c: Likewise.
31815 * term/usb_keyboard.c: Likewise.
31817 2009-04-14 Bean <bean123ch@gmail.com>
31819 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
31820 properly with null character.
31822 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31824 * configure: Remove.
31825 * config.h.in: Likewise.
31826 * stamp-h.in: Likewise.
31827 * DISTLIST: Likewise.
31828 * conf/common.mk: Likewise.
31829 * conf/i386-coreboot.mk: Likewise.
31830 * conf/i386-efi.mk: Likewise.
31831 * conf/i386-ieee1275.mk: Likewise.
31832 * conf/i386.mk: Likewise.
31833 * conf/i386-pc.mk: Likewise.
31834 * conf/powerpc-ieee1275.mk: Likewise.
31835 * conf/sparc64-ieee1275.mk: Likewise.
31836 * conf/x86_64-efi.mk: Likewise.
31838 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
31841 2009-04-14 John Stanley <jpsinthemix@verizon.net>
31842 David S. Miller <davem@davemloft.net>
31844 * util/hostdisk.c (make_device_name): Fix buffer length
31847 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31849 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
31850 <sys/param.h> and <sys/sysctl.h>.
31851 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
31852 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
31853 opening the device and reset them afterwards.
31855 2009-04-13 Pavel Roskin <proski@gnu.org>
31857 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
31858 Reported by John Stanley <jpsinthemix@verizon.net>
31860 2009-04-13 Robert Millan <rmh@aybabtu.com>
31862 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
31863 that name for menuentries when appropriate.
31865 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31867 * util/grub.d/10_freebsd.in: Add a missing `fi'.
31869 2009-04-13 Robert Millan <rmh@aybabtu.com>
31871 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
31872 to Linux, simply abort telling the user it's no longer supported.
31874 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31876 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
31877 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
31878 `freebsd_loadenv' only when devices.hints exist.
31880 2009-04-13 Pavel Roskin <proski@gnu.org>
31882 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
31884 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31886 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
31888 (grub_drive): Likewise.
31890 2009-04-13 David S. Miller <davem@davemloft.net>
31892 * kern/sparc64/ieee1275/ieee1275.c: New file.
31893 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
31894 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
31895 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
31896 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
31897 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
31898 grub_ieee1275_alloc_physmem): Declare new exported functions.
31900 * include/grub/sparc64/ieee1275/loader.h: New file.
31901 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31902 * include/grub/sparc64/kernel.h: Likewise.
31903 * loader/sparc64/ieee1275/linux.c: Likewise.
31905 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
31906 (grub_fstest_SOURCES): Likewise.
31908 * util/hostdisk.c (make_device_name): Do not make any assumptions
31909 about the length of drive names.
31911 * kern/dl.c (grub_dl_load_file): Close file immediately when
31912 we are done using it.
31914 2009-04-12 David S. Miller <davem@davemloft.net>
31916 * kern/misc.c (grub_ltoa): Fix cast when handling negative
31917 values. Noticed by Pavel Roskin.
31919 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
31922 * genmk.rb: Add more flexible image type specification, also
31923 pass --strip-unneeded to objcopy.
31924 * conf/i386-pc.rmk: Use *_FORMAT.
31925 * conf/i386-pc.mk: Rebuilt.
31927 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
31928 (OFDISK_HASH_SZ): Define.
31929 (ofdisk_hash): New hash table.
31930 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
31931 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
31932 instead of device phandle which is not unique.
31934 * kern/sparc64/ieee1275/init.c: Delete, replace with...
31935 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
31936 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
31937 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
31938 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
31939 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
31940 GRUB_KERNEL_MACHINE_DATA_END): Define.
31941 (grub_kernel_image_size, grub_total_module_size): Declare.
31943 2009-04-12 Pavel Roskin <proski@gnu.org>
31945 * configure.ac: Change the logic when we check for target tools.
31946 Do it when the target is specified and it's different from the
31947 specified value of the host.
31949 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
31951 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
31952 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
31953 GNU/kFreeBSD. Check if a device is a character device. Use
31954 DIOCGMEDIASIZE to get the size.
31955 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
31956 support for GNU/kFreeBSD.
31957 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
31958 is a character device instead of a block device. Add support for
31959 FreeBSD device names.
31961 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
31962 is a character device instead of a block device.
31964 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
31965 is a character device instead of a block device.
31967 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
31969 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
31970 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
31971 FreeBSD. Check if a device is a character device. Use
31972 DIOCGMEDIASIZE to get the size.
31973 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
31974 support for FreeBSD.
31975 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
31976 is a character device instead of a block device. Add support for
31977 FreeBSD device names.
31979 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
31980 a character device instead of a block device.
31981 (grub_util_check_char_device): New function.
31983 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
31984 a character device instead of a block device.
31986 * include/grub/util/getroot.h (grub_util_check_char_device): New
31989 2009-04-11 David S. Miller <davem@davemloft.net>
31991 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
31993 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
31994 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
31995 function, if present.
31996 (__bswapdi2): Likewise.
31998 * include/grub/sparc64/ieee1275/boot.h: New file.
31999 * boot/sparc64/ieee1275/boot.S: Likewise.
32000 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32002 * kern/misc.c (grub_ltoa): New function.
32003 (grub_vsprintf): Use it to format 'long' integers.
32005 2009-04-10 David S. Miller <davem@davemloft.net>
32007 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32008 slots are of type grub_ieee1275_cell_t.
32009 (grub_nand_read): Likewise.
32010 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32011 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32012 macros are used to compare values in arg/ret block of the call.
32013 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32014 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32015 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32016 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32017 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32018 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32019 grub_ieee1275_close, grub_ieee1275_set_property,
32020 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32021 grub_ieee1275_cell_t.
32022 * kern/ieee1275/openfw.c (grub_map): Likewise.
32023 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32024 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32026 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32027 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32028 (grub_devalias_iterate): Likewise.
32030 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32034 * fs/ufs.c (INODE_NBLOCKS): new definition
32035 (struct grub_ufs_dirent): added fields for non-BSD dirents
32036 (grub_ufs_get_file_block): fixed double indirect handling
32037 (grub_ufs_lookup_symlink): use more robust way to determine whether
32039 (grub_ufs_find_file): support for non-BSD dirents
32040 (grub_ufs_dir): support for non-BSD dirents
32042 2009-04-10 Bean <bean123ch@gnail.com>
32044 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32045 attribute, otherwise the size would be wrong for i386 platform.
32047 * include/grub/pci.h (grub_pci_read_word): New inline function.
32048 (grub_pci_read_byte): Likewise.
32049 (grub_pci_write): Likewise.
32050 (grub_pci_write_word): Likewise.
32051 (grub_pci_write_byte): Likewise.
32053 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32055 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32056 (find_framebuf): Scan pci to locate the frame buffer address.
32058 * commands/efi/fixvideo.c: New file.
32060 * commands/efi/loadbios.c: Likewise.
32062 * commands/memrw.c: Likewise.
32064 * util/grub-dumpbios.in: Likewise.
32066 * conf/common.rmk (grub-dumpbios): New utility.
32067 (pkglib_MODULES): New module memrw.mod.
32068 (memrw_mod_SOURCE): New macro.
32069 (memrw_mod_CFLAGS): Likewise.
32070 (memrw_mod_LDFLAGS): Likewise.
32072 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32074 (loadbios_mod_SOURCE): New macro.
32075 (loadbios_mod_CFLAGS): Likewise.
32076 (loadbios_mod_LDFLAGS): Likewise.
32077 (fixvideo_mod_SOURCE): Likewise.
32078 (fixvideo_mod_CFLAGS): Likewise.
32079 (fixvideo_mod_LDFLAGS): Likewise.
32081 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32083 (loadbios_mod_SOURCE): New macro.
32084 (loadbios_mod_CFLAGS): Likewise.
32085 (loadbios_mod_LDFLAGS): Likewise.
32086 (fixvideo_mod_SOURCE): Likewise.
32087 (fixvideo_mod_CFLAGS): Likewise.
32088 (fixvideo_mod_LDFLAGS): Likewise.
32090 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32092 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32094 2009-04-07 David S. Miller <davem@davemloft.net>
32096 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32097 support for R_SPARC_OLO10 relocations. Fix compile warning for
32098 R_SPARC_WDISP30 case.
32099 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32101 2009-04-06 Pavel Roskin <proski@gnu.org>
32103 * include/grub/misc.h (ARRAY_SIZE): New macro.
32104 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32106 * loader/i386/linux.c (allocate_pages): Use free_pages().
32107 (grub_linux_unload): Don't use free_pages().
32108 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32109 wrong index. Treat all other modes as text modes.
32110 (grub_cmd_linux): Initialize vid_mode unconditionally to
32111 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32113 * commands/help.c (print_command_help): Use cmd->prio, not
32114 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32116 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32120 * parttool/pcpart.c: new file
32121 * commands/parttool.c: likewise
32122 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32123 (parttool_mod_SOURCES): new variable
32124 (parttool_mod_CFLAGS): likewise
32125 (parttool_mod_LDFLAGS): likewise
32126 (pcpart_mod_SOURCES): likewise
32127 (pcpart_mod_CFLAGS): likewise
32128 (pcpart_mod_LDFLAGS): likewise
32129 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32130 and parttool/pcpart.c
32131 * conf/i386-efi.rmk: likewise
32132 * conf/i386-ieee1275.rmk: likewise
32133 * conf/i386-pc.rmk: likewise
32134 * conf/powerpc-ieee1275.rmk: likewise
32135 * conf/sparc64-ieee1275.rmk: likewise
32136 * conf/x86_64-ieee1275.rmk: likewise
32138 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32140 Support for mtime and further expandability of dir command
32142 * include/grub/lib/datetime.h: moved to ...
32143 * include/grub/datetime.h: ... moved here and added
32144 declaration of grub_unixtime2datetime. All users updated
32145 * include/grub/fs.h: new syntax for dir and mtime functions in
32147 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32148 and GRUB_FSHELP_FLAGS_MASK
32149 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32150 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32151 (grub_ext2_mtime): new function
32152 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32153 (grub_hfsplus_mtime): new function
32154 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32155 (GRUB_UFS_ATTR_FILE): likewise
32156 (GRUB_UFS_ATTR_LNK): likewise
32157 (struct grub_ufs_sblock): new fields mtime
32158 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32160 (grub_ufs_dir): mtime support
32161 (grub_ufs_mtime): new function
32162 * fs/affs.c (grub_affs_dir): use new dir syntax
32163 * fs/afs.c (grub_afs_dir): likewise
32164 * fs/cpio.c (grub_cpio_dir): likewise
32165 * fs/fat.c (grub_fat_find_dir): likewise
32166 * fs/hfs.c (grub_hfs_dir): likewise
32167 * fs/iso9660.c (grub_iso9660_dir): likewise
32168 * fs/jfs.c (grub_jfs_dir): likewise
32169 * fs/minix.c (grub_minix_dir): likewise
32170 * fs/ntfs.c (grub_ntfs_dir): likewise
32171 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32172 * fs/sfs.c (grub_sfs_dir): likewise
32173 * fs/xfs.c (grub_xfs_dir): likewise
32174 * util/hostfs.c (grub_hostfs_dir): likewise
32175 * lib/datetime.c: moved to ...
32176 * normal/datetime.c: ... moved here
32177 (grub_unixtime2datetime): new function
32178 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32179 * normal/completion.c (iterate_dir): use new dir syntax
32180 * normal/misc.c (grub_normal_print_device_info): tell the
32181 last modification time of a volume
32182 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32183 * conf/common.rmk: added lib/datetime.c to ls.mod
32184 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32185 (normal_mod_SOURCES): likewise
32186 (datetime_mod_SOURCES): Removed lib/datetime.c
32187 * conf/i386-efi.rmk: likewise
32188 * conf/i386-ieee1275.rmk: likewise
32189 * conf/i386-pc.rmk: likewise
32190 * conf/powerpc-ieee1275.rmk: likewise
32191 * conf/sparc64-ieee1275.rmk: likewise
32192 * conf/x86_64-efi.rmk: likewise
32194 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32196 Trim trailing spaces in FAT label and support mtools-like labels
32198 * fs/fat.c (grub_fat_iterate_dir): New function based
32199 on grub_fat_find_dir
32200 (grub_fat_find_dir): use grub_fat_iterate_dir
32201 (grub_fat_label): likewise
32203 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32205 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32207 remove extraneous kernel_elf_HEADERS
32209 2009-04-04 Bean <bean123ch@gnail.com>
32211 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32213 * util/misc.c: Likewise.
32215 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32217 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32218 instead of grub_printf.
32220 2009-04-03 Robert Millan <rmh@aybabtu.com>
32222 * loader/i386/linux.c (grub_linux_setup_video): Fill
32223 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32224 values from `mode info' structure instead of hardcoded
32227 2009-04-01 Pavel Roskin <proski@gnu.org>
32229 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32231 * genmk.rb: Likewise.
32232 * configure.ac: Likewise.
32234 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32236 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32237 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32239 2009-04-01 David S. Miller <davem@davemloft.net>
32241 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32242 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32243 (grub_setjmp): Mark with 'returns_twice' attribute.
32244 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32245 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32246 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32248 2009-04-01 Robert Millan <rmh@aybabtu.com>
32250 Reapply fix from 2008-07-28 which was accidentally reverted; also
32251 perform the same fix to a similar check in same function.
32253 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32254 with the same number are found, just use issue a warning with
32255 grub_dprintf(), as this error has been reported to be non-fatal.
32257 2009-03-31 Pavel Roskin <proski@gnu.org>
32259 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32260 for cross-compilation.
32262 2009-03-30 Robert Millan <rmh@aybabtu.com>
32264 Fix i386-ieee1275 build.
32266 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32267 Remove declaration.
32269 2009-03-30 Pavel Roskin <proski@gnu.org>
32271 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32272 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32273 zero-terminated, rely only on the strlen value. Fix comparison
32274 of strings differing in length.
32276 2009-03-30 Robert Millan <rmh@aybabtu.com>
32278 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32279 checking for abi version. Improve error messages on BIOS to notify
32280 user about `linux16' command.
32282 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32286 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32287 in case of collision
32288 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32290 2009-03-29 Robert Millan <rmh@aybabtu.com>
32292 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32293 set `vid_mode' accordingly.
32294 (grub_linux_boot): Process `vid_mode' and set video mode.
32296 2009-03-29 Robert Millan <rmh@aybabtu.com>
32298 * util/grub.d/10_linux.in (linux_entry): New function.
32299 Factorize generation of Linux boot entries.
32301 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32303 Make the format of Environment Block plain text. The boot loader
32304 part is not tested well yet.
32306 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32308 (envblk): Likewise.
32309 (usage): Remove "info" and "clear". Add "unset". Update the
32310 description of "set", as this does not delete variables any
32312 (create_envblk_file): Complete rewrite.
32313 (open_envblk_file): Likewise.
32314 (cmd_info): Removed.
32315 (cmd_list): Likewise.
32316 (cmd_set): Likewise.
32317 (cmd_clear): Likewise.
32318 (list_variables): New function.
32319 (write_envblk): Likewise.
32320 (set_variables): Likewise.
32321 (unset_variables): Likewise.
32322 (main): Complete rewrite.
32324 * commands/loadenv.c (buffer): Removed.
32325 (envblk): Likewise.
32326 (open_envblk_file): New function.
32327 (read_envblk_file): Complete rewrite.
32328 (grub_cmd_load_env): Likewise.
32329 (grub_cmd_list_env): Likewise.
32330 (struct blocklist): New struct.
32331 (free_blocklists): New function.
32332 (check_blocklists): Likewise.
32333 (write_blocklists): Likewise.
32334 (grub_cmd_save_env): Complete rewrite.
32336 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32337 a plain text signature.
32338 (GRUB_ENVBLK_MAXLEN): Removed.
32339 (struct grub_envblk): Complete rewrite.
32340 (grub_envblk_find): Removed.
32341 (grub_envblk_insert): Likewise.
32342 (grub_envblk_open): New prototype.
32343 (grub_envblk_set): Likewise.
32344 (grub_envblk_delete): Put const to VALUE.
32345 (grub_envblk_iterate): Put const to NAME and VALUE.
32346 (grub_envblk_close): New prototype.
32347 (grub_envblk_buffer): New inline function.
32348 (grub_envblk_size): Likewise.
32350 * lib/envblk.c: Include grub/mm.h.
32351 (grub_env_find): Removed.
32352 (grub_envblk_open): New function.
32353 (grub_envblk_close): Likewise.
32354 (escaped_value_len): Likewise.
32355 (find_next_line): Likewise.
32356 (grub_envblk_insert): Removed.
32357 (grub_envblk_set): New function.
32358 (grub_envblk_delete): Complete rewrite.
32359 (grub_envblk_iterate): Likewise.
32361 2009-03-28 Robert Millan <rmh@aybabtu.com>
32363 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32364 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32365 variables. Use 16-bit loader.
32366 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32368 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32369 (grub_linux16_boot): ... this. Update all users.
32370 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32371 (grub_linux_boot): ... this. Update all users.
32373 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32374 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32375 commands to `linux16' and `initrd16'.
32376 (GRUB_MOD_FINI(linux)): Rename to ...
32377 (GRUB_MOD_FINI(linux16)): ... this.
32379 2009-03-24 Pavel Roskin <proski@gnu.org>
32381 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32382 not just for compilation.
32384 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32386 Move multiboot helper out of kernel
32388 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32389 `loader/i386/multiboot_helper.S'.
32390 * conf/i386-coreboot.rmk: Likewise
32391 * conf/i386-ieee1275.rmk: Likewise
32393 * kern/i386/loader.S: Move multiboot helpers from here...
32394 * loader/i386/multiboot_helper.S: ...moved here
32395 * include/grub/i386/loader.h: Move declarations of multiboot
32396 helpers from here...
32397 * include/grub/i386/multiboot.h: ...moved here
32398 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32400 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32402 * kern/env.c (grub_env_context_open): Added an argument to specify
32403 whether a new context inherits exported variables from current
32404 one. This is useful when making a sandbox to interpret a config
32406 All callers updated.
32408 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32410 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32412 * kern/env.c (grub_env_context_close): Fix memory leaks.
32414 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32416 * normal/main.c (grub_normal_execute): Added an argument
32417 BATCH to specify if an interactive interface should be provided
32418 after reading a config file.
32419 All callers updated.
32420 (read_command_list): Prevent being executed twice.
32421 (read_fs_list): Likewise.
32423 * include/grub/normal.h (grub_normal_execute): Updated the
32426 2009-03-22 Pavel Roskin <proski@gno.org>
32428 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32430 * kern/i386/pc/startup.S: Likewise.
32431 * kern/i386/efi/startup.S: Likewise.
32432 * kern/i386/ieee1275/startup.S: Likewise.
32433 * kern/i386/coreboot/startup.S: Likewise.
32434 * kern/x86_64/efi/startup.S: Likewise.
32436 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32437 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32438 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32440 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32442 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32444 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32446 Use vaddr of correct segment for entry_point.
32448 2009-03-21 Bean <bean123ch@gmail.com>
32450 * commands/blocklist.c: Add include file <grub/command.h>, remove
32451 <grub/normal.h> and <grub/arg.h>.
32452 (grub_cmd_blocklist): Use the new command interface.
32453 (GRUB_MOD_INIT): Likewise.
32454 (GRUB_MOD_FINI): Likewise.
32455 * commands/boot.c: Likewise.
32456 * commands/cat.c: Likewise.
32457 * commands/cmp.c: Likewise.
32458 * commands/configfile.c: Likewise.
32459 * commands/crc.c: Likewise.
32460 * commands/echo.c: Likewise.
32461 * commands/halt.c: Likewise.
32462 * commands/handler.c: Likewise.
32463 * commands/hdparm.c: Likewise.
32464 * commands/help.c: Likewise.
32465 * commands/hexdump.c: Likewise.
32466 * commands/loadenv.c: Likewise.
32467 * commands/ls.c: Likewise.
32468 * commands/lsmmap.c: Likewise.
32469 * commands/lspci.c: Likewise.
32470 * commands/loadenv.c: Likewise.
32471 * commands/read.c: Likewise.
32472 * commands/reboot.c: Likewise.
32473 * commands/search.c: Likewise.
32474 * commands/sleep.c: Likewise.
32475 * commands/test.c: Likewise.
32476 * commands/usbtest.c: Likewise.
32477 * commands/videotest.c: Likewise.
32478 * commands/i386/cpuid.c: Likewise.
32479 * commands/i386/pc/halt.c: Likewise.
32480 * commands/i386/pc/play.c: Likewise.
32481 * commands/i386/pc/pxecmd.c: Likewise.
32482 * commands/i386/pc/vbeinfo.c: Likewise.
32483 * commands/i386/pc/vbetest.c: Likewise.
32484 * commands/ieee1275/suspend.c: Likewise.
32485 * disk/loopback.c: Likewise.
32486 * font/font_cmd.c: Likewise.
32487 * hello/hello.c: Likewise.
32488 * loader/efi/appleloader.c: Likewise.
32489 * loader/efi/chainloader.c: Likewise.
32490 * loader/i386/bsd.c: Likewise.
32491 * loader/i386/efi/linux.c: Likewise.
32492 * loader/i386/ieee1275/linux.c: Likewise.
32493 * loader/i386/linux.c: Likewise.
32494 * loader/i386/pc/chainloader.c: Likewise.
32495 * loader/i386/pc/linux.c: Likewise.
32496 * loader/powerpc/ieee1275/linux.c: Likewise.
32497 * loader/multiboot_loader.c: Likewise.
32498 * term/gfxterm.c: Likewise.
32499 * term/i386/pc/serial.c: Likewise.
32500 * term/terminfo.c: Likewise.
32502 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32503 * term/i386/pc/vga.c: Likewise.
32504 * video/readers/jpeg.c: Likewise.
32505 * video/readers/png.c: Likewise.
32506 * video/readers/tga.c: Likewise.
32508 * util/grub-fstest (cmd_loopback): Removed.
32509 (cmd_blocklist): Likewise.
32510 (cmd_ls): Likewise.
32511 (grub_register_command): Likewise.
32512 (grub_unregister_command): Likewise.
32513 (execute_command): Use grub_command_find to locate command and execute
32516 * include/grub/efi/chainloader.h: Removed.
32517 * loader/efi/chainloader_normal.c: Likewise.
32518 * loader/i386/bsd_normal.c: Likewise.
32519 * loader/i386/pc/chainloader_normal.c: Likewise.
32520 * loader/i386/pc/multiboot_normal.c: Likewise.
32521 * loader/linux_normal.c: Likewise.
32522 * loader/multiboot_loader_normal.c: Likewise.
32523 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32525 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32526 and grub_register_command_p1.
32528 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32529 kern/command.c, lib/arg.c and commands/extcmd.c.
32530 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32531 (minicmd_mod_SOURCES): New variable.
32532 (minicmd_mod_CFLAGS): Likewise.
32533 (minicmd_mod_LDFLAGS): Likewise.
32534 (extcmd_mod_SOURCES): Likewise.
32535 (extcmd_mod_CFLAGS): Likewise.
32536 (extcmd_mod_LDFLAGS): Likewise.
32537 (boot_mod_SOURCES): Removed.
32538 (boot_mod_CFLAGS): Likewise.
32539 (boot_mod_LDFLAGS): Likewise.
32541 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32543 (kernel_img_HEADERS): Add command.h.
32544 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32545 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32547 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32548 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32549 remove the corresponding normal mode command.
32550 (normal_mod_SOURCES): Remove normal/arg.c.
32551 * conf/i386-coreboot.rmk: Likewise.
32552 * conf/i386-efi.rmk: Likewise.
32553 * conf/i386-ieee1275.rmk: Likewise.
32554 * conf/powerpc-ieee1275.rmk: Likewise.
32555 * conf/x86_64-efi.rmk: Likewise.
32557 * include/grub/arg.h: Move from here ...
32558 * include/grub/lib/arg.h: ... to here.
32560 * normal/arg.c: Move from here ...
32561 * lib/arg.c: ... to here.
32563 * commands/extcmd.c: New file.
32564 * commands/minicmd.c: Likewise.
32565 * include/grub/command.h: Likewise.
32566 * include/grub/extcmd.h: Likewise.
32567 * kern/command.c: Likewise.
32568 * kern/corecmd.c: Likewise.
32570 * kern/list.c (grub_list_iterate): Return int instead of void.
32571 (grub_list_insert): New function.
32572 (grub_prio_list_insert): Likewise.
32574 * kern/rescue.c (grub_rescue_command): Removed.
32575 (grub_rescue_command_list): Likewise.
32576 (grub_rescue_register_command): Likewise.
32577 (grub_rescue_unregister_command): Likewise.
32578 (grub_rescue_cmd_boot): Move to minicmd.c
32579 (grub_rescue_cmd_help): Likewise.
32580 (grub_rescue_cmd_info): Likewise.
32581 (grub_rescue_cmd_boot): Likewise.
32582 (grub_rescue_cmd_testload): Likewise.
32583 (grub_rescue_cmd_dump): Likewise.
32584 (grub_rescue_cmd_rmmod): Likewise.
32585 (grub_rescue_cmd_lsmod): Likewise.
32586 (grub_rescue_cmd_exit): Likewise.
32587 (grub_rescue_print_devices): Moved to corecmd.c.
32588 (grub_rescue_print_files): Likewise.
32589 (grub_rescue_cmd_ls): Likewise.
32590 (grub_rescue_cmd_insmod): Likewise.
32591 (grub_rescue_cmd_set): Likewise.
32592 (grub_rescue_cmd_unset): Likewise.
32593 (attempt_normal_mode): Use grub_command_find to get normal module.
32594 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32595 commands, remove grub_rescue_register_command calls.
32597 * normal/command.c (grub_register_command): Removed.
32598 (grub_unregister_command): Likewise.
32599 (grub_command_find): Likewise.
32600 (grub_iterate_commands): Likewise.
32601 (rescue_command): Likewise.
32602 (export_command): Moved to corecmd.c.
32603 (set_command): Removed.
32604 (unset_command): Likewise.
32605 (insmod_command): Likewise.
32606 (rmmod_command): Likewise.
32607 (lsmod_command): Likewise.
32608 (grub_command_init): Likewise.
32610 * normal/completion.c (iterate_command): Use cmd->prio to check for
32612 (complete_arguments): Use grub_extcmd_t structure to find options.
32613 (grub_normal_do_completion): Change function grub_iterate_commands to
32614 grub_command_iterate.
32616 * normal/execute.c (grub_script_execute_cmd): No need to parse
32619 * normal/main.c (grub_dyncmd_dispatcher): New function.
32620 (read_command_list): Register unload commands as dyncmd.
32621 (grub_cmd_normal): Use new command interface, register rescue,
32622 unregister normal at entry, register normal, unregister rescue at exit.
32624 * include/grub/list.h (grub_list_test_t): New type.
32625 (grub_list_iterate): Return int instead of void.
32626 (grub_list_insert): New function.
32627 (GRUB_AS_NAMED_LIST_P): New macro.
32628 (GRUB_AS_PRIO_LIST): Likewise.
32629 (GRUB_AS_PRIO_LIST_P): Likewise.
32630 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32631 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32632 (grub_prio_list): New structure.
32633 (grub_prio_list_insert): New function.
32634 (grub_prio_list_remove): New inline function.
32636 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32637 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32638 (GRUB_COMMAND_FLAG_MENU): Likewise.
32639 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32640 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32641 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32642 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
32643 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
32644 (grub_command): Likewise.
32645 (grub_register_command): Likewise.
32646 (grub_command_find): Likewise.
32647 (grub_iterate_commands): Likewise.
32648 (grub_command_init): Likewise.
32649 (grub_arg_parse): Likewise.
32650 (grub_arg_show_help): Likewise.
32652 * include/grub/rescue.h (grub_rescue_register_command): Removed.
32653 (grub_rescue_unregister_command): Likewise.
32655 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
32656 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
32657 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
32659 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
32660 grub_rescue_cmd_initrd.
32661 * include/grub/i386/loader.h: Likewise.
32662 * include/grub/x86_64/loader.h: Likewise.
32664 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
32666 2009-03-21 Bean <bean123ch@gmail.com>
32668 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
32669 instead of stat in mingw environment.
32671 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
32673 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
32675 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
32678 2009-03-21 Bean <bean123ch@gmail.com>
32680 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
32681 out of range error.
32683 2009-03-18 Michel Dänzer <michel@daenzer.net>
32685 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
32686 checking inode flags for EXT4_EXTENTS_FLAG.
32688 2009-03-18 Robert Millan <rmh@aybabtu.com>
32690 * loader/i386/linux.c: Include `<grub/video.h>' and
32691 `<grub/i386/pc/vbe.h>'..
32692 (grub_linux_setup_video): New function. Loosely based on the EFI one.
32693 (grub_linux32_boot): Attempt to configure video settings with
32694 grub_linux_setup_video().
32695 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
32696 to avoid grub_console_fini() which would step out of graphical mode
32699 2009-03-14 Robert Millan <rmh@aybabtu.com>
32701 Fix build on powerpc.
32702 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
32704 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
32706 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
32707 background image command.
32709 2009-03-12 Colin D Bennett <colin@gibibit.com>
32711 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
32712 (grub_gfxterm_putchar): Extract pairs of identical calls to
32713 draw_cursor out of conditional blocks.
32715 2009-03-11 Pavel Roskin <proski@gnu.org>
32717 * fs/hfs.c (grub_hfs_strncasecmp): New function.
32718 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
32720 2009-03-11 Robert Millan <rmh@aybabtu.com>
32722 * loader/i386/multiboot_elfxx.c
32723 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
32725 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
32727 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
32730 2009-03-11 Robert Millan <rmh@aybabtu.com>
32732 * loader/i386/multiboot.c (code_size): New variable.
32733 (grub_multiboot): Define offsets by adding to `code_size' rather
32734 than subtracting from `grub_multiboot_payload_size'. Provide
32735 4-byte alignment to MBI and others by increasing
32736 `boot_loader_name_length' appropriately.
32738 * loader/i386/multiboot_elfxx.c
32739 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
32741 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
32743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
32746 2009-03-08 Robert Millan <rmh@aybabtu.com>
32748 Make loader/i386/linux.c usable on i386-pc again.
32750 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
32752 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
32755 2009-03-07 Bean <bean123ch@gmail.com>
32757 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
32760 2009-03-06 Robert Millan <rmh@aybabtu.com>
32762 Fix display issue on terminals with screen size other than 80x25
32763 (e.g. gfxterm with resolution higher than 640x480).
32765 * normal/main.c (grub_normal_init_page): Display title text in a
32766 position relative to the center of the terminal instead of relying
32767 on a hardcoded offset.
32769 2009-03-04 Robert Millan <rmh@aybabtu.com>
32771 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
32774 * Makefile.in (host_kernel): New variable.
32775 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
32776 scripts instead of just the windows one.
32777 * configure.ac: Initialize and AC_SUBST `host_kernel'.
32779 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32781 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
32783 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32784 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32785 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32787 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32788 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32790 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32792 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
32793 or if there's no space for the disk label and print the partition number on a
32796 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32798 * util/misc.c: Include <time.h>.
32799 (grub_millisleep): New function.
32801 2009-03-04 Bean <bean123ch@gmail.com>
32803 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
32804 another option -mno-red-zone.
32806 * commands/handler.c: Change module description.
32808 * kern/handler.c: Add missing space at the end of description line.
32810 * kern/list.c: Likewise.
32812 2009-03-03 Robert Millan <rmh@aybabtu.com>
32814 Move more components to the relocation area, and fix mbi pointer
32815 handling to use the destination rather than the origin (thanks to
32816 Vladimir Serbinenko for spotting).
32818 * loader/i386/multiboot.c (mbi_dest): New variable.
32819 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
32820 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
32823 2009-03-01 Bean <bean123ch@gmail.com>
32825 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
32826 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
32827 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
32828 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
32830 * loader/i386/efi/linux.c (acpi_guid): New variable.
32831 (acpi_guid): Likewise.
32832 (EBDA_SEG_ADDR): New constant.
32833 (LOW_MEM_ADDR): Likewise.
32834 (FAKE_EBDA_SEG): Likewise.
32835 (fake_bios_data): New function.
32836 (grub_linux_boot): Call fake_bios_data.
32838 2009-03-01 Bean <bean123ch@gmail.com>
32840 * commands/terminal.c: Removed.
32842 * commands/handler.c: New file.
32844 * include/grub/list.h: Likewise.
32846 * include/grub/handler.h: Likewise.
32848 * kern/list.c: Likewise.
32850 * kern/handler.c: Likewise.
32852 * kern/term.h: Include header file <grub/handler.h>.
32853 (grub_term_input): Move next field to the beginning.
32854 (grub_term_output): Likewise.
32855 (grub_term_input_class): New variable.
32856 (grub_term_output_class): Likewise.
32857 (grub_term_register_input): Changed to inline function.
32858 (grub_term_register_output): Likewise.
32859 (grub_term_unregister_input): Likewise.
32860 (grub_term_unregister_output): Likewise.
32861 (grub_term_set_current_input): Likewise.
32862 (grub_term_set_current_output): Likewise.
32863 (grub_term_get_current_input): Likewise.
32864 (grub_term_get_current_output): Likewise.
32865 (grub_term_iterate_input): Removed.
32866 (grub_term_iterate_output): Likewise.
32868 * kern/term.c (grub_term_list_input): Removed.
32869 (grub_term_list_output): Likewise.
32870 (grub_term_input_class): New variable.
32871 (grub_term_output_class): Likewise.
32872 (grub_cur_term_input): Change variable as macro.
32873 (grub_cur_term_output): Likewise.
32874 (grub_term_register_input): Removed.
32875 (grub_term_register_output): Likewise.
32876 (grub_term_unregister_input): Likewise.
32877 (grub_term_unregister_output): Likewise.
32878 (grub_term_set_current_input): Likewise.
32879 (grub_term_set_current_output): Likewise.
32880 (grub_term_iterate_input): Likewise.
32881 (grub_term_iterate_output): Likewise.
32882 (grub_term_get_current_input): Likewise.
32883 (grub_term_get_current_output): Likewise.
32885 * util/grub-editenv.c: Include header file <grub/handler.h>.
32886 (grub_term_get_current_input): Removed.
32887 (grub_term_get_current_output): Likewise.
32888 (grub_term_input_class): New variable.
32889 (grub_term_output_class): Likewise.
32891 * util/grub-fstest.c (grub_term_get_current_input): Removed.
32892 (grub_term_get_current_output): Likewise.
32893 (grub_term_input_class): New variable.
32894 (grub_term_output_class): Likewise.
32896 * util/grub-probe.c (grub_term_get_current_input): Removed.
32897 (grub_term_get_current_output): Likewise.
32898 (grub_term_input_class): New variable.
32899 (grub_term_output_class): Likewise.
32901 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
32902 (grub_term_get_current_output): Likewise.
32903 (grub_term_input_class): New variable.
32904 (grub_term_output_class): Likewise.
32906 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
32907 (terminal_mod_SOURCES): Likewise.
32908 (terminal_mod_CFLAGS): Likewise.
32909 (terminal_mod_LDFLAGS): Likewise.
32911 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
32913 (kernel_img_SOURCES): Add list.c and handler.c.
32914 (kernel_img_HEADERS): Add list.h and handler.h.
32916 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32918 (kernel_mod_SOURCES): Add list.c and handler.c.
32919 (kernel_mod_HEADERS): Add list.h and handler.h.
32921 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
32923 (kernel_elf_SOURCES): Add list.c and handler.c.
32924 (kernel_elf_HEADERS): Add list.h and handler.h.
32926 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32928 (kernel_elf_SOURCES): Add list.c and handler.c.
32929 (kernel_elf_HEADERS): Add list.h and handler.h.
32931 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32933 (kernel_mod_SOURCES): Add list.c and handler.c.
32934 (kernel_mod_HEADERS): Add list.h and handler.h.
32936 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32938 (kernel_elf_SOURCES): Add list.c and handler.c.
32939 (kernel_elf_HEADERS): Add list.h and handler.h.
32941 2009-02-27 Robert Millan <rmh@aybabtu.com>
32943 Factorize elf32 / elf64 code in Multiboot loader. This will
32944 prevent it from getting out of sync again.
32946 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
32947 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
32948 grub_multiboot_load_elf64): Move from here ...
32949 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
32950 grub_multiboot_load_elf): ... to here (new file).
32952 2009-02-27 Robert Millan <rmh@aybabtu.com>
32954 * util/grub.d/10_linux.in: Rename "single-user mode" to
32957 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
32959 Don't leak in SCSI code.
32960 * disk/scsi.c (grub_scsi_close): free `scsi'.
32962 2009-02-27 Robert Millan <rmh@aybabtu.com>
32964 * loader/i386/pc/multiboot.c: Move from here ...
32965 * loader/i386/multiboot.c: ... to here. Update all users.
32967 2009-02-27 Robert Millan <rmh@aybabtu.com>
32969 Patch from Alexandre Bique <bique.alexandre@gmail.com>
32970 * util/i386/pc/grub-setup.c (setup): Fix directory path.
32972 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
32974 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
32977 2009-02-27 Robert Millan <rmh@aybabtu.com>
32979 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
32980 `0x' qualifier as 0 when base is specified as parameter).
32982 2009-02-24 Bean <bean123ch@gmail.com>
32984 * configure.ac: Check for -mcmodel=large in x86_64 target.
32986 * include/grub/efi/api.h (efi_call_10): New macro.
32987 (efi_wrap_10): New function.
32989 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
32990 (GRUB_PE32_REL_BASED_HIGH): Likewise.
32991 (GRUB_PE32_REL_BASED_LOW): Likewise.
32992 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
32993 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
32994 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
32995 (GRUB_PE32_REL_BASED_SECTION): Likewise.
32996 (GRUB_PE32_REL_BASED_REL): Likewise.
32997 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
32998 (GRUB_PE32_REL_BASED_DIR64): Likewise.
32999 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33001 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33004 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33005 (efi_wrap_10): New function.
33007 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33009 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33010 MB/MBP model (NV chipset).
33011 (devdata_devs): Add devpath_5 to the list.
33013 * load/i386/efi/linux.c (video_base): Remove variable.
33014 (RGB_MASK): New macro.
33015 (RGB_MAGIC): Likewise.
33016 (LINE_MIN): Likewise.
33017 (LINE_MAX): Likewise.
33018 (FBTEST_STEP): Likewise.
33019 (FBTEST_COUNT): Likewise.
33020 (fb_list): New variable.
33021 (grub_find_video_card): Remove function.
33022 (find_framebuf): New function.
33023 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33026 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33027 problem for x86_64.
33029 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33031 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33033 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33036 2009-02-22 Robert Millan <rmh@aybabtu.com>
33038 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33039 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33040 in our relocation, instead of using it directly from heap. Also
33041 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33043 2009-02-21 Robert Millan <rmh@aybabtu.com>
33045 Implement USB keyboard support (based on patch by Marco Gerards)
33047 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33048 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33049 (usb_keyboard_mod_LDFLAGS): New variables.
33051 * term/usb_keyboard.c: New file.
33053 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33055 Corrected wrong declaration
33057 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33059 2009-02-14 Christian Franke <franke@computer.org>
33061 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33062 (grub_lspci_iter): Print class code and programming interface byte.
33064 2009-02-14 Christian Franke <franke@computer.org>
33066 * gendistlist.sh: Ignore `.svn' directories.
33068 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33070 * fs/fat.c: Add 2009 to Copyright line.
33072 2009-02-14 Christian Franke <franke@computer.org>
33074 * commands/hdparm.c: New file. Provides `hdparm' command
33075 which sends ATA commands via grub_disk_ata_pass_through ().
33077 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33079 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33080 and <grub/cpu/io.h> to include/grub/ata.h.
33081 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33082 (GRUB_CDROM_SECTOR_SIZE): Remove.
33083 (GRUB_ATA_*): Move to include/grub/ata.h.
33084 (GRUB_ATAPI_*): Likewise.
33085 (enum grub_ata_commands): Likewise.
33086 (enum grub_ata_timeout_milliseconds): Likewise.
33087 (struct grub_ata_device): Likewise.
33088 (grub_ata_regset): Likewise.
33089 (grub_ata_regget): Likewise.
33090 (grub_ata_regset2): Likewise.
33091 (grub_ata_regget2): Likewise.
33092 (grub_ata_check_ready): Likewise.
33093 (grub_ata_wait_not_busy): Remove static, exported in
33094 include/grub/ata.h.
33095 (grub_ata_wait_drq): Likewise.
33096 (grub_ata_pio_read): Likewise.
33098 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33099 function for hdparm.mod.
33101 * include/grub/ata.h: New file, contains declarations from
33103 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33105 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33106 (grub_disk_ata_pass_through): New exported variable.
33108 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33110 2009-02-13 Colin D Bennett <colin@gibibit.com>
33112 Support multiple fallback entries, and provide an API to support
33113 executing default+fallback menu entries. Renamed the `terminal' menu
33116 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33117 variable declaration.
33118 (grub_menu_execute_callback): New structure declaration.
33119 (grub_menu_execute_callback_t): New typedef.
33120 (grub_menu_execute_with_fallback): New function declaration.
33121 (grub_menu_get_entry): Likewise.
33122 (grub_menu_get_timeout): Likewise.
33123 (grub_menu_set_timeout): Likewise.
33125 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33127 * normal/menu.c (grub_wait_after_message): Moved to
33128 `normal/menu_text.c'.
33129 (draw_border): Likewise.
33130 (print_message): Likewise.
33131 (print_entry): Likewise.
33132 (print_entries): Likewise.
33133 (grub_menu_init_page): Likewise.
33134 (get_entry_number): Likewise.
33135 (print_timeout): Likewise.
33136 (run_menu): Likewise.
33137 (grub_menu_execute_entry): Likewise.
33138 (show_text_menu): Likewise.
33139 (get_and_remove_first_entry_number): New function.
33140 (grub_menu_execute_with_fallback): Likewise.
33141 (get_entry): Renamed to ...
33142 (grub_menu_get_entry): .. this and made it global.
33143 (get_timeout): Renamed to ...
33144 (grub_menu_get_timeout): ... this and made it global.
33145 (set_timeout): Renamed to ...
33146 (grub_menu_set_timeout): ... this and made it global.
33147 (grub_normal_terminal_menu_viewer): Renamed to ...
33148 (grub_normal_text_menu_viewer): ... this.
33150 * normal/menu_text.c: New file. Extracted text-menu-specific code
33151 from normal/menu.c.
33153 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33154 (normal_mod_SOURCES): Likewise.
33156 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33157 (normal_mod_SOURCES): Likewise.
33159 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33160 (normal_mod_SOURCES): Likewise.
33162 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33163 (normal_mod_SOURCES): Likewise.
33165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33166 (normal_mod_SOURCES): Likewise.
33168 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33169 (normal_mod_SOURCES): Likewise.
33171 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33172 (normal_mod_SOURCES): Likewise.
33174 2009-02-11 Robert Millan <rmh@aybabtu.com>
33176 * util/grub.d/00_header.in: Update old reference to `font' command.
33178 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33180 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33182 Based on patch from Javier Martín.
33184 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33186 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33187 to avoid false positives with FAT.
33188 (grub_fstest_SOURCES): Likewise.
33189 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33190 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33192 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33193 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33194 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33196 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33198 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33199 bpb.version_specific.fat12_or_fat16.fstype and
33200 bpb.version_specific.fat32.fstype.
33202 2009-02-08 Robert Millan <rmh@aybabtu.com>
33204 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33206 2009-02-08 Robert Millan <rmh@aybabtu.com>
33208 * Makefile.in (host_os, host_cpu): New variables.
33209 (target_os): Remove. Update all users.
33211 2009-02-08 Marco Gerards <marco@gnu.org>
33213 * Makefile.in (enable_grub_emu_usb): New variable.
33214 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33215 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33216 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33217 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33218 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33219 `usbtest.mod' and `usbms.mod'.
33220 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33221 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33222 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33223 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33224 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33227 * disk/usbms.c: New file.
33229 * include/grub/usb.h: Likewise.
33231 * include/grub/usbtrans.h: Likewise.
33233 * include/grub/usbdesc.h: Likewise.
33235 * bus/usb/usbtrans.c: Likewise.
33237 * bus/usb/ohci.c: Likewise.
33239 * bus/usb/uhci.c: Likewise.
33241 * bus/usb/usbhub.c: Likewise.
33243 * bus/usb/usb.c: Likewise.
33245 * commands/usbtest.c: Likewise.
33247 * util/usb.c: Likewise.
33249 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33251 * configure.ac: Test for libusb presence.
33253 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33255 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33257 * kern/mm.c: Add more comments.
33259 2009-02-08 Robert Millan <rmh@aybabtu.com>
33261 Patch from Javier Martín.
33262 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33263 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33265 2009-02-08 Robert Millan <rmh@aybabtu.com>
33267 * fs/cpio.c: Split tar functionality to ...
33268 * fs/tar.c: ... here (new file). Update all users.
33270 2009-02-07 Robert Millan <rmh@aybabtu.com>
33272 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33273 backward-incompatible features.
33275 Based on patch from Javier Martín, with some adjustments.
33277 2009-02-07 Michael Scherer <misc@mandriva.org>
33279 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33281 2009-02-07 Robert Millan <rmh@aybabtu.com>
33283 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33284 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33285 after the RAID stuff.
33287 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33289 Fixes problem when running vbetest command as reported by
33290 Vladimir Serbinenko <phcoder@gmail.com>.
33292 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33294 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33296 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33297 /dev/md/NpN style mdraid devices.
33299 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33301 * util/unifont2pff.rb: Remove.
33303 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33305 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33308 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33310 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33311 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33312 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33313 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33314 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33315 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33316 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33318 2009-02-02 Christian Franke <franke@computer.org>
33320 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33322 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33324 * INSTALL: Note that we now require at least autoconf 2.59 and
33325 that LZO is optional.
33327 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33329 Base on patch on bug #24154 created by Tomas Tintera
33330 <trosos@seznam.cz>.
33332 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33334 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33336 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33337 <bero@arklinux.org>.
33339 * normal/parser.y (script_init): Add missing semicolon.
33341 2009-01-31 Colin D Bennett <colin@gibibit.com>
33343 * normal/main.c: Add include to grub/menu_viewer.h.
33344 (free_menu_entry_classes): Added.
33345 (grub_normal_menu_addentry): Added class property handling.
33346 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33347 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33349 * normal/menu_viewer.c: New file.
33351 * normal/menu.c (run_menu_entry): Renamed to ...
33352 (grub_menu_execute_entry): ... this and made it as global.
33353 (grub_menu_run): Renamed to ...
33354 (show_text_menu): ... this and made it local.
33355 (show_text_menu): Adapt to new function names.
33356 (grub_normal_terminal_menu_viewer): New global variable.
33358 * include/grub/menu.h: New file.
33360 * include/grub/menu_viewer.h: New file.
33362 * include/grub/normal.h: Added include to grub/menu.h.
33363 (grub_menu_entry): Moved to include/grub/menu.h.
33364 (grub_menu_entry_t): Likewise.
33365 (grub_menu): Likewise.
33366 (grub_menu_t): Likewise.
33367 (grub_normal_terminal_menu_viewer): Added.
33368 (grub_menu_execute_entry): Likewise.
33369 (grub_menu_run): Removed.
33371 * DISTLIST: Added include/grub/menu.h.
33372 Added include/grub/menu_viewer.h.
33373 Added normal/menu_viewer.c.
33375 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33377 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33378 arglist for menutitle arguments.
33380 * normal/main.c (grub_normal_menu_addentry): Likewise.
33382 * normal/parser.y (menuentry): Likewise.
33384 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33386 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33387 (grub_script_create_cmdmenu): Likewise.
33389 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33391 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33394 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33396 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33398 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33400 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33402 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33404 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33406 2009-01-30 Christian Franke <franke@computer.org>
33408 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33409 in option help text.
33411 2009-01-27 Pavel Roskin <proski@gnu.org>
33413 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33415 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33417 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33419 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33421 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33422 unregister function.
33424 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33426 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33428 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33430 * util/grub-mkfont.c (usage): Fix typo.
33432 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33434 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33436 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33438 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33440 * kern/misc.c (grub_strcasecmp): New function.
33441 (grub_strcasecmp): Use grub_size_t instead of int for length.
33443 * include/grub/misc.h: Update function prototypes.
33445 2009-01-26 Robert Millan <rmh@aybabtu.com>
33447 * configure.ac: Fix cross-compilation check.
33449 2009-01-22 Christian Franke <franke@computer.org>
33451 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33452 (precision) digit string. Allow `.format2' without `format1' (width).
33453 Limit input chars for `%s' output to `format2' if specified. This is
33454 compatible with standard printf ().
33456 2009-01-22 Christian Franke <franke@computer.org>
33458 * disk/ata.c (grub_ata_wait_status): Replace by ...
33459 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33460 other status bits may be invalid while BSY is asserted.
33461 (grub_ata_check_ready): New function.
33462 (grub_ata_cmd): Removed.
33463 (grub_ata_wait_drq): New function.
33464 (grub_ata_strncpy): Remove inline.
33465 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33466 and error check now done by grub_ata_wait_drq ().
33467 (grub_ata_pio_write): Likewise.
33468 (grub_atapi_identify): Set DEV before check for !BSY. Use
33469 grub_ata_wait_drq () to wait for data.
33470 (grub_ata_device_initialize): Add status register check to
33471 detect missing SATA slave devices. Add debug messages.
33472 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33473 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33474 transfer loop by grub_ata_pio_write ().
33475 (grub_ata_identify): Set DEV before check for !BSY. Use
33476 grub_ata_wait_drq () to wait for data.
33477 (grub_ata_setaddress): Set DEV before check for !BSY.
33478 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33479 read/write in one loop. Fix invalid command on write. Fix incomplete
33480 command on (size % batch) == 0. Add missing error check after write of
33481 last block. Add debug messages.
33482 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33484 2009-01-19 Christian Franke <franke@computer.org>
33486 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33487 (GRUB_ATAPI_IREASON_*): Likewise.
33488 (grub_ata_pio_write): Fix timeout error return.
33489 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33490 (grub_atapi_wait_drq): New function.
33491 (grub_atapi_packet): New parameter `size'.
33492 Use grub_atapi_wait_drq () and direct write instead of
33493 grub_ata_pio_write ().
33494 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33495 reads the number of bytes requested by the device for each DRQ
33497 (grub_atapi_write): Remove old implementation, return not
33498 implemented instead.
33500 2009-01-19 Christian Franke <franke@computer.org>
33502 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33503 of 512 to calculate data size.
33504 (grub_scsi_read12): Likewise.
33505 (grub_scsi_write10): Likewise.
33506 (grub_scsi_write12): Likewise.
33507 (grub_scsi_read): Adjust size according to blocksize.
33508 Add checks for invalid blocksize and unaligned transfer.
33510 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33512 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33514 * term/gfxterm.c (write_char): Fix background rendering for wide
33517 2009-01-19 Robert Millan <rmh@aybabtu.com>
33519 * config.guess: Update to latest version from config git.
33520 * config.sub: Likewise.
33522 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33524 * Makefile.in: Change font compilation to use new grub-mkfont instead
33527 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33528 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33529 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33530 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33531 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33532 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33533 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33534 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33535 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33537 2009-01-16 Christian Franke <franke@computer.org>
33539 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33540 (enum grub_ata_timeout_milliseconds): New enum.
33541 (grub_ata_wait_status): Add parameter milliseconds.
33542 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33543 recovery from timed-out commands.
33544 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33545 return grub_errno instead of REG_ERROR.
33546 (grub_ata_pio_write): Add parameter milliseconds.
33547 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33548 Pass milliseconds to grub_ata_wait_status () and
33549 grub_ata_pio_read ().
33550 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33551 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33552 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33553 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33554 It is not suitable for device detection, because DEV bit is ignored,
33555 the command may run too long, and not all devices set the signature
33557 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33558 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33559 Fix device selection, DEV bit must be set first to address the registers
33560 of the correct device.
33561 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33562 grub_ata_pio_read/write ().
33563 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33564 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33566 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33568 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33570 2009-01-13 Bean <bean123ch@gmail.com>
33572 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33574 2009-01-13 Bean <bean123ch@gmail.com>
33576 * Makefile.in: (enable_grub_mkfont): New variable.
33577 (freetype_cflags): Likewise.
33578 (freetype_libs): Likewise.
33580 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33581 (grub_mkfont_SOURCES): New variable.
33582 (grub_mkfont_CFLAGS): Likewise.
33583 (grub_mkfont_LDFLAGS): Likewise.
33585 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33586 library if `--enable-grub-mkfont' is requested.
33587 (enable_grub_mkfont): New variable.
33588 (freetype_cflags): Likewise.
33589 (freetype_libs): Likewise.
33591 * util/grub-mkfont.c: New file.
33593 2009-01-12 Christian Franke <franke@computer.org>
33595 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33596 mode check. Fix setting of compat_use[].
33598 2009-01-10 Robert Millan <rmh@aybabtu.com>
33600 Update a few copyright years which we forgot to do in 2008 (only for
33601 files whose changes made in 2008 were copyright-significant)
33603 * Makefile.in: Add 2008 to Copyright line.
33604 * disk/ieee1275/ofdisk.c: Likewise.
33605 * disk/efi/efidisk.c: Likewise.
33606 * kern/dl.c: Likewise.
33607 * kern/sparc64/ieee1275/init.c: Likewise.
33608 * kern/mm.c: Likewise.
33609 * kern/efi/mm.c: Likewise.
33610 * boot/i386/pc/boot.S: Likewise.
33611 * genfslist.sh: Likewise.
33612 * fs/iso9660.c: Likewise.
33613 * fs/hfs.c: Likewise.
33614 * fs/jfs.c: Likewise.
33615 * fs/minix.c: Likewise.
33616 * fs/ufs.c: Likewise.
33617 * gensymlist.sh.in: Likewise.
33618 * genkernsyms.sh.in: Likewise.
33619 * include/grub/misc.h: Likewise.
33620 * include/grub/types.h: Likewise.
33621 * include/grub/symbol.h: Likewise.
33622 * include/grub/elf.h: Likewise.
33623 * include/grub/kernel.h: Likewise.
33624 * include/grub/disk.h: Likewise.
33625 * include/grub/dl.h: Likewise.
33626 * include/grub/i386/linux.h: Likewise.
33627 * include/grub/i386/pc/biosdisk.h: Likewise.
33628 * include/grub/efi/api.h: Likewise.
33629 * include/grub/efi/pe32.h: Likewise.
33630 * include/grub/util/misc.h: Likewise.
33631 * normal/execute.c: Likewise.
33632 * normal/arg.c: Likewise.
33633 * normal/completion.c: Likewise.
33634 * normal/lexer.c: Likewise.
33635 * normal/parser.y: Likewise.
33636 * normal/misc.c: Likewise.
33637 * commands/i386/pc/vbeinfo.c: Likewise.
33638 * commands/hexdump.c: Likewise.
33639 * commands/terminal.c: Likewise.
33640 * commands/ls.c: Likewise.
33641 * commands/help.c: Likewise.
33642 * partmap/pc.c: Likewise.
33643 * loader/efi/chainloader.c: Likewise.
33644 * loader/multiboot_loader.c: Likewise.
33645 * loader/i386/pc/multiboot2.c: Likewise.
33646 * term/efi/console.c: Likewise.
33647 * term/i386/pc/serial.c: Likewise.
33648 * util/lvm.c: Likewise.
33649 * util/console.c: Likewise.
33650 * util/i386/efi/grub-mkimage.c: Likewise.
33651 * util/raid.c: Likewise.
33653 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
33655 * commands/videotest.c: Removed include to grub/machine/memory.h.
33657 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
33658 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
33659 (video_mod_SOURCES): Removed.
33660 (video_mod_CFLAGS): Likewise.
33661 (video_mod_LDFLAGS): Likewise.
33662 (gfxterm_mod_SOURCES): Likewise.
33663 (gfxterm_mod_CFLAGS): Likewise.
33664 (gfxterm_mod_LDFLAGS): Likewise.
33665 (videotest_mod_SOURCES): Likewise.
33666 (videotest_mod_CFLAGS): Likewise.
33667 (videotest_mod_LDFLAGS): Likewise.
33668 (bitmap_mod_SOURCES): Likewise.
33669 (bitmap_mod_CFLAGS): Likewise.
33670 (bitmap_mod_LDFLAGS): Likewise.
33671 (tga_mod_SOURCES): Likewise.
33672 (tga_mod_CFLAGS): Likewise.
33673 (tga_mod_LDFLAGS): Likewise.
33674 (jpeg_mod_SOURCES): Likewise.
33675 (jpeg_mod_CFLAGS): Likewise.
33676 (jpeg_mod_LDFLAGS): Likewise.
33677 (png_mod_SOURCES): Likewise.
33678 (png_mod_CFLAGS): Likewise.
33679 (png_mod_LDFLAGS): Likewise.
33681 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
33682 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
33683 (video_mod_SOURCES): Added.
33684 (video_mod_CFLAGS): Likewise.
33685 (video_mod_LDFLAGS): Likewise.
33686 (videotest_mod_SOURCES): Likewise.
33687 (videotest_mod_CFLAGS): Likewise.
33688 (videotest_mod_LDFLAGS): Likewise.
33689 (bitmap_mod_SOURCES): Likewise.
33690 (bitmap_mod_CFLAGS): Likewise.
33691 (bitmap_mod_LDFLAGS): Likewise.
33692 (tga_mod_SOURCES): Likewise.
33693 (tga_mod_CFLAGS): Likewise.
33694 (tga_mod_LDFLAGS): Likewise.
33695 (jpeg_mod_SOURCES): Likewise.
33696 (jpeg_mod_CFLAGS): Likewise.
33697 (jpeg_mod_LDFLAGS): Likewise.
33698 (png_mod_SOURCES): Likewise.
33699 (png_mod_CFLAGS): Likewise.
33700 (png_mod_LDFLAGS): Likewise.
33701 (gfxterm_mod_SOURCES): Likewise.
33702 (gfxterm_mod_CFLAGS): Likewise.
33703 (gfxterm_mod_LDFLAGS): Likewise.
33705 * term/gfxterm.c: Removed include to grub/machine/memory.h,
33706 grub/machine/console.h.
33708 2009-01-04 Jerone Young <jerone@gmail.com>
33710 Make on screen instructions clearer
33712 Based on patch created by Jidanni <jidanni@jidanni.org>
33714 * normal/menu.c: print clearer instructions on the screen
33716 2009-01-02 Colin D Bennett <colin@gibibit.com>
33720 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
33721 build system and fixed gfxterm.c to work with different sized fonts.
33723 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
33725 * configure: Re-generated.
33727 * DISTLIST: Removed font/manager.c.
33729 Added font/font_cmd.c.
33731 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
33734 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
33736 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
33738 * kern/term.c: Changed users of grub_utf8_to_ucs4.
33740 * normal/menu.c: Likewise.
33742 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
33743 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
33745 * include/grub/font.h: Replaced with new file.
33747 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
33748 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
33749 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
33750 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
33751 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
33752 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
33753 fg_red, fg_green, fg_blue, fg_alpha.
33754 (grub_video_adapter): Removed blit_glyph.
33755 (grub_video_blit_glyph): Removed.
33757 * font/manager.c: Removed file.
33759 * font/font.c: New file.
33761 * font/font_cmd.c: Likewise.
33763 * video/video.c (grub_video_blit_glyph): Removed.
33765 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
33766 (grub_video_vbe_map_rgba): Likewise.
33767 (grub_video_vbe_unmap_color_int): Likewise.
33768 (grub_video_vbe_blit_glyph): Removed.
33769 (grub_video_vbe_adapter): Removed blit_glyph.
33771 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
33772 (get_pixel): Likewise.
33773 (set_pixel): Likewise.
33775 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
33777 * term/gfxterm.c: Adapted to new font engine.
33779 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
33781 * term/i386/pc/vga.c: Likewise.
33783 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
33785 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33787 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33789 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33791 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33793 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33795 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33797 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33799 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33801 * util/grub.d/00_header.in: Changed to use new loadfont command.
33803 * util/grub-mkconfig_lib.in: Changed font extension.
33805 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
33807 * util/getroot.c (grub_util_get_grub_dev): Add support for
33808 /dev/md/dNNpNN style partitionable mdraid devices.
33810 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
33812 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
33813 at a time limit of the PXE TFTP API correctly.
33814 (grub_pxefs_close): Likewise.
33816 2008-11-29 Robert Millan <rmh@aybabtu.com>
33818 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
33819 grub_ata_device_initialize() calls.
33821 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
33823 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
33825 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
33827 2008-11-28 Robert Millan <rmh@aybabtu.com>
33829 Fix build on powerpc-ieee1275. Based on patch created by
33830 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
33831 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33832 `kern/ieee1275/mmap.c'.
33833 * include/grub/powerpc/ieee1275/memory.h: New file.
33835 Provide grub-install on coreboot.
33836 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
33837 (grub_install_SOURCES): New variable.
33838 * util/i386/pc/grub-install.in: Add a few condition checks to make it
33839 usable on coreboot.
33841 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
33843 * util/grub-fstest.c (grub_term_get_current_input): Change return type
33844 to `grub_term_input_t'.
33845 (grub_term_get_current_output): Change return type to
33846 `grub_term_output_t'.
33848 2008-11-22 Robert Millan <rmh@aybabtu.com>
33850 Fix breakage on coreboot due to declaration mismatch.
33851 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
33852 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
33853 grub_vga_text_cls().
33855 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
33856 comments. Avoid copying one more byte than necessary (just in case).
33858 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
33859 to 0x200000 (avoids trouble with some OFW implementations, and matches
33860 with the one in Yaboot).
33861 Reported by Manoel Abranches
33863 2008-11-20 Robert Millan <rmh@aybabtu.com>
33865 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
33866 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
33868 * util/grub-mkconfig_lib.in (grub_warn): New function.
33869 (convert_system_path_to_grub_path): Use grub_warn() when issuing
33870 warnings, to obtain consistent formatting.
33871 * util/grub.d/00_header.in: Likewise.
33872 * util/update-grub_lib.in: Likewise.
33874 * loader/i386/linux.c (allocate_pages): Fix a warning.
33875 Move comment text to `#error' stanza.
33877 Harmonize ieee1275's grub_available_iterate() with the generic
33878 grub_machine_mmap_iterate() interface (fixes a recently-introduced
33879 build problem on i386-ieee1275):
33880 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
33881 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
33882 parameter `type'. Update all users of this function.
33883 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33884 `kern/ieee1275/mmap.c'.
33885 * kern/ieee1275/init.c
33886 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
33888 (grub_machine_mmap_iterate): ... this.
33889 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
33890 return type to `grub_err_t'. Update all implementations of this
33891 function prototype.
33892 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
33895 Add `lsmmap' command (lists firmware-provided memory map):
33896 * commands/lsmmap.c: New file.
33897 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
33898 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
33900 * conf/powerpc-ieee1275.rmk: Likewise.
33901 * conf/i386-coreboot.rmk: Likewise.
33902 * conf/i386-ieee1275.rmk: Likewise.
33904 2008-11-19 Robert Millan <rmh@aybabtu.com>
33906 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
33907 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
33908 constraints to initrd allocation (based on code from
33909 loader/i386/pc/linux.c). Without them, initrd was allocated too high
33910 for Linux to find it.
33912 2008-11-14 Robert Millan <rmh@aybabtu.com>
33914 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
33915 order to cope with duplicate slashes.
33917 2008-11-14 Robert Millan <rmh@aybabtu.com>
33919 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
33920 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
33921 don't want to mess with lower memory, because it is used in the Linux
33924 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
33925 an appropriate place in lower memory, between 0x10000 and 0x90000,
33926 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
33927 is in our heap (probably as a result of it being corrupted during
33928 decompression). Add #error instance with comment to explain why this
33929 loader isn't currently usable on PC/BIOS.
33931 2008-11-14 Robert Millan <rmh@aybabtu.com>
33933 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
33934 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
33936 2008-11-12 Robert Millan <rmh@aybabtu.com>
33938 Make loader/i386/linux.c buildable on i386-pc (although disabled).
33940 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
33941 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
33943 * include/grub/i386/pc/memory.h: ... to here.
33945 2008-11-12 Robert Millan <rmh@aybabtu.com>
33947 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
33950 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
33951 (grub_console_cur_color, grub_console_real_putchar)
33952 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33953 (grub_console_setcolorstate, grub_console_setcolor)
33954 (grub_console_getcolor): Move from here ...
33955 * include/grub/i386/vga_common.h: ... to here (new file).
33957 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
33958 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
33959 `<grub/i386/io.h>'.
33960 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
33961 `<grub/i386/vga_common.h>'.
33963 2008-11-12 Robert Millan <rmh@aybabtu.com>
33965 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
33966 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
33967 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
33969 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33970 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
33972 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
33973 grub_console_init() with call to grub_vga_text_init().
33974 (grub_machine_fini): Replace call to
33975 grub_console_fini() with call to grub_vga_text_fini() and
33976 grub_at_keyboard_fini().
33978 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
33979 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33980 (grub_console_setcolorstate, grub_console_setcolor)
33981 (grub_console_getcolor): New function prototypes.
33983 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
33984 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
33985 (grub_vga_text_setcursor): Static-ize.
33986 (grub_vga_text_term): New structure.
33987 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
33989 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
33990 (grub_console_cur_color, grub_console_standard_color)
33991 (grub_console_normal_color, grub_console_highlight_color)
33992 (map_char, grub_console_putchar, grub_console_getcharwidth)
33993 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
33994 (grub_console_getcolor): Move from here ...
33995 * term/i386/vga_common.c: ... to here (same function names).
33997 2008-11-12 Robert Millan <rmh@aybabtu.com>
33999 Use newly-added Multiboot support in coreboot.
34001 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34002 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34004 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34005 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34006 (codestart): Store the MBI in `startup_multiboot_info' when we're
34007 being loaded using Multiboot.
34009 * kern/i386/coreboot/init.c (grub_machine_init): Move
34010 grub_at_keyboard_init() call to beginning of function (useful for
34011 debugging). Call grub_machine_mmap_init() before attempting to use
34012 grub_machine_mmap_iterate().
34013 (grub_lower_mem, grub_upper_mem): Move from here ...
34014 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34017 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34018 function prototype.
34020 2008-11-12 Robert Millan <rmh@aybabtu.com>
34022 Fix a regression introduced by the at_keyboard.mod split. Because
34023 some terminals are default on some platforms and non-default on
34024 others, the first terminal being registered determines which is
34025 going to be default.
34027 * kern/term.c (grub_term_register_input): If this is the first
34028 terminal being registered, set it as the current one.
34029 (grub_term_register_output): Likewise.
34031 * term/efi/console.c (grub_console_init): Do not call
34032 grub_term_set_current_output() or grub_term_set_current_input().
34033 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34034 * term/i386/pc/console.c (grub_console_init): Likewise.
34035 (grub_console_fini): Do not call grub_term_set_current_input()
34036 (but leave grub_term_set_current_output() to restore text mode).
34038 2008-11-10 Robert Millan <rmh@aybabtu.com>
34040 * util/grub.d/00_header.in: Add backward compatibility check for
34041 versions of terminal.mod that don't understand `terminal_input' or
34044 2008-11-09 Robert Millan <rmh@aybabtu.com>
34046 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34047 `terminal_input' / `terminal_output', not `terminal'.
34049 2008-11-08 Robert Millan <rmh@aybabtu.com>
34051 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34052 (DISTCLEANFILES): Add `build_env.mk'.
34054 2008-11-08 Robert Millan <rmh@aybabtu.com>
34056 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34057 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34058 members. Update all users.
34059 * util/console.c (grub_ncurses_term): Split in ...
34060 (grub_ncurses_term_input): ... this, and ...
34061 (grub_ncurses_term_output): ... this. Update all users.
34062 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34064 2008-11-08 Robert Millan <rmh@aybabtu.com>
34066 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34067 (PKGDATA): Add $(pkgdata_SRCDIR).
34068 (pkglib_BUILDDIR): New variable.
34069 (pkgdata_SRCDIR): New variable.
34070 (build_env.mk): New target.
34071 (include_DATA): New variable.
34072 (install-local): Install $(include_DATA) files in $(includedir).
34074 2008-11-07 Pavel Roskin <proski@gnu.org>
34076 * gendistlist.sh: Use C locale for sorting to ensure consistent
34077 output on all systems.
34079 * util/grub.d/00_header.in: Remove incorrect space before
34082 2008-11-07 Robert Millan <rmh@aybabtu.com>
34084 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34086 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34087 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34088 (based on find_multi_boot1_header).
34089 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34090 using find_multi_boot2_header(), and abort if neither Multiboot or
34091 Multiboot headers were found.
34093 2008-11-07 Robert Millan <rmh@aybabtu.com>
34095 Modularize at_keyboard.mod:
34097 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34098 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34099 (at_keyboard_mod_LDFLAGS): New variables.
34101 Actual terminal split:
34103 * include/grub/term.h (struct grub_term): Split in ...
34104 (struct grub_term_input): ... this, and ...
34105 (struct grub_term_output): ... this. Update all users.
34106 (grub_term_set_current): Split in ...
34107 (grub_term_set_current_input): ... this, and ...
34108 (grub_term_set_current_output): ... this.
34109 (grub_term_get_current): Split in ...
34110 (grub_term_get_current_input): ... this, and ...
34111 (grub_term_get_current_output): ... this.
34112 (grub_term_register): Split in ...
34113 (grub_term_register_input): ... this, and ...
34114 (grub_term_register_output): ... this.
34115 (grub_term_unregister): Split in ...
34116 (grub_term_unregister_input): ... this, and ...
34117 (grub_term_unregister_output): ... this.
34118 (grub_term_iterate): Split in ...
34119 (grub_term_iterate_input): ... this, and ...
34120 (grub_term_iterate_output): ... this.
34122 * kern/term.c (grub_term_list): Split in ...
34123 (grub_term_list_input): ... this, and ...
34124 (grub_term_list_output): ... this. Update all users.
34125 (grub_cur_term): Split in ...
34126 (grub_cur_term_input): ... this, and ...
34127 (grub_cur_term_output): ... this. Update all users.
34128 (grub_term_set_current): Split in ...
34129 (grub_term_set_current_input): ... this, and ...
34130 (grub_term_set_current_output): ... this.
34131 (grub_term_get_current): Split in ...
34132 (grub_term_get_current_input): ... this, and ...
34133 (grub_term_get_current_output): ... this.
34134 (grub_term_register): Split in ...
34135 (grub_term_register_input): ... this, and ...
34136 (grub_term_register_output): ... this.
34137 (grub_term_unregister): Split in ...
34138 (grub_term_unregister_input): ... this, and ...
34139 (grub_term_unregister_output): ... this.
34140 (grub_term_iterate): Split in ...
34141 (grub_term_iterate_input): ... this, and ...
34142 (grub_term_iterate_output): ... this.
34144 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34145 a check for input and one for output (and only attempt to get keys
34146 from user when input works).
34148 * util/grub-probe.c (grub_term_get_current): Split in ...
34149 (grub_term_get_current_input): ... this, and ...
34150 (grub_term_get_current_output): ... this.
34151 * util/grub-fstest.c: Likewise.
34152 * util/i386/pc/grub-setup.c: Likewise.
34153 * util/grub-editenv.c: Likewise.
34155 Portability adjustments:
34157 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34158 `term/i386/pc/at_keyboard.c'.
34159 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34160 grub_keyboard_controller_init() (now handled by terminal .init).
34161 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34162 grub_at_keyboard_init().
34163 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34164 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34165 at_keyboard.mod via input terminal interface).
34166 * include/grub/i386/coreboot/console.h: Convert into a stub for
34167 `<grub/i386/pc/console.h>'.
34169 Migrate full terminals to new API:
34171 * term/efi/console.c (grub_console_term): Split into ...
34172 (grub_console_term_input): ... this, and ...
34173 (grub_console_term_output): ... this. Update all users.
34174 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34175 (grub_ofconsole_init): Split into ...
34176 (grub_ofconsole_init_input): ... this, and ...
34177 (grub_ofconsole_init_output): ... this.
34178 (grub_ofconsole_term): Split into ...
34179 (grub_ofconsole_term_input): ... this, and ...
34180 (grub_ofconsole_term_output): ... this. Update all users.
34181 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34182 (grub_serial_term_input): ... this, and ...
34183 (grub_serial_term_output): ... this. Update all users.
34184 * term/i386/pc/console.c (grub_console_term): Split into ...
34185 (grub_console_term_input): ... this, and ...
34186 (grub_console_term_output): ... this. Update all users.
34187 (grub_console_term_input): Only enable it on PC/BIOS platform.
34188 (grub_console_init): Remove grub_keyboard_controller_init() call.
34190 Migrate input terminals to new API:
34192 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34193 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34194 i386-specific anyway).
34195 (grub_console_checkkey): Rename to ...
34196 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34198 (grub_keyboard_controller_orig): New variable.
34199 (grub_console_getkey): Rename to ...
34200 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34202 (grub_keyboard_controller_init): Static-ize. Save original
34203 controller value so that it can be restored ...
34204 (grub_keyboard_controller_fini): ... here (new function).
34205 (grub_at_keyboard_term): New structure.
34206 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34209 Migrate output terminals to new API:
34211 * term/i386/pc/vga.c (grub_vga_term): Change type to
34212 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34213 members. Update all users.
34214 * term/gfxterm.c (grub_video_term): Change type to
34215 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34216 members. Update all users.
34217 * include/grub/i386/pc/console.h (grub_console_checkkey)
34218 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34221 Migrate `terminal' command and userland tools to new API:
34223 * commands/terminal.c (grub_cmd_terminal): Split into ...
34224 (grub_cmd_terminal_input): ... this, and ...
34225 (grub_cmd_terminal_output): ... this.
34226 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34227 `terminal_input' and `terminal_output'.
34228 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34229 `terminal_input' / `terminal_output' API.
34230 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34231 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34232 provided ${GRUB_TERMINAL}, convert it).
34234 2008-11-04 Robert Millan <rmh@aybabtu.com>
34236 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34238 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34240 2008-11-03 Bean <bean123ch@gmail.com>
34242 * kern/elf.c (grub_elf32_load): Revert to previous code.
34243 (grub_elf64_load): Likewise.
34245 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34247 2008-11-01 Robert Millan <rmh@aybabtu.com>
34249 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34250 (TARGET_CPPFLAGS): Likewise.
34251 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34253 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34255 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34257 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34259 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34260 addition of objects until the code is not going to be able to fail.
34262 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34264 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34265 (add a missing NULL check, and correct them by moving the pointer
34266 operations after the actual check).
34268 2008-10-29 Robert Millan <rmh@aybabtu.com>
34270 * util/i386/pc/grub-install.in: Handle empty string as output from
34271 make_system_path_relative_to_its_root().
34273 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34275 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34276 circular metadata worst case scenario. If the metadata is circular
34277 then copy the wrap in place.
34278 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34279 project lib/format_text/layout.h
34280 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34282 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34284 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34286 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34288 * util/update-grub_lib.in: Mention filename in warning message.
34290 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34292 * NEWS: Update for rename of update-grub to grub-mkconfig.
34294 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34296 * util/update-grub_lib.in: Copy to ...
34297 * util/grub-mkconfig_lib.in: ... this. Update all users.
34298 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34299 * util/update-grub.in: Rename to ...
34300 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34301 option. Add `--output' option to allow users to specify the generated
34302 configuration file. Default to stdout.
34303 (update_grub_dir): Rename to ...
34304 (grub_mkconfig_dir): ... this.
34305 (grub_cfg): Default to an empty string.
34306 * conf/common.rmk (update-grub): Rename to ...
34307 (grub-mkconfig): ... this.
34308 (update-grub_lib): Copy to ...
34309 (grub-mkconfig_lib): ... this.
34310 (update-grub_SCRIPTS): Copy to ...
34311 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34312 (update-grub_DATA): Rename to ...
34313 (grub-mkconfig_DATA): ... this.
34315 2008-09-28 Robert Millan <rmh@aybabtu.com>
34317 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34318 to `modified'. Add the real `created' field.
34319 (grub_iso9660_uuid): Use `modified' rather than `created' for
34320 constructing the UUID.
34322 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34324 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34325 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34327 2008-09-28 Bean <bean123ch@gmail.com>
34329 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34330 Thanks to Christian Franke for finding this bug.
34332 2008-09-25 Robert Millan <rmh@aybabtu.com>
34334 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34335 instances of grub_util_get_disk_name() (see previous commit).
34337 2008-09-25 Robert Millan <rmh@aybabtu.com>
34339 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34340 `util/i386/get_disk_name.c'.
34341 * conf/i386-efi.rmk: Likewise.
34342 * conf/x86_64-efi.rmk: Likewise.
34343 * conf/i386-coreboot.rmk: Likewise.
34344 * conf/i386-ieee1275.rmk: Likewise.
34345 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34346 `util/ieee1275/get_disk_name.c'.
34347 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34348 * util/ieee1275/get_disk_name.c: Remove file.
34349 * util/i386/get_disk_name.c: Remove file.
34350 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34351 "hd%d" for device.map entries, rather than using
34352 grub_util_get_disk_name().
34354 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34356 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34358 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34360 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34362 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34364 (GRUB_TERM_PPAGE): Changed to 0x4900.
34366 2008-09-24 Robert Millan <rmh@aybabtu.com>
34368 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34369 macros (they were i386-pc specific).
34370 * include/grub/sparc64/ieee1275/console.h: Likewise.
34371 * include/grub/efi/console.h: Likewise.
34373 2008-09-22 Bean <bean123ch@gmail.com>
34375 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34376 resident and in attribute list.
34378 * include/grub/ntfs.h (BMP_LEN): Removed.
34380 2008-09-22 Bean <bean123ch@gmail.com>
34382 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34383 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34385 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34386 error occurs, as grub_disk_open will call grub_disk_close, which will
34387 call p->close (scsi).
34389 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34391 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34392 (AC_PREREQ): Bumped to 2.59.
34393 (AC_TRY_COMPILE): Replace obsolete macro with ...
34394 (AC_COMPILE_IFELSE): ... this.
34395 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34396 (AC_LINK_IFELSE): ... this.
34398 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34400 * autogen.sh: Add a call to `gendistlist.sh'.
34402 2008-09-19 Christian Franke <franke@computer.org>
34404 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34405 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34406 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34407 Export __enable_execute_stack() to modules.
34408 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34411 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34413 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34416 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34418 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34419 #include <grub/util/hostdisk.h>.
34421 2008-09-08 Robert Millan <rmh@aybabtu.com>
34423 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34424 segments when their filesz is zero (grub_file_read() interprets
34425 zero-size as "read until EOF", which results in memory corruption).
34426 Use `lowest_segment' rather than 0 for calculating the current
34427 segment load address.
34429 2008-09-08 Robert Millan <rmh@aybabtu.com>
34431 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34432 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34433 clobbered useful information.
34435 2008-09-08 Robert Millan <rmh@aybabtu.com>
34437 * include/grub/util/biosdisk.h: Move to ...
34438 * include/grub/util/hostdisk.h: ... here. Update all users.
34439 * util/biosdisk.c: Move to ...
34440 * util/hostdisk.c: ... here. Update all users.
34442 2008-09-07 Robert Millan <rmh@aybabtu.com>
34444 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34446 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34447 and length can be stored directly in the `mbi->mmap_addr' and
34448 `mbi->mmap_length' struct fields.
34450 2008-09-07 Robert Millan <rmh@aybabtu.com>
34452 * conf/i386.rmk: New file. Provides declaration for building
34454 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34455 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34457 Include `conf/i386.mk'.
34458 * conf/i386-efi.rmk: Likewise.
34459 * conf/x86_64-efi.rmk: Likewise.
34460 * conf/i386-coreboot.rmk: Likewise.
34461 * conf/i386-ieee1275.rmk: Likewise.
34463 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34465 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34466 Adds optimization support for BGR based modes.
34468 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34469 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34470 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34471 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34472 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34473 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34474 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34475 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34476 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34477 (grub_video_i386_vbeblit_index_index): Likewise.
34478 (grub_video_i386_vbeblit_replace_directN): Added.
34479 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34480 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34481 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34482 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34483 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34484 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34485 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34486 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34487 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34488 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34489 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34490 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34491 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34493 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34494 (grub_video_i386_vbefill_R8G8B8): Likewise.
34495 (grub_video_i386_vbefill_index): Likewise.
34496 (grub_video_i386_vbefill_direct32): Added.
34497 (grub_video_i386_vbefill_direct24): Likewise.
34498 (grub_video_i386_vbefill_direct16): Likewise.
34499 (grub_video_i386_vbefill_direct8): Likewise.
34501 * include/grub/video.h (grub_video_blit_format): Removed
34502 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34503 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34504 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34505 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34506 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34508 * video/video.c (grub_video_get_blit_format): Updated to use new
34509 blit formats. Added handling for 16 bit color modes.
34511 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34513 (common_blitter): Updated to use new blitters.
34515 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34517 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34518 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34519 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34520 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34521 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34522 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34523 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34524 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34525 (grub_video_i386_vbeblit_index_index): Likewise.
34526 (grub_video_i386_vbeblit_replace_directN): Added.
34527 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34528 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34529 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34530 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34531 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34532 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34533 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34534 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34535 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34536 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34537 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34538 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34539 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34541 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34542 (grub_video_i386_vbefill_R8G8B8): Likewise.
34543 (grub_video_i386_vbefill_index): Likewise.
34544 (grub_video_i386_vbefill_direct32): Added.
34545 (grub_video_i386_vbefill_direct24): Likewise.
34546 (grub_video_i386_vbefill_direct16): Likewise.
34547 (grub_video_i386_vbefill_direct8): Likewise.
34549 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34552 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34555 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34558 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34561 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34563 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34566 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34568 * fs/iso9660.c (grub_iso9660_date): New structure.
34569 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34570 (grub_iso9660_uuid): New function.
34572 2008-09-05 Bean <bean123ch@gmail.com>
34574 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34576 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34577 insensitive bit for names in Win32 and Win32 & DOS namespace.
34579 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34581 * include/grub/types.h (LONG_MAX): Likewise.
34583 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34585 * util/getroot.c: Include <config.h>.
34586 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34587 add support for /dev/md/N devices and handle LVM double dash escaping.
34589 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34591 * config.guess: Update to latest version from config git.
34592 * config.sub: Likewise.
34594 2008-09-03 Robert Millan <rmh@aybabtu.com>
34596 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34597 `disk->total_sectors'.
34599 2008-09-01 Colin D Bennett <colin@gibibit.com>
34601 * include/grub/normal.h: Fixed incorrect comment for
34602 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34604 2008-09-01 Colin D Bennett <colin@gibibit.com>
34606 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34607 values with defines.
34609 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34610 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34611 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34612 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34613 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34614 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34615 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34616 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34617 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34618 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34619 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34620 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34621 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34622 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34623 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34624 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34625 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34626 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34627 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34629 2008-08-31 Robert Millan <rmh@aybabtu.com>
34631 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34633 (grub_multiboot): Fix a few warnings.
34635 2008-08-31 Robert Millan <rmh@aybabtu.com>
34637 * loader/i386/pc/multiboot.c: Update comment not to say that
34638 boot_device support is unimplemented.
34640 2008-08-31 Robert Millan <rmh@aybabtu.com>
34642 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
34643 or memory map support are unimplemented.
34645 2008-08-31 Colin D Bennett <colin@gibibit.com>
34647 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
34649 2008-08-31 Colin D Bennett <colin@gibibit.com>
34651 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
34652 total video memory in 'vbeinfo' output; show color format details for
34655 2008-08-30 Pavel Roskin <proski@gnu.org>
34657 * util/genmoddep.c: Remove for real this time.
34658 * DISTLIST: Remove util/genmoddep.c.
34660 2008-08-30 Robert Millan <rmh@aybabtu.com>
34662 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
34663 as required by Multiboot spec (it was already 4-byte aligned, but
34666 2008-08-29 Pavel Roskin <proski@gnu.org>
34668 * kern/powerpc/ieee1275/crt0.S: Rename to ...
34669 * kern/powerpc/ieee1275/startup.S: ... this.
34670 * conf/powerpc-ieee1275.rmk: Adjust for the above.
34671 * DISTLIST: Likewise.
34673 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
34674 grub/cpu/kernel.h. Add start label for consistency with other
34675 platforms. Add grub_prefix immediately after start. Add jump
34676 to the code after grub_prefix.
34677 * include/grub/powerpc/kernel.h: Provide valid values for
34678 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
34680 2008-08-29 Bean <bean123ch@gmail.com>
34682 * configure.ac: Change host_os to cygwin for mingw.
34683 (asprintf): New check for function.
34685 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
34686 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
34688 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
34689 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
34690 sync, sleep and grub_util_get_disk_size for mingw.
34692 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
34693 to get size in mingw.
34694 (open_device): Use flag O_BINARY if it's defined.
34695 (find_root_device): Add dummy code for mingw.
34697 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
34698 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
34699 (get_scsi_disk_name): Return 0 for mingw.
34701 * util/hostfs.c: #include <grub/util/misc.h>.
34702 (grub_hostfs_open): Use "rb" flag to open file, use
34703 grub_util_get_disk_size to get disk size for mingw.
34705 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
34706 (asprintf): New function if HAVE_ASPRINTF is not set.
34707 (sync): New function for mingw.
34709 (grub_util_get_disk_size): Likewise.
34711 2008-08-28 Pavel Roskin <proski@gnu.org>
34713 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34716 2008-08-28 Robert Millan <rmh@aybabtu.com>
34718 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
34720 2008-08-28 Robert Millan <rmh@aybabtu.com>
34722 Change find_grub_drive() syntax so it doesn't prevent it from
34723 detecting NULL names as errors.
34725 * util/biosdisk.c (find_grub_drive): Move free slot search code
34727 (find_free_slot): ... to here.
34728 (read_device_map): Use find_free_slot() to search for free slots.
34730 2008-08-27 Marco Gerards <marco@gnu.org>
34732 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
34733 (scsi_mod_SOURCES): New variable.
34734 (scsi_mod_CFLAGS): Likewise
34735 (scsi_mod_LDFLAGS): Likewise.
34737 * disk/scsi.c: New file.
34739 * include/grub/scsi.h: Likewise.
34741 * include/grub/scsicmd.h: Likewise.
34743 * disk/ata.c: Include <grub/scsi.h>.
34744 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
34746 (grub_ata_iterate): Skip ATAPI devices.
34747 (grub_ata_open): Only handle ATAPI devices.
34748 (struct grub_atapi_read): Removed.
34749 (grub_atapi_readsector): Likewise.
34750 (grub_ata_read): No longer handle ATAPI devices.
34751 (grub_ata_write): Likewise.
34752 (grub_atapi_iterate): New function.
34753 (grub_atapi_read): Likewise.
34754 (grub_atapi_write): Likewise.
34755 (grub_atapi_open): Likewise.
34756 (grub_atapi_close): Likewise.
34757 (grub_atapi_dev): New variable.
34758 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
34759 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
34761 * include/grub/disk.h (enum grub_disk_dev_id): Add
34762 `GRUB_DISK_DEVICE_SCSI_ID'.
34764 2008-08-26 Robert Millan <rmh@aybabtu.com>
34766 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
34767 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
34770 2008-08-23 Bean <bean123ch@gmail.com>
34772 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
34773 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34774 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
34775 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
34777 (raid5rec_mod_SOURCES): New macro.
34778 (raid5rec_mod_CFLAGS): Likewise.
34779 (raid5rec_mod_LDFLAGS): Likewise.
34780 (raid6rec_mod_SOURCES): Likewise.
34781 (raid6rec_mod_CFLAGS): Likewise.
34782 (raid6rec_mod_LDFLAGS): Likewise.
34783 (mdraid_mod_SOURCES): Likewise.
34784 (mdraid_mod_CFLAGS): Likewise.
34785 (mdraid_mod_LDFLAGS): Likewise.
34786 (dm_nv_mod_SOURCES): Likewise.
34787 (dm_nv_mod_CFLAGS): Likewise.
34788 (dm_nv_mod_LDFLAGS): Likewise.
34790 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
34791 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34792 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34794 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
34795 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34797 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34799 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34801 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34803 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34805 * disk/raid5_recover.c: New file.
34807 * disk/raid6_recover.c: Likewise.
34809 * disk/mdraid_linux.c: Likewise.
34811 * disk/dmraid_nvidia.c: Likewise.
34813 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
34816 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
34817 calculate the size of raid device.
34818 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
34819 different layout of raid5.
34820 (grub_raid_scan_device): Remove code specific to mdraid.
34821 (grub_raid_list): New variable.
34822 (free_array): New function.
34823 (grub_raid_register): Likewise.
34824 (grub_raid_unregister): Likewise.
34825 (grub_raid_rescan): Likewise.
34826 (GRUB_MOD_INIT): Don't iterate device here.
34827 (GRUB_MOD_FINI): Use free_array to release resource.
34829 * include/grub/raid.h: Remove macro and structure specific to mdraid.
34830 (grub_raid5_recover_func_t): New function variable type.
34831 (grub_raid6_recover_func_t): Likewise.
34832 (grub_raid5_recover_func): New variable.
34833 (grub_raid6_recover_func): Likewise.
34834 (grub_raid_register): New function.
34835 (grub_raid_unregister): Likewise.
34836 (grub_raid_rescan): Likewise.
34837 (grub_raid_block_xor): Likewise.
34839 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
34840 (CMD_CRC): New macro.
34842 (read_file): Handle device as well as file.
34843 (cmd_crc): New function.
34844 (fstest): Handle multiple disks.
34845 (options): Remove part, raw and long, add root and diskcount.
34846 (usage): Add crc, remove -p, -r, -l, add -r and -c.
34847 (main): Find the first non option entry and ignore subsequent options,
34848 add handling for the new options, support multiple disks.
34850 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
34852 2008-08-23 Bean <bean123ch@gmail.com>
34854 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
34856 * genfslist.sh: Ignore kernel.mod.
34858 * genpartmaplist.sh: Likewise.
34860 2008-08-23 Robert Millan <rmh@aybabtu.com>
34862 * util/getroot.c (find_root_device): Skip anything that starts with
34863 a dot, not just directories. This avoids things like /dev/.tmp.md0.
34865 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
34867 * util/update-grub.in (GRUB_GFXMODE): Export variable.
34868 * util/grub.d/00_header.in: Allow the administrator to change default
34869 gfxmode via ${GRUB_GFXMODE}.
34871 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
34873 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
34875 2008-08-21 Robert Millan <rmh@aybabtu.com>
34877 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
34879 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
34880 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
34882 2008-08-20 Carles Pina i Estany <carles@pina.cat>
34884 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
34885 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
34887 2008-08-19 Robert Millan <rmh@aybabtu.com>
34889 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
34890 (struct grub_virtual_screen): Remove `cursor_color'.
34891 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
34893 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
34895 2008-08-18 Robert Millan <rmh@aybabtu.com>
34897 Unify (identical) linux_normal.c files.
34898 * loader/i386/efi/linux_normal.c: Move from here ...
34899 * loader/linux_normal.c: ... to here. Update all users.
34900 * loader/i386/pc/linux_normal.c: Delete. Update all users.
34901 * loader/i386/ieee1275/linux_normal.c: Likewise.
34903 2008-08-18 Robert Millan <rmh@aybabtu.com>
34905 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
34906 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
34907 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
34908 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
34909 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
34911 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
34912 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
34913 (GRUB_LINUX_CL_END_OFFSET): ... to here.
34914 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
34915 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
34916 (GRUB_EFI_CL_END_OFFSET): Rename to ...
34917 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
34918 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
34919 Initialize `params->video_cursor_x' and `params->video_cursor_y'
34920 portably using grub_getxy().
34921 Replace `-EFI' with `-bzImage' in boot message.
34923 2008-08-17 Robert Millan <rmh@aybabtu.com>
34925 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
34927 2008-08-17 Robert Millan <rmh@aybabtu.com>
34929 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
34931 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
34932 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
34933 (grub_machine_mmap_iterate): New function declaration.
34934 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
34936 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
34939 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
34940 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
34941 Move e820 parsing from here ...
34942 * kern/i386/pc/mmap.c: New file.
34943 (grub_machine_mmap_iterate): ... to here.
34945 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
34946 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
34947 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
34948 (grub_available_iterate): Redeclare to return `void', and redeclare
34949 its hook to use grub_uint64_t as addr and size parameters, and rename
34951 (grub_machine_mmap_iterate): ... this. Update all users.
34953 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
34954 to make it more readable. Rename to ...
34955 (grub_machine_mmap_iterate): ... this.
34957 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
34958 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
34959 (grub_multiboot): Allocate an extra region after the payload, and fill
34960 it with a Multiboot memory map. Adjust a.out loader to calculate size
34961 with the extra space.
34962 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
34963 with the extra space.
34965 2008-08-17 Carles Pina i Estany <carles@pina.cat>
34967 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
34969 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
34971 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
34972 mdate-sh to the list `find' searches for.
34973 * DISTLIST: Regenerated.
34975 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
34977 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
34978 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
34979 genmoddep.awk, gensymlist.sh.in.
34980 (DISTDIRS): Add bus, docs, hook, lib.
34981 * DISTLIST: Regenerated.
34982 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
34984 2008-08-16 Robert Millan <rmh@aybabtu.com>
34986 * disk/raid.c (grub_raid_init): Handle/report errors set by
34987 grub_device_iterate().
34988 * disk/lvm.c (grub_lvm_init): Likewise.
34990 2008-08-15 Bean <bean123ch@gmail.com>
34992 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34994 (datetime_mod_SOURCES): New macro.
34995 (datetime_mod_CFLAGS): Likewise.
34996 (datetime_mod_LDFLAGS): Likewise.
34997 (date_mod_SOURCES): Likewise.
34998 (date_mod_CFLAGS): Likewise.
34999 (date_mod_LDFLAGS): Likewise.
35000 (datehook_mod_SOURCES): Likewise.
35001 (datehook_mod_CFLAGS): Likewise.
35002 (datehook_mod_LDFLAGS): Likewise.
35004 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35006 (datetime_mod_SOURCES): New macro.
35007 (datetime_mod_CFLAGS): Likewise.
35008 (datetime_mod_LDFLAGS): Likewise.
35009 (date_mod_SOURCES): Likewise.
35010 (date_mod_CFLAGS): Likewise.
35011 (date_mod_LDFLAGS): Likewise.
35012 (datehook_mod_SOURCES): Likewise.
35013 (datehook_mod_CFLAGS): Likewise.
35014 (datehook_mod_LDFLAGS): Likewise.
35016 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35018 (datetime_mod_SOURCES): New macro.
35019 (datetime_mod_CFLAGS): Likewise.
35020 (datetime_mod_LDFLAGS): Likewise.
35021 (date_mod_SOURCES): Likewise.
35022 (date_mod_CFLAGS): Likewise.
35023 (date_mod_LDFLAGS): Likewise.
35024 (datehook_mod_SOURCES): Likewise.
35025 (datehook_mod_CFLAGS): Likewise.
35026 (datehook_mod_LDFLAGS): Likewise.
35028 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35030 (datetime_mod_SOURCES): New macro.
35031 (datetime_mod_CFLAGS): Likewise.
35032 (datetime_mod_LDFLAGS): Likewise.
35033 (date_mod_SOURCES): Likewise.
35034 (date_mod_CFLAGS): Likewise.
35035 (date_mod_LDFLAGS): Likewise.
35036 (datehook_mod_SOURCES): Likewise.
35037 (datehook_mod_CFLAGS): Likewise.
35038 (datehook_mod_LDFLAGS): Likewise.
35040 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35042 (datetime_mod_SOURCES): New macro.
35043 (datetime_mod_CFLAGS): Likewise.
35044 (datetime_mod_LDFLAGS): Likewise.
35045 (date_mod_SOURCES): Likewise.
35046 (date_mod_CFLAGS): Likewise.
35047 (date_mod_LDFLAGS): Likewise.
35048 (datehook_mod_SOURCES): Likewise.
35049 (datehook_mod_CFLAGS): Likewise.
35050 (datehook_mod_LDFLAGS): Likewise.
35052 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35054 * commands/date.c: New file.
35056 * hook/datehook.c: Likewise.
35058 * include/grub/lib/datetime.h: Likewise.
35060 * include/grub/i386/cmos.h: Likewise.
35062 * lib/datetime.c: Likewise.
35064 * lib/i386/datetime.c: Likewise.
35066 * lib/efi/datetime.c: Likewise.
35068 2008-08-14 Robert Millan <rmh@aybabtu.com>
35070 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35071 (grub_mkelfimage_SOURCES): New variable.
35072 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35074 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35075 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35076 * conf/powerpc-ieee1275.rmk: Likewise.
35077 * conf/i386-ieee1275.rmk: Likewise.
35079 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35080 * kern/i386/coreboot/init.c: Likewise.
35082 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35083 with `<grub/cpu/kernel.h>'.
35084 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35086 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35087 * kern/i386/coreboot/startup.S: Likewise.
35089 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35090 (GRUB_MOD_GAP): Remove.
35091 * include/grub/powerpc/kernel.h: New file.
35092 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35093 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35094 * include/grub/i386/kernel.h: New file.
35095 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35096 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35097 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35099 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35101 Use --directory when invoking grub_mkimage.
35103 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35104 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35105 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35106 and GRUB_KERNEL_CPU_PREFIX.
35108 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35110 * include/grub/err.h (grub_err_printf): New function prototype.
35111 * util/misc.c (grub_err_printf): New function.
35112 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35114 * kern/err.c (grub_print_error): Use grub_err_printf.
35116 2008-08-13 Robert Millan <rmh@aybabtu.com>
35118 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35120 2008-08-13 Robert Millan <rmh@aybabtu.com>
35122 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35125 2008-08-12 Robert Millan <rmh@aybabtu.com>
35127 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35128 of the relocation code from here ...
35129 (grub_multiboot): ... to here.
35130 (forward_relocator, backward_relocator): Move from here ...
35131 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35132 (grub_multiboot_backward_relocator): ... to here.
35133 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35134 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35135 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35136 (grub_multiboot_forward_relocator_end)
35137 (grub_multiboot_backward_relocator)
35138 (grub_multiboot_backward_relocator_end): New variables.
35140 2008-08-12 Bean <bean123ch@gmail.com>
35142 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35144 2008-08-11 Robert Millan <rmh@aybabtu.com>
35146 * kern/i386/linuxbios/startup.S: Move from here ...
35147 * kern/i386/coreboot/startup.S: ... to here.
35149 * kern/i386/linuxbios/init.c: Move from here ...
35150 * kern/i386/coreboot/init.c: ... to here.
35152 * kern/i386/linuxbios/table.c: Move from here ...
35153 * kern/i386/coreboot/mmap.c: ... to here.
35155 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35157 2008-08-11 Robert Millan <rmh@aybabtu.com>
35159 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35160 errors. Leave it to the upper layer to handle them.
35162 2008-08-09 Christian Franke <franke@computer.org>
35164 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35165 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35166 Install `grub.d/10_windows' only on Cygwin.
35167 * configure.ac: Add subst of `target_os'.
35168 Check `target_os' also before setting TARGET_OBJ2ELF.
35169 Add `--enable-grub-pe2elf'.
35171 2008-08-08 Robert Millan <rmh@aybabtu.com>
35173 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35174 (grub_last_time): Change type to grub_uint64_t.
35175 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35176 (grub_disk_close): Likewise.
35178 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35179 (run_menu): Migrate code from to using grub_get_time_ms().
35181 * util/misc.c (grub_get_time_ms): New function.
35183 2008-08-08 Marco Gerards <marco@gnu.org>
35185 * disk/ata.c (grub_ata_regget): Change return type to
35187 (grub_ata_regget2): Likewise.
35188 (grub_ata_wait_status): New function.
35189 (grub_ata_wait_busy): Removed function, updated all users to use
35190 `grub_ata_wait_status'.
35191 (grub_ata_wait_drq): Likewise.
35192 (grub_ata_cmd): New function.
35193 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35195 (grub_ata_pio_write): Add error handling.
35196 (grub_atapi_identify): Likewise.
35197 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35199 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35200 handling. Actually use the detected registers. Reorder the
35201 detection logic such that it is easier to read.
35202 (grub_ata_pciinit): Do not assign the same ID to each controller.
35203 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35205 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35207 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35209 2008-08-08 Marco Gerards <marco@gnu.org>
35213 2008-08-07 Bean <bean123ch@gmail.com>
35215 * include/grub/x86_64/pci.h: New file.
35217 2008-08-07 Christian Franke <franke@computer.org>
35219 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35220 (TIMER2_GATE): Likewise.
35221 (grub_pit_wait): Add enable/disable of the timer2 gate
35222 bit of port 0x61. This fixes a possible infinite loop.
35224 2008-08-07 Bean <bean123ch@gmail.com>
35226 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35227 kern/i386/tsc.c and kern/i386/pit.c.
35229 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35232 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35235 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35237 2008-08-07 Bean <bean123ch@gmail.com>
35239 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35241 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35243 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35244 multiple inclusion. Add #include <grub/types.h>.
35246 2008-08-06 Christian Franke <franke@computer.org>
35248 * conf/common.rmk: Build and install `10_windows'.
35249 * util/grub.d/10_windows.in: New script.
35251 2008-08-06 Pavel Roskin <proski@gnu.org>
35253 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35255 2008-08-06 Robert Millan <rmh@aybabtu.com>
35257 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35258 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35260 2008-08-06 Bean <bean123ch@gmail.com>
35262 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35263 (grub_pxefs_fs_int): Remove dummy definition.
35264 (grub_pxefs_open): Use data->block_size to store the current block
35266 (grub_pxefs_read): Use block size stored in data->block_size. As the
35267 value of grub_pxe_blksize can be changed after the file is opened.
35269 2008-08-06 Bean <bean123ch@gmail.com>
35271 * fs/i386/pc/pxe.c (curr_file): new variable.
35272 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35273 require the dummy internal file system anymore.
35274 (grub_pxefs_read): Removed.
35275 (grub_pxefs_close): Likewise.
35276 (grub_pxefs_fs_int): Likewise.
35277 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35278 connection when we switch file.
35279 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35281 2008-08-06 Robert Millan <rmh@aybabtu.com>
35283 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35285 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35286 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35288 * kern/i386/halt.c: New file.
35289 * kern/i386/reboot.c: Likewise.
35290 * include/grub/i386/reboot.h: Likewise.
35291 * include/grub/i386/halt.h: Likewise.
35293 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35294 Include `<grub/cpu/halt.h>'.
35295 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35296 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35298 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35299 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35300 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35301 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35302 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35303 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35305 * include/grub/i386/at_keyboard.h: ... to here.
35307 2008-08-05 Robert Millan <rmh@aybabtu.com>
35309 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35310 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35311 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35312 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35313 `kern/generic/millisleep.c'.
35315 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35316 instead of grub_get_rtc().
35317 (grub_tsc_init): Initialize `tsc_boot_time'.
35319 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35320 (grub_machine_init): Use grub_tsc_init() rather than
35321 installing an RTC-based handler via grub_install_get_time_ms().
35323 * kern/i386/pit.c: New file.
35324 * include/grub/i386/pit.h: Likewise.
35326 2008-08-05 Bean <bean123ch@gmail.com>
35328 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35330 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35331 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35332 (pxe_mod_SOURCES): New macro.
35333 (pxe_mod_CFLAGS): Likewise.
35334 (pxe_mod_LDFLAGS): Likewise.
35335 (pxecmd_mod_SOURCES): Likewise.
35336 (pxecmd_mod_CFLAGS): Likewise.
35337 (pxecmd_mod_LDFLAGS): Likewise.
35339 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35340 (grub_pxe_call): Likewise.
35342 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35344 * commands/i386/pc/pxecmd.c: New file.
35346 * fs/i386/pc/pxe.c: Likewise.
35348 * include/grub/i386/pc/pxe.h: Likewise.
35350 2008-08-05 Bean <bean123ch@gmail.com>
35352 * util/console.c (grub_console_cur_color): New variable.
35353 (grub_console_standard_color): Likewise.
35354 (grub_console_normal_color): Likewise.
35355 (grub_console_highlight_color): Likewise.
35356 (color_map): Likewise.
35357 (use_color): Likewise.
35358 (NUM_COLORS): New macro.
35359 (grub_ncurses_setcolorstate): Handle color properly.
35360 (grub_ncurses_setcolor): Don't change color here, just remember the
35361 settings, color will be set in grub_ncurses_setcolorstate.
35362 (grub_ncurses_getcolor): New function.
35363 (grub_ncurses_init): Initialize color pairs.
35364 (grub_ncurses_term): New member grub_ncurses_getcolor.
35366 2008-08-05 Colin D Bennett <colin@gibibit.com>
35368 High resolution timer support. Implemented for x86 CPUs using TSC.
35369 Extracted generic grub_millisleep() so it's linked in only as needed.
35370 This requires a Pentium compatible CPU; if the RDTSC instruction is
35371 not supported, then it falls back on the generic grub_get_time_ms()
35372 implementation that uses the machine's RTC.
35374 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35375 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35376 `kern/generic/millisleep.c'.
35378 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35379 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35381 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35382 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35384 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35386 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35387 `kern/generic/millisleep.c'.
35389 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35391 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35393 * kern/generic/rtc_get_time_ms.c: New file.
35395 * kern/generic/millisleep.c: New file.
35397 * kern/misc.c: Don't include
35398 <kern/time.h> anymore.
35399 (grub_millisleep_generic): Removed.
35401 * commands/sleep.c (grub_interruptible_millisleep): Uses
35402 grub_get_time_ms() instead of grub_get_rtc().
35404 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35406 (grub_cpu_is_cpuid_supported): New inline function.
35407 (grub_cpu_is_tsc_supported): New inline function.
35408 (grub_tsc_init): New function prototype.
35409 (grub_tsc_get_time_ms): New function prototype.
35411 * kern/i386/tsc.c (grub_get_time_ms): New file.
35413 * include/grub/time.h: Include <grub/types.h.
35414 (grub_millisleep_generic): Removed.
35415 (grub_get_time_ms): New prototype.
35416 (grub_install_get_time_ms): New prototype.
35417 (grub_rtc_get_time_ms): New prototype.
35419 * kern/time.c (grub_get_time_ms): New function.
35420 (grub_install_get_time_ms): New function.
35422 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35423 <grub/time.h> anymore.
35424 (grub_millisleep): Removed.
35425 (grub_machine_init): Call grub_tsc_init.
35427 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35428 get_time_ms() implementation.
35430 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35431 (ieee1275_get_time_ms): New function.
35432 (grub_machine_init): Install get_time_ms() implementation.
35434 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35435 (grub_machine_init): Call grub_tsc_init().
35436 (grub_millisleep): Removed.
35438 * kern/ieee1275/init.c (grub_millisleep): Removed.
35439 (grub_machine_init): Install ieee1275_get_time_ms()
35441 (ieee1275_get_time_ms): New function.
35442 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35445 2008-08-05 Marco Gerards <marco@gnu.org>
35447 * disk/ata.c: Include <grub/pci.h>.
35448 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35449 (grub_ata_initialize): Rewritten.
35450 (grub_ata_device_initialize): New function.
35452 2008-08-04 Pavel Roskin <proski@gnu.org>
35454 * kern/main.c: Include grub/mm.h.
35456 2008-08-04 Robert Millan <rmh@aybabtu.com>
35458 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35459 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35460 corruption problem).
35462 2008-08-04 Robert Millan <rmh@aybabtu.com>
35464 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35465 warnings introduced in my last commit.
35467 2008-08-03 Robert Millan <rmh@aybabtu.com>
35469 Make PCI available on all i386 architectures.
35471 * include/grub/i386/pc/pci.h: Move from here ...
35472 * include/grub/i386/pci.h: ... to here.
35474 * include/grub/i386/pc/pci.h: Remove.
35475 * include/grub/i386/efi/pci.h: Remove.
35476 * include/grub/x86_64/efi/pci.h: Remove.
35478 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35479 `<grub/cpu/pci.h>'.
35481 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35482 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35483 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35485 * conf/i386-ieee1275.rmk: Likewise.
35487 2008-08-03 Robert Millan <rmh@aybabtu.com>
35489 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35490 (grub_console_setcursor): Make it possible to set cursor off.
35492 2008-08-03 Robert Millan <rmh@aybabtu.com>
35494 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35495 of modules instead of assuming which platform provides what.
35496 * util/update-grub.in: Likewise.
35498 2008-08-03 Robert Millan <rmh@aybabtu.com>
35500 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35501 instead of `grub_install_dos_part' to determine whether a drive needs
35502 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35503 because it can be overridden when loading GRUB via Multiboot).
35505 2008-08-02 Robert Millan <rmh@aybabtu.com>
35507 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35509 2008-08-02 Robert Millan <rmh@aybabtu.com>
35511 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35512 of informational grub_dprintf() calls.
35514 2008-08-02 Robert Millan <rmh@aybabtu.com>
35516 * disk/memdisk.c (memdisk_size): Don't initialize.
35517 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35519 * include/grub/i386/pc/kernel.h
35520 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35521 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35522 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35523 (grub_arch_memdisk_size): Remove.
35525 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35526 field (was only used to transfer a constant). Add `type' field to
35527 support multiple module types.
35528 (grub_module_iterate): New function.
35530 * kern/device.c (grub_device_open): Do not hide error messages
35531 when grub_disk_open() fails. Use grub_print_error() instead.
35533 * kern/i386/pc/init.c (grub_arch_modules_addr)
35534 (grub_arch_memdisk_size): Remove functions.
35535 (grub_arch_modules_addr): Return the module address in high memory
35536 (now that it isn't copied anymore).
35538 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35539 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35540 decompression routine (grub_total_module_size already includes that
35541 now). Don't copy modules back to low memory.
35543 * kern/main.c: Include `<grub/mm.h>'.
35544 (grub_load_modules): Split out (and use) ...
35545 (grub_module_iterate): ... this function, which iterates through
35546 module objects and runs a hook.
35547 Comment out grub_mm_init_region() call, as it would cause non-ELF
35548 modules to be overwritten.
35550 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35551 the memdisk image in its own region, make it part of the module list.
35552 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35553 (main): Parse --memdisk|-m option, and pass user-provided path as
35554 parameter to generate_image().
35555 (add_segments): Pass `memdisk_path' down to load_modules().
35556 (load_modules): Embed memdisk image in module section when requested.
35557 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35558 `header.type' instead of `header.offset'.
35560 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35561 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35562 (memdisk_mod_LDFLAGS): New variables.
35563 * conf/i386-coreboot.rmk: Likewise.
35564 * conf/i386-ieee1275.rmk: Likewise.
35566 2008-08-02 Robert Millan <rmh@aybabtu.com>
35568 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35569 (backward_relocator): New variables. Used to allocate and relocate
35570 the payload, respectively.
35571 (grub_multiboot_load_elf32): Load into heap instead of requested
35572 address, install the appropriate relocator code in each bound of
35573 the payload, and set the entry point such that
35574 grub_multiboot_real_boot() will jump to one of them.
35576 * kern/i386/loader.S (grub_multiboot_payload_size)
35577 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35578 (grub_multiboot_payload_entry_offset): New variables.
35579 (grub_multiboot_real_boot): Set cpu context to what the relocator
35580 expects, and jump to the relocator instead of the payload.
35582 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35583 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35584 (grub_multiboot_payload_entry_offset): Export.
35586 2008-08-01 Bean <bean123ch@gmail.com>
35588 * normal/menu_entry.c (editor_getline): Don't return the original
35589 string as result, as it will be released by lexer once it has done
35592 2008-08-01 Robert Millan <rmh@aybabtu.com>
35594 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35595 within menuentries, not before them.
35596 util/grub.d/10_hurd.in: Likewise.
35598 2008-08-01 Bean <bean123ch@gmail.com>
35600 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35601 (bufio_mod_SOURCES): New macro.
35602 (bufio_mod_CFLAGS): Likewise.
35603 (bufio_mod_LDFLAGS): Likewise.
35605 * include/grub/bufio.h: New file.
35607 * io/bufio.c: Likewise.
35609 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35610 (grub_video_reader_png): Use grub_buffile_open to open file.
35612 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35613 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35615 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35616 (grub_video_reader_tga): Use grub_buffile_open to open file.
35618 * font/manager.c: Include <grub/bufio.h>.
35619 (add_font): Use grub_buffile_open to open file.
35621 2008-07-31 Robert Millan <rmh@aybabtu.com>
35623 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35624 ELF segments, use a macro for arbitrarily accessing any of them instead
35625 of preparing a pointer that allows access to one at a time.
35626 (grub_multiboot_load_elf64): Likewise.
35628 2008-07-31 Bean <bean123ch@gmail.com>
35630 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35631 GRUB_KERNEL_MACHINE_DATA_END.
35633 2008-07-30 Robert Millan <rmh@aybabtu.com>
35635 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35636 Increase from 0x50 to 0x60.
35637 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35638 use UUIDs to identify the root drive for them. If that's not
35640 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35641 check, for cross-disk installs.
35643 2008-07-30 Robert Millan <rmh@aybabtu.com>
35645 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
35646 is non-empty, use it to set the `prefix' environment variable instead
35647 of the usual approach.
35648 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
35649 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
35650 environment variable instead of dummy make_install_device().
35652 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
35653 (start): Insert a data section, with `grub_prefix' variable.
35654 * kern/i386/linuxbios/startup.S: Likewise.
35656 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
35657 New variable reference.
35658 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
35659 New macro. Defines offset of `grub_prefix' within startup.S (relative
35661 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
35662 section within startup.S (relative to `start').
35663 * include/grub/i386/coreboot/kernel.h: Likewise.
35665 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
35666 Overwrite grub_prefix with its contents, at the beginning of the
35668 (main): Understand -p|--prefix.
35670 2008-07-30 Robert Millan <rmh@aybabtu.com>
35672 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
35674 2008-07-30 Robert Millan <rmh@aybabtu.com>
35676 * term/i386/pc/vga_text.c (grub_console_cls): Use
35677 grub_console_gotoxy() to go back to beginning of the screen.
35678 Found by Patrick Georgi <patrick.georgi@coresystems.de>
35680 2008-07-29 Christian Franke <franke@computer.org>
35682 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
35683 Add conversion of emulated mount points on Cygwin.
35685 2008-07-29 Christian Franke <franke@computer.org>
35687 * util/update-grub.in: Add a check for admin
35689 Remove old `grub.cfg.new' before creation.
35690 Add `-f' to `mv' to handle the different filesystem
35691 semantics of Windows.
35693 2008-07-29 Bean <bean123ch@gmail.com>
35695 * normal/main.c (get_line): Fix buffer overflow bug.
35697 2008-07-28 Robert Millan <rmh@aybabtu.com>
35699 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
35700 (struct grub_apple_header): New struct. Describes the layout of
35701 the partmap header.
35702 (apple_partition_map_iterate): Check the header magic as well as the
35703 partition magic (which was already being checked).
35705 2008-07-28 Pavel Roskin <proski@gnu.org>
35707 * genmk.rb: Add a warning to the beginning of the output that
35708 it's a generated file and should not be edited.
35710 2008-07-28 Robert Millan <rmh@aybabtu.com>
35712 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35713 with the same number are found, just use issue a warning with
35714 grub_dprintf(), as this error has been reported to be non-fatal.
35716 2008-07-27 Robert Millan <rmh@aybabtu.com>
35718 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
35721 2008-07-27 Bean <bean123ch@gmail.com>
35723 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
35724 (grub_fat_find_dir): Ignore case when comparing filename.
35726 2008-07-27 Bean <bean123ch@gmail.com>
35728 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
35729 smallino, as it's more descriptive, and i8count can be confused with
35730 the other field count.
35731 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
35734 2008-07-27 Bean <bean123ch@gmail.com>
35736 * commands/crc.c: New file.
35738 * lib/crc.c: Likewise.
35740 * include/grub/lib/crc.h: Likewise.
35742 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
35744 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
35745 (hexdump): Move this function to ...
35747 * lib/hexdump.c: ... here.
35749 * include/grub/hexdump.h: Renamed to ...
35751 * include/grub/lib/hexdump.h: ... this.
35753 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
35755 * util/grub-editenv.c: Likewise.
35757 * include/envblk.h: Renamed to ...
35759 * include/lib/envblk.h: ... this.
35761 * util/envblk.c: Renamed to ...
35763 * lib/envblk.c: ... this.
35765 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
35767 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
35768 (pkglib_MODULES): Add crc.mod.
35769 (hexdump_mod_SOURCES): Add lib/hexdump.c.
35770 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
35771 (crc_mod_SOURCES): New macro.
35772 (crc_mod_CFLAGS): Likewise.
35773 (crc_mod_LDFLAGS): Likewise.
35775 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
35777 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35779 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35783 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35785 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
35787 * commands/help.c: Include <grub/term.h>.
35788 (TERM_WIDTH): Removed. Updated all users.
35790 2008-07-27 Pavel Roskin <proski@gnu.org>
35792 * util/getroot.c (find_root_device): Rephrase a comment to avoid
35793 spurious warnings about a comment within a comment.
35795 2008-07-25 Robert Millan <rmh@aybabtu.com>
35797 * util/getroot.c (find_root_device): Skip devices that match
35798 /dev/dm-[0-9]. This lets the real device be found for any type of
35799 abstraction (LVM, EVMS, RAID..).
35800 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
35801 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
35802 device is found first, find_root_device() will now skip it.
35804 2008-07-24 Pavel Roskin <proski@gnu.org>
35806 * include/grub/types.h: Use __builtin_bswap32() and
35807 __builtin_bswap64() with gcc 4.3 and newer.
35809 2008-07-24 Christian Franke <franke@computer.org>
35811 * util/i386/pc/grub-install.in: If `--debug' is specified,
35812 pass `--verbose' to grub-setup.
35813 Abort script if make_system_path_relative_to_its_root() fails.
35815 2008-07-24 Bean <bean123ch@gmail.com>
35817 * configure.ac: Fixed a bug caused by the previous cygwin patch,
35818 variable `target_platform' should be `platform'.
35820 2008-07-24 Bean <bean123ch@gmail.com>
35822 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
35823 (grub_png_init_fixed_block): New function.
35824 (grub_png_decode_image_data): Handle fixed huffman code compression.
35826 2008-07-24 Bean <bean123ch@gmail.com>
35828 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
35829 (grub_pe2elf_SOURCES): New macro.
35830 (CLEANFILES): Add grub-pe2elf.
35832 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
35833 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
35834 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
35835 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
35836 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
35837 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
35838 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
35839 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
35840 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
35841 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
35842 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
35843 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
35844 (GRUB_PE32_DT_FUNCTION): Likewise.
35845 (GRUB_PE32_REL_I386_DIR32): Likewise.
35846 (GRUB_PE32_REL_I386_REL32): Likewise.
35847 (grub_pe32_symbol): New structure.
35848 (grub_pe32_reloc): Likewise.
35850 * util/grub-pe2elf.c: New file.
35852 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
35853 start symbol in non pc platform.
35855 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
35857 The following patches are from Christian Franke.
35859 * include/grub/dl.h: Remove .previous, gas supports this only
35862 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
35863 Remove .type, gas supports this only for ELF format.
35865 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
35866 nullbytes in symbol table. This fixes an infinite loop if table is
35869 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
35870 TARGET_IMG_LDFLAGS and EXEEXT.
35872 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
35873 TARGET_IMG_LDFLAGS_AC.
35874 (grub_CHECK_STACK_ARG_PROBE): New function.
35876 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
35878 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
35880 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
35881 to set TARGET_IMG_LD* accordingly.
35882 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
35883 Add call to grub_CHECK_STACK_ARG_PROBE.
35884 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
35886 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
35888 * genmk.rb: Add EXEEXT to CLEANFILES.
35890 2008-07-23 Robert Millan <rmh@aybabtu.com>
35892 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
35893 define the codes for arrows and lines used for the menu).
35894 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
35897 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
35898 fonts, because the latter are too slow.
35900 2008-07-21 Bean <bean123ch@gmail.com>
35902 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
35903 a20. Run keyboard test last, as it will cause macbook to halt.
35905 2008-07-18 Pavel Roskin <proski@gnu.org>
35907 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
35908 load foreign architecture modules correctly anyway. Keep
35909 support for loading host architecture modules, whether we
35910 compile them or not.
35912 2008-07-17 Pavel Roskin <proski@gnu.org>
35914 * configure.ac: Use -m32 or -m64 regardless of whether we had to
35915 change target_cpu. The compiler default can mismatch target_cpu
35918 * disk/efi/efidisk.c: Fix format warnings on x86_64.
35919 * kern/efi/efi.c: Likewise.
35921 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
35922 target compiler is functional.
35923 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
35926 * configure.ac: Default to efi platform for x86_64-apple. Allow
35927 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
35928 adjustments from the rest, only do them if target is not
35929 explicitly given. Merge other adjustments with the final sanity
35930 check. Remove an extraneous check for supported CPU. Be
35931 specific which CPU and which platform is not supported.
35933 * configure.ac: Default to pc platform for x86_64.
35935 2008-07-17 Robert Millan <rmh@aybabtu.com>
35937 Partial LinuxBIOS -> Coreboot rename.
35939 * conf/i386-linuxbios.rmk: Renamed to ...
35940 * conf/i386-coreboot.rmk: ... this.
35941 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
35942 * configure.ac: Accept "coreboot" as input platform (but maintain
35943 compatibility with "linuxbios").
35944 * include/grub/i386/linuxbios: Renamed to ...
35945 * include/grub/i386/coreboot: ... this.
35947 2008-07-17 Bean <bean123ch@gmail.com>
35949 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
35950 (appleldr_mod_SOURCE): New variable.
35951 (appleldr_mod_CFLAGS): Likewise.
35952 (appleldr_mod_LDFLAGS): Likewise.
35953 (pci_mod_SOURCES): Likewise.
35954 (pci_mod_CFLAGS): Likewise.
35955 (pci_mod_LDFLAGS): Likewise.
35956 (lspci_mod_SOURCES): Likewise.
35957 (lspci_mod_CFLAGS): Likewise.
35958 (lspci_mod_LDFLAGS): Likewise.
35960 * conf/x86_64-efi.rmk: New file.
35962 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
35964 (grub_efidisk_write): Likewise.
35966 * include/efi/api.h (efi_call_0): New macro.
35967 (efi_call_1): Likewise.
35968 (efi_call_2): Likewise.
35969 (efi_call_3): Likewise.
35970 (efi_call_4): Likewise.
35971 (efi_call_5): Likewise.
35972 (efi_call_6): Likewise.
35974 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
35975 grub_rescue_cmd_chainloader.
35977 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
35978 (grub_pe32_optional_header): Change some fields based on i386 or
35980 (GRUB_PE32_PE32_MAGIC): Likewise.
35982 * include/grub/efi/uga_draw.h: New file.
35984 * include/grub/elf.h (STN_ABS): New constant.
35985 (R_X86_64_NONE): Relocation constant for x86_64.
35986 (R_X86_64_64): Likewise.
35987 (R_X86_64_PC32): Likewise.
35988 (R_X86_64_GOT32): Likewise.
35989 (R_X86_64_PLT32): Likewise.
35990 (R_X86_64_COPY): Likewise.
35991 (R_X86_64_GLOB_DAT): Likewise.
35992 (R_X86_64_JUMP_SLOT): Likewise.
35993 (R_X86_64_RELATIVE): Likewise.
35994 (R_X86_64_GOTPCREL): Likewise.
35995 (R_X86_64_32): Likewise.
35996 (R_X86_64_32S): Likewise.
35997 (R_X86_64_16): Likewise.
35998 (R_X86_64_PC16): Likewise.
35999 (R_X86_64_8): Likewise.
36000 (R_X86_64_PC8): Likewise.
36002 * include/grub/i386/efi/pci.h: New file.
36004 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36005 Change it value based on platform.
36006 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36007 (GRUB_E820_RAM): Likewise.
36008 (GRUB_E820_RESERVED): Likewise.
36009 (GRUB_E820_ACPI): Likewise.
36010 (GRUB_E820_NVS): Likewise.
36011 (GRUB_E820_EXEC_CODE): Likewise.
36012 (GRUB_E820_MAX_ENTRY): Likewise.
36013 (grub_e820_mmap): New structure.
36014 (linux_kernel_header): Change the efi field according to different
36015 kernel version, also field from linux_kernel_header.
36017 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36019 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36020 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36021 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36022 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36023 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36024 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36025 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36026 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36027 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36028 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36030 * include/grub/x86_64/efi/kernel.h: New file.
36032 * include/grub/x86_64/efi/loader.h: Likewise.
36034 * include/grub/x86_64/efi/machine.h: Likewise.
36036 * include/grub/x86_64/efi/pci.h: Likewise.
36038 * include/grub/x86_64/efi/time.h: Likewise.
36040 * include/grub/x86_64/linux.h: Likewise.
36042 * include/grub/x86_64/setjmp.h: Likewise.
36044 * include/grub/x86_64/time.h: Likewise.
36046 * include/grub/x86_64/types.h: Likewise.
36048 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36049 GRUB_TARGET_SIZEOF_VOID_P.
36051 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36052 (grub_efi_locate_handle): Likewise.
36053 (grub_efi_open_protocol): Likewise.
36054 (grub_efi_set_text_mode): Likewise.
36055 (grub_efi_stall): Likewise.
36056 (grub_exit): Likewise.
36057 (grub_reboot): Likewise.
36058 (grub_halt): Likewise.
36059 (grub_efi_exit_boot_services): Likewise.
36060 (grub_get_rtc): Likewise.
36062 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36063 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36064 (grub_efi_allocate_pages): Wrap efi calls.
36065 (grub_efi_free_pages): Wrap efi calls.
36066 (grub_efi_get_memory_map): Wrap efi calls.
36068 * kern/x86_64/dl.c: New file.
36070 * kern/x86_64/efi/callwrap.S: Likewise.
36072 * kern/x86_64/efi/startup.S: Likewise.
36074 * loader/efi/appleloader.c: Likewise.
36076 * loader/efi/chainloader.c (cmdline): New variable.
36077 (grub_chainloader_unload): Wrap efi calls.
36078 (grub_chainloader_boot): Likewise.
36079 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36082 * loader/efi/chainloader_normal.c (chainloader_command):
36083 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36086 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36088 (grub_e820_add_region): New function.
36089 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36091 (grub_find_video_card): New function.
36092 (grub_linux_setup_video): New function.
36093 (grub_rescue_cmd_linux): Probe for video information.
36095 * normal/x86_64/setjmp.S: New file.
36097 * term/efi/console.c (map_char): New function.
36098 (grub_console_putchar): Map unicode char.
36099 (grub_console_checkkey): Wrap efi calls.
36100 (grub_console_getkey): Likewise.
36101 (grub_console_getwh): Likewise.
36102 (grub_console_gotoxy): Likewise.
36103 (grub_console_cls): Likewise.
36104 (grub_console_setcolorstate): Likewise.
36105 (grub_console_setcursor): Likewise.
36107 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36109 2008-07-16 Pavel Roskin <proski@gnu.org>
36111 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36114 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36115 pointer, not an integer. This fixes a warning and prevents
36116 precision loss on 64-bit systems.
36117 (relocate_addresses): Remove unneeded cast.
36119 2008-07-15 Pavel Roskin <proski@gnu.org>
36121 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36123 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36125 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36126 Fix comparison between signed and unsigned.
36128 * include/grub/i386/ieee1275/console.h: Declare
36129 grub_console_init() and grub_console_fini().
36131 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36132 It's empty and unused.
36134 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36135 beginning to avoid warnings with some compilers.
36137 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36138 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36140 2008-07-14 Pavel Roskin <proski@gnu.org>
36142 * kern/env.c (grub_register_variable_hook): Don't copy empty
36143 string, it leaks memory. Pass "" to grub_env_set(), it should
36144 handle constant strings.
36146 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36147 * commands/cmp.c (grub_cmd_cmp): Likewise.
36148 * kern/dl.c (grub_dl_flush_cache): Likewise.
36149 (grub_dl_load_core): Likewise.
36150 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36151 (grub_elf64_load_phdrs): Likewise.
36153 2008-07-13 Pavel Roskin <proski@gnu.org>
36155 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36156 between signed and unsigned.
36157 (LzmaEnc_Finish): Fix warning about an unused parameter.
36159 2008-07-13 Bean <bean123ch@gmail.com>
36161 * Makefile.in (enable_lzo): New rule.
36163 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36165 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36167 * boot/i386/pc/lnxboot.S: #include <config.h>.
36169 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36170 its value according to the compression algorithm used, lzo or lzma.
36172 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36173 compression algorithm according to configure macro.
36175 * kern/i386/pc/startup.S (codestart): Likewise.
36177 * kern/i386/pc/lzma_decode.S: New file.
36179 * include/grub/lib/LzFind.h: Likewise.
36181 * include/grub/lib/LzHash.h: Likewise.
36183 * include/grub/lib/LzmaDec.h: Likewise.
36185 * include/grub/lib/LzmaEnc.h: Likewise.
36187 * include/grub/lib/LzmaTypes.h: Likewise.
36189 * lib/LzFind.c: Likewise.
36191 * lib/LzmaDec.c: Likewise.
36193 * lib/LzmaEnc.c: Likewise.
36195 2008-07-13 Bean <bean123ch@gmail.com>
36197 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36198 (grub_ext4_extent_header): New structure.
36199 (grub_ext4_extent): Likewise.
36200 (grub_ext4_extent_idx): Likewise.
36201 (grub_ext4_find_leaf): New function.
36202 (grub_ext2_read_block): Handle extents.
36204 2008-07-12 Robert Millan <rmh@aybabtu.com>
36206 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36208 2008-07-11 Robert Millan <rmh@aybabtu.com>
36210 * util/grub.d/40_custom.in: New file. Example on how to add custom
36211 entries to /etc/grub.d.
36212 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36213 40_custom (implicitly, by merging all the grub.d rules).
36215 2008-07-11 Pavel Roskin <proski@gnu.org>
36217 * commands/read.c (grub_getline): Fix invalid memory access.
36218 Don't add newline to the variable value.
36220 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36221 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36222 (serial_hw_get_port): Check validity of the port number.
36223 (grub_cmd_serial): Check return value of serial_hw_get_port().
36225 2008-07-07 Pavel Roskin <proski@gnu.org>
36227 * boot/i386/pc/diskboot.S (notification_string): Replace
36228 "Loading kernel" with just "loading". This is shorter, less
36229 confusing and saves a few bytes for possible future changes.
36231 2008-07-05 Pavel Roskin <proski@gnu.org>
36233 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36234 size for ATAPI devices, they are undefined. Output sector
36235 number in decimal form.
36237 * disk/ata.c: Use named constants for status bits.
36239 2008-07-04 Pavel Roskin <proski@gnu.org>
36241 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36242 grub_addr_t before casting it to the void pointer to fix a
36243 warning. Non-addressable regions are discarded earlier.
36244 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36245 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36246 (check_signature): Don't shadow table_header.
36247 (grub_linuxbios_table_iterate): Cast numeric constants to
36248 grub_linuxbios_table_header_t.
36249 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36252 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36255 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36256 pointer, which can cause warnings. Support 64-bit addresses.
36258 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36259 of sizeof(long). This fixes PowerPC image generation on x86_64.
36261 2008-07-04 Robert Millan <rmh@aybabtu.com>
36263 This fixes a performance issue when pc & gpt partmap iterators
36264 didn't abort iteration even after our hook found what it was
36265 looking for (often causing expensive probes of non-existent drives).
36267 Some callers relied on previous buggy behaviour, since they would
36268 raise an error when their own hooks caused early abortion of its
36271 * kern/device.c (grub_device_open): Improve error message.
36272 * disk/lvm.c (grub_lvm_open): Likewise.
36273 * disk/raid.c (grub_raid_open): Likewise.
36275 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36276 when hook requests it, independently of grub_errno.
36277 (pc_partition_map_probe): Do not fail when find_func() caused
36278 early abortion of pc_partition_map_iterate().
36280 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36281 when hook requests it, independently of grub_errno.
36282 (gpt_partition_map_probe): Do not fail when find_func() caused
36283 early abortion of gpt_partition_map_iterate().
36285 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36286 when hook requests it, independently of grub_errno. Do not fail when
36287 part_map_iterate_hook() caused early abortion of p->iterate().
36289 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36290 when grub_partition_iterate() returned with non-zero.
36292 2008-07-03 Pavel Roskin <proski@gnu.org>
36294 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36295 like we do in grub_ata_pio_read().
36296 (grub_ata_readwrite): Always write individual sectors. Fix the
36297 sector count for the remainder.
36298 (grub_ata_write): Enable writing to ATA devices. Correctly
36299 report error for ATAPI devices.
36301 2008-07-02 Pavel Roskin <proski@gnu.org>
36303 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36306 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36307 for every read sector, we already increment it for the whole
36308 batch. This fixes reading more than 256 sectors at once.
36310 * util/grub-editenv.c (cmd_info): Cast argument to long
36311 explicitly. ptrdiff_t reduces to int on i386.
36313 * util/grub-editenv.c (main): Be specific which parameter is
36316 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36317 (memdisk): Make memdisk_orig_addr a pointer.
36319 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36320 for file offsets, use grub_off_t instead. Fix printf format
36323 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36324 there. Real unexpected warnings should not drown in the noise
36325 about known problems.
36327 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36328 grub_disk_addr_t for memory addresses.
36330 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36331 explicitly to fix a warning.
36333 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36335 * Makefile.in (MODULE_LDFLAGS): New variable.
36336 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36337 the linker accepts --build-id=none.
36338 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36340 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36342 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36343 those in Linux XFS code. Provide a way to access 64-bit parent
36345 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36346 the end of struct grub_xfs_dir_header.
36348 2008-07-02 Bean <bean123ch@gmail.com>
36350 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36351 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36352 and GRUB_IEEE1275_FLAG_NO_ANSI.
36354 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36355 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36356 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36358 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36359 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36361 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36362 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36364 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36365 esc sequence on non ANSI terminal.
36366 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36368 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36371 2008-07-02 Bean <bean123ch@gmail.com>
36373 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36374 (grub_editenv_SOURCES): New variable.
36375 (pkglib_MODULES): Add loadenv.mod.
36376 (loadenv_mod_SOURCES): New variable.
36377 (loadenv_mod_CFLAGS): Likewise.
36378 (loadenv_mod_LDFLAGS): Likewise.
36380 * include/grub/envblk.h: New file.
36382 * util/envblk.c: New file.
36384 * util/grub-editenv.c: New file.
36386 * commands/loadenv.c: New file.
36388 2008-07-01 Pavel Roskin <proski@gnu.org>
36390 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36391 not unsigned char. This fixes warnings and is consistent with
36394 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36396 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36398 * term/tparm.c (analyze): Always set *popcount.
36400 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36401 cast to fix a warning.
36403 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36404 cast to suppress a warning.
36406 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36407 grub_fshelp_read_file() expects.
36409 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36410 write uuid as a 32-bit value in CPU byte order, so declare and
36413 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36414 long if the format specifier expects it.
36415 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36416 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36417 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36418 long to fix a warning.
36419 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36420 grub_dprintf() arguments to fix warnings.
36422 2008-06-30 Pavel Roskin <proski@gnu.org>
36424 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36425 install_bsd_part immediately before core.img is embedded or
36426 modified on disk. This fixes core.img verification if core.img
36427 cannot be embedded.
36429 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36430 core_path to calculate the blocklist.
36431 Patch from Javier Martín <lordhabbit@gmail.com>
36433 2008-06-29 Robert Millan <rmh@aybabtu.com>
36435 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36436 block to disk block.
36437 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36438 Patch from Niels Böhm <bitbucket@arcor.de>
36440 2008-06-29 Robert Millan <rmh@aybabtu.com>
36442 * util/update-grub_lib.in (font_path): Search for fonts in
36443 /boot/grub first, which is more likely to be readable (we aren't
36444 deciding where fonts live, just looking for them).
36446 2008-06-26 Pavel Roskin <proski@gnu.org>
36448 * util/biosdisk.c (read_device_map): Don't leave dead map
36449 entries for devices failing stat() check.
36451 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36452 core_path_dev for the core.img path on the target device.
36454 2008-06-26 Robert Millan <rmh@aybabtu.com>
36456 * disk/fs_uuid.c: New file.
36457 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36458 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36459 (fs_uuid_mod_LDFLAGS): New variables.
36460 * include/grub/disk.h (grub_disk_dev_id): Add
36461 `GRUB_DISK_DEVICE_UUID_ID'.
36462 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36463 implement iterate().
36465 2008-06-26 Robert Millan <rmh@aybabtu.com>
36467 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36468 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36469 Linux image includes no initrd.
36471 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36473 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36474 call to resolve the core image location that effectively appended the
36477 2008-06-21 Robert Millan <rmh@aybabtu.com>
36479 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36482 * util/grub.d/10_hurd.in: ... to here ...
36483 * util/grub.d/10_linux.in: ... and here.
36485 2008-06-19 Robert Millan <rmh@aybabtu.com>
36487 * kern/main.c (grub_main): Export `prefix' variable immediately
36488 after it has been set by grub_machine_set_prefix().
36490 2008-06-19 Robert Millan <rmh@aybabtu.com>
36492 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36493 search result when not saving to variable, not the other way around.
36494 When saving to variable, abort iteration as soon as a match is found.
36496 2008-06-19 Robert Millan <rmh@aybabtu.com>
36498 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36499 check for partition that provides /boot/grub. Its logic is flawed,
36500 as it prevents prepare_grub_to_access_device() from being called
36503 2008-06-19 Robert Millan <rmh@aybabtu.com>
36505 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36506 "insmod" command directly when abstraction modules are needed,
36507 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36508 since it had already been processed).
36510 2008-06-19 Pavel Roskin <proski@gnu.org>
36512 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36513 changed. This is needed in case GRUB_LIBDIR changes.
36514 * conf/i386-ieee1275.rmk: Likewise.
36515 * conf/i386-linuxbios.rmk: Likewise.
36516 * conf/i386-pc.rmk: Likewise.
36517 * conf/powerpc-ieee1275.rmk: Likewise.
36519 2008-06-18 Pavel Roskin <proski@gnu.org>
36521 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36522 kernel_elf_symlist.c to symlist.c for consistency with other
36523 architectures. Update all users.
36524 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36526 2008-06-18 Robert Millan <rmh@aybabtu.com>
36528 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36531 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36532 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36533 a RAID device, run setup() for all members independently on whether
36534 LVM abstraction is being used.
36535 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36536 If grub-mkimage has set `*install_dos_part == -2', don't override this
36538 Perform *install_dos_part adjustments independently on whether
36539 we're embedding or not.
36540 Clarify error message when image is too big for embedding.
36541 Remove duplicate *install_dos_part stanza.
36543 2008-06-17 Robert Millan <rmh@aybabtu.com>
36545 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36546 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36548 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36549 values in grub_ofconsole_normal_color and
36550 grub_ofconsole_highlight_color (they're not directly related to
36551 background and foreground).
36552 (grub_ofconsole_setcolorstate): Extract background and foreground
36553 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36555 2008-06-17 Robert Millan <rmh@aybabtu.com>
36557 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36558 /boot/grub for the check in last commit, not /boot (they could be
36559 different partitions).
36561 2008-06-16 Robert Millan <rmh@aybabtu.com>
36563 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36564 asked to setup access for the same partition that provides /boot,
36565 don't bother using UUIDs since our root already has the value we
36568 2008-06-16 Robert Millan <rmh@aybabtu.com>
36570 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36572 Patch from Sven Mueller <sven@debian.org>.
36574 2008-06-16 Robert Millan <rmh@aybabtu.com>
36576 * util/update-grub.in: Check for $EUID instead of $UID.
36577 Reported by Vincent Zweije.
36579 2008-06-16 Bean <bean123ch@gmail.com>
36581 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36582 (grub_ext2_read_block): Likewise.
36583 (grub_ext2_read_inode): Likewise.
36584 (grub_ext2_mount): Likewise.
36585 (grub_ext2_close): Likewise.
36586 (grub_ext3_get_journal): Removed.
36588 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36589 (grub_reiserfs_read_symlink): Likewise.
36590 (grub_reiserfs_mount): Likewise.
36591 (grub_reiserfs_open): Likewise.
36592 (grub_reiserfs_read): Likewise.
36593 (grub_reiserfs_close): Likewise.
36594 (grub_reiserfs_get_journal): Removed.
36596 * fs/fshelp.c (grub_fshelp_read): Removed.
36597 (grub_fshelp_map_block): Likewise.
36599 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36600 (grub_fshelp_journal): Likewise.
36601 (grub_fshelp_read): Likewise.
36602 (grub_fshelp_map_block): Likewise.
36604 2008-06-16 Pavel Roskin <proski@gnu.org>
36606 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36607 floating point anymore.
36608 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36610 2008-06-15 Pavel Roskin <proski@gnu.org>
36612 * commands/ls.c (grub_ls_list_files): Use integer calculations
36613 for human readable format, avoid floating point use.
36614 * kern/misc.c (grub_ftoa): Remove.
36615 (grub_vsprintf): Remove floating point support.
36617 2008-06-15 Robert Millan <rmh@aybabtu.com>
36619 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36621 Reported by Max Vozeler.
36623 2008-06-15 Robert Millan <rmh@aybabtu.com>
36625 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36626 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36628 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36629 the beginning of the prefix.
36631 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36632 It is assumed that if we have a memdisk, grub-mkimage has set
36633 grub_prefix to include the "(memdisk)" drive in it.
36635 2008-06-15 Robert Millan <rmh@aybabtu.com>
36637 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36638 Initialize keyboard controller after registering the terminal, so that
36639 grub_printf() can be called from grub_keyboard_controller_init().
36641 2008-06-15 Robert Millan <rmh@aybabtu.com>
36643 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
36644 extent-btree which is written as big endian on disk.
36645 Reported by Alain Greppin <al@chilibi.org>.
36647 2008-06-14 Robert Millan <rmh@aybabtu.com>
36649 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
36650 * util/i386/pc/grub-install.in (modules): Likewise.
36652 2008-06-13 Pavel Roskin <proski@gnu.org>
36654 * commands/ls.c (grub_ls_list_files): Fix format warnings.
36656 2008-06-13 Bean <bean123ch@gmail.com>
36658 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
36660 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
36662 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
36663 to indicate sparse block.
36665 2008-06-12 Pavel Roskin <proski@gnu.org>
36667 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
36668 number, grub_fshelp_read() does it for us.
36670 * fs/fshelp.c (grub_fshelp_read): New function. Implement
36671 linear disk read with journal translation.
36672 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
36673 * include/grub/fshelp.h: Declare grub_fshelp_read().
36675 2008-06-09 Pavel Roskin <proski@gnu.org>
36677 * fs/minix.c (grub_minix_mount): Handle error reading
36680 2008-06-08 Robert Millan <rmh@aybabtu.com>
36682 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
36683 don't append the RAID prefix afterwards.
36684 Reported by Clint Adams.
36686 2008-06-08 Robert Millan <rmh@aybabtu.com>
36688 Based on description from Pavel:
36689 * kern/disk.c (grub_disk_check_range): Rename to ...
36690 (grub_disk_adjust_range): ... this. Add a comment explaining the
36691 tasks performed by this function.
36693 2008-06-08 Robert Millan <rmh@aybabtu.com>
36695 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
36696 `num_serial' (for consistency with other variables).
36697 (struct grub_ntfs_data): Add `uuid' member.
36698 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
36699 (grub_ntfs_uuid): New function.
36700 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
36702 2008-06-07 Pavel Roskin <proski@gnu.org>
36704 * util/biosdisk.c (open_device): Revert last change to the
36705 function, it broke installation. The sector needs to be
36706 different dependent on which device is opened.
36708 2008-06-06 Robert Millan <rmh@aybabtu.com>
36710 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
36711 rest of GRUB, and breakage doesn't happen if its value were modified.
36713 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36714 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
36715 a constant (same value).
36716 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
36717 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
36719 2008-06-06 Robert Millan <rmh@aybabtu.com>
36721 * util/biosdisk.c (open_device): Do not modify sector offset when
36722 accessing a partition. kern/disk.c already handles this for us.
36724 2008-06-06 Robert Millan <rmh@aybabtu.com>
36726 * util/grub-emu.c (grub_machine_init): Move code in this function from
36728 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
36729 segfault in case grub_printf() is called).
36731 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
36732 grub_probe. Update all users not to explicitly add it again.
36733 (grub_device): New variable; contains corresponding device for grubdir.
36734 (fs_module, partmap_module, devabstraction_module): Pass
36735 `--device ${grub_device}' to grub_probe to avoid traversing /dev
36738 2008-06-05 Robert Millan <rmh@aybabtu.com>
36740 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
36741 is found, print it (same layout as with labels).
36743 2008-06-04 Robert Millan <rmh@aybabtu.com>
36745 * util/biosdisk.c (get_drive): Rename to ...
36746 (find_grub_drive): ... this. Update all users.
36748 (get_os_disk): Rename to ...
36749 (convert_system_partition_to_system_disk): ... this. Update all users.
36751 (find_drive): Rename to ...
36752 (find_system_device): ... this. Update all users.
36754 2008-06-04 Robert Millan <rmh@aybabtu.com>
36756 * util/biosdisk.c (get_os_disk): Handle IDA devices.
36757 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36758 (make_device_map): Likewise.
36760 2008-06-01 Robert Millan <rmh@aybabtu.com>
36762 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
36763 before dereferencing it.
36765 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
36766 union with fat12/fat16-specific ones. Add some new fields, including
36767 `num_serial' for both versions.
36768 (struct grub_fat_data): Add `uuid' member.
36769 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
36770 names. Initialize `data->uuid' using `num_serial'.
36771 (grub_fat_uuid): New function.
36772 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
36774 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
36775 (grub_reiserfs_uuid): New function.
36776 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
36779 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
36780 (grub_xfs_uuid): New function.
36781 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
36783 2008-06-01 Robert Millan <rmh@aybabtu.com>
36785 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
36786 code that is backward compatible with pre-uuid search command.
36788 2008-05-31 Robert Millan <rmh@aybabtu.com>
36790 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
36791 floppies after everything else, to ensure floppy drive isn't accessed
36792 unnecessarily (patch from Bean).
36794 2008-05-31 Robert Millan <rmh@aybabtu.com>
36796 * commands/search.c (search_label, search_fs_uuid, search_file): Do
36797 not print device names when we were asked to set a variable.
36799 2008-05-31 Robert Millan <rmh@aybabtu.com>
36801 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
36802 using "cursor-on" and "cursor-off" commands (understood at least by
36803 the Open Firmware flavour on OLPC).
36805 2008-05-31 Michael Gorven <michael@gorven.za.net>
36807 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
36808 on and off sequences.
36810 2008-05-31 Robert Millan <rmh@aybabtu.com>
36812 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
36813 * util/update-grub.in: Likewise.
36815 2008-05-30 Pavel Roskin <proski@gnu.org>
36817 * util/biosdisk.c (linux_find_partition): Simplify logic and
36818 make the code more universal. Keep special processing for
36819 devfs, but use a simple rule for all other devices. If the
36820 device ends with a number, append 'p' and the partition number.
36821 Otherwise, append only the partition number.
36823 2008-05-30 Robert Millan <rmh@aybabtu.com>
36825 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
36826 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
36827 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
36828 the `root' parameter to Linux.
36830 2008-05-30 Robert Millan <rmh@aybabtu.com>
36832 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
36833 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
36834 --fs_uuid with --fs-uuid.
36835 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
36836 all filesystems support them).
36838 2008-05-30 Robert Millan <rmh@aybabtu.com>
36840 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
36841 grub_printf() flags, since we're printing in units of 2 bytes.
36843 2008-05-30 Robert Millan <rmh@aybabtu.com>
36845 * util/grub.d/00_header.in: Remove obsolete comment referencing
36846 convert_system_path_to_grub_path().
36847 * util/update-grub.in: Likewise.
36848 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
36849 (convert_system_path_to_grub_path): Add a warning message explaining
36850 that this function is deprecated. Rely on is_path_readable_by_grub()
36851 for the readability checks.
36852 (font_path): Use is_path_readable_by_grub() for the readability
36853 check rather than convert_system_path_to_grub_path().
36855 2008-05-30 Robert Millan <rmh@aybabtu.com>
36857 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
36858 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
36859 converting it first.
36860 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
36861 grub.cfg for access to font file, and afterwards call it again to set
36864 2008-05-30 Robert Millan <rmh@aybabtu.com>
36866 * commands/search.c (options): Add --fs_uuid option.
36867 (search_fs_uuid): New function.
36868 (grub_cmd_search): Fix --set argument passing.
36869 Use search_fs_uuid() when requested via --fs_uuid.
36870 (grub_search_init): Update help message.
36871 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
36872 and redeclare it as an array of 16-bit words.
36873 (grub_ext2_uuid): New function.
36874 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
36875 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
36876 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
36877 (GRUB_DEVICE_BOOT_UUID): New variables.
36878 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
36879 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
36881 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
36882 just assume `root' variable has the right value.
36883 * util/grub.d/10_linux.in: Likewise.
36884 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
36886 (main): Recognise `-t fs_uuid' argument.
36888 2008-05-30 Robert Millan <rmh@aybabtu.com>
36890 * util/biosdisk.c (map): Redefine structure to hold information
36891 about GRUB drive name.
36892 (get_drive): Reimplement without assuming (and verifying) BIOS-like
36894 (call_hook): Remove.
36895 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
36896 member. Assume drive has partitions.
36897 (grub_util_biosdisk_open): Access device names via `.device' struct
36899 (open_device): Likewise.
36900 (find_drive): Likewise.
36901 (read_device_map): Adjust map[] usage to match the new struct
36902 definition. Don't check for duplicates (still possible, but not cheap
36904 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
36905 (make_device_name): Remove assumption of BIOS-like drive names.
36907 2008-05-30 Pavel Roskin <proski@gnu.org>
36909 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
36910 compiling execute.c doesn't need grub_script.tab.h anymore.
36911 (normal/command.c_DEPENDENCIES): Likewise.
36912 (normal/function.c_DEPENDENCIES): Likewise.
36913 * conf/i386-ieee1275.rmk: Likewise.
36914 * conf/i386-linuxbios.rmk: Likewise.
36915 * conf/i386-pc.rmk: Likewise.
36916 * conf/powerpc-ieee1275.rmk: Likewise.
36917 * conf/sparc64-ieee1275.rmk: Likewise.
36919 2008-05-29 Pavel Roskin <proski@gnu.org>
36921 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
36922 when scanning metadata for volume group name.
36924 * include/grub/script.h: Don't include grub_script.tab.h. It's
36925 a generated file, which may only be included from the files with
36926 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
36927 use union YYSTYPE, as the later allows forward declaration.
36928 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
36930 2008-05-29 Robert Millan <rmh@aybabtu.com>
36932 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
36933 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
36934 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
36935 (grub_console_checkkey): Add grub_dprintf() call to report unknown
36938 2008-05-29 Robert Millan <rmh@aybabtu.com>
36940 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
36941 control key combinations.
36943 2008-05-29 Robert Millan <rmh@aybabtu.com>
36945 * util/powerpc/ieee1275/grub-install.in: Move from here ...
36946 * util/ieee1275/grub-install.in: ... to here.
36947 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
36948 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
36949 (grub_install_SOURCES): Likewise.
36951 2008-05-29 Robert Millan <rmh@aybabtu.com>
36953 * fs/affs.c: Update copyright year.
36954 * fs/ext2.c: Likewise.
36955 * fs/fshelp.c: Likewise.
36956 * fs/hfsplus.c: Likewise.
36957 * fs/ntfs.c: Likewise.
36958 * fs/xfs.c: Likewise.
36959 * include/grub/fshelp.h: Likewise.
36960 * util/grub-mkdevicemap.c: Likewise.
36962 2008-05-28 Robert Millan <rmh@aybabtu.com>
36964 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
36965 might need to be fatfs to support some firmware implementations
36968 2008-05-28 Robert Millan <rmh@aybabtu.com>
36970 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
36972 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36973 (make_device_map): Likewise.
36975 2008-05-20 Bean <bean123ch@gmail.com>
36977 * fs/fshelp.c (grub_fshelp_map_block): New function.
36978 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
36979 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
36981 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
36982 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
36983 (grub_fshelp_journal): New structure.
36984 (grub_fshelp_map_block): New function prototype.
36985 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
36986 (grub_fshelp_map_block): Likewise.
36988 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
36989 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
36990 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
36991 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
36992 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
36993 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
36994 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
36995 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
36996 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
36997 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
36998 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
36999 (grub_ext2_sblock): New members for journal support.
37000 (grub_ext3_journal_header): New structure.
37001 (grub_ext3_journal_revoke_header): Likewise.
37002 (grub_ext3_journal_block_tag): Likewise.
37003 (grub_ext3_journal_sblock): Likewise.
37004 (grub_fshelp_node): New members logfile and journal.
37005 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37006 grub_fshelp_map_block to get real block number.
37007 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37009 (grub_ext2_read_inode): Likewise.
37010 (grub_ext3_get_journal): New function.
37011 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37012 (grub_ext2_close): Release memory used by journal.
37014 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37015 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37016 (grub_reiserfs_transaction_header): Renamed to
37017 grub_reiserfs_description_block, replace field data with real_blocks.
37018 (grub_reiserfs_commit_block): New structure.
37019 (grub_reiserfs_data): New member journal.
37020 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37022 (grub_reiserfs_read_symlink): Likewise.
37023 (grub_reiserfs_iterate_dir): Likewise.
37024 (grub_reiserfs_open): Likewise.
37025 (grub_reiserfs_read): Likewise.
37026 (grub_reiserfs_get_journal): New function.
37027 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37028 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37029 using grub_reiserfs_get_journal.
37030 (grub_reiserfs_close): Release memory used by journal.
37032 * fs/affs.c (grub_affs_read_block): Change block type to
37033 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37035 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37037 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37039 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37041 * fs/udf.c (grub_udf_read_block): Change block type to
37042 grub_disk_addr_t. Use type cast to avoid warning.
37044 * fs/xfs.c (grub_xfs_read_block): Likewise.
37046 2008-05-16 Christian Franke <franke@computer.org>
37048 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37049 to ensure that break with ESC will always work.
37050 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37051 Remove ESC from keyboard queue.
37053 2008-05-16 Christian Franke <franke@computer.org>
37055 * util/biosdisk.c: [__CYGWIN__] Add includes.
37056 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37057 (get_os_disk): Move variable declarations to OS specific
37058 parts to avoid warning.
37059 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37060 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37061 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37063 * util/getroot.c: [__CYGWIN__] Add includes.
37064 (strip_extra_slashes): Fix "/" case.
37065 [__CYGWIN__] (get_win32_path): New function.
37066 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37067 [__CYGWIN__] (find_root_device): Disable.
37068 [__CYGWIN__] (get_bootsec_serial): New function.
37069 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37070 [__linux__] (grub_guess_root_device): Add early returns to simplify
37072 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37073 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37074 check for Linux only.
37076 2008-05-15 Bean <bean123ch@gmail.com>
37078 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37079 keyboard hang problem in apple's intel mac.
37081 2008-05-09 Robert Millan <rmh@aybabtu.com>
37083 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37085 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37086 (make_device_map): Likewise.
37087 Reported by Aurelien Jarno <aurel32@debian.org>
37089 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37091 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37092 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37093 (make_device_map): Output entries for xvd type disks.
37095 2008-05-07 Robert Millan <rmh@aybabtu.com>
37097 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37099 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37100 (make_device_map): Likewise.
37101 Reported by Roland Dreier <rdreier@cisco.com>
37103 2008-05-07 Robert Millan <rmh@aybabtu.com>
37105 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37106 grub_strstr() call. Correct a few mistakes in failure path handling.
37108 2008-05-06 Robert Millan <rmh@aybabtu.com>
37110 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37111 Do not print a trailing slash (therefore, the root directory is an
37113 (convert_system_path_to_grub_path): Do not remove trailing slash
37114 from make_system_path_relative_to_its_root() output.
37116 * util/i386/pc/grub-install.in: Add trailing slash to output from
37117 make_system_path_relative_to_its_root().
37119 2008-05-06 Robert Millan <rmh@aybabtu.com>
37121 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37122 ensures that output lines aren't intermangled with those sent to
37123 stderr (via grub_util_info()).
37124 * util/grub-probe.c (grub_refresh): Likewise.
37125 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37127 2008-05-05 Christian Franke <franke@computer.org>
37129 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37130 Add Cygwin device names.
37131 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37132 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37133 (check_device): Return error instead of success on empty name.
37134 (make_device_map): Move label inside linux specific code to
37135 prevent compiler warning.
37137 2008-04-30 Robert Millan <rmh@aybabtu.com>
37139 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37140 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37142 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37144 2008-04-29 Robert Millan <rmh@aybabtu.com>
37146 * docs/grub.cfg: New file (example GRUB configuration).
37148 2008-04-26 Robert Millan <rmh@aybabtu.com>
37150 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37151 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37152 and `disk/ieee1275/nand.c'.
37154 2008-04-25 Bean <bean123ch@gmail.com>
37156 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37159 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37160 change the buffer size to 4096 for cdrom device.
37162 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37164 (_linux_mod_SOURCES): New variable.
37165 (_linux_mod_CFLAGS): Likewise.
37166 (_linux_mod_LDFLAGS): Likewise.
37167 (linux_mod_SOURCES): Likewise.
37168 (linux_mod_CFLAGS): Likewise.
37169 (linux_mod_LDFLAGS): Likewise.
37170 (nand_mod_SOURCES): Likewise.
37171 (nand_mod_CFLAGS): Likewise.
37172 (nand_mod_LDFLAGS): Likewise.
37174 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37175 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37176 type property. (nand device in olpc don't have this property)
37178 * include/grub/disk.h (grub_disk_dev_id): New macro
37179 GRUB_DISK_DEVICE_NAND_ID.
37181 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37182 function prototype.
37183 (grub_rescue_cmd_initrd): Likewise.
37185 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37186 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37187 ofw_cif_handler and ofw_idt, adjust padding number.
37189 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37190 GRUB_MACHINE_IEEE1275 is defined.
37192 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37193 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37195 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37196 on nested function heap_init.
37197 (grub_upper_mem): New variable for i386-ieee1275.
37198 (grub_get_extended_memory): New function for i386-ieee1275.
37199 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37201 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37202 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37205 * loader/i386/ieee1275/linux.c: New file.
37207 * loader/i386/ieee1275/linux_normal.c: New file.
37209 * disk/ieee1275/nand.c: New file.
37211 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37213 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37215 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37217 2008-04-18 Robert Millan <rmh@aybabtu.com>
37219 Restructures early code path on ieee1275 to unify grub_main() as
37220 the first C function that is executed in every platform.
37222 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37223 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37225 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37226 * kern/ieee1275/cmain.c (cmain): Rename to ...
37227 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37228 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37231 2008-04-18 Robert Millan <rmh@aybabtu.com>
37233 * util/update-grub.in: Fix syntax error when setting
37234 `GRUB_PRELOAD_MODULES'.
37235 Reported by Stephane Chazelas <stephane@artesyncp.com>
37237 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37239 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37240 section into account, newer toolchains generate unique build ids
37241 * configure.ac: remove the test for --build-id=none acceptance,
37242 we want build ids to be preserved
37243 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37244 far from other sections don't cause the raw binary images grow
37247 2008-04-15 Robert Millan <rmh@aybabtu.com>
37249 * disk/lvm.c: Update copyright year.
37250 * kern/misc.c: Likewise.
37252 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37254 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37255 there is no memory left for physical volume name.
37257 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37259 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37260 volume name mapping to support bigger than 9 character names properly.
37262 2008-04-13 Robert Millan <rmh@aybabtu.com>
37264 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37265 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37267 2008-04-13 Christian Franke <franke@computer.org>
37269 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37270 to create a floppy emulation boot CD when non emulation mode
37272 Enable Joliet CD filesystem extension.
37274 2008-04-13 Robert Millan <rmh@aybabtu.com>
37276 * kern/misc.c (grub_strncat): Fix off-by-one error.
37277 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37279 * kern/env.c (grub_env_context_close): Clear current context, not
37281 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37283 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37285 2008-04-13 Robert Millan <rmh@aybabtu.com>
37287 Improve robustness when handling LVM.
37289 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37290 (and leave `*p' unmodified).
37291 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37293 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37294 iterating through it.
37295 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37297 (grub_lvm_scan_device): Check the return value (and fail gracefully
37298 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37299 Don't assume `vg->pvs != NULL' when iterating through it.
37301 2008-04-13 Robert Millan <rmh@aybabtu.com>
37303 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37304 * genmk.rb (partmap): New variable.
37305 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37306 (#{partmap}): New target rule.
37307 * genpartmaplist.sh: New file.
37308 * Makefile.in (pkglib_DATA): Add partmap.lst.
37309 (partmap.lst): New target rule.
37310 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37311 modules (including all partition maps), instead of preloading them.
37313 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37315 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37316 `linux-boot-prober' (if installed) to detect other operating
37317 systems which are installed on the computer and add them to
37319 * conf/common.rmk: Build and install 30_os-prober.
37321 2008-04-12 Robert Millan <rmh@aybabtu.com>
37323 * kern/powerpc/ieee1275/init.c: Move from here ...
37324 * kern/ieee1275/init.c: ... to here. Update all users.
37326 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37327 * kern/ieee1275/cmain.c: ... to here. Update all users.
37329 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37330 * kern/ieee1275/openfw.c: ... to here. Update all users.
37332 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37333 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37335 2008-04-10 Pavel Roskin <proski@gnu.org>
37337 * configure.ac: Always use "_cv_" in cache variables for
37338 compatibility with Autoconf 2.62.
37340 2008-04-07 Robert Millan <rmh@aybabtu.com>
37342 Revert grub/machine/init.h addition by Pavel (since it breaks on
37343 i386-ieee1275 and others):
37344 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37345 * util/powerpc/ieee1275/misc.c: Likewise.
37347 2008-04-07 Robert Millan <rmh@aybabtu.com>
37349 * util/grub-probe.c (probe): Improve error message.
37351 2008-04-07 Robert Millan <rmh@aybabtu.com>
37353 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37354 (this prevents the presence of a bogus entry from ruining the whole
37357 2008-04-06 Pavel Roskin <proski@gnu.org>
37359 * util/biosdisk.c: Include grub/util/biosdisk.h.
37360 * util/grub-fstest.c (execute_command): Make static.
37361 * util/grub-mkdevicemap.c (check_device): Likewise.
37362 * util/i386/pc/misc.c: Include grub/machine/init.h.
37363 * util/powerpc/ieee1275/misc.c: Likewise.
37364 * util/lvm.c: Include grub/util/lvm.h.
37365 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37367 * util/raid.c: Include grub/util/raid.h.
37368 (grub_util_getdiskname): Make static.
37370 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37371 grub_hostfs_fini(), as they are called from grub_init_all() and
37372 grub_fini_all() respectively. This fixes an infinite loop in
37373 grub-fstest due to double registration of hostfs.
37374 Reported by Christian Franke <Christian.Franke@t-online.de>
37376 2008-04-05 Pavel Roskin <proski@gnu.org>
37378 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37379 all 8 functions. Otherwise, probe function 0 only.
37381 2008-04-04 Pavel Roskin <proski@gnu.org>
37383 * commands/lspci.c (grub_lspci_iter): Print the bus number
37386 * commands/lspci.c (grub_pci_classes): Fix typos.
37387 (grub_lspci_iter): Don't print func twice. Print vendor ID
37388 before device ID, as it's normally done.
37390 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37391 Fix signedness warnings.
37392 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37394 * util/ieee1275/get_disk_name.c: Include config.h so that
37395 _GNU_SOURCE is defined and getline() is declared. Mark an
37396 unused argument as such. Fix a signedness warning.
37398 2008-04-02 Pavel Roskin <proski@gnu.org>
37400 * genkernsyms.sh.in: Use more robust assignments for CC and
37401 srcdir. Quote srcdir.
37402 * gensymlist.sh.in: Likewise. Assert at the compile time that
37403 the symbol table is not empty.
37405 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37406 * fs/cpio.c (grub_cpio_read): Likewise.
37408 2008-04-01 Pavel Roskin <proski@gnu.org>
37410 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37411 * disk/host.c (grub_host_open): Likewise.
37412 * disk/loopback.c (grub_loopback_open): Likewise.
37413 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37414 disk->id as in disk/host.c, not a multi-character constant.
37416 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37417 later is obsolete, potentially dangerous and sets a bad example.
37418 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37419 * util/misc.c (grub_util_get_image_size): Likewise.
37421 * disk/loopback.c (options): Improve help for "--partitions".
37423 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37424 options to align them with the short options, e.g. "echo -e".
37426 2008-03-31 Bean <bean123ch@gmail.com>
37428 * video/reader/png.c (grub_png_data): New member is_16bit and
37430 (grub_png_decode_image_header): Detect 16 bit png image.
37431 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37432 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37433 (grub_video_reader_png): Release memory occupied by image_data.
37435 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37437 (grub_nfs_mount): Skip the test for sector per cluster.
37439 * include/grub/ntfs.h (MAX_SPC): Removed.
37441 2008-03-31 Bean <bean123ch@gmail.com>
37443 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37444 (grub_probe_SOURCES): Add fs/afs.c.
37445 (grub_fstest_SOURCES): Likewise.
37446 (afs_mod_SOURCES): New variable.
37447 (afs_mod_CFLAGS): Likewise.
37448 (afs_mod_LDFLAGS): Likewise.
37450 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37451 (grub_emu_SOURCES): Likewise.
37453 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37455 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37457 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37461 * fs/afs.c: New file.
37463 2008-03-30 Pavel Roskin <proski@gnu.org>
37465 * disk/host.c: Include grub/misc.h to fix a warning.
37466 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37467 warnings about implicit declarations.
37469 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37471 * include/grub/i386/loader.h: Change declaration of
37472 grub_linux_boot() to match what grub_loader_set() expects.
37473 * util/getroot.c (grub_guess_root_device): Return const char* to
37475 * util/grub-probe.c (probe): Fix a warning about uninitialized
37476 abstraction_name variable.
37477 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37478 second argument as unused to fix a warning.
37480 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37481 missing grub_error() call.
37483 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37484 2.60 and newer uses it to define datadir.
37486 * commands/sleep.c: Fix warning about implicit declaration.
37487 * disk/memdisk.c: Likewise.
37488 * loader/aout.c: Likewise.
37489 * loader/i386/bsd_normal.c: Likewise.
37490 * util/grub-probe.c: Likewise.
37492 * commands/i386/cpuid.c (has_longmode): Make static.
37493 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37494 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37496 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37497 GDT. This is more robust, as %ds can change.
37498 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37499 calling real_to_prot().
37500 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37502 2008-03-28 Pavel Roskin <proski@gnu.org>
37504 * kern/i386/pc/startup.S: Assert that uncompressed functions
37505 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37506 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37507 code, as they push parts of the code (error handlers) beyond
37508 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37509 code as correctness and size.
37511 2008-03-28 Pavel Roskin <proski@gnu.org>
37513 * kern/i386/pc/startup.S
37514 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37515 data block address to the real mode, keep offset minimal. This
37516 works around a bug in AWARD BIOS on old Athlon systems, which
37517 makes CD detection hang.
37519 2008-03-26 Pavel Roskin <proski@gnu.org>
37521 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37523 * include/grub/normal.h: Add grub_parse_color_name_pair()
37526 2008-03-24 Bean <bean123ch@gmail.com>
37528 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37529 (cd_count): Removed.
37530 (cd_drive): New variable.
37531 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37532 (grub_biosdisk_call_hook): Likewise.
37533 (grub_biosdisk_iterate): Change cdrom detection method.
37534 (grub_biosdisk_open): Replace cd_start with cd_drive.
37535 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37536 detect cdrom device.
37538 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37540 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37541 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37542 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37543 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37544 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37545 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37546 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37547 (grub_biosdisk_cdrp): New structure.
37548 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37550 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37552 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37555 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37558 2008-03-20 Robert Millan <rmh@aybabtu.com>
37560 Remove 2 TiB limit in ata.mod.
37561 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37562 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37563 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37564 grub_uint64_t instead of grub_uint32_t.
37566 2008-03-05 Bean <bean123ch@gmail.com>
37568 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37569 (grub_multiboot): Set boot device.
37571 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37573 2008-03-02 Bean <bean123ch@gmail.com>
37575 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37578 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37580 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37583 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37586 * docs/fdl.texi: New file.
37588 * docs/mdate-sh: New file. Copied from gnulib.
37589 * docs/texinfo.tex: Likewise.
37591 * config.guess: Updated from gnulib.
37592 * install-sh: Likewise.
37594 2008-02-28 Robert Millan <rmh@aybabtu.com>
37596 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37597 (aout_mod_SOURCES): New variable.
37598 (aout_mod_CFLAGS): Likewise.
37599 (aout_mod_LDFLAGS): Likewise.
37601 * conf/i386-ieee1275.rmk: Likewise.
37603 2008-02-28 Robert Millan <rmh@aybabtu.com>
37605 * util/update-grub.in: Reorganise terminal validity check. Accept
37606 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37607 Based on suggestion by Franklin PIAT.
37609 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37611 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37613 * util/getroot.c (grub_util_check_block_device): New function that
37614 returns the given argument if it is a block device and returns NULL else.
37615 * util/grub-probe.c (argument_is_device): New variable.
37616 (probe): Promote device_name from a variable to an argument. Receive
37617 device_name from grub_util_check_block_device() if path is NULL and from
37618 grub_guess_root_device() else. Do not free() device_name anymore.
37619 (options): Introduce new parameter '-d, --device'.
37620 (main): Add description of the new parameter to the help screen.
37621 Rename path variable to argument. Set argument_is_device if the '-d'
37622 option is given. Pass argument to probe() depending on
37623 argument_is_device.
37625 2008-02-24 Bean <bean123ch@gmail.com>
37627 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37628 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37629 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37630 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37631 (GRUB_ISO9660_VOLDESC_END): Likewise.
37632 (grub_iso9660_primary_voldesc): New member escape.
37633 (grub_iso9660_data): New member joliet.
37634 (grub_iso9660_convert_string): New function.
37635 (grub_iso9660_mount): Detect joliet extension.
37636 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37637 (grub_iso9660_iso9660_label): Likewise.
37639 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37640 (grub_setup_SOURCES): Add fs/udf.c.
37641 (grub_fstest_SOURCES): Likewise.
37642 (udf_mod_SOURCES): New variable.
37643 (udf_mod_CFLAGS): Likewise.
37644 (udf_mod_LDFLAGS): Likewise.
37646 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
37647 (grub_emu_SOURCES): Likewise.
37649 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37651 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37653 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37657 * fs/udf.c: New file.
37659 2008-02-24 Robert Millan <rmh@aybabtu.com>
37661 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
37662 (normal/lexer.c_DEPENDENCIES): New variables.
37663 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37664 (normal/lexer.c_DEPENDENCIES): Likewise.
37665 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
37666 (normal/lexer.c_DEPENDENCIES): Likewise.
37667 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
37668 (normal/lexer.c_DEPENDENCIES): Likewise.
37669 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37670 (normal/lexer.c_DEPENDENCIES): Likewise.
37671 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37672 (normal/lexer.c_DEPENDENCIES): Likewise.
37674 2008-02-23 Robert Millan <rmh@aybabtu.com>
37676 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
37677 since they were intended to be in hex. This didn't break previously
37678 because of a bug in gpt_partition_map_iterate() (see below).
37680 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
37681 when checking the validity of GPT header.
37682 Remove `partno', since it always provides the same information as `i'.
37684 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
37686 * include/grub/efi/time.h: Fix a wrong comment.
37688 2008-02-19 Pavel Roskin <proski@gnu.org>
37690 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
37693 2008-02-19 Bean <bean123ch@gmail.com>
37695 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
37696 (aout_mod_SOURCES): New variable.
37697 (aout_mod_CFLAGS): Likewise.
37698 (aout_mod_LDFLAGS): Likewise.
37699 (_bsd_mod_SOURCES): New variable.
37700 (_bsd_mod_CFLAGS): Likewise.
37701 (_bsd_mod_LDFLAGS): Likewise.
37702 (bsd_mod_SOURCES): New variable.
37703 (bsd_mod_CFLAGS): Likewise.
37704 (bsd_mod_LDFLAGS): Likewise.
37706 * include/grub/aout.h: New file.
37708 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
37710 * include/grub/i386/bsd.h: New file.
37712 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
37715 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
37716 function is called, so that it's possible to change it inside the hook.
37717 (grub_elf64_load): Likewise.
37718 (grub_elf_file): Don't close the file if elf header is not found.
37719 (grub_elf_close): Close the file if grub_elf_file fails (The new
37720 grub_elf_file won't close it).
37721 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
37722 (grub_elf64_size): Likewise.
37724 * kern/i386/loader.S (grub_unix_real_boot): New function.
37726 * loader/aout.c: New file.
37728 * loader/i386/bsd.c: New file.
37730 * loader/i386/bsd_normal.c: New file.
37732 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
37734 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
37735 can test other formats.
37737 2008-02-19 Robert Millan <rmh@aybabtu.com>
37739 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
37740 (grub_gpt_partition_type_empty): Redefine with macro from
37741 `<grub/gpt_partition.h>'.
37742 (gpt_partition_map_iterate): Adjust partition type comparison.
37744 Export `entry' as partmap-specific `part.data' struct.
37745 (grub_gpt_header, grub_gpt_partentry): Move from here ...
37747 * include/grub/gpt_partition.h (grub_gpt_header)
37748 (grub_gpt_partentry): ... to here (new file).
37750 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
37752 (grub_gpt_partition_type_bios_boot): New const variable, defined
37753 with macro from `<grub/gpt_partition.h>'.
37755 (setup): Replace `first_start' with `embed_region', which keeps
37756 track of the embed region (and is partmap-agnostic).
37758 Replace find_first_partition_start() with find_usable_region(),
37759 which finds a usable region for embedding using partmap-specific
37760 knowledge (supports PC/MSDOS and GPT).
37762 Fix all assumptions that the embed region start at sector 1, using
37763 `embed_region.start' from now on. Similarly, use `embed_region.end'
37764 rather than `first_start' to calculate available size.
37766 In grub_util_info() message, replace "into after the MBR" with an
37767 indication of the specific sector our embed region starts at.
37769 2008-02-19 Robert Millan <rmh@aybabtu.com>
37771 * DISTLIST: Replace `commands/ieee1275/halt.c' and
37772 `commands/ieee1275/reboot.c' with `commands/halt.c' and
37773 `commands/reboot.c'.
37774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37775 (halt_mod_SOURCES): Likewise.
37776 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37777 (halt_mod_SOURCES): Likewise.
37779 2008-02-17 Christian Franke <franke@computer.org>
37781 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
37783 2008-02-17 Robert Millan <rmh@aybabtu.com>
37785 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37786 set `first_start' to 0 for non-PC/MSDOS partition maps.
37788 2008-02-16 Robert Millan <rmh@aybabtu.com>
37790 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37791 do not assume partition map is PC/MSDOS before performing checks that
37792 are specific to that layout.
37794 2008-02-13 Robert Millan <rmh@aybabtu.com>
37796 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
37797 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
37798 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
37800 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
37802 * configure.ac: Only a cosmetic change on the handling of
37803 -fno-stack-protector.
37805 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
37807 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
37808 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
37810 (grub_install_SOURCES): Add halt.mod and reboot.mod.
37811 (halt_mod_SOURCES): New variable.
37812 (halt_mod_CFLAGS): Likewise.
37813 (halt_mod_LDFLAGS): Likewise.
37814 (reboot_mod_SOURCES): Likewise.
37815 (reboot_mod_CFLAGS): Likewise.
37816 (reboot_mod_LDFLAGS): Likewise.
37818 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
37819 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
37821 (halt_mod_SOURCES): Likewise.
37822 (reboot_mod_SOURCES): Likewise.
37824 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
37825 commands/i386/pc/reboot.c by commands/reboot.c.
37826 (reboot_mod_SOURCES): Likewise.
37828 * commands/i386/pc/reboot.c: merge this file ...
37830 * commands/ieee1275/reboot.c: ... and this file ...
37832 * commands/reboot.c: ... to this file.
37833 Add some precompiler directive to include the correct header for
37836 * commands/ieee1275/halt.c: move this file ...
37838 * commands/halt.c: ... to here.
37839 Add some precompiler directive to include the correct header for
37842 * include/grub/efi/efi.h (grub_reboot): New function declaration.
37843 (grub_halt): Likewise.
37845 * kern/efi/efi.c (grub_reboot): New function.
37846 (grub_halt): Likewise.
37848 2008-02-12 Robert Millan <rmh@aybabtu.com>
37850 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
37851 /dev (like it is done for /dev/mapper). This doesn't provide support
37852 for EVMS, but at least it is now easy to identify the problem when it
37855 2008-02-11 Robert Millan <rmh@aybabtu.com>
37857 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
37858 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
37859 comparing it with -1, not 0.
37861 2008-02-10 Robert Millan <rmh@aybabtu.com>
37863 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
37865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37866 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
37868 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
37869 `disk/lvm.c' to the end of the list.
37870 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37871 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37873 2008-02-10 Robert Millan <rmh@aybabtu.com>
37875 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
37876 grub_print_error() instead. This will let user know why we're entering
37878 Based on suggestions from Sam Morris.
37880 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
37882 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
37883 on remaining N args, instead of "--" arg N times.
37885 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
37887 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
37888 (fill_with_default_glyph): Changed to use unknown_glyph for fill
37889 pattern for unknown glyphs.
37891 2008-02-09 Robert Millan <rmh@aybabtu.com>
37893 * configure.ac: Probe for `help2man'.
37894 * Makefile.in (builddir): New variable.
37895 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
37896 or otherwise add a few flags/options to it.
37897 (install-local): For every executable utility or script that is
37898 installed, invoke $(HELP2MAN) to install a manpage based on --help
37901 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
37902 that it doesn't prevent --help from working in build tree.
37904 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
37905 with `bug-grub@gnu.org'.
37906 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
37907 * util/update-grub.in (usage): New function.
37908 Implement proper argument check, with support for --help and --version
37909 (as well as existing -y).
37911 2008-02-09 Christian Franke <franke@computer.org>
37913 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
37914 avoid overwriting previous output.
37915 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
37917 2008-02-09 Robert Millan <rmh@aybabtu.com>
37919 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
37922 2008-02-09 Robert Millan <rmh@aybabtu.com>
37924 * commands/sleep.c: New file.
37925 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
37926 (sleep_mod_SOURCES): New variable.
37927 (sleep_mod_CFLAGS): Likewise.
37928 (sleep_mod_LDFLAGS): Likewise.
37930 2008-02-09 Robert Millan <rmh@aybabtu.com>
37932 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
37933 situations in which we can deduce the RAID size and the superblock
37936 2008-02-09 Robert Millan <rmh@aybabtu.com>
37938 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
37939 and return a grub_diskmemberlist_t composed of LVM physical volumes.
37940 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
37942 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
37943 and return a grub_diskmemberlist_t composed of physical array members.
37944 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
37946 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
37948 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
37949 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
37950 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
37952 * util/grub-probe.c (probe): Move partmap probing code from here ...
37953 (probe_partmap): ... to here.
37954 (probe): Use probe_partmap() once for the disk we're probing, and
37955 additionally, when such disk contains a memberlist() struct member,
37956 once for each disk that is contained in the structure returned by
37959 2008-02-09 Robert Millan <rmh@aybabtu.com>
37961 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
37962 environment variable to 'all' in order to obtain debug output from
37964 * util/i386/pc/grub-setup.c (main): Likewise.
37966 2008-02-08 Robert Millan <rmh@aybabtu.com>
37968 * disk/raid.c (grub_raid_scan_device): Check for
37969 `array->device[sb.this_disk.number]' rather than for
37970 `array->device[sb.this_disk.number]->name', since the latter is not
37971 guaranteed to be accessible.
37973 2008-02-08 Robert Millan <rmh@aybabtu.com>
37975 * disk/raid.c: Update copyright.
37976 * fs/cpio.c: Likewise.
37977 * include/grub/raid.h: Likewise.
37978 * loader/i386/pc/multiboot.c: Likewise.
37979 * util/hostfs.c: Likewise.
37981 2008-02-08 Robert Millan <rmh@aybabtu.com>
37983 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
37984 to a grub_disk_t array.
37985 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
37987 (grub_raid_scan_device): Replace `device[x].name' accesses with
37988 `device[x]->name'. Simplify initialization of `array->device[x]'.
37990 2008-02-08 Robert Millan <rmh@aybabtu.com>
37992 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
37993 grub_dprintf() calls.
37994 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
37997 2008-02-07 Christian Franke <franke@computer.org>
37999 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38000 instead of fseek and ftell to support large files.
38001 (grub_hostfs_read): Likewise.
38003 2008-02-07 Robert Millan <rmh@aybabtu.com>
38005 Patch from Jeroen Dekkers.
38006 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38007 failure, since successfully reading all array members might not be
38010 2008-02-06 Robert Millan <rmh@aybabtu.com>
38012 * util/grub-probe.c (probe): Simplify partmap probing (with the
38013 assumption that the first word up to the underscore equals to
38016 2008-02-06 Christian Franke <franke@computer.org>
38018 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38019 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38020 last block of a cpio or tar stream.
38021 Check for "TRAILER!!!" instead of any empty data
38022 block to detect last block of a cpio stream.
38023 (grub_cpio_dir): Fix constness of variable np.
38024 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38025 cpio or tar trailer is detected. This fixes a crash
38026 on open of a non existing file.
38028 2008-02-05 Bean <bean123ch@gmail.com>
38030 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38032 (grub_multiboot_load_elf64): Likewise.
38033 (grub_multiboot): Initialize mbi structure.
38035 * util/grub-fstest.c: Don't include unused header file script.h.
38037 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38039 (grub_fstest_SOURCES): Likewise.
38041 2008-02-05 Robert Millan <rmh@aybabtu.com>
38043 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38044 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38045 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38046 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38048 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38049 (translation_table): Replace hardcoded values with macros
38050 provided by `<grub/term.h>'.
38052 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38053 (keyboard_map): Correct/add a few values, with macros provided
38054 by `<grub/term.h>'.
38055 (keyboard_map_shift): Zero values that don't differ from their
38056 `keyboard_map' equivalents.
38057 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38058 Discard the second scan code that is always sent by Caps lock.
38059 Only use `keyboard_map_shift' when it provides a non-zero value,
38060 otherwise fallback to `keyboard_map'.
38062 2008-02-04 Bean <bean123ch@gmail.com>
38064 * Makefile.in (enable_grub_fstest): New variable.
38066 * conf/common.rmk (grub_fstest_init.lst): New rule.
38067 (grub_fstest_init.h): Likewise.
38068 (grub_fstest_init.c): Likewise.
38069 (util/grub-fstest.c_DEPENDENCIES): New variable.
38070 (grub_fstest_SOURCES): Likewise.
38072 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38074 * util/grub-fstest.c: New file.
38076 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38078 Make grub-setup handle a separate root device.
38080 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38081 so that the root device can be compared with the destination
38083 When embedding the core image, if the root and destination devices
38084 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38086 When not embedding, set ROOT_DRIVE to 0xFF.
38088 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38090 Add support for having a grub directory in a different drive. This
38091 is still only the data handling part.
38093 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38094 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38095 (grub_root_drive): New variable.
38097 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38098 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38099 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38102 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38104 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38106 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38108 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38109 is bogus, because PXE booting does not specify any drive
38112 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38113 am not sure if this is really correct.
38115 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38116 is always identical to the boot drive when booting from a CD.
38118 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38120 (root_drive): New variable.
38121 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38122 (setup_sectors): Push %dx right after popping it, because %dh will
38124 (copy_buffer): Restore %dx.
38126 2008-02-03 Robert Millan <rmh@aybabtu.com>
38128 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38129 use `cdboot.img' for cdrom images.
38131 2008-02-03 Robert Millan <rmh@aybabtu.com>
38133 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38134 only setup gfxterm when `font' command has succeeded.
38136 2008-02-03 Robert Millan <rmh@aybabtu.com>
38138 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38139 (grub_rescue_cmd_multiboot_loader)
38140 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38142 2008-02-03 Pavel Roskin <proski@gnu.org>
38144 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38145 %edx and %esi from stack only after grub_gate_a20() is called.
38146 grub_gate_a20() clobbers %edx.
38148 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38150 * configure.ac (AC_INIT): Bumped to 1.96.
38152 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38153 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38154 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38155 video/readers/png.c.
38157 2008-02-03 Bean <bean123ch@gmail.com>
38159 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38160 (cdboot_img_SOURCES): New variable.
38161 (cdboot_img_ASFLAGS): New variable.
38162 (cdboot_img_LDFLAGS): New variable.
38164 * boot/i386/pc/cdboot.S: New file.
38166 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38167 (cd_count): Likewise.
38168 (grub_biosdisk_get_drive): Add support for cd device.
38169 (grub_biosdisk_call_hook): Likewise.
38170 (grub_biosdisk_iterate): Likewise.
38171 (grub_biosdisk_open): Likewise.
38172 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38173 (grub_biosdisk_rw): Support reading from cd device.
38174 (GRUB_MOD_INIT): Iterate cd devices.
38176 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38177 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38178 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38180 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38182 2008-02-02 Robert Millan <rmh@aybabtu.com>
38184 * commands/read.c: New file.
38185 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38186 (read_mod_SOURCES): New variable.
38187 (read_mod_CFLAGS): Likewise.
38188 (read_mod_LDFLAGS): Likewise.
38190 2008-02-02 Robert Millan <rmh@aybabtu.com>
38192 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38193 determining whether menu has to be displayed.
38195 2008-02-02 Marco Gerards <marco@gnu.org>
38197 * bus/pci.c: New file.
38199 * include/grub/pci.h: Likewise.
38201 * include/grub/i386/pc/pci.h: Likewise.
38203 * commands/lspci.c: Likewise.
38205 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38207 (pci_mod_SOURCES): New variable.
38208 (pci_mod_CFLAGS): Likewise.
38209 (pci_mod_LDFLAGS): Likewise.
38210 (lspci_mod_SOURCES): Likewise.
38211 (lspci_mod_CFLAGS): Likewise.
38212 (lspci_mod_LDFLAGS): Likewise.
38214 2008-02-02 Bean <bean123ch@gmail.com>
38216 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38217 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38219 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38220 (grub_xfs_btree_node): New structure.
38221 (grub_xfs_btree_root): New structure.
38222 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38223 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38224 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38225 (GRUB_XFS_EXTENT_SIZE): Likewise.
38226 (grub_xfs_read_block): Support btree format type.
38227 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38228 Use directory block as basic unit.
38230 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38232 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38233 __attribute__ ((__regparm__ (1))).
38235 2008-02-01 Robert Millan <rmh@aybabtu.com>
38237 Correct a mistake in previous commit.
38239 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38241 (normal/command.c_DEPENDENCIES): New variable.
38243 2008-02-01 Robert Millan <rmh@aybabtu.com>
38245 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38247 (normal/command.c_DEPENDENCIES): New variable.
38248 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38249 * conf/i386-ieee1275.rmk: Likewise.
38250 * conf/i386-linuxbios.rmk: Likewise.
38251 * conf/i386-pc.rmk: Likewise.
38252 * conf/sparc64-ieee1275.rmk: Likewise.
38253 * conf/powerpc-ieee1275.rmk: Likewise.
38254 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38256 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38258 2008-02-01 Robert Millan <rmh@aybabtu.com>
38260 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38261 call at beginning of function.
38263 2008-01-31 Pavel Roskin <proski@gnu.org>
38265 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38266 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38267 (grub_mkrescue_SOURCES): Likewise.
38268 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38270 2008-01-30 Robert Millan <rmh@aybabtu.com>
38272 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38273 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38274 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38275 (grub_probe_SOURCES): ... to here.
38277 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38278 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38279 * conf/i386-ieee1275.rmk: Likewise.
38280 * conf/i386-linuxbios.rmk: Likewise.
38281 * conf/powerpc-ieee1275.rmk: Likewise.
38283 2008-01-30 Tristan Gingold <gingold@free.fr>
38285 * kern/rescue.c: Silently accept empty lines.
38287 2008-01-29 Bean <bean123ch@gmail.com>
38289 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38290 (real_code_2): Code cleanup and change comment style.
38291 (move_memory): Avoid using 32-bit address mode.
38293 2008-01-29 Bean <bean123ch@gmail.com>
38295 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38296 (png_mod_SOURCES): New variable.
38297 (png_mod_CFLAGS): Likewise.
38298 (png_mod_LDFLAGS): Likewise.
38300 * video/readers/png.c: New file.
38302 2008-01-28 Robert Millan <rmh@aybabtu.com>
38304 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38305 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38306 `ifndef GRUB_MOD_GAP' hack.
38307 * util/elf/grub-mkimage.c (add_segments): Likewise.
38309 2008-01-27 Robert Millan <rmh@aybabtu.com>
38311 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38312 `GRUB_MOD_GAP' for platforms in which it's not defined.
38313 * util/elf/grub-mkimage.c (add_segments): Likewise.
38315 2008-01-27 Robert Millan <rmh@aybabtu.com>
38317 Get grub-emu to build again (including parallel builds).
38319 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38321 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38322 (normal/execute.c_DEPENDENCIES): ... this, ...
38323 (grub-emu_DEPENDENCIES): ... and this.
38325 * conf/i386-efi.rmk: Likewise.
38326 * conf/i386-linuxbios.rmk: Likewise.
38327 * conf/i386-ieee1275.rmk: Likewise.
38328 * conf/powerpc-ieee1275.rmk: Likewise.
38329 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38331 2008-01-27 Robert Millan <rmh@aybabtu.com>
38333 * NEWS: Add a few items.
38335 2008-01-27 Robert Millan <rmh@aybabtu.com>
38337 Fix parallel builds with grub-emu. Based on earlier commit for
38338 grub-probe and grub-setup.
38340 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38341 (util/grub-emu.c_DEPENDENCIES): ... this.
38342 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38343 (util/grub-emu.c_DEPENDENCIES): ... this.
38344 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38345 (util/grub-emu.c_DEPENDENCIES): ... this.
38346 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38347 (util/grub-emu.c_DEPENDENCIES): ... this.
38348 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38349 (util/grub-emu.c_DEPENDENCIES): ... this.
38351 2008-01-27 Pavel Roskin <proski@gnu.org>
38353 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38354 to create a gap between _end and the modules added to the image
38355 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38356 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38357 * util/elf/grub-mkimage.c (add_segments): Likewise.
38359 2008-01-26 Pavel Roskin <proski@gnu.org>
38361 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38362 just return an error.
38364 2008-01-26 Bean <bean123ch@gmail.com>
38366 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38367 (grub_reiserfs_get_item): Save offset of the next item.
38368 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38370 2008-01-25 Robert Millan <rmh@aybabtu.com>
38372 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38373 make all filesystem sources appear together (possibly fixing omissions
38375 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38376 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38377 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38378 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38380 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38382 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38383 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38384 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38385 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38387 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38388 (probe): Add a sanity check to make sure of our ability to read
38389 requested files when probing for filesystem type.
38391 * genmk.rb: Update copyright year (2007).
38393 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38394 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38395 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38396 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38397 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38398 : Remove function prototypes.
38400 2008-01-25 Robert Millan <rmh@aybabtu.com>
38402 Revert my previous commits (based on wrong assumption of how grub_errno
38405 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38406 * kern/file.c (grub_file_open): Likewise.
38408 2008-01-24 Pavel Roskin <proski@gnu.org>
38410 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38411 that hang if GRUB tries to setup colors.
38412 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38413 colors for firmwares that don't support it.
38414 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38415 Recognize Open Hack'Ware, set flags to work around its
38418 2008-01-24 Robert Millan <rmh@aybabtu.com>
38420 * kern/file.c (grub_file_open): Do not account previous failures of
38421 unrelated functions when grub_errno is checked for.
38422 Reported by Oleg Strikov.
38424 2008-01-24 Bean <bean123ch@gmail.com>
38426 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38427 (grub_ufs_sblock): New member volume name.
38428 (grub_ufs_find_file): Fix string copy bug.
38429 (grub_ufs_label): Implement this function properly.
38431 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38432 (grub_hfs_iterate_records): Use the correct file number for extents
38433 and catalog file. Fix problem in next index calculation.
38434 (grub_hfs_find_node): Replace recursive function call with loop.
38435 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38437 2008-01-23 Robert Millan <rmh@aybabtu.com>
38439 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38440 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38441 (grub_multiboot2_real_boot): New function prototype.
38443 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38444 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38446 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38447 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38449 2008-01-23 Robert Millan <rmh@aybabtu.com>
38451 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38452 #ifdef'ed out grub_printf().
38454 2008-01-23 Robert Millan <rmh@aybabtu.com>
38456 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38457 grub_dprintf calls, since they make "debug=all" mode unusable.
38458 (grub_console_checkkey): Likewise.
38460 2008-01-23 Robert Millan <rmh@aybabtu.com>
38462 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38463 `term/i386/pc/at_keyboard.c'.
38464 (pkglib_MODULES): Add `serial.mod'.
38465 (serial_mod_SOURCES): New variable.
38466 (serial_mod_CFLAGS): Likewise.
38467 (serial_mod_LDFLAGS): Likewise.
38469 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38470 `<grub/powerpc/ieee1275/console.h>'.
38471 (grub_keyboard_controller_init): New function prototype.
38472 (grub_console_checkkey): Likewise.
38473 (grub_console_getkey): Likewise.
38475 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38478 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38479 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38481 2008-01-23 Robert Millan <rmh@aybabtu.com>
38483 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38484 present, "(memdisk)/boot/grub" becomes the default prefix.
38486 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38487 a memdisk tarball with all the modules. Add --overlay=DIR option that
38488 allows users to overlay additional files into the image.
38490 2008-01-23 Robert Millan <rmh@aybabtu.com>
38492 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38493 and `machine/memory.h'.
38494 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38495 (_multiboot_mod_SOURCES): New variable.
38496 (_multiboot_mod_CFLAGS): Likewise.
38497 (_multiboot_mod_LDFLAGS): Likewise.
38498 (multiboot_mod_SOURCES): Likewise.
38499 (multiboot_mod_CFLAGS): Likewise.
38500 (multiboot_mod_LDFLAGS): Likewise.
38502 * include/grub/i386/ieee1275/loader.h: New file.
38504 * include/grub/i386/ieee1275/machine.h: Likewise.
38506 * include/grub/i386/ieee1275/memory.h: Likewise.
38508 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38509 variable declaration.
38510 (grub_os_area_size): Likewise.
38512 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38513 (grub_lower_mem, grub_upper_mem): New variables.
38514 (grub_stop_floppy): New function (just to make
38515 grub_multiboot2_real_boot() happy).
38517 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38518 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38519 (grub_stop): New function.
38520 Include `"../realmode.S"' and `"../loader.S"'.
38522 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38523 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38525 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38526 rely on grub_multiboot2_real_boot() for final boot.
38528 2008-01-22 Robert Millan <rmh@aybabtu.com>
38530 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38531 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38532 device that doesn't look like an SD card.
38533 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38534 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38535 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38536 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38539 2008-01-22 Robert Millan <rmh@aybabtu.com>
38541 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38542 avoid claiming over our own code.
38544 2008-01-22 Bean <bean123ch@gmail.com>
38546 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38547 (jpeg_mod_SOURCES): New variable.
38548 (jpeg_mod_CFLAGS): Likewise.
38549 (jpeg_mod_LDFLAGS): Likewise.
38551 * video/readers/jpeg.c : New file.
38553 2008-01-22 Bean <bean123ch@gmail.com>
38555 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38556 there are no more items.
38558 2008-01-21 Robert Millan <rmh@aybabtu.com>
38560 * kern/mm.c (grub_mm_init_region): Improve debug message.
38562 2008-01-21 Robert Millan <rmh@aybabtu.com>
38564 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38565 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38567 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38569 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38570 Indicates start of upper memory.
38571 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38572 (generate_image): Abort when image size is big enough to corrupt
38575 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38576 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38577 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38578 instead of hardcoding 0xA0000.
38579 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38580 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38581 instead of hardcoding 0xA0000.
38583 2008-01-21 Robert Millan <rmh@aybabtu.com>
38585 * disk/memdisk.c (memdisk_size): New variable.
38586 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38588 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38589 image to dynamic memory.
38590 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38591 `memdisk_size'. Free memdisk block.
38593 2008-01-21 Robert Millan <rmh@aybabtu.com>
38595 Fix detection of very small filesystems (like tar).
38597 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38598 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38599 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38600 a problem with this disk).
38602 2008-01-21 Robert Millan <rmh@aybabtu.com>
38604 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38605 on grub_biosdisk_rw_standard() error.
38607 2008-01-21 Robert Millan <rmh@aybabtu.com>
38609 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38611 * kern/elf.c: Likewise.
38612 * kern/ieee1275/ieee1275.c: Likewise.
38613 * kern/powerpc/ieee1275/openfw.c: Likewise.
38614 * term/ieee1275/ofconsole.c: Likewise.
38616 2008-01-21 Robert Millan <rmh@aybabtu.com>
38618 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38620 * include/grub/kernel.h (grub_arch_memdisk_addr)
38621 (grub_arch_memdisk_size): Moved from here ...
38623 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38624 (grub_arch_memdisk_size): ... to here.
38626 2008-01-21 Robert Millan <rmh@aybabtu.com>
38628 Mostly based on bugfix from Bean.
38630 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38631 attribute with hook() parameter.
38632 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38634 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38635 attribute with hook() parameter.
38636 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38639 2008-01-21 Robert Millan <rmh@aybabtu.com>
38641 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38642 (pkglib_MODULES): Add `memdisk.mod'.
38643 (memdisk_mod_SOURCES): New variable.
38644 (memdisk_mod_CFLAGS): Likewise.
38645 (memdisk_mod_LDFLAGS): Likewise.
38647 * disk/memdisk.c: New file.
38649 * include/grub/disk.h (grub_disk_dev_id): Add
38650 `GRUB_DISK_DEVICE_MEMDISK_ID'.
38652 * include/grub/i386/pc/kernel.h
38653 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
38654 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
38655 (grub_kernel_image_size): New variable declaration.
38656 (grub_total_module_size): Likewise.
38657 (grub_memdisk_image_size): Likewise.
38659 * include/grub/i386/pc/memory.h
38660 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
38662 * include/grub/kernel.h: Include `<grub/symbol.h>'.
38663 (grub_arch_memdisk_addr): New variable declaration.
38664 (grub_arch_memdisk_size): Likewise.
38666 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
38667 (grub_arch_memdisk_size): Likewise.
38669 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
38670 (codestart): Replace hardcoded `0x100000' with
38671 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
38673 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
38674 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
38675 not NULL, append the contents of the file it refers to, at the end of
38676 the compressed kernel image. Initialize `grub_memdisk_image_size'
38677 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
38678 (options): Add "memdisk"|'m' option.
38679 (main): Parse --memdisk|-m option, and pass user-provided path as
38680 parameter to generate_image().
38682 2008-01-20 Robert Millan <rmh@aybabtu.com>
38684 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
38685 grub_dprintf() calls from here ...
38686 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
38688 2008-01-20 Robert Millan <rmh@aybabtu.com>
38690 Fix detection of "real mode" when /options/real-mode? doesn't exist.
38692 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
38694 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
38695 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
38696 `GRUB_IEEE1275_FLAG_REAL_MODE'.
38697 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
38699 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
38700 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
38702 2008-01-19 Robert Millan <rmh@aybabtu.com>
38704 Get rid of confusing function (superseded by
38705 `grub_ieee1275_get_integer_property')
38706 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
38708 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
38710 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
38711 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
38712 in native endianness from grub_ieee1275_get_integer_property().
38714 2008-01-19 Robert Millan <rmh@aybabtu.com>
38716 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
38717 command after "shut-down", since implementations differ on which
38718 the command for halt is.
38720 2008-01-19 Robert Millan <rmh@aybabtu.com>
38722 * include/grub/i386/linuxbios/console.h: Add header protection.
38723 (grub_keyboard_controller_init): New function prototype.
38724 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
38725 (KEYBOARD_COMMAND_READ): Likewise.
38726 (KEYBOARD_COMMAND_WRITE): Likewise.
38727 (KEYBOARD_SCANCODE_SET1): Likewise.
38728 (grub_keyboard_controller_write): New function.
38729 (grub_keyboard_controller_read): Likewise.
38730 (grub_keyboard_controller_init): Likewise.
38732 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
38733 (grub_console_init): On coreboot/LinuxBIOS, call
38734 grub_keyboard_controller_init().
38736 2008-01-19 Robert Millan <rmh@aybabtu.com>
38738 PowerPC changes provided by Pavel Roskin.
38740 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
38741 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
38742 don't rely on cmain() doing it.
38743 * kern/i386/ieee1275/startup.S (_start): Store %eax in
38744 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
38746 2008-01-16 Robert Millan <rmh@aybabtu.com>
38748 * include/grub/i386/linuxbios/memory.h
38749 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
38750 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
38751 receive `table_header' as argument. Instead, probe for it in the
38752 known memory ranges where it can be present.
38753 (grub_available_iterate): Do not pass a fixed `table_header' address
38754 to grub_linuxbios_table_iterate().
38756 2008-01-15 Robert Millan <rmh@aybabtu.com>
38758 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
38759 * conf/i386-ieee1275.rmk: New file.
38760 * include/grub/i386/ieee1275/console.h: Likewise.
38761 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
38762 * include/grub/i386/ieee1275/kernel.h: Likewise.
38763 * include/grub/i386/ieee1275/time.h: Likewise.
38764 * kern/i386/ieee1275/init.c: Likewise.
38765 * kern/i386/ieee1275/startup.S: Likewise.
38767 2008-01-15 Robert Millan <rmh@aybabtu.com>
38769 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
38770 when pointers are 32-bit (but still do set it to one when they are
38773 2008-01-15 Robert Millan <rmh@aybabtu.com>
38775 * include/grub/ieee1275/ieee1275.h
38776 (grub_ieee1275_get_integer_property): New function prototype.
38778 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
38779 (grub_ieee1275_get_integer_property): New function. Wraps around
38780 grub_ieee1275_get_property() to handle endianness.
38782 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
38783 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
38785 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
38786 (grub_map): Likewise.
38787 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
38789 2008-01-15 Bean <bean123ch@gmail.com>
38791 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
38792 (grub_script_execute_cmdline): Reset grub_errno.
38794 * normal/main.c (read_config_file): Reset grub_errno.
38796 * normal/parse.y (script_init): New.
38797 (script): Move function and menuentry here.
38799 (command): Add delimiter at the end of command.
38800 (commands): Adjust to match the new command.
38801 (commandblock): Remove grub_script_lexer_record_start.
38802 (menuentry): Add grub_script_lexer_record_start, use the new commands.
38803 (if): Use the new commands.
38805 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
38807 2008-01-15 Robert Millan <rmh@aybabtu.com>
38809 * normal/menu.c (run_menu): Move timeout message from here ...
38810 (print_timeout): ... to here.
38811 (run_menu): Use print_timeout() once during initial draw to print
38812 the whole message, and again in every clock tick to update only
38813 the number of seconds.
38815 2008-01-15 Robert Millan <rmh@aybabtu.com>
38817 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
38818 actual size of `available' from grub_ieee1275_get_property(), and
38819 restrict parsing to that bound.
38821 2008-01-15 Christian Franke <franke@computer.org>
38823 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
38824 (argp_program_version): Remove variable.
38825 (argp_program_bug_address): Likewise.
38826 (options): Convert from struct argp_option to struct option.
38827 (struct arguments): Remove.
38828 (parse_opt): Remove.
38829 (usage): New function.
38830 (main): Replace struct args members by simple variables.
38831 Replace argp_parse() by getopt_long().
38832 Add switch to evaluate options.
38833 Add missing "(...)" around root_dev in prefix string.
38835 2008-01-14 Robert Millan <rmh@aybabtu.com>
38837 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
38838 for grub_ieee1275_exit(), in order to improve portability.
38840 2008-01-14 Robert Millan <rmh@aybabtu.com>
38842 * util/grub.d/10_linux.in (prefix): Define.
38843 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
38845 2008-01-13 Pavel Roskin <proski@gnu.org>
38847 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
38848 grub_errno if no errors have been detected.
38850 2008-01-12 Robert Millan <rmh@aybabtu.com>
38852 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
38853 (grub_util_get_dev_abstraction): New function prototype.
38855 * util/getroot.c: Include `<grub/util/getroot.h>'
38856 (grub_util_get_grub_dev): Move detection of abstraction type to ...
38857 (grub_util_get_dev_abstraction): ... here (new function).
38859 * util/grub-probe.c: Convert PRINT_* to an enum. Add
38860 `PRINT_ABSTRACTION'.
38861 (probe): Probe for abstraction type when requested.
38862 (main): Understand `--target=abstraction'.
38864 * util/i386/efi/grub-install.in: Add abstraction module to core
38865 image when it is found to be necessary.
38866 * util/i386/pc/grub-install.in: Likewise.
38867 * util/powerpc/ieee1275/grub-install.in: Likewise.
38869 * util/update-grub_lib.in (font_path): Return system path without
38870 converting to GRUB path.
38871 * util/update-grub.in: Convert system path returned by font_path()
38872 to a GRUB path. Use `grub-probe -t abstraction' to determine what
38873 abstraction module is needed for loading fonts (if any). Export
38874 that as `GRUB_PRELOAD_MODULES'.
38875 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
38878 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
38880 Remove some unused code from reiserfs.
38882 * fs/reiserfs.c (struct grub_reiserfs_key)
38883 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
38884 (struct grub_reiserfs_node_body): Removed.
38885 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38887 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38889 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38891 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38893 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38895 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
38897 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38898 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38899 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38901 2008-01-10 Robert Millan <rmh@aybabtu.com>
38903 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
38904 Determines if a file is garbage left by packaging systems, etc.
38905 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
38906 for processing /etc/grub.d scripts.
38907 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
38908 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
38909 as a condition for processing Linux images.
38911 2008-01-10 Pavel Roskin <proski@gnu.org>
38913 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
38914 to compile reiserfs.c on PowerPC.
38916 2008-01-10 Robert Millan <rmh@aybabtu.com>
38918 * kern/device.c (grub_device_iterate): Do not abort device iteration
38919 when one of the devices cannot be opened.
38920 * kern/disk.c (grub_disk_open): Do not account previous failures of
38921 unrelated functions when grub_errno is checked for.
38923 2008-01-08 Robert Millan <rmh@aybabtu.com>
38925 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
38926 `! grub_linux_is_bzimage', change order of address comparison to make
38927 it more intuitive, and improve "too big zImage" error message.
38929 2008-01-08 Robert Millan <rmh@aybabtu.com>
38931 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
38932 `$(update-grub_DATA)'.
38933 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
38936 2008-01-07 Robert Millan <rmh@aybabtu.com>
38938 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
38939 which instruction is modified by grub-setup during installation
38940 (since it wasn't obvious by only looking at this file).
38942 2008-01-07 Robert Millan <rmh@aybabtu.com>
38944 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
38945 listing actual TODO items.
38947 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38949 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
38951 (grub_reiserfs_get_key_offset): Likewise.
38952 (grub_reiserfs_set_key_offset): Likewise.
38953 (grub_reiserfs_set_key_type): Likewise.
38954 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
38956 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
38957 better to remove the bitfield version completely.
38959 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38961 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
38962 allocated from the heap, due to the fshelp implementation.
38963 (grub_reiserfs_dir): Free NODE, due to the same reason.
38965 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38967 Mostly from Vincent Pelletier:
38969 * fs/reiserfs.c: New file.
38971 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
38972 (reiserfs_mod_SOURCES): New variable.
38973 (reiserfs_mod_CFLAGS): Likewise.
38974 (reiserfs_mod_LDFLAGS): Likewise.
38976 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
38977 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
38978 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
38981 2008-01-06 Robert Millan <rmh@aybabtu.com>
38983 * normal/color.c: Remove `<grub/env.h>'.
38985 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
38987 * include/grub/normal.h: Include <grub/env.h>.
38989 2008-01-05 Robert Millan <rmh@aybabtu.com>
38991 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
38992 usage example with `(hd0,1)'.
38993 Reported by Samuel Thibault.
38995 2008-01-05 Robert Millan <rmh@aybabtu.com>
38997 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
38998 (grub_linux_boot_zimage): Rename to ...
38999 (grub_linux_boot): ... this.
39000 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39001 (grub_linux_boot_zimage): Conditionalize zImage copy.
39003 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39004 (grub_linux_boot_bzimage): Remove prototype.
39005 (grub_linux_boot_zimage): Rename to ...
39006 (grub_linux_boot): ... this.
39008 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39009 (grub_linux_boot): Remove function.
39011 2008-01-05 Robert Millan <rmh@aybabtu.com>
39013 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39014 (grub_env_write_color_highlight): Likewise.
39015 (grub_wait_after_message): Likewise.
39017 * normal/color.c: New file.
39019 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39020 (normal_mod_DEPENDENCIES): Likewise.
39022 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39023 (normal_mod_DEPENDENCIES): Likewise.
39025 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39026 (normal_mod_DEPENDENCIES): Likewise.
39028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39029 (normal_mod_DEPENDENCIES): Likewise.
39031 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39032 for waiting after a message is printed.
39033 * normal/main.c (read_config_file): Likewise.
39034 (grub_normal_init): Register grub_env_write_color_normal() and
39035 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39036 `color_highlight' variables as global.
39038 * normal/menu.c (grub_wait_after_message): New function.
39039 (grub_color_menu_normal): New variable. Replaces ...
39040 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39041 (grub_color_menu_highlight): New variable. Replaces ...
39042 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39043 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39044 `GRUB_TERM_COLOR_STANDARD'.
39045 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39046 `normal_code' and `highlight_code' to `old_color_normal' and
39047 `old_color_highlight', respectively.
39048 (grub_menu_init_page): Update colors when drawing the menu, based on
39049 `menu_color_normal' and `menu_color_highlight' variables.
39050 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39051 a message is printed.
39053 2008-01-05 Robert Millan <rmh@aybabtu.com>
39055 * kern/env.c (grub_env_context_open): Propagate hooks for global
39056 variables to new context.
39058 * kern/main.c (grub_set_root_dev): Export `root' variable.
39060 2008-01-05 Robert Millan <rmh@aybabtu.com>
39062 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39063 discs unconditionally, since udev and others have options to provide
39066 2008-01-05 Robert Millan <rmh@aybabtu.com>
39068 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39070 2008-01-04 Christian Franke <franke@computer.org>
39072 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39075 2008-01-03 Pavel Roskin <proski@gnu.org>
39077 * kern/i386/linuxbios/init.c: Put "void" to all function
39078 declarations with no arguments.
39079 * kern/powerpc/ieee1275/init.c: Likewise.
39080 * term/i386/pc/at_keyboard.c: Likewise.
39081 * term/i386/pc/vga_text.c: Likewise.
39082 * util/grub-mkdevicemap.c: Likewise.
39084 2008-01-02 Robert Millan <rmh@aybabtu.com>
39086 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39087 message when loaded image is out of bounds.
39088 (grub_multiboot_load_elf64): Likewise.
39090 2008-01-02 Pavel Roskin <proski@gnu.org>
39092 * util/grub.d/10_linux.in: Try version without ".old" when
39093 looking for initrd. It's better to use initrd from the newer
39094 kernel of the same version than no initrd at all.
39096 2008-01-01 Robert Millan <rmh@aybabtu.com>
39098 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39100 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39102 * include/grub/video.h: Added grub_video_unmap_color and
39103 grub_video_get_active_render_target.
39104 (grub_video_adapter): Added unmap_color and get_active_render_target.
39106 * video/video.c: Added grub_video_unmap_color and
39107 grub_video_get_active_render_target.
39108 (grub_video_get_info): Changed method to accept NULL pointer as an
39109 argument to allow detection of active video adapter.
39111 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39112 grub_video_vbe_unmap_color_int.
39113 Added grub_video_vbe_unmap_color and
39114 grub_video_vbe_get_active_render_target.
39115 (grub_video_vbe_adapter): Added unmap_color and
39116 get_active_render_target.
39118 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39119 with grub_video_vbe_unmap_color_int.
39121 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39122 (DEFAULT_NORMAL_COLOR): Likewise.
39123 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39124 (DEFAULT_FG_COLOR): Removed.
39125 (DEFAULT_BG_COLOR): Likewise.
39126 (DEFAULT_CURSOR_COLOR): Changed value.
39127 (grub_virtual_screen): Added standard_color_setting,
39128 normal_color_setting, highlight_color_setting and term_color.
39129 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39130 (bitmap_width): Added.
39131 (bitmap_height): Likewise.
39132 (bitmap): Likewise.
39133 (set_term_color): Likewise.
39134 (grub_virtual_screen_setup): Changed to use new terminal coloring
39136 (grub_gfxterm_init): Added init for bitmap.
39137 (grub_gfxterm_fini): Added destroy for bitmap.
39138 (redraw_screen_rect): Updated to use background bitmap and new
39140 (scroll_up): Added optimization for case when there is no bitmap.
39141 (grub_gfxterm_cls): Fixed to use correct background color.
39142 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39144 (grub_virtual_screen_setcolor): Likewise.
39145 (grub_virtual_screen_getcolor): Added.
39146 (grub_gfxterm_background_image_cmd): Likewise.
39147 (grub_video_term): Added setcolor and getcolor.
39148 (MOD_INIT): Added registration of background_image command.
39149 (MOD_TERM): Added unregistration for background_image command.
39151 2007-12-30 Pavel Roskin <proski@gnu.org>
39153 * loader/multiboot_loader.c: Fix multiboot command
39154 unregistration. Fix all typos in the word "multiboot".
39156 2007-12-29 Pavel Roskin <proski@gnu.org>
39158 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39159 support for initrd names used in Fedora.
39161 2007-12-26 Bean <bean123ch@gmail.com>
39163 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39164 (cpio_mod_SOURCES): New variable.
39165 (cpio_mod_CFLAGS): Likewise.
39166 (cpio_mod_LDFLAGS): Likewise.
39168 * fs/cpio.c: New file.
39170 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39172 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39174 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39178 2007-12-25 Robert Millan <rmh@aybabtu.com>
39180 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39181 (grub_getcolor): New function.
39183 * kern/term.c (grub_getcolor): New function.
39184 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39185 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39186 (print_entry): Set normal and highlight colors to
39187 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39188 respectively, before printing and restore them to old
39190 (grub_menu_init_page): Likewise. Fill an additional colored space
39191 that would otherwise be left blank.
39193 * term/efi/console.c (grub_console_getcolor): New function.
39194 (struct grub_console_term.getcolor): New variable.
39195 * term/i386/pc/console.c (grub_console_getcolor): New function.
39196 (struct grub_console_term.getcolor): New variable.
39197 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39198 (struct grub_console_term.getcolor): New variable.
39200 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39201 (struct grub_console_term.setcolor): Remove variable.
39202 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39203 (struct grub_console_term.setcolor): Remove variable.
39204 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39205 (struct grub_console_term.setcolor): Remove variable.
39206 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39207 (struct grub_console_term.setcolor): Remove variable.
39209 2007-12-25 Robert Millan <rmh@aybabtu.com>
39211 * configure.ac: Search for possible unifont.hex locations, and
39212 define UNIFONT_HEX if found.
39214 * Makefile.in (UNIFONT_HEX): Define variable.
39215 (DATA): Rename to ...
39216 (PKGLIB): ... this. Update all users.
39217 (PKGDATA): New variable.
39218 (pkgdata_IMAGES): Rename to ...
39219 (pkglib_IMAGES): ... this. Update all users.
39220 (pkgdata_MODULES): Rename to ...
39221 (pkglib_MODULES): ... this. Update all users.
39222 (pkgdata_PROGRAMS): Rename to ...
39223 (pkglib_PROGRAMS): ... this. Update all users.
39224 (pkgdata_DATA): Rename to ...
39225 (pkglib_DATA): ... this. Update all users.
39226 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39227 (unicode.pff, ascii.pff): New rules.
39228 (all-local): Add `$(PKGDATA)' dependency.
39229 (install-local): Process `$(PKGDATA)'.
39231 * util/update-grub_lib.in (font_path): Search for *.pff files in
39232 a few more locations, including `${pkgdata}'.
39234 2007-12-23 Robert Millan <rmh@aybabtu.com>
39236 Patch from Bean <bean123ch@gmail.com>:
39237 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39240 2007-12-21 Bean <bean123ch@gmail.com>
39242 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39243 (ntfscomp_mod_SOURCES): New variable.
39244 (ntfscomp_mod_CFLAGS): Likewise.
39245 (ntfscomp_mod_LDFLAGS): Likewise.
39247 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39248 (grub_probe_SOURCES): Likewise.
39249 (grub_emu_SOURCES): Likewise.
39251 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39252 (grub_emu_SOURCES): Likewise.
39254 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39255 (grub_emu_SOURCES): Likewise.
39257 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39258 (grub_emu_SOURCES): Likewise.
39260 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39261 (read_run_list): Renamed to grub_ntfs_read_run_list.
39262 (decomp_nextvcn): Moved to ntfscomp.c.
39263 (decomp_getch): Likewise.
39264 (decomp_get16): Likewise.
39265 (decomp_block): Likewise.
39266 (read_block): Likewise.
39267 (read_data): Partially moved to ntfscomp.c.
39268 (fixup): Change unsigned to grub_uint16_t.
39269 (read_mft): Change unsigned long to grub_uint32_t.
39270 (read_attr): Likewise.
39271 (read_data): Likewise.
39272 (read_run_data): Likewise.
39273 (read_run_list): Likewise.
39274 (read_mft): Likewise.
39276 * fs/ntfscomp.c: New file.
39278 * include/grub/ntfs.h: New file.
39280 2007-12-16 Robert Millan <rmh@aybabtu.com>
39282 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39283 IDE disk check, since Linux is known to support 20 IDE disks.
39284 Reported by Colin Watson.
39286 2007-12-15 Bean <bean123ch@gmail.com>
39288 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39289 (lnxboot_img_SOURCES): New variable.
39290 (lnxboot_img_ASFLAGS): Likewise.
39291 (lnxboot_img_LDFLAGS): Likewise.
39293 * boot/i386/pc/lnxboot.S: New file.
39295 2007-11-24 Pavel Roskin <proski@gnu.org>
39297 * configure.ac: Test if '--build-id=none' is supported by the
39298 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39299 objcopy to generate incorrect binary files (binutils
39300 2.17.50.0.18-1 as shipped by Fedora 8).
39301 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39302 linking, so that build ID doesn't break the test.
39304 2007-11-24 Pavel Roskin <proski@gnu.org>
39306 * include/grub/i386/time.h: use "void" in the argument list
39307 of grub_cpu_idle().
39308 * include/grub/powerpc/time.h: Likewise.
39309 * include/grub/sparc64/time.h: Likewise.
39311 2007-11-18 Christian Franke <franke@computer.org>
39313 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39314 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39315 This fixes the problem that function keys did not work in grub-emu.
39317 2007-11-18 Christian Franke <franke@computer.org>
39319 * disk/host.c (grub_host_open): Remove attribute unused from
39320 name parameter. Add check for "host". This fixes the problem
39321 that grub-emu does not find partitions.
39323 2007-11-18 Christian Franke <franke@computer.org>
39325 * util/hostfs.c (is_dir): New function.
39326 (grub_hostfs_dir): Handle missing dirent.d_type case.
39327 (grub_hostfs_read): Add missing fseek().
39328 (grub_hostfs_label): Clear label pointer. This fixes a crash
39329 of grub-emu on "ls (host)".
39331 2007-11-18 Christian Franke <franke@computer.org>
39333 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39334 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39335 to 64 bit boundary by default.
39337 2007-11-18 Bean <bean123ch@gmail.com>
39339 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39340 (hexdump_mod_SOURCES): New variable.
39341 (hexdump_mod_CFLAGS): Likewise.
39342 (hexdump_mod_LDFLAGS): Likewise.
39344 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39346 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39348 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39352 * include/grub/hexdump.h: New file.
39354 * commands/hexdump.c: New file.
39356 2007-11-10 Robert Millan <rmh@aybabtu.com>
39358 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39359 in grub_outb() calls.
39360 (beep_on): Likewise.
39362 2007-11-10 Christian Franke <franke@computer.org>
39364 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39365 (grub_menu_run): Likewise.
39367 2007-11-10 Robert Millan <rmh@aybabtu.com>
39369 * include/grub/i386/efi/machine.h: New file.
39370 * include/grub/i386/linuxbios/machine.h: Likewise.
39371 * include/grub/i386/pc/machine.h: Likewise.
39372 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39373 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39375 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39376 (serial_hw_io_addr): New variable.
39377 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39378 instead of `(unsigned short *) 0x400'.
39380 2007-11-10 Bean <bean123ch@gmail.com>
39382 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39384 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39386 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39387 (vga_mod_SOURCES): Added.
39388 (vga_mod_CFLAGS): Likewise.
39389 (vga_mod_LDFLAGS): Likewise.
39391 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39393 (set_map_mask): Likewise.
39394 (set_read_map): Likewise.
39395 (set_read_address): Likewise.
39396 (vga_font): Removed variable.
39397 (get_vga_glyph): Removed function.
39398 (invalidate_char): Likewise.
39399 (write_char): Changed to use grub_font_get_glyph() for font
39401 (grub_vga_putchar): Likewise.
39402 (grub_vga_getcharwidth): Likewise.
39404 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39406 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39408 (pxeboot_img_LDFLAGS): Likewise.
39409 (diskboot_img_LDFLAGS): Likewise.
39410 (kernel_img_LDFLAGS): Likewise.
39412 2007-11-06 Robert Millan <rmh@aybabtu.com>
39414 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39415 in grub_outb() calls.
39416 (serial_hw_init): Likewise.
39418 2007-11-05 Robert Millan <rmh@aybabtu.com>
39420 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39421 spaces. Skip non-regular files.
39423 2007-11-05 Robert Millan <rmh@aybabtu.com>
39425 * kern/disk.c (grub_disk_firmware_fini)
39426 (grub_disk_firmware_is_tainted): New variables.
39428 * include/grub/disk.h (grub_disk_firmware_fini)
39429 (grub_disk_firmware_is_tainted): Likewise.
39431 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39432 (grub_disk_biosdisk_fini): ... to here.
39433 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39434 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39435 is set. Register grub_disk_biosdisk_fini() in
39436 `grub_disk_firmware_fini'.
39438 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39439 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39440 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39441 to finish existing firmware disk interface.
39443 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39444 (ata_mod_SOURCES): New variable.
39445 (ata_mod_CFLAGS): Likewise.
39446 (ata_mod_LDFLAGS): Likewise.
39448 2007-11-05 Robert Millan <rmh@aybabtu.com>
39450 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39451 (grub_ata_wait): Reimplement using grub_millisleep().
39453 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39454 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39456 2007-11-03 Marco Gerards <marco@gnu.org>
39458 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39459 (CRTC_ADDR_PORT): New macro.
39460 (CRTC_DATA_PORT): Likewise.
39461 (CRTC_CURSOR): Likewise.
39462 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39463 (CRTC_CURSOR_ADDR_LOW): Likewise.
39464 (update_cursor): New function.
39465 (grub_console_real_putchar): Call `update_cursor'.
39466 (grub_console_gotoxy): Likewise.
39467 (grub_console_cls): Set the default color when clearing the
39469 (grub_console_setcursor): Implemented.
39471 2007-11-03 Marco Gerards <marco@gnu.org>
39473 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39475 (grub_ata_pio_write): Likewise.
39477 (grub_atapi_identify): Wait after issuing an ATA command.
39478 (grub_atapi_packet): Likewise.
39479 (grub_ata_identify): Likewise.
39480 (grub_ata_readwrite): Likewise.
39482 2007-11-03 Marco Gerards <marco@gnu.org>
39484 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39485 (grub_ata_pio_write): Likewise.
39486 (grub_ata_readwrite): Use `grub_error', instead of
39487 returning `grub_errno'.
39489 2007-11-03 Marco Gerards <marco@gnu.org>
39491 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39492 grub_ata_pio_write once for every single sector, instead of for
39495 2007-10-31 Robert Millan <rmh@aybabtu.com>
39497 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39499 * conf/i386-linuxbios.rmk: New file.
39501 * kern/i386/pc/hardware.c: Likewise.
39502 * term/i386/pc/at_keyboard.c: Likewise.
39503 * term/i386/pc/vga_text.c: Likewise.
39505 * include/grub/i386/linuxbios/boot.h: Likewise.
39506 * include/grub/i386/linuxbios/console.h: Likewise.
39507 * include/grub/i386/linuxbios/init.h: Likewise.
39508 * include/grub/i386/linuxbios/kernel.h: Likewise.
39509 * include/grub/i386/linuxbios/loader.h: Likewise.
39510 * include/grub/i386/linuxbios/memory.h: Likewise.
39511 * include/grub/i386/linuxbios/serial.h: Likewise.
39512 * include/grub/i386/linuxbios/time.h: Likewise.
39514 * kern/i386/linuxbios/init.c: Likewise.
39515 * kern/i386/linuxbios/startup.S: Likewise.
39516 * kern/i386/linuxbios/table.c: Likewise.
39518 2007-10-31 Marco Gerards <marco@gnu.org>
39520 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39521 (ata_mod_SOURCES): New variable.
39522 (ata_mod_CFLAGS): Likewise.
39523 (ata_mod_LDFLAGS): Likewise.
39525 * disk/ata.c: New file.
39527 * include/grub/disk.h (grub_disk_dev_id): Add
39528 `GRUB_DISK_DEV_ATA_ID'.
39530 2007-10-31 Robert Millan <rmh@aybabtu.com>
39532 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39533 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39535 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39536 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39538 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39541 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39543 2007-10-27 Robert Millan <rmh@aybabtu.com>
39545 * include/grub/types.h (ULONG_MAX): Define macro.
39547 2007-10-22 Robert Millan <rmh@aybabtu.com>
39549 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39551 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39553 2007-10-22 Robert Millan <rmh@aybabtu.com>
39555 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39556 (pkgdata_MODULES): Add `biosdisk.mod'.
39557 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39560 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39561 (grub_biosdisk_init): Replace with ...
39562 (GRUB_MOD_INIT(biosdisk)): ... this.
39563 (grub_biosdisk_fini): Replace with ...
39564 (GRUB_MOD_FINI(biosdisk)): ... this.
39566 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39567 (grub_machine_init): Remove call to grub_biosdisk_init().
39568 (grub_machine_fini): Remove call to grub_machine_fini().
39570 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39572 2007-10-22 Robert Millan <rmh@aybabtu.com>
39574 * include/grub/time.h: New file.
39575 * include/grub/i386/time.h: Likewise.
39576 * include/grub/powerpc/time.h: Likewise.
39577 * include/grub/sparc64/time.h: Likewise.
39579 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39581 (KERNEL_MACHINE_TIME_HEADER): ... this.
39582 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39584 (KERNEL_MACHINE_TIME_HEADER): ... this.
39585 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39587 (KERNEL_MACHINE_TIME_HEADER): ... this.
39589 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39590 (grub_millisleep): New function.
39591 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39592 (grub_millisleep): New function.
39593 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39594 Remove `grub/machine/time.h' include.
39595 (grub_millisleep): New function.
39596 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39597 Remove `grub/machine/time.h' include.
39598 (grub_millisleep): New function.
39600 * include/grub/misc.h (grub_div_roundup): New function.
39602 * kern/misc.c: Include `<grub/time.h>'.
39603 (grub_millisleep_generic): New function.
39605 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39607 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39609 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39610 `machine/time.h'. Add `time.h'.
39611 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39613 2007-10-21 Robert Millan <rmh@aybabtu.com>
39615 * include/grub/misc.h (grub_max): New function.
39617 2007-10-21 Robert Millan <rmh@aybabtu.com>
39619 * util/misc.c (grub_util_info): Call fflush() before returning.
39621 2007-10-20 Robert Millan <rmh@aybabtu.com>
39623 * genmk.rb (Image): Copy `extra_flags' from here ...
39624 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39626 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39627 to `argc' and `args' arguments.
39629 2007-10-17 Robert Millan <rmh@aybabtu.com>
39631 * kern/i386/loader.S: New file.
39633 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39634 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39635 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39636 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39637 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39638 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39639 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39640 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39641 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39642 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
39643 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
39644 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
39645 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
39646 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
39648 * kern/i386/realmode.S: New file.
39650 * kern/i386/pc/startup.S (protstack): Moved from here ...
39651 * kern/i386/realmode.S (protstack)... to here.
39652 * kern/i386/pc/startup.S (gdt): Moved from here ...
39653 * kern/i386/realmode.S (gdt)... to here.
39654 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
39655 * kern/i386/realmode.S (prot_to_real)... to here.
39657 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
39658 `kern/i386/realmode.S'.
39660 2007-10-17 Robert Millan <rmh@aybabtu.com>
39662 * include/grub/i386/loader.h: New file.
39664 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
39665 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39666 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39667 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39668 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
39669 * include/grub/i386/loader.h (grub_linux_prot_size)
39670 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39671 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39672 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39673 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
39675 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
39677 2007-10-15 Robert Millan <rmh@aybabtu.com>
39679 * normal/misc.c (grub_normal_print_device_info): Do not probe for
39680 filesystem when dev->disk is unset.
39681 Do probe for filesystem even when dev->disk->has_partitions is set.
39682 In case a filesystem is found, always report it.
39683 In case it isn't, if dev->disk->has_partitions is set, report that
39684 a partition table was found instead of reporting that no filesystem
39685 could be identified.
39687 2007-10-12 Robert Millan <rmh@aybabtu.com>
39689 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
39690 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
39692 * include/grub/types.h (grub_host_to_target16): New macro.
39693 (grub_host_to_target32): Likewise.
39694 (grub_host_to_target64): Likewise.
39695 (grub_target_to_host16): Likewise.
39696 (grub_target_to_host32): Likewise.
39697 (grub_target_to_host64): Likewise.
39699 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39700 Renamed from to ...
39701 (GRUB_MOD_ALIGN): ...this. Update all users.
39703 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
39704 grub_host_to_target32.
39705 Replace grub_be_to_cpu32 with grub_target_to_host32.
39706 (load_modules): Likewise.
39707 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
39708 Replace grub_be_to_cpu32 with grub_target_to_host32.
39709 Replace grub_cpu_to_be16 with grub_host_to_target16.
39710 Replace grub_cpu_to_be32 grub_host_to_target32.
39712 2007-10-12 Robert Millan <rmh@aybabtu.com>
39714 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
39715 * util/elf/grub-mkimage.c: ... here.
39717 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
39718 `util/powerpc/ieee1275/grub-mkimage.c'.
39720 2007-10-07 Robert Millan <rmh@aybabtu.com>
39722 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
39723 and make it easier to figure out.
39724 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
39725 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
39726 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
39727 leave us with less than HEAP_MIN_SIZE total heap.
39728 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
39730 2007-10-03 Robert Millan <rmh@aybabtu.com>
39732 * include/grub/i386/io.h: New file.
39733 * commands/i386/pc/play.c (inb): Removed.
39735 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39737 * term/i386/pc/serial.c (inb): Removed.
39739 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39741 * term/i386/pc/vga.c (inb): Removed.
39743 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39746 2007-10-02 Robert Millan <rmh@aybabtu.com>
39748 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
39749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39750 Reported by Marcin Kurek.
39752 2007-09-07 Robert Millan <rmh@aybabtu.com>
39754 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
39755 SmartFirmware version updates (as released by Sven Luther), and avoid
39756 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
39757 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
39760 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39762 From Hitoshi Ozeki:
39763 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
39764 when merging two regions.
39766 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39768 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
39769 * normal/completion.c (grub_normal_do_completion): Likewise.
39770 Reported by Hitoshi Ozeki.
39772 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39774 Do not use devices at boot in chainloading.
39776 * loader/i386/pc/chainloader.c (boot_drive): New variable.
39777 (boot_part_addr): Likewise.
39778 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
39779 with BOOT_DRIVE and BOOT_PART_ADDR.
39780 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
39781 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
39783 2007-08-29 Robert Millan <rmh@aybabtu.com>
39785 Patch from Simon Peter <dn.tlp@gmx.net>:
39786 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
39787 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
39788 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
39789 util/i386/pc/grub-setup.c_DEPENDENCIES.
39790 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
39791 util/grub-probe.c_DEPENDENCIES.
39792 * conf/powerpc-ieee1275.rmk: Likewise.
39794 2007-08-28 Robert Millan <rmh@aybabtu.com>
39796 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
39797 to tell grub-mkdevicemap how to name devices.
39798 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
39801 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
39802 util/i386/get_disk_name.c.
39803 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
39804 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
39805 util/ieee1275/get_disk_name.c.
39807 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
39809 * DISTLIST: Add util/i386/get_disk_name.c and
39810 util/ieee1275/get_disk_name.c.
39812 * util/grub-mkdevicemap.c: Replace device naming logic with
39813 grub_util_get_disk_name() calls.
39815 2007-08-20 Robert Millan <rmh@aybabtu.com>
39817 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
39818 (so that it works for both plural and singular quantities).
39820 2007-08-05 Robert Millan <rmh@aybabtu.com>
39822 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
39823 so that [xz] isn't taken into account when determining order.
39825 2007-08-02 Marco Gerards <marco@gnu.org>
39827 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
39828 `include/multiboot2.h', `include/grub/elfload.h',
39829 `include/multiboot.h', `include/grub/multiboot.h',
39830 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
39831 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
39832 `kern/elf.c', `loader/multiboot_loader.c',
39833 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
39834 `loader/i386/pc/multiboot2.c',
39835 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
39836 `util/i386/pc/grub-mkrescue.in'. Remove
39837 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
39838 `include/grub/i386/pc/util/biosdisk.h' and
39839 `include/grub/powerpc/ieee1275/multiboot.h'.
39841 2007-08-02 Bean <bean123ch@gmail.com>
39843 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
39844 (ntfs_mod_SOURCES): New variable.
39845 (ntfs_mod_CFLAGS): Likewise.
39846 (ntfs_mod_LDFLAGS): Likewise.
39848 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
39849 (grub_probe_SOURCES): Likewise.
39850 (grub_emu_SOURCES): Likewise.
39852 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39853 (grub_emu_SOURCES): Likewise.
39855 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39856 (grub_emu_SOURCES): Likewise.
39858 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
39860 * fs/ntfs.c: New file.
39862 2007-08-02 Bean <bean123ch@gmail.com>
39864 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
39866 * file.h (grub_file): Likewise.
39868 * fshelp.h (grub_fshelp_read_file): Likewise.
39870 * util/i386/pc/grub-setup.c (setup): Likewise.
39871 (save_first_sector): Likewise.
39872 (save_blocklists): Likewise.
39874 * fs/affs.c (grub_affs_read_file): Likewise.
39876 * fs/ext2.c (grub_ext2_read_file): Likewise.
39878 * fs/fat.c (grub_fat_read_data): Likewise.
39880 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
39882 * fs/hfs.c (grub_hfs_read_file): Likewise.
39884 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
39886 * fs/jfs.c (grub_jfs_read_file): Likewise.
39888 * fs/minix.c (grub_minix_read_file): Likewise.
39890 * fs/sfs.c (grub_sfs_read_file): Likewise.
39892 * fs/ufs.c (grub_ufs_read_file): Likewise.
39894 * fs/xfs.c (grub_xfs_read_file): Likewise.
39896 * command/blocklist.c (read_blocklist): Likewise.
39897 (print_blocklist): Likewise.
39899 2007-08-02 Marco Gerards <marco@gnu.org>
39901 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
39904 * disk/host.c: New file.
39906 * util/hostfs.c: Likewise.
39908 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
39909 return `GRUB_ERR_BAD_FS'.
39910 * fs/sfs.c (grub_sfs_mount): Likewise.
39911 * fs/xfs.c (grub_xfs_mount): Likewise.
39913 * include/grub/disk.h (enum grub_disk_dev_id): Add
39914 `GRUB_DISK_DEVICE_HOST_ID'.
39916 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
39918 2007-07-24 Jerone Young <jerone@gmail.com>
39920 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
39921 modules for compilation.
39922 * conf/powerpc-ieee1275.rmk: Likewise.
39924 * include/multiboot.h: Move multiboot definitions to one file. Rename
39925 many definitions to not get grub specific.
39926 * include/multiboot2.h: Create header with multiboot 2 definitions.
39927 * include/grub/multiboot.h: Header for grub specific function
39928 prototypes and definitions.
39929 * include/grub/multiboot2.h: Likewise.
39930 * include/grub/multiboot_loader.h: Likewise.
39931 * include/grub/i386/pc/multiboot.h: Removed.
39932 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
39934 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
39935 and 2 to allow for one multiboot and module commands.
39936 * loader/multiboot2.c: Add multiboot2 functionality.
39937 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
39938 and definition names.
39939 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
39941 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
39942 ieee1275 specific multiboot2 code.
39944 * kern/i386/pc/startup.S: Change headers and definition names for
39945 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
39947 2007-07-22 Robert Millan <rmh@aybabtu.com>
39949 * geninitheader.sh: Process file specified in first parameter rather
39950 than hardcoding grub_modules_init.lst.
39951 * geninit.sh: Likewise. Also, construct header name dynamically rather
39952 than hardcoding grub_modules_init.h.
39954 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
39955 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
39956 grub_probe_init.[ch] and grub_setup_init.[ch].
39958 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
39959 grub_modules_init.h with grub_emu_init.h.
39960 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
39961 grub_probe_init.[ch] files.
39962 * conf/i386-efi.rmk: Likewise.
39963 * conf/i386-pc.rmk: Likewise.
39964 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
39965 grub_setup_init.[ch] files.
39967 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
39968 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
39969 to initialize modules rather than a list of hardcoded functions.
39970 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
39971 grub_init_all() to initialize modules rather than a list of hardcoded
39974 2007-07-22 Robert Millan <rmh@aybabtu.com>
39976 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
39977 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
39979 2007-07-22 Robert Millan <rmh@aybabtu.com>
39981 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39982 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
39983 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
39984 flag when running on SmartFirmware.
39985 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
39986 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
39989 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
39990 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
39991 rather than decreasing it.
39993 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
39994 there's not enough space to do it, fail in the same way as when it
39995 can't be done because there are no partitions.
39997 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
39998 when nvsetenv failed.
40000 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40002 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40003 because this rule is automatically generated.
40004 (grub-mkrescue): Removed for the same reason as above.
40006 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40008 Migrate to GNU General Public License Version 3.
40010 * COPYING: Replaced with the plain text version of GPLv3.
40012 * config.guess: Updated from gnulib.
40013 * config.sub: Likewise.
40015 * geninit.sh: Output a GPLv3 copyright notice.
40016 * geninitheader.sh: Likewise.
40017 * genmodsrc.sh: Likewise.
40018 * gensymlist.sh.in: Likewise.
40020 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40021 * boot/i386/pc/diskboot.S: Likewise.
40022 * boot/i386/pc/pxeboot.S: Likewise.
40023 * commands/blocklist.c: Likewise.
40024 * commands/boot.c: Likewise.
40025 * commands/cat.c: Likewise.
40026 * commands/cmp.c: Likewise.
40027 * commands/configfile.c: Likewise.
40028 * commands/echo.c: Likewise.
40029 * commands/help.c: Likewise.
40030 * commands/ls.c: Likewise.
40031 * commands/search.c: Likewise.
40032 * commands/terminal.c: Likewise.
40033 * commands/test.c: Likewise.
40034 * commands/videotest.c: Likewise.
40035 * commands/i386/cpuid.c: Likewise.
40036 * commands/i386/pc/halt.c: Likewise.
40037 * commands/i386/pc/play.c: Likewise.
40038 * commands/i386/pc/reboot.c: Likewise.
40039 * commands/i386/pc/vbeinfo.c: Likewise.
40040 * commands/i386/pc/vbetest.c: Likewise.
40041 * commands/ieee1275/halt.c: Likewise.
40042 * commands/ieee1275/reboot.c: Likewise.
40043 * commands/ieee1275/suspend.c: Likewise.
40044 * disk/loopback.c: Likewise.
40045 * disk/lvm.c: Likewise.
40046 * disk/raid.c: Likewise.
40047 * disk/efi/efidisk.c: Likewise.
40048 * disk/i386/pc/biosdisk.c: Likewise.
40049 * disk/ieee1275/ofdisk.c: Likewise.
40050 * font/manager.c: Likewise.
40051 * fs/affs.c: Likewise.
40052 * fs/ext2.c: Likewise.
40053 * fs/fat.c: Likewise.
40054 * fs/fshelp.c: Likewise.
40055 * fs/hfs.c: Likewise.
40056 * fs/hfsplus.c: Likewise.
40057 * fs/iso9660.c: Likewise.
40058 * fs/jfs.c: Likewise.
40059 * fs/minix.c: Likewise.
40060 * fs/sfs.c: Likewise.
40061 * fs/ufs.c: Likewise.
40062 * fs/xfs.c: Likewise.
40063 * hello/hello.c: Likewise.
40064 * include/grub/acorn_filecore.h: Likewise.
40065 * include/grub/arg.h: Likewise.
40066 * include/grub/bitmap.h: Likewise.
40067 * include/grub/boot.h: Likewise.
40068 * include/grub/cache.h: Likewise.
40069 * include/grub/device.h: Likewise.
40070 * include/grub/disk.h: Likewise.
40071 * include/grub/dl.h: Likewise.
40072 * include/grub/elfload.h: Likewise.
40073 * include/grub/env.h: Likewise.
40074 * include/grub/err.h: Likewise.
40075 * include/grub/file.h: Likewise.
40076 * include/grub/font.h: Likewise.
40077 * include/grub/fs.h: Likewise.
40078 * include/grub/fshelp.h: Likewise.
40079 * include/grub/gzio.h: Likewise.
40080 * include/grub/hfs.h: Likewise.
40081 * include/grub/kernel.h: Likewise.
40082 * include/grub/loader.h: Likewise.
40083 * include/grub/lvm.h: Likewise.
40084 * include/grub/misc.h: Likewise.
40085 * include/grub/mm.h: Likewise.
40086 * include/grub/net.h: Likewise.
40087 * include/grub/normal.h: Likewise.
40088 * include/grub/parser.h: Likewise.
40089 * include/grub/partition.h: Likewise.
40090 * include/grub/pc_partition.h: Likewise.
40091 * include/grub/raid.h: Likewise.
40092 * include/grub/rescue.h: Likewise.
40093 * include/grub/script.h: Likewise.
40094 * include/grub/setjmp.h: Likewise.
40095 * include/grub/symbol.h: Likewise.
40096 * include/grub/term.h: Likewise.
40097 * include/grub/terminfo.h: Likewise.
40098 * include/grub/tparm.h: Likewise.
40099 * include/grub/types.h: Likewise.
40100 * include/grub/video.h: Likewise.
40101 * include/grub/efi/api.h: Likewise.
40102 * include/grub/efi/chainloader.h: Likewise.
40103 * include/grub/efi/console.h: Likewise.
40104 * include/grub/efi/console_control.h: Likewise.
40105 * include/grub/efi/disk.h: Likewise.
40106 * include/grub/efi/efi.h: Likewise.
40107 * include/grub/efi/pe32.h: Likewise.
40108 * include/grub/efi/time.h: Likewise.
40109 * include/grub/i386/linux.h: Likewise.
40110 * include/grub/i386/setjmp.h: Likewise.
40111 * include/grub/i386/types.h: Likewise.
40112 * include/grub/i386/efi/kernel.h: Likewise.
40113 * include/grub/i386/efi/loader.h: Likewise.
40114 * include/grub/i386/efi/time.h: Likewise.
40115 * include/grub/i386/pc/biosdisk.h: Likewise.
40116 * include/grub/i386/pc/boot.h: Likewise.
40117 * include/grub/i386/pc/chainloader.h: Likewise.
40118 * include/grub/i386/pc/console.h: Likewise.
40119 * include/grub/i386/pc/init.h: Likewise.
40120 * include/grub/i386/pc/kernel.h: Likewise.
40121 * include/grub/i386/pc/loader.h: Likewise.
40122 * include/grub/i386/pc/memory.h: Likewise.
40123 * include/grub/i386/pc/multiboot.h: Likewise.
40124 * include/grub/i386/pc/serial.h: Likewise.
40125 * include/grub/i386/pc/time.h: Likewise.
40126 * include/grub/i386/pc/vbe.h: Likewise.
40127 * include/grub/i386/pc/vbeblit.h: Likewise.
40128 * include/grub/i386/pc/vbefill.h: Likewise.
40129 * include/grub/i386/pc/vbeutil.h: Likewise.
40130 * include/grub/i386/pc/vga.h: Likewise.
40131 * include/grub/ieee1275/ieee1275.h: Likewise.
40132 * include/grub/ieee1275/ofdisk.h: Likewise.
40133 * include/grub/powerpc/libgcc.h: Likewise.
40134 * include/grub/powerpc/setjmp.h: Likewise.
40135 * include/grub/powerpc/types.h: Likewise.
40136 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40137 * include/grub/powerpc/ieee1275/console.h: Likewise.
40138 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40139 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40140 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40141 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40142 * include/grub/powerpc/ieee1275/time.h: Likewise.
40143 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40144 * include/grub/sparc64/libgcc.h: Likewise.
40145 * include/grub/sparc64/setjmp.h: Likewise.
40146 * include/grub/sparc64/types.h: Likewise.
40147 * include/grub/sparc64/ieee1275/console.h: Likewise.
40148 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40149 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40150 * include/grub/sparc64/ieee1275/time.h: Likewise.
40151 * include/grub/util/biosdisk.h: Likewise.
40152 * include/grub/util/getroot.h: Likewise.
40153 * include/grub/util/lvm.h: Likewise.
40154 * include/grub/util/misc.h: Likewise.
40155 * include/grub/util/raid.h: Likewise.
40156 * include/grub/util/resolve.h: Likewise.
40157 * io/gzio.c: Likewise.
40158 * kern/device.c: Likewise.
40159 * kern/disk.c: Likewise.
40160 * kern/dl.c: Likewise.
40161 * kern/elf.c: Likewise.
40162 * kern/env.c: Likewise.
40163 * kern/err.c: Likewise.
40164 * kern/file.c: Likewise.
40165 * kern/fs.c: Likewise.
40166 * kern/loader.c: Likewise.
40167 * kern/main.c: Likewise.
40168 * kern/misc.c: Likewise.
40169 * kern/mm.c: Likewise.
40170 * kern/parser.c: Likewise.
40171 * kern/partition.c: Likewise.
40172 * kern/rescue.c: Likewise.
40173 * kern/term.c: Likewise.
40174 * kern/efi/efi.c: Likewise.
40175 * kern/efi/init.c: Likewise.
40176 * kern/efi/mm.c: Likewise.
40177 * kern/i386/dl.c: Likewise.
40178 * kern/i386/efi/init.c: Likewise.
40179 * kern/i386/efi/startup.S: Likewise.
40180 * kern/i386/pc/init.c: Likewise.
40181 * kern/i386/pc/lzo1x.S: Likewise.
40182 * kern/i386/pc/startup.S: Likewise.
40183 * kern/ieee1275/ieee1275.c: Likewise.
40184 * kern/powerpc/cache.S: Likewise.
40185 * kern/powerpc/dl.c: Likewise.
40186 * kern/powerpc/ieee1275/cmain.c: Likewise.
40187 * kern/powerpc/ieee1275/crt0.S: Likewise.
40188 * kern/powerpc/ieee1275/init.c: Likewise.
40189 * kern/powerpc/ieee1275/openfw.c: Likewise.
40190 * kern/sparc64/cache.S: Likewise.
40191 * kern/sparc64/dl.c: Likewise.
40192 * kern/sparc64/ieee1275/init.c: Likewise.
40193 * kern/sparc64/ieee1275/openfw.c: Likewise.
40194 * loader/efi/chainloader.c: Likewise.
40195 * loader/efi/chainloader_normal.c: Likewise.
40196 * loader/i386/efi/linux.c: Likewise.
40197 * loader/i386/efi/linux_normal.c: Likewise.
40198 * loader/i386/pc/chainloader.c: Likewise.
40199 * loader/i386/pc/chainloader_normal.c: Likewise.
40200 * loader/i386/pc/linux.c: Likewise.
40201 * loader/i386/pc/linux_normal.c: Likewise.
40202 * loader/i386/pc/multiboot.c: Likewise.
40203 * loader/i386/pc/multiboot_normal.c: Likewise.
40204 * loader/powerpc/ieee1275/linux.c: Likewise.
40205 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40206 * normal/arg.c: Likewise.
40207 * normal/cmdline.c: Likewise.
40208 * normal/command.c: Likewise.
40209 * normal/completion.c: Likewise.
40210 * normal/execute.c: Likewise.
40211 * normal/function.c: Likewise.
40212 * normal/lexer.c: Likewise.
40213 * normal/main.c: Likewise.
40214 * normal/menu.c: Likewise.
40215 * normal/menu_entry.c: Likewise.
40216 * normal/misc.c: Likewise.
40217 * normal/parser.y: Likewise.
40218 * normal/script.c: Likewise.
40219 * normal/i386/setjmp.S: Likewise.
40220 * normal/powerpc/setjmp.S: Likewise.
40221 * normal/sparc64/setjmp.S: Likewise.
40222 * partmap/acorn.c: Likewise.
40223 * partmap/amiga.c: Likewise.
40224 * partmap/apple.c: Likewise.
40225 * partmap/gpt.c: Likewise.
40226 * partmap/pc.c: Likewise.
40227 * partmap/sun.c: Likewise.
40228 * term/gfxterm.c: Likewise.
40229 * term/terminfo.c: Likewise.
40230 * term/efi/console.c: Likewise.
40231 * term/i386/pc/console.c: Likewise.
40232 * term/i386/pc/serial.c: Likewise.
40233 * term/i386/pc/vesafb.c: Likewise.
40234 * term/i386/pc/vga.c: Likewise.
40235 * term/ieee1275/ofconsole.c: Likewise.
40236 * util/biosdisk.c: Likewise.
40237 * util/console.c: Likewise.
40238 * util/genmoddep.c: Likewise.
40239 * util/getroot.c: Likewise.
40240 * util/grub-emu.c: Likewise.
40241 * util/grub-mkdevicemap.c: Likewise.
40242 * util/grub-probe.c: Likewise.
40243 * util/lvm.c: Likewise.
40244 * util/misc.c: Likewise.
40245 * util/raid.c: Likewise.
40246 * util/resolve.c: Likewise.
40247 * util/update-grub.in: Likewise.
40248 * util/update-grub_lib.in: Likewise.
40249 * util/grub.d/00_header.in: Likewise.
40250 * util/grub.d/10_hurd.in: Likewise.
40251 * util/grub.d/10_linux.in: Likewise.
40252 * util/i386/efi/grub-install.in: Likewise.
40253 * util/i386/efi/grub-mkimage.c: Likewise.
40254 * util/i386/pc/grub-install.in: Likewise.
40255 * util/i386/pc/grub-mkimage.c: Likewise.
40256 * util/i386/pc/grub-mkrescue.in: Likewise.
40257 * util/i386/pc/grub-setup.c: Likewise.
40258 * util/i386/pc/misc.c: Likewise.
40259 * util/powerpc/ieee1275/grub-install.in: Likewise.
40260 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40261 * util/powerpc/ieee1275/misc.c: Likewise.
40262 * video/bitmap.c: Likewise.
40263 * video/video.c: Likewise.
40264 * video/i386/pc/vbe.c: Likewise.
40265 * video/i386/pc/vbeblit.c: Likewise.
40266 * video/i386/pc/vbefill.c: Likewise.
40267 * video/i386/pc/vbeutil.c: Likewise.
40268 * video/readers/tga.c: Likewise.
40270 2007-07-02 Robert Millan <rmh@aybabtu.com>
40272 * conf/i386-efi.rmk: Replace obsolete reference to
40273 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40274 with util/getroot.c.
40275 * conf/powerpc-ieee1275.rmk: Likewise.
40276 * conf/sparc64-ieee1275.rmk: Likewise.
40278 * util/grub-emu.c (main): Fix unchecked pointer handling.
40280 2007-07-02 Robert Millan <rmh@aybabtu.com>
40282 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40283 invocation to fail, in order to support partition-less media.
40285 * util/i386/pc/grub-install.in: Likewise.
40287 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40288 which fs or partmap modules are needed (akin to its sister scripts).
40290 Also use grub-probe to get rid of unportable /proc/mounts check.
40292 Print the same informational message that the other scripts do, before
40295 2007-06-23 Robert Millan <rmh@aybabtu.com>
40297 * util/update-grub_lib.in (font_path): New function. Determine whether
40298 a font file can be found and, if so, echo the GRUB path to it.
40300 * util/update-grub.in: Handle multiple terminals depending on user
40301 input, platform availability and font file presence. Propagate
40302 variables of our findings to /etc/grub.d/ children.
40304 * util/grub.d/00_header.in: Handle multiple terminals, based on
40305 environment setup by update-grub.
40307 2007-06-23 Robert Millan <rmh@aybabtu.com>
40309 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40311 2007-06-21 Robert Millan <rmh@aybabtu.com>
40313 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40314 indicate end of data section in kernel image.
40315 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40316 GRUB_KERNEL_MACHINE_DATA_END.
40318 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40320 * kern/i386/efi/startup.S: Likewise.
40322 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40323 during image generation. Implement --prefix option to override this
40325 * util/i386/efi/grub-mkimage.c: Likewise.
40327 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40328 code to make path relative to its root into a separate function.
40330 * util/i386/pc/grub-install.in: Use newly provided
40331 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40332 pass the result to grub-install --prefix.
40334 2007-06-13 Robert Millan <rmh@aybabtu.com>
40336 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40337 DEFAULT_DEVICE_MAP.
40338 * util/grub-emu.c: Use above definitions from misc.h instead of
40340 * util/grub-mkdevicemap.c: Likewise.
40341 * util/i386/pc/grub-setup.c: Likewise.
40342 * util/grub-probe.c: Likewise.
40343 (probe): Abort with grub_util_error() when either
40344 grub_guess_root_device or grub_util_get_grub_dev fails.
40346 2007-06-12 Robert Millan <rmh@aybabtu.com>
40348 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40349 "pager" assignment.
40350 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40352 * util/grub-probe.c (probe): Likewise for "drive_name".
40354 2007-06-11 Robert Millan <rmh@aybabtu.com>
40356 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40357 not just the cdrom one.
40359 2007-06-11 Robert Millan <rmh@aybabtu.com>
40361 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40362 Add --pkglibdir=DIR option to override pkglibdir.
40363 Mention --image-type=TYPE in help output.
40364 Fix --grub-mkimage (it was a no-op).
40365 Abort gracefully when no parameter is given.
40367 2007-06-11 Robert Millan <rmh@aybabtu.com>
40369 * util/i386/pc/grub-mkrescue.in: New file.
40370 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40371 * Makefile.in: Handle bin_SCRIPTS.
40373 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40375 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40376 list of video modes.
40378 2007-06-06 Robert Millan <rmh@aybabtu.com>
40380 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40381 file doesn't exist, or if it is in a filesystem grub can't read.
40383 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40384 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40385 header comment to fit in 80 columns when the variables are resolved.
40387 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40388 could be identified by update-grub. Remove redundant check for
40389 unifont.pff existence (since convert_system_path_to_grub_path now
40392 2007-06-04 Robert Millan <rmh@aybabtu.com>
40394 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40396 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40398 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40400 2007-06-04 Robert Millan <rmh@aybabtu.com>
40402 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40404 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40405 grub_apple_partition_map_fini.
40408 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40409 to access >2 TiB disks).
40411 Print disk->total_sectors with %llu instead of %lu, since this
40412 variable is always 64-bit (prevents wrong disk size from being displayed
40413 on either >2 TiB disk or big-endian CPU).
40415 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40416 into a generic case that supports all (sane) partition maps.
40418 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40421 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40422 and grub_apple_partition_map_fini() after that.
40424 2007-06-01 Robert Millan <rmh@aybabtu.com>
40426 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40428 * util/grub.d/00_header.in: Only enable gfxterm when
40429 convert_system_path_to_grub_path() succeeds.
40431 2007-05-20 Robert Millan <rmh@aybabtu.com>
40433 * util/update-grub_lib.in: New file.
40434 * DISTLIST: Add update-grub_lib.in.
40435 * conf/common.rmk: Generate update-grub_lib and install it in
40437 * Makefile.in: Add install routine for $(lib_DATA).
40439 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40440 function provided by update-grub_lib to support arbitrary paths of
40442 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40443 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40445 2007-05-19 Robert Millan <rmh@aybabtu.com>
40447 * commands/i386/cpuid.c: New module.
40448 * DISTLIST: Add it.
40449 * conf/i386-efi.rmk: Enable cpuid.mod.
40450 * conf/i386-pc.rmk: Likewise.
40452 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40454 * kern/disk.c (grub_disk_read): Check return value of
40457 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40459 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40461 * disk/raid.c (grub_raid_open): Likewise.
40463 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40465 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40466 stack instead of on the heap.
40468 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40469 before doing a read on it.
40471 * configure.ac: Only use -fno-stack-protector for the target
40474 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40476 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40477 __attribute_ ((unused)) to mode_type argument.
40479 * util/getroot.c (grub_guess_root_device): Fix #endif.
40481 * kern/misc.c (memcmp): Fix prototype.
40483 * include/grub/partition.h [GRUB_UTIL]
40484 (grub_gpt_partition_map_init): Add prototype.
40485 (grub_gpt_partition_map_fini): Likewise.
40487 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40488 at the right place.
40490 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40491 (grub_fat_read_data): Likewise.
40492 (grub_fat_find_dir): Likewise.
40494 * font/manager.c (find_glyph): Make table a const.
40495 (grub_font_get_glyph): Remove bitmap from if statement.
40497 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40499 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40500 code, first search for device in /dev/mapper, then in /dev.
40501 (grub_util_get_grub_dev): New function.
40502 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40504 * util/grub-probe.c (probe): Remove check for RAID, call
40505 grub_util_get_grub_dev() instead of
40506 grub_util_biosdisk_get_grub_dev().
40507 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40508 grub_util_biosdisk_get_grub_dev().
40509 * util/i386/pc/grub-setup.c (main): Likewise.
40511 2007-05-16 Robert Millan <rmh@aybabtu.com>
40513 * DISTLIST: Update for the latest changes.
40514 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40515 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40516 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40517 grub/util/biosdisk.h.
40518 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40519 grub/util/biosdisk.h.
40521 2007-05-16 Robert Millan <rmh@aybabtu.com>
40523 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40525 2007-05-16 Robert Millan <rmh@aybabtu.com>
40527 * util/i386/efi/grub-install.in: New.
40528 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40529 newly added grub-install.
40530 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40532 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40533 grub/util/biosdisk.h.
40534 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40535 grub/util/biosdisk.h.
40537 2007-05-16 Robert Millan <rmh@aybabtu.com>
40539 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40540 * include/grub/util/biosdisk.h: ... here.
40541 * util/i386/pc/biosdisk.c: Moved to ...
40542 * util/biosdisk.c: ... here.
40543 * util/i386/pc/getroot.c: Moved to ...
40544 * util/getroot.c: ... here.
40545 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40546 * util/grub-mkdevicemap.c: ... here.
40547 * util/i386/pc/grub-probe.c: Moved to ...
40548 * util/grub-probe.c: ... here.
40550 2007-05-15 Robert Millan <rmh@aybabtu.com>
40552 * util/update-grub.in: Remove duplicated line in grub.cfg header
40555 2007-05-13 Robert Millan <rmh@aybabtu.com>
40557 * util/update-grub.in: Fix a few assumptions about the devices holding
40558 /, /boot and /boot/grub being the same.
40559 * util/grub.d/00_header.in: Likewise.
40560 * util/grub.d/10_hurd.in: Likewise.
40561 * util/grub.d/10_linux.in: Likewise.
40563 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40564 patterns. Use that to define the `.old' suffix as older than `'.
40566 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40568 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40569 the grub.cfg header message.
40571 2007-05-11 Robert Millan <rmh@aybabtu.com>
40573 * util/update-grub.in: Create device.map if it doesn't already exist,
40574 before attempting to run grub-probe.
40575 Check for grub-probe and grub-mkdevicemap with the same code
40576 grub-install is using.
40579 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40581 * Makefile.in: Add the datarootdir autoconf variable.
40583 2007-05-09 Robert Millan <rmh@aybabtu.com>
40585 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40586 fail gracefully if dev->disk->partition == NULL.
40588 2007-05-07 Robert Millan <rmh@aybabtu.com>
40590 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40591 determine partition map module.
40592 * util/i386/pc/grub-install.in: Use this feature to decide which
40593 partition module to load, instead of hardcoding pc and gpt.
40595 2007-05-07 Robert Millan <rmh@aybabtu.com>
40597 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40598 source directory differs from build directory.
40600 2007-05-05 Robert Millan <rmh@aybabtu.com>
40602 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40605 2007-05-05 Robert Millan <rmh@aybabtu.com>
40607 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40609 2007-05-05 Robert Millan <rmh@aybabtu.com>
40611 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40612 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40614 2007-05-05 Robert Millan <rmh@aybabtu.com>
40616 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40617 (grub_probe_SOURCES): Likewise.
40618 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40619 GPT and initialize dos_part and bsd_part accordingly.
40620 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40622 (main): Activate gpt module for use during partition identification,
40623 and deactivate it afterwards.
40624 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40625 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40626 partition identification, and deactivate it afterwards.
40628 2007-05-05 Robert Millan <rmh@aybabtu.com>
40630 * term/i386/pc/console.c (grub_console_fini): Call
40631 grub_term_set_current() before grub_term_unregister().
40633 2007-05-04 Robert Millan <rmh@aybabtu.com>
40635 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40636 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40637 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40638 and update-grub_DATA.
40639 * conf/common.rmk: Build and install update-grub components.
40640 * conf/common.mk: Regenerate.
40641 * util/update-grub.in: New. Core of update-grub.
40642 * util/grub.d/00_header.in: New. Generates grub.cfg header.
40643 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
40644 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
40645 * util/grub.d/README: New. Document grub.d directory layout.
40647 2007-05-01 Robert Millan <rmh@aybabtu.com>
40649 * util/grub-emu.c: Move initialization functions
40650 grub_util_biosdisk_init() and grub_init_all() before
40651 grub_util_biosdisk_get_grub_dev(), which relies on them.
40653 2007-04-19 Robert Millan <rmh@aybabtu.com>
40655 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
40658 2007-04-18 Jerone Young <jerone@gmail.com>
40660 * kernel/elf.c: Add missing parenthesis for conditional statement
40663 2007-04-10 Jerone Young <jerone@gmail.com>
40665 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
40666 continue on and look for device node with real device name.
40668 2007-04-10 Jerone Young <jerone@gmail.com>
40670 * configure.ac: Add argument for autoconf to use transformation
40672 * Makefile.in: Add autoconf package transformation code.
40673 * util/i386/pc/grub-install.in: Likewise.
40674 * util/powerpc/ieee1275/grub-install.in: Likewise.
40676 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40678 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
40679 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
40680 (EXT2_REVISION): Likewise.
40681 (EXT2_INODE_SIZE): Likewise.
40682 (struct grub_ext2_block_group): Added a missing member
40684 (grub_ext2_read_inode): Divide by the inode size in a superblock
40685 instead of 128 to obtain INODES_PER_BLOCK.
40686 Use the macro EXT2_INODE_SIZE instead of directly using
40687 SBLOCK->INODE_SIZE.
40689 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40691 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
40692 superblock instead of the structure size to compute an
40693 offset. This fixes the problem that GRUB could not read a
40694 filesystem when inode size is different from 128-byte.
40696 2007-03-05 Marco Gerards <marco@gnu.org>
40698 * normal/main.c (read_config_file): When "menu" is not set, create
40699 an initial context.
40701 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40703 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
40704 (HEAP_LIMIT): New macro.
40705 (grub_claim_heap): Claim memory up to `heaplimit'.
40707 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40709 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
40710 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
40711 (_start): Likewise.
40712 (grub_arch_modules_addr): Return address after `_end'.
40713 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
40714 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
40715 (add_segments): Calculate `_end' from phdr size and location.
40716 (ALIGN_UP): Moved to ...
40717 * include/grub/misc.h: here.
40718 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40720 (GRUB_IEEE1275_MODULE_BASE): Removed.
40722 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40724 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
40727 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40729 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
40731 (grub_elf64_load_hook_t): Likewise.
40732 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
40735 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40737 * kern/mm.c: Update copyright.
40738 (grub_mm_debug): Correct syntax error.
40739 (grub_mm_dump_free): New function.
40740 (grub_debug_free): Call `grub_free'.
40741 * include/grub/mm.h: Update copyright.
40742 (grub_mm_dump_free): Add declaration.
40744 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40746 * include/grub/ieee1275/ieee1275.h: Update copyright.
40747 * kern/powerpc/ieee1275/init.c: Likewise.
40748 * kern/powerpc/ieee1275/openfw.c: Likewise.
40750 * loader/powerpc/ieee1275/linux.c: Likewise.
40751 * include/grub/elfload.h: Likewise.
40752 * kern/elf.c: Likewise.
40753 (grub_elf32_load): Pass `base' and `size' parameters. Update all
40755 (grub_elf64_load): Likewise.
40756 (grub_elf32_load_segment): Move to a nested function.
40757 (grub_elf64_load_segment): Likewise.
40759 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40761 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
40763 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
40764 (grub_heap_len): Likewise.
40765 (HEAP_SIZE): New macro.
40766 (grub_claim_heap): New function.
40767 (grub_machine_init): Don't claim heap directly. Call
40769 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
40770 (grub_available_iterate): New function.
40772 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
40774 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
40775 * configure.ac: Use it for testing the HOST and TARGET compilers.
40777 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
40779 * Makefile.in (enable_grub_emu): New variable.
40780 * configure.ac (--enable-grub-emu): New option.
40781 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
40782 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
40783 * conf/i386-pc.rmk: Likewise.
40784 * conf/powerpc-ieee1275.rmk: Likewise.
40785 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
40787 2006-12-12 Marco Gerards <marco@gnu.org>
40789 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
40791 * kern/env.c (grub_env_unset): Don't free the member `value' when
40792 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
40795 * normal/main.c (current_menu): Removed.
40796 (free_menu): Unset the `menu' environment variable.
40797 (grub_normal_menu_addentry): Make use of the environment variable
40798 `menu', instead of using the global `current_menu'. Allocate
40799 memory for the sourcecode of this entry.
40800 (read_config_file): New argument `nested', changed all callers.
40801 Only in the case of a new context, initialize a new menu. Set the
40802 `menu' environment variable.
40803 (grub_normal_execute): Don't set and unset the environment
40804 variable `menu' here anymore. Only free the menu when leaving the
40807 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
40810 2006-12-11 Marco Gerards <marco@gnu.org>
40812 * normal/menu_entry.c (run): Fix off by one bug so the last line
40813 is executed. Move the loader check to outside the loop.
40815 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
40817 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
40819 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
40821 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
40822 the number of sectors. Reported by Andrey Shuvikov
40823 <mr_hyro@yahoo.com>.
40825 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
40827 * kern/disk.c (grub_disk_read): When there is a read error, always
40828 try to read only the necessary data.
40830 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
40832 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
40834 [GRUB_UTIL] (grub_raid_fini): Likewise.
40835 [GRUB_UTIL] (grub_lvm_init): Likewise.
40836 [GRUB_UTIL] (grub_lvm_fini): Likewise.
40837 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
40838 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
40839 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
40840 and grub_raid_fini().
40842 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40844 * include/grub/types.h (__unused): Rename to UNUSED.
40845 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
40846 (grub_elf64_size): Likewise.
40848 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40850 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
40851 grub_error_push and grub_error_pop in the error-handling path.
40852 (grub_elf32_load_segment): Only call grub_file_read with non-zero
40855 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40857 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
40858 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40860 (kernel_elf_SOURCES): Likewise.
40861 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
40862 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
40863 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40864 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40865 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
40866 (elf_mod_SOURCES): New variable.
40867 (elf_mod_CFLAGS): Likewise.
40868 (elf_mod_LDFLAGS): Likewise.
40869 * include/grub/types.h (__unused): New macro.
40870 * include/grub/elfload.h: New file.
40871 * kern/elf.c: Likewise.
40872 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
40873 (ELF32_LOADMASK): New macro.
40874 (ELF64_LOADMASK): Likewise.
40875 (vmlinux): Removed.
40876 (grub_linux_load32): New function.
40877 (grub_linux_load64): Likewise.
40878 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
40879 Use grub_elf_t instead of grub_file_t.
40881 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
40883 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
40884 `catch_result' to struct set_color_args.
40886 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40888 * normal/menu.c: Include grub/script.h.
40889 * normal/menu_entry.c: Likewise.
40890 * include/grub/normal.h: Do not include grub/script.h.
40892 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40894 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
40896 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40898 * kern/disk.c (grub_disk_open): Print debug messages when opening a
40900 (grub_disk_close): Print debug messages when closing a disk.
40901 (grub_disk_read): Print debug messages when disk read fails.
40902 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
40904 * kern/partition.c: Include misc.h.
40905 (grub_partition_iterate): Print debug messages when detecting
40908 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40910 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
40912 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
40914 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
40916 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40917 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
40919 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
40921 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
40922 instead of sizeof(lv). Patch by Michael Guntsche.
40924 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
40926 * disk/lvm.c: Rename VGS to VG_LIST.
40927 (grub_lvm_iterate): Change VGS->LV to VG-LV.
40928 (grub_lvm_open): Likewise.
40929 Thanks to Michael Guntsche for finding this bug.
40931 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40933 * configure.ac (AC_INIT): Bumped to 1.95.
40935 2006-10-14 Robert Millan <rmh@aybabtu.com>
40937 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
40938 with "/dev/.static/dev/md".
40940 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40942 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
40943 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
40944 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
40945 DRIVE_NAME are always freed.
40947 * util/i386/pc/biosdisk.c (make_device_name): Add one into
40948 DOS_PART, as a DOS partition is counted from one instead of zero
40949 now. Reported by Robert Millan.
40951 2006-10-14 Robert Millan <rmh@aybabtu.com>
40953 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
40954 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
40955 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
40956 string returned by grub_guess_root_device.
40957 * util/i386/pc/grub-setup.c: Likewise.
40958 * util/i386/pc/grub-probefs.c: Likewise.
40960 * util/i386/pc/grub-probefs.c: Rename to ...
40961 * util/i386/pc/grub-probe.c: ... this.
40962 * DISTLIST: Remove grub-probefs, add grub-probe.
40963 * conf/i386-efi.rmk: Likewise.
40964 * conf/i386-pc.rmk: Likewise.
40965 * util/i386/pc/grub-install.in: Likewise.
40967 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
40968 choose which information we want to print.
40970 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40972 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
40973 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
40974 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
40975 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
40976 video/readers/tga.c and video/i386/pc/vbeutil.c.
40978 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
40980 Added support for RAID and LVM.
40982 * disk/lvm.c: New file.
40983 * disk/raid.c: Likewise.
40984 * include/grub/lvm.h: Likewise.
40985 * include/grub/raid.h: Likewise.
40986 * include/grub/util/lvm.h: Likewise.
40987 * include/grub/util/raid.h: Likewise.
40988 * util/lvm.c: Likewise.
40989 * util/raid.c: Likewise.
40991 * include/grub/disk.h (grub_disk_dev_id): Add
40992 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
40993 (grub_disk_get_size): New prototype.
40994 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
40995 returns a partition.
40996 (grub_disk_get_size): New function.
40998 * kern/i386/pc/init.c (make_install_device): Copy the prefix
40999 verbatim if grub_install_dos_part is -2.
41001 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41004 * util/i386/pc/grub-setup.c (setup): New argument
41005 MUST_EMBED. Force embedding of GRUB when the argument is
41006 true. Close FILE before returning.
41007 (main): Add support for RAID and LVM.
41009 * conf/common.rmk: Add RAID and LVM modules.
41010 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41012 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41014 * kern/misc.c (grub_strstr): New function.
41015 * include/grub/misc.h (grub_strstr): New prototype.
41017 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41019 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41021 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41023 * kern/misc.c (grub_strtoull): Guess the base only if not
41026 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41028 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41031 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41033 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41035 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41036 Remove `flags' argument. All callers changed.
41037 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41038 (IEEE1275_IHANDLE_INVALID): New variable.
41039 (IEEE1275_CELL_INVALID): New variable.
41040 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41041 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41042 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41043 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41044 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41045 codes from Open Firmware. All callers updated.
41046 (grub_ieee1275_next_property): Directly return Open Firmware return
41048 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41049 Standardize error checking from `grub_ieee1275_get_property'.
41050 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41051 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41053 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41055 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41056 `instance_to_package_args' to `instance_to_path_args'.
41058 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41059 `grub_ieee1275_chosen'.
41061 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41062 `grub_ieee1275_interpret'.
41064 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41066 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41068 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41070 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41071 (__cmpdi): Likewise.
41073 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41074 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41077 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41079 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41080 to type `grub_ssize_t'.
41081 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41083 2006-09-22 Marco Gerards <marco@gnu.org>
41085 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41088 2006-09-22 Marco Gerards <marco@gnu.org>
41090 * commands/echo.c: New file.
41092 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41094 * conf/common.rmk (echo_mod_SOURCES): New variable.
41095 (echo_mod_CFLAGS): Likewise.
41096 (echo_mod_LDFLAGS): Likewise.
41098 2006-09-22 Marco Gerards <marco@gnu.org>
41100 * normal/main.c (get_line): Malloc memory instead of using
41101 preallocated memory. Removed the arguments `cmdline' and
41102 `max_len'. Updated all callers.
41104 2006-09-22 Marco Gerards <marco@gnu.org>
41106 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41107 (normal_mod_DEPENDENCIES): Likewise.
41109 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41110 (normal_mod_DEPENDENCIES): Likewise.
41112 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41114 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41116 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41118 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41119 (normal_mod_DEPENDENCIES): Likewise.
41120 * conf/i386-pc.mk: Regenerate.
41121 * conf/i386-efi.mk: Likewise
41122 * conf/common.mk: Likewise.
41123 * conf/powerpc-ieee1275.mk: Likewise.
41124 * conf/sparc64-ieee1275.mk: Likewise.
41126 2006-09-22 Robert Millan <rmh@aybabtu.com>
41128 Sync with i386 version.
41129 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41130 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41132 2006-09-21 Robert Millan <rmh@aybabtu.com>
41134 Import from GRUB Legacy (lib/device.c):
41135 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41136 (init_device_map) [__linux__]: Add support for I2O devices.
41138 2006-09-14 Marco Gerards <marco@gnu.org>
41140 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41143 2006-09-14 Robert Millan <rmh@aybabtu.com>
41145 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41148 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41150 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41151 before adding it to device.map.
41153 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41155 * genmk.rb: Let GCC generate dependencies the first time it
41156 compiles a file; using the -MD option.
41157 * conf/common.mk: Regenerate.
41158 * conf/i386-pc.mk: Likewise.
41159 * conf/i386-efi.mk: Likewise.
41160 * conf/powerpc-ieee1275.mk: Likewise.
41161 * conf/sparc64-ieee1275.mk: Likewise.
41163 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41165 Move the prototypes of grub_setjmp and grub_longjmp to
41166 cpu/setjmp.h, so that each architecture may specify different
41169 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41170 (grub_longjmp): Likewise.
41171 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41172 (grub_longjmp): Likewise.
41173 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41174 (grub_longjmp): Likewise.
41176 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41177 [!GRUB_UTIL] (grub_longjmp): Removed.
41179 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41181 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41182 "color!" method does not return any value.
41184 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41186 * include/grub/bitmap.h: New file.
41188 * include/grub/i386/pc/vbeutil.h: Likewise.
41190 * video/bitmap.c: Likewise.
41192 * video/readers/tga.c: Likewise.
41194 * video/i386/pc/vbeutil.c: Likewise.
41196 * commands/videotest.c: Code cleanup and updated to reflect to new
41199 * term/gfxterm.c: Likewise.
41201 * video/video.c: Likewise.
41203 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41204 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41205 (bitmap_mod_SOURCES): New entry.
41206 (bitmap_mod_CFLAGS): Likewise.
41207 (bitmap_mod_LDFLAGS): Likewise.
41208 (tga_mod_SOURCES): Likewise.
41209 (tga_mod_CFLAGS): Likewise.
41210 (tga_mod_LDFLAGS): Likewise.
41212 * include/grub/video.h (grub_video_blit_operators): New enum type.
41213 (grub_video_render_target): Changed as forward declaration and moved
41214 actual definition to be video driver specific.
41215 (grub_video_adapter.blit_bitmap): Added blitting operator.
41216 (grub_video_adapter.blit_render_target): Likewise.
41217 (grub_video_blit_bitmap): Likewise.
41218 (grub_video_blit_render_target): Likewise.
41220 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41221 driver specific render target definition.
41222 (grub_video_vbe_map_rgba): Added driver internal helper.
41223 (grub_video_vbe_unmap_color): Updated to use
41224 grub_video_i386_vbeblit_info.
41225 (grub_video_vbe_get_video_ptr): Likewise.
41227 * include/grub/i386/pc/vbeblit.h
41228 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41229 grub_video_i386_vbeblit_info.
41230 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41231 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41232 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41233 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41234 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41235 (grub_video_i386_vbeblit_index_index): Likewise.
41236 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41237 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41238 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41239 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41241 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41244 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41245 include/grub/i386/pc/vbeblit.h.
41247 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41248 Updated to use grub_video_i386_vbeblit_info.
41249 (grub_video_i386_vbefill_R8G8B8): Likewise.
41250 (grub_video_i386_vbefill_index): Likewise.
41251 (grub_video_i386_vbefill): Added generic filler.
41253 * video/i386/pc/vbefill.c: Updated to reflect changes on
41254 include/grub/i386/pc/vbefill.h.
41256 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41257 grub_video_i386_vbeblit_info.
41258 (grub_video_vbe_unmap_color): Likewise.
41259 (grub_video_vbe_blit_glyph): Likewise.
41260 (grub_video_vbe_scroll): Likewise.
41261 (grub_video_vbe_draw_pixel): Removed function.
41262 (grub_video_vbe_get_pixel): Likewise.
41263 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41264 updated code to use it.
41265 (common_blitter): Added common blitter for render target and bitmap.
41266 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41267 (grub_video_vbe_blit_render_target): Likewise.
41269 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41271 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41272 is in text mode if there is no console control protocol instance
41275 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41277 * include/grub/video.h: Code cleanup.
41279 * include/grub/i386/pc/vbe.h: Likewise.
41281 * video/i386/pc/vbe.c: Likewise.
41283 * video/i386/pc/vbeblit.c: Likewise.
41285 * video/i386/pc/vbefill.c: Likewise.
41287 * video/video.c: Likewise. Also added more comments.
41289 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41291 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41292 (struct grub_biosdisk_dap): Likewise.
41294 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41295 linkage settings for all functions.
41297 2006-07-12 Marco Gerards <marco@gnu.org>
41299 * configure.ac (--enable-mm-debug): Fix typo.
41301 * genkernsyms.sh.in: Use proper quoting for `CC'.
41303 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41305 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41306 (normal_mod_ASFLAGS): Remove "-m32".
41308 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41310 * util/misc.c: Include config.h.
41311 [!HAVE_MEMALIGN]: Do not include malloc.h.
41312 (grub_memalign): Use posix_memalign, if present. Then, use
41313 memalign, if present. Otherwise, emit an error.
41315 * util/grub-emu.c: Do not include malloc.h.
41317 * include/grub/util/misc.h: Include unistd.h. This is required for
41318 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41319 D. Eades III <hde@foobar-qux.org>.
41321 * configure.ac (AC_GNU_SOURCE): Added.
41322 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41325 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41327 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41328 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41330 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41332 * include/grub/types.h (grub_host_addr_t): Rename to
41333 grub_target_addr_t.
41334 (grub_host_off_t): Rename to grub_target_off_t.
41335 (grub_host_size_t): Rename to grub_target_size_t.
41336 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41337 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41339 * include/grub/kernel.h (struct grub_module_header): Change type
41340 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41341 (grub_module_info): Likewise.
41343 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41345 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41346 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41347 Velazquez <jesus.velazquez@gmail.com>.
41349 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41351 Count partitions from 1 instead of 0 in the string representation
41352 of partitions. Still use 0-based internally.
41354 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41355 (sun_partition_map_iterate): Use grub_partition_t instead of
41356 struct grub_partition *. Cast DESC->START_CYLINDER to
41357 grub_uint64_t after converting the endian.
41358 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41359 (sun_partition_map_get_name): Add 1 to P->INDEX.
41361 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41363 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41365 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41366 zero instead of one.
41367 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41368 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41370 * partmap/apple.c (apple_partition_map_iterate): Change the type
41371 of POS to unsigned.
41372 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41373 (apple_partition_map_get_name): Add 1 into P->INDEX.
41375 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41376 of POS to unsigned.
41377 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41378 calculate the offset of a partition.
41379 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41380 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41382 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41383 SECTOR to grub_disk_addr_t.
41384 (acorn_partition_map_iterate): Likewise.
41385 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41386 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41388 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41390 * kern/i386/pc/init.c (make_install_device): Add 1 into
41391 GRUB_INSTALL_DOS_PART.
41393 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41396 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41398 Clean up the code to support 64-bit addressing in disks and
41399 files. This change is not enough for filesystems yet.
41401 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41402 type of "start" to grub_uint64_t.
41403 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41404 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41405 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41408 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41409 to grub_disk_addr_t.
41411 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41414 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41416 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41419 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41421 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41423 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41425 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41426 to grub_off_t, to detect an error from grub_file_seek.
41427 (grub_multiboot_load_elf32): Likewise.
41429 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41430 maximum unsigned long value when an overflow is detected.
41431 (grub_strtoull): New function.
41432 (grub_divmod64): Likewise.
41433 (grub_lltoa): use grub_divmod64.
41435 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41437 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41438 the pointer to next character. Use grub_strtoull instead of
41440 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41441 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41444 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41445 return value is signed.
41446 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41447 test if OFFSET is less than zero, as OFFSET is unsigned now.
41449 * kern/disk.c (struct grub_disk_cache): Change the type of
41450 "sector" to grub_disk_addr_t.
41451 (grub_disk_cache_get_index): Change the type of SECTOR to
41452 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41453 unsigned after shifting.
41454 (grub_disk_cache_invalidate): Change the type of SECTOR to
41456 (grub_disk_cache_unlock): Likewise.
41457 (grub_disk_cache_store): Likewise.
41458 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41459 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41460 grub_disk_addr_t and grub_uint64_t, respectively.
41461 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41462 body, as the value of OFFSET is tweaked by
41463 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41464 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41466 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41467 body, as the value of OFFSET is tweaked by
41468 grub_disk_check_range. Change the types of LEN and N to
41471 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41472 and "saved_offset" to grub_off_t.
41473 (test_header): Cast BUF to char *.
41474 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41476 (grub_gzio_read): Change the types of OFFSET and SIZE to
41477 grub_off_t and grub_size_t, respectively.
41479 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41481 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41482 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41483 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41484 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41485 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41487 * include/grub/types.h (grub_off_t): Unconditionally set to
41489 (grub_disk_addr_t): Changed to grub_uint64_t.
41491 * include/grub/partition.h (struct grub_partition): Change the
41492 types of "start", "len" and "offset" to grub_disk_addr_t,
41493 grub_uint64_t and grub_disk_addr_t, respectively.
41494 (grub_partition_get_start): Return grub_disk_addr_t.
41495 (grub_partition_get_len): Return grub_uint64_t.
41497 * include/grub/misc.h (grub_strtoull): New prototype.
41498 (grub_divmod64): Likewise.
41500 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41501 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41502 grub_off_t, respectively.
41503 All callers and references changed.
41505 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41506 grub_size_t in "read".
41507 All callers and references changed.
41509 * include/grub/file.h (struct grub_file): Change the types of
41510 "offset" and "size" to grub_off_t and grub_off_t,
41511 respectively. Change the type of SECTOR to grub_disk_addr_t in
41513 (grub_file_read): Change the type of LEN to grub_size_t.
41514 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41516 (grub_file_size): Return grub_off_t.
41517 (grub_file_tell): Likewise.
41518 All callers and references changed.
41520 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41521 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41523 (struct grub_disk): Change the type of "total_sectors" to
41524 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41526 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41527 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41528 (grub_disk_write): Likewise.
41529 All callers and references changed.
41531 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41532 char * for grub_strncmp to silence gcc.
41533 (grub_iso9660_mount): Likewise.
41534 (grub_iso9660_mount): Likewise.
41535 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41537 (grub_iso9660_iterate_dir): Likewise.
41538 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41540 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41541 LEN to grub_disk_addr_t and grub_size_t, respectively.
41543 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41545 * fs/jfs.c (grub_jfs_read_file): Likewise.
41547 * fs/minix.c (grub_jfs_read_file): Likewise.
41549 * fs/sfs.c (grub_jfs_read_file): Likewise.
41551 * fs/ufs.c (grub_jfs_read_file): Likewise.
41553 * fs/xfs.c (grub_jfs_read_file): Likewise.
41555 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41556 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41559 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41560 BLKNR to -1 instead of returning GRUB_ERRNO.
41561 (grub_ext2_read_file): Change the types of SECTOR and
41562 LEN to grub_disk_addr_t and grub_size_t, respectively.
41564 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41565 LEN to grub_disk_addr_t and grub_size_t, respectively.
41567 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41570 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41571 string. Do not cast SECTOR explicitly.
41573 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41574 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41575 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41576 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41577 over 2TB and LBA mode is not supported, raise an error.
41578 (get_safe_sectors): New function.
41579 (grub_biosdisk_read): Use get_safe_sectors.
41580 (grub_biosdisk_write): Likewise.
41582 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41583 (grub_efidisk_write): Likewise.
41585 * disk/loopback.c (delete_loopback): Cosmetic changes.
41586 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41588 (grub_loopback_open): Likewise.
41589 (grub_loopback_read): Likewise. Also, change the type of POS to
41590 grub_off_t, and fix the usage of grub_memset.
41592 * commands/i386/pc/play.c: Include grub/machine/time.h.
41594 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41597 * commands/configfile.c: Include grub/env.h.
41599 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41600 GRUB_ERRNO directly instead. Change the type of POS to
41601 grub_off_t. Follow the coding standard.
41603 * commands/blocklist.c: Include grub/partition.h.
41604 (grub_cmd_blocklist): Return an error if the underlying device is
41605 not a disk. Take the starting sector of a partition into account,
41606 if a partition is used.
41608 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41610 (lba_mode): Support 64-bit addresses.
41611 (chs_mode): Likewise.
41612 (copy_buffer): Adapted to the new offsets of a length field and a
41614 (blocklist_default_start): Allocate 64-bit space.
41616 * boot/i386/pc/boot.S (force_lba): Removed.
41617 (boot_drive): Moved to under KERNEL_SECTOR.
41618 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41620 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41622 (lba_mode): Refactored to support a 64-bit address. More size
41624 (setup_sectors): Likewise.
41626 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41628 * DISTLIST: Added include/grub/i386/linux.h. Removed
41629 include/grub/i386/pc/linux.h
41631 * configure.ac (AC_INIT): Bumped to 1.94.
41633 * config.guess: Updated from gnulib.
41634 * config.sub: Likewise.
41635 * install-sh: Likewise.
41636 * mkinstalldirs: Likewise.
41638 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41640 * conf/common.rmk (grub_modules_init.lst): Depended on
41641 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41644 * genmk.rb (PModule::rule): Reverted the previous change.
41646 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41648 * conf/common.rmk (grub_modules_init.lst): Depends on
41649 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
41650 that the target does not exist before producing.
41651 (grub_modules_init.h): Remove the target before generating.
41652 (grub_emu_init.c): Likewise.
41654 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
41656 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
41658 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
41659 for the target-specific tests. Make sure that we also have the
41660 up-to-date target variables for those tests.
41662 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41664 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
41665 (PModule::rule): Likewise.
41667 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41669 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
41670 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
41671 target-specific flags should be prefixed.
41672 (PModule::rule): Likewise.
41674 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
41676 * configure.ac (CMP): Check if cmp is available explicitly.
41678 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
41680 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
41681 (target_cpu): New variable.
41682 (pkglibdir): Use target_cpu instead of host_cpu.
41684 * util/i386/pc/grub-install.in (host_cpu): Removed.
41685 (target_cpu): New variable.
41686 (pkglibdir): Use target_cpu instead of host_cpu.
41688 * util/genmoddep.c: Removed.
41690 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
41691 instead of GRUB_HOST_SIZEOF_VOID_P.
41692 * kern/dl.c: Likewise.
41694 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
41696 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41697 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41698 (GRUB_TARGET_SIZEOF_LONG): ... this.
41699 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41700 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41701 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41703 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41704 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41705 (GRUB_TARGET_SIZEOF_LONG): ... this.
41706 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41707 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41708 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41710 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41711 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41712 (GRUB_TARGET_SIZEOF_LONG): ... this.
41713 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41714 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41716 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
41717 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
41718 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
41719 instead of GRUB_HOST_SIZEOF_LONG.
41720 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
41721 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
41722 GRUB_CPU_WORDS_BIGENDIAN.
41723 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
41724 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
41727 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
41728 (genmoddep_SOURCES): Likewise.
41729 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
41730 (genmoddep_SOURCES): Likewise.
41731 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
41732 (genmoddep_SOURCES): Likewise.
41733 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
41735 (genmoddep_SOURCES): Likewise.
41737 * genmoddep.awk: New file.
41739 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
41740 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
41741 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
41742 (PModule::rule): Likewise.
41743 (Program::rule): Likewise.
41744 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
41745 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
41748 * configure.ac: Rewritten intensively to use host and target
41749 instead of build and host, respectively.
41751 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
41752 (host_cpu): Removed.
41753 (target_cpu): New variable.
41754 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
41755 (BUILD_CC): Removed.
41756 (BUILD_CFLAGS): Likewise.
41757 (BUILD_CPPFLAGS): Likewise.
41758 (TARGET_CC): New variable.
41759 (TARGET_CFLAGS): Likewise.
41760 (TARGET_CPPFLAGS): Likewise.
41761 (TARGET_LDFLAGS): Likewise.
41763 (include): Use target_cpu instead of host_cpu.
41764 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
41766 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
41768 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
41770 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
41771 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
41772 field 'false' to 'exec_on_false'.
41773 (grub_script_create_cmdif): Renamed argument names to reflect above
41776 * normal/execute.c (grub_script_execute_cmdif): Likewise.
41778 * normal/script.c (grub_script_create_cmdif): Likewise.
41780 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
41782 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
41784 (grub_hfsplus_btree_recptr): Likewise.
41785 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
41786 FILEBLOCK both to pass a block number and store next block
41788 (grub_hfsplus_read_block): Rewritten heavily to support an extent
41789 overflow file correctly. Specify errors appropriately, because
41790 fshelp expects that GRUB_ERRNO is set when fails. Reuse
41791 grub_hfsplus_btree_recptr to get the pointer to a found key.
41792 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
41795 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
41797 (_linux_mod_SOURCES): New variable.
41798 (_linux_mod_CFLAGS): Likewise.
41799 (_linux_mod_LDFLAGS): Likewise.
41800 (linux_mod_SOURCES): Likewise.
41801 (linux_mod_CFLAGS): Likewise.
41802 (linux_mod_LDFLAGS): Likewise.
41804 * DISTLIST: Added loader/i386/efi/linux.c,
41805 loader/i386/efi/linux_normal.c and
41806 include/grub/i386/efi/loader.h.
41808 * loader/i386/efi/linux.c: New file.
41809 * loader/i386/efi/linux_normal.c: Likewise.
41810 * include/grub/i386/efi/loader.h: Likewise.
41812 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
41814 * commands/blocklist.c: New file.
41816 * DISTLIST: Added commands/blocklist.c.
41818 * term/efi/console.c (grub_console_highlight_color): Use a lighter
41819 color for the background, and a darker color for the foreground.
41820 (grub_console_checkkey): Return READ_KEY.
41821 (grub_console_cls): Set the background to
41822 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
41824 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
41826 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
41827 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
41829 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
41832 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
41833 BG. The spec is wrong again.
41835 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
41837 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
41839 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41840 commands/blocklist.c.
41841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41843 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
41844 (blocklist_mod_SOURCES): New variable.
41845 (blocklist_mod_CFLAGS): Likewise.
41846 (blocklist_mod_LDFLAGS): Likewise.
41848 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
41850 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
41852 (lba_mode): Use %eax more intensively to reduce the code size.
41854 2006-05-20 Marco Gerards <marco@gnu.org>
41856 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
41858 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
41860 (script): Accept leading newlines.
41861 (newlines): New rule to describe 0 or more newlines.
41862 (commands): Accept `command' with trailing newline. Fixed the
41863 order in which arguments were passed to `grub_script_add_cmd'.
41864 Accept commands separated by newlines.
41865 (function): Changed to accept newlines.
41866 (menuentry) Rewritten.
41868 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
41869 front of the list, instead of to the end.
41871 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
41873 * util/i386/pc/grub-install.in (bindir): New variable.
41874 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
41875 Shaver <lbgwjl@gmail.com>.
41877 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
41879 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
41880 grub/machine/linux.h
41881 * loader/i386/pc/linux.c: Likewise.
41883 * include/grub/i386/pc/linux.h: Moved to ...
41884 * include/grub/i386/linux.h: ... here.
41886 * include/grub/i386/linux.h (struct linux_kernel_params): New
41889 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
41891 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
41893 (grub_video_vbe_blit_glyph): Likewise.
41894 (grub_video_vbe_blit_bitmap): Likewise.
41895 (grub_video_vbe_blit_render_target): Likewise.
41897 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
41899 * configure.ac (--with-platform): Properly quote the square
41902 2006-05-08 Marco Gerards <marco@gnu.org>
41904 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
41906 (kernel_elf_HEADERS): ...to this. Updated all users.
41907 (grubof_symlist.c): Renamed from this...
41908 (kernel_elf_symlist.c): ...to this. Updated all users.
41909 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41910 (grubof_SOURCES): Renamed from this...
41911 (kernel_elf_SOURCES): ...to this.
41912 (grubof_HEADERS): Renamed from this...
41913 (kernel_elf_HEADERS): ...to this.
41914 (grubof_CFLAGS): Renamed from this...
41915 (kernel_elf_CFLAGS): ...to this.
41916 (grubof_ASFLAGS): Renamed from this...
41917 (kernel_elf_ASFLAGS): ...to this.
41918 (grubof_LDFLAGS): Renamed from this...
41919 (kernel_elf_LDFLAGS): ...to this.
41921 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
41923 (kernel_elf_HEADERS): ...to this. Updated all users.
41924 (grubof_symlist.c): Renamed from this...
41925 (kernel_elf_symlist.c): ...to this. Updated all users.
41926 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41927 (grubof_SOURCES): Renamed from this...
41928 (kernel_elf_SOURCES): ...to this.
41929 (grubof_HEADERS): Renamed from this...
41930 (kernel_elf_HEADERS): ...to this.
41931 (grubof_CFLAGS): Renamed from this...
41932 (kernel_elf_CFLAGS): ...to this.
41933 (grubof_ASFLAGS): Renamed from this...
41934 (kernel_elf_ASFLAGS): ...to this.
41935 (grubof_LDFLAGS): Renamed from this...
41936 (kernel_elf_LDFLAGS): ...to this.
41938 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
41939 `kernel.elf' instead of `grubof'.
41941 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
41943 Add --with-platform to configure. Use pkglibdir instead of
41944 pkgdatadir. This is reported by Roger Leigh.
41946 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
41947 (host_vendor): Likewise.
41948 (host_os): Likewise.
41949 (pkgdatadir): Likewise.
41950 (platform): New variable.
41951 (pkglibdir): Likewise.
41952 Use PKGLIBDIR instead of PKGDATADIR.
41954 * util/i386/pc/grub-install.in (datadir): Removed.
41955 (host_vendor): Likewise.
41956 (host_os): Likewise.
41957 (pkgdatadir): Likewise.
41958 (platform): New variable.
41959 (pkglibdir): Likewise.
41960 Use PKGLIBDIR instead of PKGDATADIR.
41962 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
41963 instead of GRUB_DATADIR.
41965 * util/i386/pc/grub-mkimage.c (usage): Likewise.
41967 * util/i386/efi/grub-mkimage.c (usage): Likewise.
41970 * configure.ac (--with-platform): New option.
41971 Use PLATFORM instead of HOST_VENDOR to specify a platform.
41973 * Makefile.in: Include a makefile based on PLATFORM instead of
41975 (pkgdatadir): Not appended by the machine type.
41976 (pkglibdir): Appended by the machine type.
41977 (host_vendor): Removed.
41978 (platform): New variable.
41979 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
41980 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
41981 (uninstall): Likewise.
41983 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
41985 Use the environment context in the menu. Remove the commands
41986 "default" and "timeout", and use variables instead.
41988 * normal/menu.c: Include grub/env.h.
41989 (print_entry): Cast TITLE to silence gcc.
41990 (get_timeout): New function.
41991 (set_timeout): Likewise.
41992 (get_entry_number): Likewise.
41993 (run_menu): Use a default entry, a fallback entry and a timeout
41994 in the environment variables "default", "fallback" and
41995 "timeout". Also, tweak the default entry if it is not within the
41996 current menu entries.
41997 (grub_menu_run): Use a fallback entry in the environment variable
42000 * normal/main.c (read_config_file): Do not initialize
42001 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42003 (grub_normal_execute): Use a data slot to store the menu.
42005 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42006 fallback_entry and timeout.
42007 (struct grub_menu_list): Removed.
42008 (grub_menu_list_t): Likewise.
42009 (struct grub_context): Likewise.
42010 (grub_context_t): Likewise.
42011 (grub_context_get): Likewise.
42012 (grub_context_get_current_menu): Likewise.
42013 (grub_context_push_menu): Likewise.
42014 (grub_context_pop_menu): Likewise.
42015 (grub_default_init): Likewise.
42016 (grub_default_fini): Likewise.
42017 (grub_timeout_init): Likewise.
42018 (grub_timeout_fini): Likewise.
42020 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42022 (normal_mod_SOURCES): Removed normal/context.c.
42024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42025 commands/default.c, commands/timeout.c and normal/context.c.
42026 (normal_mod_SOURCES): Removed normal/context.c.
42028 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42029 commands/timeout.c and normal/context.c.
42030 (normal_mod_SOURCES): Removed normal/context.c.
42032 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42033 commands/default.c, commands/timeout.c and normal/context.c.
42034 (normal_mod_SOURCES): Removed normal/context.c.
42036 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42038 (default_mod_SOURCES): Removed.
42039 (default_mod_CFLAGS): Likewise.
42040 (default_mod_LDFLAGS): Likewise.
42041 (timeout_mod_SOURCES): Removed.
42042 (timeout_mod_CFLAGS): Likewise.
42043 (timeout_mod_LDFLAGS): Likewise.
42045 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42048 * commands/default.c: Removed.
42049 * commands/timeout.c: Likewise.
42050 * normal/context.c: Likewise.
42052 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42054 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42056 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42058 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42059 "next" to "prev" for readability.
42060 (struct grub_env_sorted_var): New struct.
42061 (grub_env_context): Renamed to ...
42062 (initial_context): ... this.
42063 (grub_env_var_context): Renamed to ...
42064 (current_context): ... this.
42065 (grub_env_find): Look only at CURRENT_CONTEXT.
42066 (grub_env_context_open): Rewritten to copy exported variables from
42068 (grub_env_context_close): Rewritten according to the new
42069 scheme. Also, add an assertion to prevent the initial context from
42071 (grub_env_insert): Removed the code for the sorted list.
42072 (grub_env_remove): Likewise.
42073 (grub_env_export): Simply mark the variable with
42074 GRUB_ENV_VAR_GLOBAL.
42075 (grub_env_set): A cosmetic change for naming consistency.
42076 (grub_env_get): Likewise.
42077 (grub_env_unset): Likewise.
42078 (grub_env_iterate): Rewritten to sort variables within this
42080 (grub_register_variable_hook): Fixed for naming consistency. Call
42081 grub_env_find again, only if NAME is not found at the first time.
42082 (mangle_data_slot_name): New function.
42083 (grub_env_set_data_slot): Likewise.
42084 (grub_env_get_data_slot): Likewise.
42085 (grub_env_unset_data_slot): Likewise.
42087 * include/grub/env.h (grub_env_var_type): New enum.
42088 (GRUB_ENV_VAR_LOCAL): New constant.
42089 (GRUB_ENV_VAR_GLOBAL): Likewise.
42090 (GRUB_ENV_VAR_DATA): Likewise.
42091 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42093 (grub_env_set): Replace VAR with NAME for consistency.
42094 (grub_register_variable_hook): Likewise.
42095 (grub_env_export): Specify the name of the argument.
42096 (grub_env_set_data_slot): New prototype.
42097 (grub_env_get_data_slot): Likewise.
42098 (grub_env_unset_data_slot): Likewise.
42100 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42102 Extend the loader so that GRUB can accept a loader which comes
42103 back to GRUB when a loaded image exits. Also, this change adds
42104 support for a chainloader on EFI.
42106 * term/efi/console.c: Include grub/misc.h.
42107 (grub_console_checkkey): Display a scan code on the top for
42108 debugging. This will be removed once the EFI port gets stable.
42109 Correct the scan code mapping.
42111 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42112 allocate memory from larger regions, in order to reduce the number
42113 of allocated regions. Otherwise, the MacOSX loader panics.
42114 (filter_memory_map): Avoid less than 1MB for compatibility with
42116 (add_memory_regions): Allocate from the tail of a region, if
42117 possible, to avoid allocating a region near to 1MB, for the MacOSX
42120 * kern/efi/init.c (grub_efi_set_prefix): Specify
42121 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42123 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42124 argument IMAGE_HANDLE and specify it to get a loaded image.
42125 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42126 grub_efi_get_loaded_image.
42127 (grub_efi_get_filename): Divide the length by the size of
42129 (grub_efi_get_device_path): New function.
42130 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42131 the length by the size of grub_efi_char16_t for a file path device
42134 * kern/loader.c (grub_loader_noreturn): New variable.
42135 (grub_loader_set): Accept a new argument NORETURN. Set
42136 GRUB_LOADER_NORETURN to NORETURN.
42137 All callers changed.
42138 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42141 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42143 (grub_efi_get_loaded_image): Take an argument to specify an image
42146 * include/grub/loader.h (grub_loader_set): Added one more argument
42149 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42150 instead of grub_efi_open_protocol.
42151 (grub_efidisk_get_device_name): Likewise.
42152 (grub_efidisk_close): Print a newline.
42153 (grub_efidisk_get_device_handle): Fixed to use
42154 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42155 GRUB_EFI_DEVICE_PATH_TYPE.
42157 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42158 * kern/efi/efi.c (device_path_guid): ... here.
42160 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42162 (kernel_mod_HEADERS): Added efi/disk.h.
42163 (_chain_mod_SOURCES): New variable.
42164 (_chain_mod_CFLAGS): Likewise.
42165 (_chain_mod_LDFLAGS): Likewise.
42166 (chain_mod_SOURCES): Likewise.
42167 (chain_mod_CFLAGS): Likewise.
42168 (chain_mod_LDFLAGS): Likewise.
42170 * DISTLIST: Added include/grub/efi/chainloader.h,
42171 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42173 * include/grub/efi/chainloader.h: New file.
42174 * loader/efi/chainloader.c: Likewise.
42175 * loader/efi/chainloader_normal.c: Likewise.
42177 2006-04-30 Marco Gerards <marco@gnu.org>
42179 * commands/configfile.c (grub_cmd_source): New function.
42180 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42181 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42183 2006-04-30 Marco Gerards <marco@gnu.org>
42185 * normal/execute.c (grub_script_execute_cmd): Change the return
42186 type to `grub_err_t'. Correctly return the error.
42187 (grub_script_execute_cmdline): In case a command line is not a
42188 command or a function, try to interpret it as an assignment.
42190 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42192 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42193 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42194 skip a node whose name is obviously invalid as UTF-16,
42195 i.e. contains a NUL character. Stop the iteration when the last
42196 directory entry is found. Instead of using the return value of
42197 grub_hfsplus_btree_iterate_node, store the value in RET and use
42198 it, because the iterator can be stopped by the last directory
42201 2006-04-30 Marco Gerards <marco@gnu.org>
42203 * include/grub/env.h (grub_env_export): New prototype. Reported
42204 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42206 2006-04-30 Marco Gerards <marco@gnu.org>
42208 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42209 size of the extents in a catalog file record.
42211 2006-04-29 Marco Gerards <marco@gnu.org>
42213 * commands/configfile.c (grub_cmd_configfile): Execute the
42214 configfile within its own context.
42216 * include/grub/env.h (grub_env_context_open): New prototype.
42217 (grub_env_context_close): Likewise.
42219 * kern/env.c (grub_env): Removed.
42220 (grub_env_sorted): Likewise.
42221 (grub_env_context): New variable.
42222 (grub_env_var_context): Likewise.
42223 (grub_env_find): Search both the active context and the global
42225 (grub_env_context_open): New function.
42226 (grub_env_context_close): Likewise.
42227 (grub_env_insert): Likewise.
42228 (grub_env_remove): Likewise.
42229 (grub_env_export): Likewise.
42230 (grub_env_set): Changed to use helper functions to avoid code
42232 (grub_env_iterate): Rewritten so both the current context and the
42233 global context are being used.
42235 * normal/command.c (export_command): New function.
42236 (grub_command_init): Register the `export' function.
42238 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42240 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42241 explicitly to suppress gcc's warnings.
42242 * fs/fat.c (grub_fat_find_dir): Likewise.
42243 (grub_fat_label): Likewise.
42244 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42245 (grub_xfs_mount): Likewise.
42246 (grub_xfs_label): Likewise.
42247 * fs/affs.c (grub_affs_mount): Likewise.
42248 (grub_affs_label): Likewise.
42249 (grub_affs_iterate_dir): Likewise.
42250 * fs/sfs.c (grub_sfs_mount): Likewise.
42251 (grub_sfs_iterate_dir): Likewise.
42252 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42253 * fs/hfs.c (grub_hfs_mount): Likewise.
42254 (grub_hfs_cmp_catkeys): Likewise.
42255 (grub_hfs_find_dir): Likewise.
42256 (grub_hfs_dir): Likewise.
42257 (grub_hfs_label): Likewise.
42258 * fs/jfs.c (grub_jfs_mount): Likewise.
42259 (grub_jfs_opendir): Likewise.
42260 (grub_jfs_getent): Likewise.
42261 (grub_jfs_lookup_symlink): Likewise.
42262 (grub_jfs_label): Likewise.
42263 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42264 (grub_hfsplus_iterate_dir): Likewise.
42265 (grub_hfsplus_btree_iterate_node): Made static.
42267 * util/grub-emu.c (prefix): New variable.
42268 (grub_machine_set_prefix): New function.
42269 (main): Do not set the environment variable "prefix" here. Only
42270 set PREFIX, which is used later by grub_machine_set_prefix.
42272 * include/grub/video.h: Do not include grub/symbol.h.
42273 (grub_video_register): Not exported. This symbol is not defined in
42275 (grub_video_unregister): Likewise.
42276 (grub_video_iterate): Likewise.
42277 (grub_video_setup): Likewise.
42278 (grub_video_restore): Likewise.
42279 (grub_video_get_info): Likewise.
42280 (grub_video_get_blit_format): Likewise.
42281 (grub_video_set_palette): Likewise.
42282 (grub_video_get_palette): Likewise.
42283 (grub_video_set_viewport): Likewise.
42284 (grub_video_get_viewport): Likewise.
42285 (grub_video_map_color): Likewise.
42286 (grub_video_map_rgb): Likewise.
42287 (grub_video_map_rgba): Likewise.
42288 (grub_video_fill_rect): Likewise.
42289 (grub_video_blit_glyph): Likewise.
42290 (grub_video_blit_bitmap): Likewise.
42291 (grub_video_blit_render_target): Likewise.
42292 (grub_video_scroll): Likewise.
42293 (grub_video_swap_buffers): Likewise.
42294 (grub_video_create_render_target): Likewise.
42295 (grub_video_delete_render_target): Likewise.
42296 (grub_video_set_active_render_target): Likewise.
42298 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42300 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42302 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42303 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42304 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42305 instead of $(srcdir)/genkernsyms.sh.
42307 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42308 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42309 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42310 instead of $(srcdir)/genkernsyms.sh.
42312 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42313 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42314 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42315 instead of $(srcdir)/genkernsyms.sh.
42317 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42318 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42319 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42320 instead of $(srcdir)/genkernsyms.sh.
42322 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42325 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42327 (gensymlist.sh): New target.
42328 (genkernsyms.sh): Likewise.
42330 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42331 genkernsyms.sh.in and gensymlist.sh.in.
42333 * genkernsyms.sh: Removed.
42334 * gensymlist.sh: Likewise.
42336 * genkernsyms.sh.in: New file.
42337 * gensymlist.sh.in: Likewise.
42339 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42341 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42342 clobber "prefix", since we may have already set it manually.
42344 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42346 * kern/misc.c (abort): New alias for grub_abort.
42348 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42350 A new machine-specific function "grub_machine_set_prefix" is
42351 defined. This is called after loading modules, so that a prefix
42352 initialization can use modules. Also, this change adds an
42353 intensive debugging feature for the memory manager via the
42354 configure option "--enable-mm-debug".
42356 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42359 * kern/sparc64/ieee1275/init.c (abort): Removed.
42360 (grub_stop): Likewise.
42361 (grub_exit): New function.
42362 (grub_set_prefix): Renamed to ...
42363 (grub_machine_set_prefix): ... this.
42364 (grub_machine_init): Do not call grub_set_prefix.
42366 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42367 (grub_machine_set_prefix): ... this.
42368 (grub_machine_init): Do not call grub_set_prefix.
42370 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42371 (grub_machine_init): Do not set the prefix here.
42373 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42375 * kern/efi/init.c: Include grub/mm.h.
42376 (grub_efi_set_prefix): New function.
42378 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42379 (grub_efi_get_filename): New function.
42380 (grub_print_device_path): Renamed to ...
42381 (grub_efi_print_device_path): ... this.
42383 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42384 [MM_DEBUG] (grub_realloc): Likewise.
42385 [MM_DEBUG] (grub_free): Likewise.
42386 [MM_DEBUG] (grub_memalign): Likewise.
42387 [MM_DEBUG] (grub_mm_debug): New variable.
42388 [MM_DEBUG] (grub_debug_malloc): New function.
42389 [MM_DEBUG] (grub_debug_free): New function.
42390 [MM_DEBUG] (grub_debug_realloc): New function.
42391 [MM_DEBUG] (grub_debug_memalign): New function.
42393 * kern/misc.c (grub_abort): Print a newline to distinguish
42396 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42397 grub_set_root_dev after loading modules. This is necessary when
42398 setting a prefix depends on modules.
42400 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42401 (grub_efi_print_device_path): ... this.
42402 (grub_efi_get_filename): New prototype.
42403 (grub_efi_set_prefix): Likewise.
42405 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42407 (grub_efidisk_get_device_handle): New prototype.
42408 (grub_efidisk_get_device_name): Likewise.
42410 * include/grub/mm.h: Include config.h.
42411 (MM_DEBUG): Removed.
42412 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42413 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42414 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42415 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42416 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42417 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42418 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42419 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42420 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42422 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42424 * disk/efi/efidisk.c: Include grub/partition.h.
42425 (iterate_child_devices): New function.
42426 (add_device): First, compare only last device path nodes, so that
42427 devices are sorted by the types.
42428 (grub_efidisk_get_device_handle): New function.
42429 (grub_efidisk_get_device_name): Likewise.
42431 * configure.ac (--enable-mm-debug): New option to enable the
42432 memory manager debugging feature. This makes the binary much
42433 bigger, so is disabled by default.
42435 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42437 Use grub_abort instead of grub_stop, and grub_exit must be
42438 define in each architecture now. Also, this change adds support
42441 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42442 (grub_getkey): New function.
42443 (grub_term_get_current): Likewise.
42445 * util/i386/pc/grub-setup.c: Include grub/term.h.
42446 (grub_getkey): New function.
42447 (grub_term_get_current): Likewise.
42449 * util/misc.c (grub_stop): Renamed to ...
42450 (grub_exit): ... this.
42452 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42453 (grub_exit): ... this.
42454 (grub_machine_init): Use grub_abort instead of abort.
42455 (grub_stop): Removed.
42457 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42460 * kern/i386/pc/startup.S (grub_exit): New function.
42461 (cold_reboot): New label.
42463 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42464 (grub_efi_init): Call grub_efidisk_init.
42465 (grub_efi_fini): Call grub_efidisk_fini.
42467 * kern/efi/efi.c: Include grub/mm.h.
42468 (grub_efi_console_control_guid): Renamed to ...
42469 (console_control_guid): ... this.
42470 (grub_efi_loaded_image_guid): Renamed to ...
42471 (loaded_image_guid): ... this.
42472 (grub_efi_locate_handle): New function.
42473 (grub_efi_open_protocol): Likewise.
42474 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42475 GRUB_EFI_CONSOLE_CONTROL_GUID.
42476 (grub_efi_exit): Removed.
42477 (grub_stop): Likewise.
42478 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42479 (grub_exit): New function.
42480 (grub_print_device_path): Likewise.
42482 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42483 (grub_enter_rescue_mode): Register "exit".
42485 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42486 (grub_abort): New function.
42488 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42490 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42492 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42494 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42495 (grub_print_device_path): New prototype.
42496 (grub_efi_locate_handle): Likewise.
42497 (grub_efi_open_protocol): Likewise.
42499 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42500 * disk/efi/efidisk.c: Likewise.
42502 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42504 * include/grub/efi/console_control.h
42505 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42507 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42508 last 8 bytes as an array.
42509 (GRUB_EFI_DISK_IO_GUID): New macro.
42510 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42511 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42512 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42514 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42515 (struct grub_efi_device_path): Rename the member "sub_type" to
42517 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42518 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42519 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42520 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42521 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42522 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42523 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42524 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42525 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42526 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42527 (struct grub_efi_pci_device_path): New structure.
42528 (grub_efi_pci_device_path_t): New type.
42529 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42530 (struct grub_efi_pccard_device_path): New structure.
42531 (grub_efi_pccard_device_path_t): New type.
42532 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42533 (struct grub_efi_memory_mapped_device_path): New structure.
42534 (grub_efi_memory_mapped_device_path_t): New type.
42535 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42536 (struct grub_efi_vendor_device_path): New structure.
42537 (grub_efi_vendor_device_path_t): New type.
42538 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42539 (struct grub_efi_controller_device_path): New structure.
42540 (grub_efi_controller_device_path_t): New type.
42541 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42542 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42543 (struct grub_efi_acpi_device_path): New structure.
42544 (grub_efi_acpi_device_path_t): New type.
42545 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42546 (struct grub_efi_expanded_acpi_device_path): New structure.
42547 (grub_efi_expanded_acpi_device_path_t): New type.
42548 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42549 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42550 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42551 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42552 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42553 (struct grub_efi_atapi_device_path): New structure.
42554 (grub_efi_atapi_device_path_t): New type.
42555 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42556 (struct grub_efi_fibre_channel_device_path): New structure.
42557 (grub_efi_fibre_channel_device_path_t): New type.
42558 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42559 (struct grub_efi_1394_device_path): New structure.
42560 (grub_efi_1394_device_path_t): New type.
42561 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42562 (struct grub_efi_usb_device_path): New structure.
42563 (grub_efi_usb_device_path_t): New type.
42564 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42565 (struct grub_efi_usb_class_device_path): New structure.
42566 (grub_efi_usb_class_device_path_t): New type.
42567 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42568 (struct grub_efi_i2o_device_path): New structure.
42569 (grub_efi_i2o_device_path_t): New type.
42570 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42571 (struct grub_efi_mac_address_device_path): New structure.
42572 (grub_efi_mac_address_device_path_t): New type.
42573 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42574 (struct grub_efi_ipv4_device_path): New structure.
42575 (grub_efi_ipv4_device_path_t): New type.
42576 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42577 (struct grub_efi_ipv6_device_path): New structure.
42578 (grub_efi_ipv6_device_path_t): New type.
42579 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42580 (struct grub_efi_infiniband_device_path): New structure.
42581 (grub_efi_infiniband_device_path_t): New type.
42582 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42583 (struct grub_efi_uart_device_path): New structure.
42584 (grub_efi_uart_device_path_t): New type.
42585 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42586 (struct grub_efi_vendor_messaging_device_path): New structure.
42587 (grub_efi_vendor_messaging_device_path_t): New type.
42588 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42589 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42590 (struct grub_efi_hard_drive_device_path): New structure.
42591 (grub_efi_hard_drive_device_path_t): New type.
42592 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42593 (struct grub_efi_cdrom_device_path): New structure.
42594 (grub_efi_cdrom_device_path_t): New type.
42595 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42596 (struct grub_efi_vendor_media_device_path): New structure.
42597 (grub_efi_vendor_media_device_path_t): New type.
42598 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42599 (struct grub_efi_file_path_device_path): New structure.
42600 (grub_efi_file_path_device_path_t): New type.
42601 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42602 (struct grub_efi_protocol_device_path): New structure.
42603 (grub_efi_protocol_device_path_t): New type.
42604 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42605 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42606 (struct grub_efi_bios_device_path): New structure.
42607 (grub_efi_bios_device_path_t): New type.
42608 (struct grub_efi_disk_io): New structure.
42609 (grub_efi_disk_io_t): New type.
42610 (struct grub_efi_block_io_media): New structure.
42611 (grub_efi_block_io_media_t): New type.
42612 (struct grub_efi_block_io): New structure.
42613 (grub_efi_block_io_t): New type.
42615 * include/grub/misc.h (grub_stop): Removed.
42616 (grub_exit): New prototype.
42617 (grub_abort): Likewise.
42619 * include/grub/disk.h (enum grub_disk_dev_id): Added
42620 GRUB_DISK_DEVICE_EFIDISK_ID.
42622 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42623 disk/efi/efidisk.c.
42624 (kernel_syms.lst): Remove the target if an error occurs.
42626 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42628 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42629 as it was simply too buggy.
42631 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42633 * kern/misc.c (grub_lltoa): New function.
42634 (grub_vsprintf): Added support for the long long suffix,
42637 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42639 * Makefile.in (LDFLAGS): Add variable.
42640 (LD): Remove variable.
42641 * configure.ac: Add -m32 to LDFLAGS.
42642 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
42643 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
42644 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
42645 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
42646 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
42648 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
42649 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
42650 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
42652 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
42654 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
42655 length for unknown glyph.
42657 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42659 Add support for pre-loaded modules into the EFI port.
42661 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
42662 completely. Accept one more argument DIR. The caller has changed.
42664 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
42666 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
42667 (grub_efi_loaded_image_guid): New variable.
42668 (grub_efi_get_loaded_image): New function.
42669 (grub_arch_modules_addr): Likewise.
42671 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
42674 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
42675 (struct grub_efi_loaded_image): New structure.
42676 (grub_efi_loaded_image_t): New type.
42678 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42680 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
42681 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
42682 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
42684 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
42686 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
42688 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
42690 * DISTLIST: Added include/grub/efi/console.h,
42691 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
42692 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42694 * include/grub/efi/console.h: New file.
42695 * include/grub/efi/time.h: Likewise.
42696 * include/grub/i386/efi/kernel.h: Likewise.
42697 * kern/efi/init.c: Likewise.
42698 * kern/efi/mm.c: Likewise.
42699 * term/efi/console.c: Likewise.
42701 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
42702 (grub_stop): Removed.
42703 (grub_get_rtc): Likewise.
42704 (grub_machine_init): Simply call grub_efi_init.
42705 (grub_machine_fini): Call grub_efi_fini.
42707 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
42708 (grub_efi_output_string): Removed.
42709 (grub_efi_stall): New function.
42710 (grub_stop): Likewise.
42711 (grub_get_rtc): Likewise.
42713 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
42714 (grub_efi_stall): New prototype.
42715 (grub_efi_allocate_pages): Likewise.
42716 (grub_efi_free_pages): Likewise.
42717 (grub_efi_get_memory_map): Likewise.
42718 (grub_efi_mm_init): Likewise.
42719 (grub_efi_mm_fini): Likewise.
42720 (grub_efi_init): Likewise.
42721 (grub_efi_fini): Likewise.
42723 * include/grub/i386/efi/time.h: Do not include
42724 grub/symbol.h. Include grub/efi/time.h.
42725 (GRUB_TICKS_PER_SECOND): Removed.
42726 (grub_get_rtc): Likewise.
42728 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
42729 Added padding. The EFI spec is buggy.
42730 (GRUB_EFI_BLACK): New macro.
42731 (GRUB_EFI_BLUE): Likewise.
42732 (GRUB_EFI_GREEN): Likewise.
42733 (GRUB_EFI_CYAN): Likewise.
42734 (GRUB_EFI_RED): Likewise.
42735 (GRUB_EFI_MAGENTA): Likewise.
42736 (GRUB_EFI_BROWN): Likewise.
42737 (GRUB_EFI_LIGHTGRAY): Likewise.
42738 (GRUB_EFI_BRIGHT): Likewise.
42739 (GRUB_EFI_DARKGRAY): Likewise.
42740 (GRUB_EFI_LIGHTBLUE): Likewise.
42741 (GRUB_EFI_LIGHTGREEN): Likewise.
42742 (GRUB_EFI_LIGHTCYAN): Likewise.
42743 (GRUB_EFI_LIGHTRED): Likewise.
42744 (GRUB_EFI_LIGHTMAGENTA): Likewise.
42745 (GRUB_EFI_YELLOW): Likewise.
42746 (GRUB_EFI_WHITE): Likewise.
42747 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
42748 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
42749 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
42750 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
42751 (GRUB_EFI_BACKGROUND_RED): Likewise.
42752 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
42753 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
42754 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
42755 (GRUB_EFI_TEXT_ATTR): Likewise.
42757 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
42758 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42759 (kernel_mod_HEADERS): Added efi/time.h.
42761 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
42763 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
42764 include/grub/efi/api.h, include/grub/efi/console_control.h,
42765 include/grub/efi/efi.h, include/grub/efi/pe32.h,
42766 include/grub/i386/efi/time.h, kern/efi/efi.c,
42767 kern/i386/efi/init.c, kern/i386/efi/startup.S,
42768 and util/i386/efi/grub-mkimage.c.
42770 * Makefile.in (RMKFILES): Added i386-efi.rmk.
42772 * genmk.rb (PModule#rule): Do not export symbols if
42773 #{prefix}_EXPORTS is set to "no".
42775 * conf/i386-efi.mk: New file.
42776 * conf/i386-efi.rmk: Likewise.
42777 * include/grub/efi/api.h: Likewise.
42778 * include/grub/efi/console_control.h: Likewise.
42779 * include/grub/efi/efi.h: Likewise.
42780 * include/grub/efi/pe32.h: Likewise.
42781 * include/grub/i386/efi/time.h: Likewise.
42782 * kern/efi/efi.c: Likewise.
42783 * kern/i386/efi/init.c: Likewise.
42784 * kern/i386/efi/startup.S: Likewise.
42785 * util/i386/efi/grub-mkimage.c: Likewise.
42787 2006-04-17 Marco Gerards <marco@gnu.org>
42789 * include/grub/script.h: Include <grub/parser.h> and
42790 "grub_script.tab.h".
42791 (struct grub_lexer_param): New struct.
42792 (struct grub_parser_param): Likewise.
42793 (grub_script_create_arglist): Pass the state in an argument.
42794 (grub_script_add_arglist): Likewise.
42795 (grub_script_create_cmdline): Likewise.
42796 (grub_script_create_cmdblock): Likewise.
42797 (grub_script_create_cmdif): Likewise.
42798 (grub_script_create_cmdmenu): Likewise.
42799 (grub_script_add_cmd): Likewise.
42800 (grub_script_arg_add): Likewise.
42801 (grub_script_lexer_ref): Likewise.
42802 (grub_script_lexer_deref): Likewise.
42803 (grub_script_lexer_record_start): Likewise.
42804 (grub_script_lexer_record_stop): Likewise.
42805 (grub_script_mem_record): Likewise.
42806 (grub_script_mem_record_stop): Likewise.
42807 (grub_script_malloc): Likewise.
42808 (grub_script_yylex): Likewise.
42809 (grub_script_yyparse): Likewise.
42810 (grub_script_yyerror): Likewise.
42811 (grub_script_yylex): Likewise.
42812 (grub_script_lexer_init): Return the state.
42814 * normal/lexer.c (grub_script_lexer_state): Removed variable.
42815 (grub_script_lexer_done): Likewise.
42816 (grub_script_lexer_getline): Likewise.
42817 (grub_script_lexer_refs): Likewise.
42818 (script): Likewise.
42819 (newscript): Likewise.
42820 (record): Likewise.
42821 (recording): Likewise.
42822 (recordpos): Likewise.
42823 (recordlen): Likewise.
42824 (grub_script_lexer_init): Return the state instead of setting
42826 (grub_script_lexer_ref): Use the newly added argument for state
42827 instead of globals.
42828 (grub_script_lexer_deref): Likewise.
42829 (grub_script_lexer_record_start): Likewise.
42830 (grub_script_lexer_record_stop): Likewise.
42831 (recordchar): Likewise.
42832 (nextchar): Likewise.
42833 (grub_script_yylex2): Likewise.
42834 (grub_script_yylex): Likewise.
42835 (grub_script_yyerror): Likewise.
42837 * normal/parser.y (func_mem): Removed variable.
42838 (menu_entry): Likewise.
42840 (%lex-param): New parser option.
42841 (%parse-param): Likewise.
42842 (script): Always return the AST.
42843 (argument): Pass the state around.
42844 (arguments): Likewise.
42845 (grubcmd): Likewise.
42846 (commands): Likewise.
42847 (function): Likewise.
42848 (menuentry): Likewise.
42849 (if_statement): Likewise.
42852 * normal/script.c (grub_script_memused): Removed variable.
42853 (grub_script_parsed): Likewise.
42854 (grub_script_malloc): Added a state argument. Use that instead of
42856 (grub_script_mem_record): Likewise.
42857 (grub_script_mem_record_stop): Likewise.
42858 (grub_script_arg_add): Likewise.
42859 (grub_script_add_arglist): Likewise.
42860 (grub_script_create_cmdline): Likewise.
42861 (grub_script_create_cmdif): Likewise.
42862 (grub_script_create_cmdmenu): Likewise.
42863 (grub_script_add_cmd): Likewise.
42864 (grub_script_parse): Setup the state before calling the parser.
42866 2006-04-16 Marco Gerards <marco@gnu.org>
42868 * normal/command.c (grub_command_init): Remove the title command.
42870 * normal/lexer.c (grub_script_yylex): Renamed from this...
42871 (grub_script_yylex2): ... to this.
42872 (grub_script_yylex): New function. Temporary
42873 introduced to filter some tokens.
42874 (grub_script_yyerror): Print a newline.
42876 * normal/main.c (read_config_file): Output information about the
42877 lines that contain errors. Wait for a key after all lines have
42878 been processed. Don't return an empty menu.
42880 * normal/parser.y (func_mem): Don't initialize.
42881 (menu_entry): Likewise.
42882 (err): New variable.
42883 (script): Don't return anything when an error was encountered.
42884 (ws, returns): Removed rules.
42885 (argument): Disabled concatenated variable support.
42886 (arguments): Remove explicit separators.
42887 (grubcmd): Likewise.
42888 (function): Likewise.
42889 (menuentry): Likewise.
42891 (commands): Likewise. Add error handling.
42893 * normal/script.c (grub_script_create_cmdline): If
42894 `grub_script_parsed' is 0, assume the parser encountered an error.
42896 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
42898 * configure.ac: Add support for EFI. Fix the typo
42899 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
42901 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42903 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
42904 foreign multibyte characters should be shown correctly.
42906 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42908 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
42910 (read_config_file): Made it to close file before returning.
42912 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
42914 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
42915 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
42916 video/i386/pc/vbefill.c.
42918 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
42919 video/i386/pc/vbefill.c.
42921 * include/grub/video.h (grub_video_blit_format): New enum.
42922 (grub_video_mode_info): Added new member blit_format.
42923 (grub_video_get_blit_format): New function prototype.
42925 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
42926 function prototype.
42927 (grub_video_vbe_map_rgb): Likewise.
42928 (grub_video_vbe_unmap_color): Likewise.
42930 * include/grub/i386/pc/vbeblit.h: New file.
42932 * include/grub/i386/pc/vbefill.h: New file.
42934 * video/video.c (grub_video_get_blit_format): New function.
42935 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
42936 (grub_video_vbe_map_rgb): Likewise.
42937 (grub_video_vbe_unmap_color): Likewise.
42939 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
42941 (grub_video_vbe_blit_render_target): Changed to use more optimized
42943 (grub_video_vbe_setup): Added detection for optimized settings.
42944 (grub_video_vbe_create_render_target): Likewise.
42946 * video/i386/pc/vbeblit.c: New file.
42948 * video/i386/pc/vbefill.c: New file.
42950 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
42952 * font/manager.c (grub_font_get_glyph): Removed font fixup from
42955 * util/unifont2pff.rb: ... and moved it to here. Improved argument
42956 parsing to support both hex and dec ranges. If filename was missing
42957 show usage information.
42959 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
42961 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
42962 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
42964 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
42965 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
42966 (video_mod_SOURCES): Added.
42967 (video_mod_CFLAGS): Likewise.
42968 (video_mod_LDFLAGS): Likewise.
42969 (gfxterm_mod_SOURCES): Likewise.
42970 (gfxterm_mod_CFLAGS): Likewise.
42971 (gfxterm_mod_LDFLAGS): Likewise.
42972 (videotest_mod_SOURCES): Likewise.
42973 (videotest_mod_CFLAGS): Likewise.
42974 (videotest_mod_LDFLAGS): Likewise.
42975 (vesafb_mod_SOURCES): Removed.
42976 (vesafb_mod_CFLAGS): Likewise.
42977 (vesafb_mod_LDFLAGS): Likewise.
42978 (vga_mod_SOURCES): Likewise.
42979 (vga_mod_CFLAGS): Likewise.
42980 (vga_mod_LDFLAGS): Likewise.
42982 * commands/videotest.c: New file.
42984 * font/manager.c (fill_with_default_glyph): Modified to use
42986 (grub_font_get_glyph): Likewise.
42987 (fontmanager): Renamed from this...
42988 (font_manager): ... to this.
42990 * include/grub/font.h (grub_font_glyph): Added new structure.
42991 (grub_font_get_glyph): Modified to use grub_font_glyph.
42993 * include/grub/misc.h (grub_abs): Added as inline function.
42995 * include/grub/video.h: New file.
42997 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
42998 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
42999 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43000 (grub_vbe_get_controller_info): Renamed from this...
43001 (grub_vbe_bios_get_controller_info): ... to this.
43002 (grub_vbe_get_mode_info): Renamed from this...
43003 (grub_vbe_bios_get_mode_info): ... to this.
43004 (grub_vbe_set_mode): Renamed from this...
43005 (grub_vbe_bios_set_mode): ... to this.
43006 (grub_vbe_get_mode): Renamed from this...
43007 (grub_vbe_bios_get_mode): ... to this.
43008 (grub_vbe_set_memory_window): Renamed from this...
43009 (grub_vbe_bios_set_memory_window): ... to this.
43010 (grub_vbe_get_memory_window): Renamed from this...
43011 (grub_vbe_bios_get_memory_window): ... to this.
43012 (grub_vbe_set_scanline_length): Renamed from this...
43013 (grub_vbe_set_scanline_length): ... to this.
43014 (grub_vbe_get_scanline_length): Renamed from this...
43015 (grub_vbe_bios_get_scanline_length): ... to this.
43016 (grub_vbe_set_display_start): Renamed from this...
43017 (grub_vbe_bios_set_display_start): ... to this.
43018 (grub_vbe_get_display_start): Renamed from this...
43019 (grub_vbe_bios_get_display_start): ... to this.
43020 (grub_vbe_set_palette_data): Renamed from this...
43021 (grub_vbe_bios_set_palette_data): ... to this.
43022 (grub_vbe_set_pixel_rgb): Removed.
43023 (grub_vbe_set_pixel_index): Likewise.
43025 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43027 (grub_vbe_bios_get_controller_info): ... to this.
43028 (grub_vbe_get_mode_info): Renamed from this...
43029 (grub_vbe_bios_get_mode_info): ... to this.
43030 (grub_vbe_set_mode): Renamed from this...
43031 (grub_vbe_bios_set_mode): ... to this.
43032 (grub_vbe_get_mode): Renamed from this...
43033 (grub_vbe_bios_get_mode): ... to this.
43034 (grub_vbe_set_memory_window): Renamed from this...
43035 (grub_vbe_bios_set_memory_window): ... to this.
43036 (grub_vbe_get_memory_window): Renamed from this...
43037 (grub_vbe_bios_get_memory_window): ... to this.
43038 (grub_vbe_set_scanline_length): Renamed from this...
43039 (grub_vbe_set_scanline_length): ... to this.
43040 (grub_vbe_get_scanline_length): Renamed from this...
43041 (grub_vbe_bios_get_scanline_length): ... to this.
43042 (grub_vbe_set_display_start): Renamed from this...
43043 (grub_vbe_bios_set_display_start): ... to this.
43044 (grub_vbe_get_display_start): Renamed from this...
43045 (grub_vbe_bios_get_display_start): ... to this.
43046 (grub_vbe_set_palette_data): Renamed from this...
43047 (grub_vbe_bios_set_palette_data): ... to this.
43048 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43049 getting corrupted after calling it. Added more pushes and pops.
43050 (grub_vbe_bios_set_mode): Likewise.
43051 (grub_vbe_bios_get_mode): Likewise.
43052 (grub_vbe_bios_get_memory_window): Likewise.
43053 (grub_vbe_bios_set_scanline_length): Likewise.
43054 (grub_vbe_bios_get_scanline_length): Likewise.
43055 (grub_vbe_bios_get_display_start): Likewise.
43056 (grub_vbe_bios_set_palette_data): Likewise.
43058 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43059 (cl_insert): Likewise.
43060 (cl_delete): Likewise.
43062 * term/gfxterm.c: New file.
43064 * term/i386/pc/vesafb.c: Removed file.
43066 * video/video.c: New file.
43068 * video/i386/pc/vbe.c (real2pm): Added new function.
43069 (grub_video_vbe_draw_pixel): Likewise.
43070 (grub_video_vbe_get_video_ptr): Likewise.
43071 (grub_video_vbe_get_pixel): Likewise
43072 (grub_video_vbe_init): Likewise.
43073 (grub_video_vbe_fini): Likewise.
43074 (grub_video_vbe_setup): Likewise.
43075 (grub_video_vbe_get_info): Likewise.
43076 (grub_video_vbe_set_palette): Likewise.
43077 (grub_video_vbe_get_palette): Likewise.
43078 (grub_video_vbe_set_viewport): Likewise.
43079 (grub_video_vbe_get_viewport): Likewise.
43080 (grub_video_vbe_map_color): Likewise.
43081 (grub_video_vbe_map_rgb): Likewise.
43082 (grub_video_vbe_map_rgba): Likewise.
43083 (grub_video_vbe_unmap_color): Likewise.
43084 (grub_video_vbe_fill_rect): Likewise.
43085 (grub_video_vbe_blit_glyph): Likewise.
43086 (grub_video_vbe_blit_bitmap): Likewise.
43087 (grub_video_vbe_blit_render_target): Likewise.
43088 (grub_video_vbe_scroll): Likewise.
43089 (grub_video_vbe_swap_buffers): Likewise.
43090 (grub_video_vbe_create_render_target): Likewise.
43091 (grub_video_vbe_delete_render_target): Likewise.
43092 (grub_video_vbe_set_active_render_target): Likewise.
43093 (grub_vbe_set_pixel_rgb): Remove function.
43094 (grub_vbe_set_pixel_index): Likewise.
43095 (index_color_mode): Remove static variable.
43096 (active_mode): Likewise.
43097 (framebuffer): Likewise.
43098 (bytes_per_scan_line): Likewise.
43099 (grub_video_vbe_adapter): Added new static variable.
43100 (framebuffer): Likewise.
43101 (render_target): Likewise.
43102 (initial_mode): Likewise.
43103 (mode_in_use): Likewise.
43104 (mode_list): Likewise.
43106 2006-03-10 Marco Gerards <marco@gnu.org>
43108 * configure.ac (AC_INIT): Bumped to 1.93.
43110 * DISTLIST: Added `include/grub/hfs.h'.
43112 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43114 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43115 18H, which might help the BIOS falling back to next boot media.
43117 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43119 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43120 Poe Chen <poe.poechen@gmail.com>.
43122 2006-01-17 Marco Gerards <marco@gnu.org>
43124 * include/grub/normal.h: Include <grub/script.h>.
43125 (grub_command_list): Removed struct.
43126 (grub_command_list_t): Removed type.
43127 (grub_menu_entry): Remove members `num' and `command_list'. Add
43128 members `commands' and `sourcecode'.
43129 * include/grub/script.h: Add inclusion guards.
43130 (grub_script_cmd_menuentry): New struct.
43131 (grub_script_execute_menuentry): New prototype.
43132 (grub_script_lexer_record_start): Likewise.
43133 (grub_script_lexer_record_stop): Likewise.
43134 * normal/execute.c (grub_script_execute_menuentry): New function.
43135 * normal/lexer.c (record, recording, recordpos, recordlen): New
43137 (grub_script_lexer_record_start): New function.
43138 (grub_script_lexer_record_stop): Likewise.
43139 (recordchar): Likewise.
43140 (nextchar): Likewise.
43141 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43142 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43143 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43144 (current_menu): New variable.
43145 (free_menu): Mainly rewritten.
43146 (grub_normal_menu_addentry): New function.
43147 (read_config_file): Rewritten.
43148 * normal/menu.c (run_menu_entry): Mainly rewritten.
43149 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43151 (run): Mainly rewritten.
43152 * normal/parser.y (menu_entry): New variable.
43153 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43154 (menuentry): New rule.
43155 (command): Add `menuentry'.
43156 (if_statement): Allow additional returns before `fi'.
43157 * normal/script.c (grub_script_create_cmdmenu): New function.
43159 2006-01-03 Marco Gerards <marco@gnu.org>
43161 * INSTALL: GNU Bison is required.
43162 * configure.ac: Rewritten the test to detect Bison.
43163 * Makefile.in (YACC): New variable. Reported by Xun Sun
43164 <xun.sun.cn@gmail.com>.
43166 2006-01-03 Marco Gerards <marco@gnu.org>
43168 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43169 the HFS+ filesystem to filesystem blocks.
43170 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43171 GCC warning is silenced.
43173 2006-01-03 Marco Gerards <marco@gnu.org>
43175 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43176 read from disk from big endian to host byte order.
43178 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43180 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43182 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43183 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43184 embedded HFS+ filesystem.
43185 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43186 (grub_hfs_sblock): Move from here...
43187 * include/grub/hfs.h: To here... New file.
43188 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43190 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43192 (grub_hfsplus_volheader): Change type of member `magic' to
43194 (grub_hfsplus_data): Add new member `embedded_offset'.
43195 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43197 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43198 Calculate the offset.
43200 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43202 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43204 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43206 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43208 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43209 ENV->NAME is NULL after allocating ENV->VALUE.
43211 2005-12-25 Marco Gerards <marco@gnu.org>
43213 * kern/env.c (grub_env_set): Rewritten the error handling code.
43215 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43217 * geninit.sh: Made more robust, and more portable.
43219 2005-12-25 Marco Gerards <marco@gnu.org>
43221 Add support for Apple HFS+ filesystems.
43223 * fs/hfsplus.c: New file.
43225 * DISTLIST: Added `fs/hfsplus.c'.
43227 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43228 (hfsplus_mod_SOURCES): New variable.
43229 (hfsplus_mod_CFLAGS): Likewise.
43230 (hfsplus_mod_LDFLAGS): Likewise.
43231 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43232 (grub_setup_SOURCES): Likewise.
43233 (grub_mkdevicemap_SOURCES): Likewise.
43234 (grub_emu_SOURCES): Likewise.
43235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43237 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43239 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43241 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43243 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43244 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43245 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43246 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43247 normal/lexer.c, normal/parser.y, normal/script.c, and
43249 Removed kern/sparc64/cache.c.
43251 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43252 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43255 * configure.ac (AC_INIT): Bumped to 1.92.
43257 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43259 * kern/err.c (grub_error_push): Added new function to support error
43261 (grub_error_pop): Likewise.
43262 (grub_error_stack_items): New local variable to support error stacks.
43263 (grub_error_stack_pos): Likewise.
43264 (grub_error_stack_assert): Likewise.
43265 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43267 (grub_print_error): Added support to print errors from error stack.
43269 * include/grub/err.h (grub_error_push): Added function prototype.
43270 (grub_error_pop): Likewise.
43272 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43274 * configure.ac: Accept `powerpc64' as host_cpu.
43275 (amd64): Rename to `biarch32'.
43277 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43278 non-cacheline-aligned addresses.
43280 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43281 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43282 if `size' is non-zero.
43284 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43286 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43287 and `cd' to make sure the filename is not prefixed with a
43289 (pkgdata_MODULES): Add `gpt.mod'.
43290 (gpt_mod_SOURCES): New variable.
43291 (gpt_mod_CFLAGS): Likewise.
43292 (gpt_mod_LDFLAGS): Likewise.
43294 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43296 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43299 * partmap/gpt.c: New file.
43301 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43302 GPT partition map is detected.
43304 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43306 * commands/i386/pc/play.c: New file.
43307 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43308 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43311 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43313 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43314 ((unused))' to silence gcc warning.
43316 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43318 * configure.ac: Correct `AC_PROG_YACC' test.
43320 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43322 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43323 check before installing files.
43325 2005-11-22 Mike Small <smallm@panix.com>
43327 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43328 number regex so multidigit numbers are recognized correctly.
43330 2005-11-22 Mike Small <smallm@panix.com>
43332 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43333 debugging message before attempting to claim memory.
43334 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43335 multiple addresses in case of failure.
43337 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43339 * term/tparm.c (get_space): Remove empty `if' statement.
43341 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43343 * kern/parser.c (check_varstate): Rename `state' to 's'.
43345 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43347 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43348 variable definitions to the beginning of each function. Sort stack
43350 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43351 `buf' argument to `char *'.
43353 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43355 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43356 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43357 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43358 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43359 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43360 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43361 configfile.mod, search.mod, gzio.mod and test.mod.
43362 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43363 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43364 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43365 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43366 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43367 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43368 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43369 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43370 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43371 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43372 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43373 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43374 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43375 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43376 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43377 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43378 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43379 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43380 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43381 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43382 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43383 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43384 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43386 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43388 (pkgdata_MODULES): Add test.mod.
43390 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43392 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43393 appending to variables with "+=".
43394 (PModule): Use full pathname to generate *.lst filenames.
43396 * Makefile.in: Fixed list rules moved from genmk.rb.
43397 (.DELETE_ON_ERROR): New special target.
43398 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43400 * conf/i386-pc.rmk: Include conf/common.mk.
43401 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43402 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43403 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43404 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43405 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43406 configfile.mod, search.mod, gzio.mod and test.mod.
43407 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43408 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43409 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43410 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43411 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43412 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43413 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43414 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43415 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43416 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43417 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43418 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43419 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43420 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43421 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43422 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43423 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43424 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43425 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43426 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43427 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43428 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43429 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43431 * conf/common.rmk: ... to here. New file.
43433 * conf/common.mk: New file.
43435 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43437 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43438 (grub_script.tab.c): ... here.
43440 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43441 (grub_script.tab.c): ... here.
43443 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43444 (grub_script.tab.c): ... here.
43446 * normal/command.c (grub_command_find): Fixed a memory leak of
43447 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43449 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43451 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43452 "@" which marks the start of a comment on ARM.
43453 (VARIABLE): Likewise.
43455 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43457 Add support for Linux/ADFS partition tables.
43459 * partmap/acorn.c: New file.
43461 * include/grub/acorn_filecore.h: Likewise.
43463 * DISTLIST: Added `partmap/acorn.c' and
43464 `include/grub/acorn_filecore.h'.
43466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43468 (pkgdata_MODULES): Add `acorn.mod'.
43469 (acorn_mod_SOURCES): New variable.
43470 (acorn_mod_CFLAGS): Likewise.
43472 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43474 (pkgdata_MODULES): Add `acorn.mod'.
43475 (acorn_mod_SOURCES): New variable.
43476 (acorn_mod_CFLAGS): Likewise.
43478 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43479 (pkgdata_MODULES): Add `acorn.mod'.
43480 (acorn_mod_SOURCES): New variable.
43481 (acorn_mod_CFLAGS): Likewise.
43482 (acorn_mod_LDFLAGS): Likewise.
43484 * include/types.h (grub_disk_addr_t): New typedef.
43486 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43488 * geninit.sh: New file.
43490 * geninitheader.sh: Likewise.
43492 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43493 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43494 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43495 * commands/configfile.c (grub_configfile_init)
43496 (grub_configfile_fini): Likewise.
43497 * commands/default.c (grub_default_init, grub_default_fini):
43499 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43500 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43501 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43502 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43504 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43505 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43507 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43508 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43510 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43512 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43514 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43515 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43516 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43517 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43518 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43519 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43520 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43521 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43522 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43523 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43524 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43525 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43526 * partmap/amiga.c (grub_amiga_partition_map_init)
43527 (grub_amiga_partition_map_fini): Likewise.
43528 * partmap/apple.c (grub_apple_partition_map_init)
43529 (grub_apple_partition_map_fini): Likewise.
43530 * partmap/pc.c (grub_pc_partition_map_init)
43531 (grub_pc_partition_map_fini): Likewise.
43532 * partmap/sun.c (grub_sun_partition_map_init,
43533 grub_sun_partition_map_fini): Likewise.
43534 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43537 * util/grub-emu.c: Include <grub_modules_init.h>.
43538 (main): Don't initialize and de-initialize any modules directly,
43539 use `grub_init_all' and `grub_fini_all' instead.
43541 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43542 `grub_vesafb_mod_init'.
43543 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43545 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43546 `grub_vga_mod_init'. Updated all users.
43547 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43549 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43550 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43553 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43554 Generate a function to initialize the module in utilities.
43555 Updated all callers.
43556 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43557 initialize the module in utilities. Updated all callers.
43559 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43561 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43562 escape sequence and a literal ^L to clear the screen.
43564 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43565 when returning from Open Firmware.
43567 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43569 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43570 (grub_ofconsole_height): Likewise.
43571 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43572 manually insert a '\n'.
43573 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43574 `grub_ofconsole_height'. Return early if these are already set.
43576 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43578 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43579 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43580 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43581 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43582 and `normal/script.c'.
43583 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43584 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43585 (test_mod_SOURCES): New variable.
43586 (test_mod_CFLAGS): Likewise.
43587 (test_mod_LDFLAGS): Likewise.
43588 (pkgdata_MODULES): Add `test.mod'.
43589 (grub_script.tab.c): New rule.
43590 (grub_script.tab.h): Likewise.
43592 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43595 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43596 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43597 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43598 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43599 (test_mod_SOURCES): New variable.
43600 (test_mod_CFLAGS): Likewise.
43601 (pkgdata_MODULES): Add `test.mod'.
43602 (grub_script.tab.c): New rule.
43603 (grub_script.tab.h): Likewise.
43605 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43607 Add initial scripting support.
43609 * commands/test.c: New file.
43610 * include/grub/script.h: Likewise.
43611 * normal/execute.c: Likewise.
43612 * normal/function.c: Likewise.
43613 * normal/lexer.c: Likewise.
43614 * normal/parser.y: Likewise.
43615 * normal/script.c: Likewise.
43617 * configure.ac: Add `AC_PROG_YACC' test.
43619 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43620 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43621 `normal/function.c' and `normal/script.c'.
43622 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43623 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43624 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43626 (pkgdata_MODULES): Add `test.mod'.
43627 (grub_script.tab.c): New rule.
43628 (grub_script.tab.h): Likewise.
43630 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43632 * include/grub/normal.h (grub_test_init): New prototype.
43633 (grub_test_fini): Likewise.
43635 * normal/command.c: Include <grub/script.h>.
43636 (grub_command_execute): Rewritten.
43638 * util/grub-emu.c (main): Call `grub_test_init' and
43641 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43643 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
43645 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
43646 there are no pending characters.
43648 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43650 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
43651 `grub_strndup' to drop device arguments. Replace unnecessary
43652 `grub_strndup' with `grub_strdup'.
43654 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43656 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
43657 `debug' environment variable has been set.
43659 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
43661 * Makefile.in (install-local): Use $(DATA).
43662 (uninstall): Likewise.
43663 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
43664 (sbin_UTILITIES): ... to here.
43665 (sbin_SCRIPTS): New variable.
43666 (grub_install_SOURCES): New variable.
43667 * util/powerpc/ieee1275/grub-install.in: New file.
43668 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
43670 (add_segments): Call `grub_util_get_path'.
43672 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43674 From Timothy Baldwin:
43675 * commands/ls.c (grub_ls_list_files): Close FILE with
43677 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
43679 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
43681 * include/grub/parser.h: New file.
43683 * kern/parser.c: Likewise.
43685 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
43686 (grub_setup_SOURCES): Likewise.
43687 (grub_probefs_SOURCES): Likewise.
43688 (grub_emu_SOURCES): Likewise.
43689 (kernel_img_HEADERS): Add `parser.h'.
43691 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43692 (grub_emu_SOURCES): Add `kern/parser.c'.
43693 (grubof_SOURCES): Likewise.
43695 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43696 (grubof_SOURCES): Add `kern/parser.c'.
43698 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
43700 * kern/misc.c (grub_split_cmdline): Removed function.
43702 * kern/rescue.c: Include <grub/parser.h>.
43703 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
43704 of `grub_split_cmdline'.
43706 * normal/command.c: Include <grub/parser.h>.
43707 (grub_command_execute): Use `grub_parser_split_cmdline' instead
43708 of `grub_split_cmdline'.
43710 * normal/completion.c: Include <grub/parser.h>.
43711 (cmdline_state): New variable.
43712 (iterate_dir): End the filename with a quote depending on the
43713 command line state.
43714 (get_state): new function.
43715 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
43716 split the arguments and determine the current argument. When the
43717 argument string is not quoted, escape all spaces.
43719 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43721 * normal/sparc64/setjmp.S: New file.
43723 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43725 * include/grub/sparc64/libgcc.h: New file.
43726 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
43727 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
43728 normal/sparc64/setjmp.c.
43730 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43732 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
43733 * kern/sparc64/cache.S: New file.
43734 * kern/sparc64/cache.c: Removed.
43735 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
43736 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
43738 (COMMON_LDFLAGS): Add -melf64_sparc.
43739 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
43740 (grubof_SOURCES): Use cache.S instead of cache.c.
43741 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
43742 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
43743 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
43745 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
43746 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
43747 (linux_mod_CFLAGS): Commented out.
43748 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
43749 out because module isn't built.
43750 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
43751 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
43752 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
43753 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
43754 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
43755 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43756 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43757 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
43758 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
43759 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
43760 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43761 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43762 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
43763 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
43765 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
43767 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
43768 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
43769 longer, because HFS should not be used on PC.
43771 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43773 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
43774 consistently within the loop.
43776 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
43778 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
43779 directory can not be read.
43781 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43783 * configure.ac (AC_INIT): Increase the version number to 1.91.
43785 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
43786 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
43787 term/i386/pc/serial.c.
43789 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43791 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
43792 file size must be permitted.
43794 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
43795 between %ah and %al.
43797 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43799 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
43801 Call the hook with a NUL-terminated filename.
43802 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
43805 * kern/term.c (cursor_state): New variable.
43806 (grub_term_set_current): Reset the cursor state on a new
43808 (grub_setcursor): Rewritten to use CURSOR_STATE.
43809 (grub_getcursor): New function.
43811 * include/grub/term.h (grub_getcursor): New prototype.
43813 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
43814 integers on ARM. Reported by Timothy Baldwin
43815 <T.E.Baldwin99@members.leeds.ac.uk>.
43817 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
43819 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
43821 (grub_sfs_dir): Likewise.
43823 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
43825 Add support for the SFS filesystem.
43827 * fs/sfs.c: New file.
43829 * DISTLIST: Added `fs/sfs.c'.
43831 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
43832 (grub_probefs_SOURCES): Likewise.
43833 (grub_emu_SOURCES): Likewise.
43834 (pkgdata_MODULES): Add `sfs.mod'.
43835 (sfs_mod_SOURCES): New variable.
43836 (sfs_mod_CFLAGS): Likewise.
43837 (sfs_mod_LDFLAGS): Likewise.
43839 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
43840 (pkgdata_MODULES): Add `sfs.mod'.
43841 (sfs_mod_SOURCES): New variable.
43842 (sfs_mod_CFLAGS): Likewise.
43844 * util/grub-emu.c (main): Call `grub_sfs_init' and
43847 * include/grub/fs.h (grub_sfs_init): New prototype.
43848 (grub_sfs_fini): Likewise.
43850 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
43852 Add support for the AFFS filesystem.
43854 * fs/affs.c: New file.
43856 * DISTLIST: Added `fs/affs.c'.
43858 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
43859 (grub_probefs_SOURCES): Likewise.
43860 (grub_emu_SOURCES): Likewise.
43861 (pkgdata_MODULES): Add `affs.mod'.
43862 (affs_mod_SOURCES): New variable.
43863 (affs_mod_CFLAGS): Likewise.
43864 (affs_mod_LDFLAGS): Likewise.
43866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
43867 (pkgdata_MODULES): Add `affs.mod'.
43868 (affs_mod_SOURCES): New variable.
43869 (affs_mod_CFLAGS): Likewise.
43871 * util/grub-emu.c (main): Call `grub_affs_init' and
43874 * include/grub/fs.h (grub_affs_init): New prototype.
43875 (grub_affs_fini): Likewise.
43877 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43879 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
43881 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43883 * configure.ac: Accept `x86_64' as host_cpu. In that case add
43886 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
43889 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
43890 (COMMON_LDFLAGS): New variable.
43891 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
43892 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
43893 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
43894 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
43895 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
43896 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
43897 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
43898 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
43899 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
43900 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
43901 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43902 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43903 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
43904 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
43905 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
43907 (normal_mod_ASFLAGS): Add `-m32'.
43909 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
43910 (grub_host_size_t, grub_host_ssize_t): New types.
43911 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
43912 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
43913 `GRUB_HOST_SIZEOF_VOID_P'.
43915 * include/grub/kernel.h (struct grub_module_header): Type of
43916 member offset changed to `grub_host_off_t'. Type of member size
43917 changed to `grub_host_size_t'.
43918 (struct grub_module_info): Type of member offset changed to
43919 `grub_host_off_t'. Type of member size changed to
43920 `grub_host_size_t'.
43922 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
43924 Make GRUB's kernel compliant to Multiboot Specification.
43926 * kern/i386/pc/startup.S (multiboot_header): New label.
43927 (multiboot_entry): Likewise.
43928 (multiboot_trampoline): Likewise.
43930 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43931 Increased to 0x4A0.
43933 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
43934 put parentheses after a question mark.
43935 [!GRUB_UTIL] (my_mod): New variable.
43937 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
43939 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
43941 Adds support for the XFS filesystem. Btrees are not supported
43944 * fs/xfs.c: New file.
43946 * DISTLIST: Added `fs/xfs.c'.
43948 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
43949 (grub_probefs_SOURCES): Likewise.
43950 (grub_emu_SOURCES): Likewise.
43951 (pkgdata_MODULES): Add `xfs.mod'.
43952 (xfs_mod_SOURCES): New variable.
43953 (xfs_mod_CFLAGS): Likewise.
43955 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
43956 (pkgdata_MODULES): Add `xfs.mod'.
43957 (xfs_mod_SOURCES): New variable.
43958 (xfs_mod_CFLAGS): Likewise.
43960 * util/grub-emu.c (main): Call `grub_xfs_init' and
43963 * include/grub/fs.h (grub_xfs_init): New prototype.
43964 (grub_xfs_fini): Likewise.
43967 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
43969 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
43970 color modes, allow greater than 16 colors to be configured as
43973 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43975 * normal/completion.c (complete_arguments): Add the qualifier
43976 const into OPTIONS.
43978 From Omniflux <omniflux+lists@omniflux.com>:
43979 * include/grub/terminfo.h: New file.
43980 * include/grub/tparm.h: Likewise.
43981 * include/grub/i386/pc/serial.h: Likewise.
43982 * term/terminfo.c: Likewise.
43983 * term/tparm.c: Likewise.
43984 * term/i386/pc/serial.c: Likewise.
43985 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
43987 (terminfo_mod_SOURCES): New variable.
43988 (terminfo_mod_CFLAGS): Likewise.
43989 (serial_mod_SOURCES): Likewise.
43990 (serial_mod_CFLAGS): Likewise.
43992 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
43994 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
43995 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
43996 and kern/powerpc/ieee1275/cmain.c, respectively.
43998 * boot/powerpc/ieee1275/crt0.S: Moved to ...
43999 * kern/powerpc/ieee1275/crt0.S: ... here.
44001 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44002 * kern/powerpc/ieee1275/cmain.c: ... here.
44004 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44005 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44006 instead of boot/powerpc/ieee1275/crt0.S and
44007 boot/powerpc/ieee1275/cmain.c, respectively.
44009 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44010 sectors. It was not used anyway.
44012 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44014 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44015 `unused parameter' warning.
44017 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44019 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44021 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44024 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44026 * include/grub/normal.h (enum grub_completion_type): Added
44027 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44029 * normal/cmdline.c (print_completion): Handle
44030 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44031 * normal/menu_entry.c (store_completion): Likewise.
44033 * normal/completion.c (complete_arguments): New function.
44034 (grub_normal_do_completion): Call `complete_arguments' when the
44035 current words start with a dash.
44037 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44039 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44040 `gzio.mod' instead of `io.mod').
44042 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44044 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44045 (DISTDIRS): Added io and video.
44046 Rewrite the search routine to make an output consistently.
44048 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44049 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44050 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44051 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44052 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44053 util/powerpc/ieee1275/misc.c.
44055 * include/grub/gzio.h: New file.
44056 * io/gzio.c: Likewise.
44058 * kern/file.c (grub_file_close): Call grub_device_close only if
44059 FILE->DEVICE is not NULL.
44061 * include/grub/mm.h [!NULL] (NULL): New macro.
44063 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44066 (pkgdata_MODULES): Added gzio.mod.
44067 (gzio_mod_SOURCES): New variable.
44068 (gzio_mod_CFLAGS): Likewise.
44070 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44071 (pkgdata_MODULES): Added gzio.mod.
44072 (gzio_mod_SOURCES): New variable.
44073 (gzio_mod_CFLAGS): Likewise.
44075 * commands/cat.c: Include grub/gzio.h.
44076 (grub_cmd_cat): Use grub_gzfile_open instead of
44079 * commands/cmp.c: Include grub/gzio.h.
44080 (grub_cmd_cmp): Use grub_gzfile_open instead of
44083 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44084 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44086 (grub_rescue_cmd_module): Likewise.
44088 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44090 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44091 kern/sparc64/ieee1275/init.c because it contains _start.
44092 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44094 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44096 * configure.ac: Add support for sparc64 host with ieee1275
44098 * configure: Generated from configure.ac.
44099 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44101 (grub_ofdisk_read): Likewise.
44102 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44103 pointers as (void *) to remove a warning.
44104 (grub_ofdisk_close): Likewise.
44105 (grub_ofdisk_read): Likewise.
44106 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44107 returns, so make it return void to remove a warning.
44108 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44109 Corresponding prototype change.
44110 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44111 values, and cast the pointers as (void *) to remove a warning.
44112 (grub_mm_dump): Likewise.
44113 * conf/sparc64-ieee1275.mk: New file.
44114 * conf/sparc64-ieee1275.rmk: Likewise.
44115 * include/grub/sparc64/setjmp.h: Likewise.
44116 * include/grub/sparc64/types.h: Likewise.
44117 * include/grub/sparc64/ieee1275/console.h: Likewise.
44118 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44119 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44120 * include/grub/sparc64/ieee1275/time.h: Likewise.
44121 * kern/sparc64/cache.c: Likewise.
44122 * kern/sparc64/dl.c: Likewise.
44123 * kern/sparc64/ieee1275/init.c: Likewise.
44124 * kern/sparc64/ieee1275/openfw.c: Likewise.
44126 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44128 * util/console.c (grub_ncurses_putchar): If C is greater than
44129 0x7f, set C to a question mark.
44130 (grub_ncurses_getcharwidth): New function.
44131 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44134 * normal/menu.c (print_entry): Made aware of Unicode. First,
44135 convert TITLE to UCS-4, and predict the cursor position by
44138 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44140 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44142 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44144 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44145 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44148 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44149 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44150 grub_strcpy and grub_strlen. Take it into account that a space
44151 character is inserted as a delimiter.
44153 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44155 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44156 invalid magic in the error.
44158 * commands/search.c: New file.
44160 * util/grub-emu.c (main): Call grub_search_init and
44163 * kern/rescue.c (grub_rescue_print_disks): Removed.
44164 (grub_rescue_print_devices): New function.
44165 (grub_rescue_cmd_ls): Use grub_device_iterate with
44166 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44167 grub_rescue_print_disks.
44169 * kern/partition.c (grub_partition_iterate): Return the result of
44170 PARTMAP->ITERATE instead of GRUB_ERRNO.
44172 * kern/device.c: Include grub/partition.h.
44173 (grub_device_iterate): New function.
44175 * include/grub/partition.h (grub_partition_iterate): Return int
44176 instead of grub_err_t.
44178 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44180 [GRUB_UTIL] (grub_search_fini): Likewise.
44182 * include/grub/device.h (grub_device_iterate): New prototype.
44184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44186 (pkgdata_MODULES): Added search.mod.
44187 (search_mod_SOURCES): New variable.
44188 (search_mod_CFLAGS): Likewise.
44190 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44191 (pkgdata_MODULES): Added search.mod.
44192 (search_mod_SOURCES): New variable.
44193 (search_mod_CFLAGS): Likewise.
44195 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44196 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44197 All callers changed.
44199 * DISTLIST: Added commands/search.c.
44201 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44203 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44205 (grub_getcharwidth): New function.
44207 * kern/misc.c (grub_utf8_to_ucs4): New function.
44209 * include/grub/term.h (struct grub_term): Added a new member
44211 (grub_getcharwidth): New prototype.
44213 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44215 * term/i386/pc/console.c (map_char): New function. Segregated from
44216 grub_console_putchar.
44217 (grub_console_putchar): Use map_char.
44218 (grub_console_getcharwidth): New function.
44219 (grub_console_term): Specified grub_console_getcharwidth as
44222 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44223 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44225 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44227 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44228 on grub_strtoul completely.
44229 (write_char): Declare local variables in the beginning of the
44231 (grub_vesafb_getcharwidth): New function.
44232 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44235 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44237 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44238 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44239 commands/i386/pc/vbetest.c.
44241 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44242 call grub_vbe_get_controller_info again, because the returned
44243 information is volatile.
44244 (grub_vbe_set_video_mode): Mostly rewritten.
44245 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44246 grub_vbe_status_t correctly.
44247 (grub_vbe_get_video_mode_info): Likewise.
44248 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44249 several if statements.
44251 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44252 * commands/i386/pc/vbeinfo.c: ... this.
44254 * commands/i386/pc/vbe_test.c: Renamed to ...
44255 * commands/i386/pc/vbetest.c: ... this.
44257 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44259 (grub_cmd_vbeinfo): ... this. Save video modes before
44260 iterating. Skip a video mode, if it is not available, not enough
44261 information is given or it is monochrome. Show the memory
44262 model. Leave the interpretation of MODEVAR to grub_strtoul
44264 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44265 (GRUB_MOD_FINI): Likewise.
44267 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44268 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44269 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44270 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44271 grub_strtoul completely.
44272 (real2pm): Removed.
44273 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44274 (GRUB_MOD_FINI): Likewise.
44276 * normal/misc.c: Include grub/mm.h.
44278 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44279 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44280 (vbe_list_modes_mod_SOURCES): Removed.
44281 (vbe_list_modes_mod_CFLAGS): Likewise.
44282 (vbe_test_mod_SOURCES): Likewise.
44283 (vbe_test_mod_CFLAGS): Likewise.
44284 (vbeinfo_mod_SOURCES): New variable.
44285 (vbeinfo_mod_CFLAGS): Likewise.
44286 (vbetest_mod_SOURCES): Likewise.
44287 (vbetest_mod_CFLAGS): Likewise.
44289 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44291 * normal/misc.c: New file.
44293 * DISTLIST: Added normal/misc.c.
44295 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44296 DISK to HOOK. Call HOOK with DISK.
44297 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44298 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44299 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44301 * normal/menu_entry.c (struct screen): Added a new member
44302 "completion_shown".
44303 (completion_buffer): New global variable.
44304 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44305 (store_completion): New function.
44306 (complete): Likewise.
44307 (clear_completions): Likewise.
44308 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44309 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44310 a tab, call complete.
44312 * normal/completion.c (disk_dev): Removed.
44313 (print_simple_completion): Likewise.
44314 (print_partition_completion): Likewise.
44315 (print_func): New global variable.
44316 (add_completion): Do not take the arguments WHAT or PRINT any
44317 longer. Added a new argument TYPE. Instead of printing directly,
44318 call PRINT_FUNC if not NULL.
44319 All callers changed.
44320 (complete_device): Use a local variable DEV instead of
44321 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44322 (grub_normal_do_completion): Take a new argument HOOK. Do not
44323 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44324 empty string, return NULL instead.
44325 All callers changed.
44327 * normal/cmdline.c (print_completion): New function.
44329 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44331 All callers changed.
44333 * kern/disk.c (grub_print_partinfo): Removed.
44335 * include/grub/partition.h (struct grub_partition_map): Add a new
44336 argument DISK into HOOK of ITERATE.
44337 (grub_partition_iterate): Add a new argument DISK to HOOK.
44339 * include/grub/normal.h (enum grub_completion_type): New enum.
44340 (grub_completion_type_t): New type.
44341 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44342 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44343 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44344 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44345 (grub_normal_do_completion): Added a new argument HOOK.
44346 (grub_normal_print_device_info): New prototype.
44348 * include/grub/disk.h (grub_print_partinfo): Removed.
44350 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44351 (normal_mod_SOURCES): Likewise.
44352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44353 (normal_mod_SOURCES): Likewise.
44355 * commands/ls.c (grub_ls_list_disks): Use
44356 grub_normal_print_device_info instead of grub_print_partinfo. Free
44358 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44359 duplicating the code.
44361 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44363 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44364 follow GCS more precisely.
44365 * commands/i386/pc/vbe_test.c: Likewise.
44366 * include/grub/i386/pc/vbe.h: Likewise.
44367 * term/i386/pc/vesafb.c: Likewise.
44368 * video/i386/pc/vbe.c: Likewise.
44370 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44372 * DISTLIST: Added term/i386/pc/vesafb.c
44373 DISTLIST: Added video/i386/pc/vbe.c
44374 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44375 DISTLIST: Added commands/i386/pc/vbe_test.c.
44376 * commands/i386/pc/vbe_list_modes.c: New file.
44377 * commands/i386/pc/vbe_test.c: Likewise.
44378 * term/i386/pc/vesafb.c: Likewise.
44379 * video/i386/pc/vbe.c: Likewise.
44380 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44381 (grub_vbe_probe) Added prototype.
44382 (grub_vbe_set_video_mode) Likewise.
44383 (grub_vbe_get_video_mode) Likewise.
44384 (grub_vbe_get_video_mode_info) Likewise.
44385 (grub_vbe_set_pixel_rgb) Likewise.
44386 (grub_vbe_set_pixel_index) Likewise.
44387 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44388 (pkgdata_MODULES): Added vesafb.mod.
44389 (pkgdata_MODULES): Added vbe_list_modes.mod.
44390 (pkgdata_MODULES): Added vbe_test.mod.
44391 (vbe_mod_SOURCES): Added.
44392 (vbe_mod_CFLAGS): Likewise.
44393 (vesafb_mod_SOURCES): Likewise.
44394 (vesafb_mod_CFLAGS): Likewise.
44395 (vbe_list_modes_mod_SOURCES): Likewise.
44396 (vbe_list_modes_mod_CFLAGS): Likewise.
44397 (vbe_test_mod_SOURCES): Likewise.
44398 (vbe_test_mod_CFLAGS): Likewise.
44400 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44402 * normal/command.c (grub_command_execute): If INTERACTIVE is
44403 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44404 CMDLINE. Disable the pager if INTERACTIVE is true.
44405 All callers are changed.
44407 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44408 before reading a config file.
44409 * normal/main.c (read_config_file): Even if a command is not
44410 found, register it if it is within an entry.
44412 * util/grub-emu.c: Include sys/types.h and unistd.h.
44413 (options): Added --hold.
44414 (struct arguments): Added a new member "hold".
44415 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44417 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44418 cleared by a debugger, if it is not zero.
44420 * include/grub/normal.h (grub_command_execute): Add an argument
44423 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44425 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44427 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44429 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44430 program with another one, because the old one didn't detect a bug
44431 in gcc-3.4. Always use regparm 2, because the new test is still
44432 not enough for gcc-4.0. Someone must investigate a simple test
44433 case which detects a bug in gcc-4.0.
44435 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44437 * DISTLIST: Added normal/completion.c.
44439 * normal/completion.c: New file.
44441 * term/i386/pc/console.c (grub_console_getwh): New function.
44442 (grub_console_term): Assign grub_console_getwh to getwh.
44444 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44445 function is defined in normal/completion.c as
44446 grub_normal_do_completion.
44447 (grub_cmdline_get): Use grub_normal_do_completion instead of
44450 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44451 returns non-zero, otherwise return 0.
44452 (grub_partition_iterate): First, probe the partition map. Then,
44453 call ITERATE only for this partition map.
44455 * kern/misc.c (grub_strncmp): Rewritten.
44457 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44458 returns non-zero. Otherwise return 0.
44460 * include/grub/partition.h (grub_partition_map_iterate): Return
44461 int instead of void.
44463 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44465 * include/grub/misc.h (grub_strncmp): Change the type of N to
44468 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44471 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44472 unsigned explicitly before comparing it with I.
44474 * kern/main.c (grub_env_write_root): Add the attribute unused into
44477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44478 normal/completion.c.
44479 (normal_mod_SOURCES): Likewise.
44480 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44481 (normal_mod_SOURCES): Likewise.
44483 * normal/command.c (grub_iterate_commands): If ITERATE returns
44484 non-zero, return one immediately.
44486 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44488 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44489 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44491 (grub_vbe_get_controller_info): New function.
44492 (grub_vbe_get_mode_info): Likewise.
44493 (grub_vbe_set_mode): Likewise.
44494 (grub_vbe_get_mode): Likewise.
44495 (grub_vbe_set_memory_window): Likewise.
44496 (grub_vbe_get_memory_window): Likewise.
44497 (grub_vbe_set_scanline_length): Likewise.
44498 (grub_vbe_get_scanline_length): Likewise.
44499 (grub_vbe_set_display_start): Likewise.
44500 (grub_vbe_get_display_start): Likewise.
44501 (grub_vbe_set_palette_data): Likewise.
44502 * include/grub/i386/pc/vbe.h: New file.
44504 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44506 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44507 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44508 * DISTLIST: Likewise.
44509 * kern/ieee1275/of.c: Moved to ...
44510 * kern/ieee1275/ieee1275.c: ... here.
44512 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44514 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44515 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44516 Pass 0 as `end' parameter to grub_strtoul().
44518 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44520 * include/grub/powerpc/ieee1275/console.h: Do not include
44521 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44523 (grub_console_cur_color): Remove i386-specific prototype.
44524 (grub_console_real_putchar): Likewise.
44525 (grub_console_checkkey): Likewise.
44526 (grub_console_getkey): Likewise.
44527 (grub_console_getxy): Likewise.
44528 (grub_console_gotoxy): Likewise.
44529 (grub_console_cls): Likewise.
44530 (grub_console_setcursor): Likewise.
44531 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44532 Include <grub/machine/console.h>.
44533 * term/ieee1275/ofconsole.c: Likewise.
44535 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44537 * Makefile.in (LIBLZO): New variable.
44539 * configure.ac: Check for LZO version 2.
44541 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44542 lzo/lzo1x.h instead of lzo1x.h.
44544 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44547 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44548 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44550 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44551 copying the data from PARTITION to P.
44553 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44555 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44556 negative, unload the module.
44558 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44559 map is "pc_partition_map" but not "pc".
44560 (usage): Fix the description. The options are --boot-image and
44561 --core-image but not --boot-file or --core-file.
44562 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44563 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44566 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44567 --core-file. Specify INSTALL_DEVICE as an argument.
44569 * util/console.c: Include config.h.
44570 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44571 [HAVE_NCURSES_H]: Include ncurses.h.
44572 [HAVE_CURSES_H]: Include curses.h.
44573 [!A_NORMAL] (A_NORMAL): Defined as zero.
44574 [!A_STANDOUT] (A_STANDOUT): Likewise.
44576 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44578 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44580 * configure.ac: Check for curses libraries and headers.
44582 * Makefile.in (LIBCURSES): New variable.
44584 * genmk.rb (Script::rule): Set the executable bits.
44586 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44587 name of the PC partition map is "pc_partition_map" but not "pc".
44589 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44591 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44592 (modules): Likewise.
44593 (usage): Added descriptions for --modules and --grub-probefs.
44594 Handle --modules and --grub-probefs. Save the arguments in MODULES
44595 and GRUB_PROBEFS, respectively.
44596 Auto-detect a filesystem module against GRUBDIR. If the result is
44597 empty and modules are not specified explicitly, abort the
44598 installation. Add the result to MODULES.
44600 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44601 disk/powerpc/ieee1275/ofdisk.c,
44602 include/grub/powerpc/ieee1275/init.h and
44603 term/powerpc/ieee1275/ofconsole.c.
44604 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44605 term/ieee1275/ofconsole.c.
44607 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44609 * COPYING: Upgraded to the latest version. Only the address of the
44610 FSF office has changed.
44612 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44614 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44615 kern/ieee1275.c with kern/ieee1275/of.c.
44617 * kern/ieee1275.c: Moved to ...
44618 * kern/ieee1275/of.c: ... here.
44620 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44622 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44625 * config.guess: Updated to the latest version from gnulib.
44626 * config.sub: Likewise.
44627 * install.sh: Likewise.
44628 * mkinstalldirs: Likewise.
44630 * include/grub/console.h: Removed. This file is arch-specific. Do
44631 not put this in include/grub.
44633 * include/grub/i386/pc/console.h: Resurrected.
44635 * util/console.c: Include grub/machine/console.h instead of
44637 * util/grub-emu.c: Likewise.
44639 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44641 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44644 From Vincent Pelletier <subdino2004@yahoo.fr>
44645 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
44646 Redefined to use grub_getwh.
44647 (grub_term): New member named getwh.
44648 (grub_getwh): New prototype.
44649 * kern/term.c (grub_getwh): New function.
44650 * term/i386/pc/console.c (grub_console_getwh): New function.
44651 (grub_console_term): New member `getwh'.
44652 * term/i386/pc/vga.c (grub_vga_getwh): New function.
44653 (grub_vga_term): New member `getwh'.
44654 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
44656 (grub_ofconsole_getw): New function.
44657 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
44658 (grub_ofconsole_term): New field named getwh and new initial
44661 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
44663 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
44664 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
44665 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
44666 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
44667 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
44668 of <grub/machine/ieee1275.h>.
44669 * commands/ieee1275/reboot.c: Likewise.
44670 * boot/powerpc/ieee1275/ieee1275.c: Move ...
44671 * kern/ieee1275.c: ... to here. All users updated. Change all
44672 parameter structs to use new type `grub_ieee1275_cell_t'.
44673 * term/powerpc/ieee1275/ofconsole.c: Move ...
44674 * term/ieee1275/ofconsole.c: ... to here. All users updated.
44675 * disk/powerpc/ieee1275/ofdisk.c: Move ...
44676 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
44677 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
44679 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
44680 Remove unused prototypes. All users updated.
44681 * include/grub/powerpc/ieee1275/console.h: Removed.
44682 * include/grub/powerpc/ieee1275/ieee1275.h: Define
44683 `grub_ieee1275_cell_t'.
44684 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
44685 Cast comparisons with -1 to the correct type.
44686 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
44687 type to match `grub_ieee1275_entry_fn'.
44689 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
44691 * DISTLIST: Added util/i386/pc/grub-probefs.c.
44693 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
44694 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
44696 (grub_probefs_SOURCES): New variable.
44698 * util/i386/pc/grub-probefs.c: New file.
44700 * util/i386/pc/grub-setup.c (main): Call
44701 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
44702 grub_hfs_init and grub_jfs_init to initialize the system. Call
44703 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
44704 grub_pc_partition_map_fini to finish the system.
44706 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
44708 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
44710 (grub_multiboot_load_elf32): Likewise.
44711 (grub_multiboot_is_elf64): Likewise.
44712 (grub_multiboot_load_elf64): Likewise.
44713 (grub_multiboot_load_elf): Likewise.
44714 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
44715 an ELF32 or ELF64 file.
44716 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
44718 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
44719 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
44720 NULL before calling FS->LABEL.
44721 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
44722 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
44723 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
44724 before calling FS->LABEL.
44726 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
44728 * util/i386/pc/grub-install.in (datadir): New variable.
44730 (pkgdatadir): New variable.
44731 (pkglibdir): Removed.
44733 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
44735 * DISTLIST: Added util/i386/pc/grub-install.in.
44737 * util/i386/pc/grub-install.in: New file.
44739 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
44740 (grub_install_SOURCES): Likewise.
44742 * genmk.rb: Added support for scripts.
44743 (Script): New class.
44744 (scripts): New variable.
44746 * Makefile.in (install-local): Install sbin_SCRIPTS by
44748 (uninstall): Remove sbin_SCRIPTS.
44750 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
44751 device, try to get a GRUB device by
44752 grub_util_biosdisk_get_grub_dev.
44755 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
44756 description for --device-map.
44758 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44760 Change the semantics of variable hooks. They now return strings
44761 instead of error values.
44763 * util/i386/pc/grub-setup.c: Include grub/env.h.
44764 (setup): Use grub_device_set_root instead of grub_env_set.
44766 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
44767 grub_env_get instead of grub_device_set_root and
44768 grub_device_get_root, respectively.
44770 * kern/main.c (grub_env_write_root): New function.
44771 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
44772 grub_env_set instead of grub_device_set_root.
44774 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
44776 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
44777 rather than calling ENV->WRITE_HOOK afterwards.
44778 (grub_env_get): Return the result of ENV->READ_HOOK rather than
44779 passing a pointer of a pointer.
44780 (grub_register_variable_hook): Change the types of "read_hook" and
44781 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
44783 Allocate the default empty string on the heap, because this string
44784 may be freed later.
44786 * kern/device.c: Include grub/env.h.
44787 (grub_device_set_root): Removed.
44788 (grub_device_get_root): Likewise.
44789 (grub_device_open): Use grub_env_get instead of
44790 grub_device_get_root.
44792 * include/grub/env.h (grub_env_read_hook_t): New type.
44793 (grub_env_write_hook_t): Likewise.
44794 (grub_env_var): Change the types of "read_hook" and "write_hook"
44795 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
44796 (grub_register_variable_hook): Likewise.
44798 * include/grub/device.h (grub_device_set_root): Removed.
44799 (grub_device_set_root): Likewise.
44801 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
44802 make sure that DIRNAME terminates with '/', so that
44803 grub_fat_find_dir will fail if PATH is not a directory.
44805 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
44807 Use the qualifier auto for print_files and print_files_long.
44808 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
44810 Put a newline only if there is no error.
44811 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
44814 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44816 * kern/partition.c (grub_partition_probe): Initialize PART to
44817 NULL. Otherwise, when no partition map is registered, this returns
44820 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
44822 * partmap/apple.c (apple_partition_map_iterate): Check if POS
44823 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
44826 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
44828 * commands/ls.c (grub_ls_list_disks): Print the filesystem
44829 information on each device, if it does not have partitions. Print
44830 "Device" instead of "Disk", because this function is not specific
44833 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
44834 static to ensure that it is put on the memory rather than a
44837 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44839 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
44840 (grub_cat_init): Likewise.
44841 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
44842 (options): Likewise.
44843 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
44844 (grub_configfile_init): Likewise.
44845 * font/manager.c (GRUB_MOD_INIT): Likewise.
44846 * commands/help.c (GRUB_MOD_INIT): Likewise.
44847 (grub_help_init): Likewise.
44848 * normal/command.c (grub_command_init): Likewise.
44849 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
44850 * disk/loopback.c (grub_loop_init): Likewise.
44851 (GRUB_MOD_INIT): Likewise.
44852 * commands/ls.c (grub_ls_init): Likewise.
44853 (GRUB_MOD_INIT): Likewise.
44854 (options): Likewise.
44855 * commands/boot.c (grub_boot_init): Likewise.
44856 (GRUB_MOD_INIT): Likewise.
44857 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
44858 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
44859 (GRUB_MOD_INIT): Likewise.
44860 * commands/cmp.c (grub_cmp_init): Likewise.
44861 (GRUB_MOD_INIT): Likewise.
44863 * normal/arg.c: Use <> instead of "" to include header files.
44864 (SHORT_ARG_HELP): New macro.
44865 (SHORT_ARG_USAGE): Likewise.
44866 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
44867 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
44869 (find_short): Check if C is 'h' or 'u' explicitly.
44870 (grub_arg_show_help): Use space characters instead of tabs. Treat
44871 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
44872 are shown with --help and --usage only if they are not used for
44873 the command itself.
44874 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
44877 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
44878 const into "longarg". Change the type of "shortarg" to int.
44880 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44882 * boot/i386/pc/boot.S (boot_drive_check): New label.
44884 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
44887 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
44888 which do not pass a boot drive correctly. Copied from GRUB Legacy.
44890 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44892 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
44893 When turning off Gate A20, skip the check and return immediately,
44894 because this is not fatal usually.
44896 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44898 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
44899 be 0x7C00 instead of 0x8000.
44901 * boot/i386/pc/pxeboot.S: Rewritten.
44903 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
44905 (gate_a20_check_state): Read a byte from 0x108000. Invert the
44908 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
44910 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
44911 robustness. This routine now supports a BIOS call and System
44912 Control Port A to modify the gate A20.
44914 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44915 Increased to 0x440.
44917 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
44919 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
44920 device path and resulting ihandle.
44921 (grub_ofdisk_close): dprintf the ihandle being closed.
44922 (grub_ofdisk_read): dprintf function parameters.
44923 * kern/mm.c (grub_mm_init_region): Likewise.
44924 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
44925 (grub_linux_boot): dprintf the Linux entry point, initrd address and
44926 size, and boot arguments.
44927 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
44928 before loading into memory.
44929 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
44930 before loading into memory.
44932 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
44934 * kern/mm.c: Added much documentation.
44935 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
44936 8, set to 5 instead of 8.
44938 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44940 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
44942 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
44943 (grub_mkdevicemap_SOURCES): New variable.
44945 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
44946 lib/device.c of GRUB Legacy.
44948 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44950 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
44951 instead of PATH is NULL.
44953 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
44955 * commands/cmp.c (BUFFER_SIZE): New macro.
44956 (grub_cmd_cmp): Close the right file at the right time. Compare
44957 only data just read. Don't report files of different size as
44958 identical. Dynamically allocate buffers. Move variable
44959 declarations at the beginning of function.
44961 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
44963 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
44966 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
44968 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
44969 when backspace is pressed at beginning of line.
44971 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
44973 * DISTLIST: Added genfslist.sh.
44975 * normal/main.c (fs_module_list): New variable.
44976 (autoload_fs_module): New function.
44977 (read_fs_list): Likewise.
44978 (grub_normal_execute): Call read_fs_list.
44980 * kern/fs.c (grub_fs_autoload_hook): New variable.
44981 (grub_fs_probe): Added support for auto-loading.
44983 * include/grub/normal.h (struct grub_fs_module_list): New struct.
44984 (grub_fs_module_list_t): New type.
44986 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
44987 (grub_fs_autoload_hook): New prototype.
44989 * genfslist.sh: New file.
44991 * genmk.rb: Added a rule to generate a filesystem list.
44993 2005-06-30 Marco Gerards <metgerards@student.han.nl>
44995 * configure.ac: Fix the test for cross-compiling.
44997 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
44998 define GRUB_UTIL anymore.
45000 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45001 so this function works on other systems than just big endian.
45002 (load_modules): Likewise.
45003 (add_segments): Likewise.
45005 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45007 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45008 contains `l' modifier, get a long from va_arg().
45010 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45012 * kern/mm.c (grub_free): If the next free block which is being
45013 merged is the first free block, set the first block to the block
45015 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45017 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45019 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45020 `grub_ieee1275_chosen'.
45022 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45024 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45025 (grub_ieee1275_chosen): New variable.
45026 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45028 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45029 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45030 Rename first argument to `phandle' for consistency.
45031 (grub_ieee1275_get_property_length): Likewise.
45032 (grub_ieee1275_next_property): Likewise. Change type of first argument
45033 to grub_ieee1275_phandle_t.
45034 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45035 Move export next to declaration.
45036 (grub_ieee1275_chosen): New variable.
45037 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45038 Correct cosmetic typo.
45039 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45040 `grub_ieee1275_chosen'.
45041 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45042 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45043 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45044 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45045 `grub_ieee1275_chosen'.
45047 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45049 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45051 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45052 /chosen/bootargs as "variable=value" pairs.
45054 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45056 * include/grub/misc.h (grub_dprintf): New macro.
45057 (grub_real_dprintf): New prototype.
45058 (grub_strword): Likewise.
45059 (grub_iswordseparator): Likewise.
45060 * kern/misc.c (grub_real_dprintf): New function.
45061 (grub_strword): Likewise.
45062 (grub_iswordseparator): Likewise.
45064 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45066 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45067 (roundup): Remove macro.
45068 (grub_ieee1275_flags): Make static.
45069 (grub_ieee1275_realmode): Remove.
45070 (grub_ieee1275_test_flag): New function.
45071 (grub_ieee1275_set_flag): Likewise.
45072 (find_options): Rename to `grub_ieee1275_find_options'; update
45073 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45074 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45075 (cmain): New prototype.
45076 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45077 `grub_ieee1275_flags' directly.
45078 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45079 machine/biosdisk.h.
45080 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45081 Don't include grub/machine/init.h.
45082 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45083 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45085 (grub_ieee1275_realmode): Likewise.
45086 (grub_ieee1275_flag): New enum.
45087 (grub_ieee1275_test_flag): New prototype.
45088 (grub_ieee1275_set_flag): New prototype.
45089 * include/grub/powerpc/ieee1275/init.h: Remove file.
45090 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45091 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45092 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45093 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45095 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45096 `grub_ieee1275_test_flag'.
45097 (grub_ieee1275_encode_devname): Likewise.
45099 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45101 * include/grub/powerpc/ieee1275/ieee1275.h
45102 (grub_ieee1275_encode_devname): New prototype.
45103 (grub_ieee1275_get_filename): Likewise.
45104 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45106 (grub_set_prefix): Likewise.
45107 (grub_machine_init): Call grub_set_prefix.
45108 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45109 (grub_parse_type): New enum.
45110 (grub_ieee1275_get_devargs): New function.
45111 (grub_ieee1275_get_devname): Likewise.
45112 (grub_ieee1275_parse_args): Likewise.
45113 (grub_ieee1275_get_filename): Likewise.
45114 (grub_ieee1275_encode_devname): Likewise.
45116 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45118 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45119 `grub_loader_unset'.
45121 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45123 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45124 instead of grub_ieee1275_interpret.
45125 (grub_halt_init): New function.
45126 (grub_halt_fini): Likewise.
45127 (GRUB_MOD_INIT): Correct message grammar.
45128 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45129 instead of grub_ieee1275_interpret.
45130 (grub_reboot_init): New function.
45131 (grub_reboot_fini): Likewise.
45132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45133 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45134 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45135 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45136 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45138 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45140 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45142 (grub_halt): Likewise.
45143 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45144 (cmain): Remove __attribute__((unused)).
45145 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45146 (grub_heap_len): Likewise.
45147 (grub_machine_fini): New function.
45148 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45149 (grub_halt): Likewise.
45150 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45152 * util/powerpc/ieee1275/misc.c: New file.
45154 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45156 * DISTLIST: New file.
45157 * gendistlist.sh: Likewise.
45159 * Makefile.in (COMMON_DISTFILES): Removed.
45160 (BOOT_DISTFILES): Likewise.
45161 (CONF_DISTFILES): Likewise.
45162 (DISK_DISTFILES): Likewise.
45163 (FS_DISTFILES): Likewise.
45164 (INCLUDE_DISTFILES): Likewise.
45165 (KERN_DISTFILES): Likewise.
45166 (LOADER_DISTFILES): Likewise.
45167 (TERM_DISTFILES): Likewise.
45168 (UTIL_DISTFILES): Likewise.
45169 (DISTFILES): Likewise.
45170 (uninstall): Uninstall files in $(pkgdata_DATA).
45171 (DISTLIST): New target.
45172 (distdir): Use the contents of the file DISTLIST to get a list of
45175 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45177 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45178 descriptor. This is ported from GRUB Legacy.
45180 * gencmdlist.sh: Added an extra semicolon to make it work with
45181 old sed versions. Reported by Robert Bihlmeyer
45182 <robbe@orcus.priv.at>.
45184 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45186 Automatic loading of commands is supported.
45188 * normal/main.c (read_command_list): New function.
45189 (grub_normal_execute): Call read_command_list.
45191 * normal/command.c (grub_register_command): Return zero or CMD.
45192 Allocate CMD->NAME from the heap.
45193 Initialize CMD->MODULE_NAME to zero.
45194 Find the same name as well. If the same command is found and it is
45195 a dummy command, overwrite members. If it is not a dummy command,
45197 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45198 (grub_command_find): If a dummy command is found, load a module
45199 and retry to find a command only once.
45201 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45202 make sure that each command is loaded.
45204 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45206 (struct grub_command): Remove const from the member `name'.
45207 Add a new member `module_name'.
45208 (grub_register_command): Return grub_command_t.
45210 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45211 sure that each command is loaded.
45213 * genmk.rb (PModule::rule): Specify a module name without the
45214 suffix ".mod" to gencmdlist.sh.
45216 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45218 * gencmdlist.sh: New file.
45220 * genmk.rb (PModule::rule): Generate a rule for a command list.
45222 Generate command.lst from $(COMMANDFILES).
45224 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45225 (DATA): Added $(pkgdata_DATA).
45226 (install-local): Install files in $(pkgdata_DATA).
45228 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45230 * term/i386/pc/vga.c (debug_command): Removed.
45231 (GRUB_MOD_INIT): Do not register the command "debug".
45233 From Hollis Blanchard:
45234 * commands/configfile.c: New file.
45235 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45236 commands/configfile.c.
45237 (pkgdata_MODULES): Added configfile.mod.
45238 (configfile_mod_SOURCES): New variable.
45239 (configfile_mod_CFLAGS): Likewise.
45240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45241 commands/configfile.c.
45242 (pkgdata_MODULES): Added configfile.mod.
45243 (configfile_mod_SOURCES): New variable.
45244 (configfile_mod_CFLAGS): Likewise.
45245 * util/grub-emu.c (main): Call grub_configfile_init and
45246 grub_configfile_fini.
45247 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45249 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45251 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45253 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45256 * commands/help.c (grub_cmd_help): Do not print newlines after
45257 the last command in print_command_help.
45259 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45261 * commands/default.h: New file.
45262 * commands/timeout.h: Likewise.
45263 * normal/context.c: Likewise.
45265 * util/misc.c: Do not include sys/times.h.
45266 Include sys/time.h and grub/machine/time.h.
45267 (grub_get_rtc): Rewritten with gettimeofday.
45269 * util/grub-emu.c (main): Call grub_default_init and
45270 grub_timeout_init before grub_normal_init, and call
45271 grub_timeout_fini and grub_default_fini after grub_main.
45273 * util/console.c (grub_ncurses_checkkey): Return the read
45276 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45279 * normal/main.c (read_config_file): Push MENU. If this fails,
45280 print an error and wait for a user input.
45281 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45282 If a menu is empty or an error occurs, pop MENU.
45283 (grub_normal_execute): Pop and free MENU after grub_menu_run
45286 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45288 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45290 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45292 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45294 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45297 * include/grub/normal.h (struct grub_menu_list): New struct.
45298 (grub_menu_list_t): New type.
45299 (struct grub_context): New struct.
45300 (grub_context_t): New type.
45301 (grub_register_command): Got rid of EXPORT_FUNC.
45302 (grub_unregister_command): Likewise.
45303 (grub_context_get): New prototype.
45304 (grub_context_get_current_menu): Likewise.
45305 (grub_context_push_menu): Likewise.
45306 (grub_context_pop_menu): Likewise.
45307 [GRUB_UTIL] (grub_default_init): Likewise.
45308 [GRUB_UTIL] (grub_default_fini): Likewise.
45309 [GRUB_UTIL] (grub_timeout_init): Likewise.
45310 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45312 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45313 commands/timeout.c and normal/context.c.
45314 (pkgdata_MODULES): Added default.mod and timeout.mod.
45315 (normal_mod_SOURCES): Added normal/context.c.
45316 (default_mod_SOURCES): New variable.
45317 (default_mod_CFLAGS): Likewise.
45318 (timeout_mod_SOURCES): Likewise.
45319 (timeout_mod_CFLAGS): Likewise.
45320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45322 (pkgdata_MODULES): Added default.mod and timeout.mod.
45323 (normal_mod_SOURCES): Added normal/context.c.
45324 (default_mod_SOURCES): New variable.
45325 (default_mod_CFLAGS): Likewise.
45326 (timeout_mod_SOURCES): Likewise.
45327 (timeout_mod_CFLAGS): Likewise.
45329 * Makefile.in (all-local): Added $(MKFILES).
45331 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45333 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45334 (grub_emu_SOURCES): Likewise.
45335 (pkgdata_MODULES): Add `sun.mod'.
45336 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45337 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45339 (pkgdata_MODULES): Add `sun.mod'.
45340 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45341 * include/grub/partition.h (grub_sun_partition_map_init): New
45343 (grub_sun_partition_map_fini): Likewise.
45344 * partmap/sun.c: New file.
45345 * util/grub-emu.c (main): Initialize and de-initialize the sun
45346 partitionmap support.
45348 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45350 This implements an Emacs-like menu entry editor.
45352 * normal/menu_entry.c: New file.
45354 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45355 characters to ASCII.
45356 (saved_char): New variable.
45357 (grub_ncurses_checkkey): Rewritten completely.
45358 (grub_ncurses_getkey): Likewise.
45359 (grub_ncurses_init): Call raw instead of cbreak.
45361 * normal/menu.c (print_entry): Do not put a space.
45362 (init_page): Renamed to ...
45363 (grub_menu_init_page): ... this. All callers changed.
45364 (edit_menu_entry): Removed.
45365 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45367 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45369 * kern/misc.c (grub_vprintf): Call grub_refresh.
45371 * normal/menu.c (DISP_LEFT): Renamed to ...
45372 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45373 * normal/menu.c (DISP_UP): Renamed to ...
45374 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45375 * normal/menu.c (DISP_RIGHT): Renamed to ...
45376 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45377 * normal/menu.c (DISP_DOWN): Renamed to ...
45378 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45379 * normal/menu.c (DISP_HLINE): Renamed to ...
45380 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45381 * normal/menu.c (DISP_VLINE): Renamed to ...
45382 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45383 * normal/menu.c (DISP_UL): Renamed to ...
45384 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45385 * normal/menu.c (DISP_UR): Renamed to ...
45386 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45387 * normal/menu.c (DISP_LL): Renamed to ...
45388 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45389 * normal/menu.c (DISP_LR): Renamed to ...
45390 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45391 * normal/menu.c (TERM_WIDTH): Renamed to ...
45392 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45393 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45394 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45395 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45396 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45397 * normal/menu.c (TERM_MARGIN): Renamed to ...
45398 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45399 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45400 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45401 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45402 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45403 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45404 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45405 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45406 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45407 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45408 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45409 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45410 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45411 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45412 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45413 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45414 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45415 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45416 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45417 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45418 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45419 All callers changed.
45421 * include/grub/normal.h: New prototype.
45423 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45424 normal/menu_entry.c.
45425 (normal_mod_SOURCES): Likewise.
45426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45427 (normal_mod_SOURCES): Likewise.
45429 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45431 * include/grub/normal.h (grub_halt_init): New prototype.
45432 (grub_halt_fini): Likewise.
45433 (grub_reboot_init): Likewise.
45434 (grub_reboot_fini): Likewise.
45436 * util/grub-emu.c: Include signal.h.
45437 (main_env): New global variable.
45438 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45440 (grub_machine_fini): New function.
45441 (main): Call grub_halt_init and grub_reboot_init before
45442 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45443 Call setjmp with MAIN_ENV to go back afterwards.
45444 Call grub_machine_fini right before return.
45446 * include/grub/util/misc.h: Include setjmp.h.
45447 (main_env): New prototype.
45449 * include/grub/kernel.h (grub_machine_fini): New prototype.
45450 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45451 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45453 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45454 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45455 * term/i386/pc/console.c (grub_console_fini): Likewise.
45457 * util/i386/pc/misc.c: New file.
45459 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45460 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45461 commands/i386/pc/reboot.c.
45463 2005-02-14 Guillem Jover <guillem@hadrons.org>
45465 * include/grub/dl.h (grub_dl_check_header): New prototype.
45466 (grub_arch_dl_check_header): Change return type to grub_err_t,
45467 remove size parameter and export function. Update all callers.
45468 * kern/dl.c (grub_dl_check_header): New function.
45469 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45470 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45471 are inside the core.
45472 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45473 independent ELF header checks.
45474 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45475 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45476 `grub_dl_check_header' instead of explicit checks. Check for the
45478 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45479 `grub_dl_check_header' instead of explicit checks. Remove arch
45480 specific ELF header checks.
45482 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45485 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45487 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45488 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45490 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45492 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45493 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45494 (part_map_iterate): Clear `grub_errno' and return 0 if
45495 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45496 * partmap/amiga.c (amiga_partition_map_iterate): Return
45497 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45498 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45500 2005-02-01 Guillem Jover <guillem@hadrons.org>
45502 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45505 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45507 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45509 (grub_rescue_cmd_linux): New prototype.
45510 (grub_rescue_cmd_initrd): Likewise.
45511 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45513 (grub_linux_release_mem): Release the memory for the initrd.
45514 (grub_load_linux): Renamed from this...
45515 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45516 Changed `entry' not to be static. Loop over memory regions to
45517 find another one when the default fails.
45518 (grub_rescue_cmd_initrd): New function.
45519 (grub_linux_init): Remove function.
45520 (grub_linux_fini): Likewise.
45521 (GRUB_MOD_INIT): Register `initrd'.
45522 (GRUB_MOD_FINI): Unregister `initrd'.
45523 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45525 (grub_linux_normal_fini): Likewise.
45526 (GRUB_MOD_INIT): Register `initrd'.
45527 (GRUB_MOD_FINI): Unregister `initrd'.
45529 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45531 * commands/help.c: New file.
45532 * normal/arg.c (show_help): Renamed to...
45533 (grub_arg_show_help): ... this.
45534 * commands/i386/pc/halt.c: New file.
45535 * commands/i386/pc/reboot.c: Likewise.
45536 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45537 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45538 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45539 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45543 (pkgdata_MODULES): Add `help.mod'.
45544 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45545 * grub/i386/pc/init.h (grub_reboot): New prototype.
45546 (grub_halt): Likewise.
45547 * include/grub/normal.h (grub_arg_show_help): New prototype.
45548 (grub_help_init): Likewise.
45549 (grub_help_fini): Likewise.
45550 * util/grub-emu.c (main): Initialize and deinitialize the help
45553 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45555 * normal/command.c (grub_command_init): Fixed the description of
45556 the `set' and `unset' commands.
45558 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45560 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45562 * commands/ieee1275/halt.c: New file.
45563 * commands/ieee1275/reboot.c: Likewise.
45564 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45565 `__attribute__ ((unused))'. Some GCS related fixed.
45566 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45567 (grub_suspend_fini): Likewise.
45568 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45570 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45571 (halt_mod_CFLAGS): New variables.
45572 * include/grub/powerpc/ieee1275/ieee1275.h
45573 (grub_ieee1275_interpret): New prototype.
45575 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45577 * include/grub/misc.h (memmove): New prototype.
45578 (memcpy): Likewise.
45580 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45582 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45583 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45585 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45587 * kern/misc.c (grub_strndup): Function rewritten.
45589 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45591 * normal/menu.c (TERM_WIDTH): Macro redefined.
45592 (TERM_TOP_BORDER_Y): Likewise.
45593 (draw_border): Replaced while-loop by a for-loop. Make the number
45594 of lines consistent with the number of lines displayed in
45595 print_entries. Added a margin below the rectangle.
45596 (print_entry): Make the entry fit in the rectangle.
45597 (print_entries): Display the scroll arrows next to the right
45600 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45602 * fs/minix.c (grub_minix_find_file): Reserve more space for
45603 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45604 `grub_strncpy' to copy `path' into it.
45606 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45608 Add the loopback device, a device via which files can be accessed
45611 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45612 (pkgdata_MODULES): Add loopback.mod.
45613 (loopback_mod_SOURCES): New variable.
45614 (loopback_mod_CFLAGS): Likewise.
45615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45617 (pkgdata_MODULES): Add loopback.mod.
45618 (loopback_mod_SOURCES): New variable.
45619 (loopback_mod_CFLAGS): Likewise.
45620 * disk/loopback.c: new file.
45621 * include/grub/normal.h (grub_loop_init): New prototype.
45622 (grub_loop_fini): New prototype.
45623 * util/grub-emu.c (main): Initialize and de-initialize loopback
45625 * include/grub/disk.h (grub_disk_dev_id): Add
45626 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45628 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45630 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45632 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45633 (suspend_mod_SOURCES): New variable.
45634 (suspend_mod_CFLAGS): Likewise.
45635 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45637 * commands/ieee1275/suspend.c: New file.
45639 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45641 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45642 ((unused))' to `__attribute__ ((used))'.
45643 (GRUB_MOD_FINI): Likewise.
45644 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
45645 * genmk.rb (PModule): Assign space to common symbols when linking
45648 2005-01-20 Marco Gerards <metgerards@student.han.nl>
45650 * include/grub/mm.h (grub_mm_init_region): Change the type of the
45651 `unsigned' arguments to `grub_size_t'.
45652 (grub_malloc): Likewise.
45653 (grub_realloc): Likewise.
45654 (grub_memalign): Likewise.
45655 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
45656 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45657 * util/misc.c (grub_malloc): Likewise.
45658 (grub_realloc): Likewise.
45659 * kern/mm.c (get_header_from_pointer): Change the casts to
45660 `unsigned' into a cast to `grub_size_t'.
45662 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
45663 point to `currnode' when `currnode' is changed.
45665 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
45666 Schottelius <nico-linux@schottelius.org>.
45668 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
45670 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
45671 (note_path): Remove variable.
45672 (GRUB_IEEE1275_NOTE_NAME): New macro.
45673 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
45674 (grub_ieee1275_note_hdr): New structure.
45675 (grub_ieee1275_note_desc): Likewise.
45676 (grub_ieee1275_note): Likewise.
45677 (load_note): Remove `dir' argument. All callers updated. Remove
45678 `note_img' and `path'. Do not load a file from `note_path'.
45679 Initialize a struct grub_ieee1275_note and write that to `out'.
45680 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
45682 2005-01-05 Marco Gerards <metgerards@student.han.nl>
45684 * util/misc.c (grub_util_read_image): Revert last change. It
45685 called `grub_util_read_at', which seeks from the beginning of the
45688 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
45690 * TODO: Add note about endianness in grub-mkimage.
45691 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
45693 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
45694 (grub_mkimage_SOURCES): New target.
45695 * include/grub/kernel.h (grub_start_addr): Remove variable.
45696 (grub_end_addr): Likewise.
45697 (grub_total_module_size): Likewise.
45698 (grub_kernel_image_size): Likewise.
45699 (GRUB_MODULE_MAGIC): New constant.
45700 (grub_module_info): New structure.
45701 (grub_arch_modules_addr): New prototype.
45702 (grub_get_end_addr): Remove prototype.
45703 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
45704 * include/grub/powerpc/ieee1275/kernel.h: New file.
45705 * include/grub/util/misc.h (grub_util_get_fp_size): New
45707 (grub_util_read_at): Likewise.
45708 (grub_util_write_image_at): Likewise.
45709 * kern/main.c (grub_get_end_addr): Remove function.
45710 (grub_load_modules): Call grub_arch_modules_addr instead of using
45711 grub_end_addr. Look for a grub_module_info struct in memory. Use
45712 the grub_module_info fields instead of calling grub_get_end_addr
45713 as loop conditions. Move grub_add_unused_region code here.
45714 (grub_add_unused_region): Remove function.
45715 * kern/i386/pc/init.c: Include grub/cache.h.
45716 (grub_machine_init): Remove call to grub_get_end_addr. Remove
45717 one call to add_mem_region.
45718 (grub_arch_modules_addr): New function.
45719 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
45720 (grub_total_module_size): Likewise.
45721 Include grub/machine/kernel.h.
45722 (grub_arch_modules_addr): New function.
45723 * util/grub-emu.c (grub_end_addr): Remove variable.
45724 (grub_total_module_size): Likewise.
45725 (grub_arch_modules_addr): New function.
45726 * util/misc.c: Include unistd.h.
45727 (grub_util_get_fp_size): New function.
45728 (grub_util_read_at): Likewise.
45729 (grub_util_write_image_at): Likewise.
45730 (grub_util_read_image): Call grub_util_read_at.
45731 (grub_util_write_image): Call grub_util_write_image_at.
45732 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
45733 additional memory in kernel_img for a struct grub_module_info.
45734 Fill in that grub_module_info.
45735 * util/powerpc/ieee1275/grub-mkimage.c: New file.
45737 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45739 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
45741 * include/grub/powerpc/ieee1275/ieee1275.h
45742 (grub_ieee1275_milliseconds): New prototype.
45743 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
45745 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
45746 grub_ieee1275_milliseconds.
45748 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45750 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
45752 (find_options): New function.
45753 (cmain): Call find_options.
45754 * include/grub/powerpc/ieee1275/ieee1275.h
45755 (grub_ieee1275_realmode): New extern variable.
45756 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
45757 grub_map if grub_ieee1275_realmode is false.
45759 2004-12-29 Marco Gerards <metgerards@student.han.nl>
45761 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
45762 lines are inserted and make it work like readline. Reported by
45763 Vincent Pelletier <subdino2004@yahoo.fr>.
45765 2004-12-28 Marco Gerards <metgerards@student.han.nl>
45767 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
45769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
45770 `kern/powerpc/cache.S'.
45772 2004-12-27 Marco Gerards <metgerards@student.han.nl>
45774 * genmk.rb: Handle the `Program' class in the main loop. Written
45775 by Johan Rydberg <jrydberg@gnu.org>.
45776 (Program): New class.
45777 (programs): New variable.
45778 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
45779 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
45780 instead of "grub/kernel.h". Include <grub/machine/init.h>.
45781 (help_arch): Function removed.
45782 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
45783 `powerpc/libgcc.h' and `loader.h'.
45784 (pkgdata_PROGRAMS): New variable.
45785 (sbin_UTILITIES): Variable removed.
45786 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
45787 (grubof_SOURCES): Variable re-defined so it only includes the
45788 core functionality.
45789 (grubof_CFLAGS): Remove `-DGRUBOF'.
45790 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
45791 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
45792 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
45793 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
45794 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
45795 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
45796 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
45797 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
45798 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
45799 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
45800 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45801 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
45802 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
45803 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
45804 (pc_mod_CFLAGS): New variables.
45805 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
45806 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
45807 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
45808 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
45810 * include/grub/i386/pc/init.h (grub_os_area_addr)
45811 (rub_os_area_size): ... to here.
45812 * include/grub/powerpc/ieee1275/ieee1275.h
45813 (grub_ieee1275_entry_fn): Export symbol.
45814 * include/grub/powerpc/ieee1275/init.h: New file.
45815 * include/grub/powerpc/libgcc.h: Likewise.
45816 * include/grub/cache.h: Likewise.
45817 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
45818 <hollis@penguinppc.org>.
45819 * kern/dl.c: Include <grub/cache.h>.
45820 (grub_dl_flush_cache): New function.
45821 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
45823 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
45824 (grub_console_init): Removed prototypes.
45825 (grub_machine_init): Don't initialize the modules anymore.
45826 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
45828 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
45829 Macro undef removed.
45830 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
45831 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
45832 relocation `R_PPC_REL32'. Return an error when the relocation is
45834 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
45835 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
45836 * util/misc.c (grub_arch_sync_caches): Likewise.
45838 2004-12-19 Marco Gerards <metgerards@student.han.nl>
45840 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
45841 `symlist.c', add `grubof_symlist.c'.
45842 (symlist.c): Variable removed.
45843 (grubof_HEADERS): Variable added.
45844 (grubof_symlist.c): New target.
45845 (kernel_syms.lst): Use `grubof_HEADERS' instead of
45846 `kernel_img_HEADERS'.
45847 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
45848 * kern/powerpc/dl.c: New file.
45849 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
45851 (grub_arch_dl_relocate_symbols): Likewise.
45852 (grub_register_exported_symbols): Likewise.
45854 2004-12-13 Marco Gerards <metgerards@student.han.nl>
45856 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
45857 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
45858 to fail instead. Reported by Vincent Pelletier
45859 <subdino2004@yahoo.fr>.
45861 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
45862 it is not allocated. Reported by Vincent Pelletier
45863 <subdino2004@yahoo.fr>.
45865 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
45866 output so the output looks better.
45868 2004-12-04 Marco Gerards <metgerards@student.han.nl>
45870 Modulize the partition map support and add support for the amiga
45873 * commands/ls.c: Include <grub/partition.h> instead of
45874 <grub/machine/partition.h>.
45875 * kern/disk.c: Likewise.
45876 * kern/rescue.c: Likewise.
45877 * loader/i386/pc/chainloader.c: Likewise.
45878 * normal/cmdline.c: Likewise.
45879 * kern/powerpc/ieee1275/init.c: Likewise.
45880 (grub_machine_init): Call `grub_pc_partition_map_init',
45881 `grub_amiga_partition_map_init' and
45882 `grub_apple_partition_map_init'.
45883 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
45884 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
45885 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
45886 `partition.h' and `pc_partition.h'.
45887 (grub_setup_SOURCES): Remove
45888 `disk/i386/pc/partition.c'. Add `kern/partition.c',
45889 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45890 (grub_emu_SOURCES): Likewise.
45891 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
45892 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
45893 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
45894 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45895 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
45896 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45897 (grubof_SOURCES): Likewise.
45898 * disk/i386/pc/partition.c: File removed.
45899 * disk/powerpc/ieee1275/partition.c: Likewise.
45900 * include/grub/powerpc/ieee1275/partition.h: Likewise.
45901 * include/grub/i386/pc/partition.h: Likewise.
45902 * kern/partition.c: New file.
45903 * partmap/amiga.c: Likewise.
45904 * partmap/apple.c: Likewise.
45905 * partmap/pc.c: Likewise.
45906 * include/grub/partition.h: Likewise..
45907 * include/grub/pc_partition.h: Likewise.
45908 * util/grub-emu.c: Include <grub/partition.h> instead of
45909 <grub/machine/partition.h>.
45910 (main): Call `grub_pc_partition_map_init',
45911 `grub_amiga_partition_map_init' and
45912 `grub_apple_partition_map_init' and deinitialize afterwards.
45913 * util/i386/pc/biosdisk.c: Include `#include
45914 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45915 `<grub/machine/partition.h>'.
45916 * util/i386/pc/grub-setup.c: Likewise.
45917 * util/i386/pc/biosdisk.c: Likewise.
45918 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
45919 partition information in case of a PC partition.
45920 * util/i386/pc/grub-setup.c: Include `#include
45921 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45922 `<grub/machine/partition.h>'.
45923 (setup): Only access the PC specific partition information in case
45926 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
45928 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
45929 (grub_longjmp): Likewise.
45930 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
45932 * normal/powerpc/setjmp.S: New file.
45933 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45934 `normal/powerpc/setjmp.S'.
45935 (grubof_CFLAGS): Add `-DGRUBOF'.
45936 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
45937 [GRUB_UTIL && !GRUBOF].
45939 2004-11-16 Marco Gerards <metgerards@student.han.nl>
45941 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
45942 property named `name'. Correctly handle the error returned by
45943 `grub_ieee1275_finddevice' if a device can not be opened.
45945 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
45947 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
45948 `actual' for negativity.
45949 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45952 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45954 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
45955 (PAGE_OFFSET): New macro.
45956 (CRTC_ADDR_PORT): Likewise.
45957 (CRTC_DATA_PORT): Likewise.
45958 (START_ADDR_HIGH_REGISTER): Likewise.
45959 (START_ADDR_LOW_REGISTER): Likewise.
45960 (GRAPHICS_ADDR_PORT): Likewise.
45961 (GRAPHICS_DATA_PORT): Likewise.
45962 (READ_MAP_REGISTER): Likewise.
45963 (INPUT_STATUS1_REGISTER): Likewise.
45964 (INPUT_STATUS1_VERTR_BIT): Likewise.
45965 (page): New variable.
45966 (wait_vretrace): New function.
45967 (set_read_map): Likewise.
45968 (set_start_address): Likewise.
45969 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
45971 (check_vga_mem): Take the page into account.
45972 (write_char): Likewise.
45973 (write_cursor): Likewise.
45974 (scroll_up): Likewise. Copy the page to the page that is not
45975 shown and switch between both pages.
45976 (grub_vga_putchar): Fix off by one error.
45977 (grub_vga_cls): Wait for the vertical retrace. Take the page into
45980 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45982 Add support for iso9660 (including rockridge).
45984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45985 (iso9660_mod_SOURCES): New variable.
45986 (iso9660_mod_CFLAGS): Likewise.
45987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45988 * include/grub/fs.h (grub_iso9660_init): New prototype.
45989 * util/grub-emu.c (main): Call `grub_iso9660_init'.
45990 * fs/iso9660.c: New file.
45992 * include/grub/misc.h (grub_strncat): New prototype.
45993 * kern/misc.c (grub_strncat): New function.
45995 * fs/hfs.c (grub_hfs_mount): Translate the error
45996 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
45997 * fs/jfs.c (grub_jfs_mount): Likewise.
45998 * fs/ufs.c (grub_ufs_mount): Likewise.
46000 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46002 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46003 which initialized BAT registers.
46004 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46005 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46007 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46008 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46010 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46011 (grub_mapclaim): Likewise.
46012 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46013 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46016 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46018 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46019 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46020 -ffreestanding and -msoft-float.
46022 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46024 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46025 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46026 set in grub_ieee1275_flags.
46028 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46030 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46032 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46033 grub_console_init first.
46034 Change the memory range used for grub_ieee1275_claim and
46035 grub_mm_init_region.
46036 Print an error message if the claim fails.
46037 Include <grub/misc.h>.
46039 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46041 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46042 Call grub_children_iterate for device nodes of type `scsi',
46044 (grub_ofdisk_open): Remove manual device alias resolution.
46045 Fix memory leak when device cannot be opened.
46046 * include/grub/powerpc/ieee1275/ieee1275.h
46047 (grub_children_iterate): New prototype.
46048 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46050 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46051 Return -1 if args.size was -1.
46053 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46055 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46056 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46057 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46058 Open Firmware's memory for it; claim memory from _start to _end.
46059 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46060 (_end): New extern.
46061 (_start): Zero BSS from __bss_start to _end.
46062 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46064 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46066 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46068 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46069 -1 if args.base was -1.
46071 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46073 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46074 escape sequence instead of a literal ^L. Also call
46075 grub_ofconsole_gotoxy.
46077 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46079 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46080 void * arguments to grub_addr_t. All callers updated. Also make
46081 the `result' argument optional.
46082 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46083 All callers updated.
46085 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46087 * commands/ls.c (grub_ls_list_files): Use the string following the
46088 initial ')', if present, as the filesystem path.
46089 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46091 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46093 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46095 Make the source code of the menu interface more readable.
46097 * normal/menu.c: Include grub/mm.h.
46098 (TERM_WIDTH): New macro.
46099 (TERM_HEIGHT): Likewise.
46100 (TERM_INFO_HEIGHT): Likewise.
46101 (TERM_MARGIN): Likewise.
46102 (TERM_SCROLL_WIDTH): Likewise.
46103 (TERM_TOP_BORDER_Y): Likewise.
46104 (TERM_LEFT_BORDER_X): Likewise.
46105 (TERM_BORDER_WIDTH): Likewise.
46106 (TERM_MESSAGE_HEIGHT): Likewise.
46107 (TERM_BORDER_HEIGHT): Likewise.
46108 (TERM_NUM_ENTRIES): Likewise.
46109 (TERM_FIRST_ENTRY_Y): Likewise.
46110 (TERM_ENTRY_WIDTH): Likewise.
46111 (TERM_CURSOR_X): Likewise.
46112 (draw_border): Use macros instead of magic numbers.
46113 (print_entry): Likewise.
46114 (print_entries): Likewise.
46115 (run_menu): Likewise. Also, handle the key 'e'.
46116 (run_menu_entry): Ignore empty command lines.
46117 (print_message): Added a new argument EDIT. If EDIT is true,
46118 print a different message.
46119 (init_page): Likewise.
46120 (edit_menu_entry): New function. Not implemented yet.
46122 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46124 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46125 can be loaded from normal mode.
46127 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46129 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46130 (multiboot_mod_CFLAGS): New variables.
46131 * loader/i386/pc/linux_normal.c: New file.
46132 * loader/i386/pc/multiboot_normal.c: Likewise.
46134 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46135 attribute `unused'.
46137 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46138 `fdiro' to read the mode information from instead of `diro'.
46140 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46141 looking up a symlink.
46143 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46145 * normal/command.c (grub_command_execute): Don't parse the
46146 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46147 flags of the command.
46149 * normal/menu.c (grub_menu_run): Fix typo.
46151 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46153 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46155 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46156 `y + 1' instead of `y - 1'.
46158 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46160 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46162 From Hollis Blanchard <hollis@penguinppc.org>:
46163 * kern/misc.c (memmove): New alias for grub_memmove.
46164 (memcmp): New alias for grub_memcmp.
46165 (memset): New alias for grub_memset.
46166 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46167 Change "int handle" to "grub_ieee1275_phandle_t handle".
46168 * include/grub/powerpc/ieee1275/ieee1275.h
46169 (grub_ieee1275_get_property): Likewise.
46171 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46173 Added normal mode command `chainloader' as module chain.mod, which
46174 depends on normal.mod and _chain.mod.
46176 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46177 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46178 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46180 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46181 but arguments parsing moved to ...
46182 (grub_chainloader_cmd): ... here. New function.
46183 * include/grub/i386/pc/chainloader.h: New file.
46184 * loader/i386/pc/chainloader_normal.c: Likewise.
46186 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46188 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46189 (grub_mkimage_LDFLAGS): Likewise.
46190 (grub_emu_SOURCES): Likewise.
46191 (kernel_img_HEADERS): Added fshelp.h.
46192 * fs/ext2.c: Include <grub/fshelp.h>.
46193 (FILETYPE_REG): New macro.
46194 (FILETYPE_INO_REG): Likewise.
46195 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46197 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46199 (grub_fshelp_node): New struct.
46200 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46202 (grub_ext2_get_file_block): Removed function.
46203 (grub_ext2_read_block): New function.
46204 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46205 This function was written.
46206 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46207 (grub_ext2_find_file): Removed function.
46208 (grub_ext2_read_symlink): New function.
46209 (grub_ext2_iterate_dir): Likewise.
46210 (grub_ext2_open): Rewritten.
46211 (grub_ext2_dir): Rewritten.
46212 * include/grub/fshelp.h: New file.
46213 * fs/fshelp.c: Likewise.
46215 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46217 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46218 (print_message): Add a missing newline.
46219 (run_menu): Added timeout support.
46220 (run_menu_entry): New local function.
46221 (grub_menu_run): Added support for booting.
46223 * kern/loader.c (grub_loader_is_loaded): New function.
46225 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46226 (grub_get_rtc): Exported.
46228 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46229 (grub_get_rtc): Exported.
46231 * include/grub/normal.h (struct grub_command_list): Remove
46232 constant from the member `command'.
46234 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46236 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46238 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46240 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46242 Add support for the JFS filesystem.
46244 * fs/jfs.c: New file.
46245 * include/grub/fs.h (grub_jfs_init): New prototype.
46246 (grub_jfs_fini): New prototype.
46247 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46248 (grub_emu_SOURCES): Likewise.
46249 (pkgdata_MODULES): Add jfs.mod.
46250 (jfs_mod_SOURCES): New variable.
46251 (jfs_mod_CFLAGS): Likewise.
46252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46253 (grubof_SOURCES): Likewise.
46254 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46256 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46257 endian to the host endian.
46258 (grub_fat_utf16_to_utf8): Move function from there...
46259 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46260 the endianness of the source string anymore.
46261 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46263 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46265 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46266 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46267 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46268 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46270 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46271 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46272 for `node_found' and `it_dir'.
46273 (grub_hfs_dir): Add prototype for `dir_hook'.
46275 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46276 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46277 and `indir32' to silence a gcc warning.
46279 * include/grub/fs.h (grub_hfs_init): New prototype.
46280 (grub_hfs_fini): Likewise.
46283 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46285 Each disk device has its own id now. This is useful to make use
46286 of multiple disk devices.
46288 * include/grub/disk.h (grub_disk_dev_id): New enum.
46289 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46290 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46292 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46293 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46295 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46296 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46298 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46299 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46301 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46302 "id" which is used by the cache manager.
46304 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46307 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46309 * fs/hfs.c: New file.
46310 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46311 (grub_emu_SOURCES): Likewise.
46312 (pkgdata_MODULES): Add hfs.mod.
46313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46314 (grubof_SOURCES): Likewise.
46315 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46317 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46318 * kern/misc.c (grub_strncasecmp): Add function.
46320 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46322 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46325 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46326 (grub_ext2_dir): In case the directory entry type is unknown, read
46329 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46331 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46332 grub_load_linux instead of grub_rescue_cmd_linux as second
46333 argument of grub_rescue_register_command.
46335 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46337 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46339 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46341 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46342 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46343 `loader/powerpc/ieee1275/linux.c',
46344 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46345 * include/grub/powerpc/ieee1275/ieee1275.h
46346 (grub_ieee1275_release): New prototype.
46347 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46348 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46349 normal, boot, linux and linux_normal.
46350 * loader/powerpc/ieee1275/linux.c: New file.
46351 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46353 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46355 * normal/arg.c (grub_arg_parse): Correct error handling after
46356 reallocating the argumentlist (check if `argl' is not null instead
46357 of checking if `args' is not null).
46358 * kern/mm.c (grub_realloc): Return the same pointer when using the
46359 same region, instead of returning the header address.
46361 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46363 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46364 one block instead of two when looking for the initial partition.
46365 (grub_partition_probe): Initialize the local variable `p' with 0.
46366 Use base 10 for the grub_strtoul call.
46367 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46368 need for one local variable.
46369 (grub_strtoul): Don't add the new value to `num', instead of that
46372 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46374 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46375 (pxeboot_img_SOURCES): New variable.
46376 (pxeboot_img_ASFLAGS): Likewise.
46377 (pxeboot_img_LDFLAGS): Likewise.
46378 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46379 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46380 <lode_leroy@hotmail.com>.
46382 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46384 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46385 there was no input.
46387 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46389 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46390 the history buffer logic.
46392 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46394 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46395 (FILETYPE_INO_SYMLINK): New macros.
46396 (grub_ext2_find_file): Check if the node is a directory using the
46397 inode stat information instead of using the filetype in the
46398 dirent. Exclude the first character of an absolute symlink.
46399 (grub_ext2_dir): Mask out the filetype part of the mode member of
46402 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46404 Add support for UFS version 1 and 2. Add support for the minix
46405 filesystem version 1 and 2, both the variants with 14 and 30 long
46408 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46410 (grub_emu_SOURCES): Likewise.
46411 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46412 (ufs_mod_SOURCES): New variable.
46413 (ufs_mod_CFLAGS): Likewise.
46414 (minix_mod_SOURCES): Likewise.
46415 (minix_mod_CFLAGS): Likewise.
46416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46418 (grubof_SOURCES): Likewise.
46419 * fs/ufs.c: New file.
46420 * fs/minix.c: New file.
46421 * include/grub/fs.h (grub_ufs_init): New prototype.
46422 (grub_ufs_fini): Likewise.
46423 (grub_minix_init): Likewise.
46424 (grub_minix_fini): Likewise.
46425 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46428 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46431 commands/ls.c, commands/terminal.c, commands/boot.c,
46432 commands/cmp.c and commands/cat.c.
46433 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46435 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46438 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46440 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46441 and grub_, respectively. Because the conversion is trivial and
46442 mechanical, I omit the details here. Please refer to the CVS
46443 if you need more information.
46445 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46447 * include/pupa: Renamed to ...
46448 * include/grub: ... this.
46449 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46450 * util/i386/pc/grub-mkimage.c: ... this.
46451 * util/i386/pc/pupa-setup.c: Renamed to ...
46452 * util/i386/pc/grub-setup.c: ... this.
46453 * util/pupa-emu.c: Renamed to ...
46454 * util/grub-emu.c: ... this.
46456 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46458 Add support for the newworld apple macintosh (PPC). This has been
46459 tested on the powerbook 2000 only. It only adds support for
46460 generic ieee1275 functions, console and disk support. This should
46461 be easy to port to other architectures with support for Open
46464 * configure.ac: Accept the powerpc as host_cpu. In the case of
46465 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46466 specific tests are only executed while building for the i386.
46467 Inverse test for crosscompile.
46468 * genmk.rb (Utility): Allow assembler files.
46469 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46470 * conf/powerpc-ieee1275.rmk: New file.
46471 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46472 * disk/powerpc/ieee1275/partition.c: Likewise.
46473 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46474 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46475 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46476 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46477 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46478 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46479 * include/pupa/powerpc/ieee1275/loader.h
46480 * include/pupa/powerpc/setjmp.h: Likewise.
46481 * include/pupa/powerpc/types.h: Likewise.
46482 * kern/powerpc/ieee1275/init.c: Likewise.
46483 * kern/powerpc/ieee1275/openfw.c: Likewise.
46484 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46486 These files were written by Johan Rydberg
46487 (jrydberg@night.trouble.net) and I only modified them slightly.
46489 * boot/powerpc/ieee1275/cmain.c: New file.
46490 * boot/powerpc/ieee1275/crt0.S: Likewise.
46491 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46492 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46494 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46496 * Makefile.in: Update copyright.
46497 * genmodsrc.sh: Likewise.
46498 * gensymlist.sh: Likewise.
46499 * term/i386/pc/vga.c: Indent correctly.
46501 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46502 bugreporting address.
46503 * util/i386/pc/pupa-setup.c (usage): Likewise,
46504 (main): Call pupa_ext2_init and pupa_ext2_fini.
46506 * fs/fat.c (log2): Renamed to ...
46507 (fat_log2): ... this.
46508 All callers changed.
46509 * kern/misc.c (memcpy): Alias to pupa_memmove.
46510 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46512 * util/console.c (pupa_ncurses_fini): Return 0.
46514 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46515 Move fail label here.
46516 [__GNU__]: Don't warn when using stat.
46517 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46518 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46519 long int. Use strtol instead of strtoul.
46521 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46523 * commands/boot.c: New file.
46524 * commands/cat.c: Likewise.
46525 * commands/cmp.c: Likewise.
46526 * commands/ls.c: Likewise.
46527 * commands/terminal.c: Likewise.
46528 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46529 (pupa_register_command): Changed interface to match the new
46531 (pupa_command_execute): Changed (almost rewritten) so it uses
46532 pupa_split_command. Added support for setting variables using the
46534 (rescue_command): Changed to work with the new argument parser.
46535 (terminal_command): Moved from here to commands/terminal.c.
46536 (set_command): New function.
46537 (unset_command): New function.
46538 (insmod_command): New function.
46539 (rmmod_command): New function.
46540 (lsmod_command): New function.
46541 (pupa_command_init): Don't initialize the command terminal
46542 anymore. Initialize the commands set, unset, insmod, rmmod and
46544 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46545 (kernel_img_HEADERS): Add arg.h and env.h.
46546 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46547 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46548 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46550 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46552 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46553 (boot_mod_SOURCES): New variable.
46554 (terminal_mod_SOURCES): Likewise.
46555 (ls_mod_SOURCES): Likewise.
46556 (cmp_mod_SOURCES): Likewise.
46557 (cat_mod_SOURCES): Likewise.
46559 * normal/arg.c: New file.
46560 * kern/env.c: Likewise.
46561 * include/pupa/arg.h: Likewise.
46562 * include/pupa/env.h: Likewise.
46563 * font/manager.c (font_command): Changed to match argument parsing
46565 (PUPA_MOD_INIT): Likewise.
46566 * hello/hello.c (pupa_cmd_hello): Likewise.
46567 (PUPA_MOD_INIT): Likewise.
46568 * include/pupa/disk.h: Include <pupa/device.h>.
46569 (pupa_print_partinfo): New prototype.
46570 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46571 (pupa_dl_get_prefix): Likewise.
46572 * include/pupa/misc.h: Include <pupa/err.h>.
46573 (pupa_isgraph): New prototype.
46574 (pupa_isdigit): Likewise.
46575 (pupa_split_cmdline): Likewise.
46576 * include/pupa/normal.h: Include <pupa/arg.h>.
46577 (pupa_command): Changed the prototype of the member `func' to
46578 match the argument parsing interface. Added member `options'.
46579 (pupa_register_command): Updated to match function.
46580 (pupa_arg_parse): New prototype.
46581 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46582 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46583 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46584 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46585 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46586 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46587 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46588 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46589 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46590 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46591 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46592 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46593 * kern/disk.c: Include <pupa/file.h>.
46594 (pupa_print_partinfo): New function.
46595 * kern/dl.c: Include <pupa/env.h>.
46596 (pupa_dl_dir): Variable removed.
46597 (pupa_dl_load): Use the environment variable `prefix' instead of
46598 the variable pupa_dl_dir.
46599 (pupa_dl_set_prefix): Function removed.
46600 (pupa_dl_get_prefix): Likewise.
46601 * kern/i386/pc/init.c: Include <pupa/env.h>.
46602 (pupa_machine_init): Use the environment variable `prefix' instead of
46603 using pupa_dl_set_prefix to set the prefix.
46604 * kern/main.c: Include <pupa/env.h>.
46605 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46606 using pupa_dl_get_prefix to get the prefix.
46607 * kern/misc.c: Include <pupa/env.h>.
46608 (pupa_isdigit): New function.
46609 (pupa_isgraph): Likewise.
46610 (pupa_ftoa): Likewise.
46611 (pupa_vsprintf): Added support for printing values of the type
46612 `double'. Make it possible to format variable output when using
46613 formatting like `%1.2%f'.
46614 (pupa_split_cmdline): New function.
46615 * kern/rescue.c: Include <pupa/env.h>.
46616 (next_word): Removed function.
46617 (pupa_rescue_cmd_prefix): Likewise.
46618 (pupa_rescue_cmd_set): New function.
46619 (pupa_rescue_cmd_unset): New function.
46620 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46621 split the command line instead of splitting it here. Added
46622 support for setting variables using the syntax `foo=bar'. Don't
46623 initialize the prefix command anymore. Initialized the set and
46625 * normal/cmdline.c: Include <pupa/env.h>.
46626 (pupa_tab_complete): Added prototypes for print_simple_completion,
46627 print_partition_completion, add_completion, iterate_commands,
46628 iterate_dev, iterate_part and iterate_dir. Moved code to print
46629 partition information from here to kern/disk.c.
46630 (pupa_cmdline_run): Don't check if the function exists anymore.
46631 * normal/main.c: Include <pupa/env.h>.
46632 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46633 instead of using pupa_dl_get_prefix to get the prefix.
46634 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46635 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46637 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46638 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46639 ((unused))' to silence a gcc warning.
46640 (pupa_vga_setcolor): Likewise.
46641 (debug_command): Changed to match argument parsing
46643 * util/pupa-emu.c: Include <pupa/env.h>.
46644 (options): Added 0's for unused fields to silence a gcc warning.
46646 (main): Use the environment variable `prefix' instead of using
46647 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
46648 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
46651 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
46652 * util/misc.c: Include <malloc.h>.
46653 (pupa_malloc): Rewritten so errors are correctly reported.
46654 (pupa_realloc): Likewise.
46655 (pupa_memalign): Likewise.
46656 (pupa_mm_init_region): Declare unused variables with
46657 `__attribute__ ((unused))' to silence a gcc warning.
46658 * normal/i386/setjmp.S: Remove tab at the end of the file to
46659 silence a gcc warning.
46660 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
46661 variables with `__attribute__ ((unused))' to silence a gcc
46663 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
46664 local variable i unsigned to silence a gcc warning.
46666 * kern/term.c: Include <pupa/misc.h>.
46667 (pupa_more_lines): New variable.
46668 (pupa_more): Likewise.
46669 (pupa_putcode): When the pager is active pause at the end of every
46671 (pupa_set_more): New function.
46672 * include/pupa/term.h (pupa_set_more): New prototype.
46675 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
46677 Now this project is GRUB 2 rather than PUPA. The location of
46678 the CVS repository was moved to GRUB's.
46680 * configure.ac: Use bug-grub as the reporting address.
46681 Use GRUB instead of PUPA.
46682 Change the version number to 1.90.
46684 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
46686 * genkernsyms.sh: Updated copyright information.
46687 * genmk.rb: Likewise.
46688 * genmodsrc.sh: Likewise.
46689 * gensymlist.sh: Likewise.
46690 * boot/i386/pc/boot.S: Likewise.
46691 * boot/i386/pc/diskboot.S: Likewise.
46692 * disk/i386/pc/biosdisk.c: Likewise.
46693 * disk/i386/pc/partition.c: Likewise.
46694 * font/manager.c: Likewise.
46695 * fs/ext2.c: Likewise.
46696 * fs/fat.c: Likewise.
46697 * include/pupa/boot.h: Likewise.
46698 * include/pupa/device.h: Likewise.
46699 * include/pupa/disk.h: Likewise.
46700 * include/pupa/dl.h: Likewise.
46701 * include/pupa/elf.h: Likewise.
46702 * include/pupa/err.h: Likewise.
46703 * include/pupa/file.h: Likewise.
46704 * include/pupa/font.h: Likewise.
46705 * include/pupa/fs.h: Likewise.
46706 * include/pupa/kernel.h: Likewise.
46707 * include/pupa/loader.h: Likewise.
46708 * include/pupa/misc.h: Likewise.
46709 * include/pupa/mm.h: Likewise.
46710 * include/pupa/net.h: Likewise.
46711 * include/pupa/normal.h: Likewise.
46712 * include/pupa/rescue.h: Likewise.
46713 * include/pupa/setjmp.h: Likewise.
46714 * include/pupa/symbol.h: Likewise.
46715 * include/pupa/term.h: Likewise.
46716 * include/pupa/types.h: Likewise.
46717 * include/pupa/i386/setjmp.h: Likewise.
46718 * include/pupa/i386/types.h: Likewise.
46719 * include/pupa/i386/pc/biosdisk.h: Likewise.
46720 * include/pupa/i386/pc/boot.h: Likewise.
46721 * include/pupa/i386/pc/console.h: Likewise.
46722 * include/pupa/i386/pc/init.h: Likewise.
46723 * include/pupa/i386/pc/kernel.h: Likewise.
46724 * include/pupa/i386/pc/linux.h: Likewise.
46725 * include/pupa/i386/pc/loader.h: Likewise.
46726 * include/pupa/i386/pc/memory.h: Likewise.
46727 * include/pupa/i386/pc/multiboot.h: Likewise.
46728 * include/pupa/i386/pc/partition.h: Likewise.
46729 * include/pupa/i386/pc/time.h: Likewise.
46730 * include/pupa/i386/pc/vga.h: Likewise.
46731 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
46732 * include/pupa/util/getroot.h: Likewise.
46733 * include/pupa/util/misc.h: Likewise.
46734 * include/pupa/util/resolve.h: Likewise.
46735 * kern/device.c: Likewise.
46736 * kern/disk.c: Likewise.
46737 * kern/dl.c: Likewise.
46738 * kern/err.c: Likewise.
46739 * kern/file.c: Likewise.
46740 * kern/fs.c: Likewise.
46741 * kern/loader.c: Likewise.
46742 * kern/main.c: Likewise.
46743 * kern/misc.c: Likewise.
46744 * kern/mm.c: Likewise.
46745 * kern/rescue.c: Likewise.
46746 * kern/term.c: Likewise.
46747 * kern/i386/dl.c: Likewise.
46748 * kern/i386/pc/init.c: Likewise.
46749 * kern/i386/pc/lzo1x.S: Likewise.
46750 * kern/i386/pc/startup.S: Likewise.
46751 * loader/i386/pc/chainloader.c: Likewise.
46752 * loader/i386/pc/linux.c: Likewise.
46753 * loader/i386/pc/multiboot.c: Likewise.
46754 * normal/cmdline.c: Likewise.
46755 * normal/command.c: Likewise.
46756 * normal/main.c: Likewise.
46757 * normal/menu.c: Likewise.
46758 * normal/i386/setjmp.S: Likewise.
46759 * term/i386/pc/console.c: Likewise.
46760 * term/i386/pc/vga.c: Likewise.
46761 * util/console.c: Likewise.
46762 * util/genmoddep.c: Likewise.
46763 * util/misc.c: Likewise.
46764 * util/pupa-emu.c: Likewise.
46765 * util/resolve.c: Likewise.
46766 * util/unifont2pff.rb: Likewise.
46767 * util/i386/pc/biosdisk.c: Likewise.
46768 * util/i386/pc/getroot.c: Likewise.
46769 * util/i386/pc/pupa-mkimage.c: Likewise.
46770 * util/i386/pc/pupa-setup.c: Likewise.
46772 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
46774 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
46775 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
46776 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
46777 reading and reset it after reading.
46778 (pupa_ext2_close): Return PUPA_ERR_NONE.
46780 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
46782 (struct linux_kernel_header): Add kernel_version and
46784 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
46785 pupa_file_read succeeds.
46786 (pupa_rescue_cmd_initrd): Implement.
46788 2003-12-03 Marco Gerards <metgerards@student.han.nl>
46790 * fs/ext2.c (pupa_ext2_label): New function.
46791 (pupa_ext2_fs): Added label.
46792 * fs/fat.c (pupa_fat_label): New function.
46793 (pupa_fat_fs): Added label.
46794 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
46796 * kern/misc.c (pupa_strndup): New function.
46797 * include/pupa/misc.h (pupa_strndup): New prototype.
46799 * include/pupa/normal.h: Include <pupa/err.h>.
46800 (pupa_set_history): New prototype.
46801 (pupa_iterate_commands): New prototype.
46802 * normal/cmdline.c: Include <pupa/machine/partition.h>,
46803 <pupa/disk.h>, <pupa/file.h>.
46804 (hist_size): New variable.
46805 (hist_lines): Likewise.
46806 (hist_end): Likewise.
46807 (hist_used): Likewise.
46808 (pupa_set_history): New function.
46809 (pupa_history_get): Likewise.
46810 (pupa_history_add): Likewise.
46811 (pupa_history_replace): Likewise.
46812 (pupa_tab_complete): Likewise.
46813 (pupa_cmdline_run): Added tab completion and history buffer. Tab
46814 completion shows partitionnames while completing partitions, this
46815 feature was suggested by Jeff Bailey.
46816 * normal/command.c (pupa_iterate_commands): New function.
46817 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
46818 (pupa_normal_init): Initialize history buffer.
46819 (PUPA_MOD_INIT): Likewise.
46820 (pupa_normal_fini): Free the history buffer.
46821 (PUPA_MOD_FINI): Likewise.
46823 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
46826 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
46827 * configure.ac [i386]: Check for regparam bug.
46828 (NESTED_FUNC_ATTR) [! i386]: Defined.
46830 2003-11-17 Marco Gerards <metgerards@student.han.nl>
46832 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
46833 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
46834 (pupa_emu_SOURCES): New variable.
46835 (pupa_emu_LDFLAGS): Likewise.
46836 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
46837 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
46838 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
46839 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46840 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
46841 (pupa_jmp_buf): New typedef.
46842 (pupa_setjmp) [PUPA_UTIL]: New macro.
46843 (pupa_longjmp) [PUPA_UTIL]: Likewise.
46844 * include/pupa/term.h (struct pupa_term): New member `refresh'.
46845 (pupa_refresh): New prototype.
46846 * include/pupa/util/getroot.h: New file.
46847 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
46849 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
46850 (pupa_rescue_cmd_cat): Likewise.
46851 (pupa_rescue_cmd_ls): Likewise.
46852 (pupa_rescue_cmd_testload): Likewise.
46853 (pupa_rescue_cmd_lsmod): Likewise.
46854 * normal/cmdline.c (pupa_cmdline_get): Likewise.
46855 * normal/menu.c (run_menu): Likewise.
46856 * kern/term.c (pupa_cls): Likewise.
46857 (pupa_refresh): New function.
46858 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
46859 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46860 * util/console.c: New file.
46862 * util/i386/pc/getroot.c: New file.
46863 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
46864 (pupa_putchar): New function.
46865 (pupa_refresh): Likewise.
46866 (xgetcwd): Function moved to ...
46867 (strip_extra_slashes): Likewise.
46868 (get_prefix): Likewise.
46869 * util/i386/pc/getroot.c: ... here.
46870 (find_root_device): Function moved and renamed to...
46871 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
46872 Changed all callers.
46873 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
46875 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
46876 Changed all callers.
46877 * util/misc.c (pupa_memalign): New function.
46878 (pupa_mm_init_region): Likewise.
46879 (pupa_register_exported_symbols): Likewise.
46880 (pupa_putchar): Function removed.
46881 * util/pupa-emu.c: New file.
46883 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
46885 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
46886 (_multiboot_mod_SOURCES): New variable.
46887 (_multiboot_mod_CFLAGS): Likewise.
46888 * loader/i386/pc/multiboot.c: New file.
46889 * include/pupa/i386/pc/multiboot.h: Likewise.
46890 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
46891 (pupa_multiboot_real_boot): New function.
46892 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
46893 (pupa_multiboot_real_boot): New prototype.
46894 (pupa_rescue_cmd_multiboot): Likewise
46895 (pupa_rescue_cmd_module): Likewise.
46897 * kern/loader.c (pupa_loader_set): Continue when
46898 pupa_loader_unload_func() fails.
46899 (pupa_loader_unset): New function.
46900 * include/pupa/loader.h (pupa_loader_unset): New prototype.
46902 * kern/misc.c (pupa_stpcpy): New function.
46903 * include/pupa/misc.h (pupa_stpcpy): New prototype.
46905 2003-11-12 Marco Gerards <metgerards@student.han.nl>
46907 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
46908 for available extensions.
46910 * include/pupa/i386/pc/time.h: New file.
46911 * kern/disk.c: Include <pupa/machine/time.h>.
46912 (PUPA_CACHE_TIMEOUT): New macro.
46913 (pupa_last_time): New variable.
46914 (pupa_disk_open): Flush the cache when there was a timeout.
46915 (pupa_disk_close): Reset the timer.
46916 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
46918 * util/misc.c: Include <sys/times.h>
46919 (pupa_get_rtc): New function.
46921 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
46923 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
46925 (pupa_ext2_get_file_block): Use blocks member.
46927 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
46928 first block. Return -1 instead of pupa_errno on error.
46930 2003-10-27 Marco Gerards <metgerards@student.han.nl>
46932 * README: In the pupa-mkimage example use _chain instead of chain
46933 and ext2 instead of fat.
46934 * TODO: Replace ext2fs with jfs as an example. Add an item for
46935 adding journal playback for ext2fs.
46936 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
46937 (pkgdata_MODULES): Added ext2.mod.
46938 (ext2_mod_SOURCES): New variable.
46939 (ext2_mod_CFLAGS): Likewise.
46940 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
46941 * include/pupa/misc.h (pupa_strncpy): New prototype.
46942 (pupa_strcat): Likewise.
46943 (pupa_strncmp): Likewise.
46944 * kern/misc.c (pupa_strcat): Enable function.
46945 (pupa_strncpy): New function.
46946 (pupa_strncmp): Likewise.
46947 * fs/ext2.c: New file.
46949 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
46950 when the read failed before retrying.
46951 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
46952 (_FILE_OFFSET_BITS): Likewise.
46953 * configure.ac: Added AC_SYS_LARGEFILE.
46955 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46957 * genmk.rb (PModule#rule): Make sure to get only symbol names
46958 from the output of nm.
46959 Reported by Robert Millan <rmh.grub@aybabtu.com>.
46961 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46963 I forgot to check in these changes for a long time. This adds
46964 incomplete support for VGA console, and this is still very
46965 buggy. Also, a lot of consideration is required for I18N,
46966 UNICODE, and VGA font issues. Therefore, assume that this is
46967 such that "better than nothing".
46969 * font/manager.c: New file.
46970 * include/pupa/font.h: Likewise.
46971 * include/pupa/i386/pc/vga.h: Likewise.
46972 * term/i386/pc/vga.c: Likewise.
46973 * util/unifont2pff.rb: Likewise.
46975 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
46976 (pkgdata_MODULES): Added vga.mod and font.mod.
46977 (vga_mod_SOURCES): New variables.
46978 (vga_mod_CFLAGS): Likewise.
46979 (font_mod_SOURCES): Likewise.
46980 (font_mod_CFLAGS): Likewise.
46982 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
46984 * include/pupa/term.h: Include pupa/err.h.
46985 (struct pupa_term): Added init and fini.
46986 Changed the argument of putchar to pupa_uint32_t.
46988 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
46989 (pupa_console_real_putchar): New prototype.
46990 (pupa_console_putchar): Removed.
46991 (pupa_console_checkkey): Exported.
46992 (pupa_console_getkey): Likewise.
46994 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
46997 * kern/term.c (pupa_term_set_current): Rewritten.
46998 (pupa_putchar): Likewise.
46999 (pupa_putcode): New function.
47001 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47002 (pupa_console_real_putchar): ... this.
47003 (pupa_vga_set_mode): New function.
47004 (pupa_vga_get_font): Likewise.
47006 * normal/command.c: Include pupa/term.h.
47007 (terminal_command): New function.
47008 (pupa_command_init): Register the command "terminal".
47010 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47011 (DISP_UP): Likewise.
47012 (DISP_RIGHT): Likewise.
47013 (DISP_DOWN): Likewise.
47014 (DISP_HLINE): Likewise.
47015 (DISP_VLINE): Likewise.
47016 (DISP_UL): Likewise.
47017 (DISP_UR): Likewise.
47018 (DISP_LL): Likewise.
47019 (DISP_LR): Likewise.
47021 * term/i386/pc/console.c (pupa_console_putchar): New function.
47023 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47025 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47026 FIX. Reverse the path_list.
47028 * include/pupa/normal.h: Export pupa_register_command and
47029 pupa_unregister_command.
47031 * hello/hello.c (pupa_cmd_hello): New module.
47032 * conf/i386-pc.rmk: Added hello.mod.
47034 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47036 * kern/i386/pc/lzo1x.S: New file.
47038 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47039 (compress_kernel): New variable.
47040 (generate_image): Heavily modified to support compressing a
47041 large part of the core image.
47043 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47045 (pupa_util_load_image): New function.
47047 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47048 (pupa_compressed_size): New variable.
47049 (codestart): Enable Gate A20 here.
47050 Decompress the compressed part of the core image.
47051 Rearrange the code to put functions and variables which are
47052 required for initialization in the non-compressed part.
47055 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47058 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47060 * include/pupa/i386/pc/kernel.h
47061 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47062 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47063 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47064 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47065 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47067 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47069 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47070 (Utility#rule): Likewise.
47072 * configure.ac: Check if LZO is available.
47074 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47076 * include/pupa/normal.h: New file.
47077 * include/pupa/setjmp.h: Likewise.
47078 * include/pupa/i386/setjmp.h: Likewise.
47079 * normal/cmdline.c: Likewise.
47080 * normal/command.c: Likewise.
47081 * normal/main.c: Likewise.
47082 * normal/menu.c: Likewise.
47083 * normal/i386/setjmp.S: Likewise.
47085 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47086 (pupa_rescue_cmd_initrd): Likewise.
47088 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47091 * kern/i386/pc/startup.S (translation_table): New variable.
47092 (translate_keycode): New function.
47093 (pupa_console_getkey): Call translate_keycode.
47095 * kern/rescue.c (attempt_normal_mode): New function.
47096 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47097 it failed, print a message.
47099 * kern/mm.c (pupa_real_malloc): Print more information when a
47100 free magic is broken.
47101 (pupa_free): If the first free header is not free actually, set
47104 * kern/main.c (pupa_load_normal_mode): Just load the module
47106 (pupa_main): Don't print the message
47107 "Entering into rescue mode..." here.
47109 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47111 (pupa_rescue_cmd_initrd): Likewise.
47112 (pupa_rescue_cmd_initrd): Likewise.
47114 * include/pupa/symbol.h (FUNCTION): Specify the type.
47115 (VARIABLE): Likewise.
47117 * include/pupa/err.h (pupa_err_t): Added
47118 PUPA_ERR_UNKNOWN_COMMAND.
47120 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47121 (pupa_dl_get_prefix): Likewise.
47123 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47124 Added _chain.mod and _linux.mod instead of chain.mod and
47126 (chain_mod_SOURCES): Renamed to ...
47127 (_chain_mod_SOURCES): ... this.
47128 (chain_mod_CFLAGS): Renamed to ...
47129 (_chain_mod_CFLAGS): ... this.
47130 (linux_mod_SOURCES): Renamed to ...
47131 (_linux_mod_SOURCES): ... this.
47132 (linux_mod_CFLAGS): Renamed to ...
47133 (_linux_mod_CFLAGS): ... this.
47134 (normal_mod_SOURCES): New variable.
47135 (normal_mod_CFLAGS): Likewise.
47136 (normal_mod_ASFLAGS): Likewise.
47138 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47140 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47143 * kern/dl.c (pupa_dl_ref): Refer depending modules
47145 (pupa_dl_unref): Unrefer depending modules recursively.
47146 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47147 a module is unloaded before one depending on that module is
47149 (pupa_dl_unload): Unload depending modules explicitly,
47152 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47154 * include/pupa/i386/pc/linux.h: New file.
47155 * loader/i386/pc/linux.c: Likewise.
47157 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47159 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47160 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47161 of PUPA_CHAINLOADER_BOOT_SECTOR.
47163 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47164 (pupa_linux_prot_size): New variable.
47165 (pupa_linux_tmp_addr): Likewise.
47166 (pupa_linux_real_addr): Likewise.
47167 (pupa_linux_boot_zimage): New function.
47168 (pupa_linux_boot_bzimage): Likewise.
47170 * kern/i386/pc/init.c (struct mem_region): New structure.
47171 (MAX_REGIONS): New macro.
47172 (mem_regions): New variable.
47173 (num_regions): Likewise.
47174 (pupa_os_area_addr): Likewise.
47175 (pupa_os_area_size): Likewise.
47176 (pupa_lower_mem): Likewise.
47177 (pupa_upper_mem): Likewise.
47178 (add_mem_region): New function.
47179 (compact_mem_regions): Likewise.
47180 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47181 the size of the conventional memory and that of so-called upper
47182 memory (before the first memory hole).
47183 Instead of adding each found region to free memory, use
47184 add_mem_region and add them after removing overlaps.
47185 Also, add only 1/4 of the upper memory to free memory. The rest
47186 is used for loading OS images. Maybe this is ad hoc, but this
47187 makes it much easier to relocate OS images when booting.
47189 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47190 (pupa_enter_rescue_mode): Don't register initrd and module.
47192 * kern/mm.c: Include pupa/dl.h.
47194 * kern/main.c: Include pupa/file.h and pupa/device.h.
47196 * kern/loader.c (pupa_loader_load_module_func): Removed.
47197 (pupa_loader_load_module): Likewise.
47199 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47202 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47203 (pupa_linux_tmp_addr): Likewise.
47204 (pupa_linux_real_addr): Likewise.
47205 (pupa_linux_boot_zimage): Likewise.
47206 (pupa_linux_boot_bzimage): Likewise.
47208 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47209 (pupa_upper_mem): Likewise.
47210 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47211 module is too dangerous.
47213 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47214 (pupa_os_area_size): Likewise.
47215 (pupa_loader_set): Remove the first argument. Loader doesn't
47216 manage modules or initrd any longer.
47217 (pupa_loader_load_module): Removed.
47219 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47220 (linux_mod_SOURCES): New variable.
47221 (linux_mod_CFLAGS): Likewise.
47223 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47225 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47226 the length of a blocklist correctly.
47228 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47229 Use ioctl only if the OS file is a block device.
47230 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47231 not very useful for normal files.
47233 * kern/main.c (pupa_set_root_dev): New function.
47234 (pupa_load_normal_mode): Likewise.
47235 (pupa_main): Call those above.
47237 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47240 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47242 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47244 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47245 (setup): Configure the installed partition information and the
47248 * loader/i386/pc/chainloader.c (my_mod): New variable.
47249 (pupa_chainloader_unload): New function.
47250 (pupa_rescue_cmd_chainloader): Refer itself.
47251 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47253 * kern/i386/pc/startup.S (install_partition): Removed.
47254 (version_string): Likewise.
47255 (config_file): Likewise.
47256 (pupa_install_dos_part): New variable.
47257 (pupa_install_bsd_part): Likewise.
47258 (pupa_prefix): Likewise.
47259 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47261 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47263 (make_install_device): New function.
47264 (pupa_machine_init): Set the dl prefix.
47266 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47267 (buf): Renamed to ...
47268 (linebuf): ... this.
47269 (pupa_rescue_cmd_prefix): New function.
47270 (pupa_rescue_cmd_insmod): Likewise.
47271 (pupa_rescue_cmd_rmmod): Likewise.
47272 (pupa_rescue_cmd_lsmod): Likewise.
47273 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47276 * kern/mm.c (pupa_memalign): If failed even after invalidating
47277 disk caches, unload unneeded modules and retry.
47279 * kern/misc.c (pupa_memmove): New function.
47280 (pupa_memcpy): Removed.
47281 (pupa_strcpy): New function.
47282 (pupa_itoa): Made static.
47284 * kern/dl.c (pupa_dl_iterate): New function.
47285 (pupa_dl_ref): Likewise.
47286 (pupa_dl_unref): Likewise.
47287 (pupa_dl_unload): Return if succeeded or not.
47288 (pupa_dl_unload_unneeded): New function.
47289 (pupa_dl_unload_all): Likewise.
47290 (pupa_dl_init): Renamed to ...
47291 (pupa_dl_set_prefix): ... this.
47292 (pupa_dl_get_prefix): New function.
47294 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47295 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47296 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47297 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47298 (pupa_install_dos_part): Declared.
47299 (pupa_install_bsd_part): Likewise.
47300 (pupa_prefix): Likewise.
47301 (pupa_boot_drive): Likewise.
47303 * include/pupa/types.h: Fix a typo.
47305 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47307 (pupa_memmove): Declared.
47308 (pupa_strcpy): Likewise.
47310 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47311 pupa_mod_init takes one argument, its own module.
47312 (pupa_dl_unload_unneeded): Declared.
47313 (pupa_dl_unload_all): Likewise.
47314 (pupa_dl_ref): Likewise.
47315 (pupa_dl_unref): Likewise.
47316 (pupa_dl_iterate): Likewise.
47317 (pupa_dl_init): Renamed to ...
47318 (pupa_dl_set_prefix): ... this.
47319 (pupa_dl_get_prefix): Declared.
47321 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47322 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47324 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47325 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47327 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47328 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47330 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47332 * util/i386/pc/pupa-setup.c (setup): Define the internal
47333 function find_first_partition_start at the top level, because GCC
47334 3.0.x cannot compile internal functions in deeper scopes
47336 (find_root_device): Use lstat instead of stat.
47337 Don't follow symbolic links.
47338 Fix the path-constructing code.
47340 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47341 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47342 by a BLKGETSIZE ioctl first, because block devices don't fill
47343 the member st_mode of the structure stat on Linux.
47344 [__linux__] (linux_find_partition): Use a temporary buffer
47345 REAL_DEV for the working space. Copy it to DEV before returning.
47346 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47347 buffer cache consistent.
47348 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47349 strncmp. The previous value was merely wrong.
47350 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47352 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47353 FAT size is 12. The previous value was merely wrong.
47355 * kern/main.c (pupa_main): Don't split the starting message from
47358 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47359 LF, because BIOS goes crazy about character attributes in this
47362 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47364 * include/i386/pc/util/biosdisk.h: New file.
47365 * util/i386/pc/biosdisk.c: Likewise.
47366 * util/i386/pc/pupa-setup.c: Likewise.
47368 * Makefile.in (INCLUDE_DISTFILES): Added
47369 include/pupa/i386/pc/util/biosdisk.h.
47370 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47371 directory util/i386/pc.
47372 (install-local): Added a rule for sbin_UTILITIES.
47373 (uninstall): Likewise.
47375 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47377 * util/misc.c (xrealloc): New function.
47378 (pupa_malloc): Likewise.
47379 (pupa_free): Likewise.
47380 (pupa_realloc): Likewise.
47381 (pupa_stop): Likewise.
47382 (pupa_putchar): Likewise.
47384 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47386 * include/pupa/util/misc.h (xrealloc): Declared.
47388 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47390 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47391 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47393 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47394 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47396 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47397 way should be implemented.
47398 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47400 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47401 the size of NAME for safety.
47402 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47405 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47406 (pupa_setup_SOURCES): Likewise.
47408 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47410 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47412 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47413 bunch of pushl's from pusha, because this destroys the return
47416 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47418 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47419 This means that any missing prototypes could be fatal. Also, you
47420 must take care when writing assembly code. See the comments at
47421 the beginning of startup.S, for more details.
47423 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47424 compilation mechanism.
47425 (pupa_chainloader_real_boot): Likewise.
47426 (pupa_biosdisk_rw_int13_extensions): Likewise.
47427 (pupa_biosdisk_rw_standard): Likewise.
47428 (pupa_biosdisk_check_int13_extensions): Likewise.
47429 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47430 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47431 (pupa_get_memsize): Likewise.
47432 (pupa_get_mmap_entry): Likewise.
47433 (pupa_console_putchar): Likewise.
47434 (pupa_console_setcursor): Likewise.
47435 (pupa_getrtsecs): Use pushl instead of push.
47437 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47438 memory instead of the stack for a mmap entry, because some
47439 BIOSes may ignore the maximum size and overflow.
47441 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47443 * genmk.rb (PModule#rule): Compile automatically generated
47444 sources with module-specific CFLAGS as well as other sources.
47446 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47448 * configure.ac: Check ld.
47449 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47450 respectively, before checking endianness and sizes.
47452 * Makefile.in (LD): New variable.
47454 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47456 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47458 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47460 * Changelog: New file.