]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Remove nested functions from device iterators.
[grub2.git] / ChangeLog
1 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2
3 Remove nested functions from device iterators.
4
5 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
6 (grub_arc_iterate_devs): Add hook_data argument.
7 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
8 (struct grub_ata_dev.iterate): Add hook_data argument.
9 * include/grub/device.h (grub_device_iterate_hook_t): New type.
10 (grub_device_iterate): Add hook_data argument.
11 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
12 (struct grub_disk_dev.iterate): Add hook_data argument.
13 (grub_disk_dev_iterate): Likewise.
14 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
15 Likewise.
16 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
17 Likewise.
18 * include/grub/partition.h (grub_partition_iterate_hook_t): New
19 type.
20 (struct grub_partition_map.iterate): Add hook_data argument.
21 (grub_partition_iterate): Likewise.
22 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
23 (struct grub_scsi_dev.iterate): Add hook_data argument.
24
25 Update all callers.
26
27 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
28
29 Fix typos for "developer" and "development".
30
31 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
32
33 Add license header to spkmodem-recv.c.
34
35 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
36
37 Rewrite spkmodem to use PIT for timing. Double the speed.
38
39 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
40
41 Add new command pcidump.
42
43 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
44
45 New terminal outputs using serial: morse and spkmodem.
46
47 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
48
49 Improve bidi handling in entry editor.
50
51 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
54 argument to prevent name collision.
55
56 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
57
58 Remove nested functions from script reading and parsing.
59
60 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
61 getline_data argument, passed to getline.
62 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
63 getline_data argument, passed to grub_parser_split_cmdline.
64 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
65 lexerstate->getline_data to lexerstate->getline.
66 (grub_script_lexer_init): Add getline_data argument, saved in
67 lexerstate->getline_data.
68 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
69 argument, passed to grub_script_parse.
70 * grub-core/script/script.c (grub_script_parse): Add getline_data
71 argument, passed to grub_script_lexer_init.
72 * include/grub/parser.h (grub_parser_split_cmdline): Update
73 prototype. Update all callers to pass appropriate getline data.
74 (struct grub_parser.parse_line): Likewise.
75 (grub_rescue_parse_line): Likewise.
76 * include/grub/reader.h (grub_reader_getline_t): Add void *
77 argument.
78 * include/grub/script_sh.h (struct grub_lexer_param): Add
79 getline_data member.
80 (grub_script_parse): Update prototype. Update all callers to pass
81 appropriate getline data.
82 (grub_script_lexer_init): Likewise.
83 (grub_normal_parse_line): Likewise.
84
85 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
86 data argument.
87 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
88 static instead of nested. Rename to ...
89 (grub_parser_execute_getline): ... this.
90 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
91 data argument.
92 * grub-core/normal/main.c (read_config_file: getline): Make static
93 instead of nested. Rename to ...
94 (read_config_file_getline): ... this.
95 (grub_normal_read_line): Add unused data argument.
96 * grub-core/script/execute.c (grub_script_execute_sourcecode:
97 getline): Make static instead of nested. Rename to ...
98 (grub_script_execute_sourcecode_getline): ... this.
99 * util/grub-script-check.c (main: get_config_line): Make static
100 instead of nested.
101
102 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
103
104 Remove nested functions from memory map iterators.
105
106 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
107 argument, passed to hook.
108 * grub-core/kern/i386/coreboot/mmap.c
109 (grub_linuxbios_table_iterate): Likewise.
110 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
111 instead of nested.
112 (grub_machine_mmap_iterate): Add hook_data argument.
113 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
114 Add hook_data argument, passed to hook.
115 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
116 Likewise.
117 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
118 Likewise.
119 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
120 Likewise.
121 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
122 Likewise.
123 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
124 Likewise.
125 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
126 Likewise.
127 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
128 (grub_machine_mmap_iterate): Likewise.
129 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
130 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
131 prototype.
132 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
133 Remove NESTED_FUNC_ATTR from here and from all users.
134 (grub_mmap_iterate): Update prototype.
135 (grub_efi_mmap_iterate): Update prototype. Update all callers to
136 pass appropriate hook data.
137 (grub_machine_mmap_iterate): Likewise.
138
139 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
140 static instead of nested.
141 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
142 Rename to ...
143 (lsmmap_hook): ... this.
144 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
145 Likewise.
146 (grub_efiemu_mmap_fill: fill_hook): Likewise.
147 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
148 heap_init): Likewise.
149 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
150 Rename to ...
151 (mmap_iterate_hook): ... this.
152 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
153 Likewise.
154 * grub-core/lib/ieee1275/relocator.c
155 (grub_relocator_firmware_get_max_events: count): Likewise.
156 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
157 to ...
158 (grub_relocator_firmware_fill_events_iter): ... this.
159 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
160 hook): Likewise. Rename to ...
161 (grub_relocator_alloc_chunk_align_iter): ... this.
162 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
163 Rename to ...
164 (generate_e820_mmap_iter): ... this.
165 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
166 Rename to ...
167 (count_hook): ... this.
168 (grub_linux_boot: hook): Likewise. Rename to ...
169 (grub_linux_boot_mmap_find): ... this.
170 (grub_linux_boot: hook_fill): Likewise. Rename to ...
171 (grub_linux_boot_mmap_fill): ... this.
172 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
173 hook): Likewise. Rename to ...
174 (grub_fill_multiboot_mmap_iter): ... this.
175 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
176 hook): Likewise. Rename to ...
177 (count_hook): ... this.
178 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
179 hook): Likewise. Rename to ...
180 (grub_fill_multiboot_mmap_iter): ... this.
181 * grub-core/loader/powerpc/ieee1275/linux.c
182 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
183 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
184 Likewise. Rename to ...
185 (alloc_phys_choose): ... this.
186 (determine_phys_base: get_physbase): Likewise.
187 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
188 find_hook): Likewise.
189 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
190 (malloc_hook: count_hook): Likewise.
191 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
192 Likewise. Rename to ...
193 (lower_hook): ... this.
194 (grub_mmap_get_upper: hook): Likewise. Rename to ...
195 (upper_hook): ... this.
196 (grub_mmap_get_post64: hook): Likewise. Rename to ...
197 (post64_hook): ... this.
198 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
199 Likewise. Rename to ...
200 (lower_hook): ... this.
201 (grub_mmap_get_upper: hook): Likewise. Rename to ...
202 (upper_hook): ... this.
203 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
204 (grub_mmap_iterate: fill_hook): Likewise.
205 (fill_mask): Pass addr and mask within a single struct.
206 (grub_cmd_badram: hook): Make static instead of nested. Rename
207 to ...
208 (badram_iter): ... this.
209 (grub_cmd_cutmem: hook): Likewise. Rename to ...
210 (cutmem_iter): ... this.
211
212 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
213
214 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
215 delimit path in strings using quotes.
216 * util/getroot.c (grub_guess_root_devices): Likewise.
217 (grub_make_system_path_relative_to_its_root): Likewise.
218 * util/grub-probe.c (probe): Likewise.
219 * util/ieee1275/ofpath.c (find_obppath): Likewise.
220 (xrealpath): Likewise.
221
222 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
223
224 Fix compilation with older compilers.
225
226 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
227 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
228 declarations.
229 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
230 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
231 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
232 identifier with b.
233 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
234 * include/grub/crypto.h: Add type defines.
235 * util/import_gcrypth.sed: Remove duplicate type defines.
236
237 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
238
239 New command list_trusted.
240
241 * grub-core/commands/verify.c (grub_cmd_list): New function.
242
243 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
244
245 * util/grub-mkimage.c (generate_image): Fix "size of public key"
246 info message.
247
248 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
249
250 Remove nested functions from PCI iterators.
251
252 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
253 passed to hook. Update all callers to pass appropriate hook data.
254 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
255 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
256 Remove NESTED_FUNC_ATTR from here and from all users.
257 (grub_pci_iterate): Update prototype.
258 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
259 instead of nested. Rename to ...
260 (grub_cs5536_find_iter): ... this.
261 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
262 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
263 Likewise.
264 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
265 Likewise.
266 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
267 Likewise.
268 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
269 Likewise.
270 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
271 * grub-core/video/radeon_fuloong2e.c
272 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
273 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
274 find_card): Likewise.
275 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
276 Likewise.
277
278 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * grub-core/commands/verify.c: Mark messages for translating.
281
282 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
283
284 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
285 fatal.
286
287 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
288
289 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
290 fatal.
291
292 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
293
294 * autogen.sh: Do not try to delete nonexistant files.
295 * util/import_gcrypth.sed: Add some missing header removals.
296
297 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
298
299 Clean up dangling references to grub-setup.
300 Fixes Ubuntu bug #1082045.
301
302 * docs/grub.texi (Images): Refer generally to grub-install rather
303 than directly to grub-setup.
304 (Installing GRUB using grub-install): Remove direct reference to
305 grub-setup.
306 (Device map) Likewise.
307 (Invoking grub-install): Likewise.
308 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
309 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
310 * util/grub-install.in (usage): Likewise.
311
312 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
313 Apply to grub-bios-setup and grub-sparc64-setup rather than to
314 grub-setup.
315 * configure.ac: Remove grub_setup output variable.
316
317 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
318 to grub-bios-setup.
319 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
320 grub-setup to grub-sparc64-setup.
321
322 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
323
324 Import gcrypt public-key cryptography and implement signature checking.
325
326 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
327
328 * grub-core/fs/ntfs.c: Ue more appropriate types.
329 * grub-core/fs/ntfscomp.c: Likewise.
330 * include/grub/ntfs.h: Likewise.
331
332 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
333
334 Support Apple FAT binaries on non-Apple platforms.
335
336 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
337 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
338 Likewise.
339 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
340 Apple FAT binaries.
341
342 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
345 sector devices.
346
347 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
348
349 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
350 explicitly zeroing elements.
351 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
352 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
353 of elements in a structure already allocated using grub_zalloc.
354 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
355
356 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
357
358 * docs/grub.texi (grub_cpu): New subsection.
359 (grub_platform): Likewise.
360
361 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
364
365 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
368 divisions.
369
370 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
373 * grub-core/fs/ntfscomp.c: Likewise.
374 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
375 (grub_ntfs_comp): Likewise.
376
377 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
380 Rename to ...
381 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
382 of groups_per_block. All users updated.
383
384 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
385
386 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
387 grub_error properly.
388 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
389 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
390
391 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
394 always in /boot/zfs.
395 Reported by: Yuta Satoh.
396
397 2013-01-03 Yuta Satoh <nigoro>
398
399 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
400 ${grub_probe}
401
402 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
403
404 * configure.ac: Extend -Wno-trampolines to host.
405
406 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
407
408 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
409 entry->len = 0.
410
411 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
412
413 * docs/grub.texi (Invoking grub-mkrelpath): New section.
414 (Invoking grub-script-check): Likewise.
415
416 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
417
418 * docs/grub.texi (Invoking grub-mount): New section.
419 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
420
421 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
422
423 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
424 test failures, so that a failing unit test correctly causes 'make
425 check' to fail.
426
427 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
428
429 Fix failing printf test.
430
431 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
432 '$' in the correct order when collecting type information.
433
434 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
435
436 * docs/grub.texi (configfile): Explain environment variable
437 handling.
438 (source): New section.
439 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
440
441 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
442
443 Remove several trivially-unnecessary uses of nested functions.
444
445 * grub-core/commands/i386/pc/sendkey.c
446 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
447 instead of nested.
448 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
449 Rename to ...
450 (legacy_file_getline): ... this.
451 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
452 Likewise.
453 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
454 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
455 to ...
456 (probe_dummy_iter): ... this.
457 * grub-core/kern/i386/coreboot/mmap.c
458 (grub_linuxbios_table_iterate: check_signature): Likewise.
459 * grub-core/kern/parser.c (grub_parser_split_cmdline:
460 check_varstate): Likewise. Mark inline.
461 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
462 an additional parameter.
463 (find_long: fnd_long): Likewise. Pass two additional parameters.
464 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
465 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
466 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
467 Likewise. Rename to ...
468 (grub_cmos_find_port_iter): ... this.
469 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
470 Rename to ...
471 (find_rtc_iter): ... this.
472
473 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
474 function directly into the function body, since it is only called
475 once.
476
477 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
478
479 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
480 __attribute__ ((unused)).
481 * grub-core/video/bochs.c (find_card): Likewise.
482 * grub-core/video/cirrus.c (find_card): Likewise.
483 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
484 * grub-core/video/sis315pro.c (find_card): Likewise.
485 * grub-core/video/sm712.c (find_card): Likewise.
486
487 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
488
489 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
490 Fixes Savannah bug #37821.
491
492 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
493
494 Apply program name transformations at build-time rather than at
495 run-time. Fixes Debian bug #696465.
496
497 * acinclude.m4 (grub_TRANSFORM): New macro.
498 * configure.ac: Create output variables with transformed names for
499 most programs.
500 * util/bash-completion.d/grub-completion.bash.in: Use
501 pre-transformed variables for program names.
502 * util/grub-install.in: Likewise.
503 * util/grub-kbdcomp.in: Likewise.
504 * util/grub-mkconfig.in: Likewise.
505 * util/grub-mkconfig_lib.in: Likewise.
506 * util/grub-mknetdir.in: Likewise.
507 * util/grub-mkrescue.in: Likewise.
508 * util/grub-mkstandalone.in: Likewise.
509 * util/grub-reboot.in: Likewise.
510 * util/grub-set-default.in: Likewise.
511 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
512 * tests/util/grub-shell-tester.in: Remove unused assignment.
513 * tests/util/grub-shell.in: Likewise.
514 * util/grub.d/00_header.in: Likewise.
515
516 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
517
518 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
519
520 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
521 HAVE_RAW_DECL_GETS.
522 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
523
524 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
527 Reported by: Eriks Latosheks <foresterlv>.
528
529 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * docs/grub.texi (Network): Update instructions on generating netboot
532 image.
533
534 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
537 around device name if necessarry.
538
539 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
540
541 * util/grub-install.in: Follow the symbolic link parameter added
542 to the file command.
543
544 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
545
546 * util/grub-install.in: Remove stale TODO.
547
548 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
549
550 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
551 dynamic allocation for the bootpath buffer.
552
553 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
554
555 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
556 window too small.
557
558 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
559
560 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
561 argument rather than font name. All users updated.
562 (grub_gfxterm_set_window): Likewise.
563
564 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
565
566 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
567 from working.
568
569 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
570
571 * util/getroot.c (convert_system_partition_to_system_disk): Support
572 nbd disks.
573
574 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
575
576 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
577 infinite loop on corrupted FS.
578
579 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
580
581 Fix big-endian mtime.
582
583 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
584 together sec and usec.
585 (grub_ufs_dir): Use correct byteswapping for UFS time.
586
587 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
588
589 Support big-endian UFS1.
590
591 * Makefile.util.def (libgrubmods): Add ufs_be.c
592 * grub-core/Makefile.core.def (ufs1_be): New module.
593 * grub-core/fs/ufs_be.c: New file.
594 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
595 the file.
596
597 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
598
599 * include/grub/types.h: Fix functionality unaffecting typo in
600 GRUB_TARGET_WORDSIZE conditional macro.
601
602 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
603
604 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
605
606 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
607
608 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
609 that /netbsd appears first (when it exists).
610
611 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
612
613 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
614 Fixes Savannah bug #37558.
615
616 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
617
618 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
619 description of extract_entries_configfile.
620
621 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
622
623 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
624 preferred_address.
625 (grub_cmd_linux): Likewise.
626 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
627 preferred_lifetime. Update all users.
628
629 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
630
631 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
632 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
633
634 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
635
636 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
637 errors from grub-probe to /dev/null, not stdout.
638
639 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
640
641 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
642 sector 1.
643
644 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
645
646 * util/grub-install.in: Make the error message if $source_dir
647 doesn't exist more useful.
648
649 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
650
651 Fix grub-emu build on FreeBSD.
652
653 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
654 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
655 headers on Linux.
656 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
657 implementation is currently Linux-specific.
658 * util/getroot.c (exec_pipe): Define only on Linux or when either
659 libzfs or libnvpair is unavailable.
660 (find_root_devices_from_poolname): Remove unused path variable.
661
662 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
663
664 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
665 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
666 should fit before end == 63.
667
668 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
669
670 * util/grub-setup.c (write_rootdev): Remove unused core_img
671 parameter. Update all callers.
672 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
673 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
674 GRUB_SETUP_BIOS.
675
676 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * util/grub-mkconfig_lib.in (grub_tab): New variable.
679 (grub_add_tab): New function.
680 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
681 * util/grub.d/10_illumos.in: Likewise.
682 * util/grub.d/10_kfreebsd.in: Likewise.
683 * util/grub.d/10_linux.in: Likewise.
684 * util/grub.d/10_netbsd.in: Likewise.
685 * util/grub.d/10_windows.in: Likewise.
686 * util/grub.d/10_xnu.in: Likewise.
687 * util/grub.d/20_linux_xen.in: Likewise.
688 * util/grub.d/30_os-prober.in: Likewise.
689
690 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
691
692 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
693 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
694 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
695 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
696 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
697 ieee1275-nocursor.
698 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
699 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
700
701 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
704 le-conversion.
705 Reported by: BURETTE, Bernard.
706
707 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
708
709 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
710 from comment.
711
712 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
713
714 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
715 IEEE1275 machines. Fixes powerpc-emu compilation.
716 * include/grub/terminfo.h: Likewise.
717
718 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
719
720 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
721 a const pointer.
722 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
723 const pointer.
724 (efiemu_set_variable): Make vendor_guid a const pointer.
725
726 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
727
728 Don't require grub-mkconfig_lib to generate manpages for programs.
729
730 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
731 dependencies, don't add grub-mkconfig_lib.
732 (program): Pass empty adddeps.
733 (script): Pass grub-mkconfig_lib as adddeps.
734
735 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
736
737 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
738 * util/getroot.c (grub_find_device): Likewise.
739 (get_mdadm_uuid): Likewise.
740 (grub_util_is_imsm): Likewise.
741 (grub_util_pull_device): Likewise.
742 * util/grub-probe.c (probe): Likewise.
743
744 2012-09-10 Benoit Gschwind <gschwind>
745
746 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
747 (devs): Add devpath_8.
748
749 2012-09-08 Peter Jones <pjones@redhat.com>
750
751 * grub-core/Makefile.core.def (efifwsetup): New module.
752 * grub-core/commands/efi/efifwsetup.c: New file.
753 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
754 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
755 New define.
756 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
757
758 2012-09-05 Jiri Slaby <jslaby@suse.cz>
759
760 * configure.ac: Add SuSe path.
761
762 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
763
764 * NEWS: Fix typo.
765
766 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
767
768 * util/import_gcry.py: Sort cipher_files, to make build system
769 generation more deterministic.
770
771 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
772
773 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
774 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
775 (grub_set_datetime): Likewise.
776
777 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
778
779 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
780 warnings.
781
782 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
783
784 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
785
786 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
789
790 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
791
792 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
793 required for checkouts from bzr, but it may be useful for users or
794 distributors wishing to update translations against a tarball
795 distribution, and it can be helpful for the tarball to be a superset
796 of what's in bzr.
797
798 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
799
800 * Makefile.am (EXTRA_DIST): Add
801 grub-core/tests/boot/linux.init-mips.S,
802 grub-core/tests/boot/linux.init-ppc.S, and
803 grub-core/tests/boot/linux-ppc.cfg.
804
805 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
806
807 * grub-core/mmap/mips/loongson: Remove empty directory.
808
809 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
810
811 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
812 gone.
813
814 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
815
816 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
817 grub-sparc64-setup.
818
819 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
820
821 * configure.ac: Strengthen the test for working -nostdinc -isystem.
822
823 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
824
825 * po/POTFILES.in: Regenerated.
826
827 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
828
829 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
830 (NetBSD): New subsection.
831
832 2012-07-22 Ales Nesrsta <starous@volny.cz>
833
834 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
835 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
836
837 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
838
839 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
840 * util/grub.d/10_hurd.in: Add missing quoting.
841 * util/grub.d/10_illumos.in: Likewise.
842 * util/grub.d/10_kfreebsd.in: Likewise.
843 * util/grub.d/10_linux.in: Likewise.
844 * util/grub.d/20_linux_xen.in: Likewise.
845
846 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
847
848 New command `lsefi'.
849
850 * grub-core/Makefile.core.def (lsefi): New module.
851 * grub-core/commands/efi/lsefi.c: New file.
852 * include/grub/efi/api.h: Add more GUIDs.
853
854 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
857 (grub_bsd_elf32_hook): Likewise.
858 (grub_bsd_elf64_size_hook): Likewise.
859 (grub_bsd_elf64_hook): Likewise.
860 (grub_bsd_load_elf): Likewise.
861
862 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
865 if hash function is unavailable.
866 (dec_stream_header): Likewise.
867
868 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
869
870 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
871 filter state.
872
873 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
874
875 Fix coreboot compilation.
876
877 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
878 (grub_vga_text_init_real): ... this.
879 (grub_vga_text_fini): Rename to ...
880 (grub_vga_text_fini_real): ... this.
881
882 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
883
884 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
885
886 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
887
888 * grub-core/lib/legacy_parse.c: Support clear and testload.
889
890 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
891
892 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
893
894 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * grub-core/fs/ext2.c: Experimental support for 64-bit.
897
898 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * grub-core/net/tftp.c (ack): Fix endianness problem.
901 (tftp_receive): Likewise.
902 Reported by: Michael Davidsaver.
903
904 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
905
906 * gentpl.py: Make mans depend on grub-mkconfig_lib.
907
908 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
911 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
912 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
913
914 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
917 efi_mmap_size.
918 Reported by: Stuart Hayes.
919
920 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
921
922 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
923
924 * grub-core/Makefile.core.def (mda_text): New module.
925 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
926 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
927 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
928 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
929 here.
930 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
931 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
932 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
933 here.
934 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
935 to ..
936 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
937 ... here
938 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
939 here.
940 * grub-core/term/i386/vga_common.c: Removed.
941 * include/grub/i386/vga_common.h: Likewise.
942 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
943 (grub_vga_cr_bw_read): Likewise.
944 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
945 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
946 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
947 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
948 grub_vga_cr_read/grub_vga_cr_write.
949 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
950
951 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
952
953 * configure.ac: Bump version to 2.00.
954 * grub-core/normal/main.c (features): Add feature_200_final.
955
956 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
957 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
958
959 * NEWS: Fix unclarity and language mistakes.
960
961 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
964 additional size to 3 pages.
965 Reported by: Stuart Hayes.
966
967 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * NEWS: Add 2.00 entry.
970
971 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
972
973 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
974 put explicit "/" for empty path.
975 (wildcard_expand): Improve dprintf.
976
977 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
980 it's equal to currnode. This can happen with "" symlink.
981
982 2012-06-27 Yves Blusseau <blusseau@zetam.org>
983
984 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
985 echo shell command by printf command.
986
987 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
988
989 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
990 the value returned by firmware is the maximal position, not diumension.
991 (grub_terminfo_output_state): Use a more sane fallback.
992
993 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
996
997 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
998
999 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1000 frequency to 150 MHz.
1001
1002 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 Apple fixes.
1005
1006 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1007 __APPLE_
1008 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1009 definition.
1010 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1011
1012 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1013
1014 Handle slash in HFS label.
1015
1016 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1017 (grub_hfs_dir): Tanslate slash.
1018 (grub_hfs_label): Don't translate slash.
1019
1020 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1023 network protocol listing since it introduces problematic dependency on
1024 net module.
1025
1026 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1029
1030 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 Init video early on yeeloong to avoid being rebooted by watchdog.
1033
1034 * grub-core/Makefile.am (gensm712): New target.
1035 (sm712_start.S): Likewise.
1036 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1037 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1038 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1039 description.
1040 * include/grub/vga.h: Move registry definitions to...
1041 * include/grub/vgaregs.h: ... here.
1042
1043 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1046 signedness.
1047
1048 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1051 platforms with firmware disk drivers in the core.
1052
1053 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1056 informative verbose message.
1057 (read_lv): Handle 64-bit segment size.
1058
1059 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1062
1063 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1066 character but still remove trainling spaces.
1067 (grub_fat_label): Ignore archive flag.
1068
1069 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1072 cast between linux_kernel_header and linux_kernel_params.
1073
1074 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1077 type for size.
1078 (grub_raid6_recover_func_t): Likewise.
1079 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1080 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1081
1082 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1085
1086 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1087
1088 Fix overflow.
1089
1090 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1091 [__NetBSD__]: Add explicit cast before bitshift.
1092
1093 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 * configure.ac: Bump to 2.00~rc1.
1096
1097 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1100 half of $a0.
1101
1102 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1103 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1104
1105 * docs/grub.texi: Fix search syntax.
1106 (Multi-boot manual config): Put msdos rather than GPT example.
1107 Grammar corrections.
1108
1109 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1112
1113 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1116
1117 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1120 message on double free. Put the value of magic in case of mismatch.
1121
1122 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 Speed-up video on yeeloong.
1125
1126 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1127 add cached_ptr.
1128 (grub_video_sm712_video_fini): Unmap cached_ptr.
1129 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1130 (grub_video_sm712_set_active_render_target): Removed.
1131 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1132 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1133 sync caches.
1134
1135 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 Avoid flushing the same line multiple times on loongson.
1138
1139 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1140 Step in 32 bytes and not 1 byte.
1141 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1142 Likewise.
1143
1144 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1147 subvolumes.
1148
1149 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 Implement flow control for http.
1152
1153 * grub-core/net/http.c (parse_line): Handle response 206.
1154 (http_receive): Stall if too many packets are in the queue.
1155 (http_establish): Fix range header.
1156 (http_seek): Fix double free.
1157 (http_close): Likewise.
1158 (http_packets_pulled): New function.
1159 (grub_http_protocol): Set http_seek
1160 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1161 (ack_real): Set window depending on i_stall.
1162 (grub_net_send_tcp_packet): Likewise.
1163 (grub_net_tcp_stall): New function.
1164 (grub_net_tcp_unstall): Likewise.
1165 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1166 (grub_net_tcp_unstall): Likewise.
1167
1168 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1171
1172 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1175
1176 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * tests/util/grub-shell.in: Fix a typo.
1179
1180 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 Implement flow control for tftp.
1183
1184 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1185 packets but stop only if stop condition is satisfied.
1186 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1187 `stall' instead of `eof' as stop condition.
1188 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1189 (http_err): Likewise.
1190 * grub-core/net/tftp.c (ack): Replace the first argument with data
1191 instead of socket.
1192 (tftp_receive): Stall if too many packets are in wait queue.
1193 (tftp_packets_pulled): New function.
1194 (grub_tftp_protocol): Set packets_pulled.
1195 * include/grub/net.h (grub_net_packets): New field count.
1196 (grub_net_put_packet): Increment count.
1197 (grub_net_remove_packet): Likewise.
1198 (grub_net_app_protocol): New field `packets_pulled'.
1199 (grub_net): New field `stall'.
1200
1201 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1204 sync part to handle them.
1205
1206 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1209 * grub-core/net/drivers/ieee1275/ofnet.c
1210 (grub_ieee1275_net_config_real): Likewise.
1211
1212 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1215 the direct route for server/gateway.
1216
1217 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1220 IP address to server name since we may not hame the DNS.
1221
1222 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1225 freeing random buffer on failure.
1226 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1227
1228 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1231
1232 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1235 reserved bytes.
1236 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1237 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1238 Handle malloc error correctly.
1239
1240 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1243 blocks.
1244
1245 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1248 increment.
1249
1250 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1253 none is explicitly specified.
1254
1255 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1258 while reallocating.
1259
1260 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 Respect netmask from bootp/dhcp.
1263
1264 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1265 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1266 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1267 into ...
1268 (grub_net_add_ipv4_local): ... this.
1269 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1270 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1271 (grub_net_add_ipv4_local): New proto.
1272
1273 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1276 determining EFI memory map size.
1277
1278 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1281
1282 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1285 when looking for partition separator.
1286
1287 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1290 Escape commas.
1291
1292 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 Restructure FAT driver to avoid hook in label reading as it hits a
1295 GCC bug.
1296
1297 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1298 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1299 (grub_fat_iterate_dir): Split into ...
1300 (grub_fat_iterate_init): ... this, ...
1301 (grub_fat_iterate_fini): ... this, ...
1302 (grub_fat_iterate_dir_next): ... and this. All users updated.
1303
1304 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1307 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1308 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1309 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1310 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1311 New fields last_key and last_key_time.
1312 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1313 extended key-esc into extended key-extended key.
1314
1315 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 Avoid unnecessary memcpy of whole video buffer.
1318
1319 * grub-core/video/fb/video_fb.c (dirty): New struct.
1320 (framebuffer): Add members current_dirty and previous_dirty.
1321 (dirty): New function.
1322 (grub_video_fb_fill_rect): Update dirty.
1323 (common_blitter): Likewise.
1324 (grub_video_fb_scroll): Likewise.
1325 (doublebuf_blit_update_screen): Copy only dirty part.
1326 (doublebuf_pageflipping_update_screen): Likewise.
1327 (grub_video_fb_doublebuf_blit_init): Init dirty.
1328 (doublebuf_pageflipping_init): Likewise.
1329 (grub_video_fb_setup): Likewise.
1330
1331 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1334 poll rate.
1335
1336 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 Fix wildcard regexp dot and other special characters handling.
1339 Reported by: Robert Mabee.
1340
1341 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1342 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1343 (split_path): Trigger expansion on '?'.
1344 (unescape): New function.
1345 (wildcard_expand): Unescape parts copied without globbing.
1346 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1347 (grub_script_arglist_to_argv): Don't unescape expansions.
1348
1349 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * include/grub/net.h (grub_net_card): New member txbufsize.
1352 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1353 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1354 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1355 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1356 txbufsize.
1357 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1358 compatible property to check for macs. Set
1359 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1360 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1361 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1362 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1363 (send_card_buffer): Use txbuf.
1364 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1365 nested function out of the parent while on it.
1366
1367 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1370 presence check.
1371 (grub_ieee1275_net_config_real): Fix config pointer.
1372
1373 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1376 filename parsing to non-block devices.
1377
1378 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1381
1382 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1385 All users updated.
1386
1387 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1390 UUID search command even if hints probing failed.
1391
1392 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * po/POTFILES.in: Regenerated.
1395
1396 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 Speed-up video on fuloong.
1399
1400 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1401 New function.
1402 (grub_pci_device_unmap_range): Handle non-cached address.
1403 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1404 add direct_ptr.
1405 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1406 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1407 (grub_video_sis315pro_set_active_render_target): Removed.
1408 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1409 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1410 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1411 sync caches.
1412 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1413 New proto.
1414
1415 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * docs/grub.texi (Multi-boot manual config): New section.
1418
1419 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 Avoid slow read-back from VRAM.
1422
1423 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1424 Move from here ...
1425 * grub-core/video/fb/video_fb.c
1426 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1427 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1428 (front_target): Remove front_target. Add pages.
1429 (grub_video_fb_init): Skip setting front_pages.
1430 (grub_video_fb_fini): Likewise.
1431 (doublebuf_blit_update_screen): Use pages.
1432 (grub_video_fb_doublebuf_blit_init): Likewise.
1433 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1434 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1435 (grub_video_fb_setup): Prefer doublebuffing.
1436
1437 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1440 gzio.
1441
1442 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 Add loongson tests.
1445
1446 * tests/util/grub-shell.in: Handle loongson.
1447 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1448 drivers.
1449 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1450 Reboot instead of shutdown if REBOOT is defined.
1451
1452 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1453
1454 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1455 sized ports since unlike on real hardware qemu supports only 32-bit
1456 regs.
1457
1458 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1461 * util/grub-mkrescue.in: Handle loongson.
1462
1463 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1466 Set is_part appropriately.
1467 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1468 names. Canonicalize partition without full disk.
1469
1470 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 Revert usb-quiesce since it's wrong.
1473
1474 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1475 (grub_ofdisk_init): Don't do quiesce.
1476
1477 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1480 PowerMac workaround to Xserves as well.
1481 Information supplied by: Benjamin Herrenschmidt.
1482
1483 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 Don't assume that beginning address is also the entry point on ppc.
1486
1487 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1488 (grub_linux_boot): Use linux_entry.
1489 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1490 (grub_linux_load64): Likewise.
1491
1492 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1495
1496 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1497
1498 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1499 needlessly lose the console.
1500
1501 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1502
1503 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1504 space.
1505
1506 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1509 than current grub_get_rtc() not implemented when booted with
1510 coreboot without TSC.
1511
1512 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1513 Add machine/time.h to kernel headers on loongson.
1514 * grub-core/Makefile.core.def (kernel): Remove
1515 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1516 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1517 (grub_get_rtc): Likewise.
1518 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1519 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1520 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1521 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1522 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1523 rather than installing known non-working time source.
1524 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1525 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1526 * include/grub/time.h: Don't include machine/time.h.
1527 * include/grub/efi/time.h: Removed.
1528 * include/grub/i386/efi/time.h: Likewise.
1529 * include/grub/i386/ieee1275/time.h: Likewise.
1530 * include/grub/powerpc/ieee1275/time.h: Likewise.
1531 * include/grub/sparc64/ieee1275/time.h: Likewise.
1532 * include/grub/x86_64/efi/time.h: Likewise.
1533
1534 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 Remove dot on i and j when combining with above diacritics.
1537
1538 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1539 value.
1540 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1541 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1542 with dotless variants when any combining above is present.
1543
1544 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1547 text and not binary.
1548
1549 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 Stop polling as soon as we have the packet we were waiting for.
1552
1553 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1554 All users updated.
1555 * grub-core/net/arp.c (have_pending): New var.
1556 (pending_req): Likewise.
1557 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1558 stop indicator.
1559 (grub_net_arp_receive): Set have_pending.
1560 * grub-core/net/dns.c (recv_data): New field stop.
1561 (recv_hook): Set stop.
1562 (grub_net_dns_lookup): Init stop and use as stop condition.
1563 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1564 condition.
1565 * grub-core/net/net.c (grub_net_poll_cards): New argument
1566 stop_condition. Stop when it goes true.
1567 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1568 indicator.
1569 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1570
1571 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 Keep TX and RX buffers on EFI rather than always allocate new ones.
1574
1575 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1576 card. All users updated.
1577 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1578 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1579 (get_card_packet): Likewise.
1580 (grub_efinet_findcards): Init new fields.
1581
1582 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1585 compilation error on sparc64.
1586
1587 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 Use ITC on IA64 rather than broken routine based on daytime.
1590
1591 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1592 ia64.
1593 (grub_get_rtc) [__ia64__]: Likewise.
1594 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1595 (get_itc): New function.
1596 (grub_rtc_get_time_ms): Likewise.
1597 (grub_machine_init): Calibrate ITC.
1598 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1599 Keep only on non-ia64. Don't export since it's broken and used only
1600 if TSC is unavailable.
1601
1602 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1605 even if it's used.
1606 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1607 Skip if parent is unused.
1608
1609 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1612
1613 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 Fix wildcard escaping.
1616
1617 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1618 * grub-core/script/execute.c (wildcard_escape): .. to here.
1619 Don't escape dot.
1620 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1621 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1622 Don't escape dot.
1623 * grub-core/script/execute.c (gettext_append): Always escape.
1624 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1625 * grub-core/script/yylex.l: Don't cut away the escaping.
1626 * tests/grub_script_echo1.in: Add tests with wildcard.
1627
1628 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
1631 (ftdi_hw_configure): Likewise.
1632 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
1633 define.
1634 (real_config): Handle 1.5 stop bits.
1635 (pl2303_hw_configure): Likewise.
1636
1637 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 * Makefile.am: Add ppc linux bootcheck.
1640 * grub-core/tests/boot/linux-ppc.cfg: New file.
1641 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
1642
1643 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 * tests/grub_script_expansion.in: Skip network protocols.
1646
1647 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
1650
1651 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
1654 --rom-directory.
1655 Add -graft-points.
1656
1657 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 ESCC serial driver for conducting sautomated tests in qemu.
1660 Not tested on real hardware.
1661
1662 * include/grub/serial.h (grub_serial_port): New field escc_desc.
1663 * grub-core/term/ieee1275/escc.c: New file.
1664 * grub-core/Makefile.core.def (escc): New module.
1665
1666 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
1669 invalid on error.
1670 (serial_hw_fetch): Don't read invalid handle.
1671 (serial_hw_put): Don't write into invalid handle.
1672
1673 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 Add a 1.5 stop bits value.
1676
1677 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
1678 * include/grub/serial.h (grub_serial_stop_bits_t): Add
1679 GRUB_SERIAL_STOP_BITS_1_5.
1680
1681 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1682
1683 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
1684 value rather than let it uninited.
1685
1686 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * grub-core/commands/wildcard.c (+check_file): New function.
1689 (wildcard_expand): Don't expand to non-existing files, expand with
1690 suffix and not attempt to expand if not needed.
1691
1692 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
1695 out of partitions containing other partitions.
1696
1697 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
1700 on some qemu versions with GRUB.
1701
1702 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
1703 define.
1704 (grub_openbsd_bootarg_pcibios): New struct.
1705 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
1706 Add PCIINFO.
1707
1708 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * tests/util/grub-shell.in: Trim firmware output on EFI.
1711
1712 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
1715 and coreboot since it's already in kernel.
1716
1717 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
1720 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1721 to here. New return value start. All users updated.
1722 Recursively scan linear mappings.
1723 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
1724 proto.
1725 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1726 Use grub_util_get_dm_node_linear_info.
1727 * util/getroot.c (convert_system_partition_to_system_disk): Use
1728 grub_util_info rather than grub_dprintf.
1729 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
1730
1731 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
1734
1735 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
1736 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
1737
1738 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * include/grub/types.h (grub_set_unaligned64): New function.
1741 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
1742 (setup): Likewise.
1743
1744 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
1747 (grub_ofdisk_fini): Quiesce USB devices.
1748
1749 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1750
1751 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
1752 caches.
1753
1754 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
1757
1758 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * grub-core/disk/pata.c (grub_pata_pio_read)
1761 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
1762 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1763
1764 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 Extend automated tests to qemu-mips.
1767
1768 * Makefile.am: reorganise tests and enable qemu-mips.
1769 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
1770 * grub-core/tests/boot/linux.init-mips.S: New file.
1771 * tests/partmap_test.in: Handle ata0 disks.
1772 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
1773 non-pc i386.
1774
1775 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
1778 ia64.
1779 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
1780 quotes while on it.
1781
1782 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
1785 (grub_halt): Likewise.
1786 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
1787
1788 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1789
1790 * grub-core/term/serial.c (grub_serial_register)
1791 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
1792 the behaviour in line with x86 platforms.
1793
1794 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
1797 (grub_ata_strncpy): Likewise.
1798 (grub_ata_identify): Add missing byteswaps.
1799
1800 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
1803 byte-swap.
1804 (screen_read_char): Likewise.
1805 (grub_vga_text_cls): Likewise.
1806
1807 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
1810 filenames.
1811 (make_file_path): Likewise.
1812
1813 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
1816 machines.
1817 Tested by: Paulo Flabiano Smorigo.
1818 Crucial information about API supplied by: Coleen <Last name unknown>.
1819 Reviewed by: Coleen <Last name unknown>.
1820
1821 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * util/grub-mkimage.c: Disable -Wcast-align.
1824
1825 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
1828 as they are fatal.
1829
1830 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
1833
1834 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 * util/grub-probe.c (escape_of_path): Fix double free.
1837
1838 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1839
1840 * grub-core/commands/videoinfo.c (hook): Show pitch.
1841
1842 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 * util/grub.d/20_linux_xen.in: Skip xen-syms.
1845
1846 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1847
1848 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
1849 (probe): Add ieee1275 to OFW devices.
1850
1851 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
1854
1855 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 Handle IBM OFW path.
1858
1859 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
1860 available.
1861 (of_path_of_scsi): Handle vdevice.
1862
1863 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1864
1865 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
1866 Allocate in multiples of 16 to avoid adding a few bytes free region the
1867 windows bugs upon.
1868
1869 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
1872 Allocate in multiples of 16 to avoid adding a few bytes free region the
1873 windows bugs upon.
1874 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
1875
1876 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1877
1878 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
1879 resolutions.
1880 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
1881 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
1882
1883 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
1884
1885 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
1886
1887 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
1890 resulted in \\ at the end of the line.
1891
1892 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
1895 (grub_parser_cmdline_state): Likewise.
1896 (grub_parser_split_cmdline): Likewise.
1897
1898 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
1901 /dev/root and /dev/dm-*.
1902
1903 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
1906 fix partially stale display.
1907
1908 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * grub-core/normal/menu_entry.c (backward_char): Use right line for
1911 substraction.
1912
1913 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
1916 Fix MBR remapping workaround.
1917 (grub_util_biosdisk_read) [__linux__]: Likewise.
1918
1919 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * util/grub-install.in: Check for ieee1275 and not ieee1276.
1922
1923 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * configure.ac: Bump to beta6.
1926
1927 2012-05-31 Christer Weinigel <christer@weinigel.se>
1928
1929 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
1930
1931 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
1934 (grub_cmd_linux): Likewise.
1935
1936 2012-05-31 Christer Weinigel <christer@weinigel.se>
1937
1938 Fix EHCI low-speed.
1939
1940 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
1941 (GRUB_EHCI_MULT_TWO): Likewise.
1942 (GRUB_EHCI_MULT_THREE): Likewise.
1943 (GRUB_EHCI_CMASK_MASK): New enum value.
1944 (GRUB_EHCI_SMASK_MASK): Likewise.
1945 (GRUB_EHCI_CMASK_OFF): Likewise.
1946 (GRUB_EHCI_SMASK_OFF): Likewise.
1947 (grub_ehci_pci_iter): Enable periodic schedule.
1948 (grub_ehci_parse_notrun): Likewise.
1949 (grub_ehci_restore_hw): Likewise.
1950 (grub_ehci_setup_qh): Set flags for low speed transfers.
1951 (grub_ehci_find_qh): Use periodic list for low speed.
1952 (grub_ehci_setup_transfer): Check periodic queue as well.
1953 (grub_ehci_check_transfer): Likewise.
1954 (grub_ehci_cancel_transfer): Cancel periodic transfer.
1955
1956 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1957
1958 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
1959 parameter is used.
1960
1961 2012-05-31 Peter Jones <pjones@redhat.com>
1962
1963 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
1964 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
1965 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
1966
1967 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
1970 uninited variable. Allocate at least setup_sects.
1971
1972 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1973
1974 Fix handling of EFI with big memory maps.
1975
1976 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
1977 (real_mode_mem): Likewise.
1978 (real_mode_target): Likewise.
1979 (real_mode_pages): Likewise.
1980 (prot_mode_pages): Likewise.
1981 (linux_params): New var.
1982 (linux_cmdline): Likewise.
1983 (free_pages): Don't set real mode variables.
1984 (allocate_pages): Don't allocate real mode memory.
1985 (grub_e820_add_region): Remove the limit.
1986 (grub_linux_boot): Allocate and copy real mode memory.
1987 (grub_linux_unload): Free linux_cmdline.
1988 (grub_cmd_linux): Use temporary storage for parameters.
1989 (grub_cmd_initrd): Likewise.
1990 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
1991 (linux_kernel_params): Make it 1K big.
1992
1993 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * Makefile.util.def: Remove -Wno-format.
1996 * grub-core/Makefile.core.def: Likewise.
1997
1998 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * tests/cmp_unit_test.c: Add missing failure message.
2001 * tests/example_unit_test.c: Likewise.
2002 * tests/printf_unit_test.c: Likewise.
2003
2004 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2007 relaxation of protective MBR requirements.
2008
2009 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 * configure.ac: Add condition for COND_HOST_XNU.
2012 * Makefile.util.def (10_xnu): New script.
2013 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2014
2015 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2018 objconv bug.
2019
2020 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2023 Binary on other platforms stays identical.
2024
2025 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2028 Apple.
2029
2030 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2033
2034 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2037 rather than defining size_t ourselves to avoid conflict.
2038
2039 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2042 initialisation to avoid __bzero reference.
2043
2044 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2045
2046 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2047 version.
2048 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2049 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2050 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2051 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2052 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2053
2054 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2057 * grub-core/kern/misc.c: Likewise.
2058 * grub-core/loader/i386/xnu.c: Likewise.
2059 * include/grub/i386/tsc.h: Likewise.
2060 * include/grub/symbol.h: Likewise.
2061
2062 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2065 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2066 on older compiler.
2067
2068 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2071 Implement Apple flavour.
2072 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2073
2074 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2075
2076 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2077 (memmove) [__APPLE__]: Likewise.
2078 (memcpy) [__APPLE__]: Likewise.
2079 (memset) [__APPLE__]: Likewise.
2080 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2081 (memmove) [__APPLE__]: Likewise.
2082 (memcpy) [__APPLE__]: Likewise.
2083 (memset) [__APPLE__]: Likewise.
2084
2085 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2088 dependency discard.
2089
2090 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * grub-core/normal/main.c (read_config_file): Provide config_file and
2093 config_directory.
2094 * util/grub.d/41_custom.in: Use config_directoy when available.
2095
2096 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2099 (grub_bfs_dir): Likewise.
2100
2101 2012-05-27 Peter Jones <pjones@redhat.com>
2102
2103 The old code gives arguments to a printf function which can't work
2104 correctly, and the compiler complains.
2105
2106 * grub-core/tests/example_functional_test.c (example_test): Add
2107 missing text.
2108 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2109 * include/grub/test.h (grub_test_assert_helper): New declaration.
2110 (grub_test_assert): Use grub_test_assert_helper.
2111
2112 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2115 (exfctest): ... this to avoid overlong filenames.
2116 All users updated.
2117
2118 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 Handle "." and ".." on squashfs.
2121
2122 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2123 Make inode numbers into stack.
2124 (grub_squash_read_symlink): Use stack.
2125 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2126 (make_root_node): Fill stack.
2127 (grub_squash_open): Use stack.
2128
2129 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2132 freeing.
2133
2134 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2137 stderr on test calls.
2138
2139 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2142
2143 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2144
2145 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2146
2147 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2148
2149 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2150 "..".
2151
2152 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2155 (grub_hfsplus_iterate_dir): Add "." and "..".
2156
2157 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2160 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2161
2162 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2165 (find_path): Handle "." and "..".
2166
2167 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2170 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2171 (grub_affs_iterate_dir): Handle hardlinks.
2172
2173 2012-05-26 Matthew Garrett <mjg@redhat.com>
2174
2175 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2176 (grub_efi_console_fini): Likewise.
2177 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2178 (grub_video_gop_fill_mode_info): Rename to ...
2179 (grub_video_gop_fill_real_mode_info): ... this.
2180 (grub_video_gop_fill_mode_info): New function.
2181 (grub_video_gop_setup): Setup double framebuffer.
2182 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2183 Free offscreen.
2184 (grub_video_gop_swap_buffers): Copy framebuffer.
2185 (grub_video_gop_fini): Free offscreen buffer.
2186 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2187 New enum.
2188 (grub_efi_gop_blt_pixel): New struct.
2189
2190 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 * gentpl.py: Remove error disabling for objconv.
2193
2194 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * configure.ac: Remove -Wunitialized as it's not available on older
2197 compilers.
2198
2199 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 Fix extent overflow comparator.
2202
2203 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2204 (grub_hfsplus_read_block): Set type.
2205 (grub_hfsplus_cmp_extkey): Compare type.
2206
2207 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2210
2211 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2214 than 0.
2215
2216 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2219 (dejavu_bold_14.pf2): New target.
2220
2221 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * configure.ac: Fix djvu font detection.
2224
2225 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2228 ext* instead of ext2.
2229
2230 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2233 name with \0.
2234
2235 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2236
2237 * docs/grub-dev.texi: Remove dot from .png.
2238
2239 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2242 protective entry in any slot.
2243 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2244 if protective entry is found in any slot.
2245
2246 Protective entry in non-first slot make no sense but is a widespread
2247 brain damage.
2248
2249 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2250
2251 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2252
2253 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2256 with old reiserfs.
2257 (grub_reiserfs_open): Don't free root.
2258
2259 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2262 after freeing for safety.
2263
2264 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2267 Reported by: Jordan Uggla.
2268
2269 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2270
2271 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2272 actual implementation. Specifically, clarify that the grub menu will
2273 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2274 passed.
2275
2276 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2277
2278 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2279 of r0.
2280
2281 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 Remove unjustified hard dependency of normal.mod on gfxterm.
2284
2285 * include/grub/term.h (grub_term_output): New member fullscreen.
2286 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2287 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2288 (grub_gfxterm): Set .fullscreen.
2289 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2290 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2291
2292 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2295 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2296 Mention case-insensitive AFFS, SFS and JFS.
2297
2298 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2301
2302 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2305 a bad FS.
2306
2307 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2310 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2311
2312 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2315 (grub_jfs_mount): Fill caseins.
2316 (grub_jfs_find_file): Respect caseins.
2317
2318 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2321 through UTF-16.
2322
2323 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2326 New argument origpath. All users updated.
2327
2328 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2329
2330 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2331 (read_attr): Ensure that we read start of possibly compressed block.
2332
2333 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2336 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2337 All users updated.
2338
2339 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2342 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2343 (dejavu.pf2): Replace with ...
2344 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2345 this.
2346
2347 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 * util/grub.d/20_linux_xen.in: Add missing line.
2350
2351 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2354 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2355 (grub_utf16_to_utf8): Likewise.
2356
2357 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2360 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2361 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2362 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2363 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2364 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2365
2366 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2369 a bad FS.
2370
2371 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2374 (grub_udf_read_symlink): Handle read_string failure.
2375
2376 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2379 comment.
2380
2381 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 Fix handling of UDF symlinks.
2384
2385 * grub-core/fs/udf.c (read_string): New argument outbuf.
2386 All users updated.
2387 (grub_ufs_read_symlink): Rename to ...
2388 (grub_udf_read_symlink): ... this. All users updated.
2389 Handle symlinks with more than one component.
2390
2391 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2394 symlinks. Replace leading colon with a slash.
2395
2396 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2399 filename.
2400
2401 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2404 match in inner node.
2405
2406 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2409 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2410 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2411 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2412 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2413 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2414 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2415 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2416 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2417
2418 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 Use grub-probe and not cmp to check that disk is empty.
2421
2422 * util/grub-install.in: Use grub-probe for zero-check.
2423 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2424 (probe): Handle PRINT_ZERO_CHECK.
2425 (argp_parser): Handle -t zero_check.
2426
2427 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 Flush block cache on adding disk to device map.
2430
2431 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2432 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2433 adding.
2434 (read_device_map): Likewise.
2435 (open_device): Flush on opening.
2436
2437 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2440 (handle_symlink): Fix off-by-one error.
2441 Canonicalize the target.
2442 (grub_cpio_dir): Canonicalize the name.
2443 Fix memory leak.
2444 Set directory.
2445 (grub_cpio_open): Canonicalize the name.
2446
2447 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2450 handling.
2451
2452 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2455 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2456
2457 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2460 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2461 All users updated.
2462
2463 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2466 counterpart.
2467
2468 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 Fix UFS1 big file support.
2471
2472 * grub-core/fs/ufs.c (INODE): Removed.
2473 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2474 64-bit.
2475 (INODE_MODE): Simplify.
2476 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2477 (grub_ufs_lookup_symlink): Don't use INODE.
2478
2479 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2480
2481 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2482
2483 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2484 (grub_minix_data): Replace log_block_size with block_size.
2485 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2486 (grub_minix_mount): Fill block_size.
2487
2488 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * configure.ac: Bump to beta5.
2491
2492 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2493
2494 Fix wrapped HFS+ handling.
2495
2496 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2497 blocks_start. All users updated.
2498 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2499 wrapping offset.
2500 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2501
2502 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 Fix long symlinks on reiserfs.
2505
2506 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2507 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2508 (grub_reiserfs_iterate_dir): Save size for non-directories.
2509 (grub_reiserfs_open): Don't reread stat block as we already know the
2510 size.
2511 (grub_reiserfs_read): Split into...
2512 (grub_reiserfs_read_real): ... and ...
2513 (grub_reiserfs_read): ...this.
2514
2515 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 Fix non-indexed JFS.
2518
2519 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2520 (grub_jfs_data): New field namecomponentlen.
2521 (grub_jfs_mount): Fill namecomponentlen.
2522 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2523
2524 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2527 * tests/grub_script_echo1.in: Add tests.
2528
2529 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * util/grub-install.in: Ignore empty devicetree directory.
2532
2533 2012-05-08 Bean <bean123ch@gmail.com>
2534
2535 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2536 All users updated.
2537 (free_rsm): Free header as well.
2538 (free_old_fragments): Fix memory leak.
2539 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2540 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2541 (destroy_pq): Likewise.
2542 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2543
2544 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2547 resulting hash as a precaution.
2548
2549 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2552 '_' in variable names.
2553 * grub-core/net/net.c (grub_net_network_level_interface_register):
2554 Likewise.
2555
2556 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 Fix AFFS with non-512B blocks.
2559
2560 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2561 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2562 (grub_affs_data): Replace blocksize with log_blocksize.
2563 (grub_affs_read_block): Fix non-512B blocks.
2564 (grub_affs_read_symlink): Likewise.
2565 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2566 (grub_affs_read): Fix non-512B blocks.
2567 (grub_affs_label): Likewise.
2568 (grub_affs_mtime): Likewise.
2569 (grub_affs_mount): Fix block detection routine.
2570
2571 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 Add filesystem mtime to AFFS.
2574
2575 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2576 (aftime2ctime): New function.
2577 (grub_affs_dir): Use aftime2ctime.
2578 (grub_affs_label): Fix return value.
2579 (grub_affs_mtime): New function.
2580 (grub_affs_fs): Add mtime.
2581
2582 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2585 UTF-8.
2586
2587 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2590 UTF-8.
2591
2592 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2595
2596 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2599 flags.
2600 (FLAGS_CASE_SENSITIVE): New enum value.
2601 (cache_entry): New struct.
2602 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2603 cache_size and cache.
2604 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2605 Add log_blocksize and fshelp_flags.
2606 (grub_sfs_read_extent): Handle non-512 blocks.
2607 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2608 (grub_sfs_read_file): Handle non-512 blocks.
2609 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2610 fshelp_flags.
2611 (grub_sfs_read_symlink): Handle non-512 blocks.
2612 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2613 (grub_sfs_dir): Free cache.
2614 (grub_sfs_close): Likewise.
2615
2616 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2619 filesystems.
2620
2621 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2624
2625 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2626
2627 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2628
2629 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
2632 (grub_sfs_read_extent): Likewise.
2633 (grub_sfs_read_block): Likewise.
2634 (grub_sfs_mount): Likewise.
2635 (grub_sfs_iterate_dir): Likewise.
2636 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
2637 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2638
2639 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 Fix errors on compressed NTFS with 512B clusters.
2642
2643 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
2644 types.
2645 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
2646 not 0.
2647 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
2648 Relax check for inline extents.
2649 (ntfscomp): Return correct -1 on error and not 0.
2650
2651 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * util/grub-install.in: Fix handling of prefix containing spaces.
2654
2655 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
2658 (grub_squash_read_data): Fix offset byte-swapping.
2659
2660 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
2663 per common usage and preffered in several parts of code.
2664 (grub_memcmp): Likewise.
2665 (grub_strncmp): Likewise.
2666 * include/grub/misc.h (grub_strcasecmp): Likewise.
2667 (grub_strncasecmp): Likewise.
2668 * Makefile.util.def (cmp_test): New test.
2669 (grub_script_strcmp): Likewise.
2670 * tests/cmp_unit_test.c: New file.
2671 * tests/grub_script_strcmp.in: Likewise.
2672 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2673
2674 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * include/grub/pci.h: Move enums into no-asm part.
2677
2678 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2681
2682 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2683
2684 * util/getroot.c (find_hurd_root_device): Try to make error message
2685 and comments to translators clearer.
2686
2687 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
2690
2691 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
2694 btrfs.
2695
2696 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2697
2698 * docs/grub.cfg: Update.
2699
2700 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * docs/grub.texi (PXE): Remove not present variables.
2703
2704 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * grub-core/net/net.c (defserver_set_env): New function.
2707 (defserver_get_env): Likewise.
2708 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
2709
2710 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2711
2712 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
2713 entries.
2714
2715 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
2718 * grub-core/kern/emu/hostdisk.c: Likewise.
2719
2720 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2721
2722 Handle hurd userspace partitions.
2723
2724 * util/getroot.c (find_hurd_root_device): New function.
2725 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2726
2727 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
2730 names.
2731 Reported by: Bastian Blank.
2732
2733 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
2736 crossing page boundary.
2737
2738 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2739
2740 Fix B-tree search in BFS, especially in presence of non-ASCII
2741 characters.
2742
2743 * grub-core/fs/bfs.c (bfs_strcmp): New function.
2744 (find_in_b_tree): Use standard bsearch + btree algorithm.
2745
2746 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
2749 and so on.
2750
2751 2012-05-03 Matthew Garrett <mjg@redhat.com>
2752 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2753
2754 Suspend broadcom cards in order to stop their DMA.
2755
2756 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
2757 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
2758 (pci): Don't build on x86 EFI.
2759 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
2760 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
2761 New function.
2762 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
2763 stop_broadcom if running on EFI.
2764 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
2765 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
2766 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
2767 (grub_pci_find_capability): New proto.
2768
2769 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 * docs/grub.texi: Remove dot from the extension as it apparently
2772 doesn't work with some makeinfo versions.
2773
2774 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2775
2776 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
2777 with GRUB expectance.
2778
2779 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2780
2781 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2782
2783 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
2786 zero after directory block since last entry may be not 0-terminated if
2787 it ends on block boundary. Use continue instead of if spanning whole
2788 loop.
2789
2790 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 Support 4K sectors UDF inline files.
2793
2794 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
2795 (grub_udf_extended_file_entry): Likewise.
2796 (grub_fshelp_node): Name the anonymous union. Put block at the end.
2797 All users updated.
2798 (get_fshelp_size): New function.
2799 (grub_udf_read_icb): Read whole block.
2800 (grub_udf_iterate_dir): Likewise.
2801 (grub_udf_dir): Likewise.
2802 (grub_udf_open): Likewise.
2803
2804 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2807
2808 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
2811 inline symlinks in addition to workaround.
2812
2813 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2816
2817 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2820
2821 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2824
2825 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 Fix reiserfs big seek times.
2828
2829 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
2830 exact. All users updated.
2831 (grub_reiserfs_read): Use nearest btree search for seeking.
2832 Fix return value on error.
2833
2834 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
2837 entries.
2838 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
2839 * docs/grub.texi: Update menuentry description.
2840
2841 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
2844 crash when embedding onto filesystem.
2845
2846 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2847
2848 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
2849 name.
2850
2851 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2852
2853 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2854
2855 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
2858 commit.
2859
2860 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2861 2012-05-01 Bean <bean123ch@gmail.com>
2862
2863 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
2864
2865 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
2868 Special behaviour for len = 0 to read whole file isn't used anywhere and
2869 can cause buffer ovewrflows in several places.
2870
2871 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2874
2875 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2876
2877 Handle RAIDZ on non-512B sectors.
2878
2879 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
2880 max_children_ashift.
2881 (fill_vdev_info_real): Fill max_children_ashift.
2882 (read_device): Use max_children_ashift.
2883
2884 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2885
2886 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2887
2888 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
2891 disk names.
2892 * docs/grub.texi: Update device.map parts.
2893
2894 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 Don't scan into non-diskfilter devices having diskfilter names.
2897
2898 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
2899 (scan_disk): New argument accept_diskfilter. Fix recursion depth
2900 handling.
2901 (scan_disk_hook): New function.
2902
2903 2012-04-29 Bean <bean123ch@gmail.com>
2904
2905 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
2906 allocation.
2907
2908 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
2909
2910 * configure.ac: Detect starfield theme font path
2911 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2912
2913 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
2916 geometry on serial consoles.
2917
2918 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
2921 because of network consoles.
2922
2923 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
2926 handling.
2927
2928 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
2931 falls on Q syndrom.
2932
2933 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
2936 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
2937
2938 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
2941 Allocate at lest 8192 for temporary buffer as required for lzo.
2942
2943 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
2946 to cluster_bits, since it's already added in.
2947 (grub_fat_read_data): Likewise.
2948
2949 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
2952 as long as cluster size is multiple of 512 bytes.
2953
2954 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * util/grub-mkrescue.in: Fix locale directory.
2957
2958 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/kern/emu/hostdisk.c (map): Make static.
2961
2962 2012-04-23 Bean <bean123ch@gmail.com>
2963
2964 * util/grub-fstest.c (fstest): Add missing break.
2965
2966 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2967
2968 Fix hurd build.
2969
2970 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
2971 not define nr variable.
2972 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
2973 find_root_devices_from_poolname, find_root_devices_from_libzfs,
2974 grub_find_device): Do not define.
2975
2976 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 Fix kfreebsd compile and behaviour.
2979
2980 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
2981 format-security.
2982 * util/getroot.c: Fix wait.h include.
2983 (grub_guess_root_devices): Error if grub_find_device fails.
2984 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
2985 (grub_util_get_dev_abstraction): Likewise.
2986 (grub_util_pull_device): Likewise.
2987 (grub_util_get_grub_dev): Likewise.
2988 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
2989
2990 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 Fix and unify wholedisk detection.
2993
2994 * util/getroot.c (convert_system_partition_to_system_disk): New argument
2995 is_part. All users updated.
2996 (device_is_wholedisk): Removed.
2997 (grub_util_biosdisk_get_grub_dev): Use is_part.
2998
2999 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3002 mode.
3003
3004 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * configure.ac: Bump to beta4.
3007
3008 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3011 --fs-uuid --set UUID syntax.
3012
3013 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3016 disunification.
3017
3018 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3021
3022 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3023
3024 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3025
3026 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3027
3028 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3029
3030 2012-04-18 Bean <bean123ch@gmail.com>
3031
3032 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3033 place.
3034
3035 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3038 users updated.
3039 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3040 corresponding to GRUB partitions.
3041 (grub_util_biosdisk_write): Likewise.
3042
3043 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 Scan mdraid before LVM.
3046
3047 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3048 (grub_diskfilter_register_front): ... this.
3049 (grub_diskfilter_register_back): New function.
3050 All users of grub_diskfilter_register updated.
3051
3052 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * util/grub-install.in: Fix an automatic target detection bug.
3055
3056 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * util/grub-install.in: New option --efi-directory.
3059
3060 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3063 boot services if we have no other choice.
3064
3065 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3068 document it.
3069 * tests/util/grub-shell.in: Update to --directory.
3070
3071 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3074
3075 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3078 (grub_minix_read_file): Likewise.
3079 (grub_minix_read_inode): Likewise.
3080 (grub_minix_find_file): Likewise.
3081 (grub_minix_dir): Likewise.
3082
3083 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * util/grub-setup.c (setup): Fix partition handling and blocklist
3086 check.
3087
3088 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3091 redundant buggy overlap check.
3092
3093 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3096 and grub-mknetdir.
3097
3098 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3101 kh.loadflags on pre-2.00 kernels.
3102
3103 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 Terminate UNDI and PXE before launching the payload to avoid problems
3106 with DMA.
3107
3108 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3109 (grub_loader_flags): ... this. All users updated.
3110 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3111 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3112 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3113 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3114 function.
3115 (grub_pxe_restore): Likewise.
3116 (fini_hnd): New var.
3117 (GRUB_MOD_INIT): Register shutdown hook.
3118 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3119 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3120 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3121 (grub_loader_set): Rename second argument to flags.
3122
3123 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3126 written bytes.
3127 (grub_get_num_of_utf8_bytes): New function.
3128 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3129 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3130 executing it.
3131 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3132 (grub_ucs4_to_utf8): Change return type.
3133
3134 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3137 warning.
3138 * grub-core/fs/bfs.c (hop_level): Likewise.
3139 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3140
3141 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * grub-core/lib/adler32.c: Recode due to license unclearness.
3144
3145 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3148 (test_header): Likewise.
3149
3150 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 Fix --help formatting.
3153
3154 * util/grub-mkconfig_lib.in (print_option_help): New function.
3155 (grub_fmt): Likewise.
3156 * util/grub-install.in: Use print_option_help and grub_fmt.
3157 * util/grub-kbdcomp.in: Likewise.
3158 * util/grub-mkconfig.in: Likewise.
3159 * util/grub-mknetdir.in: Likewise.
3160 * util/grub-mkrescue.in: Likewise.
3161 * util/grub-mkstandalone.in: Likewise.
3162 * util/grub-reboot.in: Likewise.
3163 * util/grub-set-default.in: Likewise.
3164 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3165
3166 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * linguas.sh: Remove autogenerated *.po.
3169
3170 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * po/README: Move language fetcing to ...
3173 * linguas.sh: ... here.
3174 * po/README: Point to linguas.sh.
3175
3176 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * po/README: Exclude ko.po due to disclaimer problems.
3179
3180 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3183 len = 0.
3184 (grub_gettext_translate_real): Handle 0th string.
3185 (grub_gettext_translate): Ensure that "" isn't translated.
3186
3187 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3190 TRANSLATORS comment.
3191 (grub_diskfilter_print_partmap): Propagate changing of error into
3192 warning.
3193
3194 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3197 to uint64_t to prevent overflow.
3198 (grub_diskfilter_lv): Increase start_extent and extent_count
3199 to uint64_t to prevent overflow.
3200
3201 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * configure.ac: Increase version.
3204
3205 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3208
3209 * po/Rules-translit: New file.
3210 * po/arabic.sed: Likewise.
3211 * po/cyrillic.sed: Likewise.
3212 * po/greek.sed: Likewise.
3213 * po/hebrew.sed: Likewise.
3214 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3215 * po/Makefile.in.in: Add extra_dist4.
3216
3217 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3220
3221 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3222 modify names. Introduce MODE_BIGENDIAN.
3223 * grub-core/fs/minix_be.c: New file.
3224 * grub-core/fs/minix2_be.c: Likewise
3225 * grub-core/fs/minix3_be.c: Likewise.
3226 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3227 minix3_be.
3228 * grub-core/Makefile.core.def (minix_be): New module.
3229 (minix2_be): Likewise.
3230 (minix3_be): Likewise.
3231
3232 2012-04-01 Felix <email@hamburg.de>
3233
3234 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3235 (devs): Add MBP 2011.
3236
3237 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3240
3241 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * grub-core/normal/cmdline.c (print_completion): New field
3244 prompt_len.
3245 (grub_cmdline_get): Handle width properly.
3246
3247 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3250
3251 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3254 after 29th of February.
3255
3256 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 Fix exfat endianness handling.
3259
3260 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3261 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3262 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3263 Byte-swap utf16 when necessary.
3264 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3265
3266 2012-03-31 Anton Blanchard <anton@samba.org>
3267 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 Fix btrfs endianness handling.
3270
3271 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3272 (lower_bound): Make root uint64_t. Use root in le.
3273 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3274 (find_path): Fix template key init.
3275 (grub_btrfs_dir): Fix mtime byteswap.
3276 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3277
3278 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3281 recursion_depth. Break infinite resursions. All users updated.
3282
3283 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3286 after free.
3287 Reported by: Peter Jones.
3288
3289 2012-03-31 Anton Blanchard <anton@samba.org>
3290
3291 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3292 8 bit values.
3293
3294 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * util/grub-install.in: Fix nvram call for PreP.
3297
3298 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3301 the error when some elements are missing into a warning.
3302
3303 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3306
3307 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3308
3309 * docs/grub.texi (Invoking grub-probe): New section.
3310 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3311
3312 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 Fix tab and wide character handling in editor and menu.
3315
3316 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3317 agglomerate control characters with combining marks.
3318 (bidi_line_wrap): Allow break on tab.
3319 (grub_unicode_get_comb_start): New function.
3320 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3321 and tab correctly.
3322 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3323 with a space.
3324 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3325 fixed_tab_size. All users updated.
3326 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3327 (grub_term_getcharwidth): Handle \t.
3328 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3329 and copy.
3330
3331 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 Handle big-endian mdraid.
3334
3335 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3336 * grub-core/Makefile.core.def (mdraid09_be): New module.
3337 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3338 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3339 * grub-core/disk/mdraid_linux_be.c: New file.
3340
3341 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3344
3345 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3348 missing quotes which caused confusion among translators.
3349
3350 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * util/grub-mkconfig_lib.in: Fix typo.
3353
3354 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3357 spaces.
3358 * tests/grub_script_leading_whitespace.in: New file.
3359 * Makefile.util.def (grub_script_leading_whitespace): New test.
3360
3361 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3362
3363 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3364 to work.
3365
3366 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3369 starts with control character.
3370
3371 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3374 overflow.
3375 (grub_gdb_outbuf): Likewise.
3376
3377 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3380 zero terminator. Fixes a crash.
3381
3382 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3385 beyond 4 GiB.
3386 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3387 images independently of preffered adderss field.
3388
3389 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3392 * grub-core/commands/regexp.c: Likewise.
3393 * grub-core/loader/i386/linux.c: Likewise.
3394 * grub-core/partmap/msdos.c: Likewise.
3395 * grub-core/script/execute.c: Likewise.
3396 * grub-core/term/gfxterm.c: Likewise.
3397
3398 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 Add variable parsing in $"..." and fix several mismatches with bash.
3401
3402 * Makefile.util.def (grub_script_gettext): New test.
3403 * grub-core/script/execute.c (parse_string): New function.
3404 (gettext_append): Likewise.
3405 (grub_script_arglist_to_argv): Use gettext_append.
3406 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3407 * tests/grub_script_gettext.in: New file.
3408
3409 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 Fix handling of leading spaces in scripts.
3412
3413 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3414 spaces.
3415 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3416 other than skipping \r. All users updated.
3417 * tests/grub_script_echo1.in: Add space-related tests.
3418 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3419
3420 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3423
3424 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 * configure.ac: Bump up the version to beta2.
3427
3428 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 Fix gettext reload bugs (e.g. inability to disable gettext
3431 once enabled).
3432
3433 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3434 main_context and secondary_context. All functions updated.
3435 (grub_gettext_translate): Rename to ...
3436 (grub_gettext_translate_real): ... this. Return NULL on failed
3437 translate.
3438 (grub_gettext_translate): Handle secondary context.
3439 (grub_gettext_delete_list): Close file and zero-out the context.
3440 (grub_mofile_open): Don't call grub_gettext_delete_list.
3441 Don't close file.
3442 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3443 if locale="" to avoid pointless error message.
3444 (grub_gettext_env_write_lang): Update lang even if load fails.
3445 Handle secondary context.
3446 (grub_gettext_reread_prefix): New function.
3447 (read_main): Likewise.
3448 (read_secondary): Likewise.
3449 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3450 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3451 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3452 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3453
3454 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * configure.ac: Decrease warning level to avoid spurious warnings and
3457 to be able to compile with GCC 4.2.
3458 * Makefile.util.def: Remove -Wno-error=logical-op.
3459
3460 2012-03-10 William Bittner <william.bittner@gmail.com>
3461
3462 * util/import_unicode.py: Add missing brackets around string for
3463 python 3 support.
3464
3465 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 Fix efi chainloader on network root.
3468
3469 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3470 network devices.
3471 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3472 New function.
3473
3474 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3475
3476 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3477 unused show_text member.
3478 * docs/grub.texi: Document "text" property.
3479
3480 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3483 in dprintf.
3484
3485 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 Fix IMSM handling on Fedora.
3488
3489 * util/getroot.c (grub_util_is_imsm): New function.
3490 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3491
3492 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * Makefile.am: Strip gold section.
3495 * conf/Makefile.common: Likewise.
3496 * gentpl.py: Likewise.
3497 * grub-core/Makefile.core.def: Likewise.
3498 * grub-core/genmod.sh.in: Likewise.
3499
3500 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3503 * util/grub.d/20_linux_xen.in: Likewise.
3504 Based on Debian patch.
3505
3506 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * util/grub.d/10_linux.in: Fix syntax error resulting in
3509 Richard Laager's patch.
3510 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3511
3512 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3515 dependencies.
3516
3517 2012-03-10 Richard Laager <rlaager@wiktel.com>
3518
3519 * util/grub.d/10_linux.in: Fix ZFS root passing.
3520
3521 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3524 * grub-core/commands/xnu_uuid.c: Likewise.
3525 * grub-core/loader/efi/appleloader.c: Likewise.
3526 * grub-core/script/execute.c: Likewise.
3527 * grub-core/script/main.c: Likewise.
3528 * util/grub-mkfont.c: Likewise.
3529
3530 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * util/grub-mkfont.c (options): Use more appropriate "select" that
3533 "set" for face index.
3534
3535 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * util/grub-editenv.c (options): Gettextize command summaries.
3538
3539 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3542 "out of memory" error messagge.
3543
3544 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3547 of diskfilter for diskfilter on diskfilter support.
3548
3549 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3552
3553 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3556 themes/starfield.
3557
3558 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3561
3562 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3565
3566 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3569 of error message.
3570
3571 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3574
3575 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3578 message.
3579 * util/grub-install.in: Fix and gettextize error message.
3580
3581 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3584 Gettextize.
3585 * util/grub-mount.c (options): Likewise.
3586
3587 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3590 gettextize.
3591 * grub-core/commands/search_wrap.c (options): Likewise.
3592
3593 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3596
3597 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3600 size calculation.
3601 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3602 none is known.
3603
3604 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3607 "temporary" since it's used in identifier and is limited in space.
3608
3609 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * po/POTFILES.in: Regenerate. Include *.h since they contain
3612 translatable strings as well.
3613
3614 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3617 byte-swap on big-endian.
3618 Reported by: Lennart Sorensen
3619
3620 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3623 (allocate_pages): Improve dprintf.
3624 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3625 code32_start. Fill code32_start and kernel_alignment in params.
3626 (grub_cmd_initrd): Use prot_init_space.
3627
3628 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
3631
3632 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * util/grub-install.in: Add missing dot at the end of sentence.
3635
3636 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3639 * grub-core/commands/videotest.c: Likewise.
3640 * grub-core/loader/i386/linux.c: Likewise.
3641
3642 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
3645 sentence.
3646 Reported by: Milo Casagrande.
3647
3648 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3649
3650 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
3651 * grub-core/commands/gptsync.c: Likewise.
3652 * grub-core/commands/hashsum.c: Likewise.
3653 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3654 * grub-core/commands/legacycfg.c: Likewise.
3655 * grub-core/io/gzio.c: Likewise.
3656 * grub-core/net/net.c: Likewise.
3657 * grub-core/term/gfxterm.c: Likewise.
3658 * grub-core/term/terminfo.c: Likewise.
3659 * grub-core/tests/test_blockarg.c: Likewise.
3660 * grub-core/video/video.c: Likewise.
3661 * util/grub-install.in: Likewise.
3662 * util/grub-mkfont.c: Likewise.
3663
3664 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
3667
3668 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * grub-core/commands/search_wrap.c (options): Fix a typo.
3671 Reported by: David Prévot.
3672
3673 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
3676 description.
3677
3678 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * util/grub-script-check.c (main): Fix a syntax error message which was
3681 unclear.
3682
3683 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
3686
3687 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
3690 messages.
3691
3692 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
3695 without argument.
3696 * util/grub-mount.c (options): Likewise.
3697
3698 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
3701
3702 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/net/http.c: Add TRANSLATORS comments.
3705 * grub-core/normal/cmdline.c: Likewise.
3706 * grub-core/normal/misc.c: Likewise.
3707 * grub-core/partmap/msdos.c: Likewise.
3708 * grub-core/parttool/msdospart.c: Likewise.
3709 * grub-core/script/execute.c: Likewise.
3710 * grub-core/script/main.c: Likewise.
3711 * grub-core/term/terminfo.c: Likewise.
3712 * grub-core/video/bitmap.c: Likewise.
3713 * util/grub-install.in: Likewise.
3714 * util/grub-mkimage.c: Likewise.
3715 * util/grub-mklayout.c: Likewise.
3716 * util/grub-setup.c: Likewise.
3717
3718 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
3721 with similar messages in grub-fstest.
3722
3723 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * util/grub-install.in: Unify "option requires an argument" message
3726 with similar messages in other files.
3727 * util/grub-mkconfig.in: Likewise.
3728
3729 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * util/grub-set-default.in: Replace printf with gettext_printf (the
3732 string in in question is already translated from grub-reboot)
3733
3734 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * configure.ac: Bump up the version to beta1.
3737
3738 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
3741 case when min_align = 0.
3742
3743 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
3746 and fix a case when line_start overflows.
3747
3748 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * util/grub-reboot.in (usage): Mention id posibility.
3751 * util/grub-set-default.in (usage): Likewise.
3752
3753 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3754
3755 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
3756 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
3757 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3758 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3759 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3760 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3761 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3762
3763 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/commands/menuentry.c (options): Remove
3766 GRUB_ARG_OPTION_REPEATABLE.
3767 Reported by: Andreas Vogel
3768
3769 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
3770
3771 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
3772
3773 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
3774
3775 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
3776 error.
3777
3778 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 Use sort -V by the idea of Georgi Georgiev.
3781
3782 * util/grub-mkconfig_lib.in (version_sort): New function.
3783 (version_test_numeric): Use version_sort.
3784
3785 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 Use submenus in grub-mkconfig.
3788
3789 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
3790 * util/grub-mkconfig_lib.in (grub_quote): New function.
3791 (gettext_printf): Use gettext and not gettext_quoted to fix several
3792 messages.
3793 * util/grub.d/10_hurd.in: Use submenus.
3794 * util/grub.d/10_kfreebsd.in: Likewise.
3795 * util/grub.d/10_linux.in: Likewise.
3796 * util/grub.d/10_netbsd.in: Likewise.
3797 * util/grub.d/20_linux_xen.in: Likewise.
3798 * util/grub.d/30_os-prober.in: Likewise.
3799 * util/grub.d/10_illumos.in: Add missing quoting.
3800 * util/grub.d/10_windows.in: Likewise.
3801
3802 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 Fix menu title instability bug.
3805
3806 * grub-core/commands/menuentry.c (options): New option --id.
3807 (grub_normal_add_menu_entry): New argument id. All users updated.
3808 (grub_cmd_menuentry): Handle --id.
3809 (grub_menu_init): Accept unknown arguments.
3810 * grub-core/normal/main.c (features): Add feature_menuentry_id and
3811 feature_menuentry_options.
3812 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
3813 saved_entry.
3814 (get_entry_number): Match with id as well.
3815 * include/grub/menu.h (grub_menu_entry): New member id.
3816 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
3817 * util/grub.d/00_header.in: Define menuentry_id_option.
3818 * util/grub.d/10_hurd.in: Define id.
3819 * util/grub.d/10_illumos.in: Likewise.
3820 * util/grub.d/10_kfreebsd.in: Likewise.
3821 * util/grub.d/10_linux.in: Likewise.
3822 * util/grub.d/10_netbsd.in: Likewise.
3823 * util/grub.d/10_windows.in: Likewise.
3824 * util/grub.d/20_linux_xen.in: Likewise.
3825 * util/grub.d/30_os-prober.in: Likewise.
3826
3827 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
3830 "scope" with "body".
3831
3832 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
3835 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
3836 prot_size and prot_file_size.
3837
3838 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
3841 All users updated. If easily=1 require raid-5/-6 to be full.
3842 (is_node_readable): Likewise.
3843 (scan_devices): Scan incomplete but readable LVs at the end.
3844 (grub_diskfilter_memberlist): Pull missing devices.
3845 (insert_array): Skip scanning until device is complete or scan is
3846 done otherwise.
3847 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
3848 check.
3849 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
3850 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
3851
3852 2012-03-03 Matthew Garrett <mjg@redhat.com>
3853 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 Avoid EFI boot services when loading Linux.
3856
3857 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
3858 avoid_efi_bootservices. All users updated.
3859 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
3860 argument avoid_efi_bootservices. All users updated.
3861 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
3862 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
3863 align, min_align, relocatable, prefered_address. All users updated.
3864 Allocate avoiding boot services if kernel is relocatable.
3865 (grub_cmd_linux): Check if kernel is relocatable.
3866 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
3867 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
3868 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
3869 avoid_efi_boot_services.
3870 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
3871 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
3872 (linux_kernel_params): Likewise.
3873
3874 2012-03-03 Matthew Garrett <mjg@redhat.com>
3875 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3876
3877 Use EDID on EFI.
3878
3879 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
3880 datasize_out.
3881 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
3882 modes. Set gop_handle.
3883 (grub_video_gop_get_edid): New function.
3884 (grub_gop_get_preferred_mode): Likewise.
3885 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
3886 (grub_video_efi_gop_adapter): Set .get_edid.
3887 * include/grub/efi/edid.h: New file.
3888 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
3889
3890 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * util/grub-install.in: Load efivars unconditionally.
3893
3894 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * po/Rules-piglatin: Change suffix from .po-update-en to
3897 .po-update-en-piglatin.
3898
3899 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 Add a pig farm.
3902
3903 * po/piglatin.sed: New file.
3904 * po/en@piglatin.header: Likewise.
3905 * po/Rules-piglatin: Likewise.
3906 * po/README: Add en@piglatin to autogenerated languages.
3907
3908 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
3911 "Command for ...".
3912 * grub-core/commands/hdparm.c (options): Use "Display" rather than
3913 "Check" since we don't check anything.
3914 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
3915 is 64-bit one.
3916 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
3917 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
3918 (grub_md_sha512_real): Likewise.
3919
3920 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/commands/gptsync.c: Fix typographic quoting.
3923 * grub-core/commands/ieee1275/suspend.c: Likewise.
3924 * grub-core/commands/parttool.c: Likewise.
3925 * grub-core/commands/search_wrap.c: Likewise.
3926 * grub-core/commands/videoinfo.c: Likewise.
3927 * grub-core/gfxmenu/gui_label.c: Likewise.
3928 * grub-core/hello/hello.c: Likewise.
3929 * grub-core/kern/emu/main.c: Likewise.
3930 * grub-core/net/net.c: Likewise.
3931 * grub-core/normal/menu.c: Likewise.
3932 * grub-core/normal/menu_text.c: Likewise.
3933 * grub-core/normal/misc.c: Likewise.
3934 * util/grub-editenv.c: Likewise.
3935 * util/grub-install.in: Likewise.
3936 * util/grub-kbdcomp.in: Likewise.
3937 * util/grub-mkconfig.in: Likewise.
3938 * util/grub-mknetdir.in: Likewise.
3939 * util/grub-mkrescue.in: Likewise.
3940 * util/grub-mkstandalone.in: Likewise.
3941 * util/grub-reboot.in: Likewise.
3942 * util/grub-set-default.in: Likewise.
3943 * util/grub-setup.c: Likewise.
3944 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3945
3946 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
3949 * grub-core/commands/keystatus.c: Likewise.
3950 * grub-core/commands/loadenv.c: Likewise.
3951 * grub-core/commands/probe.c: Likewise.
3952 * grub-core/commands/regexp.c: Likewise.
3953 * grub-core/commands/true.c: Likewise.
3954 * grub-core/commands/videoinfo.c: Likewise.
3955 * grub-core/disk/cryptodisk.c: Likewise.
3956 * grub-core/disk/ldm.c: Likewise.
3957 * grub-core/disk/loopback.c: Likewise.
3958 * grub-core/disk/luks.c: Likewise.
3959 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3960 * grub-core/kern/disk.c: Likewise.
3961 * grub-core/kern/emu/hostdisk.c: Likewise.
3962
3963 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3964
3965 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
3966 * util/grub-install.in: Add missing quote in the comment.
3967
3968 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
3971 * grub-core/commands/lsmmap.c: Likewise.
3972 * grub-core/commands/minicmd.c: Likewise.
3973 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3974 * grub-core/commands/regexp.c: Likewise.
3975 * grub-core/gdb/gdb.c: Likewise.
3976 * grub-core/term/gfxterm.c: Likewise.
3977 * util/grub-mkconfig.in: Likewise.
3978 * util/grub-mkfont.c: Likewise.
3979 * util/grub-mklayout.c: Likewise.
3980 * util/grub-mknetdir.in: Likewise.
3981 * util/grub-mkrescue.in: Likewise.
3982 * util/grub.d/30_os-prober.in: Likewise.
3983
3984 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3985
3986 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
3987 with "Direct color" and "Packed" with "Packed pixel".
3988 (grub_cmd_videoinfo): Simplify legend.
3989
3990 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3993 absolutely unclear error message.
3994
3995 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * util/grub-mkstandalone.in: Remove confusing leftover print.
3998
3999 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4002 comments.
4003 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4004 (GRUB_MOD_INIT): Likewise.
4005 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4006 VGA mode.
4007 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4008 comments.
4009 * util/grub-install.in (usage): Likewise.
4010 Spell ID in whole letters.
4011 Add missing ending dot.
4012 Quote variables.
4013 * util/grub-reboot.in: Fix capitalisation.
4014 * util/grub-set-default.in: Likewise.
4015
4016 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4019 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4020 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4021 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4022 Disable -Werror for -Wdeprecated-declarations.
4023 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4024 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4025 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4026 (grub_util_get_grub_dev): Make luks handling dependent on
4027 HAVE_DEVICE_MAPPER and not __linux__.
4028 (get_win32_path): Fix format security.
4029 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4030 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4031 Don't try grub_find_zpool_from_dir.
4032 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4033 #ifdef-out paresdir.
4034
4035 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * util/grub-pe2elf.c (usage): Add missing noreturn.
4038 (write_section_data): Rename name to shname to avoid shadowing.
4039 (write_symbol_table): Rename name to symname to avoid shadowing.
4040 Fix write_reloc_section call.
4041
4042 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4045 to ensure that it's after the last byte of .text.
4046
4047 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * util/ieee1275/ofpath.c (my_isdigit): New function.
4050 (trailing_digits): Use my_isdigit.
4051 (strip_trailing_digits): Likewise.
4052
4053 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4054
4055 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4056 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4057
4058 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * grub-core/kern/i386/pc/startup.S: Define __start.
4061
4062 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4063
4064 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4065 strip already transforms he format.
4066
4067 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4070
4071 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 * util/grub-install.in: Add missing gettext init.
4074 * util/grub-kbdcomp.in: Likewise.
4075 * util/grub-mkconfig.in: Likewise.
4076 * util/grub-mknetdir.in: Likewise.
4077 * util/grub-mkrescue.in: Likewise.
4078 * util/grub-mkstandalone.in: Likewise.
4079 * util/grub-reboot.in: Likewise.
4080 * util/grub-set-default.in: Likewise.
4081 * util/grub.d/00_header.in: Likewise.
4082 * util/grub.d/10_hurd.in: Likewise.
4083 * util/grub.d/10_windows.in: Likewise.
4084 * util/grub.d/30_os-prober.in: Likewise.
4085 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4086
4087 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * po/Rules-swiss: Fix header comment.
4090
4091 2012-02-29 Andreas Vogel <anvoit>
4092
4093 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4094 resulted in leak of arguments.
4095
4096 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4099 reed_solomon_size const definition instead of computing it since
4100 Apple assembler doesn't support the later.
4101
4102 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * gentpl.py (kernel): Rewrite Apple part.
4105
4106 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4109
4110 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4113 ELF section gap.
4114 (load_image): Likewise.
4115
4116 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * configure.ac: Fix a typo in previous commit.
4119
4120 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 Don't add -Wl,-N on Apple platform.
4123
4124 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4125 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4126
4127 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/Makefile.core.def (lzma_decompress): Use
4130 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4131
4132 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 * grub-core/genmod.sh.in: Rewrite the Apple part.
4135
4136 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4137
4138 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4139 comparison.
4140
4141 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4142
4143 * acinclude.m4 (grub_CHECK_PIC): New test.
4144 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4145
4146 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4149 to avoid the warning.
4150
4151 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4154 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4155 after. All users updated.
4156
4157 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 Use the common size routine in hostfs so we can read disks as well.
4160
4161 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4162 (grub_util_get_fd_size): ... this. Return size in bytes.
4163 All users updated.
4164 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4165 grub_util_get_fd_size.
4166
4167 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4170 Add blocksize retrieval.
4171
4172 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * configure.ac: Restore CFLAGS after efiemu check.
4175
4176 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4179 Apple bug.
4180
4181 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4182
4183 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4184
4185 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4188 (grub_cmd_halt): Likewise.
4189
4190 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4191
4192 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4193 for local arithmetics.
4194 Break %sp init into 2 instructions.
4195 Add 0 byte at the end.
4196
4197 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4200 before loops.
4201
4202 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4205 for context.
4206
4207 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 * grub-core/disk/ldm.c (make_vg): Init part.name.
4210 (grub_ldm_detect): Silence spurious warning.
4211 (grub_util_is_ldm): Likewise.
4212
4213 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4214
4215 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4216 sane value to avoid a spurious warning.
4217
4218 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4221 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4222
4223 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4224
4225 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4226 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4227
4228 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4231 hardcoding the relevant info.
4232
4233 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4236 missing const qualifiers.
4237 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4238
4239 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4240
4241 * util/getroot.c [__APPLE__]: Add missing includes.
4242 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4243
4244 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4247
4248 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4249
4250 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4251 avoid conflicts.
4252
4253 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4254
4255 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4256
4257 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4258
4259 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4260 and grub_file_close call.
4261
4262 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 Add LZSS Mach-O support (needed for new xnu kernelcache).
4265
4266 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4267 * grub-core/loader/lzss.c: New file.
4268 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4269 on Mach-O open failure.
4270 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4271 Don't free cmdsXX in uncompressedXX is set.
4272 (grub_macho_file): Init new fields.
4273 New argument is_64bit. All users updated.
4274 Handle compressed. Error out if no suitable architecture is found.
4275 Don't close file.
4276 (grub_macho_open): New argument is_64bit. All users updated.
4277 * grub-core/loader/macho32.c: Add defines for new fields.
4278 * grub-core/loader/macho64.c: Likewise.
4279 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4280 (grub_macho_parse): Handle compressed.
4281 Defer actual processing if compressed.
4282 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4283 "filename". All users updated.
4284 (grub_macho_size): New argument "filename". All users updated.
4285 (grub_macho_get_entry_point): Likewise.
4286 (grub_macho_load): Handle compressed.
4287 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4288 (GRUB_MACHO_LZSS_OFFSET): New define.
4289 (grub_decompress_lzss): New proto.
4290 * include/grub/machoload.h (grub_macho_file): New fields to handle
4291 compressed.
4292 (grub_macho_contains_macho64): Remove proto.
4293 (grub_macho_contains_macho32): Likewise.
4294 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4295
4296 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4299
4300 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 Fix make dist.
4303
4304 * Makefile.am (starfield_theme_files): New var.
4305 (starfield_DATA): Use starfield_theme_files.
4306 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4307 Add bootcheck-related files.
4308 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4309 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4310 and font_char_metrics.txt.
4311 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4312 (setjmp): Add lib/ia64/longjmp.S.
4313 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4314 * po/POTFILES.in: Regenerate.
4315 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4316 DISTFILES.common.extra1.
4317 * util/devicemap.c: Removed.
4318 * grub-core/lib/i386/relocator_backward.S: Likewise.
4319 * util/import_gcry.py: Remove unused files. Add extra_dist for
4320 ChangeLog.
4321
4322 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4325 grub_gettext_delete_list before changing grub_gettext_max to avoid
4326 running out of array bounds.
4327
4328 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4331 grub_vga_text_init/grub_vga_text_fini.
4332
4333 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4336
4337 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * configure.ac: Bump to 2.00~beta0.
4340
4341 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4344 missing initialisation.
4345
4346 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4349
4350 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 Support v2 xnu boot arguments.
4353
4354 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4355 New argument fsbfreq_out.
4356 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4357 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4358 be used.
4359 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4360 darwin_version.
4361 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4362 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4363 (grub_xnu_boot_params): Rename to ...
4364 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4365 (grub_xnu_boot_params_v2): New struct.
4366
4367 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4370 zeroing of CRC field before computing CRC.
4371
4372 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4375 Change order of allocations to decrease fragmentation.
4376
4377 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4380
4381 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4382
4383 Use write-combining MTRR to speed up video with buggy BIOSes.
4384
4385 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4386 (cpuid): New define.
4387 (rdmsr): Likewise.
4388 (wrmsr): Likewise.
4389 (mtrr_base): Likewise.
4390 (mtrr_mask): Likewise.
4391 (grub_vbe_enable_mtrr_entry): New function.
4392 (grub_vbe_enable_mtrr): Likewise.
4393 (grub_vbe_disable_mtrr): Likewise.
4394 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4395 control off to BIOS.
4396 (grub_video_vbe_init): Fill mtrr.
4397 (grub_video_vbe_fini): Disable mtrr.
4398 (grub_video_vbe_get_info_and_fini): Likewise.
4399 (grub_video_vbe_setup): Enable mtrr.
4400
4401 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4402
4403 * include/grub/partition.h (grub_partition_map): Change prototype of
4404 embed to take a maximum value for nsectors.
4405 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4406 * include/grub/fs.h (grub_fs): Likewise.
4407 * grub-core/partmap/msdos.c (embed_signatures): New array.
4408 (pc_partition_map_embed): Check for and avoid sectors matching any
4409 of the signatures in embed_signatures, up to max_nsectors.
4410 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4411 returned sector map to max_nsectors.
4412 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4413 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4414 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4415 * util/grub-setup.c (setup): Allow for the embedding area being
4416 split into multiple blocklists. Tell dest_partmap->embed the
4417 maximum number of sectors we care about.
4418
4419 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4420
4421 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4422 Specify blocklist_install and reserver_first_sector for all fs.
4423 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4424 blocklists.
4425
4426 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * util/grub-install.in: Clarify strings.
4429 Fix source dir check.
4430
4431 2012-02-27 Richard Laager <rlaager@wiktel.com>
4432
4433 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4434 "zfs" and "fuse.zfs" as synonyms.
4435
4436 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * configure.ac: Put platform and target_cpu substitutions back since
4439 they are used for directories.
4440
4441 2012-02-27 Richard Laager <rlaager@wiktel.com>
4442 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4445 * util/grub.d/20_linux_xen.in: Likewise.
4446
4447 2012-02-27 Richard Laager <rlaager@wiktel.com>
4448
4449 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4450 with full paths.
4451
4452 2012-02-27 Richard Laager <rlaager@wiktel.com>
4453
4454 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4455 unescape.
4456
4457 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 Don't use insecure popen in getroot.
4460
4461 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4462 (exec_pipe): ... here.
4463 (find_root_devices_from_poolname): Use exec_pipe.
4464
4465 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 Remove platform and target_cpu replacement.
4468
4469 * configure.ac: Remove platform and target_cpu substitutions.
4470 * tests/util/grub-shell.in: Use modinfo.
4471 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4472 explicitly.
4473
4474 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4475
4476 Autodetect platform in grub-install but allow override.
4477
4478 * util/grub-install.in: Autodetect platform. Support --target and
4479 --directory. Read platform from modinfo.sh.
4480
4481 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 Support btrfs multi-volume probe.
4484
4485 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4486 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4487 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4488 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4489 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4490 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4491 grub_find_root_devices_from_btrfs if on btrfs.
4492
4493 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4494
4495 Remove any awareness of *.c util files about target.
4496
4497 * Makefile.util.def (grub-setup): Split to ...
4498 (grub-bios-setup): ... and this.
4499 (grub-sparc64-setup): ... and this.
4500 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4501 * docs/man/grub-setup.h2m: Split into ...
4502 * docs/man/grub-sparc64-setup.h2m: ... this.
4503 * docs/man/grub-bios-setup.h2m: ... and this.
4504 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4505 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4506 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4507 (grub_target_addr_t): Remove.
4508 (grub_target_size_t): Remove.
4509 (grub_target_ssize_t): Remove.
4510 * util/grub-install.in: Use new grub-*-setup.
4511 * util/grub-mkimagexx.c (Elf_Word): New define.
4512 (Elf_Half): Likewise.
4513 (Elf_Section): Likewise.
4514 (ELF_ST_TYPE): Likewise.
4515 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4516 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4517
4518 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 Replace grub_target_addr with more appropriate types.
4521
4522 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4523 grub_target_addr with grub_addr.
4524 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4525 grub_target_addr with grub_port.
4526 (grub_cmd_write): Likewise.
4527 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4528 grub_target_addr with grub_addr.
4529 (grub_cmd_write): Likewise.
4530 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4531
4532 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4535 const qualifier for vendor_guid.
4536
4537 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4538
4539 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4540 const qualifier.
4541 (efiemu_memequal): Likewise.
4542 (find_variable): Likewise.
4543
4544 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4545
4546 Fix missing console prototype on qemu-mips.
4547
4548 * include/grub/mips/qemu_mips/console.h: New file.
4549
4550 2012-02-27 Matthew Garrett <mjg@redhat.com>
4551 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4554 * include/grub/efi/efi.h: Likewise.
4555 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4556 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4557 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4558 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4559 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4560 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4561
4562 2012-02-27 Matthew Garrett <mjg@redhat.com>
4563
4564 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4565
4566 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4567
4568 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4569 error.
4570
4571 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4572
4573 * configure.ac: Remove inappropriate use of program_transform_name
4574 on grubdir and bootdir but allow explicit specification of those
4575 variables.
4576
4577 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * util/grub-mknetdir.in (grub_prefix): Removed.
4580 (subdir): Use @bootdirname@ and @grubdirname@.
4581
4582 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4585
4586 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 * po/POTFILES.in: Regenerated.
4589
4590 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 Remove improper use of program_transform_name on pkglibrootdir.
4593
4594 * configure.ac (pkglibrootdir): Removed.
4595 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4596 * util/grub-mkimage.c: Likewise.
4597
4598 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4601 warning.
4602
4603 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * util/grub-install.in: Use file identifier if no UUID is available
4606 or user explicitly prompted for it.
4607
4608 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4609
4610 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4611 (freebsd_get_zfs): New function.
4612 (grub_freebsd_boot): Pass zfs UUID.
4613 (grub_cmd_freebsd): Set zfs UUID.
4614
4615 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4618 pkglibrootdir.
4619
4620 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4621
4622 Add configure flag to control libzfs integration.
4623
4624 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4625
4626 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
4629 device.
4630 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
4631 small devices.
4632
4633 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4636 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
4637 be used on non-modules.
4638
4639 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
4640 Rename to grub_boot_init.
4641 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
4642 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
4643 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
4644 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
4645 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
4646 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
4647 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
4648 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
4649 includes.
4650 (grub_machine_init): Remove empty inits.
4651 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
4652 includes.
4653 (grub_machine_init): Remove empty inits.
4654 * grub-core/term/arc/console.c: Remove explicit proto.
4655 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
4656 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
4657 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4658 grub_at_keyboard_fini.
4659 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
4660 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
4661 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4662 grub_gfxterm_fini.
4663 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
4664 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
4665 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4666 grub_vgatext_fini.
4667 * grub-core/term/ieee1275/console.c: Remove explicit proto.
4668 * grub-core/term/serial.c (GRUB_MOD_INIT)
4669 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
4670 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4671 grub_serial_fini.
4672 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
4673 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
4674 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4675 grub_terminfo_fini.
4676 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
4677 (GRUB_MOD_FINI): Likewise.
4678 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
4679 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
4680 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4681 grub_video_radeon_fuloong2e_fini.
4682 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
4683 [LOONGSON]: Rename to grub_video_sis315pro_init.
4684 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4685 grub_video_sis315pro_fini.
4686 * grub-core/video/sm712.c (GRUB_MOD_INIT)
4687 [LOONGSON]: Rename to grub_video_sm712_init.
4688 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4689 grub_video_sm712_fini.
4690 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
4691 (grub_at_keyboard_fini): Likewise.
4692 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
4693 Don't declare grub_{modname}_init.
4694 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
4695 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
4696 New proto.
4697 (grub_keylayouts_fini) [!EMU]: Likewise.
4698 * include/grub/serial.h (grub_serial_init) [!EMU]:
4699 New proto.
4700 (grub_serial_fini) [!EMU]: Likewise.
4701 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
4702 New proto.
4703 (grub_terminfo_fini) [!EMU]: Likewise.
4704 * include/grub/video.h (grub_font_init) [!EMU]:
4705 New proto.
4706 (grub_font_fini) [!EMU]: Likewise.
4707 (grub_gfxterm_init) [!EMU]: Likewise.
4708 (grub_gfxterm_fini) [!EMU]: Likewise.
4709 (grub_video_sm712_init) [!EMU]: Likewise.
4710 (grub_video_sm712_fini) [!EMU]: Likewise.
4711 (grub_video_sis315pro_init) [!EMU]: Likewise.
4712 (grub_video_sis315pro_fini) [!EMU]: Likewise.
4713 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
4714 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
4715
4716 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 Make nand a prefix for nand devices.
4719
4720 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
4721
4722 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
4725 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
4726
4727 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * include/grub/env.h (grub_env_find): Remove prototype.
4730 * grub-core/kern/env.c (grub_env_find): Make static.
4731 (grub_env_set): Remove useless set.
4732
4733 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4734
4735 * grub-core/kern/i386/realmode.S: Remove useless align.
4736
4737 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * include/grub/dl.h (grub_dl_load_file): Don't export.
4740
4741 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
4744 grub_dprintf.
4745
4746 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
4749 grub_errors.
4750 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
4751 not reloading whole superblock but only the part which is really needed.
4752 Remove useless grub_errors.
4753 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
4754 grub_errors.
4755
4756 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 Don't export grub_get_rtc.
4759
4760 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
4761 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
4762
4763 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
4766
4767 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
4770 argument since it can be deduced from diskfilter. All users updated.
4771
4772 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 Remove prio_list.
4775
4776 * include/grub/list.h (grub_prio_list): Removed.
4777 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
4778 GRUB_COMMAND_PRIO_MASK.
4779 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
4780 GRUB_COMMAND_FLAG_ACTIVE.
4781 (grub_prio_list_insert): Removed.
4782 (grub_prio_list_remove): Likewise.
4783 (GRUB_AS_PRIO_LIST): Likewise.
4784 (GRUB_AS_PRIO_LIST_P): Likewise.
4785 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
4786 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
4787 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
4788 * grub-core/kern/command.c (grub_register_command_prio): Inline
4789 the prio_list code.
4790 (grub_unregister_command): Likewise.
4791
4792 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 Fix interrupt mixup from previous commit.
4795
4796 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
4797 (grub_realidt): New var.
4798 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
4799 Load idt.
4800 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
4801 New declaration.
4802 (grub_relocator16_boot): Set grub_relocator16_idt.
4803 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
4804 (LOCAL(realidt)): ... this.
4805 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
4806 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
4807 (grub_realidt): New variable.
4808
4809 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
4812 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
4813 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
4814 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
4815 Gettextize.
4816 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
4817 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
4818 * po/POTFILES.in: Regenerate.
4819
4820 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
4823 errors.
4824
4825 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
4828 \0.
4829 (add_length): Likewise.
4830
4831 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4832 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
4833
4834 GDB serial and backtrace support.
4835
4836 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
4837 (prot_to_real): Likewise.
4838 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
4839 * grub-core/Makefile.core.def (backtrace): New module.
4840 (gdb): Likewise.
4841 * grub-core/gdb/cstub.c: New file.
4842 * grub-core/gdb/gdb.c: Likewise.
4843 * grub-core/gdb/i386/idt.c: Likewise.
4844 * grub-core/gdb/i386/machdep.S: Likewise.
4845 * grub-core/gdb/i386/signal.c: Likewise.
4846 * grub-core/lib/i386/backtrace.c: Likewise.
4847 * grub-core/lib/backtrace.c: Likewise.
4848 * include/grub/backtrace.h: Likewise.
4849 * include/grub/gdb.h: Likewise.
4850 * include/grub/i386/gdb.h: Likewise.
4851
4852 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
4855 New function.
4856 (add_length): Likewise.
4857 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
4858 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
4859 proto.
4860 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
4861 __argp_get_display_len.
4862
4863 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 $"..." support in scripts.
4866
4867 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
4868 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
4869 * grub-core/script/yylex.l: Likewise.
4870 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
4871 value.
4872
4873 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * gentpl.py: Remove obsolete pkglib_DATA handling.
4876
4877 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 Don't transform PACKAGE_TARNAME following a discussion on autoconf
4880 mailing list.
4881
4882 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
4883 * util/grub-kbdcomp.in: Likewise.
4884 * util/grub-mkconfig.in: Likewise.
4885 * util/grub-mkconfig_lib.in: Likewise.
4886 * util/grub-mknetdir.in: Likewise.
4887 * util/grub-mkrescue.in: Likewise.
4888 * util/grub-mkstandalone.in: Likewise.
4889 * util/grub-reboot.in: Likewise.
4890 * util/grub-set-default.in: Likewise.
4891 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4892
4893 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 Remove GRUB_PREFIX.
4896
4897 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
4898 * util/grub.d/00_header.in: Compute prefix in the only place it's still
4899 used for backward compatibility.
4900
4901 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 Add new all_video module.
4904
4905 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
4906 * grub-core/Makefile.core.def (all_video): New module.
4907 * grub-core/genmoddep.awk: Generate dependency of all_video from
4908 video.lst.
4909 * grub-core/lib/fake_module.c: New file.
4910 * grub-core/normal/main.c (features): Add feature_all_video_module.
4911 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
4912 don't do explicit search again.
4913 insmod all_video in load_video if available.
4914
4915 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4916
4917 Another round of string clarification and adding TRANSLATORS comments.
4918
4919 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
4922
4923 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
4926 to grub_ssize_t.
4927 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
4928 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
4929
4930 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
4933 trailing newline implicitly. All users updated.
4934
4935 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 Implement serial on IEEE1275 and EFI.
4938
4939 * docs/grub.texi (Platform-specific limitations): Fix the columen video
4940 on emu. Mention arc and emu as the only platforms without serial
4941 support.
4942 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
4943 ieee1275 platforms.
4944 * grub-core/term/efi/serial.c: New file.
4945 * grub-core/term/ieee1275/serial.c: Likewise.
4946 * grub-core/term/serial.c (grub_serial_find): Disable direct port
4947 specification if no ns8250 driver is available.
4948 (grub_cmd_serial): Likewise.
4949 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
4950 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
4951 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
4952 (grub_efi_parity_type_t): New type.
4953 (grub_efi_stop_bits_t): Likewise.
4954 (grub_efi_serial_io_interface): New struct.
4955 * include/grub/serial.h (grub_serial_port): Make 'broken' field
4956 available for all interfaces.
4957 Add EFI and IEEE1275 fields.
4958 (grub_ofserial_init): New proto.
4959 (grub_efiserial_init): Likeiwse.
4960 * util/grub.d/00_header.in: Don't check for the presence of serial
4961 module.
4962
4963 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4964
4965 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
4966 name as if it was an alias.
4967
4968 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4969
4970 * grub-core/commands/lsacpi.c (options): Fix typo.
4971
4972 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4973
4974 Convert grub-emu to argp.
4975
4976 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
4977 emu.
4978 * util/argp_common.c: Rename to ...
4979 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
4980 Add missing includes.
4981 * grub-core/kern/emu/main.c: Convert to argp.
4982 * po/POTFILES.in: Regenerate.
4983 * util/grub-install.in (usage): Make first letter lowcase in messages
4984 for uniformity.
4985 * util/grub-setup.c (options): Likewise.
4986
4987 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
4990 Put back accidently commented-out code.
4991
4992 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
4995 loop check using Brent algorithm.
4996 (grub_hfsplus_btree_search): Likewise.
4997
4998 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 * util/grub-install.in: Fix usage of wrong device for PreP install.
5001
5002 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * conf/Makefile.common (CFLAGS_GNULIB): Add
5005 -Wno-unsafe-loop-optimizations.
5006 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5007 on tools.
5008 * grub-core/commands/legacycfg.c: Add pragma to skip
5009 -Wunsafe-loop-optimizations.
5010 (check_password_md5_real): Fix loop counter type.
5011 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5012 reading.
5013 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5014 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5015 loop condition.
5016 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5017 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5018 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5019 condition.
5020 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5021 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5022 avoid possible infinite loops.
5023 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5024 and -Wunsafe-loop-optimizations.
5025 * grub-core/script/yylex.l: Likewise.
5026 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5027 (print_glyphs): Avoid infinite loops.
5028 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5029
5030 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5031
5032 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5033 to avoid infinite loop.
5034 (disp_acpi_rsdt_table): Likewise.
5035
5036 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5037
5038 * grub-core/font/font.c (grub_font_load): Add support for default
5039 path for fonts ($prefix/fonts).
5040 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5041 for checking if string is a path.
5042 * grub-core/normal/main.c (features): Add feature_default_font_path.
5043 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5044 * util/grub.d/00_header.in: Use default directory if possible.
5045 * util/grub-install.in: Install unicode.pf2.
5046
5047 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5050 * po/Rules-swiss: New file.
5051 * po/swiss.sed: Likewise.
5052
5053 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * grub-core/fs/btrfs.c (find_device): Fix typos.
5056 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5057 * util/grub-mkrelpath.c (argp_parser): Likewise.
5058 Reported by: Yuri Chornoivan.
5059
5060 2012-02-23 Dalet Omega <daletomega@gmail.com>
5061
5062 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5063 for usual informative messages.
5064
5065 2012-02-23 Dalet Omega <daletomega@gmail.com>
5066
5067 Starfield theme.
5068
5069 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5070 * conf/Makefile.common: Define starfielddir.
5071 * configure.ac: Configure starfield.
5072 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5073 * themes/starfield/README: Likewise.
5074 * themes/starfield/blob_w.png: Likewise.
5075 * themes/starfield/boot_menu_c.png: Likewise.
5076 * themes/starfield/boot_menu_e.png: Likewise.
5077 * themes/starfield/boot_menu_n.png: Likewise.
5078 * themes/starfield/boot_menu_ne.png: Likewise.
5079 * themes/starfield/boot_menu_nw.png: Likewise.
5080 * themes/starfield/boot_menu_s.png: Likewise.
5081 * themes/starfield/boot_menu_se.png: Likewise.
5082 * themes/starfield/boot_menu_sw.png: Likewise.
5083 * themes/starfield/boot_menu_w.png: Likewise.
5084 * themes/starfield/slider_c.png: Likewise.
5085 * themes/starfield/slider_n.png: Likewise.
5086 * themes/starfield/slider_s.png: Likewise.
5087 * themes/starfield/src/blob_nw.xcf: Likewise.
5088 * themes/starfield/src/bootmenu/: Likewise.
5089 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5090 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5091 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5092 * themes/starfield/src/slider_c.xcf: Likewise.
5093 * themes/starfield/src/slider_n.xcf: Likewise.
5094 * themes/starfield/src/slider_s.xcf: Likewise.
5095 * themes/starfield/src/terminalbox/: Likewise.
5096 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5097 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5098 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5099 * themes/starfield/starfield.png: Likewise.
5100 * themes/starfield/terminal_box_c.png: Likewise.
5101 * themes/starfield/terminal_box_e.png: Likewise.
5102 * themes/starfield/terminal_box_n.png: Likewise.
5103 * themes/starfield/terminal_box_ne.png: Likewise.
5104 * themes/starfield/terminal_box_nw.png: Likewise.
5105 * themes/starfield/terminal_box_s.png: Likewise.
5106 * themes/starfield/terminal_box_se.png: Likewise.
5107 * themes/starfield/terminal_box_sw.png: Likewise.
5108 * themes/starfield/terminal_box_w.png: Likewise.
5109 * themes/starfield/theme.txt: Likewise.
5110
5111 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * util/grub.d/00_header.in: Add missing export theme.
5114
5115 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5118 already included.
5119 Reported by: Eren D.
5120
5121 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 * conf/Makefile.common (grubdatadir): Removed.
5124 (Makefile.am): Move eveything grubdata to pkgdata.
5125
5126 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 * grub-core/commands/acpihalt.c (get_sleep_type):
5129 Remove unused variable.
5130
5131 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5134 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5135 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5136 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5137 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5138 i18n with gettext no-op.
5139 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5140 GRUB_ACPI_OPCODE_STRING_CONST.
5141 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5142 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5143
5144 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5145
5146 * po/POTFILES.in: Regenerate.
5147
5148 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5151 -Wno-error=missing-noreturn.
5152
5153 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5154
5155 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5156 condition to avoid possibly infinite loops.
5157 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5158 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5159
5160 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5163 condition to avoid possibly infinite loops.
5164
5165 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5168 on show_error.
5169
5170 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5171
5172 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5173
5174 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5175
5176 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5177
5178 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * util/bin2h.c (usage): Add missing attribute noreturn.
5181
5182 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5185 if the size isn't divisible by 512.
5186
5187 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 Make list_push and list_remove functions rather than inline functions
5190 to decrease size and avoid aliasing violations.
5191
5192 * include/grub/list.h (grub_list_push): Move to ...
5193 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5194 * include/grub/list.h (grub_list_remove): Move to ...
5195 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5196
5197 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5198
5199 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5200 and -Wunused-result.
5201
5202 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5205 Reported by: Seth Goldberg
5206
5207 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5208
5209 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5210
5211 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5212
5213 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5214 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5215 command line.
5216 * docs/grub.texi (Simple configuration): Document
5217 GRUB_CMDLINE_GNUMACH.
5218
5219 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * conf/Makefile.common (platform_SCRIPTS): New variable.
5222 (platform_PROGRAMS): Likewise.
5223 * gentpl.py: Mark *,module and *.image for install.
5224 * grub-core/gdb_grub.in: Add a notice of expected environment.
5225 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5226 (gmodule.pl): Likewise.
5227
5228 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 Replace grub_checkkey with grub_getkey_noblock.
5231
5232 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5233 (grub_getkey_noblock): ... this. All users updated.
5234
5235 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * grub-core/kern/emu/console.c: Move to ...
5238 * grub-core/term/emu/console.c: ...here.
5239 (grub_ncurses_getkey): Fix return value if no key is detected.
5240
5241 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5244 (grub_unit_test_fini): Likewise.
5245 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5246
5247 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 * include/grub/test.h (GRUB_UNIT_TEST)
5250
5251 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5254 Better error handling.
5255 (grub_script_return): Likewise.
5256 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5257
5258 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5259
5260 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5261 rimplicit redifinition.
5262
5263 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5264
5265 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5266 GRUB.
5267
5268 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5271 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5272 prompt here.
5273
5274 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5277 as GRUB_ERR_BUG. Don't malloc if no device is available.
5278
5279 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5282 Mark calling with invalid term as GRUB_ERR_BUG.
5283
5284 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5287 packets rather than raising an error.
5288
5289 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5292 in if.
5293
5294 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5297 diagnostic to dprintf.
5298 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5299
5300 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5303 device name.
5304
5305 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5308 (grub_ntfs_iterate_dir): Likewise.
5309
5310 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 Efiemu stylistic fixes and gettext.
5313
5314 * grub-core/efiemu/i386/loadcore32.c
5315 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5316 * grub-core/efiemu/i386/loadcore64.c
5317 (grub_arch_efiemu_relocate_symbols64): Likewise.
5318 * grub-core/efiemu/i386/pc/cfgtables.c
5319 (grub_machine_efiemu_init_tables): Likewise.
5320 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5321 (grub_efiemu_loadcore_initXX): Add a filename argument.
5322 All users updated.
5323 Improved error message.
5324 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5325 Add a filename argument.
5326 All users updated.
5327 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5328 Reclassify double relocation as GRUB_ERR_BUG.
5329
5330 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5333 handling.
5334
5335 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5338 on partition.
5339
5340 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5343
5344 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 Improve string. Gettextize.
5347
5348 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5351 utils.
5352 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5353
5354 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5357 [GRUB_UTIL]: New function.
5358 (insert_array) [GRUB_UTIL]: Store partmaps.
5359 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5360 partmaps.
5361 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5362 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5363 (probe_abstraction): Print diskfilter and not raid.
5364 Reported by: Lennart Sorensen
5365
5366 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5369 * util/grub-mkimagexx.c (MASK3): New define.
5370 (add_value_to_slot_20b): Use MASK3.
5371 (add_value_to_slot_21): Likewise.
5372 (relocate_addresses): Fix format specification.
5373 (load_image): Explicitly init symtab_section.
5374
5375 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5378 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5379
5380 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5383 on powerpc.
5384 Reported by: Lennart Sorensen
5385
5386 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * gentpl.py: Add missing license header.
5389 * docs/grub.texi: Update copyright year.
5390
5391 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5392
5393 Source grub-mkconfig_lib from the build directory at build time.
5394 Suggested by: Vladimir Serbinenko.
5395
5396 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5397 * util/grub-install.in: Define pkgdatadir if not already set, and source
5398 grub-mkconfig_lib from there.
5399 * util/grub-kbdcomp.in: Likewise.
5400 * util/grub-mkconfig.in: Likewise.
5401 * util/grub-mknetdir.in: Likewise.
5402 * util/grub-mkrescue.in: Likewise.
5403 * util/grub-mkstandalone.in: Likewise.
5404 * util/grub-reboot.in: Likewise.
5405 * util/grub-set-default.in: Likewise.
5406 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5407
5408 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5409
5410 Increase warning level.
5411
5412 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5413 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5414 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5415 (TARGET_CFLAGS): Likewise.
5416 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5417 * grub-core/Makefile.core.def (decompressor_xz): Add
5418 -Wno-unreachable-code.
5419 (normal): Add -Wno-redundant-decls.
5420 (xzio): Add -Wno-unreachable-code.
5421 (lzopio): Add -Wno-redundant-decls -Wno-error.
5422 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5423 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5424 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5425 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5426 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5427 * grub-core/kern/i386/coreboot/init.c: Add exception to
5428 -Wsuggest-attribute=noreturn.
5429 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5430 * grub-core/kern/ia64/dl_helper.c: Likewise.
5431 * grub-core/kern/mips/dl.c: Likewise.
5432 * grub-core/kern/sparc64/dl.c: Likewise.
5433 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5434 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5435 (memcmp): Likewise.
5436 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5437 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5438 * grub-core/loader/mips/linux.c: Likewise.
5439 * grub-core/loader/multiboot_elfxx.c: Likewise.
5440 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5441 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5442 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5443 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5444 fixme.
5445 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5446 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5447 Fix prototype.
5448
5449 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5452 address.
5453
5454 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5457 Avoid improper use of strings.
5458 (grub_cmd_legacy_initrdnounzip): Likewise.
5459
5460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5463 attribute.
5464 (grub_util_info): Likewise.
5465 (grub_util_error): Likewise.
5466
5467 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5468
5469 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5470 * util/grub-fstest.c (fstest): Likewise.
5471
5472 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5475 (grub_md_sha512_real): Likewise.
5476 (grub_util_get_geli_uuid): Likewise.
5477 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5478 (grub_util_biosdisk_open): Fix format specification.
5479 Respect format security.
5480 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5481 (xrealloc): Likewise.
5482 (xasprintf): Likewise.
5483
5484 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5485
5486 * util/import_gcry.py: Include grub/crypto.h in init.c.
5487
5488 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5489
5490 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5491 (generate_image): Make prefix a const char *.
5492 Fix format specifications. Respect format security.
5493 Avoid void * arithmetics.
5494 Avoid shadowing.
5495 (argp_parser): Remove unused variable. Respect format security.
5496 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5497 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5498 (count_funcs): Remove unused variable.
5499 (relocate_addresses): Fix format specification.
5500 Disable x86-64 with elf32. Remove unused variables.
5501 (add_fixup_entry): Avoid shadowing.
5502 (make_reloc_section): Fix format specification.
5503 Use assert.
5504 (locate_sections): Fix format specifications.
5505 (load_image): Avoid shadowing.
5506
5507 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5510 Fix format specifications. Respect format security.
5511 Don't translate already translated grub_errmsg.
5512 (argp_parser): Remove unused variable
5513
5514 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5517
5518 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5521 (main): Likewise. Use xmalloc. Respect format security.
5522
5523 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5526 a const char *.
5527 (argp_parser): Remove unused variable.
5528
5529 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5532 (add_pixel): Make static.
5533 (add_font): Likewise.
5534 (write_string_section): Make name and str a const char *.
5535 (write_be16_section): Make name a const char *.
5536 (print_glyphs): Make static.
5537 (write_font_ascii_bitmap): Likewise.
5538 (write_font_width_spec): Likewise.
5539 (write_font_pf2): Likewise.
5540 (argp_parser): Remove unused variable.
5541 Respect format security.
5542 (main): Avoid shadowing. Respect format security.
5543
5544 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * util/grub-editenv.c (argp_parser): Make static.
5547 (create_envblk_file): Use xmalloc.
5548 (open_envblk_file): Likewise.
5549 Resepect format security.
5550 (set_variables): Respect format security.
5551
5552 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5553
5554 * util/getroot.c (grub_find_device): Respect format security.
5555 (get_mdadm_uuid): Remove unused variable.
5556 (grub_util_pull_device): Dont call gettext on already translated
5557 grub_errmsg.
5558 (find_system_device): Remove unused variable.
5559 (grub_util_get_grub_dev): Likewise.
5560 (grub_make_system_path_relative_to_its_root): Respect format security.
5561
5562 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * util/grub-fstest.c (execute_command): Make first argument
5565 a const char *.
5566 (read_file): Avoid shadowing.
5567 Reuse underlying error message if device open fails.
5568 (cmd_cmp): Respect format security.
5569 (root): Make const char *.
5570 (fstest): Remove args argument and use global copy.
5571 Respect format security.
5572 (argp_parser): Make static.
5573 (main): Make default_root const char *.
5574
5575 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5576
5577 * util/grub-mount.c (root): Make const char *.
5578 (execute_command): Make first argument a const char *.
5579 (fuse_init): Respect format security.
5580 (argp_parser): Make static. Remove unused variable.
5581 (main): Make default_root a const char *.
5582 Respect format security.
5583
5584 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * util/grub-probe.c (probe): Don't call gettext on already translated
5587 grub_errmsg.
5588 Remove unused variables.
5589 (argp_parser): Remove unused variable.
5590
5591 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * util/grub-script-check.c (argp_parser): Remove unused variable.
5594 (main): Rename read to curread to avoid shadowing.
5595
5596 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 * util/misc.c (grub_util_write_image_at): Fix format specification.
5599 (grub_util_write_image): Likewise.
5600 (grub_script_execute_argument_to_string): Removed (unused).
5601 (grub_script_execute_menuentry): Likewise.
5602 (grub_putchar): Likewise.
5603
5604 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5607 (FUNCTION) [GRUB_UTIL]: Likewise.
5608 (VARIABLE) [GRUB_UTIL]: Likewise.
5609
5610 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5613 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5614
5615 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5618 buffer.
5619
5620 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5623 (LzmaEnc_SaveState): Removed (unused).
5624 (LzmaEnc_RestoreState): Likewise.
5625 (LzmaEnc_InitPriceTables): Made static.
5626 (LzmaEnc_Construct): Likewise.
5627 (LzmaEnc_FreeLits): Likewise.
5628 (LzmaEnc_Destruct): Likewise.
5629 (LzmaEnc_Init): Likewise.
5630 (LzmaEnc_InitPrices): Likewise.
5631 (LzmaEnc_Finish): Likewise.
5632 (LzmaEnc_PrepareForLzma2): Removed (unused).
5633 (LzmaEnc_MemPrepare): Likewise.
5634 (LzmaEnc_GetNumAvailableBytes): Likewise.
5635 (LzmaEnc_GetCurBuf): Likewise.
5636 (LzmaEnc_CodeOneMemBlock): Likewise.
5637
5638 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
5641 (grub_util_ldm_embed): Likewise.
5642
5643 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * util/grub-editenv.c (print_var): Rename name to varname to
5646 avoid shadowing.
5647 (main): Rename index to curindex to avoid shadowing.
5648 Make filename a const char *.
5649
5650 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5651
5652 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5653 to arg_getline to avoid shadowing.
5654
5655 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
5658 disk_ to avoid shadowing.
5659
5660 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5661
5662 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
5663 curindex to avoid shadowing.
5664 Make static.
5665 (MatchFinder_GetNumAvailableBytes): Make static.
5666
5667 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
5670 avoid shadowing.
5671
5672 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
5675 argument from encrypt to do_encrypt to avoid shadowing.
5676
5677 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
5680 incorrect nesting of #if's.
5681
5682 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
5685 checks which are always false on some platforms.
5686 (grub_cmd_lsacpi): Likewise.
5687 * grub-core/kern/misc.c (grub_strtoul): Likewise.
5688 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
5689 Likewise.
5690
5691 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5692
5693 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
5694 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
5695
5696 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
5699 re_dfa_t to avoid breaking alignment invariants.
5700 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
5701 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
5702
5703 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
5706 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
5707
5708 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5709
5710 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
5711 Fix declaration.
5712
5713 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
5716 conserve alignment invariants.
5717 (grub_ehci_ehcc_read16): Likewise.
5718 (grub_ehci_oper_read32): Likewise.
5719 (grub_ehci_oper_write32): Likewise.
5720 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
5721 Conserve alignment invariants.
5722
5723 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5724
5725 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
5726 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
5727 declarations.
5728
5729 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5730
5731 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
5732 Remove unused variable.
5733
5734 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
5737 Remove set in if.
5738
5739 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 * include/grub/net.h: Remove double declarations.
5742
5743 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5744
5745 Remove "payload" command in ia64 Linux loader since I couldn't
5746 find any evidence of it being used for anything.
5747 Replace "relocate" command with an environment variable
5748
5749 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
5750 fields.
5751 (ia64_boot_payload): Removed.
5752 (last_payload): Likewise.
5753 (RELOCATE_OFF): Likewise.
5754 (RELOCATE_ON): Likewise.
5755 (RELOCATE_FORCE): Likewise.
5756 (relocate): Likewise.
5757 (free_pages): Don't free payloads.
5758 (grub_load_elf64): Use common error messages.
5759 Use "linux_relocate" variable.
5760 Increase the space after boot_params.
5761 (grub_cmd_payload): Removed.
5762 (grub_cmd_relocate): Likewise.
5763 (grub_cmd_fpswa): Improve messages.
5764 (cmd_payload): Removed.
5765 (cmd_relocate): Likewise.
5766 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
5767 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
5768
5769 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5770
5771 Convert UHCI to DMA framework.
5772
5773 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
5774 (grub_uhci_pci_iter): Fill new members
5775 (grub_alloc_td): Use P2V and V2P functions.
5776 (grub_free_queue): Likewise.
5777 (grub_alloc_qh): Likewise.
5778 (grub_uhci_setup_transfer): Likewise.
5779 (grub_uhci_check_transfer): Likewise.
5780
5781 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
5784 Remove assignment in if while on it.
5785
5786 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * util/grub-mkstandalone.in: Fix modules directory.
5789
5790 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
5793 on i386-pc target.
5794 (argp_parser): Accept "auto" as compression specification.
5795
5796 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 Fix `help' with unloaded modules.
5799
5800 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
5801 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
5802 (grub_dyncmd_dispatcher): Small stylistic fix.
5803 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
5804 explicit help is requested.
5805
5806 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
5809 Explicitly init restart while on it.
5810
5811 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
5814 uninited variable.
5815
5816 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * util/grub-mknetdir.in: Use . rather than source for POSIX
5819 compatibility.
5820
5821 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
5824
5825 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
5828 variable.
5829
5830 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
5833 without quotes.
5834
5835 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
5838
5839 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5840
5841 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
5842 iteration of partitions.
5843
5844 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5845
5846 Improve gettext support. Stylistic fixes and error handling fixes while
5847 on it.
5848
5849 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
5850
5851 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
5852 part. Instead setup the correct stack in RM.
5853 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
5854 for stack.
5855 * include/grub/i386/relocator_private.h: New file.
5856
5857 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5858
5859 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
5860 argument.
5861 * util/grub-fstest.c (options): Add missing DEVICE part.
5862
5863 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 Clarify and unify messages.
5866
5867 * grub-core/commands/hashsum.c (options): Unify messages.
5868 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
5869 literal-only message as translatable.
5870 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
5871 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
5872 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
5873 commands.
5874 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
5875 key, not the key used to unlock. Clarify what it's used for.
5876 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
5877 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
5878 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
5879 * util/grub-editenv.c (options): Unify "verbose" message.
5880 * util/grub-fstest.c (read_file): Unify error message.
5881 (fstest): Add quotes around commands.
5882 (options): Unify "verbose" message.
5883 * util/grub-install.in: Add quotes around variable name.
5884 * util/grub-kbdcomp.in: Unify error message.
5885 * util/grub-mkfont.c (main): Likewise.
5886 * util/grub-mkrescue.in: Likewise.
5887 * util/grub-mklayout.c (options): Unify "verbose" message.
5888 * util/grub-mkstandalone.in: Unify help and verbose messages.
5889 * util/grub-mount.c (options): Unify "verbose" message.
5890 * util/grub-probe.c (options): Likewise.
5891 * util/grub-script-check.c (options): Likewise.
5892 * util/grub-setup.c (setup): Unify no-terminator message.
5893 (options): Use DEVICE and not DEV.
5894 Unify "verbose" message.
5895 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
5896
5897 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 Improve and unify messages.
5900
5901 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
5902 name. All users updated.
5903 Print filename in error.
5904 (read_device_map): Print filename in error.
5905 * util/getroot.c (grub_guess_root_devices): Print filename in error.
5906 (grub_util_get_os_disk): Likewise.
5907 (grub_util_biosdisk_get_grub_dev): Likewise.
5908 (grub_util_check_block_device): Likewise.
5909 (grub_util_check_char_device): Likewise.
5910 (grub_make_system_path_relative_to_its_root): Likewise.
5911 * util/grub-editenv.c (create_envblk_file): Likewise.
5912 (open_envblk_file): Likewise.
5913 (write_envblk): Likewise.
5914 * util/grub-fstest.c (cmd_cp): Likewise.
5915 (cmd_cat): Likewise.
5916 (cmd_cmp): Likewise.
5917 * util/grub-menulst2cfg.c (main): Likewise.
5918 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
5919 (write_font_width_spec): Likewise.
5920 (write_font_pf2): Likewise.
5921 * util/grub-mkimage.c (generate_image): New argument outname.
5922 All users updated.
5923 Remove unreacheable message.
5924 (options): Unify messages.
5925 (help_filter): Likewise.
5926 * util/grub-mklayout.c (usage): Removed (unused).
5927 (main): Print filename in error.
5928 * util/grub-mkrescue.in: Fix wrong quoting.
5929 * util/grub-setup.c (setup): Print filename in error.
5930 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
5931 (check_sas): Likewise.
5932 * util/misc.c (grub_util_get_fp_size): Removed.
5933 (grub_util_get_image_size): Print filename in error.
5934 (grub_util_read_at): Removed.
5935 (grub_util_read_image): Print filename in error.
5936 (grub_util_load_image): Likewise.
5937 (grub_util_write_image_at): New argument filename. All users updated.
5938 Print filename in error.
5939 (grub_util_write_image): New argument filename. All users updated.
5940 Print filename in error.
5941 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
5942 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
5943
5944 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5945
5946 * grub-core/Makefile.core.def (pxechain): New module.
5947 * grub-core/loader/i386/pc/pxechainloader.c: New file.
5948 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
5949 function.
5950 (grub_pc_net_config_real): Use grub_pxe_get_cached.
5951 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
5952
5953 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
5956 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
5957 * include/grub/err.h (grub_error_saved): New struct.
5958 (grub_errmsg): Make array size explicit.
5959 * include/grub/misc.h (grub_error_save): New function.
5960 (grub_error_load): Likewise.
5961 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
5962 (grub_error_push): Update `errno' member name.
5963 (grub_error_pop): Likewise
5964 * grub-core/net/tftp.c (tftp_data): New member save_err.
5965 (tftp_receive): Save error.
5966 (tftp_open): Restore error.
5967
5968 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
5971 to real mode down to execute A20-related code in protected mode as
5972 intended.
5973
5974 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5975
5976 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
5977 NULL when the argument `level' has an unexpected value.
5978
5979 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 Move platform-dependent files from $prefix to $prefix/$platform.
5982
5983 * config.h.in (GRUB_TARGET_CPU): New definition.
5984 (GRUB_PLATFORM): Likewise.
5985 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
5986 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
5987 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
5988 * grub-core/kern/dl.c (grub_dl_load): Likewise.
5989 * grub-core/normal/autofs.c (read_fs_list): Likewise.
5990 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
5991 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
5992 * grub-core/normal/term.c (read_terminal_list): Likewise.
5993 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
5994 $prefix/locale.
5995 (grub_gettext_init_ext): Likewise.
5996 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
5997 grub_platform.
5998 * util/grub-install.in: Update directories.
5999 * util/grub-mknetdir.in: Likewise.
6000 * util/grub-mkrescue.in: Likewise.
6001
6002 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6005 grub_error framework. All users updated.
6006
6007 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6010 lists (by always binsearching), improve caching (cache strings
6011 used for binsearch, not only results), improve
6012 maintainability (by using more structured binary search) and correct
6013 error handling.
6014
6015 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * grub-core/script/execute.c (grub_script_return): Fix warning.
6018
6019 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 * grub-core/script/execute.c (grub_script_return): Fix potential
6022 NULL-dereference.
6023 Reported by: Jim Meyering.
6024
6025 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * po/POTFILES.in: Regenerate.
6028 * util/grub-install.in: Gettextize the strings missed in first pass.
6029
6030 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6031
6032 * Makefile.util.def (grub-mkdevicemap): Removed.
6033 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6034 * include/grub/util/deviceiter.h: Removed.
6035 * util/deviceiter.c: Likewise.
6036 * util/getroot.c (grub_util_get_os_disk): New function.
6037 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6038 replacement for EFI.
6039 * util/grub-mkdevicemap.c: Removed.
6040 * util/grub-probe.c (probe): Handle PRINT_DISK.
6041 (argp_parser): Handle -t disk.
6042
6043 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * util/grub-mkfont.c: Migrate to argp.
6046 * util/grub-mklayout.c: Likewise.
6047 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6048 * util/grub-mkrelpath.c: Likewise.
6049 * util/grub-probe.c: Likewise.
6050 * util/grub-script-check.c: Likewise.
6051
6052 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6053
6054 * util/grub-reboot.in: Add missing datarootdir.
6055 Add missing newline.
6056 * util/grub-set-default.in: Add missing datarootdir.
6057 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6058 * util/grub-mkrescue.in: Likewise.
6059
6060 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6063
6064 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6065
6066 * util/grub-kbdcomp.in: Add decent help and gettextize.
6067 * docs/man/grub-kbdcomp.h2m: New file.
6068
6069 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 Migrate grub-mkimage.c to argp.
6072
6073 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6074 (grub-setup): Likewise.
6075 * util/grub-setup.c (print_version): Move to ...
6076 * util/argp_common.c (print_version): ... here.
6077 * util/grub-setup.c (argp_program_version_hook): Move to ...
6078 * util/argp_common.c (argp_program_version_hook): ... here.
6079 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6080 safety.
6081 * util/grub-mkimage.c (main): Migrate to argp.
6082
6083 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * util/grub-mkrescue.in: Use same message as
6086 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6087 for better translations.
6088
6089 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6092 options with generic grub-mkrescue.in with the goal of future
6093 merge.
6094
6095 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * grub-core/kern/mm.c: Add missing include of i18n.h
6098 * grub-core/lib/relocator.c: Likewise.
6099
6100 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6101
6102 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6103 error.
6104 (allocate_pages): Check return value.
6105 Replace fatal with error.
6106 (grub_linux_boot): Replace printf with dprintf.
6107 Check find_mmap_size return value.
6108 Replace fatal with error.
6109 Don't call grub_machine_fini.
6110 (grub_load_elf64): Replace printf with dprintf.
6111 (grub_cmd_linux): Likewise.
6112 (grub_cmd_initrd): Likewise.
6113 (grub_cmd_payload): Likewise.
6114
6115 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6116
6117 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6118 message.
6119 * grub-core/video/radeon_fuloong2e.c
6120 (grub_video_radeon_fuloong2e_setup): Likewise.
6121 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6122 * grub-core/video/video.c (grub_video_set_mode): Don't override
6123 standard out of memory message.
6124
6125 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6126
6127 NetBSD disk wedge support.
6128
6129 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6130 [__NetBSD__]: Handle NetBSD disk wedges.
6131 * util/getroot.c (convert_system_partition_to_system_disk)
6132 [__NetBSD__]: Likewise.
6133
6134 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6135
6136 * util/grub-mkconfig.in: Use umask rather than chmod to create
6137 grub.cfg.new to avoid insecure grub.cfg.
6138
6139 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * grub-core/commands/ls.c: Gettextize.
6142 * grub-core/commands/setpci.c: Likewise.
6143 * grub-core/commands/videotest.c: Likewise.
6144 * grub-core/disk/geli.c: Likewise.
6145 * grub-core/kern/mm.c: Likewise.
6146 * grub-core/lib/relocator.c: Likewise.
6147 * grub-core/loader/efi/appleloader.c: Likewise.
6148 * grub-core/loader/i386/xnu.c: Likewise.
6149 * grub-core/loader/ia64/efi/linux.c: Likewise.
6150 * grub-core/loader/xnu.c: Likewise.
6151 * grub-core/net/dns.c: Likewise.
6152 * grub-core/net/net.c: Likewise.
6153 * grub-core/script/lexer.c: Likewise.
6154 * grub-core/script/parser.y: Likewise.
6155 * grub-core/script/yylex.l: Likewise.
6156 * util/getroot.c: Likewise.
6157 * util/grub-setup.c: Likewise.
6158
6159 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6162 number.
6163
6164 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6167
6168 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6171 macro.
6172 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6173 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6174
6175 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6178 * util/grub-install.in: Gettextize.
6179 * util/grub-mkconfig.in: Likewise.
6180 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6181 if not available.
6182 (grub_warn): Gettextize.
6183 * util/grub-mknetdir.in: Gettextize.
6184 * util/grub-mkrescue.in: Likewise.
6185 * util/grub-mkstandalone.in: Likewise.
6186 * util/grub-reboot.in: Likewise.
6187 * util/grub-set-default.in: Likewise.
6188 * util/grub.d/00_header.in: Likewise.
6189 * util/grub.d/10_hurd.in: Likewise.
6190 * util/grub.d/10_kfreebsd.in: Likewise.
6191 * util/grub.d/10_linux.in: Likewise.
6192 * util/grub.d/10_netbsd.in: Likewise.
6193 * util/grub.d/10_windows.in: Likewise.
6194 * util/grub.d/20_linux_xen.in: Likewise.
6195 * util/grub.d/30_os-prober.in: Likewise.
6196 * po/POTFILES-shell.in: Regenerate.
6197
6198 2012-02-03 Richard Laager <rlaager@wiktel.com>
6199
6200 * util/grub-mkimage.c (main): Fix format-security warning.
6201 * util/grub-mkrelpath.c (main): Likewise.
6202 * util/grub-probe.c (main): Likewise.
6203
6204 2012-02-03 Richard Laager <rlaager@wiktel.com>
6205
6206 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6207 failure.
6208 Put back lost PRINT_DRIVE.
6209
6210 2012-02-03 Richard Laager <rlaager@wiktel.com>
6211
6212 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6213 (grub_guess_root_devices): Replace strlen with sizeof.
6214 Avoid crash.
6215 (find_root_devices_from_poolname): Remove unused variable.
6216 Handle raidzN.
6217
6218 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 Support install on multi-device filesystems.
6221
6222 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6223 (grub_guess_root_devices): ...this. Return char **. All users updated.
6224 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6225 Removed.
6226 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6227 (find_root_devices_from_poolname): ... here.
6228 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6229 Support zfs-fuse.
6230 (grub_guess_root_device): Rename to ...
6231 (grub_guess_root_devices): ... this. Return char **. All users updated.
6232 * util/grub-install.in: Handle multi-device filesystems.
6233 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6234 argument. All users updated.
6235 Handle multi-device filesystems.
6236 Use 'delim' as separator.
6237 Remove device check to allow filesystems on file.
6238 (main): Support -0 argument. Handle multi-device.
6239 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6240 Fix a cross-device check while on it.
6241 (arguments): Remove root_dev.
6242 (argp_parser): Remove -r.
6243 (main): Remove root_dev.
6244
6245 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6246
6247 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6248
6249 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6250
6251 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6252 symbol.
6253 Reported by: NODA, Kai <nodakai>.
6254
6255 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 Fix ehci on amd64.
6258
6259 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6260 pointers.
6261 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6262 (grub_ehci_setup_qh): Likewise.
6263 (grub_ehci_find_qh): Likewise.
6264 (grub_ehci_transaction): Likewise.
6265 (grub_ehci_setup_transfer): Likewise.
6266 (grub_ehci_check_transfer): Likewise.
6267 (grub_ehci_portstatus): Likewise.
6268 (grub_ehci_detect_dev): Likewise.
6269 (grub_ehci_transfer_controller_data): New field td_last_phys.
6270 (grub_ehci_setup_transfer): Fill td_last_phys.
6271 (grub_ehci_check_transfer): Use td_last_phys.
6272
6273 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6274
6275 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6276 if no submenu is present.
6277
6278 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6279
6280 CBI support.
6281
6282 * include/grub/usb.h (grub_usbms_protocol_t): New values
6283 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6284 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6285 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6286 (grub_usbms_dev): Add subclass, protocol and intrpt.
6287 Remove in_maxsz and out_maxsz.
6288 (grub_usbms_reset): Rename to ...
6289 (grub_usbms_bo_reset): .. this.
6290 (grub_usbms_cbi_cmd): New function.
6291 (grub_usbms_cbi_reset): Likewise.
6292 (grub_usbms_reset): Likewise.
6293 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6294 (grub_usbms_transfer): Rename to ...
6295 (grub_usbms_transfer_bo): ... this.
6296 (grub_usbms_transfer_cbi): Likewise.
6297 (grub_usbms_transfer): Likewise.
6298
6299 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6300 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6303 the support for the CS5536 modification thereos and few bugfixes.
6304
6305 * grub-core/Makefile.core.def (ehci): New module.
6306 * grub-core/bus/usb/ehci.c: New file.
6307 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6308 port and hubaddr. All users updated.
6309 Save port and hubaddr into dev structure.
6310 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6311 define.
6312 * include/grub/pci.h (grub_dma_phys2virt): New function.
6313 (grub_dma_virt2phys): Likewise.
6314 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6315
6316 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6319 check as some mkfs implementations omit it.
6320
6321 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6324
6325 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6328 Add new member volname2.
6329 (grub_jfs_label): Use volname2 if available.
6330
6331 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6334 over last_mounted as seen in image generated by mkfs.nilfs2.
6335 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6336
6337 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6340 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6341 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6342
6343 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6344
6345 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6346 over the sector.
6347
6348 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6351 subvolume name (by removing a bogus and useless check).
6352
6353 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6356 sizeof while on it.
6357
6358 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6361 (grub_scsi_read_capacity10): ... this.
6362 (grub_scsi_read_capacity16): New function.
6363 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6364 0xffffffff.
6365 Fix off-by-one error.
6366 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6367 64-bit unsigned.
6368 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6369 (grub_scsi_read_capacity10): ... this.
6370 (grub_scsi_read_capacity_data): Rename to ...
6371 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6372 (grub_scsi_read_capacity16): New struct.
6373 (grub_scsi_read_capacity16_data): Likewise.
6374 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6375 grub_scsi_cmd_read_capacity10.
6376 New command grub_scsi_cmd_read_capacity16.
6377
6378 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 SCSI >2TiB support.
6381
6382 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6383 (grub_scsi_write16): Likewise.
6384 (grub_scsi_read): Use read16 when necessary.
6385 (grub_scsi_write): Likewise.
6386 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6387 (grub_scsi_write16): Likewise.
6388 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6389
6390 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 SCSI write support (for usbms mainly).
6393
6394 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6395 a const pointer.
6396 (grub_scsi_write): Implement.
6397 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6398
6399 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6402 variable.
6403
6404 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6407
6408 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * po/POTFILES.in: Regenerate.
6411
6412 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6415 with grub_printf to avoid unnecessary fatal failure.
6416
6417 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6420 (INT_MAX): Likewise.
6421 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6422 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6423 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6424 (strcpy): Likewise.
6425 (strstr): Likewise.
6426 (strchr): Likewise.
6427 (strncpy): Likewise.
6428 (strcat): Likewise.
6429 (strncat): Likewise.
6430 (strcoll): Likewise.
6431 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6432 (GRUB_INT_MAX): Likewise.
6433
6434 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6437 unexpected error.
6438 (optimize_utf8): Likewise.
6439 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6440
6441 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6442
6443 * grub-core/boot/i386/pc/lnxboot.S: Use
6444 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6445 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6446 location.
6447 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6448 definition.
6449 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6450
6451 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6454 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6455 now to avoid double free.
6456 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6457 hostdisk.
6458 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6459 * util/grub-probe.c (escape_of_path): Always return a new copy.
6460 (print_full_name): Escape path.
6461 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6462 Fix hints on abstractions.
6463
6464 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6467 Don't add "root" line if no compatibility hont is available.
6468 Suggested by: Seth Goldberg.
6469
6470 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6471
6472 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6473 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6474 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6475 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6476
6477 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6480
6481 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 * util/grub-pe2elf.c (ehdr): Make static.
6484 (shdr): Likewise.
6485 (num_sections): Likewise.
6486 (offset): Likewise.
6487
6488 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6489
6490 Eliminate ofpath limits and possible overflows.
6491
6492 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6493 (OF_PATH_MAX): Removed.
6494 (MAX_DISK_CAT): New const.
6495 (find_obppath): Use allocated rather than preallocated buffer.
6496 Return result. Argument of_path removed. All users updated.
6497 Add missing fdstat.
6498 (xrealpath): New function.
6499 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6500 Allocate rather than use preallocated buffer. All users updated.
6501 (__of_path_common): Use allocated rather than preallocatecd buffer.
6502 Return result. Argument of_path removed. All users updated.
6503 (vendor_is_ATA): Read only needed part form the file.
6504 (check_sas): Allocate depending on contents rather than fixed.
6505 (main) [STANDALONE]: Handle NULL result.
6506
6507 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6510
6511 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 Cryptodisk write support.
6514
6515 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6516 (grub_cryptodisk_decrypt): Moved logic to ...
6517 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6518 (grub_cryptodisk_write): Implement.
6519 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6520 (grub_util_fd_write): ... this. Make global.
6521 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6522
6523 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 * include/grub/list.h (grub_list_remove): Don't crash if element is
6526 removed twice.
6527
6528 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 Rename ofconsole to console.
6531
6532 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6533 as sysnonym to console.
6534 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6535 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6536 Rename grub_ofconsole_ to grub_console_. All users updated
6537 (grub_console_term_output): Rename "ofconsole" to "console".
6538 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6539 as "console".
6540
6541 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6544 handling.
6545 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6546 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6547 GRUB_DISK_DEVICE_FILE_ID.
6548
6549 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6552 and improve performance.
6553
6554 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6557 missing ieee1275/ prefix on whole disk.
6558
6559 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6562 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6563
6564 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6567
6568 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 Merge common RAID and LVM logic to an abstract diskfilter.
6571 Add LDM support using the same framework.
6572
6573 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6574 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6575 (libgrubmods): Remove grub-core/disk/raid.c and
6576 grub-core/partmap/gpt.c.
6577 * grub-core/Makefile.core.def (ldm): New module.
6578 (raid): Renamed to diskfilter. All users updated.
6579 * grub-core/disk/raid.c: Moved to ...
6580 * grub-core/disk/diskfilter.c: ... here.
6581 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6582 (lv_num): New var.
6583 (find_array): Renamed to ...
6584 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6585 (grub_is_array_readable): Renamed to ...
6586 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6587 (insert_array): New argument id.
6588 (is_node_readable): New function.
6589 (scan_device): Rename to ...
6590 (scan_disk): .. this. Restrict to one disk.
6591 (scan_devices): New function.
6592 (grub_diskfilter_iterate): Support multi-LV.
6593 Skip invisible and nameless LVs.
6594 (grub_diskfilter_memberlist): Support multi-LV.
6595 (grub_diskfilter_read_node): New function.
6596 (grub_raid_read): Most of logic moved to ...
6597 (read_segment): ... here
6598 (read_lv): New function.
6599 (grub_diskfilter_get_vg_by_uuid): New function.
6600 (grub_diskfilter_make_raid): Likewise.
6601 * grub-core/disk/ldm.c: New file.
6602 * grub-core/disk/lvm.c (vg_list): Removed.
6603 (lv_count): Likewise.
6604 (scan_depth): Likewise.
6605 (is_lv_readable): Likewise.
6606 (grub_lvm_getvalue): Advance pointer past the number.
6607 (find_lv): Removed.
6608 (do_lvm_scan): Refactored into ...
6609 (grub_lvm_detect): ... this. Support raid.
6610 (grub_lvm_iterate): Removed.
6611 (grub_lvm_memberlist): Likewise.
6612 (grub_lvm_open): Likewise.
6613 (grub_lvm_close): Likewise.
6614 (read_lv): Likewise.
6615 (read_node): Likewise.
6616 (is_node_readable): Likewise.
6617 (is_lv_readable): Likewise.
6618 (grub_lvm_read): Likewise.
6619 (grub_lvm_write): Likewise.
6620 (grub_lvm_dev): Use diskfilter
6621 (GRUB_MOD_INIT): Likewise.
6622 (GRUB_MOD_FINI): Likewise.
6623 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6624 new interface.
6625 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
6626 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6627 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
6628 grub_diskfilter_read_node.
6629 Fix a bug with xor.
6630 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
6631 grub_diskfilter_read_node.
6632 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
6633 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
6634 (grub_disk_dev_iterate): Move from here...
6635 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
6636 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6637 Make global.
6638 (grub_hostdisk_find_partition_start): Likewise.
6639 (grub_hostdisk_os_dev_to_grub_drive): New function.
6640 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
6641 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
6642 * util/getroot.c (make_device_name): ... here.
6643 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6644 Move to ...
6645 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
6646 * grub-core/kern/emu/hostdisk.c
6647 (convert_system_partition_to_system_disk): Move to ...
6648 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
6649 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
6650 * util/getroot.c (device_is_wholedisk): ... here.
6651 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
6652 * util/getroot.c (find_system_device): ... here.
6653 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
6654 Move to ...
6655 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
6656 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
6657 Move to ...
6658 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
6659 Handle LDM.
6660 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6661 Move to ...
6662 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
6663 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
6664 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
6665 DISKFILTER.
6666 * include/grub/raid.h: Renamed to ...
6667 * include/grub/diskfilter.h: ... this.
6668 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
6669 (GRUB_RAID_LAYOUT_*): Make into array.
6670 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
6671 (grub_diskfilter_vg): New struct.
6672 (grub_diskfilter_pv_id): Likewise.
6673 (grub_raid_member): Removed.
6674 (grub_raid_array): Likewise.
6675 (grub_diskfilter_pv): New struct.
6676 (grub_diskfilter_lv): Likewise.
6677 (grub_diskfilter_segment): Likewise.
6678 (grub_diskfilter_node): Likewise.
6679 (grub_diskfilter_get_vg_by_uuid): New proto.
6680 (grub_raid_register): Inline.
6681 (grub_diskfilter_unregister): Likewise.
6682 (grub_diskfilter_make_raid): New proto.
6683 (grub_diskfilter_vg_register): Likewise.
6684 (grub_diskfilter_read_node): Likewise.
6685 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
6686 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
6687 (grub_util_is_ldm): Likewise.
6688 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
6689 (grub_hostdisk_find_partition_start): Likewise.
6690 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
6691 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
6692 New definition.
6693 (grub_gpt_partition_map_iterate): New proto.
6694 * include/grub/lvm.h (grub_lvm_vg): Removed.
6695 (grub_lvm_pv): Likewise.
6696 (grub_lvm_lv): Likewise.
6697 (grub_lvm_segment): Likewise.
6698 (grub_lvm_node): Likewise.
6699 * util/getroot.c [...]
6700 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
6701 (probe_abstraction): Likewise.
6702 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
6703 (main): Remove dead logic.
6704
6705 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 Simplify root device discover and don't fail when trying to open
6708 incorrect devices.
6709
6710 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
6711 function.
6712 (get_diskname_from_path): Likewise.
6713 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
6714 of iterating.
6715
6716 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6717
6718 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
6719
6720 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6723 pastthe end.
6724
6725 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * util/grub-install.in: Add missing \.
6728 Reported by: gentoofan
6729
6730 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
6733 (direct_read): Use correct compressed size.
6734 (grub_squash_read_data): Likewise.
6735
6736 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * docs/grub.texi (Platform limitations): New section.
6739 (Platform-specific operations): Likewise.
6740 * docs/grub-dev.texi (Porting): Likewise.
6741
6742 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 IEEE1275 disk write support.
6745
6746 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
6747 const void *.
6748 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
6749 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
6750 and seek loginc to ...
6751 (grub_ofdisk_prepare): ... here.
6752 (grub_ofdisk_write): Implement.
6753
6754 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6755
6756 ARC disk write support.
6757
6758 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
6759 (reopen): New argument writable. All users updated.
6760 Handle required access mode.
6761 (grub_arcdisk_write): Implement.
6762 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
6763 (grub_arc_firmware_vector): Make buffer to write a const buffer.
6764
6765 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6766
6767 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
6768 (read_sblock): Don't attempt to read superblocks outside the disk size.
6769
6770 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
6773 first superblock to find the second one when possible.
6774
6775 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 * util/grub-install.in: Fix an ARC bug.
6778 Print a warning if no platform-specific setup is available.
6779
6780 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 Use static allocation rather than scratch pointer in reed_solomon.
6783 It decreases its size significantly and avoids a variable in .text.
6784
6785 * grub-core/lib/reed_solomon.c (scratch): Removed.
6786 (chosenstat): New const or static array.
6787 (sigma): Likewise.
6788 (errpot): Likewise.
6789 (errpos): Likewise.
6790 (sy): Likewise.
6791 (mstat): Likewise.
6792 (errvals): Likewise.
6793 (eqstat): Likewise.
6794 (pol_evaluate): Replace x with log_x argument. All users updated.
6795 (syndroms): Removed.
6796 (gauss_solve): Use statically allocated arrays.
6797 (rs_recover): Likewise.
6798 Calculate syndroms directly.
6799 (decode_block): Use statically allocated arrays.
6800 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
6801 (main) [TEST]: Allow -DTEST -DSTANDALONE.
6802
6803 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 Eliminate fixed limit on reed solomon decoder length.
6806
6807 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
6808 rather than hardcoding the address.
6809 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
6810 no_reed_solomon_length.
6811 Move gate_a20 to no-reed-solomon part.
6812 Don't force a particular size of no reed-solomon part.
6813 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6814 Removed.
6815 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
6816 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
6817
6818 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * grub-core/commands/wildcard.c (match_files): Handle filenames
6821 without explicit device.
6822 (wildcard_expand): Don't add explicit device if not already present.
6823 * tests/grub_script_echo1.in: Add a new expansion test.
6824
6825 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 Replace single-linked with double-linked lists. It results in more
6828 compact and more efficient code.
6829
6830 * grub-core/kern/list.c (grub_list_push): Moved from here ...
6831 * include/grub/list.h (grub_list_push): ... to here. Set prev.
6832 (grub_list_remove): Moved from here ...
6833 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
6834 (grub_prio_list_insert): Set prev.
6835 * include/grub/list.h (grub_list): Add prev. All users updated.
6836
6837 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 Handle newer autotools. Add some missing quotes while on it.
6840
6841 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
6842 (pkglib_DATA): Move grub-mkconfig_lib from here ...
6843 (pkgdata_DATA): ... here.
6844 * Makefile.util.def (update-grub_lib): Removed.
6845 * conf/Makefile.common (pkglib_DATA): Removed.
6846 (pkglib_SCRIPTS): Likewise.
6847 (pkgdata_DATA): New variable.
6848 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
6849 needed.
6850 Add missing quotes.
6851 Remove unused variable while on it.
6852 * tests/util/grub-shell.in: Likewise.
6853 * util/grub-install.in: Likewise.
6854 * util/grub-mkconfig.in: Likewise.
6855 * util/grub-mknetdir.in: Likewise.
6856 * util/grub-mkrescue.in: Likewise.
6857 * util/grub-mkstandalone.in: Likewise.
6858 * util/grub.d/00_header.in: Likewise.
6859 * util/grub.d/10_hurd.in: Likewise.
6860 * util/grub.d/10_illumos.in: Likewise.
6861 * util/grub.d/10_kfreebsd.in: Likewise.
6862 * util/grub.d/10_linux.in: Likewise.
6863 * util/grub.d/10_netbsd.in: Likewise.
6864 * util/grub.d/10_windows.in: Likewise.
6865 * util/grub.d/20_linux_xen.in: Likewise.
6866 * util/grub.d/30_os-prober.in: Likewise.
6867 * util/update-grub_lib.in: Removed.
6868
6869 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
6870
6871 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
6872 a workaround for intel problem.
6873
6874 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
6875 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6876 2012-01-23 pfsmorigo
6877
6878 * util/grub-install.in: Support dd'in into PreP partition.
6879 * util/grub-probe.c (probe): Support discovering partition type.
6880 (main): Support -t msdos_parttype.
6881
6882 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
6885 infinite recursion using counter.
6886 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
6887 init to skip it if the magic check fails.
6888 (dec_stream_header): Init s->crc32.
6889
6890 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6891 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
6892 2012-01-22 Richard Laager <rlaager@wiktel.com>
6893
6894 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
6895 All users updated.
6896 (find_bestub): Determine correct size.
6897 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
6898 (scan_disk): Align the size down.
6899 Call check pool before find_bestub to have ashift.
6900
6901 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6902
6903 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
6904 dprintf in no-malloc zone.
6905
6906 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
6907
6908 * configure.ac: Add back in test for limits.h.
6909
6910 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 Support 4K-sector NTFS.
6913
6914 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
6915 (grub_ntfs_data): Remove blocksize.
6916 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
6917 Remove data argument. All users updated.
6918
6919 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6920
6921 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
6922 being in .text to avoid dprel references.
6923 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
6924 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
6925 (grub_arch_highmemsize): Likewise.
6926 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
6927 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
6928 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
6929
6930 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
6933
6934 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
6935 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
6936
6937 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6938
6939 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
6940 GRUB_UTIL.
6941 (grub_set_datetime_cmos): Likewise.
6942
6943 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 Make XZ compression parameters dependent on target and not host CPU.
6946
6947 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
6948 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
6949
6950 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6951
6952 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
6953 set but not used variable.
6954
6955 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
6958 created when no uuid support is compiled into mkfs.reiser.
6959
6960 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
6963 (utf8_to_macroman): Do the opposite.
6964 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
6965
6966 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6967
6968 * configure.ac: Refise build qemu_mips w/o unifont.
6969
6970 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 Eliminate grub_min/grub_max prone to overflow usage.
6973
6974 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
6975 (poll_nonroot_hub): Likewise.
6976 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
6977 (grub_affs_label): Likewise.
6978 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
6979 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
6980 (grub_hfs_label): Likewise.
6981 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
6982 * grub-core/fs/zfs/zfs.c (MIN): Remove.
6983 (zap_leaf_array_equal): Use grub_size. Remove MIN.
6984 (zap_leaf_array_get): Likewise.
6985 (dnode_get_path): Likewise.
6986 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
6987 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
6988 * grub-core/script/execute.c (grub_script_break): Likewise.
6989 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
6990 grub_max.
6991 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
6992 * include/grub/misc.h (grub_min): Removed.
6993 (grub_max): Likewise.
6994
6995 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6996
6997 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
6998 direct.inode = 0.
6999
7000 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7003
7004 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7007
7008 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7011 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7012
7013 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7016 rather than a hack for grub_strncasemap.
7017
7018 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 Support multiple initrds
7021 Note: part of this was accidently committed in r3739.
7022
7023 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7024 initrd.
7025 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7026 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7027 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7028 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7029 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7030
7031 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7034 disks with unknown size.
7035 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7036
7037 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 Remove defines pertaining to arbitrary limits not affecting GRUB
7040 anymore.
7041
7042 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7043 (EXT2_MAX_SYMLINKCNT): Likewise.
7044 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7045 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7046 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7047 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7048 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7049 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7050 (DN_MAX_OBJECT_SHIFT): Likewise.
7051 (DN_MAX_OFFSET_SHIFT): Likewise.
7052 (DN_MAX_OBJECT): Likewise.
7053 (DNODES_PER_LEVEL_SHIFT): Likewise.
7054 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7055 (SPA_MAXBLOCKSIZE): Likewise.
7056 (SPA_BLOCKSIZES): Likewise.
7057 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7058 (MZAP_MAX_BLKSZ): Likewise.
7059
7060 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7063 handle NULL appropriately.
7064 Remove MIN.
7065
7066 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 Fix efiemu.
7069
7070 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7071 cpu/types.h.
7072 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7073 * configure.ac: Fix efiemu check.
7074
7075 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7076
7077 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7078 grub_probe.
7079 Reported by: adamwill
7080
7081 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7082
7083 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7084
7085 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7086
7087 Fix handling of wide characters in gfxterm.
7088
7089 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7090 (clear_char): Likewise.
7091 (paint_char): Skip code == NULL chars.
7092 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7093
7094 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 * grub-core/normal/charset.c: Move comment to right place.
7097
7098 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7101 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7102 (grub_affs_mount): Revert the correct version checking.
7103
7104 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 * docs/grub.texi (Unicode): Mention several other unsupported features.
7107
7108 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7111 case statements as compile-time one.
7112 (direct_read): Prevent spurious warnings.
7113 (grub_squash_read_data): Likewise.
7114
7115 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 Various squash4 fixes and LZO and XZ support.
7118
7119 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7120 Add xzembed source files.
7121 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7122 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7123 (grub_squash_inode): New subtype long_dir.
7124 (SQUASH_TYPE_LONG_DIR): New inode type.
7125 (COMPRESSION): New enum.
7126 (XZBUFSIZ): New const.
7127 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7128 (read_chunk): Use data->decompress.
7129 (zlib_decompress): New function.
7130 (lzo_decompress): Likewise.
7131 (xz_decompress): Likewise.
7132 (squash_mount): Set new data fields.
7133 (grub_squash_iterate_dir): Handle long dir.
7134 (squash_unmount): Free xzdec and xzbuf.
7135 (grub_squash_open): Check ino type.
7136 (direct_read): Stylistic fixes. Use data->decompress.
7137 (grub_squash_read_data): Likewise.
7138 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7139 (get_byte): Likewise.
7140 (grub_zlib_disk_read): Removed.
7141 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7142 (GRUB_POSIX_BOOL_DEFINED): New define.
7143 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7144 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7145 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7146 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7147
7148 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 Don't override more informative errors.
7151
7152 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7153 * grub-core/font/font.c (open_section): Likewise.
7154 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7155 filename. Don't override errors.
7156 (grub_cmd_openbsd_ramdisk): Don't override errors.
7157 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7158 (grub_cmd_initrd): Likewise.
7159 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7160 (grub_cmd_initrd): Likewise.
7161 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7162 (grub_cmd_linux): Likewise.
7163 (grub_cmd_initrd): Likewise.
7164 (grub_cmd_payload): Likewise.
7165 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7166 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7167 (grub_cmd_module): Likewise.
7168 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7169 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7170 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7171 (grub_cmd_xnu_mkext): Likewise.
7172 (grub_cmd_xnu_ramdisk): Likewise.
7173 (grub_xnu_check_os_bundle_required): Likewise.
7174 (grub_xnu_load_kext_from_dir): Likewise.
7175 (grub_cmd_xnu_kextdir): Likewise.
7176 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7177
7178 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7181 as 1024 in block size field. Found on one of my test images.
7182 Small optimisation while on it.
7183
7184 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7187 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7188 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7189 performance fixes while on it.
7190 (grub_sfs_close): Fix memory leak while on it.
7191 (grub_sfs_label): Convert Latin1 to UTF-8.
7192
7193 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7194
7195 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7196 space to avoid overflows.
7197 (grub_hfs_label): Convert from macroman to UTF-8.
7198
7199 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7202
7203 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7206
7207 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 * unicode: Import Unicode 6.0 data.
7210
7211 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7214 outside of range.
7215
7216 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7217
7218 Avoid cutting in the middle of UTF-8 character.
7219
7220 * include/grub/charset.h (grub_getend): New function.
7221 * grub-core/script/function.c (grub_script_function_find): Use
7222 grub_getend.
7223 * grub-core/normal/completion.c (add_completion): Likewise.
7224
7225 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7228 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7229 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7230 (GRUB_UNICODE_TAG_END): Likewise.
7231 (GRUB_UNICODE_LAST_VALID): Likewise.
7232
7233 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7236 len and make it smaller. All users updated.
7237 * util/import_unicode.py: Put length and not end character.
7238 Check length.
7239
7240 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 Make better Unicode-compliant and unify some UTF-8 code pathes.
7243
7244 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7245 valid character.
7246 (grub_is_valid_utf8): Use grub_utf8_process.
7247 Check resulting code range.
7248 (grub_utf8_to_ucs4): Use grub_utf8_process.
7249 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7250 valid character.
7251
7252 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7255
7256 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 * docs/grub.texi (Filesystems): Mention AFS.
7259
7260 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 * docs/grub.texi (Filesystems): Clarify restrictions.
7263 (Regexp): Mention non-Unicode regexp behaviour.
7264 (Other): Mention non-Unicode matching behaviour.
7265
7266 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 Make HFS implementation use MacRoman.
7269
7270 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7271 (macroman): New const array.
7272 (macroman_to_utf8): New function.
7273 (utf8_to_macroman): Likewise.
7274 (grub_hfs_find_dir): Use utf8_to_macroman.
7275 (grub_hfs_dir): Use macroman_to_utf8.
7276 Set case_insensitive.
7277
7278 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7281
7282 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 Integrate hints into autogeneration scripts.
7285
7286 * docs/grub.texi (Filesystems): Add a hostdisk example.
7287 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7288 (grub-probe): Add ofpath.
7289 * gentpl.py: Remove group nosparc64.
7290 * grub-core/commands/search.c (cache_entry): New struct.
7291 (cache): New var.
7292 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7293 * grub-core/commands/search_wrap.c (options): Add platform-specific
7294 hint options.
7295 (grub_cmd_search): Handle platform-specific hints.
7296 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7297 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7298 (grub_util_biosdisk_data): Likewise.
7299 (grub_util_biosdisk_open): Set device_map.
7300 (read_device_map): Handle "" as indication of no map.
7301 Set device_map.
7302 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7303 (grub_util_biosdisk_get_compatibility_hint): New function.
7304 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7305 * include/grub/emu/hostdisk.h
7306 (grub_util_biosdisk_get_compatibility_hint): New proto.
7307 * util/grub-install.in: Don't call grub-mkdevicemap.
7308 Add platform-specific hint to load.cfg.
7309 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7310 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7311 hints. Set root preliminary to compatibility hint, not to OS name.
7312 * util/grub-probe.c (PRINT_*): Add hints.
7313 (print): Make static.
7314 (escape_of_path): New function.
7315 (guess_bios_drive): Likewise.
7316 (guess_efi_drive): Likewise.
7317 (guess_baremetal_drive): Likewise.
7318 (print_full_name): Likewise.
7319 (probe): Handle hints.
7320 (main): Likewise.
7321 * util/ieee1275/devicemap.c: Removed.
7322 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7323 updated.
7324 (grub_util_devname_to_ofpath): Return NULL on failure.
7325
7326 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7327 resource leak.
7328 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7329
7330 * po/POTFILES.in: Regenerated.
7331
7332 Allow purely long options
7333
7334 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7335 (SHORT_ARG_USAGE): Likewise.
7336 (grub_arg_show_help): Compare opt with help_options.
7337 (parse_option): Receive opt as argument. If makes big simplificatons.
7338 All users updated
7339
7340 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7343 Restructure to avoid warning.
7344
7345 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7346
7347 * util/grub-install.in: Account for possible escaped comma in device
7348 name.
7349
7350 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7353 channel.
7354
7355 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7358 allocation and zero-setting.
7359 (grub_ieee1275_get_devname): Check that alias is complete.
7360
7361 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7362
7363 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7364 unaligned segments.
7365
7366 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7369 prefix.
7370 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7371 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7372 Add ieee1275 prefix.
7373
7374 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7375
7376 * docs/grub.texi (Filesystems): Update.
7377
7378 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 Support odc, newc and bigendian cpio formats.
7381
7382 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7383 * grub-core/Makefile.core.def (newc): New module.
7384 (odc): Likewise.
7385 (cpio_be): Likewise.
7386 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7387 (MAGIC): Likewise.
7388 (MAGIC2): Likewise.
7389 (head) [MODE_ODC]: Adapt for the format.
7390 (head) [MODE_NEWC]: Likewise.
7391 (head) [!MODE_*]: Write fields of interest as arrays.
7392 (MAGIC_USTAR): Removed.
7393 (read_number) [MODE_NEWC]: Change to hex.
7394 (read_number) [!MODE_*]: Parse binary arrays.
7395 (grub_cpio_find_file): Factor out the code for better structure and
7396 always use read_number.
7397 (grub_cpio_mount): Use MAGIC and MAGIC2.
7398 (grub_cpio_dir): Exit on first hook non-0 return.
7399 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7400 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7401 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7402 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7403 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7404 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7405 * grub-core/fs/newc.c: New file.
7406 * grub-core/fs/odc.c: Likewise.
7407 * grub-core/fs/cpio_be.c: Likewise.
7408
7409 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7410
7411 Fix handling of tar numbers occupying the whole field.
7412
7413 * grub-core/fs/cpio.c (read_number): New function.
7414 (grub_cpio_find_file): Use read_number instead of strtoull.
7415
7416 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7419 occupying the whole field size.
7420
7421 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7422
7423 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7424
7425 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7428
7429 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7430
7431 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7432 TARGET_IMG_LDFLAGS.
7433
7434 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7437 (mountinfo_entry): Increase the field size to take escaping into
7438 account.
7439 (find_root_device_from_libzfs): Add one byte to size of strings for
7440 security.
7441
7442 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7445 an assert.
7446 * util/grub-setup.c (setup): Likewise.
7447
7448 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7451 _LzmaDecodeA.
7452
7453 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * docs/grub.texi (Internationalisation): New section.
7456
7457 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7458
7459 * docs/grub.texi (Loopback booting): New section.
7460
7461 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7462
7463 * util/grub-mkstandalone.in: Fix minor typo errors.
7464
7465 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7468
7469 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7470 net/icmp.c and net/icmp6.c.
7471 (http): New module.
7472 (priority_queue): Likewise.
7473 * grub-core/io/bufio.c: Rewritten.
7474 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7475 TYPE_WITH_CONFIGFILE_OPTION.
7476 (legacy_commands): Add bootp and dhcp.
7477 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7478 (grub_legacy_parse): Likewise.
7479 * grub-core/lib/priority_queue.c: New file.
7480 * grub-core/net/arp.c: Add missing license header.
7481 (arp_find_entry): Removed.
7482 (arp_find_entry): Likewise.
7483 (grub_net_arp_resolve): Rename to ...
7484 (grub_net_arp_send_request): ...this.
7485 (grub_net_arp_receive): New card argument.
7486 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7487 Set router and DNS server.
7488 (grub_net_configure_by_dhcp_ack): Handle routing information.
7489 (grub_cmd_bootp): Set checksum.
7490 (grub_bootp_init): Remove net_dhcp.
7491 * grub-core/net/dns.c: New file.
7492 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7493 completion.
7494 (get_card_packet): Handle allocation.
7495 (grub_efinet_findcards): Set mtu.
7496 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7497 (get_card_packet): Handle allocation.
7498 (emucard): Set mtu.
7499 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7500 (GRUB_MOD_INIT): Set mtu.
7501 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7502 mtu.
7503 (get_card_packet): Handle allocation.
7504 (grub_ofnet_findcards): Set mtu.
7505 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7506 assert.
7507 (grub_net_recv_ethernet_packet): Handle IPv6.
7508 * grub-core/net/http.c: New file.
7509 * grub-core/net/icmp.c: Likewise.
7510 * grub-core/net/icmp6.c: Likewise.
7511 * grub-core/net/ip.c (ip6addr): New type.
7512 (ip6hdr): Likewise.
7513 (reassemble): Likewise.
7514 (cmp): New function.
7515 (reassembles): New variable.
7516 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7517 (id): New variable.
7518 (send_fragmented): New function.
7519 (grub_net_send_ip_packet): Rename to ...
7520 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7521 Handle non-UDP.
7522 (grub_net_recv_ip_packets): Rename to ...
7523 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7524 (free_rsm): New function.
7525 (free_old_fragments): Likewise.
7526 (grub_net_recv_ip4_packets): New function.
7527 (grub_net_send_ip6_packet): Likewise.
7528 (grub_net_send_ip_packet): Likewise.
7529 (grub_net_recv_ip6_packets): Likewise.
7530 (grub_net_recv_ip_packets): Likewise.
7531 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7532 (LINK_LAYER_CACHE_SIZE): New const.
7533 (link_layer_find_entry): New function.
7534 (grub_net_link_layer_add_address): Likewise.
7535 (grub_net_link_layer_resolve_check): Likewise.
7536 (grub_net_link_layer_resolve): Likewise.
7537 (grub_net_ipv6_get_slaac): Likewise.
7538 (grub_net_ipv6_get_link_local): Likewise.
7539 (grub_cmd_ipv6_autoconf): Likewise.
7540 (parse_ip): Handle one number representation.
7541 (parse_ip6): New functoion.
7542 (match_net): Handle IPv6.
7543 (grub_net_resolve_address): Handle IPv6 and DNS.
7544 (grub_net_resolve_net_address): Handle IPv6.
7545 (route_cmp): New function.
7546 (grub_net_route_address): Find best route.
7547 (grub_net_addr_to_str): Handle IPv6.
7548 (grub_net_addr_cmp): New function.
7549 (grub_net_add_addr): Register local route.
7550 (print_net_address): Handle net address.
7551 (grub_net_poll_cards): Retransmit TCP.
7552 (grub_net_poll_cards_idle_real): Likewise.
7553 (have_ahead): New function.
7554 (grub_net_seek_real): Use underlying seek.
7555 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7556 * grub-core/net/tcp.c: New file.
7557 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7558 (cmp): New function.
7559 (ack): Likewise.
7560 (tftp_receive): Handle unordered input.
7561 (destroy_pq): New function.
7562 (tftp_close): Close pq.
7563 * grub-core/net/udp.c: Put missing license header.
7564 (grub_net_udp_socket): New function.
7565 (udp_socket_register): Likewise.
7566 (grub_net_udp_close): Likewise.
7567 (grub_net_recv_udp_packet): Check checksum.
7568 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7569 * include/grub/misc.h (grub_memchr): New function.
7570 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7571 (grub_net_card_driver): Return buf in recv.
7572 (grub_net_slaac_mac_list): New struct.
7573 (grub_network_level_protocol_id): Add ipv6.
7574 (grub_net_network_level_addr): Likewise.
7575 (grub_net_network_level_net_addr): Likewise.
7576 (grub_net_app_protocol): Add seek.
7577 (grub_net_socket): Removed.
7578 (grub_net_sockets): Likewise.
7579 (grub_net_socket_register): Likewise.
7580 (grub_net_socket_unregister): Likewise.
7581 (FOR_NET_SOCKETS): Likewise.
7582 (grub_net_add_addr): Add const.
7583 (GRUB_NET_BOOTP_*): New enum.
7584 (grub_net_addr_cmp): New proto.
7585 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7586 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7587 (grub_net_hwaddr_to_str): NEw proto.
7588 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7589 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7590 (grub_dns_init): New proto.
7591 (grub_dns_fini): Likewise.
7592 (grub_net_tcp_retransmit): Likewise.
7593 (grub_net_link_layer_add_address): Likewise.
7594 (grub_net_link_layer_resolve_check): Likewise.
7595 (grub_net_link_layer_resolve): Likewise.
7596 (grub_net_dns_lookup): Likewise.
7597 (grub_net_add_dns_server): Likewise.
7598 (grub_net_remove_dns_server): Likewise.
7599 (GRUB_NET_TRIES): New const.
7600 (GRUB_NET_INTERVAL): Likewise.
7601 * include/grub/net/arp.h: Mostly rewritten.
7602 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7603 * include/grub/net/ip.h: Mostly rewritten.
7604 * include/grub/net/netbuff.h: Indent.
7605 * include/grub/net/tcp.h: New file.
7606 * include/grub/net/udp.h: Mostly rewritten.
7607 * include/grub/priority_queue.h: New file.
7608 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7609 (grub_swap_bytes64_compile_time): Likewise.
7610 (grub_cpu_to_be16_compile_time): Likewise.
7611 (grub_cpu_to_be32_compile_time): Likewise.
7612 (grub_cpu_to_be64_compile_time): Likewise.
7613 (grub_be_to_cpu64_compile_time): Likewise.
7614
7615 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7616
7617 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7618 UINT_TO_PTR with cast.
7619
7620 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7623 don't use them.
7624
7625 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
7628 already there.
7629
7630 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
7633 confusing ipxe.
7634
7635 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
7638 Add missing const attribute.
7639 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
7640 Likewise.
7641 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
7642 Likewise.
7643
7644 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7645
7646 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
7647 misaligned access.
7648 (serpent_setkey): Likewise.
7649 (serpent_encrypt_internal): Likewise.
7650 (serpent_decrypt_internal): Likewise.
7651 (serpent_encrypt): Don't put an alignment-increasing cast.
7652 (serpent_decrypt): Likewise.
7653 (serpent_test): Likewise.
7654
7655 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
7658
7659 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
7662
7663 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
7664 grub_addr_t casts.
7665 (PTR_TO_UINT64): Likewise.
7666 (PTR_TO_UINT32): Likewise.
7667
7668 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 * util/grub-mkimage.c (generate_image): Decrease the higher limit
7671 because of stack.
7672 * util/grub-setup.c (setup): Don't add redundancy past the higher load
7673 limit.
7674
7675 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
7678 text_width > available width a bit more gracefully.
7679
7680 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
7683 current address calculation.
7684
7685 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
7688 stack.
7689 (encode_block): Likewise.
7690
7691 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
7694 certainety.
7695
7696 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
7699 non-RS part to avoid RS messing with GDT.
7700 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7701 Increase to suit in realmode routines.
7702
7703 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/kern/i386/realmode.S: Increase alignment.
7706 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
7707
7708 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
7711 be deterministic.
7712 (syndroms): Compute 0 syndrom.
7713 (rs_recover): Use 0 syndrom.
7714
7715 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7716
7717 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
7718
7719 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
7722 brackets.
7723
7724 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
7727 account.
7728 (get_top_pad): Likewise.
7729 (get_right_pad): Likewise.
7730 (get_bottom_pad): Likewise.
7731
7732 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
7735
7736 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7737
7738 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
7739 attribute as the structure isn't guaranteed to be properly aligned.
7740 (grub_efi_pci_device_path): Likewise.
7741 (grub_efi_pccard_device_path): Likewise.
7742 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
7743 specify the size of `memory_type'.
7744 (grub_efi_vendor_device_path): Likewise.
7745 (grub_efi_controller_device_path): Likewise.
7746 (grub_efi_acpi_device_path): Likewise.
7747 (grub_efi_expanded_acpi_device_path): Likewise.
7748 (grub_efi_atapi_device_path): Likewise.
7749 (grub_efi_scsi_device_path): Likewise.
7750 (grub_efi_fibre_channel_device_path): Likewise.
7751 (grub_efi_1394_device_path): Likewise.
7752 (grub_efi_usb_device_path): Likewise.
7753 (grub_efi_usb_class_device_path): Likewise.
7754 (grub_efi_i2o_device_path): Likewise.
7755 (grub_efi_mac_address_device_path): Likewise.
7756 (grub_efi_ipv4_device_path): Likewise.
7757 (grub_efi_ipv6_device_path): Likewise.
7758 (grub_efi_infiniband_device_path): Likewise.
7759 (grub_efi_uart_device_path): Likewise.
7760 (grub_efi_vendor_messaging_device_path): Likewise.
7761 (grub_efi_hard_drive_device_path): Likewise.
7762 (grub_efi_cdrom_device_path): Likewise.
7763 (grub_efi_vendor_media_device_path): Likewise.
7764 (grub_efi_file_path_device_path): Likewise.
7765 (grub_efi_protocol_device_path): Likewise.
7766 (grub_efi_piwg_device_path): Likewise.
7767 (grub_efi_bios_device_path): Likewise.
7768
7769 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7770
7771 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
7772 (grub_ucs4_to_utf8_alloc): Likewise.
7773 (grub_ucs4_to_utf8): Likewise.
7774 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
7775 (grub_ucs4_to_utf8_alloc): Likewise.
7776
7777 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7778
7779 AFFS never uses unicode.
7780
7781 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
7782 (grub_latin1_to_utf8): New inline function.
7783 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
7784
7785 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
7788 overflow.
7789
7790 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
7793 (grub_squash_dirent_header): Likewise.
7794 (read_chunk): Don't double swap.
7795 (grub_squash_iterate_dir): Fix swap sizes.
7796
7797 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
7800
7801 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
7804 (grub_hfs_iterate_dir): Likewise.
7805
7806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 Fix video on platforms where unaligned access is forbidden.
7809 Make several optimisations while on it.
7810
7811 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
7812 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7813 (grub_video_fbblit_replace_32bit_1bit): Likewise.
7814 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7815 Disable.
7816 (grub_video_fbblit_replace_16bit_1bit):
7817 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7818 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7819 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
7820 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
7821 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7822 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7823 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
7824 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
7825 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
7826 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
7827 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
7828 (grub_video_fbblit_replace_index_RGB888): Likewise.
7829 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
7830 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
7831 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
7832 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
7833 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
7834 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7835 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7836 Disable.
7837 (grub_video_fbblit_blend_XXX565_1bit):
7838 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7839 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
7840 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
7841 void *.
7842 * grub-core/video/fb/video_fb.c (common_blitter)
7843 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
7844 (grub_video_fb_create_render_target_from_pointer)
7845 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7846 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
7847 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
7848 definition.
7849 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
7850
7851 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7852
7853 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
7854 HH22 and HM10 relocations.
7855
7856 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7857
7858 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
7859
7860 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7861
7862 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
7863 allocation succeeded.
7864
7865 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7866
7867 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
7868 argument a u8 pointer. All users updated.
7869 Handle unaligned buffers.
7870
7871 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7872
7873 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
7874 add_part to workaround compiler bug.
7875
7876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7877
7878 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
7879
7880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7881
7882 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
7883 Reserve alignment invariants.
7884 (grub_multiboot_load): Likewise.
7885 (retrieve_video_parameters): Likewise.
7886 (grub_multiboot_make_mbi): Likewise.
7887
7888 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
7891 incorrect pointer.
7892
7893 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7894
7895 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
7896 (grub_pata_pio_write): Likewise.
7897
7898 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7899
7900 Add noreturn attributes and remove unreachable code.
7901
7902 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
7903 code.
7904 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
7905 code. Mark as noreturn.
7906 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
7907 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
7908 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
7909 unreachable code.
7910 * grub-core/kern/main.c (grub_main): Mark as noreturn.
7911 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
7912 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
7913 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
7914 * include/grub/kernel.h (grub_main): Mark as noreturn.
7915 * include/grub/reader.h (grub_rescue_run): Likewise.
7916
7917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
7920 redundant declaration.
7921
7922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 * include/grub/net.h (grub_net_network_level_interfaces): Remove
7925 redundant declaration.
7926 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
7927
7928 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
7931 to ensure alignment.
7932 (grub_hdparm_print_identify): Make argument uint16 * to ensure
7933 alignment. Ensure tmp alignment.
7934 (grub_cmd_hdparm): Ensure buf alignment.
7935 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
7936 to ensure alignment.
7937 (grub_ata_dumpinfo): Ensure text alignment.
7938 (grub_atapi_identify): Preserve alignment invariant.
7939 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
7940
7941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
7944 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
7945 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
7946 * include/grub/misc.h (grub_reboot)
7947 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
7948 (grub_halt) [__mips__]: Likewise.
7949
7950 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7951
7952 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
7953 Remove redundant declaration.
7954 (grub_mmap_get_post64): Likewise.
7955 (grub_mmap_get_upper): Likewise.
7956 (grub_mmap_get_lower): Likewise.
7957
7958 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7959
7960 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
7961 uint32_t * to ensure alignment.
7962 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
7963
7964 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
7967 uint16_t * to ensure alignment.
7968 (sun_pc_partition_map_iterate): Make `block' a union to ensure
7969 alignment.
7970
7971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7972
7973 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
7974 to ensure alignment.
7975 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
7976
7977 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7978
7979 * grub-core/fs/ntfs.c (u16at): Make into inline function.
7980 Handle unaligned pointers.
7981 (u32at): Likewise.
7982 (u64at): Likewise.
7983 (fixup): Use byte access instead of v16at.
7984 (find_attr): Fix imporper usage of v32at.
7985 (read_data): Likewise.
7986 (list_file): Handle byte-swapping and unaligned strings.
7987 (grub_ntfs_label): Likewise.
7988
7989 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7990
7991 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
7992 as it's not necessarily aligned.
7993
7994 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7995
7996 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
7997 redundant declaration.
7998 (grub_serial_init): Likewise.
7999 (grub_terminfo_init): Likewise.
8000
8001 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8002
8003 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8004 function.
8005 (ZAP_HASH_IDX): Likewise.
8006 (ZAP_LEAF_HASH_SHIFT): Likewise.
8007 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8008 (LEAF_HASH): Likewise.
8009 (ZAP_LEAF_NUMCHUNKS): Likewise.
8010 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8011 alignment invariants. Return pointer. All users updated.
8012 (ZAP_LEAF_ENTRY): Make into inline function.
8013 (NBBY): Removed.
8014 (xor): LIkewise.
8015 (xor_out): Use grub_crypto_xor.
8016 (dnode_get_path): Use grub_get_unaligned.
8017 (nvlist_find_value): Likewise.
8018 (grub_zfs_nvlist_lookup_uint64): Likewise.
8019 (grub_zfs_nvlist_lookup_string): Likewise.
8020 (get_nvlist_size): Likewise.
8021 (grub_zfs_open): Likewise.
8022 (fill_fs_info): Likewise.
8023 (grub_zfs_dir): Likewise.
8024 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8025 alignment invariants.
8026 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8027 necessarily aligned.
8028
8029 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8032
8033 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8034
8035 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8036 arithmetic to conserve alignment invariants.
8037
8038 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8039
8040 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8041 redundant declaration.
8042 (grub_efiemu_mm_obtain_request): Likewise.
8043 (grub_efiemu_prepare): Likewise.
8044
8045 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8048 to match types.
8049
8050 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8051
8052 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8053 case of aunaligned recptr.
8054 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8055 alignment.
8056 (grub_hfsplus_btree_search): Handle unaligned index.
8057
8058 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8061 to get freetag and skip.
8062
8063 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8066 array.
8067 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8068 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8069
8070 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8073 name for checksum and fix allocation algorithm.
8074
8075 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8076
8077 * include/grub/types.h (grub_properly_aligned_t): New type.
8078 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8079 (grub_get_unaligned16): Add explicit casts.
8080 (grub_get_unaligned32): Likewise.
8081 (grub_get_unaligned64): Likewise.
8082 (grub_set_unaligned16): New function.
8083 (grub_set_unaligned32): Likewise.
8084
8085 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8088
8089 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8090
8091 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8092 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8093 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8094
8095 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8096
8097 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8098 conditionals.
8099
8100 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8101
8102 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8103 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8104
8105 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8106
8107 Unify and improve RAID and crypto xor.
8108
8109 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8110 changed to grub_crypto_xor
8111 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8112 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8113 Use bigger types when possible.
8114
8115 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8116
8117 * grub-core/disk/raid.c (scan_devices): Fix condition.
8118
8119 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8122 Make name a const ptr.
8123
8124 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8125
8126 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8127 first argument a const pointer.
8128 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8129 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8130 proto.
8131 (grub_children_iterate): Likewise.
8132 (grub_machine_mmap_iterate): Remove redundant declaration.
8133
8134 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8135
8136 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8137 (grub_cmd_acpi) [!x86]: Disable EBDA.
8138
8139 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8140
8141 Enable UTF8 in gnulib regexp.
8142
8143 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8144 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8145 (isupper): Use grub_isupper.
8146 (isascii): New inline function.
8147 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8148 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8149 * grub-core/normal/charset.c (grub_utf8_process): New function.
8150 (grub_utf8_to_utf16): Use grub_utf8_process.
8151 (grub_encode_utf8_character): New function.
8152 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8153 * include/grub/charset.h (grub_utf8_process): New declaration.
8154 (grub_encode_utf8_character): Likewise.
8155 * include/grub/misc.h (grub_islower): New inline function.
8156 (grub_isupper): Likewise.
8157 (grub_strchrsub): Moved down to fix the definitions.
8158
8159 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8162 specification.
8163
8164 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * include/grub/loader.h (grub_loader_register_preboot_hook):
8167 Use struct preboot * and not void * for handle. All users updated.
8168 (grub_loader_unregister_preboot_hook): Likewise.
8169
8170 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8171
8172 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8173 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8174 UTF-16-BE. All users updated.
8175 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8176 (grub_hfsplus_iterate_dir): Likewise.
8177 (grub_hfsplus_label): Likewise.
8178
8179 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8180
8181 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8182
8183 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 Add missing const qualifiers.
8186
8187 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8188 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8189 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8190 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8191 (grub_lvm_check_flag): Likewise.
8192 * grub-core/efiemu/i386/coredetect.c
8193 (grub_efiemu_get_default_core_name): Likewise
8194 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8195 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8196 * grub-core/fs/ntfs.c (fixup): Likewise.
8197 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8198 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8199 (fzap_lookup): Likewise.
8200 (zap_lookup): Likewise.
8201 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8202 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8203 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8204 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8205 (grub_freebsd_add_meta_module): Likewise.
8206 (grub_cmd_freebsd_module): Likewise.
8207 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8208 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8209 (grub_xnu_writetree_get_size): Likewise.
8210 (grub_xnu_writetree_toheap_real): Likewise.
8211 (grub_xnu_find_key): Likewise.
8212 (grub_xnu_create_key): Likewise.
8213 (grub_xnu_create_value): Likewise.
8214 (grub_xnu_register_memory): Likewise.
8215 (grub_xnu_check_os_bundle_required): Likewise.
8216 (grub_xnu_scan_dir_for_kexts): Likewise.
8217 (grub_xnu_load_kext_from_dir): Likewise.
8218 * grub-core/normal/color.c (color_list): Likewise.
8219 * grub-core/normal/completion.c (current_word): Likewise.
8220 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8221 * grub-core/term/serial.c (grub_serial_find): Likewise.
8222 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8223 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8224 Likewise.
8225 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8226 (grub_freebsd_add_meta_module): Likewise.
8227 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8228 * include/grub/net.h (grub_net_card_driver): Likewise.
8229 (grub_net_card): Likewise.
8230 (grub_net_app_protocol): Likewise.
8231 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8232 * include/grub/serial.h (grub_serial_find): Likewise.
8233 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8234 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8235 (grub_xnu_create_value): Likewise.
8236 (grub_xnu_find_key): Likewise.
8237 (grub_xnu_scan_dir_for_kexts): Likewise.
8238 (grub_xnu_load_kext_from_dir): Likewise.
8239
8240 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8241 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8242 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8243 Moved from here ...
8244 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8245
8246 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8247
8248 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8249
8250 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8251
8252 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8253 (read_device): Fix size calculation.
8254
8255 2011-11-25 Robert Millan <rmh@gnu.org>
8256
8257 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8258 (find_root_device_from_libzfs): Add zpool output parser to be used
8259 as fallback when libzfs isn't available.
8260
8261 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8262
8263 * po/Makefile.in.in: Add missing escape-continuation.
8264
8265 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8268
8269 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8270
8271 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8272
8273 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8276
8277 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8278
8279 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8280
8281 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * grub-core/lib/adler32.c: Add missing license specification.
8284 * grub-core/lib/crc64.c: Likewise.
8285 * grub-core/loader/i386/pc/plan9.c: Likewise.
8286 * grub-core/partmap/plan.c: Likewise.
8287
8288 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8289
8290 Add facility to debug GRUB with gdb under qemu.
8291
8292 * grub-core/gdb_grub.in: New file.
8293 * grub-core/gmodule.pl.in: Likewise.
8294 * grub-core/Makefile.core.def (gmodule.pl): New script.
8295 (gdb_grub): Likewise.
8296
8297 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8298
8299 * util/grub-mount.c (argp_parser): Accept relative pathes.
8300 * util/grub-fstest.c (argp_parser): Likewise.
8301
8302 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8303
8304 Plan9 support.
8305
8306 * Makefile.util.def (libgrubmods): Add
8307 grub-core/partmap/plan.c.
8308 * docs/grub.texi: Notice Plan9 support.
8309 * grub-core/Makefile.core.def (plan9): New module.
8310 (part_plan): Likewise.
8311 * grub-core/loader/i386/pc/plan9.c: New file.
8312 * grub-core/partmap/plan.c: Likewise.
8313 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8314 define.
8315 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8316 * include/grub/mm.h (grub_extend_alloc): New inline function.
8317
8318 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 Make Reed-Solomon faster by using power of generator representation of
8321 GF(256)*.
8322
8323 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8324 (gf_double_t): Likewise.
8325 (gf_invert): Removed.
8326 (gf_powx): New array.
8327 (gf_powx_inv): Likewise.
8328 (scratch): Move higher.
8329 (gf_reduce): Removed.
8330 (gf_mul): Use powx.
8331 (gf_invert): Likewise.
8332 (init_inverts): Replaced with ...
8333 (init_powx): ...this. All users updated.
8334 (pol_evaluate): Replace multiplications with additions.
8335 (rs_encode): Likewise.
8336 (gauss_eliminate): Call gf_invert.
8337 (grub_reed_solomon_add_redundancy): Call init_powx.
8338 (grub_reed_solomon_recover): Call init_powx unconditionally.
8339
8340 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8343
8344 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8345
8346 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8347 disk->partiton for safety.
8348
8349 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8352 Fix a memory leak.
8353 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8354
8355 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8358
8359 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8362
8363 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8364
8365 Fix spaces handling in proc/self/mountinfo.
8366
8367 * util/getroot.c (unescape): New function.
8368 (grub_find_root_device_from_mountinfo): Use unescape.
8369
8370 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8371
8372 Support ZFS embedding.
8373
8374 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8375 (grub_zfs_fs): Register grub_zfs_embed.
8376
8377 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8378
8379 Fix MIPS compilation.
8380
8381 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8382 * include/grub/offsets.h: Rename decompressor fields from
8383 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8384 * util/grub-mkimage.c (image_targets): Use new names.
8385
8386 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8387
8388 Defer multiboot device parsing until we're in compressed part.
8389
8390 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8391 bsd_part. setdevice has fallen into disuse.
8392 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8393 (bsd_part): Likewise.
8394 (boot_dev): New variable.
8395 (multiboot_trampoline): Don't parse multiboot device.
8396 Pass multiboot device in %edx.
8397 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8398 grub_boot_device.
8399 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8400 Likewise.
8401 * grub-core/kern/i386/pc/startup.S: Save edx.
8402 (grub_boot_drive): Removed.
8403 (grub_install_dos_part): Likewise.
8404 (grub_install_bsd_part): Likewise.
8405 (grub_boot_device): New variable.
8406 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8407 (grub_install_bsd_part): Likewise.
8408 (grub_boot_drive): Likewise.
8409 (grub_boot_device): New variable.
8410 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8411 Removed.
8412 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8413 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8414 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8415 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8416 * util/grub-install.in: Remove redundant condition.
8417
8418 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 Fix bug introduced by previous commit.
8421
8422 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8423
8424 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8425
8426 Use decompressors framework on i386-pc. It increases core size
8427 by 46 bytes but improves compatibility and maintainability.
8428
8429 * grub-core/Makefile.core.def (lzma_decompress): New image.
8430 (kernel): Add i386_pc_ldflags.
8431 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8432 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8433 to real_to_prot, prot_to_real and device info.
8434 * include/grub/offsets.h: Renamed decompressor offsets.
8435 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8436 (image_target_desc): Remove raw_size and rename decompressor fields.
8437 (compress_kernel): Handle lzma.
8438 (generate_image): Handle decompressors on i386-pc.
8439
8440 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8441
8442 * configure.ac: Add -fno-asynchronous-unwind-tables.
8443
8444 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 Move assembly code to C by using intwrap. It increases core size
8447 by 88 bytes but improves compatibility and maintainability.
8448
8449 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8450 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8451 ... here. Translated to C.
8452 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8453 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8454 ... here. Translated to C.
8455 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8456 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8457 ... here. Translated to C.
8458 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8459 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8460 ... here. Translated to C.
8461 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8462 * grub-core/term/i386/pc/console.c (grub_console_cls):
8463 ... here. Translated to C.
8464 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8465 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8466 ... here. Translated to C.
8467 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8468 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8469 Translated to C.
8470 * grub-core/term/i386/pc/console.c (int10_9): New function.
8471 (grub_console_putchar): Likewise.
8472 * include/grub/i386/pc/console.h: Removed the not anymore shared
8473 functions.
8474
8475 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 Move grub_chainloader_real_boot out of the kernel.
8478
8479 * grub-core/Makefile.am: Remove machine/loader.h.
8480 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8481 Removed.
8482 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8483 variable.
8484 (grub_relocator16_keep_a20_enabled): Likewise.
8485 (grub_relocator16_boot): Fill new variables.
8486 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8487 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8488 relocator.
8489 (grub_chainloader_unload): Likewise.
8490 (grub_chainloader_cmd): Likewise.
8491 * include/grub/i386/pc/loader.h: Removed.
8492 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8493 and esi. All initialisers updated.
8494
8495 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8496 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8497
8498 * Makefile.util.def (grub-mount): New util.
8499 * .bzrignore: Add grub-mount.
8500 * configure.ac: Check for fuse and enable grub-mount if available.
8501 * docs/man/grub-mount.h2m: New file.
8502 * util/grub-mount.c: Likewise.
8503
8504 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 * grub-core/commands/efi/fixvideo.c: Gettextize.
8507 * grub-core/commands/hashsum.c: Likewise.
8508 * grub-core/commands/i386/cmostest.c: Likewise.
8509 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8510 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8511 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8512 * grub-core/commands/lsmmap.c: Likewise.
8513 * grub-core/commands/menuentry.c: Likewise.
8514 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8515 * grub-core/commands/setpci.c: Likewise.
8516 * grub-core/loader/i386/bsd.c: Likewise.
8517 * grub-core/loader/i386/linux.c: Likewise.
8518 * util/getroot.c: Likewise.
8519 * util/grub-editenv.c: Likewise.
8520 * util/grub-fstest.c: Likewise.
8521 * util/grub-mkfont.c: Likewise.
8522 * util/grub-mkimage.c: Likewise.
8523 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8524 * util/grub-pe2elf.c: Likewise.
8525 * util/grub-probe.c: Likewise.
8526 * util/grub-setup.c: Likewise.
8527 * util/ieee1275/ofpath.c: Likewise.
8528 * util/misc.c: Likewise.
8529 * util/raid.c: Likewise.
8530
8531 2011-11-11 Robert Millan <rmh@gnu.org>
8532
8533 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8534 __attribute__((unused)) from `os_dev', which *is* being used.
8535
8536 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8539 forgotten define.
8540 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8541 GRUB_IA64_DL_GOT_ALIGN.
8542 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8543 GRUB_IA64_DL_TRAMP_ALIGN.
8544
8545 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 Replace grub_fatal with normal errors in i386 linux loader.
8548
8549 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8550 (allocate_pages): Check find_efi_mmap_size return value.
8551 (grub_e820_add_region): Return error.
8552 (grub_linux_boot): Check mmap return value.
8553
8554 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * grub-core/commands/acpihalt.c: Gettextized.
8557 * grub-core/commands/cacheinfo.c: Likewise.
8558 * grub-core/commands/cmp.c: Likewise.
8559 * grub-core/commands/efi/loadbios.c: Likewise.
8560 * grub-core/commands/gptsync.c: Likewise.
8561 * grub-core/commands/ieee1275/suspend.c: Likewise.
8562 * grub-core/commands/legacycfg.c: Likewise.
8563 * grub-core/commands/memrw.c: Likewise.
8564 * grub-core/commands/minicmd.c: Likewise.
8565 * grub-core/commands/parttool.c: Likewise.
8566 * grub-core/commands/time.c: Likewise.
8567 * grub-core/commands/videoinfo.c: Likewise.
8568 * grub-core/disk/geli.c: Likewise.
8569 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8570 * grub-core/disk/luks.c: Likewise.
8571 * grub-core/disk/lvm.c: Likewise.
8572 * grub-core/font/font_cmd.c: Likewise.
8573 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8574 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8575 * grub-core/gfxmenu/view.c: Likewise.
8576 * grub-core/kern/emu/hostdisk.c: Likewise.
8577 * grub-core/kern/emu/main.c: Likewise.
8578 * grub-core/kern/emu/misc.c: Likewise.
8579 * grub-core/kern/emu/mm.c: Likewise.
8580 * grub-core/kern/mips/arc/init.c: Likewise.
8581 * grub-core/kern/mips/loongson/init.c: Likewise.
8582 * grub-core/kern/partition.c: Likewise.
8583 * grub-core/lib/i386/halt.c: Likewise.
8584 * grub-core/lib/mips/arc/reboot.c: Likewise.
8585 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8586 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8587 * grub-core/loader/i386/xnu.c: Likewise.
8588 * grub-core/loader/multiboot.c: Likewise.
8589 * grub-core/net/bootp.c: Likewise.
8590 * grub-core/net/net.c: Likewise.
8591 * grub-core/normal/term.c: Likewise.
8592 * grub-core/partmap/bsdlabel.c: Likewise.
8593 * grub-core/parttool/msdospart.c: Likewise.
8594 * grub-core/term/gfxterm.c: Likewise.
8595 * grub-core/term/terminfo.c: Likewise.
8596 * grub-core/video/i386/pc/vbe.c: Likewise.
8597 * util/grub-menulst2cfg.c: Likewise.
8598 * util/grub-mkdevicemap.c: Likewise.
8599 * util/grub-mklayout.c: Likewise.
8600 * util/grub-mkrelpath.c: Likewise.
8601 * util/grub-script-check.c: Likewise.
8602 * util/ieee1275/grub-ofpathname.c: Likewise.
8603 * util/resolve.c: Likewise.
8604
8605 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8606
8607 Support %1$d syntax.
8608
8609 * tests/printf_unit_test.c: New file.
8610 * Makefile.util.def (printf_test): New test.
8611 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8612
8613 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8614
8615 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8616 fix.
8617
8618 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8621 dprintf.
8622 * grub-core/font/font.c (grub_font_load): Likewise.
8623
8624 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8625
8626 * util/grub-macho2img.c: Add comment concerning gettext.
8627 * grub-core/lib/legacy_parse.c: Likewise.
8628
8629 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
8632 (grub_xvasprintf): Likewise.
8633
8634 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 Add const keyword to grub_env_get and gettextize week days.
8637
8638 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
8639 (grub_read_hook_datetime): Return const char *.
8640 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
8641 updated.
8642 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8643 Mark for gettext.
8644 (grub_get_weekday_name): Return const char *. Call gettext.
8645 * grub-core/script/argv.c (grub_script_argv_append): Receive const
8646 char * and len as the argument. All users updated.
8647 (grub_script_argv_split_append): Receive const char *.
8648 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
8649 * include/grub/env.h (grub_env_get): Likewise.
8650 (grub_env_read_hook_t): Return const char *.
8651 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
8652 (grub_script_argv_split_append): Likewise.
8653
8654 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
8657
8658 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8659
8660 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
8661 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
8662
8663 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
8666 Fix prototype.
8667
8668 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 Fix mips compilation.
8671
8672 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
8673 normal decoder.
8674 (hashes): Use in embed decoder as well (for sizes).
8675 (dec_stream_header): Fix embed decompressor logic.
8676 (dec_stream_footer): Likewise.
8677
8678 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
8681 an error and not a fatal on unrecognised relocation types.
8682
8683 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8684
8685 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
8686 Issue error rather than printf on unknown arguments.
8687
8688 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
8691 Make buf a const.
8692
8693 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8694
8695 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
8696 Fix module name.
8697
8698 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
8701 leftover debug printf.
8702
8703 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8704
8705 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
8706
8707 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8708
8709 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
8710 A stylistic fix.
8711
8712 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8713
8714 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
8715
8716 2011-11-10 Shea Levy <slevy@tieronedesign.com>
8717
8718 Allow all modules to perform serial IO
8719
8720 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
8721 * include/grub/serial.h (grub_serial_port_configure): New inline
8722 function.
8723 (grub_serial_port_fetch): Likewise.
8724 (grub_serial_port_put): Likewise.
8725 (grub_serial_port_fini): Likewise.
8726 (grub_serial_find): New proto.
8727
8728 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 Put symlink at the end of the node and fix a potential
8731 memory corruption.
8732
8733 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
8734 Make symlink into an array.
8735 (set_rockridge): Set have_symlink and alloc_dirents.
8736 (grub_iso9660_read_symlink): Use new layout.
8737 (grub_iso9660_iterate_dir): Fix memory corruption.
8738 Use new layout.
8739 (grub_iso9660_dir): Set have_symlink.
8740 (grub_iso9660_open): Likewise.
8741
8742 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 Remove local keyword.
8745
8746 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
8747 (version_test_gt): Likewise.
8748 (version_find_latest): Likewise.
8749 (gettext_printf): Likewise.
8750 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
8751
8752 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
8755
8756 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 Fix ZFS memory and resource leaks.
8759
8760 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
8761 All users updated.
8762 Free type on exit.
8763 (fill_vdev_info): New parameter inserted. All users updated.
8764 (check_pool_label): Likewise.
8765 (scan_disk): Likewise.
8766 (scan_devices): Close non-inserted disks.
8767 (fzap_iterate): Free l.
8768 (unmount_device): Free children descripto memory.
8769
8770 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
8773 argument (access out of bounds).
8774
8775 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
8778 >= 6 drives.
8779
8780 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
8783 Fix declaration.
8784
8785 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 Fix several memory leaks.
8788
8789 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
8790 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
8791 (grub_cpio_dir): Likewise.
8792 * grub-core/fs/fat.c (grub_fat_label): Likewise.
8793 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
8794 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
8795 (grub_romfs_label): Likewise.
8796 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
8797 (squash_unmount): New function.
8798 (grub_squash_dir): Fix memory leak.
8799 (grub_squash_open): Likewise.
8800 (grub_squash_read): Likewise.
8801 (grub_squash_mtime): Likewise.
8802 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
8803 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
8804 * util/grub-fstest.c (fstest): Likewise.
8805
8806 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8807
8808 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
8809 avoid accessing beyond the array.
8810
8811 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8812
8813 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
8814
8815 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 Several AFFS fixes.
8818
8819 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
8820 (GRUB_AFFS_FLAG_FFS): Removed.
8821 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
8822 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
8823 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
8824 (grub_fshelp_node): Make block 32-bit.
8825 Add block_cache and last_block_cache.
8826 (grub_affs_read_block): Fill and use block cache.
8827 (grub_affs_read_file): Removed.
8828 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
8829 boot block.
8830 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
8831 safety.
8832 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
8833 space.
8834 (grub_affs_close): Free block cache.
8835 (grub_affs_read): Use grub_fshelp_read_file directly.
8836
8837 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
8840 with no error set.
8841
8842 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
8845 used variable.
8846 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
8847 Likewise.
8848
8849 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
8852
8853 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
8854 byteswap when needed.
8855
8856 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8857
8858 Fix FreeBSD compilation.
8859
8860 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
8861 to avoid circular dependency.
8862 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
8863 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
8864 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
8865
8866 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8867
8868 Fix ZFS crypto error types.
8869
8870 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
8871 (grub_gcm_decrypt): Likewise.
8872 (grub_zfs_load_key_real): Fix error code type. Handle possible error
8873 from PBKDF2.
8874
8875 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 Illumos support.
8878
8879 * Makefile.util.def (10_illumos): New script.
8880 * configure.ac: Set COND_HOST_ILLUMOS.
8881 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
8882 Support Illumos calls.
8883 (find_partition_start) [__sun__]: Likewise.
8884 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
8885 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
8886 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
8887 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
8888 device.
8889 * util/grub-probe.c (probe) [__sun__]: Do character check.
8890 * util/grub.d/10_illumos.in: New file.
8891
8892 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8893
8894 Support escaped commas in hostdisk.
8895
8896 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
8897 (find_grub_drive): Use unescape_cmp.
8898 (make_device_name): Escape commas.
8899
8900 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8901
8902 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
8903
8904 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
8907 variable.
8908
8909 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 Support trampoline jumps on powerpc.
8912
8913 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
8914 __ia64__ path.
8915 (grub_dl_load_segments): Set mod->sz.
8916 (grub_dl_flush_cache): Flush whole space occupied by module, not just
8917 segments.
8918 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
8919 (jump): Likewise.
8920 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
8921 function.
8922 (trampoline): New struct.
8923 (trampoline_template): New const.
8924 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
8925 * include/grub/dl.h (grub_dl): Add sz element.
8926 [__powerpc__]: Follow __ia64__.
8927 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
8928 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
8929 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
8930 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
8931
8932 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 ZFS crypto support.
8935
8936 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
8937 * grub-core/Makefile.core.def (zfscrypt): New module.
8938 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
8939 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
8940 it. All users updated.
8941 (grub_zfs_decrypt): New var.
8942 (grub_zfs_load_key): Likewise.
8943 (zio_checksum_functions): Add SHA256+MAC.
8944 (zio_checksum_verify): Handle incomplete comparison due to MAC.
8945 (zio_read): Handle encrypted blocks.
8946 (zap_verify): Remove incorrect check.
8947 (fzap_iterate): Handle non-standard fzap.
8948 (zap_iterate): Likewise.
8949 (zap_iterate_u64): New function.
8950 (dnode_get_fullpath): Load keys.
8951 * grub-core/fs/zfs/zfscrypt.c: New file.
8952 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
8953 (grub_crypto_ecb_encrypt): Make input const.
8954 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
8955 (grub_crypto_ecb_encrypt): Make input const.
8956 (GRUB_CIPHER_AES): New macro.
8957 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
8958 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
8959 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
8960 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
8961 prefix. All users updated.
8962 (grub_zfs_add_key): New proto.
8963 (grub_zfs_decrypt): Likewise.
8964 (grub_zfs_load_key): Likewise.
8965 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
8966 * util/grub-fstest.c (options): Add -K option.
8967 (argp_parser): Likewise.
8968
8969 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8970
8971 Support zle compression on ZFS.
8972
8973 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
8974 (decomp_table): Add zle.
8975 * include/grub/zfs/zio.h (zio_compress): Add zle.
8976
8977 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 Support BtrFS embedding.
8980
8981 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
8982 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
8983 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
8984 * util/grub-setup.c (setup): Use fs embedding if available.
8985 Add additional sanity check.
8986
8987 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 * util/grub-install.in: Fix condition for config_opt.
8990
8991 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 Support third redundancy strip on raidz3.
8994
8995 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
8996 Return error on singularity. All users updated.
8997 (read_device): Don't stop on 3rd failure on raidz3.
8998
8999 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 Support case-insensitive ZFS subvolumes.
9002
9003 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9004 All users updated.
9005 (zap_hash): Likewise.
9006 (name_cmp): New function.
9007 (zap_leaf_array_equal): New parameter case_insensitive.
9008 All users updated.
9009 (zap_leaf_lookup): Likewise.
9010 (fzap_lookup): Likewise.
9011 (zap_lookup): Likewise.
9012 (dnode_get_path): New parameter case_insensitive. Retrieve case
9013 sensitiviness of a volume. All users updated.
9014 (dnode_get_fullpath): New parameter case_insensitive.
9015 All users updated.
9016 (grub_zfs_dir): Set info.case_insensitiveness.
9017
9018 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 Support second redundancy strip on raidz(2,3).
9021
9022 * grub-core/fs/zfs/zfs.c (powx): New array.
9023 (powx_inv): Likewise.
9024 (poly): New const.
9025 (xor_out): New function.
9026 (gf_mul): Likewise.
9027 (recovery): Likewise.
9028 (read_device): Use second redundancy strip.
9029
9030 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9031
9032 Use a power of generator representation of GF(256) multiplication group
9033 to save space time and complexity.
9034
9035 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9036 (raid6_table2): Likewise.
9037 (powx): New array.
9038 (powx_inv): Likewise.
9039 (poly): New const.
9040 (grub_raid_block_mul): Replace with ...
9041 (grub_raid_block_mulx): ...this.
9042 (grub_raid6_init_table): Rewritten.
9043 (grub_raid6_recover): Use power of generator representation.
9044
9045 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9048 for the right device.
9049
9050 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9051
9052 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9053 expected by grub-mkimage and it's more clear since there is no implicit
9054 padding.
9055
9056 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9057
9058 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9059 disk.
9060 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9061
9062 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9063
9064 * util/grub-mkrescue.in: Fix handling xorriso option.
9065
9066 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9069 NULL.
9070
9071 2011-11-03 crocket <crockabiscuit@gmail.com>
9072
9073 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9074
9075 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9076
9077 XZ CRC64 and SHA256 support.
9078
9079 * Makefile.util.def (libgrubmods): Add crc64.c.
9080 * grub-core/Makefile.core.def (crc64): New module.
9081 * grub-core/lib/crc64.c: New file.
9082 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9083 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9084 Fix the type.
9085 (MAX_HASH_SIZE): New define.
9086 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9087 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9088 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9089 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9090 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9091 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9092 Handle non-crc32 hashes.
9093 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9094 (dec_stream_header): Handle non-crc32 hashes.
9095 (dec_stream_footer): Likewise.
9096 (dec_block_header): Likewise.
9097 (dec_main): Likewise.
9098 (xz_dec_init): Likewise.
9099 (xz_dec_reset): Likewise.
9100 (xz_dec_end): Likewise.
9101 * util/import_gcry.py: Add CRC64 line.
9102
9103 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9106 as well.
9107
9108 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 Make reiserfs label retrieval similar to other *_label functions.
9111
9112 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9113 (REISERFS_MAX_LABEL_LENGTH): Removed.
9114 (REISERFS_LABEL_OFFSET): Likewise.
9115 (grub_reiserfs_label): Rewritten.
9116
9117 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9118
9119 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9120 field.
9121
9122 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9125
9126 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9129 drive failure on both raidz and raidz2.
9130
9131 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 Fix RAIDZ(2) for >= 5 devices.
9134
9135 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9136 asize argument. All users updated.
9137
9138 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 Fix RAIDZ(2).
9141
9142 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9143 (fill_vdev_info_real): Set ashift.
9144 (read_device): Rewrite RAIDZ part based on reverse engineering.
9145
9146 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9147
9148 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9149 don't report potentially unavialiable fields in debug output.
9150 (find_path): Fix double-free and memory leak.
9151
9152 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 Read label on UFS1.
9155
9156 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9157 (grub_ufs_fs): Always set .label.
9158
9159 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 Use shifts in UFS.
9162
9163 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9164 (grub_ufs_data): New field log2_blksz.
9165 (grub_ufs_read_file): Use shifts.
9166 (grub_ufs_mount): Check block size and logarithm it.
9167
9168 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9171 long symlinks.
9172
9173 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 Handle symlinks and long names on tar and cpio.
9176
9177 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9178 (ATTR_FILE): Likewise.
9179 (ATTR_DIR): Likewise.
9180 (ATTR_LNK): Likewise.
9181 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9182 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9183 L and K entries.
9184 (grub_cpio_mount): Zero-fill data.
9185 (handle_symlink): New function.
9186 (grub_cpio_dir): Handle symlinks.
9187 (grub_cpio_open): Likewise.
9188 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9189
9190 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9191
9192 Fix iso9660 filename limitations and fix memory leaks.
9193
9194 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9195 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9196
9197 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 Fix JFS file name length limitations.
9200
9201 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9202 (grub_jfs_diropen): Fix maximum filename length.
9203 (grub_jfs_getent): Fix filename length.
9204 (grub_jfs_lookup_symlink): Fix size checks.
9205
9206 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9207
9208 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9209 string.
9210
9211 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 Leverage BFS implementation to read AFS.
9214
9215 * Makefile.util.def (libgrubmods): Add afs.c.
9216 * grub-core/Makefile.core.def (afs): New module
9217 * grub-core/fs/afs.c: New file.
9218 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9219
9220 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9223
9224 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * grub-core/fs/bfs.c: Run indent.
9227
9228 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9229
9230 BFS implementation based on the specification.
9231
9232 * grub-core/fs/bfs.c: New file.
9233 * Makefile.util.def (libgrubmods): Add bfs.c.
9234 * grub-core/Makefile.core.def (bfs): New module.
9235
9236 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9237
9238 * util/grub-fstest.c (cmd_cp): Clarify error message.
9239 (cmd_cmp): Likewise.
9240
9241 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9242
9243 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9244 and befs_be.
9245
9246 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 Remove afs and befs because of copyright problem.
9249
9250 * grub-core/fs/afs.c: Removed.
9251 * grub-core/fs/afs_be.c: Removed.
9252 * grub-core/fs/befs.c: Removed.
9253 * grub-core/fs/befs_be.c: Removed.
9254 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9255 * grub-core/Makefile.core.def (afs): Removed.
9256 (afs_be): Likewise.
9257 (befs): Likewise.
9258 (befs_be): Likewise.
9259
9260 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9261
9262 Prefer rockridge over Joliet.
9263
9264 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9265 to ...
9266 (set_rockridge): ... here.
9267 (grub_iso9660_mount): Check rockridge on the primary label when
9268 discovering. Ignore Joliet if Rockridge is present.
9269
9270 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 Use shifts in nilfs2.
9273
9274 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9275 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9276 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9277 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9278 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9279 (grub_nilfs2_entries_per_block): Replaced with ...
9280 (grub_nilfs2_log_entries_per_block_log): ... this.
9281 (grub_nilfs2_blocks_per_group): Replaced with ...
9282 (grub_nilfs2_blocks_per_group_log): ... this.
9283 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9284 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9285 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9286 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9287 (grub_nilfs2_palloc_entry_offset): Replaced ...
9288 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9289 (grub_nilfs2_dat_translate): Use shifts.
9290 (grub_nilfs2_read_inode): Likewise.
9291 (GRUB_MOD_INIT): Ensure that logs are correct.
9292
9293 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9294
9295 Use shifts in minix filesystem.
9296
9297 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9298 (GRUB_MINIX_ZONE2SECT): Likewise.
9299 (grub_minix_data): Replace block_size with log_block_size.
9300 (grub_minix_read_file): Use shifts.
9301 (grub_minix_mount): Check block size and take a logarithm.
9302
9303 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 Use shifts in squash4.
9306
9307 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9308 (squash_mount): Check block size and take logarithm.
9309 (direct_read): Use shifts.
9310
9311 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9312
9313 Correct befs block counting logic.
9314
9315 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9316 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9317 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9318 (grub_afs_read_inode): Use block_shift.
9319 (RANGE_SHIFT): New definition.
9320 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9321 unexpected conditions, use shifts and appropriate types.
9322 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9323
9324 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * grub-core/disk/raid.c (scan_devices): Check partition.
9327 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9328
9329 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9330
9331 Support BFS (befs) UUID.
9332
9333 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9334 (grub_afs_small_data_element_header): New struct.
9335 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9336 (grub_afs_read_attribute) [MODE_BFS]: New function.
9337 (grub_afs_iterate_dir): Allocate for complete inode.
9338 (grub_afs_mount): Likewise.
9339 (grub_afs_uuid) [MODE_BFS]: New function.
9340 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9341
9342 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9345 (zfs_unmount): Fix memory leak.
9346
9347 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 Support NTFS reparse points.
9350
9351 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9352 (symlink_descriptor): New struct.
9353 (grub_ntfs_read_symlink): New function.
9354 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9355 (grub_ntfs_open): Likewise.
9356
9357 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9358
9359 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9360
9361 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 fstest xnu_uuid subcommand.
9364
9365 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9366 grub-core/commands/xnu_uuid.c.
9367 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9368 (fstest): Handle xnu_uuid.
9369 (options): Document xnu_uuid.
9370 (argp_parser): Parse xnu_uuid.
9371
9372 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9373
9374 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9375 -l argument. Add newline at the end if printing.
9376 (GRUB_MOD_INIT): Document -l.
9377
9378 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9379
9380 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9381
9382 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9383
9384 ZFS multi-device and version 33 support.
9385
9386 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9387 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9388 (grub_zfs_data): Add multidev-ice-related fields.
9389 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9390 (dva_get_offset): Make dva const.
9391 (zfs_fetch_nvlist): New function.
9392 (fill_vdev_info_real): Likewise.
9393 (fill_vdev_info): Likewise.
9394 (check_pool_label): Likewise.
9395 (scan_disk): Likewise.
9396 (scan_devices): Likewise.
9397 (read_device): Likewise.
9398 (read_dva): Likewise.
9399 (zio_read_gang): Use read_dva.
9400 (zio_read_data): Likewise.
9401 (zap_leaf_lookup): Add missing endian conversion.
9402 (zap_verify): Add missing endian conversion. All users updated.
9403 (fzap_lookup): Likewise.
9404 (fzap_iterate): Likewise.
9405 (dnode_get_path): Handle SA bonus.
9406 (nvlist_find_value): Make input const. All users updated.
9407 (unmount_device): New function.
9408 (zfs_unmount): Use unmount_device.
9409 (zfs_mount): Use scan_disk.
9410 (zfs_mtime): New function.
9411 (grub_zfs_open): Handle system attributes.
9412 (fill_fs_info): Likewise.
9413 (grub_zfs_dir): Likewise.
9414 (grub_zfs_fs): Add mtime.
9415 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9416 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9417 (SA_MTIME_OFFSET): Likewise.
9418 (SA_SYMLINK_OFFSET): Likewise.
9419 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9420 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9421 (fstest): Support zfsinfo.
9422 (argp_parser): Likewise.
9423
9424 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9425
9426 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9427 error.
9428
9429 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 ZFS fixes.
9432
9433 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9434 sharing the same block. Iterate over correct number of indices.
9435 (dnode_get_path): Handle symlinks correctly.
9436
9437 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9440
9441 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 Read label on HFS+.
9444
9445 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9446 (grub_hfsplus_btree_search): Fix types.
9447 (grub_hfsplus_label): Implement.
9448
9449 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9452
9453 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9456
9457 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9458
9459 Fix symlink handling on iso9660.
9460
9461 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9462 All users updated.
9463 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9464 (grub_iso9660_read_symlink): Moved most of code ...
9465 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9466
9467 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9470 Use union to avoid breaking strict-aliasing rules.
9471
9472 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9473
9474 Support multi-extent iso files.
9475
9476 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9477 Add node.
9478 (grub_fshelp_node): Revamp. All users updated.
9479 (FLAG_*): New enum.
9480 (read_node): New function.
9481 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9482 All users updated.
9483 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9484 (get_node_size): New function.
9485 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9486 entries.
9487 Fix memory leak on . and ..
9488 (grub_iso9660_read): Use read_node.
9489 (grub_iso9660_close): Free node.
9490
9491 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9492
9493 Fix tar 4G limit and handle paths containing dot.
9494
9495 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9496 (canonicalize): New function.
9497 (grub_cpio_find_file): Use canonicalize. Store offs in
9498 grub_disk_addr_t.
9499 (grub_cpio_dir): Use grub_disk_addr_t.
9500 (grub_cpio_open): Likewise.
9501
9502 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9505
9506 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9507 unused flags.
9508 (grub_squash_inode): Add long_file and block_size.
9509 (grub_squash_cache_inode): New struct.
9510 (grub_squash_dirent): Make types into enum.
9511 (SQUASH_TYPE_LONG_REGULAR): New type.
9512 (grub_squash_frag_desc): Add field size.
9513 (SQUASH_BLOCK_FLAGS): New enum.
9514 (grub_squash_data): Use grub_squash_cache_inode.
9515 (grub_fshelp_node): Make ino_chunk 64-bit.
9516 (read_chunk): Minor argument change. All users updated.
9517 (squash_mount): Use correct le_to_cpu.
9518 (grub_squash_open): Handle LONG_REGULAR.
9519 (direct_read): New function.
9520 (grub_squash_read_data): Handle blocks correctly.
9521
9522 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9525
9526 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9529
9530 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 Fix 2G limit on ZFS.
9533
9534 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9535 types.
9536 (uberblock_verify): Likewise.
9537 (dmu_read): Likewise.
9538 (grub_zfs_read): Likewise. Remove invalid cast.
9539
9540 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9543 (grub_jfs_blkno): Fix incorrect shift.
9544 (grub_jfs_read_file): Use more appropriate types.
9545
9546 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 Support triple indirect on minix2 and minix3.
9549
9550 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9551 Declare triple_indir_zone.
9552 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9553 indirect.
9554
9555 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 Minix FS fixes.
9558
9559 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9560 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9561 Rename ctime to mtime. All users updated.
9562 (grub_minix_get_file_block): Fix types and double indirect computations.
9563
9564 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9567 if no label is found.
9568 (grub_fat_iterate_dir): Fix file size type.
9569 (grub_fat_iterate_dir): Likewise.
9570
9571 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9572
9573 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9574 save some space.
9575 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9576 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9577
9578 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9579
9580 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9581
9582 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * util/import_gcry.py: Accept space between # and include.
9585
9586 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9589
9590 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9593
9594 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9595 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9596 yylex_strncpy.
9597 * grub-core/script/yylex.l: Add fine-grained #pragma.
9598
9599 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9602 New inline function.
9603 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9604 Likewise.
9605 (memset) [GRUB_UTIL]: Likewise.
9606 (memcmp) [GRUB_UTIL]: Likewise.
9607
9608 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9609
9610 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9611 inline function rather than a define.
9612
9613 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * util/grub-setup.c: Add missing include.
9616
9617 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * util/ieee1275/grub-ofpathname.c: Add missing include.
9620
9621 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9624 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9625 Likewise.
9626
9627 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9628
9629 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
9630 grub_memcmp usage.
9631
9632 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9633
9634 * util/grub-install.in: Add datarootdir as per automake manual
9635 suggestion.
9636 * util/grub-mknetdir.in: Likewise.
9637
9638 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
9641 suggestion.
9642 * util/grub.d/10_kfreebsd.in: Likewise.
9643 * util/grub.d/10_linux.in: Likewise.
9644 * util/grub.d/10_netbsd.in: Likewise.
9645 * util/grub.d/10_windows.in: Likewise.
9646 * util/grub.d/20_linux_xen.in: Likewise.
9647
9648 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 Remove redundant grub_kernel_image_size.
9651
9652 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
9653 _edata and _start.
9654 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
9655 the small code. It moves it only by few bytes but simplifies the code.
9656 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
9657 _start.
9658 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
9659 (grub_kernel_image_size): Removed.
9660 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
9661 (grub_kernel_image_size): Removed.
9662 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
9663 compiled with Apple toolchain.
9664 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
9665 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
9666 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
9667 (grub_total_module_size): Likewise.
9668 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
9669 Removed.
9670 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
9671 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
9672 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9673 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
9674 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
9675 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
9676 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
9677 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
9678 Removed.
9679 (grub_total_module_size): Removed.
9680 * util/grub-mkimage.c (image_target_desc): Remove image_size.
9681 (image_targets): Likewise.
9682 Set .compressed_size to no field on sparc.
9683 (generate_image): Remove kernel_image_size handling.
9684
9685 2011-10-19 Szymon Janc <szymon@janc.net.pl>
9686
9687 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
9688 NULL pointer dereference.
9689
9690 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
9693 done with a dedicated section.
9694
9695 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
9696 Ensure the correct position of boot_path.
9697 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
9698 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
9699 other fields.
9700 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
9701 * include/grub/boot.h: Removed. All references removed.
9702 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9703 Removed.
9704 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
9705
9706 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9707
9708 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
9709 name.
9710
9711 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
9714
9715 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9718 Don't add the bogus brackets.
9719
9720 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9721
9722 ExFAT support.
9723
9724 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
9725 * grub-core/Makefile.core.def (exfat): New module.
9726 * grub-core/fs/exfat.c: New file.
9727 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
9728 (GRUB_FAT_ATTR_*): Make into an enum.
9729 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
9730 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
9731 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
9732 (GRUB_FAT_MAXFILE): Removed.
9733 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
9734 (grub_current_fat_bpb_t): New type.
9735 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
9736 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
9737 (grub_fat_dir_node_t): New type.
9738 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
9739 (fat_log2) [MODE_EXFAT]: Removed.
9740 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
9741 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
9742 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
9743 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
9744 (grub_fat_label) [MODE_EXFAT]: New function.
9745 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
9746 reserved_first_sector to 0.
9747
9748 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 Move grub_reboot out of the kernel.
9751
9752 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
9753 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
9754 * grub-core/lib/efi/reboot.c: ... here.
9755 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
9756 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
9757 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
9758 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
9759 * grub-core/lib/i386/reboot_trampoline.S: ... here.
9760 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
9761 * grub-core/lib/ieee1275/reboot.c: ... here.
9762 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
9763 * grub-core/lib/mips/arc/reboot.c: ... here.
9764 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
9765 * grub-core/lib/mips/loongson/reboot.c: ...here.
9766 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
9767 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
9768 * include/grub/emu/misc.h (grub_reboot): New function declaration.
9769 * include/grub/i386/reboot.h: New file.
9770 * include/grub/mips/loongson/ec.h: Fix includes.
9771 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
9772 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
9773 * grub-core/lib/i386/reboot.c: New file.
9774
9775 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
9776
9777 Make grub_prefix into module to fix the arbitrary limit and save
9778 some space.
9779
9780 * grub-core/kern/emu/main.c (grub_prefix): Removed.
9781 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
9782 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
9783 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
9784 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
9785 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
9786 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
9787 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
9788 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9789 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
9790 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
9791 * include/grub/ia64/efi/kernel.h: Removed.
9792 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
9793 (grub_prefix): Removed.
9794 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
9795 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
9796 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
9797 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
9798 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
9799 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
9800 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
9801 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
9802 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
9803 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
9804 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
9805 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
9806 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
9807 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
9808 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
9809 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
9810 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
9811 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
9812 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
9813 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
9814 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
9815 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
9816 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
9817 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
9818 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
9819 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
9820 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
9821 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
9822 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
9823 from module.
9824 * util/grub-mkimage.c (image_target_desc): Removed prefix and
9825 prefix_end.
9826 (image_targets): Likewise.
9827 (generate_image): Put prefix as a module.
9828
9829 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9830
9831 Replace grub_module_iterate with FOR_MODULES.
9832
9833 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
9834 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
9835 (grub_efi_modules_addr): ...this.
9836 * grub-core/kern/efi/init.c (grub_modbase): New variable.
9837 (grub_efi_init): Set grub_modbase.
9838 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
9839 (grub_modbase): New variable.
9840 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
9841 (grub_modbase): New variable.
9842 (grub_machine_init): Set grub_modbase.
9843 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
9844 (grub_modbase): New variable.
9845 (grub_machine_init): Set grub_modbase.
9846 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
9847 (grub_modbase): New variable.
9848 (grub_machine_init): Set grub_modbase.
9849 * grub-core/kern/main.c (grub_module_iterate): Remove.
9850 (grub_modules_get_end): Use grub_modbase.
9851 (grub_load_modules): Use FOR_MODULES.
9852 (grub_load_config): Likewise.
9853 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
9854 (grub_modbase): New variable.
9855 (grub_machine_init): Set grub_modbase.
9856 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
9857 (grub_modbase): New variable.
9858 (grub_machine_init): Set grub_modbase.
9859 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
9860 Removed.
9861 (grub_modbase): New variable.
9862 (grub_machine_init): Set grub_modbase.
9863 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
9864 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
9865 (grub_module_iterate): Likewise.
9866 (grub_modbase): New variable declaration.
9867 (FOR_MODULES): New macro.
9868
9869 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * configure.ac: Check for __ctzdi2 and __ctzsi2.
9872 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
9873
9874 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 Fix few obvious type discrepancies.
9877
9878 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
9879 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
9880 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
9881 variable.
9882 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
9883 and connected types.
9884 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
9885 offset.
9886 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
9887 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
9888 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
9889 and connected types.
9890
9891 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 Fix python 3.x incompatibilities.
9894
9895 * gentpl.py: Put brackets around print strings.
9896 * util/import_gcry.py: Open explicitly as utf-8.
9897 Use in instead of has_key.
9898
9899 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9900
9901 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
9902 (GRUB_XFS_INO_AGBITS): Make into inline function.
9903 (GRUB_XFS_INO_INOINAG): Likewise.
9904 (GRUB_XFS_INO_AG): Likewise.
9905 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9906 (GRUB_XFS_EXTENT_OFFSET): Likewise.
9907 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9908 (GRUB_XFS_EXTENT_SIZE): Likewise.
9909 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
9910 (GRUB_XFS_NEXT_DIRENT): Likewise.
9911 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
9912 (grub_xfs_read_file): Fix offset type.
9913
9914 2011-10-15 Robert Millan <rmh@gnu.org>
9915
9916 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
9917
9918 2011-10-15 Robert Millan <rmh@gnu.org>
9919
9920 Fix build problem on FreeBSD and GNU/kFreeBSD.
9921
9922 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
9923
9924 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
9927
9928 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
9929 types.
9930 (grub_hfsplus_btree_recoffset): Likewise.
9931 (grub_hfsplus_btree_recptr): Likewise.
9932 (grub_hfsplus_find_block): Likewise.
9933 (grub_hfsplus_btree_search): Likewise.
9934 (grub_hfsplus_read_block): Likewise.
9935 (grub_hfsplus_read_file): Likewise.
9936 (grub_hfsplus_mount): Likewise.
9937 (grub_hfsplus_btree_iterate_node): Likewise.
9938 (grub_hfsplus_btree_search): Likewise.
9939 (grub_hfsplus_iterate_dir): Likewise.
9940 (grub_hfsplus_read): A small code simplification.
9941
9942 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9943
9944 * grub-core/kern/emu/hostdisk.c
9945 (convert_system_partition_to_system_disk): Don't assume that children
9946 of mapper nodes are mapper nodes.
9947
9948 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
9951 * include/grub/misc.h (grub_isxdigit): New function.
9952 * grub-core/video/colors.c (my_isxdigit): Removed. All users
9953 switched to grub_isxdigit.
9954 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
9955 number starting with a letter.
9956
9957 2011-10-09 Robert Millan <rmh@gnu.org>
9958
9959 LVM support for FreeBSD and GNU/kFreeBSD.
9960
9961 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
9962 GNU/kFreeBSD.
9963 (LVM_DEV_MAPPER_STRING): Move from here ...
9964 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
9965 * util/getroot.c: Include `<grub/util/lvm.h>'.
9966 (grub_util_get_dev_abstraction): Enable
9967 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
9968 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
9969 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
9970 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
9971 support it.
9972 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
9973 GNU/kFreeBSD.
9974 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
9975 when LVM abstraction is required for ${GRUB_DEVICE}.
9976
9977 2011-10-06 Szymon Janc <szymon@janc.net.pl>
9978
9979 Add support for LZO compression in GRUB:
9980 - import of minilzo library,
9981 - LZO decompression for btrfs,
9982 - lzop files decompression.
9983
9984 * grub-core/io/lzopio.c: New file.
9985 * grub-core/lib/adler32.c: Likewise.
9986 * grub-core/lib/minilzo/lzoconf.h: Likewise.
9987 * grub-core/lib/minilzo/lzodefs.h: Likewise.
9988 * grub-core/lib/minilzo/minilzo.c: Likewise.
9989 * grub-core/lib/minilzo/minilzo.h: Likewise.
9990 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
9991 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
9992 grub-core/lib/minilzo/minilzo.c to common.
9993 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
9994 cflags in cppflags.
9995 * grub-core/Makefile.core.def (btrfs): Likewise.
9996 * grub-core/Makefile.core.def (lzopio): New module.
9997 (adler32): Likewise.
9998 * grub-core/fs/btrfs.c: Include minilzo.h.
9999 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10000 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10001 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10002 (grub_btrfs_lzo_decompress): New function.
10003 (grub_btrfs_extent_read): Add support for LZO compression type.
10004 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10005 (GRUB_USHRT_MAX): Likewise.
10006 (GRUB_UINT_MAX): Likewise.
10007 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10008 (UINT_MAX): Likewise.
10009 (CHAR_BIT): Likewise.
10010 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10011 grub-core/lib/posix_wrap/limits.h
10012 (UCHAR_MAX): Likewise.
10013 * include/grub/file.h (grub_file_filter_id): New compression filter
10014 GRUB_FILE_FILTER_LZOPIO.
10015 * include/grub/file.h (grub_file_filter_id): Set
10016 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10017 * include/grub/types.h (grub_get_unaligned16): New function.
10018 (grub_get_unaligned32): Likewise.
10019 (grub_get_unaligned64): Likewise.
10020 * util/import_gcry.py (cryptolist): Add adler32.
10021
10022 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10023
10024 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10025 in perspective decreases the complexity of build system and fixes
10026 compilation right now.
10027
10028 2011-10-01 Ales Nesrsta <starous@volny.cz>
10029
10030 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10031 (fixed problem related to using UHCI with coreboot).
10032
10033 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10034
10035 * gentpl.py: Use Autogen macros so that the output template file
10036 (Makefile.tpl) size is reduced.
10037
10038 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10039
10040 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10041 extra_dist.
10042
10043 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10044
10045 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10046 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10047
10048 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10049
10050 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10051 _fullpath.
10052
10053 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10054
10055 Remove extra declaration of sleep for mingw32.
10056
10057 * util/misc.c (sleep) [__MINGW32__]: Removed.
10058 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10059
10060 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10061
10062 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10063 type and packname.
10064 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10065 Resurrected.
10066 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10067 (grub_netbsd_btinfo_bootwedge): New struct.
10068 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10069 New function.
10070 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10071
10072 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10073
10074 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10075 loader.
10076
10077 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10078
10079 Fix incorrect identifiers in bash-completion.
10080
10081 * util/bash-completion.d/grub-completion.bash.in
10082 (_grub_mkpasswd-pbkdf2): Rename to ...
10083 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10084 (_grub_script-check): Rename to ...
10085 (_grub_script_check): ... this. All users updated.
10086
10087 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10090 Return 0 if disk isn't biosdisk.
10091
10092 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10093
10094 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10095 on NetBSD.
10096 * Makefile.util.def (grub-fstest): Likewise.
10097
10098 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10099
10100 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10101 Get sector size from disk label.
10102
10103 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10104
10105 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10106 */README* as well as README*.
10107 Reported by: Axel Beckert.
10108
10109 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10110
10111 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10112 case of less than 256 MiB of RAM.
10113
10114 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 * grub-core/commands/wildcard.c (make_regex): Handle @.
10117
10118 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10119
10120 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10121
10122 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10123
10124 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10125 AC_LANG_CONFTEST macros.
10126
10127 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10128
10129 Add grub-fstest option to uncompress data for commands.
10130
10131 * util/grub-fstest.c (uncompress): New var.
10132 (options): New option -u.
10133
10134 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10135
10136 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10137 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10138
10139 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10140
10141 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10142 file type was not recognized correctly (not gzip or corrupted).
10143
10144 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10145
10146 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10147 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10148
10149 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10150
10151 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10152 loongson.
10153 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10154 video_radeon_fuloong2e.
10155 * grub-core/video/radeon_fuloong2e.c: New file.
10156 * include/grub/video.h (grub_video_id_t): Add new ID
10157 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10158
10159 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10162 define.
10163 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10164 that PRID matches the detected subplatform and reset the subplatform
10165 if it doesn't.
10166
10167 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10168
10169 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10170
10171 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10172
10173 Fix PCI iterating on functions >= 4.
10174
10175 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10176 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10177 Removed.
10178 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10179 (grub_pci_read): Fix bitmask.
10180 (grub_pci_read_word): Likewise.
10181 (grub_pci_read_byte): Likewise.
10182 (grub_pci_write): Likewise.
10183 (grub_pci_write_word): Likewise.
10184 (grub_pci_write_byte): Likewise.
10185
10186 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10187
10188 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10189 can still be specified in TARGET_CFLAGS)
10190
10191 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10194
10195 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10196 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10197 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10198 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10199 (FULOONG): Rename to ...
10200 (FULOONG2F): ... this. All users updated.
10201 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10202 (machtype_fuloong2f_str): ... this.
10203 (machtype_fuloong2e_str): New string.
10204 Check for machtype_fuloong2e_str.
10205 * grub-core/loader/mips/linux.c (loongson_machtypes)
10206 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10207 * grub-core/term/serial.c (loongson_defserial)
10208 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10209 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10210 loongson_defserial.
10211 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10212 Rename to ...
10213 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10214 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10215 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10216 to IMAGE_FULOONG2F_FLASH. All users updated.
10217 (image_targets): Rename images.
10218 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10219
10220 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10221
10222 Make enable of disk cache statistics code configurable.
10223
10224 * configure.ac: --enable-cache-stats added.
10225 * config.h.in (DISK_CACHE_STATS): New define.
10226 * grub-core/Makefile.core.def (cacheinfo): New command.
10227 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10228 * grub-core/commands/cacheinfo.c: New file.
10229 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10230 moved to cacheinfo.c.
10231 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10232 debug code.
10233 * include/grub/disk.h: Likewise.
10234
10235 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10236
10237 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10238 * grub-core/Makefile.am: Likewise.
10239
10240 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10243 non-zero pull.
10244
10245 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10248 All users updated.
10249 (grub_jfs_lookup_symlink): Use correct starting inode.
10250
10251 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 * util/grub-setup.c (main): Add missing gcry initialisation.
10254
10255 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10256
10257 Don't accept text modes on EFI when booting Linux.
10258
10259 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10260 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10261
10262 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10263 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10264
10265 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10266 use of "/path/.." as in grub-install for EFI as well as handling
10267 symlinks correctly.
10268 Fixes Debian bug #637768.
10269
10270 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10271
10272 * util/grub-probe.c: Remove duplicate #include.
10273
10274 2011-08-10 Robert Millan <rmh@gnu.org>
10275
10276 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10277
10278 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10279 function.
10280 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10281 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10282
10283 2011-08-03 Robert Millan <rmh@gnu.org>
10284
10285 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10286 la_array as packed.
10287 Reported by: Zachary Bedell
10288
10289 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10290
10291 * configure.ac: The Loongson port requires grub-mkfont due to its
10292 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10293 be built.
10294
10295 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10296
10297 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10298 processing arguments (otherwise help2man fails when GRUB has not yet
10299 been installed).
10300
10301 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 New script grub-mkstandalone.
10304
10305 * Makefile.util.def (grub-mkstandalone): New script.
10306 * docs/man/grub-mkstandalone.h2m: New file.
10307 * util/grub-mkstandalone.in: Likewise.
10308
10309 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10310
10311 Support ATA disks with 4K sectors.
10312
10313 * include/grub/ata.h (grub_ata): New member log_sector_size.
10314 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10315 (grub_ata_identify): Read sector size.
10316 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10317
10318 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10319
10320 * util/grub-install.in: Don't use uhci outside of x86.
10321
10322 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10323
10324 * util/grub-mkrescue.in: Add missing quotes.
10325
10326 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10327
10328 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10329 dereference.
10330
10331 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10334
10335 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * include/grub/video.h: add missing EXPORT_FUND on
10338 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10339
10340 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10341
10342 * include/grub/mips/kernel.h: Fix define conflict.
10343
10344 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10347 all four ways.
10348
10349 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10350
10351 Preferred resolution detection for VBE.
10352
10353 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10354 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10355 the Flat Panel extension, in line with the X.org VESA driver.
10356 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10357 New function.
10358 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10359 (grub_vbe_bios_read_edid): Likewise.
10360 (grub_vbe_get_preferred_mode): Likewise.
10361 (grub_video_vbe_setup): When the mode is "auto", try to get the
10362 preferred mode from VBE, and use the largest mode that is no larger
10363 than the preferred mode (some BIOSes expose a preferred mode that is
10364 not in their mode list!). If this fails, fall back to 640x480 as a
10365 safe conservative choice.
10366 (grub_video_vbe_get_edid): New function.
10367 (grub_video_vbe_adapter): Add get_edid.
10368 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10369 (struct grub_video_adapter): Add get_edid.
10370 (grub_video_edid_checksum): Add prototype.
10371 (grub_video_edid_preferred_mode): Likewise.
10372 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10373 structure.
10374
10375 * grub-core/commands/videoinfo.c (print_edid): New function.
10376 (grub_cmd_videoinfo): Print EDID if available.
10377
10378 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10379 is more appropriate on a wider range of platforms than 640x480.
10380 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10381 documentation.
10382
10383 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10384
10385 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10386
10387 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10388
10389 * po/POTFILES.in: Regenerate.
10390
10391 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10394 incorrect memory usage.
10395
10396 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * util/grub-install.in: Source grub-mkconfig_lib.
10399
10400 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 Remove getroot.c from core on emu platform.
10403
10404 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10405 kern/emu/raid.c.
10406 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10407 useless.
10408 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10409 * util/getroot.c (get_win32_path): ... here.
10410 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10411 * util/getroot.c (fini_libzfs): ... here.
10412 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10413 * util/getroot.c (grub_get_libzfs_handle): ... here.
10414 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10415 Moved from here...
10416 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10417 * grub-core/kern/emu/misc.c
10418 (grub_make_system_path_relative_to_its_root): Moved from here...
10419 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10420 * grub-core/kern/emu/getroot.c: Moved from here ...
10421 * util/getroot.c: ... here. All users updated.
10422 * grub-core/kern/emu/raid.c: Moved from here ...
10423 * util/raid.c: ... here. All users updated.
10424
10425 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * po/POTFILES.in: Regenerate.
10428
10429 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 Fix compilation on GNU/Linux.
10432
10433 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10434 Disable geli.
10435 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10436 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10437 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10438
10439 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10440 2011-07-07 Michael Gorven <michael@gorven.za.net>
10441 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10442
10443 LUKS and GELI support.
10444
10445 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10446 grub-core/disk/luks.c, grub-core/disk/geli.c,
10447 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10448 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10449 grub-core/lib/arg.c.
10450 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10451 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10452 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10453 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10454 (grub-bin2h): Add libgcry.a.
10455 (grub-mkimage): Likewise.
10456 (grub-mkrelpath): Likewise.
10457 (grub-script-check): Likewise.
10458 (grub-editenv): Likewise.
10459 (grub-mkpasswd-pbkdf2): Likewise.
10460 (grub-pe2elf): Likewise.
10461 (grub-fstest): Likewise.
10462 (grub-mkfont): Likewise.
10463 (grub-mkdevicemap): Likewise.
10464 (grub-probe): Likewise.
10465 (grub-ofpath): Likewise.
10466 (grub-mklayout): Likewise.
10467 (example_unit_test): Likewise.
10468 (grub-menulst2cfg): Likewise.
10469 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10470 * grub-core/Makefile.core.def (cryptodisk): New module.
10471 (luks): Likewise.
10472 (geli): Likewise.
10473 * grub-core/disk/AFSplitter.c: New file.
10474 * grub-core/disk/cryptodisk.c: Likewise.
10475 * grub-core/disk/geli.c: Likewise.
10476 * grub-core/disk/luks.c: Likewise.
10477 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10478 grub_util_is_lvm.
10479 (grub_util_get_dm_abstraction): New function.
10480 (grub_util_follow_gpart_up): Likewise.
10481 (grub_util_get_geom_abstraction): Likewise.
10482 (grub_util_get_dev_abstraction): Use new functions.
10483 (grub_util_pull_device): Pull GELI and LUKS.
10484 (grub_util_get_grub_dev): Handle LUKS and GELI.
10485 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10486 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10487 (follow_geom_up): Removed.
10488 (grub_util_fd_seek): New function.
10489 (open_device): Use grub_util_fd_seek.
10490 (nread): Rename to ..
10491 (grub_util_fd_read): ... this. All users updated.
10492 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10493 (grub_crypto_cbc_decrypt): Likewise.
10494 (grub_crypto_hmac_write): Likewise.
10495 (grub_crypto_hmac_buffer): Likewise.
10496 (grub_password_get): Extend to util.
10497 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10498 New member modname.
10499 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10500 * include/grub/cryptodisk.h: New file.
10501 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10502 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10503 LUKS and GELI.
10504 (grub_util_follow_gpart_up): New proto.
10505 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10506 (grub_util_fd_read): Likewise.
10507 (grub_cryptodisk_cheat_mount): Likewise.
10508 (grub_util_cryptodisk_print_uuid): Likewise.
10509 (grub_util_get_fd_sectors): Likewise.
10510 * util/grub-fstest.c (mount_crypt): New var.
10511 (fstest): Mount crypto if requested.
10512 (options): New option -C.
10513 (argp_parser): Parse -C.
10514 (main): Init and fini gcry.
10515 * util/grub-install.in: Support cryptodisk install.
10516 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10517 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10518 cryptodisk.
10519 (prepare_grub_to_access_device): Likewise.
10520 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10521 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10522 (probe_cryptodisk_uuid): New function.
10523 (probe_abstraction): Likewise.
10524 (probe): Use new functions.
10525 * util/import_gcry.py: Create Makefile.utilgcry.def.
10526 Add modname member.
10527
10528 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10529
10530 Lazy device scanning.
10531
10532 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10533 (grub-setup): Remove util/raid.c.
10534 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10535 * grub-core/disk/lvm.c (scan_depth): New variable.
10536 (grub_lvm_iterate): Rescan if necessary.
10537 (find_lv): New function based on grub_lvm_open.
10538 (grub_lvm_open): Use find_lv. Rescan on error.
10539 (is_node_readable): New function.
10540 (is_lv_readable): Likewise.
10541 (grub_lvm_scan_device): Skip already found disks.
10542 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10543 Stop if searched device is found and readable.
10544 * grub-core/disk/raid.c (inscnt): New variable.
10545 (scan_depth): Likewise.
10546 (scan_devices): New function based on grub_raid_register. Abort if
10547 looked for device is found.
10548 (grub_raid_iterate): Rescan if needed.
10549 (find_array): NEw function based on -grub_raid_open.
10550 (grub_raid_open): Use find_array and rescan.
10551 (insert_array): Set became_readable_at.
10552 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10553 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10554 New function.
10555 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10556 (grub_util_pull_device): New function.
10557 (grub_util_get_grub_dev): Call grub_util_pull_device.
10558 * util/raid.c: Moved to ..
10559 * grub-core/kern/emu/raid.c: ... here.
10560 (grub_util_raid_getmembers): New parameter "bootable".
10561 All users updated. Support 1.x.
10562 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10563 All users updated.
10564 * include/grub/disk.h (grub_disk_pull_t): New enum.
10565 (grub_disk_dev): Change iterate prototype.
10566 All users updated.
10567 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10568 New proto.
10569 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10570 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10571 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10572 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10573 All users updated.
10574 * include/grub/util/raid.h: Removed.
10575
10576 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10577
10578 * po/POTFILES.in: Regenerate.
10579
10580 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10581
10582 Unify sparc init with other ieee1275.
10583
10584 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10585 instead of kern/sparc64/ieee1275/init.c.
10586 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10587 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10588 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10589 grub/machine/kernel.h.
10590 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10591 (grub_claim_heap) [__sparc__]: Use sparc version.
10592 (grub_machine_init): Moved args parsing to
10593 (grub_parse_cmdline): ...this.
10594 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10595 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10596 New definition.
10597 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10598
10599 Move BOOTP to separate file.
10600
10601 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10602 * grub-core/net/net.c: Move all BOOTP functions to
10603 * grub-core/net/bootp.c: ... here.
10604
10605 Use frame interface on PXE.
10606
10607 * grub-core/Makefile.core.def (pxecmd): Removed.
10608 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10609 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10610 * grub-core/i386/pc/pxe.c: Moved from here ...
10611 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10612 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10613 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10614
10615 EFI network support.
10616
10617 * grub-core/Makefile.core.def (efinet): New module.
10618 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10619 here...
10620 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10621 All users updated.
10622 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10623 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10624 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10625 * grub-core/net/drivers/efi/efinet.c: New file.
10626 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
10627 (grub_efi_net_config): New extern var.
10628
10629 Various cleanups and bugfixes.
10630
10631 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
10632 error.
10633 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
10634 disk declared as partition.
10635 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
10636 leak on failure.
10637 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
10638 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
10639 (grub_debug_zalloc): Likewise.
10640 (grub_debug_realloc): Likewise.
10641 (grub_debug_memalign): Likewise.
10642 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
10643 Check that target is IPv4.
10644 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
10645 local-mac-address as fallback.
10646 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
10647 memory leak.
10648 * grub-core/net/ip.c (ipchksum): Rename to ...
10649 (grub_net_ip_chksum): ... this. All users updated.
10650 (grub_net_recv_ip_packets): Special handling for DHCP.
10651 * util/grub-mkimage.c (generate_image): Zero-out aout header.
10652
10653 Unify prefix handling
10654
10655 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
10656 (grub_machine_get_bootlocation): ... this.
10657 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
10658 (grub_machine_get_bootlocation): ... this.
10659 (grub_prefix): New variable.
10660 (prefix): Removed.
10661 (root_dev): New variable.
10662 (dir): Likewise.
10663 (main): Use new variables.
10664 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
10665 Revamped into ...
10666 (grub_machine_get_bootlocation): ... this.
10667 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
10668 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
10669 (grub_machine_get_bootlocation): ... this.
10670 (grub_machine_set_prefix): Removed.
10671 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
10672 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
10673 Revamped into ...
10674 (grub_machine_get_bootlocation): ... this.
10675 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
10676 (grub_set_prefix_and_root): ... this. All users updated.
10677 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
10678 Revamped into ...
10679 (grub_machine_get_bootlocation): ... this.
10680 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
10681 (grub_machine_get_bootlocation): New proto.
10682 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
10683
10684 Less intrusive and more reliable seek on network implementation.
10685
10686 * grub-core/kern/file.c (grub_file_net_seek): Removed.
10687 (grub_file_seek): Don't call grub_file_net_seek.
10688 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
10689 (grub_net_fs_read_real): .. this.
10690 (grub_net_seek_real): Use net->offset.
10691 (grub_net_fs_read): Seek if necessary.
10692
10693 Unify IEEE1275 netwotk config with the other platforms.
10694
10695 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
10696 New variable.
10697 (grub_machine_get_bootlocation): Support network.
10698 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10699 Support type and device parsing.
10700 (grub_ieee1275_get_device_type): New function.
10701 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
10702 into ...
10703 (grub_ieee1275_net_config_real): ... this.
10704 (grub_ofnet_probecards): Removed.
10705 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
10706 * include/grub/ieee1275/ofnet.h: Removed.
10707 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
10708 extern var.
10709 (grub_ieee1275_get_device_type): New function.
10710
10711 Unify network device closing across platforms and make more robust.
10712
10713 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
10714 grub_grubnet_fini.
10715 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
10716 already.
10717 * grub-core/net/net.c (grub_net_network_level_interface_register):
10718 Update num_ifaces.
10719 (grub_net_card_unregister): Close all interfaces.
10720 (receive_packets): Don't poll if no iterfaces are registered.
10721 Open if necessary.
10722 (grub_net_fini_hw): New function.
10723 (grub_net_restore_hw): Likewise.
10724 (fini_hnd): New variable.
10725 (GRUB_MOD_INIT): Register preboot hook.
10726 (GRUB_MOD_FINI): Run and unregister preboot hook.
10727
10728 Poll network cards when idle.
10729
10730 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
10731 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
10732 * grub-core/net/net.c (receive_packets): Save last poll time.
10733 (grub_net_poll_cards_idle_real): New function.
10734 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
10735 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
10736 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
10737
10738 Rename ofnet interfaces.
10739
10740 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
10741 (grub_ofnet_findcards): Use ofnet_%s names.
10742
10743 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
10744
10745 Cleanup socket opening.
10746
10747 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
10748 (grub_net_fs_close): Likewise.
10749 (grub_net_fs_read_real): Use eof member.
10750 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
10751 (+grub_net_udp_close): New inline function.
10752
10753 * include/grub/net/tftp.h: Moved to the top of ...
10754 * grub-core/net/tftp.c: ... here.
10755 * include/grub/net/ip.h: Moved mostly to the top of ...
10756 * grub-core/net/ip.c: ... here.
10757 * include/grub/net/ethernet.h: Moved mostly to the top of ...
10758 * grub-core/net/ethernet.c: ... here.
10759
10760 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
10761
10762 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
10763 FS name.
10764
10765 * include/grub/net/ip.h (ipv4_ini): Removed.
10766 (ipv4_fini): Likewise.
10767
10768 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
10769 (grub_net_send_ip_packets): Likewise.
10770
10771 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
10774 grub_read_cmos prototype.
10775
10776 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10777
10778 VGA text support in qemu-mips
10779
10780 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
10781 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
10782 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
10783 text.
10784 * grub-core/kern/i386/qemu/init.c: Renamed to ...
10785 * grub-core/kern/vga_init.c: ... this.
10786 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
10787 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
10788 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
10789 Adjust.
10790 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
10791 GRUB_MACHINE_PCI_IO_BASE.
10792
10793 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10794
10795 MIPS qemu flash support.
10796
10797 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
10798 magic.
10799 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
10800 (grub_machine_init): Probe memory if its size isn't known.
10801 * util/grub-mkimage.c (image_targets): Add flash targets.
10802 (generate_image): Handle flash targets.
10803
10804 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10805
10806 MIPS qemu at_keyboard support.
10807
10808 * gentpl.py (videoinkernel): Add qemu-mips.
10809 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
10810 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
10811 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
10812 modules.
10813 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
10814 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
10815 * grub-core/term/serial.c (grub_serial_register)
10816 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
10817
10818 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 CMOS support on sparc.
10821
10822 * gentpl.py (cmos): Add powerpc and sparc.
10823 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
10824 powerpc and sparc.
10825 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
10826 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
10827 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
10828 grub_set_datetime_cmos.
10829 * grub-core/lib/ieee1275/cmos.c: New file.
10830 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
10831 (find_rtc): Set no_ieee1275_rtc on error.
10832 (grub_get_datetime): Call grub_get_datetime_cmos on error.
10833 (grub_set_datetime): Call grub_set_datetime_cmos on error.
10834 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
10835 fail. Move value to argument. All users updated
10836 (grub_cmos_write): Likewise.
10837 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
10838 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
10839 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
10840 grub_get_datetime_cmos and grub_set_datetime_cmos.
10841
10842 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10843
10844 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
10845 sourcing grub-mkconfig_lib.
10846 * util/update-grub_lib.in: Likewise.
10847 * util/grub.d/00_header.in: Likewise.
10848 * util/grub.d/10_hurd.in: Likewise.
10849 * util/grub.d/10_kfreebsd.in: Likewise.
10850 * util/grub.d/10_linux.in: Likewise.
10851 * util/grub.d/10_netbsd.in: Likewise.
10852 * util/grub.d/10_windows.in: Likewise.
10853 * util/grub.d/20_linux_xen.in: Likewise.
10854 * util/grub.d/30_os-prober.in: Likewise.
10855
10856 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
10857
10858 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
10859 default_bg_color rather than black.
10860 (grub_gfxterm_fullscreen): Likewise.
10861 (grub_gfxterm_background_color_cmd): Save new background color in
10862 default_bg_color.
10863
10864 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10865
10866 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
10867
10868 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10869
10870 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
10871 mismerge.
10872
10873 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10874
10875 Chainloading on coreboot support.
10876
10877 * grub-core/Makefile.core.def (chain): Add coreboot.
10878 * grub-core/loader/i386/coreboot/chainloader.c: New file.
10879
10880 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
10883 if it happens.
10884
10885 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10886
10887 Implement time command.
10888
10889 * grub-core/Makefile.core.def (time): New module.
10890 * grub-core/commands/time.c: New file.
10891 * grub-core/script/parser.y: Remove "time" keyword.
10892 * grub-core/script/yylex.l: Likewise.
10893
10894 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
10897
10898 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10899
10900 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
10901 when handling leftovers.
10902
10903 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10904
10905 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
10906 so that help2man doesn't fail.
10907
10908 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10909
10910 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
10911 type in pointers on sparc64.
10912 (get_card_packet): Likewise.
10913
10914 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
10915
10916 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
10917 with `*'.
10918 (grub_cmd_videoinfo): Fetch current video mode.
10919
10920 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10921
10922 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
10923 because of underlying system restrictions.
10924
10925 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10926
10927 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
10928 necessary.
10929
10930 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10931
10932 Coreboot video support.
10933
10934 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
10935 (vbe): Likewise.
10936 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
10937 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
10938 here ...
10939 * grub-core/kern/i386/int.S: ... here.
10940 * grub-core/video/i386/pc/vbe.c: Updated includes.
10941 * grub-core/video/i386/pc/vga.c: Likewise.
10942 * include/grub/i386/coreboot/memory.h
10943 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
10944 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
10945 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
10946 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
10947 Disable interrupts.
10948 * include/grub/i386/pc/vga.h: Removed. All users updated.
10949
10950 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10951
10952 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
10953 definitions for dprintf.
10954 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
10955
10956 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10957
10958 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
10959 prototype.
10960 (get_card_packet): Likewise.
10961
10962 2011-06-26 Yves Blusseau <blusseau@zetam.org>
10963
10964 Display the path of the file when file is not found
10965
10966 * grub-core/fs/fat.c: Display the filename when file is not found.
10967 * grub-core/fs/fshelp.c: Likewise.
10968 * grub-core/fs/hfs.c: Likewise.
10969 * grub-core/fs/jfs.c: Likewise.
10970 * grub-core/fs/minix.c: Likewise.
10971 * grub-core/fs/ufs.c: Likewise.
10972 * grub-core/fs/btrfs.c: Likewise.
10973 * grub-core/commands/i386/pc/play.c: Likewise.
10974
10975 2011-06-26 Szymon Janc <szymon@janc.net.pl>
10976
10977 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
10978 pointer checks before calling grub_free().
10979 * grub-core/commands/wildcard.c (match_devices): Likewise.
10980 * grub-core/commands/wildcard.c (match_files): Likewise.
10981 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
10982 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
10983 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
10984 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
10985 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
10986 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
10987 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
10988 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10989 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
10990
10991 2011-06-25 Patrick <p55@mailinator.com>
10992
10993 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
10994
10995 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
10998 (grub_pxe_send): Likewise.
10999 (GRUB_MOD_INIT): Fix types.
11000
11001 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11002
11003 * grub-core/io/xzio.c: Fix code style issues
11004
11005 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11006 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11007
11008 Network infrastructure.
11009 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11010
11011 * include/grub/net/arp.h: New file.
11012 * include/grub/net/device.h: Likewise.
11013 * include/grub/net/ethernet.h: Likewise.
11014 * include/grub/net/ip.h: Likewise.
11015 * include/grub/net/netbuff.h: Likewise.
11016 * include/grub/net/tftp.h: Likewise.
11017 * include/grub/net/udp.h: Likewise.
11018 * include/grub/ieee1275/ofnet.h: Likewise.
11019 * include/grub/emu/export.h: Likewise.
11020 * include/grub/net.h: Likewise.
11021 * grub-core/net/arp.c: Likewise.
11022 * grub-core/net/ethernet.c: Likewise.
11023 * grub-core/net/ip.c: Likewise.
11024 * grub-core/net/udp.c: Likewise.
11025 * grub-core/net/tftp.c: Likewise.
11026 * grub-core/net/netbuff.c: Likewise.
11027 * grub-core/net/net.c: Likewise.
11028 * grub-core/net/drivers/emu/emunet.c: Likewise.
11029 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11030 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11031 export.h.
11032 * grub-core/Makefile.core.def (net): New module.
11033 (tftp): Likewise.
11034 (ofnet): Likewise.
11035 (emunet): Likewise.
11036 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11037 network protocols.
11038 * grub-core/kern/device.c (grub_net_open) : New variable.
11039 (grub_device_open): Handle network device.
11040 (grub_device_close): Likewise.
11041 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11042 (grub_grubnet_fini): Likewise.
11043 (grub_file_seek): Seek in network device.
11044 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11045 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11046 network root.
11047 (grub_machine_fini): Call grub_grubnet_fini.
11048 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11049 network.
11050 (grub_ieee1275_get_aliasdevname): New function.
11051 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11052 Add unofficial Solaris network info.
11053 (grub_multiboot_make_mbi): Likewise.
11054 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11055 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11056 * include/grub/device.h (grub_fs): Removed.
11057 * include/grub/err.h (grub_err_t): Add network-related values.
11058 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11059 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11060 (grub_ieee1275_get_aliasdevname): New proto.
11061 * include/grub/net.h: Rewritten.
11062
11063 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11066 names.
11067
11068 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11069
11070 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11071 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11072 it truncates the output.
11073 Reported by: Ximin Luo.
11074
11075 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11078
11079 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11080
11081 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11082 partmap before abstraction.
11083
11084 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11085
11086 * util/grub-mkconfig_lib.in: Add missing quotes.
11087
11088 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11089
11090 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11091 old method if mountinfo would return /dev/root and /dev/root doesn't
11092 exist.
11093
11094 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 ZFS zlib support
11097
11098 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11099 (decomp_table): Add zlib entries.
11100 (zio_read): USe 8 bits for compression function rather than 3.
11101 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11102
11103 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 * grub-core/disk/ahci.c: Add missing license statements.
11106 * grub-core/fs/romfs.c: Likewise.
11107 * grub-core/lib/ia64/setjmp.S: Likewise.
11108 * grub-core/loader/i386/pc/freedos.c: Likewise.
11109 * grub-core/loader/ia64/efi/linux.c: Likewise.
11110 * grub-core/video/colors.c: Likewise.
11111 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11112
11113 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 AHCI support.
11116
11117 * grub-core/Makefile.core.def (ata_pthru): Removed.
11118 (ahci): New module.
11119 (pata): Likewise.
11120 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11121 on unload.
11122 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11123 readwrite.
11124 (grub_hdparm_do_check_powermode_cmd): Likewise.
11125 (grub_hdparm_do_smart_cmd): Likewise.
11126 (grub_hdparm_set_val_cmd): Likewise.
11127 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11128 * grub-core/disk/ahci.c: New file.
11129 * grub-core/disk/ata.c: Factor out the low-level part into ...
11130 * grub-core/disk/pata.c: ... here.
11131 * grub-core/disk/ata_pthru.c: Contents moved to ...
11132 * grub-core/disk/pata.c: ... here.
11133 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11134 (grub_scsi_iterate): Use grub_scsi_names.
11135 (grub_scsi_open): Likewise.
11136 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11137 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11138 (grub_ata_regs_t): New struct.
11139 (grub_disk_ata_pass_through_parms): Likewise.
11140 (grub_ata_device): Renamed to ...
11141 (grub_ata): ... this.
11142 (grub_ata_dev): New struct.
11143 Removed all low-level inline functions.
11144 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11145 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11146 iterate hooks and open. All users updated.
11147 * util/grub-install.in: Handle AHCI disk module.
11148
11149 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11150
11151 Add support for DRI and RSTn markers in JPEG files.
11152
11153 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11154 (JPEG_MARKER_RST0): Likewise.
11155 (JPEG_MARKER_RST1): Likewise.
11156 (JPEG_MARKER_RST2): Likewise.
11157 (JPEG_MARKER_RST3): Likewise.
11158 (JPEG_MARKER_RST4): Likewise.
11159 (JPEG_MARKER_RST5): Likewise.
11160 (JPEG_MARKER_RST6): Likewise.
11161 (JPEG_MARKER_RST7): Likewise.
11162 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11163 (grub_jpeg_decode_dri): New function.
11164 (grub_jpeg_decode_sos): Move image data related part into
11165 grub_jpeg_decode_data function.
11166 (grub_jpeg_decode_data): New function.
11167 (grub_jpeg_reset): New function.
11168 (grub_jpeg_decode_jpeg): Handle new markers.
11169
11170 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 * util/ieee1275/ofpath.c (check_sas): Close fd.
11173 (main): Free of_path.
11174 Reported by: David Volgyes <dvolgyes>.
11175
11176 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11177
11178 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11179 Reported by: David Volgyes <dvolgyes>.
11180
11181 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11182
11183 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11184 file after stat.
11185 Reported by: David Volgyes <dvolgyes>.
11186
11187 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11188
11189 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11190
11191 Reported by: David Volgyes <dvolgyes>.
11192
11193 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11194
11195 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11196 Prevent memory leak.
11197
11198 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11199
11200 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11201 (main): Close file.
11202 Reported by: David Volgyes <dvolgyes>.
11203
11204 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11205
11206 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11207 to continue if allocation is failed.
11208
11209 Reported by: David Volgyes <dvolgyes>.
11210
11211 2011-06-23 David Volgyes <dvolgyes>
11212
11213 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11214 dereference.
11215
11216 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11217
11218 Fix spurious warning.
11219
11220 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11221 (acorn_partition_map_find): Use .bin member.
11222
11223 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11224
11225 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11226 /dev/root as a valid device.
11227
11228 2011-06-23 Jim Meyering <meyering@redhat.com>
11229
11230 Avoid NULL deref in grub_device_open.
11231
11232 * grub-core/kern/device.c (grub_device_open): Don't dereference
11233 a NULL pointer upon failed grub_env_get.
11234
11235 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11236
11237 Support non-512B sectors and agglomerate reads.
11238
11239 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11240 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11241 (disk_io_guid): Removed.
11242 (make_devices): Locate solely by BlockIO.
11243 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11244 (grub_efidisk_read): Use read_blocks.
11245 (grub_efidisk_write): Use write_blocks.
11246 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11247 log_sector_size.
11248 (get_safe_sectors): Handle non-512B sectors.
11249 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11250 sectors.
11251 (grub_biosdisk_write): Handle non-512B sectors.
11252 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11253 (grub_scsi_read): Remove special non-512B block handling (now handled
11254 one level up).
11255 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11256 and do sanity checks.
11257 (grub_disk_adjust_range): Handle non-512B sectors.
11258 (transform_sector): New function.
11259 (grub_disk_read_small): Likewise.
11260 (grub_disk_read): Rewritten.
11261 (grub_disk_write): Handle non-512B sectors.
11262 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11263 log_sector_size.
11264 (open_device): Use log_sector_size.
11265 (grub_util_biosdisk_read): Likewise.
11266 (grub_util_biosdisk_write): Likewise.
11267 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11268 non-512B sectors.
11269 (pc_partition_map_embed): Likewise.
11270 * include/grub/disk.h (grub_disk): New field log_sector_size.
11271 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11272 (GRUB_DISK_CACHE_BITS): Increased to 6.
11273 * util/grub-fstest.c (fstest): New command testload.
11274 (argp_parser): Likewise.
11275
11276 2011-06-16 Robert Millan <rmh@gnu.org>
11277
11278 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11279 `ata' driver on kernel of FreeBSD 9.
11280
11281 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11282 (get_ataraid_disk_name): New functions.
11283 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11284 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11285 get_ataraid_disk_name() and get_ada_disk_name().
11286
11287 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11288
11289 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11290 input format.
11291
11292 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11293
11294 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11295 `ftp.gnu.org' for `alpha.gnu.org'.
11296
11297 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11298
11299 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11300 partitions under /dev/disk/by-id/.
11301
11302 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11303
11304 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11305 after ten consecutive open failures. Scanning all the way up to
11306 10000 is excessive and can cause serious performance problems in
11307 some configurations.
11308 Fixes Ubuntu bug #787461.
11309
11310 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11313 opening new one.
11314
11315 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11316 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 Don't stat devices unless we have to.
11319
11320 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11321 dir == /dev/mapper.
11322 (grub_guess_root_device): Use already known os_dev if possible.
11323 * grub-core/kern/emu/hostdisk.c
11324 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11325 if device is known to be a dm one.
11326
11327 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11328
11329 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11330 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11331 Reported by: Pawel Tecza.
11332
11333 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11336 (lsefisystab): Likewise.
11337 (lssal): Likewise.
11338 (lsefimmap): Likewise.
11339 (hdparm): Enable on qemu-mips.
11340 (setjmp): Add ia64 nodist.
11341 (serial): Simplify tags.
11342
11343 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11344
11345 * Makefile.util.def (grub-ofpathname): Install manual page.
11346
11347 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11348
11349 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11350
11351 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11352
11353 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11354
11355 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11356
11357 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11358 into dprintf.
11359
11360 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11361
11362 Use full 64-bit division.
11363
11364 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11365 (grub_divmod64): ... this.
11366 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11367 version.
11368
11369 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11370
11371 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11372 `source'.
11373
11374 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11375
11376 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11377 to avoid accidents when debugging with 'sh -x'.
11378 * grub-core/gensyminfo.sh.in: Likewise.
11379 * tests/example_scripted_test.in: Likewise.
11380 * tests/grub_cmd_regexp.in: Likewise.
11381 * tests/grub_script_blanklines.in: Likewise.
11382 * tests/grub_script_dollar.in: Likewise.
11383 * tests/grub_script_expansion.in: Likewise.
11384 * tests/grub_script_final_semicolon.in: Likewise.
11385 * tests/partmap_test.in: Likewise.
11386 * tests/util/grub-shell-tester.in: Likewise.
11387 * tests/util/grub-shell.in: Likewise.
11388
11389 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11390
11391 Move gfxmenu color handling to video, so that gfxterm can use it
11392 too.
11393
11394 * grub-core/gfxmenu/named_colors.c: Move to ...
11395 * grub-core/video/colors.c: ... here. Rename
11396 grub_gui_get_named_color to grub_video_get_named_color.
11397 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11398 * grub-core/video/colors.c (my_isxdigit): ... here.
11399 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11400 Move to ...
11401 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11402 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11403 to ...
11404 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11405
11406 * include/grub/gui.h (grub_gui_color_t): Move to ...
11407 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11408 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11409 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11410 * include/grub/gui.h (grub_gui_map_color): Move to ...
11411 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11412 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11413 to ...
11414 * include/grub/video.h (grub_video_get_named_color): ... here.
11415 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11416 * include/grub/video.h (grub_video_parse_color): ... here.
11417
11418 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11419 video/colors.c.
11420 (gfxmenu): Remove gfxmenu/named_colors.c.
11421 (video) [videomodules]: Add video/colors.c.
11422
11423 Add a background_color command.
11424
11425 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11426 function.
11427 (GRUB_MOD_INIT): Register background_color command.
11428 (GRUB_MOD_FINI): Unregister background_color command.
11429 (redraw_screen_rect): Allow blend/replace of text layer to be
11430 controlled independently from whether there is a background bitmap.
11431 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11432 changing bitmap.
11433
11434 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11435
11436 Patch BPB in ntldr and chainloader --bpb.
11437
11438 * grub-core/fs/fat.c: Include grub/fat.h.
11439 (grub_fat_bpb): Moved to ...
11440 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11441 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11442 grub/ntfs.h.
11443 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11444 Moved from here...
11445 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11446 here.
11447 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11448 New function.
11449 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11450 (GRUB_MOD_INIT): Show --bpb.
11451 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11452 * grub-core/normal/main.c (features): New variable.
11453 (GRUB_MOD_INIT): Set feature_* variables.
11454 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11455 proto.
11456 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11457
11458 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11461 for cleanness.
11462
11463 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 FreeDOS direct loading support.
11466
11467 * docs/grub.texi (Supported OS): Add FreeDOS.
11468 * grub-core/Makefile.core.def (freedos): New module.
11469 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11470 variable.
11471 (grub_relocator16_boot): Handle %ebx.
11472 * grub-core/lib/i386/relocator16.S: Likewise.
11473 * grub-core/loader/i386/pc/freedos.c: New file.
11474
11475 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 Long Linux command line support.
11478
11479 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11480 (maximal_cmdline_size): New variable.
11481 (allocate_pages): Use maximal_cmdline_size.
11482 (grub_cmd_linux): Set and use maximal_cmdline_size.
11483 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11484 (allocate_pages): Use maximal_cmdline_size.
11485 (grub_cmd_linux): Set and use maximal_cmdline_size.
11486 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11487 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11488 and cmdline_size.
11489
11490 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11491 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11492
11493 Improve devmapper support
11494
11495 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11496 (grub_util_is_lvm): New function.
11497 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11498 than lvm if not dmraid.
11499 Handle mapped md nodes.
11500 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11501 (grub_util_device_is_mapped): ... this. Make always available. All users
11502 updated.
11503 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11504 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11505 dmraid nodes.
11506 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11507
11508 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11509
11510 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11511
11512 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11513 * grub-core/modinfo.sh.in: New file.
11514 * grub-core/Makefile.core.def (modinfo.sh): New script.
11515 * util/grub-mknetdir.in: Use modinfo.sh.
11516 * util/grub-mkrescue.in: Likewise.
11517
11518 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11519
11520 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11521 Fix potential usage of Elf32 instead of Elf64 when compiling on
11522 32-bit architecture. Add endianness macros while on it.
11523
11524 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11525
11526 Use mipsel- rather than mips- in directories involving mipsel ports to
11527 allow both endiannesses coexist.
11528
11529 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11530 mips. All conditions adjusted.
11531 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11532 variable.
11533 * util/grub-install.in: Adjust conditions to take renaming into account.
11534 * util/grub-mkimage.c (image_targets): Likewise. New target
11535 mips-qemu_mips-elf for bigendian mips.
11536
11537 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 Avoid unnecessary copying on MIPS.
11540
11541 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11542 early if src == dest.
11543 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11544 compression is none.
11545
11546 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 Reduce memory footprint on SGI by putting modules before the kernel
11549 as opposed to after.
11550
11551 * grub-core/Makefile.core.def (kernel): Increase linking address.
11552 (none_decompress): Likewise.
11553 (xz_decompress): Likewise.
11554 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11555 address.
11556 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11557 layout change.
11558 (grub_arch_modules_addr): New function.
11559 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11560 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11561 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11562 here.
11563 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11564 (grub_total_modules_size): ... this. Make global.
11565 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11566 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11567 New definition.
11568 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11569 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11570 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11571 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11572 * util/grub-mkimage.c (image_target_desc): New flag
11573 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11574 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11575 (generate_image): Handle images with modules before kernel.
11576
11577 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11578
11579 Prevent potential loss of memory map by overwrite on qemu-mips.
11580
11581 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11582 Save ram size in $s4.
11583 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11584 All users changed to grub_arch_memsize.
11585 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11586 Loongson.
11587 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11588 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11589 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11590 external variable.
11591
11592 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11593
11594 * .bzrignore: Remove grub-dumpbios.
11595
11596 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11597
11598 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11599 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11600 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11601 existing options which append).
11602 * docs/grub.texi (Simple configuration): Document new options.
11603 Reported by: Ian Jackson. Fixes Debian bug #617538.
11604
11605 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11606
11607 * util/grub-fstest.c (cmd_cat): New function.
11608 (fstest): Handle CMD_CAT.
11609 (options): Add cat.
11610 (argp_parser): Handle cat.
11611
11612 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11613
11614 * Makefile.util.def (grub-bin2h): Don't install.
11615 * docs/man/grub-bin2h.h2m: Remove.
11616
11617 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11618
11619 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11620 place.
11621
11622 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11623
11624 Reenable qemu-mips port.
11625
11626 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
11627 Fix small arc bug while on it.
11628 * gentpl.py: Handle qemu_mips.
11629 * grub-core/Makefile.am: Likewise.
11630 * grub-core/Makefile.core.def: Likewise.
11631 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
11632 inappropriate includes.
11633 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
11634 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
11635 * grub-core/kern/main.c (grub_modules_get_end)
11636 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
11637 * grub-core/kern/mips/qemu-mips: Moved to ..
11638 * grub-core/kern/mips/qemu_mips: ... this.
11639 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
11640 (grub_machine_init): Call terminfo_init and serial_init.
11641 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
11642 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11643 New variable.
11644 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
11645 parameter passing.
11646 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
11647 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
11648 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
11649 * include/grub/mips/qemu_mips/cmos.h: New file.
11650 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
11651 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
11652 Removed.
11653 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
11654 Use correct mips-style address.
11655 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
11656 (GRUB_TICKS_PER_SECOND): Removed.
11657 (grub_get_rtc): Likewise.
11658 (grub_cpu_idle): Likewise.
11659 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
11660 New definition.
11661 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
11662 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
11663 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
11664 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
11665 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11666 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11667 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
11668 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
11669
11670 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 SGI ARCS port.
11673
11674 * Makefile.util.def (libgrubmods.a): Add dvh.c.
11675 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
11676 platforms.
11677 * configure.ac: New target mips-arc.
11678 * gentpl.py: Likewise.
11679 * grub-core/Makefile.am: Likewise.
11680 * grub-core/Makefile.core.def: Likewise.
11681 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
11682 (none_decompress): Likewise.
11683 (lsdev): New module.
11684 (datetime): Use lib/arc/datetime.c on ARC.
11685 (part_dvh): New module.
11686 * grub-core/commands/arc/lsdev.c: New file.
11687 * grub-core/disk/arc/arcdisk.c: Likewise.
11688 * grub-core/kern/mips/arc/init.c: Likewise.
11689 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
11690 aligned addresses.
11691 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
11692 support.
11693 (grub_arch_dl_relocate_symbols): Likewise.
11694 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
11695 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
11696 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
11697 platforms.
11698 * grub-core/lib/arc/datetime.c: New file.
11699 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
11700 pci.h on non-loongson.
11701 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
11702 (grub_linux_boot): Set unused registers to 0.
11703 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
11704 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
11705 * grub-core/mmap/mips/uppermem.c: ...here.
11706 * grub-core/partmap/dvh.c: New file.
11707 * grub-core/term/arc/console.c: Likewise.
11708 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
11709 (grub_terminfo_set_current): Add terminal "arc".
11710 (grub_terminfo_readkey): Support ARC sequences.
11711 * include/grub/arc/arc.h: New file.
11712 * include/grub/arc/console.h: Likewise.
11713 * include/grub/disk.h (grub_disk_dev_id): Add
11714 GRUB_DISK_DEVICE_ARCDISK_ID.
11715 * include/grub/mips/arc/kernel.h: New file.
11716 * include/grub/mips/arc/memory.h: Likewise.
11717 * include/grub/mips/arc/time.h: Likewise.
11718 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
11719 * include/grub/mips/kernel.h (grub_halt): ... here.
11720 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
11721 here...
11722 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
11723 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
11724 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
11725 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
11726 proto.
11727 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
11728 from here ...
11729 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
11730 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
11731 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
11732 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
11733 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
11734 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
11735 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
11736 (grub_phys_addr_t): Moved from here ...
11737 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
11738 (grub_vtop): Moved from here ...
11739 * include/grub/mips/memory.h (grub_vtop): ... here.
11740 (grub_map_memory): Moved from here ...
11741 * include/grub/mips/memory.h (grub_map_memory): ... here.
11742 (grub_unmap_memory): Moved from here ...
11743 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
11744 (grub_machine_mmap_iterate): Moved from here ...
11745 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
11746 (grub_mmap_get_lower): Moved from here ...
11747 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
11748 (grub_mmap_get_upper): Moved from here ...
11749 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
11750 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11751 here ...
11752 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11753 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
11754 here ...
11755 * include/grub/mips/time.h (grub_get_rtc): ... here.
11756 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11757 here ...
11758 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11759 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
11760 here ...
11761 * include/grub/mips/time.h (grub_cpu_idle): ... here.
11762 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
11763 definition.
11764 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
11765 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
11766 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
11767 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
11768 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11769 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11770 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
11771 (GRUB_MACHINE_LINK_ADDR): Likewise.
11772 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
11773 to 6.
11774 * util/grub-install.in: Run dvhtool on ARC.
11775 * util/grub-mkimage.c (image_targets): Add mips-arc.
11776 (generate_image): Handle ECOFF output for mips-arc.
11777
11778 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11779
11780 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
11781 blocks.
11782
11783 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11784
11785 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
11786 after enabling port.
11787
11788 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 Skip incorrect USB devices.
11791
11792 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
11793 configcnt == 0.
11794 * include/grub/usb.h (grub_usb_err_t): New enum value
11795 GRUB_USB_ERR_BADDEVICE.
11796
11797 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11798
11799 Fuloong video init support.
11800
11801 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
11802 well.
11803 (grub_vga_read_arx): New function.
11804 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
11805 definition.
11806 (framebuffer): New members io, mmioptr and mmiobase.
11807 (read_sis_cmd): New function.
11808 (write_sis_cmd): Likewise.
11809 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
11810 rather than 640x400.
11811 * grub-core/video/sis315_init.c: New file.
11812
11813 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11814
11815 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
11816 non-loongson.
11817 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
11818 to grub_dl_register_symbol.
11819
11820 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 Fix compilation errors.
11823
11824 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
11825 potentially unused.
11826 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
11827 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
11828 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
11829 to loongson machines.
11830
11831 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11832
11833 Several FS mtime support.
11834
11835 * grub-core/fs/affs.c (grub_affs_time): New struct.
11836 (grub_affs_file): New field mtime.
11837 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
11838 type. Removed 'size'. New field 'di'. All users updated.
11839 (grub_affs_mount): Simplify checsum checking.
11840 (grub_affs_iterate_dir): New helper grub_affs_create_node.
11841 (grub_affs_dir): Handle mtime.
11842 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
11843 (grub_cpio_dir): Likewise.
11844 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
11845 (grub_hfs_filerec): New field mtime.
11846 (grub_hfs_dir): Handle mtime.
11847 (grub_hfs_mtime): New function.
11848 (grub_hfs_fs): Register grub_hfs_mtime.
11849 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
11850 (grub_iso9660_dir): New field mtime.
11851 (grub_fshelp_node): New field dirent.
11852 (iso9660_to_unixtime): New function.
11853 (iso9660_to_unixtime2): Likewise.
11854 (grub_iso9660_read_symlink): Use node->dirent.
11855 (grub_iso9660_iterate_dir): Likewise.
11856 (grub_iso9660_dir): Set mtime.
11857 (grub_iso9660_mtime): New function.
11858 (grub_iso9660_fs): Register grub_iso9660_mtime.
11859 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
11860 (grub_jfs_inode): New fields atime, ctime and mtime.
11861 (grub_jfs_dir): Set mtime.
11862 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11863 * grub-core/fs/ntfs.c (list_file): Set mtime.
11864 (grub_ntfs_dir): Likewise.
11865 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
11866 (grub_reiserfs_iterate_dir): Set mtime.
11867 (grub_reiserfs_dir): Likewise.
11868 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
11869 (grub_fshelp_node): Likewise.
11870 (grub_sfs_iterate_dir): Set mtime.
11871 (grub_sfs_dir): Likewise.
11872 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
11873 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
11874 (grub_xfs_inode): New fields atime, mtime, ctime.
11875 (grub_xfs_dir): Set mtime.
11876 * include/grub/datetime.h (grub_datetime2unixtime): New function.
11877 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
11878 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
11879
11880 Support UDF symlinks.
11881
11882 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
11883 (grub_ufs_read_symlink): New function. All users updated.
11884
11885 Check amiga partmap checksum.
11886
11887 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
11888 (grub_amiga_partition): Likewise.
11889 (amiga_partition_map_checksum): New function.
11890 (amiga_partition_map_iterate): Check checksum.
11891
11892 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 ROMFS support.
11895
11896 * Makefile.util.def (libgrubmods.a): Add romfs.
11897 * grub-core/Makefile.core.def (romfs): New module.
11898 * grub-core/fs/romfs.c: New file.
11899
11900 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11901
11902 Squashfs v4 support.
11903
11904 * Makefile.util.def (libgrubmods.a): Add squash4.
11905 * grub-core/Makefile.core.def (squash4): New module.
11906 * grub-core/fs/squash4.c: New file.
11907 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
11908 disk_input_start, disk_input.
11909 (get_byte): Handle disk_input.
11910 (grub_zlib_disk_read): New function.
11911 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
11912
11913 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11914 2011-05-15 Feiran Zheng <famcool@gmail.com>
11915
11916 * Makefile.util.def (libgrubmods.a): Add minix3.
11917 * grub-core/Makefile.core.def (minix3): New module.
11918 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
11919 (GRUB_MINIX_BSIZE): Removed.
11920 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
11921 (grub_minix_ino_t): New type.
11922 (grub_minix_le_to_cpu_ino): New macro.
11923 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
11924 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
11925 (grub_minix_data): New field block_size.
11926 (grub_minix_read_file): Handle 64-bit correctly.
11927 * grub-core/fs/minix3.c: New file.
11928
11929 2011-05-15 Tristan Gingold <gingold@free.fr>
11930 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
11931 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11932
11933 IA64 support.
11934
11935 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
11936 * configure.ac: Add ia64-efi target.
11937 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
11938 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
11939 * gentpl.py: Add ia64_efi platform.
11940 Rename x86_efi to efi and Add ia64-efi. All users updated.
11941 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
11942 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
11943 Remove kern/generic/rtc_get_time_ms.c on EFI.
11944 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
11945 kern/ia64/dl_helper.c on ia64-efi.
11946 Add kern/emu/cache.c on emu.
11947 (linux): Use on loader/ia64/efi/linux.c on ia64.
11948 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
11949 whether symbol is a function.
11950 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
11951 (grub_symbol): New field 'isfunc'.
11952 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
11953 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
11954 (grub_dl_load_segments): Place all sections into the same region.
11955 [__ia64__]: Create trampolines and got.
11956 [GRUB_MACHINE_EMU]: Call mprotect.
11957 (grub_dl_resolve_symbols): Resolve symbol type as well.
11958 [__ia64__]: Create function descriptors.
11959 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
11960 (grub_rtc_get_time_ms): ... this. Expressions simplified.
11961 (grub_get_rtc): New function.
11962 * grub-core/kern/emu/cache.c [__ia64__]: New file.
11963 * grub-core/kern/emu/cache.S: Renamed to ...
11964 * grub-core/kern/emu/cache_s.S: ... this.
11965 [__ia64__]: Add a nop.
11966 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
11967 [__ia64__]: New function.
11968 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
11969 * grub-core/kern/ia64/dl.c: New file.
11970 * grub-core/kern/ia64/dl_helper.c: Likewise.
11971 * grub-core/kern/ia64/efi/init.c: New file.
11972 * grub-core/kern/ia64/efi/startup.S: Likewise.
11973 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
11974 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
11975 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
11976 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
11977 * grub-core/loader/ia64/efi/linux.c: New file.
11978 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
11979 (GRUB_MOD_DEP): Likewise.
11980 (grub_dl) [__ia64__]: New fields got and tramp.
11981 (grub_dl): New field 'base'.
11982 (grub_dl_register_symbol): New argument isfunc. All users updated.
11983 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
11984 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
11985 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
11986 (grub_ia64_dl_get_tramp_got_size): New proto.
11987 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
11988 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
11989 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
11990 * include/grub/efi/api.h: Skip call wrappers on ia64.
11991 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
11992 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
11993 * include/grub/elf.h (ELF_ST_INFO): New definition.
11994 * include/grub/ia64/efi/kernel.h: New file.
11995 * include/grub/ia64/efi/memory.h: Likewise.
11996 * include/grub/ia64/efi/time.h: Likewise.
11997 * include/grub/ia64/kernel.h: Likewise.
11998 * include/grub/ia64/setjmp.h: Likewise (from glibc).
11999 * include/grub/ia64/time.h: New file.
12000 * include/grub/ia64/types.h: Likewise.
12001 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12002 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12003 New protos.
12004 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12005 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12006 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12007 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12008 All users updated.
12009 (EFI64_HEADER_SIZE): New definition. All users updated.
12010 (image_targets): Add ia64-efi.
12011 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12012 jumpers_addr. All users updated.
12013 Create function descriptors.
12014 (count_funcs): New function.
12015 (unaligned_uint32): New struct.
12016 (MASK20): New definition.
12017 (MASK19): Likewise.
12018 (MASKF21): Likewise.
12019 (add_value_to_slot_20b): New function.
12020 (add_value_to_slot_21_real): Likewise.
12021 (add_value_to_slot_21): Likewise.
12022 (ia64_kernel_trampoline): New struct.
12023 (nopm): New variable.
12024 (jump): Likewise.
12025 (make_trampoline): New function.
12026 (relocate_addresses): Handle ia64.
12027 (make_reloc_section): Likewise.
12028 (load_image): Likewise.
12029
12030 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12033 warning. Move variables before code while on it.
12034
12035 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 Fuloong support.
12038
12039 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12040 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12041 * grub-core/boot/mips/loongson/fuloong.S: New file.
12042 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12043 Explicitly init CS5536.
12044 [FULOONG]: Don't use serial until CS5536 is available.
12045 Set GPIO based on dumps.
12046 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12047 [FULOONG]: Handle GPIO and memory controller differences.
12048 Parse machine type in $a2.
12049 * grub-core/boot/mips/startup_raw.S: Determine and save the
12050 architecture.
12051 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12052 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12053 init on architecture type.
12054 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12055 SIS315E. Don't init at_keyboard on fuloong.
12056 (grub_halt): Support Fuloong.
12057 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12058 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12059 (loongson_machtypes): New array.
12060 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12061 type.
12062 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12063 config. All users updated. Handle CS5536 serial.
12064 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12065 default port on machine type. Register serial as inactive.
12066 * grub-core/video/sis315pro.c: New file.
12067 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12068 definition.
12069 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12070 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12071 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12072 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12073 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12074 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12075 to ...
12076 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12077 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12078 definition.
12079 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12080 (grub_arch_machine): New extern var.
12081 * include/grub/mips/loongson/serial.h
12082 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12083 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12084 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12085 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12086 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12087 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12088 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12089 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12090 * include/grub/term.h (grub_term_register_input_inactive): New inline
12091 function.
12092 (grub_term_register_output_inactive): Likewise.
12093 * include/grub/video.h (grub_video_driver_id): New value
12094 GRUB_VIDEO_DRIVER_SIS315PRO.
12095 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12096 New field "names". All users updated.
12097 New field value IMAGE_FULOONG_FLASH.
12098 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12099
12100 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12101
12102 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12103 and add some clarification.
12104
12105 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12108 platforms if kernel is compressed.
12109
12110 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12113 unused modules since currently referrence counter isn't reliable and
12114 there isn't much memory to recover there anyway.
12115
12116 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12117
12118 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12119 rather than resetting it to allow modules to reference themselves
12120 in init.
12121
12122 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12123
12124 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12125 counter on dependencies since grub_dl_unref already handles this.
12126
12127 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12130 on error if not already done.
12131
12132 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 Fix few potential memory misusage.
12135
12136 * grub-core/font/font.c (load_font_index): Don't free char_index to
12137 avoid double free.
12138 (grub_font_load): Zero-fill font at alloc for safety.
12139 Close file on error.
12140 (free_font): Free bmp_idx.
12141
12142 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 * docs/grub.texi (Installation): Fix several outdated claims.
12145
12146 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12147
12148 Handle module_license on windows.
12149
12150 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12151 sections shifted.
12152 (insert_string): Make argument const char * instead of char *.
12153 (write_section_data): Handle long section names.
12154 Handle module_license.
12155
12156 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12157
12158 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12159 handle class-free menuentries.
12160 (grub_normal_add_menu_entry): Add a check to be sure.
12161
12162 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12163
12164 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12165 PgUp and PgDown.
12166
12167 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12168
12169 * configure.ac: Bump version to 1.99.
12170
12171 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12172
12173 Give ATA device a bit more time on first try in order to allow disks
12174 to spin up.
12175
12176 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12177 if dev->present is 1. Reset dev->present on failure.
12178 (grub_ata_device_initialize): Set dev->present to 1.
12179 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12180 (grub_ata_device): New member 'present'.
12181
12182 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 * util/grub-mkimage.c (generate_image): Update hash.
12185
12186 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 Flush caches on DMA memory.
12189
12190 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12191 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12192 (grub_dma_free): Likewise.
12193 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12194
12195 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12198 to avoid asm treating ld and sd as macros.
12199
12200 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12201
12202 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12203 decompressor.
12204
12205 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12206
12207 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12208 grub_decompress_core since later would fail if grub_decompress_core
12209 is too far.
12210
12211 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12212
12213 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12214 R_MIPS_JALR since it's used by newer compiler.
12215
12216 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12219
12220 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12223 file_path to 0 for surety.
12224 (grub_chainloader_boot): Set exit_data to NULL.
12225 Unset the loader once done.
12226 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12227
12228 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12229
12230 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12231 unknown key into a dprintf.
12232
12233 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12236 on first non-existant partition.
12237
12238 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12239
12240 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12241 openning fails.
12242 Reported by: Mark Korenberg.
12243
12244 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12245
12246 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12247 overflow.
12248
12249 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12250
12251 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12252 before closing to ensure that it will be readable by grub-setup.
12253
12254 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12255
12256 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12257 (devpath_1): Use MAKE_PIWG_PATH.
12258 (devpath_2): Likewise.
12259 (devpath_3): Likewise.
12260 (devpath_4): Likewise.
12261 (devpath_5): Likewise.
12262 (devpath_6): Likewise.
12263
12264 The appleldr.mod was checked that to be binary identical to previous
12265 version.
12266
12267 2011-05-05 Zach <mikezackles>
12268
12269 Support 2010 Macbooks.
12270
12271 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12272 (devs): Add devpath_6.
12273
12274 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12275
12276 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12277 /dev/random. /dev/urandom is good enough for our purposes (salting).
12278
12279 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12280
12281 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12282
12283 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12284
12285 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12286 hexadecimal.
12287
12288 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12289
12290 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12291 and not 0 on failure.
12292
12293 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12294
12295 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12296 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12297 disk; otherwise grub_fs_probe will not fall back to the next
12298 filesystem.
12299 (grub_pxefs_open): Likewise, for consistency.
12300 Reported and tested by: Ezekiel Grave.
12301
12302 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12303
12304 * tests/partmap_test.in: Don't hardcode path to parted.
12305 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12306
12307 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12308
12309 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12310 of `ls' to find out which devices are available.
12311
12312 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12313
12314 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12315 than source address for efi mmap buffer.
12316
12317 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12318
12319 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12320 wrong action on non-detecting the magic.
12321
12322 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12323
12324 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12325 already supplied by another part of the module (fixes compilation on
12326 FreeBSD).
12327
12328 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12331 match the one used by mdadm.
12332
12333 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12334
12335 * po/README: Add instructions for creating po/LINGUAS.
12336
12337 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12338
12339 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12340 #551428.
12341
12342 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12343 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12344 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12345 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12346 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12347 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12348 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12349 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12350 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12351 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12352 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12353 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12354 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12355 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12356 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12357 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12358 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12359 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12360 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12361 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12362 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12363 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12364
12365 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12366
12367 * grub-core/kern/emu/getroot.c
12368 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12369 test that was incorrectly reintroduced in r3214.
12370 Reported by: Ian Dall. Fixes Savannah bug #33133.
12371
12372 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12373
12374 Fix stack pointer handling in 16-bit relocator.
12375
12376 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12377 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12378 Fixes Ubuntu bug #683904.
12379
12380 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 * configure.ac: Bump version to 1.99~rc2.
12383
12384 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12387 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12388 * grub-core/lib/x86_64/setjmp.S: Likewise.
12389 * grub-core/lib/mips/setjmp.S: Likewise.
12390 * grub-core/lib/powerpc/setjmp.S: Likewise.
12391 * grub-core/lib/sparc64/setjmp.S: Likewise.
12392
12393 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12394
12395 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12396 * grub-core/lib/efi/datetime.c: Likewise.
12397
12398 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12399
12400 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12401 New function.
12402 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12403 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12404 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12405
12406 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12407
12408 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12409 bitmap.
12410 (grub_gfxterm_term_init): Likewise.
12411
12412 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12413
12414 Take into account the decorations the computing menu entry width.
12415
12416 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12417 (grub_gfxmenu_create_box): Register get_border_width.
12418 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12419 if available.
12420 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12421 get_border_width.
12422
12423 2011-04-18 Endres Puschner <code@e7p.de>
12424
12425 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12426 Don't skip first class.
12427
12428 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12431 chunks.
12432 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12433
12434 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12435
12436 Complete 64-bit division support.
12437
12438 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12439 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12440 * include/grub/misc.h (grub_divmod64): Rename to ...
12441 (grub_divmod64_full): ... this.
12442 (grub_divmod64): New inline function.
12443
12444 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12447
12448 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12449
12450 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12451 performing the necessary test.
12452
12453 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12456 (kfreebsd.elf): Likewise.
12457 (pc-chainloader.elf): Likewise.
12458 (ntldr.elf): Likewise.
12459
12460 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12461
12462 Identify RAID by its UUID rather than (guessed) name.
12463
12464 * grub-core/disk/raid.c (ascii2hex): New function.
12465 (grub_raid_open): Accept mduuid/%s specification.
12466 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12467 (get_mdadm_uuid): ... this.
12468 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12469
12470 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12471
12472 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12473 to negative size.
12474
12475 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12476
12477 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12478 btrfs subvolume.
12479 * util/grub.d/20_linux_xen.in: Likewise.
12480
12481 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12482
12483 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12484 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12485
12486 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12487 Build a list of relevant visible mounts using the mnt_id and
12488 parent_mnt_id fields, and then scan that list at the end.
12489
12490 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12491
12492 * docs/grub.texi (normal): New section.
12493 (normal_exit): New section.
12494 (Embedded configuration): Add reference to normal.
12495 (GRUB only offers a rescue shell): Likewise.
12496 * docs/grub-dev.texi (Error Handling): Fix typo.
12497
12498 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12499
12500 * NEWS: Drop obsolete entry about probe-only btrfs support.
12501
12502 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12503
12504 * util/import_gcry.py: Fix typo.
12505
12506 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12507
12508 * NEWS: Add btrfs support.
12509
12510 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12511 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12512
12513 BtrFS support. Written by me (Vladimir) with important bugfixes and
12514 even more important testing by Colin.
12515
12516 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12517 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12518 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12519 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12520 mem_input_off and mem_input. All users updated to accept in-RAM input.
12521 (gzio_seek): New function.
12522 (test_zlib_header): Likewise.
12523 (grub_gzio_read): Likewise.
12524 (grub_zlib_decompress): Likewise.
12525 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12526 Accept partial and non-virtual mounts.
12527 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12528 avoid receiving /dev/dm-X as device.
12529 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12530 Handle bind and partial mounts.
12531 * grub-core/lib/crc.c: New file.
12532 * include/grub/deflate.h: Likewise.
12533 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12534 proto.
12535 * include/grub/lib/crc.h: New file.
12536
12537 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12538
12539 Implement automatic module license checking according to new GNU
12540 guidelines.
12541
12542 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12543 (grub_dl_load_core): Use grub_dl_check_license.
12544 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12545 (GRUB_MOD_LICENSE): Likewise.
12546 (GRUB_MOD_DUAL_LICENSE): Likewise.
12547 All modules updated.
12548
12549 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12550
12551 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12552 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12553 loaders.
12554 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12555
12556 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12557
12558 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12559
12560 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12561
12562 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12563 failed.
12564
12565 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12566
12567 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12568 parenthesis in the middle of the filename.
12569
12570 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12571
12572 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12573 rather than trying to put initrd way too high.
12574 Reported by: Ryan Lortie <desrt@desrt.ca>
12575
12576 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12577
12578 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12579 improperly removed string.
12580
12581 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12582
12583 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12584 is_disk.
12585 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12586 (open_device) Likewise.
12587 (grub_util_biosdisk_close): Likewise.
12588 Reported by: Mark Korenberg.
12589
12590 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12591
12592 * util/grub-mkconfig_lib.in: Add missing quotes.
12593
12594 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12595
12596 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12597 is NULL.
12598
12599 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 Dynamically count the number of lines for the lower banner.
12602
12603 * grub-core/normal/menu_entry.c (per_term_screen): New member
12604 num_entries.
12605 (print_down): Use num_entries.
12606 (update_screen): Likewise.
12607 (grub_menu_entry_run): Set num_entries.
12608 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12609 num_entries.
12610 (grub_print_message_indented): Move real part to ...
12611 (grub_print_message_indented_real): ... here. Additional argument
12612 dry_run.
12613 (draw_border): Additional argument num_entries.
12614 (print_message): Additional argument dry_run.
12615 (print_entries): Receive menu viewer data.
12616 (grub_menu_init_page): New argment num_entries.
12617 (menu_text_set_chosen_entry): Use num_entries.
12618 (grub_menu_try_text): Likewise.
12619 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12620 All users updated.
12621 (grub_ucs4_count_lines): New function.
12622 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12623 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12624 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12625 (grub_term_border_height): Likewise.
12626 (grub_term_num_entries): Likewise.
12627
12628 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12629
12630 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
12631 Remove now unused string.
12632
12633 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12634
12635 * docs/grub-dev.texi (Finding your way around): Update for 1.99
12636 build system.
12637 (Getting started): GRUB is developed in Bazaar now, not Subversion.
12638
12639 (Comment): Fix typo.
12640 (Getting started): General copy-editing.
12641 (Typical Development Experience): Likewise.
12642 (Error Handling): Likewise.
12643 (Video API): Likewise.
12644
12645 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12646
12647 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
12648 throughout.
12649
12650 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12651
12652 * util/grub-mkimage.c (main): Handle special naming of yeeloong
12653 directory.
12654
12655 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12656
12657 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
12658 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
12659 "development".
12660
12661 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12662
12663 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
12664 grub_strcpy since the lines aren't necessarily 0-terminated.
12665
12666 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12667
12668 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
12669 root on legacy.
12670
12671 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12672
12673 * grub-core/commands/probe.c (options): Argument to set isn't optional.
12674 (GRUB_MOD_INIT): DEVICE isn't optional.
12675
12676 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12677
12678 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
12679 word on new line if it's too long anyway. Fixes a hang.
12680
12681 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12682
12683 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
12684 const.
12685 * util/grub-setup.c (main): Reuse md device name if available.
12686 * util/raid.c (grub_util_raid_getmembers): Receive device name and
12687 not GRUB name as argument.
12688 Based on patch by: Florian Wagner <fwagner>.
12689
12690 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12691
12692 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12693 Place mbi on low memory for better compatibility.
12694
12695 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
12698
12699 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12700 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12701
12702 * autogen.sh: Ensure that collate and ctype locale is C.
12703 * conf/Makefile.common: Likewise.
12704
12705 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12706
12707 * grub-core/normal/menu.c: Add missing include.
12708
12709 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
12712
12713 2011-04-08 Martin Zuther <mzuther@mzuther.de>
12714
12715 * util/grub-mkconfig.in: Ignore emacsen backup.
12716
12717 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12718
12719 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
12720 on open.
12721 (grub_util_biosdisk_close): Likewise.
12722
12723 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
12726 const attribute and use grub_isdigit.
12727
12728 2011-04-06 Andrey <dev_null@ukr.net>
12729
12730 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
12731 gcc warning.
12732
12733 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
12736 useful grub_dprintf's.
12737
12738 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
12741
12742 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12743
12744 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
12745
12746 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12747
12748 Output errors if theme loading failed.
12749
12750 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
12751 grub_gfxterm_fullscreen on error paths to ...
12752 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
12753 theme loading error.
12754
12755 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
12758 space for older compilers.
12759 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12760
12761 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12762
12763 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
12764 and report them as not RAID members since they are useless for GRUB.
12765 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12766
12767 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 Increase LVM implementation robustness in order not to crash on
12770 configurations like pvmove. Previously code assumed that in some places
12771 only lvs or only pvs are used whereas it seems that they are used
12772 interchangeably.
12773
12774 * grub-core/disk/lvm.c (read_node): New function.
12775 (read_lv): Use read_node.
12776 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
12777 Match volumes only at the end when all lvs are found. Take both
12778 pvs (first) and lvs (second) into account.
12779 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
12780 mirror_* into node_*. All users updated.
12781 (grub_lvm_stripe): Merge this ...
12782 (grub_lvm_mirror): ... and this ...
12783 (grub_lvm_node): ... into this. All users updated.
12784
12785 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12786
12787 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
12788 of function to allow further scanning for LVMs.
12789
12790 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12791
12792 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
12793 on failed seek as it breaks open fd reusage.
12794
12795 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12796
12797 * util/grub-install.in: Add a recommendation to use --recheck before
12798 reporting bugs.
12799
12800 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12801
12802 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
12803 are obtained.
12804
12805 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12806
12807 GRUB developper manual based on existing Internals section and
12808 contributions by the various authors with active copyright assignment.
12809
12810 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
12811 * docs/font_char_metrics.png: New file.
12812 * docs/font_char_metrics.txt: Likewise.
12813 * docs/grub-dev.texi: Likewise.
12814 * docs/grub.texi (Internals): Move from here ...
12815 * docs/grub-dev.texi: ... here.
12816
12817 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12818
12819 Store the loopback device as data on loopback grub_disk structures,
12820 rather than the file it points to. This fixes use of freed memory
12821 if an existing loopback device is replaced.
12822
12823 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
12824 disk->data, not dev->file.
12825 (grub_loopback_read): Adjust file assignment to match.
12826 Fixes Ubuntu bug #742967.
12827
12828 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12829
12830 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
12831 when replacing an existing device.
12832
12833 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
12834
12835 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
12836 memory corruptions.
12837
12838 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
12839 unsigned.
12840 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
12841 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
12842 (grub_jfs_read_inode): Likewise.
12843 (grub_jfs_opendir): Likewise. Remove now useless casts.
12844 (grub_jfs_getent): Likewise.
12845 Make ino a grub_uint32_t rather than int.
12846 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
12847 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
12848 division and module with bit operations.
12849 (grub_jfs_find_file): Make ino a grub_uint32_t.
12850 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
12851
12852 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12853
12854 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
12855 warning. (This was in fact always initialised before use, but GCC
12856 wasn't smart enough to prove that.)
12857 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12858
12859 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
12862 stack alignment.
12863 (efi_wrap_1): Likewise.
12864 (efi_wrap_2): Likewise.
12865 (efi_wrap_3): Likewise.
12866 (efi_wrap_4): Likewise.
12867 (efi_wrap_5): Likewise.
12868 (efi_wrap_6): Likewise.
12869 (efi_wrap_10): Likewise.
12870 Based on information by: Red Hat/Peter Jones.
12871
12872 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12873
12874 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
12875 set-but-not-used variable.
12876
12877 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12878
12879 * docs/grub.texi (Simple configuration): Be more explicit about
12880 GRUB_DEFAULT, and add an example.
12881 Reported by: Leslie Rhorer.
12882
12883 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12884
12885 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
12886 shell".
12887
12888 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12889
12890 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
12891 * util/grub.d/20_linux_xen.in: Likewise.
12892
12893 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12894
12895 * util/grub.d/10_linux.in: Try alternative config filenames where
12896 we parse config file.
12897 * util/grub.d/20_linux_xen.in: Likewise.
12898
12899 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12900
12901 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
12902 * util/grub.d/20_linux_xen.in: Likewise.
12903
12904 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 * grub-core/disk/raid.c (insert_array): Add few potentially
12907 useful grub_util_info.
12908 (grub_raid_register): Likewise.
12909
12910 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12911
12912 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
12913 Preserve partition number in mdadm code path.
12914
12915 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
12918 few potentially useful grub_util_info.
12919
12920 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
12923
12924 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12925
12926 * docs/grub.texi (default): Use @example rather than nested
12927 itemized lists to avoid breaking gendocs.
12928
12929 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12930
12931 * docs/grub.texi (Future): Update.
12932
12933 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12934
12935 * docs/grub.texi (Environment): New chapter.
12936 (Changes from GRUB Legacy): Link to "Environment block" section for
12937 details of limitations.
12938 (Simple configuration): Likewise. Link to documentation of gfxmode
12939 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
12940 respectively.
12941 (Shell-like scripting): Note that normal variables are stored in the
12942 environment.
12943 (gettext): Link to documentation of lang and locale_dir.
12944 (list_env): New section.
12945 (load_env): New section.
12946 (save_env): New section.
12947
12948 (Reporting bugs): Fix typo.
12949
12950 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12951
12952 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
12953 the example.
12954
12955 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 * grub-core/term/at_keyboard.c (set_scancodes)
12958 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
12959
12960 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12961
12962 * docs/grub.texi (Menu-specific commands): Remove some semantics
12963 that were true in GRUB Legacy but not in GRUB 2.
12964 (submenu): New section.
12965 (false): New section.
12966 (read): New section.
12967 (true): New section.
12968
12969 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12970
12971 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
12972
12973 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12974
12975 * docs/grub.texi (Simple configuration): Explain some of the
12976 current limitations of grub-mkconfig.
12977 Reported by: Leslie Rhorer.
12978
12979 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 Old macs search for boot.efi rather than for bootia32.efi.
12982
12983 * util/grub-install.in: Copy bootia32.efi to boot.efi.
12984 * util/grub-mkrescue.in: Likewise.
12985 Suggested by: Peter Jones.
12986
12987 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12988
12989 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
12990
12991 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
12994 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
12995 (grub_lvm_mirror): New struct.
12996 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
12997 (grub_lvm_iterate): Iterate only visible volumes.
12998 (grub_lvm_read): Factor out to ..
12999 (read_lv): ... this. Support mirrors.
13000 (grub_lvm_read): New wrapper function.
13001 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13002 stripped or mirrored.
13003
13004 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13005
13006 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13007
13008 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13009
13010 * docs/grub.texi (loopback): New section.
13011
13012 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13013
13014 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13015 removed -p option.
13016
13017 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13018
13019 * docs/grub.texi (BIOS installation): New section, partly based on
13020 previous text in other sections.
13021 (Installing GRUB using grub-install): Replace BIOS discussion with a
13022 cross-reference.
13023 (Images): Likewise.
13024
13025 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13028 [HAVE_DIOCGDINFO]: Add safety checks.
13029
13030 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13031
13032 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13033 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13034
13035 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13036
13037 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13038 real_sb->size is zero (e.g. RAID-0), get the disk size from
13039 real_sb->data_size instead.
13040 Fixes Ubuntu bug #743136.
13041
13042 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13043
13044 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13045 printf clauses for printing size and start.
13046
13047 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13048
13049 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13050 Reported and tested by: Timothy Nikkel.
13051
13052 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13053
13054 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13055 (dirty_region_add_real): ... this.
13056 (dirty_region_add): Don't discard margin refresh when performing
13057 scheduled repaint.
13058
13059 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13060
13061 * grub-core/lib/relocator.c (allocate_regstart)
13062 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13063 terminals are capabple of malloc-free operation.
13064 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13065 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13066
13067 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13068
13069 * util/grub-setup.c: Copy the partition table zone if floppy support
13070 is disabled, even if no partition table is found.
13071
13072 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13073 during POST if an invalid partition table is contained in the PBR
13074 of the active partition when GRUB is installed to a partition.
13075
13076 2011-03-28 Colin Watson <cjwatson@debian.org>
13077
13078 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13079 comment.
13080
13081 2011-03-28 Colin Watson <cjwatson@debian.org>
13082
13083 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13084 to be specific about what kind of RAID device we're scanning for.
13085
13086 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13087
13088 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13089 return freed string.
13090
13091 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13092
13093 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13094
13095 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 Use libgeom on FreeBSD to detect partitions.
13098
13099 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13100 (grub-mkrelpath): Likewise.
13101 (grub-script-check): Likewise.
13102 (grub-editenv): Likewise.
13103 (grub-mkpasswd-pbkdf2): Likewise.
13104 (grub-fstest): Likewise.
13105 (grub-mkfont): Likewise.
13106 (grub-mkdevicemap): Likewise.
13107 (grub-probe): Likewise.
13108 (grub-setup): Likewise.
13109 (grub-ofpathname): Likewise.
13110 (grub-mklayout): Likewise.
13111 (example_unit_test): Likewise.
13112 (grub-menulst2cfg): Likewise.
13113 * grub-core/Makefile.core.def (grub-emu): Likewise.
13114 (grub-emu-lite): Likewise.
13115 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13116 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13117 define HAVE_DIOCGDINFO.
13118 (follow_geom_up) [FreeBSD]: New function.
13119 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13120 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13121 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13122 unconditionally of HAVE_DIOCGDINFO.
13123
13124 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13125
13126 Fix FreeBSD compilation problem.
13127
13128 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13129 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13130
13131 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13132
13133 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13134 Switch back to page zero before loading a kernel, since some kernel
13135 drivers expect that.
13136 Thanks to: Felix Kuehling.
13137
13138 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13141 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13142 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13143
13144 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13145
13146 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13147 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13148
13149 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13150
13151 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13152 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13153 malloc is disabled.
13154
13155 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13156
13157 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13158 for modules headers when counting the needed allocation size.
13159
13160 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13161
13162 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13163 if no ASCII character is found to prevent crash.
13164
13165 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13166
13167 * grub-core/video/bitmap.c (match_extension): Ignore case.
13168
13169 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13170
13171 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13172
13173 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13174
13175 * grub-core/script/parser.y: Declare "time" as valid argument.
13176
13177 2011-03-23 Peter Jones <pjones@redhat.com>
13178
13179 Fix incorrect assert failure reporting.
13180
13181 * grub-core/tests/example_functional_test.c (example_test): Add
13182 a failure comment.
13183 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13184 (failure_start): ...this. Check that malloc succeeded.
13185 Don't call xvasprintf. Return failure struct.
13186 (failure_append_vtext): New function.
13187 (failure_append_text): Likewise.
13188 (add_failure): Likewise.
13189 (grub_test_assert_helper): Likewise.
13190 * include/grub/test.h (grub_test_assert_helper): New declaration.
13191 (grub_test_assert): Macro rewritten.
13192
13193 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13194
13195 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13196
13197 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13200
13201 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13204 into GRUB-style one.
13205
13206 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13209 error and not grub_errno.
13210 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13211
13212 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13213
13214 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13215 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13216
13217 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13218
13219 * grub-core/efiemu/i386/pc/cfgtables.c
13220 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13221 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13222 (grub_xnu_unlock): Likewise.
13223 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13224
13225 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13228 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13229 * grub-core/commands/hashsum.c (aliases): Likewise.
13230 * grub-core/commands/setpci.c (pci_registers): Likewise.
13231 * grub-core/disk/usbms.c (attach_hook): Likewise.
13232 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13233 (zio_checksum_table): Likewise.
13234 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13235 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13236 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13237 * grub-core/lib/relocator.c (leftovers): Likewise.
13238 (extra_blocks): Likewise.
13239 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13240 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13241 (modules_last): Likewise.
13242 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13243 (devices): Likewise.
13244 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13245 (modules_last): Likewise.
13246 * grub-core/normal/auth.c (users): Likewise.
13247 * grub-core/normal/context.c (initial_menu): Likewise.
13248 (current_menu): Likewise.
13249 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13250 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13251 (grub_serial_terminfo_input_template): Likewise.
13252 (grub_serial_terminfo_output_template): Likewise.
13253 (grub_serial_terminfo_input): Likewise.
13254 (grub_serial_terminfo_output): Likewise.
13255 (registered): Likewise.
13256 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13257
13258 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13259
13260 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13261 grub_video_mode_type_t.
13262 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13263 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13264 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13265
13266 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * util/grub-install.in: Correct the x86-64 name as x86_64.
13269
13270 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13271
13272 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13273 initial chunk read from the kernel always includes GRUB's multiboot
13274 header, which is now outside the first sector.
13275
13276 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13277
13278 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13279 cached mmap_size, so that this works correctly when called multiple
13280 times.
13281 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13282
13283 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13284
13285 * docs/grub.texi (Simple configuration): Tidy up formatting.
13286
13287 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13288
13289 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13290 Set-but-not-used variable removed.
13291
13292 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13293
13294 Workaround yet another IEEE1275 bug.
13295
13296 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13297 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13298 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13299 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13300 is set.
13301 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13302 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13303
13304 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13307 error.
13308
13309 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13310
13311 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13312 empty, since in that case we can only generate either nothing or a
13313 syntactically invalid configuration file.
13314 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13315
13316 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13317
13318 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13319 (Making a GRUB bootable CD-ROM): Likewise.
13320 (Invoking grub-mkrescue): New section.
13321 Reported by: Yann Dirson. Fixes Debian bug #612585.
13322
13323 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13324
13325 * util/grub-install.in: Remove unnecessary brackets from tr
13326 arguments.
13327 * util/grub.d/10_hurd.in: Likewise.
13328 * util/grub.d/10_kfreebsd.in: Likewise.
13329 * util/grub.d/10_linux.in: Likewise.
13330 * util/grub.d/20_linux_xen.in: Likewise.
13331 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13332
13333 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13334
13335 * include/grub/file.h (not_easly_seekable): Rename to ...
13336 (not_easily_seekable): ... this. Update all users.
13337
13338 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13339
13340 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13341 grub-mkrescue.
13342
13343 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13344
13345 * util/grub-mkimage.c (generate_image): Refuse to create the images
13346 bigger than the actual flash (512K) in Loongson machines. 512K is also
13347 the biggest chip supported by them.
13348
13349 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13350
13351 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13352
13353 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13354
13355 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13356 super_offset field.
13357
13358 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13359
13360 * util/grub-install.in: Ignore install device on platforms
13361 where it doesn't make sense. Always use UUIDs except on pc, efi and
13362 sparc64.
13363 Reported by: Daniel Kahn Gillmor.
13364
13365 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13366
13367 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13368
13369 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13372 (iterate_real): Don't rely on partition being non-NULL.
13373
13374 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13375
13376 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13377 supported platforms. Put a compile time assert for this rather than
13378 generate a warning with 32-bit shift.
13379
13380 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13383 logical expression more readable.
13384
13385 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13386
13387 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13388 even if some elements have a name.
13389 Reported by: Alexander GQ Gerasiov.
13390
13391 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13392
13393 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13394 path unreadable if `grub-probe -t abstraction' fails, for example if
13395 memberlist fails on an LVM volume group.
13396 Reported by: Darius Jahandarie.
13397
13398 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13399
13400 * docs/grub.texi (Simple configuration): Document
13401 GRUB_PRELOAD_MODULES.
13402
13403 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13404
13405 * .bzrignore: Remove nonexistent grub-pbkdf2.
13406
13407 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13408
13409 * configure.ac: Bump version to 1.99~rc1.
13410
13411 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13412
13413 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13414 for safety.
13415
13416 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13417
13418 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13419 module.
13420
13421 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13422
13423 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13424
13425 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13428 diskdevid.
13429
13430 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 Fix compilation on cygwin.
13433
13434 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13435 -R .drectve on cygwin.
13436 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13437 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13438 (COND_CYGWIN): New condition.
13439 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13440 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13441 not @TARGET_OBJ2ELF@.
13442 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13443 type to determine whether aux is to be used.
13444
13445 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13446
13447 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13448 realpath'ed device string.
13449 Handle floppy (somewhat).
13450 Issue error in unknown case rather than garbage.
13451 Reported by: Axel Beckert.
13452
13453 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13454
13455 * util/grub.d/00_header.in (load_video): Handle the case when no video
13456 drivers available.
13457 Thanks to: Axel Beckert.
13458
13459 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13460
13461 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13462 variable. Fixes problem on big endian platforms.
13463
13464 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13467 It doesn't work well there.
13468
13469 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13470
13471 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13472 warning.
13473 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13474 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13475 counter.
13476
13477 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 Use alias->path rather than buggy "canon".
13480
13481 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13482 (ofdisk_hash_add): New argument curcan. All users updated.
13483
13484 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13485
13486 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13487
13488 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13489
13490 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13491 loadmask before doing any calculations. Use correct type for offset.
13492 (grub_linux_load64): Likewise.
13493
13494 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13495
13496 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13497 with NULL.
13498 (console_grub_equivalences_unshift): Likewise.
13499 Reported by: Daniel Dehennin.
13500
13501 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13504 (set_env_limn_ro): Likewise.
13505 (GRUB_MOD_INIT): Likewise.
13506 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13507 ARRAY_SIZE while on it.
13508 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13509 * grub-core/normal/context.c (grub_env_export): Move from here ...
13510 * grub-core/kern/env.c (grub_env_export): ... here.
13511 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13512 prefix.
13513 * grub-core/kern/main.c (grub_main): Export root and prefix.
13514 * include/grub/env.h (grub_env_export): Export.
13515 Reported by: Seth Goldberg.
13516
13517 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13520 Take into account space used by ELF sections and multiboot palette.
13521 Reported by: Grégoire Sutre.
13522
13523 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * BUGS: New file.
13526
13527 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 Pass more appropriate video id to Linux.
13530
13531 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13532 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13533 fill have_vga.
13534 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13535 shift params->lfb_size.
13536 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13537
13538 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13541
13542 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13543
13544 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13545 separator and pass bootpath/devid even if only one of them is available.
13546 Reported by: Seth Goldberg.
13547
13548 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13551 implementations bug on them.
13552
13553 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13554 memory.
13555 (filter_memory_map): Likewise.
13556
13557 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13558
13559 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13560 Reported by: nebuchadnezzar.
13561
13562 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13565 Reported by: nebuchadnezzar.
13566
13567 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 Submenu default support.
13570
13571 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13572 auto_boot. All users updated.
13573 Declared static.
13574 Handle chosen and default with submenus.
13575 (grub_menu_execute_with_fallback): Declared static.
13576 Don't notify failure if autobooted. Upper level does it.
13577 (menuentry_eq): New function.
13578 (get_entry_number): Use menuentry_eq.
13579 (show_menu): New parameter "autobooted". All users updated.
13580 (grub_show_menu): Likewise.
13581 * include/grub/normal.h (grub_show_menu): Likewise.
13582 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13583 (grub_menu_execute_with_fallback): Likewise.
13584
13585 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13586
13587 * util/grub-mklayout.c (usage): Update help text.
13588
13589 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13590
13591 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13592
13593 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * util/grub-menulst2cfg.c (main): Trim the line.
13596
13597 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13598
13599 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13600 (grub_machine_init): Don't check amount of low memory as reportedly
13601 INT 12h can be broken and if low memory is too low we wouldn't have
13602 gotten into grub_machine_init anyway.
13603
13604 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13605
13606 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13607 (grub_machine_mmap_iterate): Take low memory into account
13608
13609 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13612 badfs.
13613 Reported by: TiCPU.
13614
13615 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13616
13617 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13618 members errors.
13619
13620 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13621
13622 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13623 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13624
13625 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13626
13627 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
13628 openbsd and netbsd types being in part_bsd module.
13629
13630 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
13633 (_FILE_OFFSET_BITS): Likewise.
13634 Reported by: Seth Goldberg.
13635
13636 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13637
13638 * configure.ac: Check for libdevmapper header.
13639
13640 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
13643 avoid aliasing.
13644 (fzap_lookup): Likewise.
13645 (dnode_get): Likewise.
13646 (make_mdn): Likewise.
13647 (zfs_mount): Likewise.
13648 (fzap_iterate): Use temporary pointer to avoid aliasing.
13649 (grub_zfs_read): Likewise.
13650 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
13651 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
13652 pointers to avoid aliasing.
13653 (grub_cmd_xnu_kernel64): Likewise.
13654 (grub_xnu_load_driver): Likewise.
13655
13656 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13657
13658 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
13659 aliasing warning.
13660 (grub_cmd_terminal_output): Likewise.
13661 Reported and tested by: Grégoire Sutre.
13662
13663 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
13666 warning.
13667 Reported and tested by: Grégoire Sutre.
13668
13669 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 * configure.ac: Do CPU substitution even if it's specified explicitly.
13672 Reported and tested by: Alain Greppin.
13673
13674 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13675
13676 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
13677 Reported and tested by: Alain Greppin.
13678
13679 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13680
13681 Satisfy some bison versions need for inttypes.h.
13682
13683 * grub-core/lib/posix_wrap/inttypes.h: New file.
13684 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
13685 (int16_t): Likewise.
13686 (int32_t): Likewise.
13687 (int64_t): Likewise.
13688 Reported and tested by: Alain Greppin.
13689
13690 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13691
13692 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
13693 Silence spurious warning.
13694 Reported and tested by: Alain Greppin.
13695
13696 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13697
13698 * docs/grub.texi (Support automatic decompression): Update with xz
13699 decompression support.
13700
13701 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13702
13703 Improve loaders' kernel command line handling.
13704
13705 * grub-core/lib/cmdline.c: New file.
13706 * include/grub/lib/cmdline.h: Likewise.
13707 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
13708 grub_create_loader_cmdline to create kernel command line.
13709 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13710 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
13711 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
13712 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
13713 (linux): Add lib/cmdline.c on common.
13714
13715 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
13718 inopos might be unaligned.
13719
13720 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13721
13722 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
13723 endian transformations.
13724 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13725 Based on report by: Doug Nazar.
13726
13727 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
13728
13729 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
13730 array->members[i].start_sector.
13731 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
13732
13733 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13734
13735 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
13736 Reported and tested by: Grégoire Sutre.
13737
13738 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13739
13740 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
13741 avoid causing test failures by clearing the screen.
13742
13743 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13744
13745 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13746 Fix prefix check to handle the case where dir ends with a slash
13747 (most significantly, "/" itself).
13748 Reported by: Michael Vogt.
13749
13750 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13751
13752 Run terminfo_cls on initing terminfo output to clear the screen and
13753 move the cursor to (0,0).
13754
13755 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
13756 Call grub_terminfo_output_init.
13757 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
13758 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
13759 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
13760
13761 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13762
13763 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
13764 only when needed.
13765
13766 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
13769 CTRL.
13770
13771 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13772
13773 The E820 type 5 is BADRAM, not EXEC_CODE.
13774
13775 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13776 (GRUB_E820_BADRAM): New define.
13777 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
13778 into reserved. Propagate BADRAM.
13779 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13780 (GRUB_E820_BADRAM): New define.
13781
13782 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13783
13784 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
13785 Ignore the memory post-4G.
13786 (grub_relocator_firmware_alloc_region): Additional debug statement.
13787
13788 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13789
13790 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
13791 names.
13792 Reported by: David Pravec.
13793
13794 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13795
13796 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
13797 BIOSes.
13798
13799 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
13802 Prevent overflow.
13803 (grub_reed_solomon_recover): Likewise.
13804
13805 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13806
13807 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
13808
13809 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13810
13811 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
13812 variable.
13813
13814 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
13815
13816 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
13817 descriptions of extract_legacy_entries_source and
13818 extract_legacy_entries_configfile.
13819 Reported by: Seung Soo, Ha.
13820
13821 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
13822
13823 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
13824 on devices that do not implement function 0.
13825
13826 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
13827
13828 * grub-core/fs/hfsplus.c: Make parent unsigned.
13829 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
13830 overflows.
13831 (grub_hfsplus_cmp_extkey): Likewise
13832
13833 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13834
13835 * util/grub-install.in: Correctly use bootloader_id and not
13836 GRUB_DISTRIBUTOR on efibootmgr line.
13837
13838 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13839
13840 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
13841
13842 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
13843
13844 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
13845 Xen and reorder menu item wording to make it clearer that this entry
13846 will launch Xen. Print separate messages when loading Xen and
13847 Linux.
13848
13849 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
13852 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
13853 loop in case of incorrect amiga partmap.
13854
13855 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
13858 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
13859 Reported by:EHeM.
13860
13861 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
13864 spurious warning.
13865 Reported by: crocket
13866
13867 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
13870 Preload EFIemu.
13871 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
13872
13873 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13874
13875 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
13876 is loaded
13877 (grub_cmd_xnu_kextdir): Likewise.
13878 (grub_cmd_xnu_splash): Likewise.
13879
13880 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13881
13882 Avoid using Reed-Solomon with 0 redundancy.
13883
13884 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
13885 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
13886 or 0 redundancy.
13887 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
13888 (grub_reed_solomon_recover): Likewise.
13889
13890 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13891
13892 Don't use disk subsystem in freebsd_boot.
13893
13894 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
13895 (freebsd_biosdev): Likewise.
13896 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
13897 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
13898
13899 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13900
13901 Handling of files of unknown size is currently limited. They can't be
13902 used e.g. for initrd or modules. Moreover gzip handling of not
13903 easily seekable files is buggy. Disable unknown file size for now. May
13904 be inefficient but works.
13905
13906 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
13907 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
13908
13909 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
13910
13911 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
13912 floppy probe.
13913
13914 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
13915
13916 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
13917
13918 2010-12-25 Shea Levy <shlevy>
13919
13920 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
13921
13922 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13923
13924 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
13925 Windows Server 2008.
13926 Reported by: Devin Giddings.
13927
13928 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13929
13930 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
13931 writing an error message because of async power management.
13932 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
13933 (grub_reboot): Likewise.
13934
13935 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
13936
13937 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
13938 keep unit tests from failing when they shouldn't.
13939
13940 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13941
13942 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
13943 previous patch increased the size of the RS code by 20 bytes (at
13944 least with gcc-4.4), so increase this by 20 bytes to match.
13945 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13946
13947 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13948
13949 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
13950 scratch area. Make sure to initialise chosen in standalone mode as
13951 well as non-standalone.
13952 Reported by: Robert Hooker and Andy Whitcroft.
13953 Tested by: Andy Whitcroft.
13954
13955 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13956
13957 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
13958 constructing a new unescaped string and passing it to grub_xputs in
13959 one go, rather than passing characters to grub_printf one at a time.
13960
13961 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13962
13963 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
13964 initialising utf16.
13965
13966 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13967
13968 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
13969 comment. Add an extra layer of quotation, requiring the output of
13970 this function to be used in a printf format string.
13971 (gettext_printf): New function.
13972 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
13973 Extract translatable strings from here-documents and use a temporary
13974 variable instead, so that xgettext can find them.
13975 * util/grub.d/10_kfreebsd.in: Likewise.
13976 * util/grub.d/10_linux.in: Likewise.
13977 * util/grub.d/20_linux_xen.in: Likewise.
13978
13979 * po/grub.d.sed: New file.
13980 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
13981 arguments. Set c-format flags on all strings extracted from
13982 util/grub.d/ (xgettext refuses to include these itself for strings
13983 it extracted from a shell file, but these really are c-format).
13984
13985 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
13986
13987 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
13988 Avoid next pointing to nowhere.
13989
13990 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13991
13992 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
13993 rather than assuming than rootblock is exactly in the middle.
13994 (grub_affs_label): Likewise.
13995
13996 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13997
13998 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
13999 reserved_first_sector to 0.
14000 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14001 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14002 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14003
14004 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 Fix handling of UTF-16 UDF labels.
14007
14008 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14009 (read_string): .. here.
14010 (grub_udf_label): Use read_string.
14011
14012 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14013
14014 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14015 editor under argument scope.
14016 Reported by: Jordan Uggla
14017
14018 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14019
14020 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14021
14022 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14023
14024 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14025 line, and other keys scroll an entire page (previous handling was
14026 for \r and \n to scroll a page and other keys to scroll two lines).
14027
14028 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14029
14030 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14031 Set ptrdest to correct get_physical_target_address rather than
14032 incorrect get_virtual_current_address.
14033
14034 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14035
14036 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14037 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14038
14039 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14040
14041 * .bzrignore: Ignore grub-core/rs_decoder.S.
14042
14043 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14044
14045 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14046 .mo/.mo.gz opening sequence to ...
14047 (grub_mofile_open_lang): ... here.
14048 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14049 * util/grub.d/00_header.in (grub_lang): Include country part of
14050 locale.
14051 Reported by: Mario Limonciello.
14052
14053 2010-12-09 Robert Millan <rmh@gnu.org>
14054
14055 * NEWS: Document addition of ZFS support.
14056
14057 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14058
14059 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14060 rather than `/ 2', as the latter requires -Wa,--divide which would
14061 require bumping our minimum binutils version.
14062
14063 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14064
14065 * util/grub-script-check.c (main): Print script line number on
14066 error.
14067
14068 2010-12-01 Robert Millan <rmh@gnu.org>
14069
14070 * grub-core/fs/zfs/zfs.c: New file.
14071 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14072 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14073 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14074 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14075
14076 * include/grub/zfs/dmu.h: Likewise.
14077 * include/grub/zfs/dmu_objset.h: Likewise.
14078 * include/grub/zfs/dnode.h: Likewise.
14079 * include/grub/zfs/dsl_dataset.h: Likewise.
14080 * include/grub/zfs/dsl_dir.h: Likewise.
14081 * include/grub/zfs/sa_impl.h: Likewise.
14082 * include/grub/zfs/spa.h: Likewise.
14083 * include/grub/zfs/uberblock_impl.h: Likewise.
14084 * include/grub/zfs/vdev_impl.h: Likewise.
14085 * include/grub/zfs/zap_impl.h: Likewise.
14086 * include/grub/zfs/zap_leaf.h: Likewise.
14087 * include/grub/zfs/zfs.h: Likewise.
14088 * include/grub/zfs/zfs_acl.h: Likewise.
14089 * include/grub/zfs/zfs_znode.h: Likewise.
14090 * include/grub/zfs/zil.h: Likewise.
14091 * include/grub/zfs/zio.h: Likewise.
14092 * include/grub/zfs/zio_checksum.h: Likewise.
14093
14094 * Makefile.util.def: Build ZFS into libgrubmods.
14095 * grub-core/Makefile.core.def: Build zfs.mod.
14096
14097 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14098
14099 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14100 variable.
14101 * grub-core/commands/wildcard.c (match_files): Likewise.
14102
14103 2010-11-30 Robert Millan <rmh@gnu.org>
14104
14105 * grub-core/loader/i386/bsd.c
14106 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14107 whether kernel is loaded using grub_loader_is_loaded(), rather
14108 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14109 certain error conditions.
14110
14111 2010-11-30 Robert Millan <rmh@gnu.org>
14112
14113 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14114 (grub_cmd_echo): Call grub_refresh() after printing a message.
14115
14116 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 Avoid using tricks for initialising endian variables.
14119
14120 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14121 Make const.
14122 (GRUB_MOD_INIT): Don't byte-swap.
14123 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14124 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14125 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14126 (grub_swap_bytes32_compile_time): Likewise.
14127 (grub_cpu_to_le32_compile_time): Likewise.
14128 (grub_cpu_to_le16_compile_time): Likewise.
14129
14130 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 * util/grub-setup.c (setup): Stop recommending --force. People who
14133 understand the dangers of blocklists are able to find this option
14134 anyway and the ones who don't shouldn't use it anyway.
14135
14136 2010-11-26 Robert Millan <rmh@gnu.org>
14137
14138 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14139 Update all users.
14140
14141 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14142
14143 Fix LVM-on-RAID probing.
14144
14145 * util/grub-probe.c (probe): Remember which disk was detected as
14146 RAID (perhaps an LVM physical volume). Use that disk's raidname
14147 rather than that of the top-level disk.
14148
14149 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14150
14151 Fix cmdline argument quotes for setparams command of menuentry
14152 definitions.
14153
14154 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14155 quotes for arguments.
14156 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14157 grub_strchrsub function instead.
14158
14159 * include/grub/misc.h (grub_strchrsub): New function.
14160
14161 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14162
14163 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14164 effort by skipping "." and ".." entries up-front.
14165 Suggested by: Michael Lazarev.
14166
14167 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14168
14169 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14170 ldflags to ldadd, to fix link line ordering.
14171 (none_decompress): Likewise.
14172
14173 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14174
14175 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14176 platforms.
14177 (grub-emu-lite): Remove kern/emu/cache.S.
14178
14179 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14180
14181 * util/deviceiter.c (compare_devices): If the by-id link for a
14182 device couldn't be resolved, fall back to sorting by the by-id link
14183 rather than segfaulting.
14184 Reported and tested by: Daniel Mierswa.
14185
14186 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14187
14188 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14189 ldflags, to fix link line ordering.
14190
14191 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14192
14193 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14194 linkers are picky about this.
14195
14196 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14197
14198 * grub-core/Makefile.am (command.lst): Adjust sed expression
14199 ordering so that extended and priority commands aren't treated as
14200 ordinary commands.
14201
14202 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14203
14204 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14205 Remove byte-swapping function calls, which are not valid in
14206 structure initialisers.
14207 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14208 non-const.
14209 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14210 grub_gpt_partition_type_bios_boot.
14211
14212 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14213
14214 Fix test program build on GNU/kFreeBSD.
14215
14216 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14217 $(LIBNVPAIR)' library dependencies.
14218
14219 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14220
14221 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14222
14223 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14224
14225 * util/grub-install.in: Remove excessive quoting that broke
14226 installations to RAID devices.
14227
14228 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14229
14230 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14231 bootloader version instead of 0.
14232
14233 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14234
14235 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14236 warning.
14237
14238 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14239
14240 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14241 retrieve the metadat sector if size isn't known.
14242 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14243
14244 2010-11-18 Robert Millan <rmh@gnu.org>
14245
14246 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14247 with grub_memcmp().
14248
14249 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14252 arrow.
14253 Reported by: Jordan Uggla.
14254
14255 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14256
14257 Make better UTF compliant.
14258
14259 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14260 sequences as incorrect.
14261 (grub_is_valid_utf8): Likewise.
14262 (grub_utf8_to_ucs4): Likewise.
14263 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14264 (grub_ucs4_to_utf8_alloc): Likewise.
14265 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14266
14267 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 Make legacy_source behave like source.
14270
14271 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14272 grub_show_menu.
14273 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14274
14275 2010-11-16 Colin Watson <cjwatson@debian.org>
14276
14277 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14278 (-Wunused implies -Wunused-parameter, but not vice versa).
14279
14280 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14281
14282 * configure.ac: Make error messages less confusing by testing for
14283 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14284 accepted, but produces a diagnostic if something else is wrong).
14285
14286 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14287
14288 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14289 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14290 (now unused).
14291 (grub_keyboard_controller_init)
14292 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14293 read the initial state since controller isn't inited yet.
14294
14295 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14298 allocate_regbeg may need to create new chunk header.
14299
14300 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 Fix quoting in legacy parser.
14303
14304 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14305 single quotes.
14306 (grub_legacy_parse): Likewise.
14307 Reported by: Jordan Uggla.
14308 Tested by: Jordan Uggla.
14309
14310 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 Don't add -lgcc on i386 and x86_64.
14313
14314 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14315 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14316 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14317
14318 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14319
14320 * configure.ac: Add -Wno-trampolines when supported.
14321
14322 2010-11-14 Modestas Vainius <modax@debian.org>
14323
14324 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14325 fakeraid.
14326
14327 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14328
14329 Add generic logical block size support for UDF.
14330
14331 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14332 (GRUB_UDF_BLKSZ): Removed.
14333 (struct grub_udf_data): New field "lbshift" to hold the logical block
14334 size of the file system in log2 format. All users updated.
14335 (sblocklist): Change type to unsigned.
14336 (grub_udf_mount): Change type of "sblklist" to unsigned.
14337 Move AVDP search before VRS recognition, because the latter requires
14338 knowledge of the logical block size, which is detected during the
14339 former.
14340 Detect and validate logical block size during AVDP search, adding
14341 support for block sizes 512, 1024 and 4096.
14342 Make VRS recognition independent of block size.
14343
14344 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14345
14346 Properly handle deleted files on UDF.
14347
14348 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14349 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14350 set.
14351
14352 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14353
14354 Support reading files larger than 2 GiB.
14355
14356 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14357 "offset" to grub_off_t.
14358 (grub_udf_read_file): Likewise for parameter "pos".
14359
14360 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14363 unavailable.
14364 (Simple configuration): Refer to Changes from GRUB Legacy about
14365 save_env availability.
14366
14367 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14368
14369 * util/grub-install.in: Ignore empty partition table detection
14370 instead of trying to include part_ module.
14371
14372 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14375 LVM on RAID support.
14376
14377 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 Properly define WORDS_BIGENDIAN in wrapped environments.
14380
14381 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14382 definition.
14383 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14384
14385 Reported by: Manoel Rebelo Abranches.
14386 Tested by: Manoel Rebelo Abranches.
14387
14388 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14389
14390 * util/grub-mkconfig.in: Fix quoting.
14391
14392 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14393
14394 Support big ext2 files.
14395
14396 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14397 (grub_ext2_read_block): Support triple indirect blocks.
14398 (grub_ext2_read_file): Use 64-bit types and read size_high.
14399 (grub_ext2_open): Read size_high.
14400 Reported by: Ximin Luo.
14401 Tested by: Manoel Rebelo Abranches.
14402
14403 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14404
14405 * util/grub-install.in: Handle filenames containing spaces.
14406 Reported by: Jordan Uggla.
14407 Tested by: Jordan Uggla.
14408
14409 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * util/grub-mkconfig.in (grub_script_check): New variable.
14412 Use grub_script_check instead of grub-script-check.
14413 Reported by: Barry Jackson.
14414
14415 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 * docs/grub.texi (menu): Correct the order.
14418 Reported by: D. Hugh Redelmeier.
14419
14420 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14423 jump.
14424
14425 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14426
14427 * include/grub/elfload.h (grub_elf32_size): New parameter.
14428 All users updated.
14429 Return maximum segments alignment.
14430 (grub_elf64_size): Likewise.
14431 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14432 Return maximum segments alignment.
14433 (grub_elf64_size): Likewise.
14434 * grub-core/loader/powerpc/ieee1275/linux.c:
14435 (grub_linux_claimmap_iterate): New function. Uses the
14436 "available" property in the "memory" node for memory allocation
14437 for kernel in the PowerPC loader.
14438 (grub_linux_load32): Correctly find linux entry point offset.
14439 (grub_linux_load64): Likewise.
14440
14441 2010-11-07 Robert Millan <rmh@gnu.org>
14442
14443 On mips-yeeloong, build with -march=loongson2f when this flag is
14444 available (GCC >= 4.4).
14445 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14446 `-march=mips3'.
14447 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14448 or otherwise add -march=mips3.
14449
14450 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14451
14452 Suppress shell expansion on echo '*' and echo "*" like cases.
14453 Reported by: Jordan Uggla.
14454
14455 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14456 string arguments before shell expansion.
14457 * tests/grub_cmd_echo.in: New testcases.
14458
14459 2010-11-07 Robert Millan <rmh@gnu.org>
14460
14461 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14462 transition.
14463
14464 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14465
14466 * grub-core/kern/emu/hostdisk.c
14467 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14468
14469 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14470
14471 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14472 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14473 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14474
14475 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14476
14477 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14478
14479 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14480
14481 * util/grub-install.in: Replace useless recomendation to pass
14482 --modules with a recomendation to report a bug.
14483
14484 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14485
14486 Properly register serial terminfo.
14487 Reported by: Jordan Uggla
14488
14489 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14490 const.
14491 (grub_serial_terminfo_output_template): Likewise.
14492 (grub_cmd_serial): Register "serial" with terminfo.
14493 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14494 grub_serial_terminfo_output.
14495
14496 2010-11-05 Robert Millan <rmh@gnu.org>
14497
14498 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14499 needed).
14500
14501 2010-11-05 Robert Millan <rmh@gnu.org>
14502
14503 On Yeeloong, pass machine type information to Linux.
14504
14505 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14506 (LOONGSON_MACHTYPE): New macro, set to
14507 "machtype=lemote-yeeloong-2f-8.9inches".
14508 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14509 additional argument to Linux.
14510
14511 2010-11-04 Robert Millan <rmh@gnu.org>
14512
14513 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14514 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14515 (its SATA disks are detected as slaveless IDE master drives on
14516 kFreeBSD).
14517 Reported by Carsten Aulbert.
14518
14519 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14520
14521 * util/bin2h.c (main): Fix spelling error in generated output.
14522
14523 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14524
14525 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14526
14527 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14528
14529 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14530 vga= option is supplied.
14531
14532 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14533
14534 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14535 * util/grub.d/10_kfreebsd.in: Likewise.
14536 * util/grub.d/10_linux.in: Likewise.
14537 * util/grub.d/20_linux_xen.in: Likewise.
14538
14539 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14540
14541 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14542 argument as an argument to no-argument option.
14543
14544 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14545
14546 * util/grub.d/10_linux.in: Add missing load_video with explicit
14547 GRUB_GFXPAYLOAD_LINUX.
14548
14549 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14550
14551 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14552
14553 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14554
14555 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14556 elements with invlid index.
14557 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14558 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14559 members.
14560 * include/grub/raid.h (grub_raid_member): New struct.
14561 (grub_raid_array): Transform devices and start_sector into usage of
14562 grub_raid_member. All users updated
14563 (allocated_devs): New member.
14564
14565 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14568 is modified
14569
14570 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14571
14572 NetBSD build fix for getline function conflict from gnulib.
14573
14574 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14575 components that depend on gnulib headers.
14576 (libgrubmods.a): Renamed from earlier libgrub.a.
14577 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14578
14579 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14580
14581 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14582 install rather than creating a broken install.
14583
14584 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14585
14586 * util/grub-setup.c (argp): Remove misleading example of installing to
14587 a partition.
14588
14589 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14590
14591 * util/grub-setup.c (setup): Clarify the error message.
14592
14593 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14596
14597 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 * grub-core/kern/emu/misc.c
14600 (grub_make_system_path_relative_to_its_root)
14601 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14602
14603 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14604
14605 * grub-core/kern/emu/misc.c
14606 (grub_make_system_path_relative_to_its_root): Revert r2882.
14607
14608 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14609
14610 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14611 useless field head. All users updated.
14612 (free_subchunk): Correct handling of IN_REGION subchunk.
14613
14614 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14615
14616 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14617 (Supported kernels): Likewise.
14618
14619 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14620
14621 Make mktemp invocations portable.
14622
14623 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14624 exit if mktemp fails.
14625 * tests/grub_script_blockarg.in: Likewise.
14626 * tests/partmap_test.in: Likewise.
14627 * tests/util/grub-shell-tester.in: Likewise.
14628 * tests/util/grub-shell.in: Likewise.
14629 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14630 * Makefile.am: Likewise, and chain shell commands with `&&'
14631 instead of ';'.
14632 * util/grub-mkrescue.in: Use the same explicit template as above, and
14633 exit if mktemp fails.
14634
14635 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
14636
14637 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
14638 Linux kernel, reported by Dennis Schridde.
14639
14640 2010-10-17 Szymon Janc <szymon@janc.net.pl>
14641
14642 * grub-core/normal/auth.c (grub_auth_check_authentication):
14643 Set-but-not-used variable removed.
14644
14645 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14646
14647 * docs/grub.texi (GNU/Linux): Document APM unavailability with
14648 32-bit linux protocol.
14649
14650 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
14653 cursor shape for sanity.
14654
14655 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 * docs/grub.texi (Installation): Document buggy BIOS install.
14658
14659 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 * docs/grub.texi (Installation): Indent.
14662
14663 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14664
14665 * util/grub-setup.c (setup): New parameter allow_floppy.
14666 (arguments): New member allow_floppy.
14667 (argp_parser): Handle --allow-floppy.
14668 (main): Pass allow_floppy.
14669 * util/grub-install.in: New option --allow-floppy passed though to
14670 grub-setup.
14671
14672 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 * util/grub-install.in: Handle partitionless disks.
14675
14676 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 * util/grub-setup.c (setup): Don't clean blocklists before readability
14679 verfification.
14680
14681 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14682
14683 * docs/grub.texi (Installation): Document embedding zone. Remove
14684 obsolete grub-install example.
14685
14686 2010-10-16 Szymon Janc <szymon@janc.net.pl>
14687
14688 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
14689 Set-but-not-used variable ifdef'ed.
14690 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
14691 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
14692 variable removed.
14693 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
14694 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
14695 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14696 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
14697 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
14698 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
14699 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
14700 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
14701 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
14702 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
14703 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
14704 Likewise.
14705
14706 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
14709 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
14710 enum value.
14711
14712 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14713
14714 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
14715 synonym to _S5_. Needed for some DSDTs.
14716
14717 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 Userspace ACPI parser debugging.
14720
14721 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
14722 headers and add relevant defines. Don't include standard headers.
14723 (main) [GRUB_DSDT_TEST]: New function.
14724 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
14725 Don't declare functions.
14726
14727 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 Remove dead grub_efi_mm_fini.
14730
14731 * grub-core/kern/efi/mm.c (allocated_page): Removed.
14732 (ALLOCATED_PAGES_SIZE): Likewise.
14733 (MAX_ALLOCATED_PAGES): Likewise.
14734 (allocated_pages): Likewise.
14735 (grub_efi_allocate_pages): Don't record allocated pages.
14736 (grub_efi_free_pages): Likewise.
14737 (grub_efi_mm_init): Likewise.
14738 (grub_efi_mm_fini): Removed.
14739
14740 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14741
14742 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
14743 (grub_efi_mm_init): Take into account the memory map size increase.
14744
14745 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14746
14747 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
14748 (serial_hw_put): Wait based on real time rather than port reads. Don't
14749 roken ports.
14750 * include/grub/serial.h (grub_serial_port): New field broken.
14751
14752 2010-10-16 Robert Millan <rmh@gnu.org>
14753
14754 * grub-core/kern/emu/misc.c
14755 (grub_make_system_path_relative_to_its_root): Fix premature return
14756 when processing non-root ZFS filesystems.
14757 Reported by Sergio Talens-Oliag.
14758
14759 2010-10-15 Robert Millan <rmh@gnu.org>
14760
14761 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
14762 guarantee compressed ones are processed first.
14763
14764 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
14767 grub_efiemu_autocore.
14768
14769 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14770
14771 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
14772 rather than 0x1b.
14773 (grub_console_getkey): Use correct jae opcode rather than ja.
14774
14775 2010-10-12 Robert Millan <rmh@gnu.org>
14776
14777 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
14778 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
14779 variable. All references updated.
14780
14781 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
14782
14783 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
14784
14785 Correctly distinguish mdraid flavours.
14786
14787 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
14788 (insert_array): New argument raid.
14789 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
14790 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
14791 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
14792
14793 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
14794
14795 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
14796 handling of special keys.
14797
14798 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14799
14800 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
14801 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
14802
14803 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14804
14805 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
14806 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
14807 users updated.
14808 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
14809 Use right endpoint when querying descriptor.
14810
14811 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14812
14813 Clear out 0x80 color bit on EFI.
14814 Tested by: decoder
14815 Reported by: decoder and meta tech.
14816
14817 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
14818 (grub_console_setcolorstate): Clear out 0x80 bit.
14819 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
14820 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
14821 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
14822
14823 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14824
14825 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
14826 Set to "auto".
14827
14828 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14829
14830 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
14831 mo_file after freeing.
14832
14833 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14834
14835 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
14836
14837 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
14840 flags.
14841
14842 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14843
14844 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
14845 usage.
14846
14847 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14848
14849 Put terminfo into core on ieee1275 and yeeloong (needed for console).
14850
14851 * gentpl.py: New groups terminfoinkernel and terminfomodule.
14852 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
14853 and terminfo.h when needed.
14854 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
14855 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
14856 (terminfo): Enable only on terminfokernel.
14857 (extcmd): Likewise.
14858 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
14859 * include/grub/lib/arg.h: Likewise.
14860 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
14861 incorrect usage of ->.
14862
14863 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14864
14865 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
14866 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
14867
14868 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14869
14870 Fix coreboot compilation.
14871
14872 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14873 Take VBE info into account even if only text is supported.
14874 (fill_vbe_info): Take into account the case when only VGA text
14875 is supported.
14876 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
14877 on coreboot, multiboot and qemu.
14878
14879 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14880
14881 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
14882 debug messages.
14883 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
14884
14885 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
14888 parameters.
14889
14890 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14891
14892 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
14893 if they were BSD-style.
14894
14895 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14896
14897 * grub-core/boot/i386/pc/lnxboot.S: Replace
14898 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
14899 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
14900
14901 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14902
14903 Write embedding zone using Reed-Solomon.
14904
14905 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
14906 * grub-core/Makefile.am (rs_decoder.S): New target.
14907 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
14908 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
14909 (multiboot): Move to RS part.
14910 (post_reed_solomon): New label.
14911 (grub_boot_drive): Move to non-RS part since it's modified in memory
14912 on boot.
14913 Include rs_decoder.S.
14914 * grub-core/lib/reed_solomon.c: New file.
14915 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
14916 New definition.
14917 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
14918 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
14919 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
14920 * include/grub/partition.h (grub_partition_map): Change prototype of
14921 embed to allow returning additional sectors.
14922 * include/grub/reed_solomon.h: New file.
14923 * util/grub-setup.c (setup): Handle Reed-Solomon.
14924
14925 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
14926
14927 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14928 i386 and x86-64 definedness tests.
14929
14930 2010-09-27 Yves Blusseau <blusseau@zetam.org>
14931
14932 Fix generation of kernel_syms.lst
14933
14934 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
14935 ASM_PREFIX
14936
14937 2010-09-26 Robert Millan <rmh@gnu.org>
14938
14939 Support degraded ZFS arrays in "grub-probe -t device" resolution.
14940
14941 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
14942 the pool is an array of devices, iterate through it and return the
14943 first device that passes a stat() test (instead of blindly returning
14944 the first one).
14945
14946 2010-09-26 Robert Millan <rmh@gnu.org>
14947
14948 Build fixes for GNU/kFreeBSD.
14949
14950 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
14951 to programs that require ZFS conversion.
14952 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
14953 kernels that don't have FLOPPY_MAJOR.
14954
14955 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14956
14957 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
14958
14959 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14960
14961 Fix grub-emu build.
14962
14963 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
14964 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
14965 mdraid09 and mdraid1x.
14966
14967 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
14968
14969 Re-enable grub-extras.
14970
14971 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
14972 avoid confusing Automake. Run autogen only twice, once for the top
14973 level and once for grub-core. Add Makefile.util.def and
14974 Makefile.core.def from extra modules to the appropriate autogen
14975 invocations. If Makefile.common exists in an extra module, include
14976 it in both Makefile.util.am and grub-core/Makefile.core.am;
14977 similarly, include any Makefile.util.common file in Makefile.util.am
14978 and any Makefile.core.common file in grub-core/Makefile.core.am.
14979 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
14980 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
14981 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
14982 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
14983
14984 * gentpl.py (gvar_add): Turn GVARS into a set.
14985 (global_variable_initializers): Sort global variables on output.
14986 (vars_init): New function.
14987 (first_time): Likewise.
14988 (library): Ensure that non-global variable initialisations are
14989 emitted before the first time we emit code for a library block.
14990 Append to variables rather than setting them. Only emit
14991 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
14992 each conditional path.
14993 (program): installdir() emits an Autogen macro, so must be passed to
14994 var_add rather than gvar_add.
14995 (data): Likewise.
14996 (script): Likewise.
14997 (rules): New function, centralising handling for different target
14998 types. Set up Guile association lists for first_time and vars_init,
14999 and send most output to a diversion so that variable initialisations
15000 can be emitted first.
15001 (module_rules): Use new rules function.
15002 (kernel_rules): Likewise.
15003 (image_rules): Likewise.
15004 (library_rules): Likewise.
15005 (program_rules): Likewise.
15006 (script_rules): Likewise.
15007 (data_rules): Likewise.
15008
15009 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15010
15011 * .bzrignore: Add contrib and grub-core/contrib. Remove
15012 grub-core/Makefile.gcry.am.
15013
15014 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15015
15016 * grub-core/lib/LzFind.c: Add missing include.
15017 * grub-core/lib/LzmaEnc.c: Likewise.
15018 * grub-core/script/lexer.c: Likewise.
15019 * grub-core/script/yylex.l: Likewise.
15020 * util/grub-macho2img.c: Likewise.
15021 * util/grub-menulst2cfg.c: Likewise.
15022 * util/grub-mklayout.c: Likewise.
15023 * util/grub-mkpasswd-pbkdf2.c
15024 * util/grub-mkrelpath.c: Likewise.
15025 * util/resolve.c: Likewise.
15026
15027 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15028
15029 * Makefile.util.def (example_unit_test): Add
15030 grub-core/gnulib/libgnu.a.
15031
15032 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15033
15034 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15035
15036 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 Support xz compression on yeeloong.
15039
15040 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15041 * configure.ac: Check for LZMA.
15042 * grub-core/Makefile.core.def (xz_decompress): New target.
15043 (none_decompress): Likewise.
15044 * grub-core/boot/decompressor/minilib.c: New file.
15045 * grub-core/boot/decompressor/none.c: Likewise.
15046 * grub-core/boot/decompressor/xz.c: Likewise.
15047 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15048 * grub-core/kern/mips/cache_flush.S: Likewise.
15049 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15050 * grub-core/kern/mips/startup.S: Move first stage to ...
15051 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15052 nomacro.
15053 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15054 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15055 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15056 Allocate statically.
15057 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15058 Allocate statically or use scratch. Don't check CRC32.
15059 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15060 Allocate statically. Don't check CRC32.
15061 * include/grub/decompressor.h: New file.
15062 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15063 Removed.
15064 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15065 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15066 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15067 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15068 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15069 * util/grub-mkimage.c (grub_compression_t): New type.
15070 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15071 (image_target_desc): New field default_compression.
15072 (image_targets): Adjust yeeloong targets.
15073 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15074 (compress_kernel): New parameter comp.
15075 (generate_image): Likewise. Handle new compression case.
15076 (options): New option --compression
15077 (help): Likewise.
15078 (main): Handle new option.
15079
15080 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15081
15082 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15083
15084 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15085
15086 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15087 typo in __i386__ conditional.
15088
15089 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15090
15091 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15092 include.
15093
15094 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15095
15096 Implement EFI and ACPI multiboot2 extensions.
15097
15098 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15099 new tags as supported.
15100 (acpiv2_size): New function.
15101 (grub_multiboot_get_mbi_size): Take new tags into account.
15102 (grub_multiboot_make_mbi): Add new tags.
15103 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15104
15105 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15106
15107 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15108 Added missing configuration of USB device.
15109
15110 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15111
15112 * grub-core/normal/menu_entry.c (run): Make sure we always return
15113 a value.
15114
15115 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15116
15117 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15118 NumberOfPages is UINT64 according to the UEFI specification, not
15119 UINTN. Fix printf format.
15120
15121 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15122
15123 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15124 `err' to grub_usb_err_t.
15125 Reported and tested by: KESHAV P.R.
15126
15127 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15128
15129 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15130 tpart non-const, so that we can assign to it. (Since this is a
15131 typedef, the constness refers to the pointer rather than what it
15132 points to.)
15133
15134 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15135
15136 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15137 $(top_srcdir)/grub-core/gnulib as well as
15138 $(top_builddir)/grub-core/gnulib.
15139 Reported by: KESHAV P.R.
15140
15141 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15142
15143 * util/grub-install.in: Fix the bootloader ID option to be
15144 consistently --bootloader-id, not --bootloader_id.
15145 Reported by: KESHAV P.R.
15146
15147 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15148
15149 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15150 check hash checksum." consistently translatable.
15151
15152 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15153
15154 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15155 $(top_builddir).
15156
15157 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15158
15159 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15160 (GRUB_MOD_INIT): Register sha1sum command.
15161 (GRUB_MOD_FINI): Unregister sha1sum command.
15162
15163 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15164
15165 Keep boot and grub directory names in sync with utils scripts
15166
15167 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15168 * config.h.in: Add previous macros.
15169 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15170 * util/grub-install.in: Use $bootdir and $grubdir variables.
15171
15172 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15173
15174 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15175 convert partition names to disk names if the new `convert' parameter
15176 is set.
15177 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15178 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15179 disk in its own right. This can happen with Xen disk images.
15180
15181 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15182
15183 * util/grub-editenv.c: Update strings to avoid warnings when generating
15184 grub.pot file.
15185 * util/grub-setup.c: Likewise.
15186
15187 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 * configure.ac: Change version to 1.99~beta0.
15190
15191 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15194 Add BADRAM.
15195 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15196 Likewise.
15197 * include/multiboot.h: Resynced with specification.
15198 * include/multiboot2.h: Likewise.
15199
15200 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15201
15202 Fix po directory handling.
15203
15204 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15205 * grub-core/gnulib/Makefile.am: Import gettext module.
15206 * m4/gnulib-cache.m4: Likewise.
15207 * m4/gnulib-comp.m4: Likewise.
15208 * m4/gettext.m4: New file, from gnulib.
15209 * m4/glibc2.m4: Likewise.
15210 * m4/iconv.m4: Likewise.
15211 * m4/intdiv0.m4: Likewise.
15212 * m4/intl.m4: Likewise.
15213 * m4/intldir.m4: Likewise.
15214 * m4/intlmacosx.m4: Likewise.
15215 * m4/intmax.m4: Likewise.
15216 * m4/inttypes-pri.m4: Likewise.
15217 * m4/lcmessage.m4: Likewise.
15218 * m4/lib-ld.m4: Likewise.
15219 * m4/lib-link.m4: Likewise.
15220 * m4/lib-prefix.m4: Likewise.
15221 * m4/lock.m4: Likewise.
15222 * m4/nls.m4: Likewise.
15223 * m4/po.m4: Likewise.
15224 * m4/printf-posix.m4: Likewise.
15225 * m4/progtest.m4: Likewise.
15226 * m4/threadlib.m4: Likewise.
15227 * m4/uintmax_t.m4: Likewise.
15228 * m4/visibility.m4: Likewise.
15229 * po/Makefile.am: Remove.
15230 * po/Makefile.in.in: New file, from gettext.
15231 ($(DOMAIN).pot-update): Support POTFILES-shell.
15232 * po/Makevars: New file.
15233 * po/POTFILES-shell: Rename to ...
15234 * po/POTFILES-shell.in: ... this. Update.
15235 * po/POTFILES: Rename to ...
15236 * po/POTFILES.in: ... this. Update.
15237 * po/Rules-quot: New file, from gettext.
15238 * po/boldquot.sed: Likewise.
15239 * po/en@boldquot.header: Likewise.
15240 * po/en@quot.header: Likewise.
15241 * po/insert-header.sin: Likewise.
15242 * po/quot.sed: Likewise.
15243 * po/remove-potcdate.sin: Likewise.
15244
15245 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15246
15247 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15248
15249 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15250
15251 * util/grub.d/20_linux_xen.in: Use submenus.
15252
15253 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15254
15255 Support submenus.
15256
15257 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15258 parameter submenu. All users updated.
15259 * grub-core/normal/main.c (free_menu): Rename to ...
15260 (grub_normal_free_menu): ... this. Made global.
15261 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15262 if requested.
15263 * grub-core/normal/menu_entry.c (screen): New field submenu.
15264 (make_screen): Set submenu.
15265 (run): Open new context if requested.
15266 * include/grub/menu.h (grub_menu_entry): New field submenu.
15267 * include/grub/normal.h (grub_normal_free_menu): New proto.
15268
15269 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15270
15271 Menu entries extractor.
15272
15273 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15274 variants.
15275 (GRUB_MOD_INIT): Register new variants.
15276 (GRUB_MOD_FINI): Unregister new variants.
15277 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15278 into grub_cmd_legacy_source.
15279 (grub_cmd_legacy_source): Implement extractor variants.
15280 (GRUB_MOD_INIT): Register new variants.
15281 (GRUB_MOD_FINI): Unregister new variants.
15282 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15283 as an extractor.
15284 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15285 search as an extractor.
15286 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15287 test as an extractor.
15288 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15289 as an extractor.
15290 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15291 (grub_env_new_context): New function.
15292 (grub_env_context_open): Likewise.
15293 (grub_env_extractor_open): Likewise.
15294 (grub_env_extractor_close): Likewise.
15295 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15296 grub_extractor_level.
15297 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15298 * include/grub/env.h (grub_env_extractor_open): New proto.
15299 (grub_env_extractor_close): Likewise.
15300 * include/grub/normal.h (grub_extractor_level): New external variable.
15301
15302 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15303
15304 Make cutmem accept a region specification.
15305 Suggested by: Samuel Thibault
15306
15307 * grub-core/mmap/mmap.c (parsemem): New function.
15308 (grub_cmd_cutmem): Handle new arguments.
15309
15310 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 New command cutmem.
15313
15314 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15315 (GRUB_MOD_INIT): Register new command.
15316 (GRUB_MOD_FINI): Unregister new command.
15317
15318 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15319
15320 Support some annoying BSD and Minix subpartitions.
15321
15322 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15323 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15324 Properly handle concatenation.
15325 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15326 * grub-core/normal/completion.c (iterate_partition): Likewise.
15327 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15328 contain partition. All users updated.
15329 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15330 struct.
15331 (grub_openbsdlabel_partition_map): Likewise.
15332 (bsdlabel_partition_map_iterate): Rename to ..
15333 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15334 (bsdlabel_partition_map_iterate): New function.
15335 (netopenbsdlabel_partition_map_iterate): Likewise.
15336 (netbsdlabel_partition_map_iterate): Likewise.
15337 (openbsdlabel_partition_map_iterate): Likewise.
15338 (GRUB_MOD_INIT): Register new partmaps.
15339 (GRUB_MOD_FINI): Unregister new partmaps.
15340 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15341 (grub_partition_msdos_iterate): ... this. All users updated.
15342 Don't support embedding other than in a minix partition.
15343 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15344 proto.
15345 * include/grub/partition.h (grub_partition): New field msdostype.
15346 * util/grub-install.in: Handle openbsd and netbsd types being in
15347 part_bsd module.
15348
15349 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15350
15351 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15352
15353 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15354 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15355 (mdraid09): ... this.
15356 (mdraid1x): New module.
15357 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15358 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15359
15360 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15361
15362 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15363 vsprintf.
15364
15365 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15366
15367 * grub-core/commands/efi/lsefimmap.c: Correct header.
15368 * NEWS: Update.
15369
15370 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15371
15372 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15373 as printf format strings; the translations might contain '%' which
15374 could cause a crash.
15375 (main): Likewise.
15376 * util/grub-fstest.c (argp_parser): Likewise.
15377 * util/grub-setup.c (argp_parser): Likewise.
15378 (main): Likewise.
15379
15380 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15381
15382 Use argp in grub-fstest.
15383
15384 * util/grub-fstest.c: Don't include getopt.h.
15385 Include argp.h.
15386 (root): New variable.
15387 (args_count): Likewise.
15388 (nparm): Likewise.
15389 (num_disks): Likewise.
15390 (images): Likewise.
15391 (cmd): Likewise.
15392 (debug_str): Likewise.
15393 (args): Likewise.
15394 (options): Transformed to argp.
15395 (usage): Removed.
15396 (main): Split argument parsing into ...
15397 (argp_parser): ... this. Changed to argp format.
15398 (argp): New variable.
15399 (main): Use argp_parse.
15400
15401 2010-09-20 Tristan Gingold <gingold@free.fr>
15402 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15403 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 * grub-core/commands/efi/lsefimmap.c: New file.
15406 * grub-core/Makefile.core.def (lsefimmap): New module.
15407 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15408
15409 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15410
15411 Pause the execution (10s max) if any errors are displayed so the user
15412 has a chance to see them.
15413
15414 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15415 (grub_print_error): Increment grub_err_printed_errors.
15416 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15417 execution if any errors were displayed.
15418 (show_menu): Remove old code for pause.
15419 * grub-core/normal/menu_entry.c (run): Likewise.
15420 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15421 users updated.
15422 (grub_normal_get_char_counter): Likewise.
15423 * include/grub/err.h (grub_err_printed_errors): New external variable.
15424 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15425
15426 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 Support multiboot VBE info.
15429
15430 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15431 Take VBE info into account.
15432 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15433 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15434 Call fill_vbe_info when appropriate.
15435 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15436 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15437 as supported.
15438 (grub_multiboot_get_mbi_size): Take new tags into account.
15439 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15440 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15441 Call fill_vbe_tag when appropriate.
15442 (grub_multiboot_make_mbi): Properly align tags.
15443 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15444 function.
15445 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15446 proto.
15447 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15448
15449 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 Suport manual terminal geometry specification.
15452
15453 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15454 Save state in grub_ofconsole_terminfo_output.
15455 (grub_ofconsole_term): Use grub_terminfo_getwh.
15456 (grub_ofconsole_getwh): Removed.
15457 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15458 (grub_serial_term): Use grub_terminfo_getwh.
15459 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15460 (options): New struct.
15461 (OPTION_*): New enum.
15462 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15463 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15464 width and height.
15465 (grub_terminfo_getwh): New proto.
15466 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15467
15468 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 Handle legacy "terminal" command.
15471
15472 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15473 and FLAG_TERMINAL.
15474 (legacy_commands): Add terminal and title.
15475 (grub_legacy_parse): Handle terminal. Simplify title handling.
15476
15477 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15478
15479 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15480 parameters overflow.
15481
15482 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15483
15484 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15485 widthspec.h.
15486
15487 * docs/grub.texi (Shell-like scripting): Document `!'.
15488 (Network): Simplify using new i386-pc-pxe format. Mention
15489 grub-mknetdir.
15490
15491 * NEWS: Update.
15492
15493 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15494
15495 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15496 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15497 when needed.
15498
15499 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15500
15501 * grub-core/commands/efi/lsefisystab.c: Correct header.
15502 * grub-core/commands/efi/lssal.c: Likewise.
15503 * grub-core/commands/testload.c: Likewise.
15504
15505 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15506
15507 * util/grub-mkrescue.in: Add explicit root argument to --set to
15508 prevent the UUID being interpreted as an argument to --set (matches
15509 previous change to prepare_grub_to_access_device).
15510
15511 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15512
15513 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15514 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15515 the verbosity of later #ifs.
15516 (find_partition_start): Define this function on FreeBSD too.
15517 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15518 function.
15519 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15520 on FreeBSD.
15521
15522 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15523
15524 * util/grub-editenv.c: Use argp instead of getopt.
15525
15526 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15527
15528 * util/grub-setup.c: Use argp instead of getopt.
15529
15530 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15531
15532 Use gnulib-tool to create gnulib source files.
15533
15534 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15535 grub-core/gnulib directories
15536 * .bzignore: Add **/.deps and autogenerated gnulib files
15537 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15538 of gnulib macros, add grub-core/gnulib/Makefile
15539 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15540 include m4 directory to aclocal.
15541 * Makefile.util.def: Remove direct compilation of gnulib source files
15542 and use the new grub-core/gnulib/libgnu.a.
15543 * build-aux/config.rpath: move config.rpath from top directory to
15544 build-aux
15545 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15546 in gnulib headers
15547 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15548 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15549 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15550 header.
15551 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15552 string.
15553
15554 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15555
15556 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15557 grub-core/genmod.sh and grub-core/gensyminfo.sh
15558
15559 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15560
15561 Add a test for echo command options.
15562
15563 * tests/grub_cmd_echo.in: New test.
15564 * Makefile.util.def: Rules for new test.
15565
15566 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15567
15568 Remove crc.mod and move crc command to hashsum.mod.
15569 Remove lib/crc.c - users updated to use gcrypt implementation.
15570
15571 * grub-core/commands/crc.c: Removed.
15572 * grub-core/Makefile.core.def (crc): Module removed.
15573 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15574 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15575 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15576 * grub-core/lib/crc.c: Removed.
15577 * include/grub/lib/crc.h: Removed.
15578 * Makefile.util.def (crc): Remove lib/crc.c
15579 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15580 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15581 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15582 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15583 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15584 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15585
15586 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15589
15590 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15591
15592 Split config.h for util and core.
15593
15594 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15595 (ADDR32): Likewise.
15596 (DATA32): Likewise.
15597 (BSS_START_SYMBOL): Likewise.
15598 (END_SYMBOL): Likewise.
15599 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15600 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15601 * config.h.in: New file.
15602 * configure.ac: Use config-util.h as config define file.
15603 Rename MACHINE into GRUB_MACHINE. All users updated.
15604 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15605 updated.
15606 (NESTED_FUNC_ATTR): Likewise.
15607 Substitue new variables.
15608 (COND_HAVE_ASM_USCORE): New conditional.
15609 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15610 (kernel_syms.lst): Use ASM_PREFIX.
15611 * grub-core/kern/emu/console.c: Include config-util.h.
15612 * grub-core/kern/emu/misc.c: Likewise.
15613 * grub-core/kern/emu/mm.c: Likewise.
15614 * include/grub/emu/misc.h: Likewise.
15615 * include/grub/libgcc.h: Likewise.
15616
15617 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15618
15619 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15620 constants usage.
15621 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15622 Fix GRUB_TERM_KEY_* constants usage.
15623 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15624
15625 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15626
15627 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
15628 print pointer.
15629 * grub-core/bus/usb/uhci.c: Remove empty define.
15630 (grub_uhci_check_transfer): Add missing cast.
15631 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
15632 print pointer.
15633 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
15634 PRIuGRUB_SIZE.
15635 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
15636
15637 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 * grub-core/Makefile.core.def (legacycfg): Add
15640 lib/i386/pc/vesa_modes_table.c on emu.
15641
15642 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15643
15644 Reduce number of temporary files generated by build system.
15645
15646 * grub-core/gencmdlist.sh: Removed.
15647 * grub-core/genfslist.sh: Removed.
15648 * grub-core/genhandlerlist.sh: Removed.
15649 * grub-core/genmodsrc.sh: Removed.
15650 * grub-core/genpartmaplist.sh: Removed.
15651 * grub-core/genparttoollist.sh: Removed.
15652 * grub-core/gentermiinallist.sh: Removed.
15653 * grub-core/genvideolist.sh: Removed.
15654
15655 * grub-core/genmod.sh.in: New file.
15656 * grub-core/gensyminfo.sh.in: New file.
15657
15658 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
15659 * conf/Makefile.extra-dist: Update with new files.
15660 * gentpl.py: Remove rules related to unnecessary temporary files.
15661 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
15662 and und-* files.
15663 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
15664 genmod.sh scripts.
15665 * grub-core/bus/usb/uhci.c: Remove empty #define.
15666 * grub-core/genmoddep.awk: Updated with new syminfo format.
15667 * util/bash-completion.d/Makefile.am: Add config.log to
15668 CLEANFILES.
15669
15670 2010-09-19 Yves Blusseau <blusseau@zetam.org>
15671
15672 * Makefile.util.def: Add forgotten $(LIBINTL) library.
15673
15674 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15675
15676 * util/grub-mkconfig.in: Check the config script for syntax errors
15677 before saving.
15678
15679 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
15680 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15681
15682 * Makefile.util.def (grub-install): Use util/grub-install.in on all
15683 platforms.
15684 * util/grub-install.in: Add EFI and IEEE1275 support.
15685 * util/i386/efi/grub-install.in: Removed.
15686 * util/ieee1275/grub-install.in: Likewise.
15687
15688 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
15691 (grub_cmd_cmosclean): Likewise.
15692 (GRUB_MOD_INIT): Register command cmosclean.
15693 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
15694 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
15695
15696 2010-09-18 Carles Pina i Estany <carles@pina.cat>
15697 2010-09-18 Aleš Nesrsta <starous@volny.cz>
15698 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 Add keyboard layouts support.
15701
15702 * Makefile.util.def (grub-mklayout): New file.
15703 (grub-kbdcomp): New script.
15704 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
15705 Add keyboard_layouts.h.
15706 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
15707 commands/boot.c on yeeloong.
15708 (keylayouts): New module.
15709 * grub-core/bus/usb/ohci.c
15710 * grub-core/bus/usb/uhci.c
15711 * grub-core/bus/usb/usbhub.c (rescan): New variable.
15712 (grub_usb_add_hub): Poll interrupt pipe for device handling.
15713 (attach_root_port): Likewise.
15714 (poll_nonroot_hub): Likewise.
15715 (grub_usb_poll_devices): Likewise.
15716 (detach_device): Close transfer.
15717 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
15718 function.
15719 (grub_usb_bulk_setup_readwrite): Likewise.
15720 (grub_usb_bulk_finish_readwrite): Likewise.
15721 * grub-core/commands/keylayouts.c: New file.
15722 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
15723 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
15724 aliases.
15725 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
15726 support scancode 2.
15727 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
15728 * include/grub/keyboard_layouts.h: New file.
15729 * util/grub-mklayout.c: New file.
15730 * util/grub-kbdcomp.in: Likewise.
15731
15732 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15733
15734 Unify memory types.
15735
15736 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
15737 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
15738 types.
15739 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
15740 (grub_upper_mem): Likewise.
15741 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
15742 * include/grub/memory.h (grub_memory_type_t): New enum.
15743 All users updated.
15744
15745 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15746
15747 * grub-core/Makefile.core.def (lsapm): New module.
15748 * grub-core/commands/i386/pc/lsapm.c: New file.
15749 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
15750 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
15751 Likewise.
15752 * include/grub/i386/pc/apm.h: New file.
15753 * include/multiboot.h (multiboot_apm_info): New struct.
15754
15755 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15756
15757 GRUB-legacy configuration file support.
15758
15759 * Makefile.util.def (grub-menulst2cfg): New util.
15760 * docs/man/grub-menulst2cfg.h2m: New file.
15761 * grub-core/Makefile.core.def (legacycfg): New module.
15762 * grub-core/commands/legacycfg.c: New file.
15763 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
15764 (grub_normal_add_menu_entry): ... this.
15765 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
15766 (grub_normal_set_password): ...this.
15767 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
15768 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
15769 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
15770 * grub-core/lib/legacy_parse.c: New file.
15771 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
15772 * include/grub/i386/pc/vesa_modes_table.h: New file.
15773 * include/grub/legacy_parse.h: Likewise.
15774 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
15775 * util/grub-menulst2cfg.c: New file.
15776
15777 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15778
15779 * grub-core/kern/emu/hostdisk.c
15780 (convert_system_partition_to_system_disk): Initialise node.
15781
15782 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15783
15784 * grub-core/kern/emu/hostdisk.c
15785 (convert_system_partition_to_system_disk): Fix devmapper memory pool
15786 leak.
15787 Reported and based on patch by: Modestas Vainius.
15788
15789 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15790
15791 Fix DM-RAID probing with recent versions of device-mapper udev
15792 rules.
15793
15794 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
15795 canonicalise device paths under /dev/mapper/.
15796 (convert_system_partition_to_system_disk): Compare the
15797 uncanonicalised path to /dev/mapper/ rather than the canonicalised
15798 path, since device nodes under /dev/mapper/ are often symlinks.
15799
15800 2010-09-17 Yves Blusseau <blusseau@zetam.org>
15801
15802 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
15803
15804 2010-09-16 Yves Blusseau <blusseau@zetam.org>
15805
15806 * configure.ac: Avoid some annoying error messages if freetype-config
15807 program is not found.
15808
15809 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15810
15811 Support RAID on virtio devices, and others.
15812
15813 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
15814 Rename to ...
15815 [__MINGW32__] (grub_find_device): ... this.
15816 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
15817 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
15818 reasonable default if dir is NULL.
15819 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
15820 ...
15821 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
15822 (grub_guess_root_device): Update callers.
15823 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
15824
15825 * util/raid.c (grub_util_getdiskname): Remove.
15826 (grub_util_raid_getmembers): Use grub_find_device rather than
15827 grub_util_getdiskname.
15828
15829 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15830
15831 * docs/grub.texi (serial): Remove obsolete comment about GRUB
15832 needing to be compiled with serial support.
15833 (ls): Indicate that multiple files are accepted.
15834 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
15835 indicate that multiple files are accepted.
15836
15837 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15838
15839 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
15840 libgrub_a_init.c, and util/bash-completion.d/grub.
15841
15842 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15843
15844 * util/grub-setup.c (setup): Fix incorrect container semantics.
15845
15846 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15847
15848 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
15849 misusage.
15850 Reported by: J. Nick Terry
15851
15852 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 Move embedding routines to partmap sources files.
15855
15856 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
15857 [GRUB_UTIL]: New variable.
15858 (gpt_partition_map_iterate): Set part.parent.
15859 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
15860 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
15861 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
15862 New function.
15863 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
15864 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
15865 (grub_partition_map) [GRUB_UTIL]: New field embed.
15866 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
15867 (setup): Use ->embed.
15868
15869 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15870
15871 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
15872 function.
15873 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
15874 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
15875
15876 2010-09-15 Yves Blusseau <blusseau@zetam.org>
15877
15878 Add function to get completions from usage.
15879
15880 * util/bash-completion.d/grub-completion.bash.in: Add function to get
15881 completions from usage. Use LC_ALL=C to get options properly.
15882
15883 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15884
15885 * grub-core/gnulib/basename-lgpl.c: Imported.
15886 * grub-core/gnulib/basename.c: Likewise.
15887 * grub-core/gnulib/dirname-lgpl.c: Likewise.
15888 * grub-core/gnulib/dirname.c: Likewise.
15889 * grub-core/gnulib/dirname.h: Likewise.
15890 * grub-core/gnulib/stripslash.c: Likewise.
15891
15892 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 * grub-core/gnulib/error.c: Resynced.
15895 * grub-core/gnulib/getopt.c: Likewise.
15896 * grub-core/gnulib/getopt_int.h: Likewise.
15897 * grub-core/gnulib/regex.h: Likewise.
15898 * grub-core/gnulib/regex_internal.c: Likewise.
15899 * grub-core/gnulib/regex_internal.h: Likewise.
15900
15901 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15902
15903 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
15904 CRC calculations and validity checks.
15905 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
15906 calculations.
15907
15908 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15909
15910 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
15911
15912 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15913
15914 Fix incorrect echo options handling.
15915 Reported by: Yves Blusseau.
15916
15917 * include/grub/command.h (grub_command_flags_t): New flags
15918 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
15919 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
15920 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
15921
15922 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15923
15924 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
15925 users updated.
15926 (GRUB_COMMAND_FLAG_MENU): Likewise.
15927 (GRUB_COMMAND_FLAG_BOTH): Likewise.
15928 (GRUB_COMMAND_FLAG_TITLE): Removed.
15929 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
15930 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
15931 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
15932 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
15933 (grub_command_flags_t): New enum. All users updated.
15934
15935 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
15936
15937 Fix solaris compilation.
15938
15939 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
15940 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
15941 (grub-emu-list): Likewise.
15942
15943 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15944
15945 Remove deprecated root command.
15946
15947 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
15948 updated.
15949
15950 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 * util/i386/pc/grub-setup.c: Merge this ...
15953 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
15954 * util/grub-setup.c: ... into this.
15955 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
15956 New struct.
15957
15958 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15959
15960 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
15961 possible.
15962
15963 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
15966 allocate p.
15967
15968 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15969
15970 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15971 explicit root argument to set to prevent UUID to be interpreted as
15972 argument to set.
15973
15974 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15975
15976 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
15977
15978 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15979
15980 Don't export grub_gate_a20.
15981
15982 * grub-core/kern/i386/pc/init.c: Remove leftovers.
15983 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
15984 to ...
15985 (grub_gate_a20): ... this. All users updated.
15986 * include/grub/i386/pc/init.h: Removed. All users updated.
15987
15988 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15989
15990 Create euro.pf2 which supports most European languages.
15991
15992 * Makefile.am (grubdata_DATA): Add euro.pf2.
15993 (euro.pf2): New target.
15994 (CLEANFILES): Add euro.pf2.
15995
15996 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15997
15998 * configure.ac: Disable emu-usb by default to prevent inadvertent
15999 device takeover.
16000
16001 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16002
16003 Disable usbserial on grub-emu since our libusb code isn't good enough
16004 yet.
16005
16006 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16007 (usbserial_pl2303): Likewise.
16008 (usbserial_ftdi): Likewise.
16009
16010 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16011
16012 * include/grub/disk.h (grub_disk): Remove has_partitions.
16013 All users updated.
16014 * disk/loopback.c (grub_loopback): Remove has_partitions.
16015 All users updated.
16016 (options): Remove partitions. All users updated.
16017 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16018 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16019 actual partition table is found.
16020
16021 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16022
16023 Remove readability checks (too many false negatives).
16024
16025 * util/grub-install.in: Remove readability checks.
16026 * util/grub-mkconfig.in: Likewise.
16027 * util/grub.d/10_hurd.in: Likewise.
16028 * util/grub.d/10_kfreebsd.in: Likewise.
16029 * util/grub.d/10_linux.in: Likewise.
16030 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16031 way.
16032
16033 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16034
16035 Enable acpi shutdown on all ACPI platforms.
16036
16037 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16038 on coreboo, multiboot and EFI.
16039 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16040 (grub_acpi_halt): Likewise.
16041 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16042 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16043 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16044 * grub-core/lib/i386/halt.c (grub_halt)
16045 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16046
16047 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16048
16049 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16050 context.
16051
16052 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16053
16054 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16055 * grub-core/video/efi_uga.c: Likewise.
16056
16057 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16058
16059 Filter devaliases and never open same device twice.
16060
16061 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16062 (last_ihandle): Likewise.
16063 (ofdisk_hash_ent): New member shortest.
16064 (ofdisk_hash_add): Add canonical path too.
16065 (scan): New function.
16066 (grub_ofdisk_iterate): Iterate over hashed entries.
16067 (compute_dev_path): Don't add :0.
16068 (grub_ofdisk_open): Don't really open the disk.
16069 (grub_ofdisk_close): Avoid closing unrelated disk.
16070 (grub_ofdisk_read): Implement reopen logic.
16071 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16072 New function.
16073 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16074 New proto.
16075
16076 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16077
16078 Fix sparc64.
16079
16080 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16081 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16082 right address. Add sparc64_ieee1275_ldflags.
16083 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16084 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16085 to grub_host_to_target_addr
16086 (load_image): Likewise.
16087
16088 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16089
16090 * grub-core/normal/completion.c (complete_file): Handle device
16091 containing slash.
16092 Fix based on patch by Doug Nazar.
16093
16094 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16095
16096 grub-mknetdir script.
16097
16098 * Makefile.util.def (grub-mknetdir): New module.
16099 * tests/util/grub-shell.in: Support boot=net
16100 * util/grub-mknetdir.in: New file.
16101
16102 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 videoinfo on non-vbe.
16105
16106 * grub-core/Makefile.core.def (vbeinfo): Removed.
16107 (vbetest): Removed.
16108 (videoinfo): New module.
16109 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16110 * grub-core/commands/i386/pc/vbetest.c: Removed.
16111 * grub-core/commands/videoinfo.c: New file.
16112 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16113 specification.
16114 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16115 as vbetest.
16116 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16117 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16118 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16119 mode_number. New parameter mode. All users updated.
16120 (grub_video_gop_iterate): New function.
16121 (grub_video_efi_gop): New member iterate.
16122 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16123 (grub_vbe_set_video_mode): Remove setting useless fields.
16124 (vbe2videoinfo): New function.
16125 (grub_video_vbe_iterate): Likewise.
16126 (grub_video_vbe_setup): Use vbe2videoinfo.
16127 (grub_video_vbe_print_adapter_specific_info): New function.
16128 (grub_video_vbe_adapter): New fields iterate and
16129 print_adapter_specific_info.
16130 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16131 All users updated.
16132 (grub_video_mode_info): New field mode_number.
16133 (grub_video_adapter): New fields iterate and
16134 print_adapter_specific_info.
16135
16136 2010-09-13 Tristan Gingold <gingold@free.fr>
16137 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16138 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16139
16140 * grub-core/commands/efi/lsefisystab.c: New file.
16141 * grub-core/commands/efi/lssal.c: Likewise.
16142 * grub-core/Makefile.core.def (lsacpi): New module.
16143 (lsefisystab): Likewise.
16144 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16145 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16146 (grub_efi_sal_system_table): New struct.
16147 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16148 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16149 (grub_efi_sal_system_table_platform_features): Likewise.
16150 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16151 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16152 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16153 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16154
16155 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16156
16157 Support explicit user claim that a device is BIOS-visible.
16158
16159 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16160 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16161 * grub-core/kern/emu/hostdisk.c
16162 (convert_system_partition_to_system_disk): Support mdX.
16163 (find_system_device): New parameter add. All users updated.
16164 (grub_util_biosdisk_is_present): New function.
16165 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16166 proto.
16167
16168 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16169
16170 Search hints support.
16171
16172 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16173 All users updated.
16174
16175 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16176
16177 Bash completion script for util commands
16178
16179 * Makefile.am: Add util/bash-completion.d directory
16180 * configure.ac: Likewise.
16181 * util/bash-completion.d/Makefile.am: New file.
16182 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16183
16184 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16185
16186 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16187 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16188 Reported by: Yves Blusseau.
16189
16190 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16191
16192 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16193 partition size and offset.
16194
16195 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16196
16197 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16198
16199 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16200
16201 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16202
16203 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16204
16205 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16206 (grub_xvasprintf): Likewise.
16207
16208 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16209
16210 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16211
16212 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16213
16214 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16215 args ending with NULL.
16216
16217 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16220 pointer.
16221
16222 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16223
16224 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16225
16226 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 Shutdown using ACPI.
16229
16230 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16231 * grub-core/commands/acpihalt.c: New file.
16232 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16233 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16234 (grub_acpi_halt): New proto.
16235 (GRUB_ACPI_SLP_EN): New const.
16236 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16237 (GRUB_ACPI_OPCODE_*): New enum.
16238 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16239
16240 2010-09-11 Tristan Gingold <gingold@free.fr>
16241 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16242 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 * commands/lsacpi.c: New file.
16245 * grub-core/Makefile.core.def (lsacpi): New module.
16246 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16247 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16248 (grub_acpi_madt_entry_header): New struct.
16249 (grub_acpi_madt): Likewise.
16250 (grub_acpi_madt_entry_interrupt_override): Likewise.
16251 (grub_acpi_madt_entry_sapic): Likewise.
16252 (grub_acpi_madt_entry_lsapic): Likewise.
16253 (grub_acpi_madt_entry_platform_int_source): Likewise.
16254 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16255 (PRIuGRUB_UINT32_T): Likewise.
16256 (PRIxGRUB_UINT64_T): Likewise.
16257
16258 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16259
16260 Implement loading palette on ieee1275_fb.
16261
16262 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16263 (have_setcolors): Likewise.
16264 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16265 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16266 (grub_video_ieee1275_set_palette): Implement.
16267
16268 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16269 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16270
16271 * util/grub-install.in (grub_partition): New variable.
16272 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16273 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16274 Fixes a bug reported by Yves Blusseau.
16275
16276 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 Fix emu on mipsel.
16279
16280 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16281 =grub_cpu_flush_cache on all mips and not only yeeloong.
16282 * configure.ac (COND_mips): New conditional.
16283 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16284 platforms.
16285 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16286 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16287 [GRUB_LINKER_HAVE_INIT]: New function.
16288 (grub_emu_post_init): Likewise.
16289 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16290 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16291 * include/grub/cache.h (_mips): Include mips/cache.h.
16292 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16293 LVM and RAID prototypes.
16294 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16295 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16296 function.
16297
16298 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16299
16300 * util/grub-install.in: Don't try to verify core.img until after
16301 running grub-mkimage to create it.
16302
16303 2010-09-10 Robert Millan <rmh@gnu.org>
16304
16305 * util/grub.d/10_hurd.in: Add misc readability checks.
16306 * util/grub.d/10_kfreebsd.in: Likewise.
16307 * util/grub.d/10_linux.in: Likewise.
16308
16309 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16310
16311 * util/grub-install.in: ${imgext} won't be defined here until the
16312 install branch is merged. For the meantime, only verify core.img on
16313 i386-pc and sparc64-ieee1275 platforms.
16314
16315 2010-09-10 Robert Millan <rmh@gnu.org>
16316
16317 Solaris support in grub_find_zpool_from_dir(). Thanks
16318 Seth Goldberg for referring to getextmntent() facility.
16319
16320 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16321 `sys/mkdev.h'.
16322 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16323 `<sys/mnttab.h>'.
16324 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16325 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16326 method for finding zpool name.
16327
16328 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16329
16330 grub-fstest needs the host and hostfs modules while other utilities
16331 actively require those modules to be absent, so grub-fstest needs
16332 its own initialisation and finalisation code.
16333
16334 * Makefile.am (grub_fstest.pp): New target.
16335 (grub_fstest_init.lst): Likewise.
16336 (grub_fstest_init.c): Likewise.
16337 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16338
16339 2010-09-10 Robert Millan <rmh@gnu.org>
16340
16341 * configure.ac: Check for `struct statfs.f_fstypename' and
16342 `struct statfs.f_mntfromname'.
16343
16344 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16345 kFreeBSD-specific code.
16346
16347 2010-09-10 Robert Millan <rmh@gnu.org>
16348
16349 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16350 on ZFS. Now non-main filesystems are supported as / too.
16351
16352 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16353
16354 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16355 and grub-core/disk/host.c to ...
16356 (grub-fstest): ... here. Having the host disk implementation
16357 present confuses grub-probe and other utility programs.
16358
16359 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16360 when writing to a file, not when writing to stdout.
16361
16362 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16363
16364 * tests/partmap_test.in: New test for partitions.
16365 * Makefile.util.def: Rules for new test.
16366
16367 2010-09-09 Robert Millan <rmh@gnu.org>
16368
16369 * util/grub-probe.c (probe): Fix a pair of unhandled error
16370 conditions.
16371
16372 2010-09-09 Robert Millan <rmh@gnu.org>
16373
16374 Basic Btrfs support (detection and UUID).
16375
16376 * grub-core/fs/btrfs.c: New file.
16377 * Makefile.util.def (library): Register btrfs.c.
16378 * grub-core/Makefile.core.def: Likewise.
16379
16380 2010-09-08 Robert Millan <rmh@gnu.org>
16381
16382 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16383 with (optional) parameters to specify device and relative path.
16384 * util/grub-install.in: Use is_path_readable_by_grub() to
16385 verify readability of a few critical files.
16386 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16387 verify readability of grub.cfg.new.
16388
16389 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16390
16391 Split minix.mod into minix.mod and minix2.mod.
16392
16393 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16394 * grub-core/Makefile.core.def (minix2): New module.
16395 * grub-core/fs/minix.c: Use definitions instead of runtime version
16396 checking.
16397 * grub-core/fs/minix2.c: New file.
16398
16399 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16400
16401 Add new --boot-directory option to replace --root-directory
16402
16403 * util/grub-install.in: Add new --boot-directory option
16404 * util/grub-reboot.in: Likewise.
16405 * util/grub-set-default.in: Likewise.
16406
16407 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16408
16409 * util/grub-mkconfig.in: Use new variable.
16410
16411 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16412
16413 * configure.ac: Define some useful variables.
16414
16415 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16416
16417 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16418 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16419 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16420 Use terminfo and don't use cursor-on/cursor-off unless it's known
16421 to work.
16422 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16423 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16424
16425 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16426
16427 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16428 starts with "(,", fill the drive containing the loaded image in
16429 between those two characters, but expect that a full partition
16430 specification including partition map names will follow.
16431
16432 2010-09-08 Robert Millan <rmh@gnu.org>
16433
16434 * configure.ac: Remove `--enable-grub-fstest' option.
16435 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16436
16437 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16438 `grub-fstest' instead of `grub-probe' for readability verification.
16439 * util/grub-probe.c (probe): Remove readability verification kludge.
16440
16441 2010-09-08 Robert Millan <rmh@gnu.org>
16442
16443 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16444 initializing `GRUB_FS'.
16445
16446 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16447
16448 Not command (!) support to GRUB script.
16449
16450 * tests/grub_script_not.in: New test.
16451 * Makefile.util.def: Rules for new test.
16452
16453 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16454 ! command as a special case.
16455 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16456
16457 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16458
16459 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16460 grub_free.
16461
16462 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16463
16464 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16465
16466 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16467
16468 * docs/grub.texi (Shell-like scripting): Documentation for break,
16469 continue, shift and return commands.
16470
16471 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 Rename CD-ROM to cd on BIOS.
16474
16475 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16476 "cd".
16477 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16478
16479 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16480
16481 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16482 * util/grub-probe.c (main): Likewise.
16483 * util/i386/pc/grub-setup.c (main): Likewise.
16484 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16485 Reported and debugged by: alexxy
16486
16487 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16488
16489 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16490 diagnostic info.
16491
16492 2010-09-05 Jo Shields <directhex@apebox.org>
16493
16494 * util/grub.d/30_os-prober.in: Add missing classes.
16495
16496 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16497
16498 * docs/grub.texi (Theme file format): Document new position format.
16499
16500 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16503 a table. Use @code instead of @verbatim.
16504
16505 2010-09-05 Colin D Bennett <colin@gibibit.com>
16506
16507 Gfxmenu documentation.
16508
16509 * docs/grub.texi (Theme file format): New chapter.
16510
16511 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16512
16513 * grub-core/Makefile.core.def (xzio): New module.
16514 * grub-core/io/xzio.c: New file.
16515 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16516 * grub-core/lib/xzembed/xz_config.h: Likewise.
16517 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16518 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16519 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16520 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16521 * grub-core/lib/xzembed/xz_private.h: Likewise.
16522 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16523 * include/grub/file.h (grub_file_filter_id): New compression filter
16524 GRUB_FILE_FILTER_XZIO.
16525
16526 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16527
16528 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16529 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16530 size.
16531
16532 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16533
16534 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16535 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16536
16537 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16538
16539 Uncompressed checksum support.
16540
16541 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16542 (check_list): New parameter uncompress.
16543 (grub_cmd_hashsum): Handle --uncompress.
16544
16545 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 Reintroduce testload.
16548
16549 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16550 from here ...
16551 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16552 (GRUB_MOD_INIT): New function.
16553 (GRUB_MOD_FINI): Likewise.
16554 * grub-core/Makefile.core.def (testload): New module.
16555
16556 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16557
16558 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16559 (uint8_t): New type.
16560 (uint16_t): Likewise.
16561 (uint32_t): Likewise.
16562 (uint64_t): Likewise.
16563
16564 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16565
16566 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16567
16568 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16571 Made static.
16572 (grub_gzfile_open): Removed. All users updated.
16573 (GRUB_MOD_INIT): New function.
16574 (GRUB_MOD_FINI): Likewise.
16575 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16576 (grub_file_filters_enabled): Likewise.
16577 (grub_file_open): Handle filters.
16578 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16579 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16580 * include/grub/file.h (grub_file_filter_id_t): New type.
16581 (grub_file_filter_t): Likewise.
16582 (grub_file_filters_all): New extern variable.
16583 (grub_file_filters_enabled): Likewise.
16584 (grub_file_filter_register): New inline function.
16585 (grub_file_filter_unregister): Likewise.
16586 (grub_file_filter_disable): Likewise.
16587 (grub_file_filter_disable_compression): Likewise.
16588 * include/grub/gzio.h: Removed.
16589
16590 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16591
16592 Filename expansion support for wildcards in GRUB script.
16593
16594 * tests/grub_script_expansion.in: New test.
16595 * Makefile.util.def: Rule for new test.
16596
16597 * grub-core/commands/wildcard.c: New file, implements filename
16598 expansion support for GRUB script.
16599 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16600 * grub-core/script/argv.c: Cosmetic changes.
16601 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16602 Refactored to perform wildcard expansion on arguments.
16603 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16604 struct.
16605
16606 * tests/util/grub-shell.in: Fix quoting for read input.
16607
16608 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16609
16610 Support for updating environment variables with matched substrings
16611 of regexp.
16612
16613 * tests/grub_cmd_regexp.in: New test.
16614 * Makefile.util.def: Rule for new test.
16615
16616 * grub-core/commands/regexp.c: New option -s to update environment
16617 variables with regexp matches.
16618
16619 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16620
16621 * include/grub/file.h (grub_file): New member not_easly_seekable.
16622 (grub_file_seekable): New inline function.
16623 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16624 easily seekable.
16625 (grub_gzio_open): Set not_easly_seekable.
16626 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
16627 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
16628
16629 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16630
16631 Support for options to appear multiple times on cmdline.
16632
16633 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
16634 * grub-core/commands/extcmd.c: Support for repeatable option.
16635 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
16636 repeatable option support.
16637
16638 Refactor menuentry into a regular command.
16639
16640 * grub-core/commands/menuentry.c: New file, menuentry command
16641 implementation.
16642 * grub-core/Makefile.core.def: Rule update for normal.mod.
16643 * grub-core/normal/main.c: Moved menuentry creation to
16644 grub-core/commands/menuentry.c.
16645 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
16646 (grub_menu_execute_entry_real): Removed.
16647 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
16648 function.
16649 (grub_script_execute_menuentry): Removed.
16650 * grub-core/script/parser.y (menuentry): Removed.
16651 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
16652 * grub-core/script/yylex.l (menuentry): Removed.
16653 * include/grub/menu.h (grub_menu_init): New prototype.
16654 (grub_menu_fini): New prototype.
16655 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
16656 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
16657 (grub_script_execute_sourcecode): New prototype.
16658
16659 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16660
16661 "return" command for GRUB script functions.
16662
16663 * tests/grub_script_return.in: New test.
16664 * Makefile.util.def: Rules for new test.
16665
16666 * grub-core/script/execute.c (grub_script_return): New function.
16667 * grub-core/script/main.c: Register/unregister return commaond.
16668 * include/grub/script_sh.h (grub_script_return): New prototype.
16669
16670 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16671
16672 "setparams" command to update positional parameters.
16673
16674 * tests/grub_script_setparams.in: New test.
16675 * Makefile.util.def: Rules for new test.
16676
16677 * grub-core/script/argv.c (grub_script_argv_make): New function.
16678 * grub-core/script/execute.c (replace_scope): New function.
16679 (grub_script_setparams): New function.
16680 * grub-core/script/lexer.c: Remove unused variables.
16681 * grub-core/script/main.c: Register/unregister setparams command.
16682 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
16683 (grub_script_setparams): New prototype.
16684
16685 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16686
16687 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
16688 grub_free order.
16689
16690 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16691
16692 Support for passing block of commands as an argument to extcmds.
16693
16694 * Makefile.util.def: Rules for new test.
16695 * tests/grub_script_blockarg.in: New test.
16696 * grub-core/tests/test_blockarg.c: New file, block argument
16697 command used in the test.
16698
16699 * include/grub/extcmd.h (grub_extcmd_context): New struct.
16700 (grub_register_extcmd_prio): New function prototype.
16701 (grub_extcmd_dispatcher): New function prototype.
16702 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
16703 type.
16704 * include/grub/script_sh.h (struct grub_script): New members
16705 `children', `next_siblings' and `refcnt' for block arguments and
16706 reference counting.
16707 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
16708 (grub_script_arg): New member `script' for block argument.
16709 (grub_script_argv): New member `script' for block argument.
16710 (grub_parser_param): New member `scripts' for block argument.
16711 (grub_script_mem_free): New extern function prototype.
16712 (grub_script_ref): New function prototype.
16713 (grub_script_unref): New function prototype.
16714
16715 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
16716 extcmd form to support block arguments.
16717 * grub-core/script/argv.c: Block arguments support.
16718 * grub-core/script/execute.c: Likewise.
16719 * grub-core/script/lexer.c: Likewise.
16720 * grub-core/script/main.c: Likewise.
16721 * grub-core/script/script.c: Likewise.
16722 * grub-core/script/parser.y: Likewise. New `block' and `block0'
16723 non-terminals.
16724
16725 * grub-core/commands/acpi.c: Update extcmd implementations with
16726 grub_extcmd_context_t.
16727 * grub-core/commands/cat.c: Likewise.
16728 * grub-core/commands/echo.c: Likewise.
16729 * grub-core/commands/extcmd.c: Likewise.
16730 * grub-core/commands/hashsum.c: Likewise.
16731 * grub-core/commands/hdparm.c: Likewise.
16732 * grub-core/commands/help.c: Likewise.
16733 * grub-core/commands/hexdump.c: Likewise.
16734 * grub-core/commands/i386/cpuid.c: Likewise.
16735 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16736 * grub-core/commands/i386/pc/halt.c: Likewise.
16737 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16738 * grub-core/commands/iorw.c: Likewise.
16739 * grub-core/commands/keystatus.c: Likewise.
16740 * grub-core/commands/loadenv.c: Likewise.
16741 * grub-core/commands/ls.c: Likewise.
16742 * grub-core/commands/lspci.c: Likewise.
16743 * grub-core/commands/memrw.c: Likewise.
16744 * grub-core/commands/probe.c: Likewise.
16745 * grub-core/commands/search_wrap.c: Likewise.
16746 * grub-core/commands/setpci.c: Likewise.
16747 * grub-core/commands/sleep.c: Likewise.
16748 * grub-core/disk/loopback.c: Likewise.
16749 * grub-core/hello/hello.c: Likewise.
16750 * grub-core/loader/i386/bsd.c: Likewise.
16751 * grub-core/loader/xnu.c: Likewise.
16752 * grub-core/term/gfxterm.c: Likewise.
16753 * grub-core/term/serial.c: Likewise.
16754 * grub-core/tests/lib/functional_test.c: Likewise.
16755
16756 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16757
16758 Multi-line quoted strings support.
16759
16760 * grub-core/script/lexer.c (append_newline): Removed.
16761 (grub_script_lexer_yywrap): Refactored.
16762 (grub_script_lexer_init): Refactored.
16763 * grub-core/script/yylex.l (yywrap): New function.
16764 (grub_lexer_resplit): New function.
16765 (grub_lexer_unput): New function.
16766 * include/grub/script_sh.h (grub_lexer_param): New members, unput
16767 and resplit.
16768 * tests/grub_script_echo1.in: Added few more testcases.
16769
16770 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16771
16772 * grub-core/kern/misc.c: Don't add abort alias in utils.
16773 Reported by: echoline.
16774
16775 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
16776
16777 Add missing files into "make dist" tarball for other platforms.
16778
16779 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
16780 * conf/Makefile.common (dist_noinst_DATA): New variable.
16781 * conf/Makefile.extra-dist: Added missing make dist files.
16782 * grub-core/Makefile.core.def: Likewise.
16783
16784 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16785
16786 Compress grub_prefix.
16787
16788 * grub-core/boot/i386/pc/lnxboot.S: Use
16789 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
16790 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
16791 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
16792 GRUB_MACHINE_PREFIX_END. All users updated.
16793 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
16794 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
16795 + 0x40.
16796 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16797 * util/grub-mkimage.c (image_target_desc): Change data_end to
16798 prefix_end. All users updated.
16799
16800 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16801
16802 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
16803 value.
16804 (grub_openbsd_boot): Likewise.
16805 (grub_netbsd_boot): Likewise.
16806 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
16807 (grub_xnu_boot): Likewise.
16808
16809 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16810
16811 * configure.ac: Clean LIBS variable after tests.
16812
16813 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16814
16815 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
16816
16817 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16818
16819 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
16820 echo if libdevmapper will be used.
16821
16822 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
16823
16824 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
16825 constant for the same file.
16826
16827 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
16830
16831 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16832
16833 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
16834 grub-core/*.pp.
16835
16836 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16837
16838 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
16839 required by the boot protocol.
16840
16841 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
16842 ebp and edi members.
16843 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
16844 state.ebp and state.edi.
16845 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
16846 %ebp and %edi according to grub_relocator32_ebp and
16847 grub_relocator32_edi respectively.
16848 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
16849 and state.edi.
16850
16851 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16852
16853 Add i386-pc-pxe image target.
16854
16855 * util/grub-mkimage.c (image_target_desc): New enum value
16856 IMAGE_I386_PC_PXE.
16857 (image_targets): New target i386-pc-pxe.
16858 (generate_image): Handle i386-pc-pxe image.
16859
16860 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16861
16862 Fix grub_pxe_scan.
16863
16864 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
16865 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
16866 All users updated.
16867 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
16868 (grub_pxe_pxenv): Correct type.
16869
16870 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16871
16872 * NEWS: Document most of the important changes since 1.98.
16873
16874 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16875
16876 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
16877 generated manual page) a little.
16878
16879 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16880
16881 * docs/grub.texi: Add myself as an author.
16882
16883 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16884
16885 * Makefile.util.def (libgrub.a): Add missing sunpc.
16886 Reported by: Seth Goldberg.
16887
16888 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16889
16890 Interrupt wrapping and code simplifications.
16891
16892 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
16893 x86_noieee1275 which are functionaly equivalent in this case.
16894 (grub-install): Make source on each platform explicit. Enable on
16895 all noemu.
16896 * gentpl.py (x86_efi_pc): Removed group.
16897 (x86_noefi): Likewise.
16898 (i386_noefi): Likewise.
16899 (x86_noieee1275): Likewise.
16900 (i386_noieee1275): Likewise.
16901 (i386_noefi_noieee1275): Likewise.
16902 (i386_pc_qemu_coreboot): Likewise.
16903 (i386_coreboot_multiboot): Likewise.
16904 (i386_pc_coreboot_multiboot_qemu): Likewise.
16905 (x86_noefi_mips): Likewise.
16906 (noieee1275): Likewise.
16907 (ieee1275_mips): Likewise.
16908 (noemu_noieee1275): Likewise.
16909 (cmos): New group.
16910 (usb): Likewise.
16911 (videoinkernel): Likewise.
16912 (videomodules): Likewise.
16913 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
16914 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
16915 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
16916 include/grub/loader.h, include/grub/msdos_partition.h,
16917 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
16918 include/grub/machine/console.h, include/grub/machine/vga.h,
16919 include/grub/machine/vbe.h, include/grub/machine/init.h,
16920 include/grub/machine/kernel.h, include/grub/cpu/time.h,
16921 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
16922 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
16923 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
16924 * grub-core/Makefile.core.def (kernel): Explicit the source for
16925 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
16926 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
16927 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
16928 Use videoinkernel tag.
16929 (usb): Enable on all usb.
16930 (usbserial_common): Likewise.
16931 (usbserial_pl2303): Likewise.
16932 (usbserial_ftdi): Likewise.
16933 (uhci): Enable on all x86.
16934 (ohci): Enable on all pci.
16935 (cmostest): Enable on all CMOS.
16936 (acpi): Include commands/acpi.c on all platforms.
16937 (halt): Add relevant lib/*/halt.c.
16938 (hdparm): Enable on all pci.
16939 (lspci): Likewise.
16940 (usbtest): Enable on all usb.
16941 (ata): Enable on all pci.
16942 (ata_pthru): Likewise.
16943 (usbms): Enable on all usb.
16944 (usb_keyboard): Likewise.
16945 (font): Use tag videomodules.
16946 (bufio): Likewise.
16947 (datetime): Use tag cmos. Enable on all noemu.
16948 (mmap): Use tags common and x86.
16949 (gfxterm): Use tag videomodules.
16950 (bitmap): Likewise.
16951 (bitmap_scale): Likewise.
16952 (video_fb): Likewise.
16953 (video): Likewise.
16954 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
16955 adjust padding accordingly. All users updated.
16956 (grub_ohci_transaction): Fix bad format specification.
16957 (GRUB_MOD_INIT): Add asserts for struct size.
16958 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
16959 (grub_alloc_td): Likewise.
16960 (grub_free_queue): Likewise.
16961 (grub_uhci_transfer): Likewise.
16962 (grub_uhci_transaction): Fix bad format specification.
16963 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16964 (grub_usb_bulk_readwrite): Likewise.
16965 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
16966 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
16967 Made static.
16968 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
16969 Made static.
16970 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
16971 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
16972 Transformed into C.
16973 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
16974 Moved from here ...
16975 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
16976 ... here. Transformed into C. Made static.
16977 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
16978 Moved from here ...
16979 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
16980 ... here. Transformed into C. Made static.
16981 * grub-core/kern/i386/pc/startup.S
16982 (grub_biosdisk_check_int13_extensions): Moved from here ...
16983 * grub-core/disk/i386/pc/biosdisk.c
16984 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
16985 Made static.
16986 * grub-core/kern/i386/pc/startup.S
16987 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
16988 * grub-core/disk/i386/pc/biosdisk.c
16989 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
16990 Transformed into C. Made static.
16991 * grub-core/kern/i386/pc/startup.S
16992 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
16993 * grub-core/disk/i386/pc/biosdisk.c
16994 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
16995 Transformed into C. Made static.
16996 * grub-core/kern/i386/pc/startup.S
16997 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
16998 * grub-core/disk/i386/pc/biosdisk.c
16999 (grub_biosdisk_get_diskinfo_standard): ... here.
17000 Transformed into C. Made static.
17001 * grub-core/kern/i386/pc/startup.S
17002 (grub_biosdisk_get_num_floppies): Moved from here ...
17003 * grub-core/disk/i386/pc/biosdisk.c
17004 (grub_biosdisk_get_num_floppies): ... here.
17005 Transformed into C. Made static.
17006 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17007 New function.
17008 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17009 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17010 Transformed into C. Made static.
17011 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17012 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17013 Transformed into C. Made static.
17014 * grub-core/kern/i386/ieee1275/init.c: Removed.
17015 * grub-core/kern/i386/misc.S: Likewise.
17016 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17017 Splitted from here ...
17018 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17019 Transformed into C. Made static. All users updated.
17020 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17021 Transformed into C. Made static. All users updated.
17022 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17023 Moved from here...
17024 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17025 Transformed into C. Made static. All users updated.
17026 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17027 Moved from here...
17028 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17029 Transformed into C. Made static. All users updated.
17030 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17031 Removed (replaced by C version).
17032 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17033 Moved from here...
17034 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17035 Transformed into C. Made static.
17036 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17037 Moved from here...
17038 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17039 ... here. Transformed into C.
17040 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17041 Moved from here...
17042 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17043 ... here. Transformed into C.
17044 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17045 Moved from here...
17046 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17047 ... here. Transformed into C. Made static.
17048 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17049 Moved from here...
17050 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17051 ... here. Transformed into C.
17052 * grub-core/kern/i386/pc/startup.S
17053 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17054 * grub-core/video/i386/pc/vbe.c
17055 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17056 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17057 Moved from here...
17058 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17059 ... here. Transformed into C.
17060 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17061 Moved from here...
17062 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17063 ... here. Transformed into C.
17064 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17065 Moved from here...
17066 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17067 ... here. Transformed into C.
17068 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17069 Moved from here...
17070 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17071 ... here. Transformed into C.
17072 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17073 Moved from here...
17074 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17075 ... here. Transformed into C. Made static.
17076 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17077 Moved from here...
17078 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17079 ... here. Transformed into C. Made static.
17080 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17081 Moved from here...
17082 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17083 ... here. Transformed into C. Made static.
17084 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17085 pxe_rm_entry as third argument.
17086 (grub_bios_interrupt): New function.
17087 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17088 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17089 of calling grub_stop.
17090 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17091 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17092 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17093 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17094 * grub-core/lib/i386/halt.c: Moved from here ...
17095 * grub-core/lib/i386/halt.c: ... here.
17096 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17097 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17098 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17099 grub_stop_floppy.
17100 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17101 * include/grub/i386/coreboot/init.h: Removed.
17102 * include/grub/i386/multiboot/init.h: Likewise.
17103 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17104 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17105 * include/grub/i386/pc/int.h: New file.
17106 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17107 (grub_pxe_scan): Removed.
17108 (grub_pxe_call): Update prototype.
17109 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17110 prototypes.
17111 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17112 * include/grub/i386/qemu/init.h: Removed.
17113 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17114 noreturn.
17115 (grub_halt): Likewise.
17116 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17117 (grub_reboot): Likewise.
17118 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17119 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17120 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17121
17122 2010-08-30 Robert Millan <rmh@gnu.org>
17123
17124 * NEWS: Document addition of ZFS support in `grub-install' and
17125 `grub-mkconfig'.
17126
17127 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17128
17129 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17130 dprintf output.
17131
17132 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17133
17134 Remove leftover embedding of font objects.
17135
17136 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17137 * util/grub-install.in (font): Removed.
17138 * util/grub-mkimage.c (generate_image): Remove font support. All users
17139 updated.
17140
17141 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17142
17143 Remove leftover embedding of font objects.
17144
17145 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17146 * util/grub-install.in (font): Removed.
17147 * util/grub-mkimage.c (generate_image): Remove font support. All users
17148 updated.
17149
17150 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17153 Reported by: Ian Turner
17154
17155 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17156
17157 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17158 timeout to avoid indefinite boot stalling.
17159
17160 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17163 (grub_env_write_color_highlight): Likewise.
17164
17165 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17166
17167 * grub-core/normal/term.c (print_more): Return to normal and not
17168 to standard state after printing "---MORE---".
17169
17170 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17173 Mask out the bit 0x80 since it has other meaning that specifiing color.
17174
17175 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17176
17177 New relocator. Allows for more kernel support and more straightforward
17178 loader writing.
17179
17180 * Makefile.am (BOOTTARGET): New variable.
17181 (QEMU32): Likewise.
17182 (linux.init.x86_64): New target.
17183 (linux.init.i386): Likewise.
17184 (multiboot.elf): Likewise.
17185 (kfreebsd.elf): Likewise.
17186 (kfreebsd.aout): Likewise.
17187 (pc-chainloader.elf): Likewise.
17188 (pc-chainloader.bin): Likewise.
17189 (ntldr.elf): Likewise.
17190 (ntldr.bin): Likewise.
17191 (multiboot2.elf): Likewise.
17192 (kfreebsd.init.x86_64): Likewise.
17193 (kfreebsd.init.i386): Likewise.
17194 (knetbsd.init.i386): Likewise.
17195 (kopenbsd.init.i386): Likewise.
17196 (knetbsd.init.x86_64): Likewise.
17197 (kopenbsd.init.x86_64): Likewise.
17198 (linux-initramfs.i386): Likewise.
17199 (linux-initramfs.x86_64): Likewise.
17200 (kfreebsd-mfsroot.i386.img): Likewise.
17201 (knetbsd.image.i386): Likewise.
17202 (kopenbsd.image.i386): Likewise.
17203 (kopenbsd.image.x86_64): Likewise.
17204 (knetbsd.miniroot-image.i386.img): Likewise.
17205 (kfreebsd-mfsroot.x86_64.img): Likewise.
17206 (knetbsd.image.x86_64): Likewise.
17207 (knetbsd.miniroot-image.x86_64.img): Likewise.
17208 (kfreebsd-mfsroot.i386.gz): Likewise.
17209 (bootcheck-kfreebsd-i386): Likewise.
17210 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17211 (bootcheck-kfreebsd-x86_64): Likewise.
17212 (knetbsd.miniroot-image.i386.gz): Likewise.
17213 (bootcheck-knetbsd-i386): Likewise.
17214 (bootcheck-kopenbsd-i386): Likewise.
17215 (bootcheck-kopenbsd-x86_64): Likewise.
17216 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17217 (bootcheck-knetbsd-x86_64): Likewise.
17218 (bootcheck-linux-i386): Likewise.
17219 (bootcheck-linux-x86_64): Likewise.
17220 (bootcheck-linux16-i386): Likewise.
17221 (bootcheck-linux16-x86_64): Likewise.
17222 (bootcheck-multiboot): Likewise.
17223 (bootcheck-multiboot2): Likewise.
17224 (bootcheck-kfreebsd-aout): Likewise.
17225 (bootcheck-pc-chainloader): Likewise.
17226 (bootcheck-ntldr): Likewise.
17227 (CLEANFILES): Add new targets.
17228 (BOOTCHECKS): New variable.
17229 (.PHONY): Add bootchecks.
17230 (SUCCESSFUL_BOOT_STRING): New variable.
17231 (BOOTCHECK_TIMEOUT): Likewise.
17232 (bootcheck): New target
17233 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17234 * configure.ac: Correct efiemu excuse.
17235 * docs/grub.texi (Supported kernels): New chapter.
17236 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17237 include/grub/mm_private.h. Simplify inclusion of
17238 include/grub/boot.h, include/grub/loader.h
17239 and include/grub/msdos_partition.h
17240 (KERNEL_HEADER_FILES) [i386_coreboot]:
17241 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17242 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17243 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17244 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17245 include/grub/machine/loader.h.
17246 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17247 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17248 extra_dist.
17249 (pci.mod): Enable on i386-multiboot.
17250 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17251 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17252 i386-qemu.
17253 (relocator.mod): Rewritten.
17254 (aout.mod): Enable on all x86.
17255 (bsd.mod): Likewise.
17256 (ntldr.mod): New module.
17257 (linux.mod): Use loader/i386/linux.c on all x86.
17258 (xnu.mod): Enable on all x86.
17259 (vga_text.mod): disable on EFI and QEMU.
17260 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17261 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17262 * grub-core/efiemu/loadcore.c: Likewise.
17263 * grub-core/efiemu/main.c: Likewise.
17264 (grub_efiemu_exit_boot_services): Removed.
17265 (grub_efiemu_finish_boot_services): Likewise.
17266 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17267 function.
17268 * grub-core/efiemu/i386/nocfgtables.c: New file.
17269 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17270 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17271 (grub_efi_finish_boot_services): Moved from here ...
17272 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17273 Fille finish memory map and related data.
17274 (finish_mmap_buf): New variable.
17275 (grub_efi_uintn_t finish_mmap_size): Likewise.
17276 (grub_efi_uintn_t finish_key): Likewise.
17277 (grub_efi_uintn_t finish_desc_size): Likewise.
17278 (grub_efi_uint32_t finish_desc_version): Likewise.
17279 (grub_efi_is_finished): Likewise.
17280 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17281 finished.
17282 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17283 (grub_elf64_phdr_iterate): Likewise.
17284 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17285 (grub_os_area_size): Likewise.
17286 (grub_machine_init): Don't reserve os area.
17287 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17288 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17289 * grub-core/kern/i386/loader.S: Removed.
17290 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17291 (grub_os_area_size): Likewise.
17292 (grub_machine_init): Don't reserve os area.
17293 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17294 Don't call grub_dl_unload_all.
17295 Don't include loader.S.
17296 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17297 Declare the memory after _end as available.
17298 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17299 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17300 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17301 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17302 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17303 * include/grub/mm_private.h (grub_mm_header): ... here.
17304 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17305 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17306 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17307 (grub_mm_region): ..here. Removed addr. Added pre_size.
17308 All users updated.
17309 * grub-core/kern/mm.c (base): Renamed to ...
17310 (grub_mm_base): ... this. Made global.
17311 (grub_real_malloc): Alloc from end of region.
17312 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17313 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17314 * grub-core/kern/powerpc/cache_flush.S: ... here.
17315 * grub-core/lib/efi/relocator.c: New file.
17316 * grub-core/lib/i386/relocator.c: Rewritten.
17317 * grub-core/lib/i386/relocator16.S: New file.
17318 * grub-core/lib/i386/relocator32.S: Likewise.
17319 * grub-core/lib/i386/relocator64.S: Likewise.
17320 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17321 * grub-core/lib/i386/relocator_common.S: New file.
17322 * grub-core/lib/ieee1275/relocator.c: Likewise.
17323 * grub-core/lib/mips/relocator.c: Rewritten.
17324 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17325 stylistic adjustments.
17326 * grub-core/lib/powerpc/relocator.c: New file.
17327 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17328 * grub-core/lib/relocator.c: Rewritten.
17329 * grub-core/lib/x86_64/relocator_asm.S: New file.
17330 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17331 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17332 (bsd_tag): New struct.
17333 (tags): New variable.
17334 (tags_last): Likewise.
17335 (netbsd_module): New struct.
17336 (netbsd_mods): New variable.
17337 (netbsd_mods_last): Likewise.
17338 (openbsd_opts): New parameter "serial".
17339 (OPENBSD_SERIAL_ARG): New definition.
17340 (netbsd_opts): New parameter "serial".
17341 (NETBSD_SERIAL_ARG): New definition.
17342 (grub_freebsd_add_meta): Reorganised into ...
17343 (grub_bsd_add_meta): ...this. All users updated.
17344 (grub_freebsd_add_mmap): Reorganised into ...
17345 (generate_e820_mmap): ...this...
17346 (grub_bsd_add_mmap): ...and this. All users updated.
17347 (grub_freebsd_list_modules): Use tags.
17348 (grub_netbsd_add_meta_module): New function.
17349 (grub_netbsd_list_modules): Likewise.
17350 (grub_freebsd_boot): Use relocator and finish EFI.
17351 (grub_openbsd_boot): Likewise.
17352 (grub_netbsd_setup_video): New function.
17353 (grub_netbsd_add_modules): Likewise.
17354 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17355 and finish EFI.
17356 (grub_bsd_unload): Unload tags.
17357 (grub_bsd_load_aout): Use relocator.
17358 (grub_bsd_elf32_size_hook): New function.
17359 (grub_bsd_elf32_hook): Use relocator.
17360 (grub_bsd_elf64_size_hook): New function.
17361 (grub_bsd_elf64_hook): Use relocator.
17362 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17363 (grub_bsd_load): Zero-out openbsd_ramdisk.
17364 (grub_bsd_load): Use relocator.
17365 (grub_cmd_openbsd): Support serial.
17366 (grub_cmd_netbsd): Support modules.
17367 (grub_cmd_freebsd_module): Use relocator.
17368 (grub_netbsd_module_load): New function.
17369 (grub_cmd_netbsd_module): Likewise.
17370 (grub_cmd_openbsd_ramdisk): Likewise.
17371 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17372 kopenbsd_ramdisk.
17373 (GRUB_MOD_FINI): Unregister new commands.
17374 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17375 (grub_freebsd_load_elfmodule_obj): Use relocator.
17376 (grub_freebsd_load_elfmodule): Likewise.
17377 (grub_freebsd_load_elf_meta): Likewise.
17378 (grub_netbsd_load_elf_meta): New function.
17379 (grub_openbsd_find_ramdisk): Likewise.
17380 * grub-core/loader/i386/bsd_helper.S: Removed.
17381 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17382 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17383 * grub-core/loader/i386/efi/linux.c: Likewise.
17384 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17385 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17386 (DEFAULT_VIDEO_MODE): Likewise.
17387 (real_mode_target): New variable.
17388 (prot_mode_target): Likewise.
17389 (initrd_mem_target): Likewise.
17390 (relocator): Likewise.
17391 (efi_mmap_buf): Likewise.
17392 (efi_mmap_size): Likewise.
17393 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17394 (free_pages): Use relocator.
17395 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17396 (grub_linux_setup_video): Return error.
17397 (grub_linux_trampoline_start): Removed.
17398 (grub_linux_trampoline_end): Likewise.
17399 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17400 andd video parameters depending on firmware.
17401 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17402 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17403 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17404 (grub_cmd_initrd): Use relocator.
17405 * grub-core/loader/i386/linux_trampoline.S: Removed.
17406 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17407 (elf_sec_entsize): Likewise.
17408 (elf_sec_shstrndx): Likewise.
17409 (elf_sections): Likewise.
17410 (grub_multiboot_load): Use relocator.
17411 (grub_multiboot_get_mbi_size): Account for sections.
17412 (grub_multiboot_make_mbi): Use relocator and support sections.
17413 (grub_multiboot_add_elfsyms): New function.
17414 (grub_multiboot_free_mbi): Free sections.
17415 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17416 (grub_linux_real_target): Likewise.
17417 (grub_linux_real_chunk): Likewise.
17418 (grub_linux16_prot_size): Likewise.
17419 (grub_linux16_boot): Use relocator.
17420 (grub_linux_unload): Unload relocator.
17421 (grub_cmd_linux): Use relocator.
17422 (grub_cmd_initrd): Likewise.
17423 * grub-core/loader/i386/pc/ntldr.c: New file.
17424 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17425 Don't try to guess CPU frequency.
17426 (grub_xnu_set_video): Stretch bitmap.
17427 (grub_xnu_boot): Use relocator.
17428 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17429 (grub_linux_unload): Free relocator.
17430 (grub_linux_load32): Use relocator.
17431 (grub_linux_load64): Likewise.
17432 (grub_cmd_initrd): Likewise.
17433 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17434 (grub_multiboot_unload): Unload relocator.
17435 (grub_cmd_multiboot): Use relocator.
17436 (grub_cmd_module): Likewise.
17437 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17438 Use relocator and support sections.
17439 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17440 (elf_sec_entsize): Likewise.
17441 (elf_sec_shstrndx): Likewise.
17442 (elf_sections): Likewise.
17443 (grub_multiboot_load): Use relocator.
17444 (grub_multiboot_get_mbi_size): Account for sections.
17445 (grub_multiboot_make_mbi): Use relocator and support sections.
17446 (grub_multiboot_add_elfsyms): New function.
17447 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17448 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17449 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17450 Prototype changed. All users updated.
17451 (grub_xnu_align_heap): Simplified.
17452 (grub_xnu_writetree_toheap): Likewise.
17453 (grub_xnu_unload): Unload relocator.
17454 (grub_cmd_xnu_kernel): Use relocator.
17455 (grub_cmd_xnu_kernel64): Likewise.
17456 (grub_xnu_register_memory): Simplified.
17457 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17458 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17459 EFI is finished.
17460 (grub_console_checkkey): Likewise.
17461 (grub_console_getkey): Likewise.
17462 (grub_console_getwh): Likewise.
17463 (grub_console_getxy): Likewise.
17464 (grub_console_gotoxy): Likewise.
17465 (grub_console_cls): Likewise.
17466 (grub_console_setcolorstate): Likewise.
17467 (grub_console_setcursor): Likewise.
17468 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17469 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17470 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17471 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17472 * grub-core/tests/boot/kernel-8086.S: Likewise.
17473 * grub-core/tests/boot/kernel-i386.S: Likewise.
17474 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17475 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17476 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17477 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17478 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17479 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17480 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17481 * grub-core/tests/boot/linux.cfg: Likewise.
17482 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17483 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17484 * grub-core/tests/boot/linux16.cfg: Likewise.
17485 * grub-core/tests/boot/multiboot.cfg: Likewise.
17486 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17487 * grub-core/tests/boot/ntldr.cfg: Likewise.
17488 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17489 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17490 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17491 New definition.
17492 * include/grub/dl.h (grub_dl_unload_all): Removed.
17493 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17494 (grub_efi_finish_boot_services): Change prototype.
17495 (grub_efi_is_finished): New variable.
17496 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17497 Changed prototype.
17498 (grub_efiemu_finish_boot_services): Removed.
17499 (grub_machine_efiemu_init_tables): New prototype.
17500 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17501 (grub_elf64_phdr_iterate): Likewise.
17502 * include/grub/i386/bsd.h: Include relocator.h.
17503 (freebsd_tag_header): New struct.
17504 (grub_openbsd_bios_mmap): Removed.
17505 (grub_unix_real_boot): Removed.
17506 (grub_freebsd_load_elfmodule32): Changed prototype.
17507 (grub_freebsd_load_elfmodule_obj64): Likewise.
17508 (grub_freebsd_load_elf_meta32): Likewise.
17509 (grub_freebsd_load_elf_meta64): Likewise.
17510 (grub_freebsd_add_meta): Removed.
17511 (grub_netbsd_load_elf_meta32): New prototype.
17512 (grub_netbsd_load_elf_meta64): Likewise.
17513 (grub_bsd_add_meta): Likewise.
17514 (grub_openbsd_ramdisk_descriptor): New struct.
17515 (grub_openbsd_find_ramdisk32): New prototype.
17516 (grub_openbsd_find_ramdisk64): Likewise.
17517 * include/grub/i386/coreboot/loader.h: Removed.
17518 * include/grub/i386/efi/loader.h: Likewise.
17519 * include/grub/i386/ieee1275/loader.h: Likewise.
17520 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17521 to grub_uint32_t.
17522 * include/grub/i386/loader.h: Removed.
17523 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17524 value.
17525 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17526 (grub_phys_addr_t): New type.
17527 (grub_vtop): New inline function.
17528 (grub_map_memory): Likewise.
17529 (grub_unmap_memory): Likewise.
17530 * include/grub/i386/multiboot/loader.h: Removed.
17531 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17532 (NETBSD_BTINFO_CONSOLE): New definition.
17533 (NETBSD_BTINFO_SYMTAB): Likewise.
17534 (NETBSD_BTINFO_MODULES): Likewise.
17535 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17536 (grub_netbsd_bootinfo): New struct.
17537 (grub_netbsd_btinfo_common): Use explicit bitsize.
17538 (grub_netbsd_btinfo_mmap_entry): Removed.
17539 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17540 (grub_netbsd_btinfo_bootdisk): New struct.
17541 (grub_netbsd_btinfo_symtab): Likewise.
17542 (grub_netbsd_btinfo_serial): Likewise.
17543 (grub_netbsd_btinfo_modules): Likewise.
17544 (grub_netbsd_btinfo_framebuf): Likewise.
17545 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17546 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17547 Likewise.
17548 (grub_openbsd_bootargs): Use explicit bitsize.
17549 (grub_openbsd_bootarg_console): New struct.
17550 (GRUB_OPENBSD_COM_MAJOR): New definition.
17551 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17552 * include/grub/i386/pc/efiemu.h: Removed.
17553 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17554 * include/grub/i386/qemu/loader.h: Removed.
17555 * include/grub/i386/relocator.h: Rewritten.
17556 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17557 * include/grub/mips/memory.h: New file.
17558 * include/grub/mips/multiboot.h: Rewritten.
17559 * include/grub/mips/relocator.h: Rewritten.
17560 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17561 (grub_vtop): New function.
17562 (grub_map_memory): Likewise.
17563 (grub_unmap_memory): Likewise.
17564 * include/grub/misc.h (ALIGN_DOWN): New definition.
17565 * include/grub/mm.h (grub_mm_check_real): New proto.
17566 (GRUB_MM_CHECK): New definition.
17567 * include/grub/mm_private.h: New file.
17568 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17569 (grub_multiboot_get_mbi_size): Removed.
17570 (grub_multiboot_make_mbi): Change prottype.
17571 (grub_multiboot_set_accepts_video): New proto.
17572 (grub_multiboot_add_elfsyms): Likewise.
17573 (grub_multiboot_payload_eip): New variable.
17574 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17575 New prototype.
17576 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17577 New definition.
17578 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17579 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17580 * include/grub/powerpc/ieee1275/loader.h: Removed.
17581 * include/grub/powerpc/memory.h: New file.
17582 * include/grub/powerpc/relocator.h: Likewise.
17583 * include/grub/relocator.h: Likewise.
17584 * include/grub/relocator_private.h: Likewise.
17585 * include/grub/sparc64/ieee1275/loader.h: Removed.
17586 * include/grub/x86_64/memory.h: New file.
17587 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17588 (grub_xnu_heap_malloc): Likewise.
17589 (grub_xnu_heap_real_start): Removed.
17590 (grub_xnu_heap_start): Likewise.
17591 (grub_xnu_relocator): New variable.
17592 (grub_xnu_heap_target_start): Likewise.
17593 * tests/util/grub-shell.in: Support non-pc.
17594 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17595
17596 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17597
17598 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17599 on malloc error.
17600 (grub_bidi_logical_to_visual): Check that malloc succeded.
17601 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17602 puts.
17603 (grub_xputs_normal): Likewise.
17604
17605 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17606
17607 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17608 extra_dist.
17609
17610 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17611
17612 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17613
17614 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17615
17616 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17617
17618 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17619
17620 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17621 dprintf.
17622
17623 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17624
17625 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
17626
17627 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17628
17629 * grub-core/normal/term.c (print_more): Fix a memory leak.
17630 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
17631 (grub_xputs_normal): Likewise.
17632
17633 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17634
17635 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
17636 the begining of the string
17637
17638 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17639
17640 * grub-core/script/script.c (grub_script_parse): Free parsed on
17641 failure.
17642
17643 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
17646 on failure.
17647
17648 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17649
17650 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
17651 return.
17652
17653 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17654
17655 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
17656 (scroll_up): Fix a memory leak.
17657
17658 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17659
17660 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
17661 errors.
17662
17663 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
17664
17665 Handle USB pendrives exposed as floppies.
17666
17667 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
17668 floppy.
17669 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17670 Check for partitions on all devices.
17671
17672 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17673
17674 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
17675 (readkey): Likewise.
17676
17677 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17678
17679 Multiple variable names support to "export" command.
17680
17681 * normal/context.c (grub_cmd_export): "export" command supports
17682 multiple variable names.
17683
17684 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
17685
17686 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
17687 --target=drive output to Mach device name.
17688
17689 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17690
17691 New Automake based build system for GRUB.
17692
17693 * ABOUT-NLS: New file.
17694 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
17695 in Makefile.util.def file.
17696 * Makefile.util.def: New file. Autogen build definitions file for
17697 GRUB host utils.
17698 * conf/Makefile.common: New file. Common variables for GRUB host
17699 utils and target modules.
17700 * conf/Makefile.extra-dist: New file. Extra files for make dist.
17701 * docs/Makefile.am: New file. Automake file for docs.
17702 * gentpl.py: New file. Python script to generate Autogen
17703 template.
17704 * grub-core/Makefile.am: New file. GRUB target modules' rules
17705 that doesn't fit in Makefile.core.def file.
17706 * grub-core/Makefile.core.def: New file. Autogen build
17707 definitions file for GRUB target modules.
17708 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
17709 specific setjmp.S file.
17710 * po/Makefile.am: New file.
17711
17712 * .bzrignore: New ignores.
17713 * INSTALL: New requirements, without Ruby.
17714 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
17715 * autogen.sh: Updated to invoke autogen as necessary.
17716 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
17717 and defines for Automake conditionals.
17718 * geninit.sh: Refactoring.
17719
17720 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
17721 necessary.
17722 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
17723 New prototype.
17724
17725 * include/grub/test.h: Fix functional test modules' naming.
17726 * grub-core/tests/example_functional_test.c: Fix test module name.
17727
17728 * util/misc.c: Hosted versions' of grub functions for libgrub.a
17729 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
17730 * util/grub-editenv.c: Likewise.
17731 * util/grub-fstest.c: Likewise.
17732 * util/grub-mkdevicemap.c: Likewise.
17733 * util/grub-mkfont.c: Likewise.
17734 * util/grub-mkimage.c: Likewise.
17735 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17736 * util/grub-probe.c: Likewise.
17737 * util/grub-script-check.c: Likewise.
17738 * util/i386/pc/grub-setup.c: Likewise.
17739 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17740
17741 * tests/util/grub-shell.in: Fix override directory path.
17742 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
17743 * util/import_gcry.py: Create Makefile.gcry.def file instead.
17744
17745 * util/lvm.c: Update #includes.
17746 * util/raid.c: Likewise.
17747 * util/resolve.c: Likewise.
17748 * grub-core/bus/emu/pci.c: Likewise.
17749 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
17750 * grub-core/lib/posix_wrap/string.h: Likewise.
17751 * grub-core/kern/emu/main.c: Likewise.
17752
17753 * grub-core/gensymlist.sh: New file. Script for generating kernel
17754 symbols file.
17755 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
17756
17757 * grub-core/gentrigtables.c: Fix unused variable warnings.
17758
17759 * Makefile.in: Removed.
17760 * conf/any-emu.rmk: Removed.
17761 * conf/common.rmk: Removed.
17762 * conf/i386-coreboot.rmk: Removed.
17763 * conf/i386-efi.rmk: Removed.
17764 * conf/i386-ieee1275.rmk: Removed.
17765 * conf/i386-multiboot.rmk: Removed.
17766 * conf/i386-pc.rmk: Removed.
17767 * conf/i386-qemu.rmk: Removed.
17768 * conf/i386.rmk: Removed.
17769 * conf/mips-yeeloong.rmk: Removed.
17770 * conf/mips.rmk: Removed.
17771 * conf/powerpc-ieee1275.rmk: Removed.
17772 * conf/sparc64-ieee1275.rmk: Removed.
17773 * conf/tests.rmk: Removed.
17774 * conf/x86-efi.rmk: Removed.
17775 * conf/x86_64-efi.rmk: Removed.
17776 * gendistlist.sh: Removed.
17777 * geninitheader.sh: Removed.
17778 * genkernsyms.sh.in: Removed.
17779 * genmk.rb: Removed.
17780 * gensymlist.sh.in: Removed.
17781 * mkinstalldirs: Removed.
17782 * boot: Moved ...
17783 * grub-core/boot: ... to here.
17784 * bus: Moved ...
17785 * grub-core/bus: ... to here.
17786 * commands: Moved ...
17787 * grub-core/commands: ... to here.
17788 * disk: Moved ...
17789 * grub-core/disk: ... to here.
17790 * efiemu: Moved ...
17791 * grub-core/efiemu: ... to here.
17792 * font: Moved ...
17793 * grub-core/font: ... to here.
17794 * fs: Moved ...
17795 * grub-core/fs: ... to here.
17796 * gencmdlist.sh: Moved ...
17797 * grub-core/gencmdlist.sh: ... to here.
17798 * genemuinit.sh: Moved ...
17799 * grub-core/genemuinit.sh: ... to here.
17800 * genemuinitheader.sh: Moved ...
17801 * grub-core/genemuinitheader.sh: ... to here.
17802 * genfslist.sh: Moved ...
17803 * grub-core/genfslist.sh: ... to here.
17804 * genhandlerlist.sh: Moved ...
17805 * grub-core/genhandlerlist.sh: ... to here.
17806 * genmoddep.awk: Moved ...
17807 * grub-core/genmoddep.awk: ... to here.
17808 * genmodsrc.sh: Moved ...
17809 * grub-core/genmodsrc.sh: ... to here.
17810 * genpartmaplist.sh: Moved ...
17811 * grub-core/genpartmaplist.sh: ... to here.
17812 * genparttoollist.sh: Moved ...
17813 * grub-core/genparttoollist.sh: ... to here.
17814 * genterminallist.sh: Moved ...
17815 * grub-core/genterminallist.sh: ... to here.
17816 * gentrigtables.c: Moved ...
17817 * grub-core/gentrigtables.c: ... to here.
17818 * genvideolist.sh: Moved ...
17819 * grub-core/genvideolist.sh: ... to here.
17820 * gettext: Moved ...
17821 * grub-core/gettext: ... to here.
17822 * gfxmenu: Moved ...
17823 * grub-core/gfxmenu: ... to here.
17824 * gnulib: Moved ...
17825 * grub-core/gnulib: ... to here.
17826 * hello: Moved ...
17827 * grub-core/hello: ... to here.
17828 * hook: Moved ...
17829 * grub-core/hook: ... to here.
17830 * io: Moved ...
17831 * grub-core/io: ... to here.
17832 * kern: Moved ...
17833 * grub-core/kern: ... to here.
17834 * lib: Moved ...
17835 * grub-core/lib: ... to here.
17836 * loader: Moved ...
17837 * grub-core/loader: ... to here.
17838 * mmap: Moved ...
17839 * grub-core/mmap: ... to here.
17840 * normal: Moved ...
17841 * grub-core/normal: ... to here.
17842 * partmap: Moved ...
17843 * grub-core/partmap: ... to here.
17844 * parttool: Moved ...
17845 * grub-core/parttool: ... to here.
17846 * script: Moved ...
17847 * grub-core/script: ... to here.
17848 * term: Moved ...
17849 * grub-core/term: ... to here
17850 * tests/example_functional_test.c: Moved ...
17851 * grub-core/tests/example_functional_test.c: ... to here.
17852 * tests/lib/functional_test.c: Moved ...
17853 * grub-core/tests/lib/functional_test.c: ... to here.
17854 * tests/lib/test.c: Moved ...
17855 * grub-core/tests/lib/test.c: ... to here.
17856 * video: Moved ...
17857 * grub-core/video: ... to here.
17858
17859 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17860
17861 Replace --enable-grub-emu-modules with grub-emu-lite.
17862
17863 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
17864 cache.S.
17865
17866 * include/grub/emu/misc.h (grub_emu_init): New prototype.
17867 * kern/emu/full.c: New file. For grub-emu specific initialization.
17868 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
17869 * kern/emu/main.c: Call initialization function grub_emu_init.
17870
17871 * Makefile.in: Include grub-emu-lite in install.
17872 * commands/parttool.c: Use grub_no_autoload to differentiate
17873 between grub-emu and grub-emu-lite.
17874 * include/grub/misc.h: New variable grub_no_autoload.
17875
17876 * conf/any-emu.rmk: New rules for grub-emu-lite.
17877 * configure.ac: Remove --enable-grub-emu-modules.
17878 * genmk.rb: Cleanup unnecessary rules.
17879 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
17880
17881 * normal/main.c: Don't load list files on grub-emu-lite.
17882 * util/misc.c (grub_arch_sync_caches): Removed.
17883
17884 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
17885
17886 * kern/mips/startup.S (grub_prefix): Update comment to refer to
17887 grub-mkimage rather than grub-mkelfimage.
17888 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17889
17890 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17891
17892 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
17893 a key after CapsLock or NumLock. It's just a qemu bug.
17894
17895 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17896
17897 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
17898 needed by libusb wrapper.
17899
17900 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17901
17902 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
17903
17904 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17905
17906 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
17907 --nounzip is passed.
17908
17909 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
17910
17911 USB hotunplugging and USB serial support.
17912
17913 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
17914 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
17915 (grub_uhci_transfer): Respect timeout and set *actual.
17916 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
17917 non-standard length.
17918 (grub_usb_device_attach): Autoload modules.
17919 (GRUB_MOD_INIT): Set grub_term_poll_usb.
17920 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
17921 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
17922 users updated.
17923 (grub_usb_add_hub): Fill nports and children.
17924 (attach_root_port): Receive hub instead of controller.
17925 All users updated. Fill hub->devices.
17926 (grub_usb_root_hub): Allocate hub->devices.
17927 (detach_device): New function.
17928 (poll_nonroot_hub): Fill children and detach devices.
17929 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
17930 actual arguments. All users updated.
17931 (grub_usb_bulk_read_extended): New function.
17932 * bus/usb/serial/common.c: New file.
17933 * bus/usb/serial/ftdi.c: Likewise.
17934 * bus/usb/serial/pl2303.c: Likewise.
17935 * commands/terminal.c (handle_command): Support wildcard.
17936 * commands/usbtest.c: Output "Unknown" instead of empty string.
17937 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
17938 (usbserial_common_mod_SOURCES): New variable.
17939 (usbserial_common_mod_CFLAGS): Likewise.
17940 (usbserial_common_mod_LDFLAGS): Likewise.
17941 (pkglib_MODULES): Add usbserial_pl2303.mod.
17942 (usbserial_pl2303_mod_SOURCES): New variable.
17943 (usbserial_pl2303_mod_CFLAGS): Likewise.
17944 (usbserial_pl2303_mod_LDFLAGS): Likewise.
17945 (pkglib_MODULES): Add usbserial_ftdi.mod.
17946 (usbserial_ftdi_mod_SOURCES): New variable.
17947 (usbserial_ftdi_mod_CFLAGS): Likewise.
17948 (usbserial_ftdi_mod_LDFLAGS): Likewise.
17949 (pkglib_MODULES): Add serial.mod.
17950 (serial_mod_SOURCES): New variable.
17951 (serial_mod_CFLAGS): Likewise.
17952 (serial_mod_LDFLAGS): Likewise.
17953 * conf/i386-pc.rmk: Likewise.
17954 * conf/mips-yeeloong.rmk: Likewise.
17955 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
17956 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
17957 * disk/usbms.c (first_available_slot): New variable.
17958 (grub_usbms_attach): Don't reuse free slots due to potential cache
17959 problems.
17960 * include/grub/serial.h: Moved to ..
17961 * include/grub/ns8250.h: ...this.
17962 * include/grub/serial.h: New file.
17963 * include/grub/term.h (grub_term_poll_usb): New variable.
17964 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
17965 readkey. All users updated.
17966 (grub_terminfo_output_state): Pass term to put.
17967 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
17968 (grub_usb_controller_dev): Add timeout and actual arguments to
17969 transfer. All users updated.
17970 (grub_usb_interface): New field detach_data.
17971 (grub_usb_device): New fields children and nports.
17972 (grub_usb_ep_type_t): New type.
17973 (grub_usb_get_ep_type): New function.
17974 (grub_usb_bulk_read_extended): Likewise.
17975 * include/grub/usbdesc.h (grub_usb_desc): New type.
17976 * include/grub/usbserial.h: New file.
17977 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
17978 * kern/term.c (grub_term_poll_usb): New variable.
17979 (grub_getkey): Call grub_term_poll_usb if set.
17980 (grub_checkkey): Likewise.
17981 (grub_getkeystatus): Likewise.
17982 * term/serial.c: Moved controller-specific parts to ...
17983 * term/ns8250.c: ... here.
17984 * term/serial.c: Mostly rewritten.
17985 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
17986 according to spec.
17987
17988 2010-08-20 Robert Millan <rmh@gnu.org>
17989
17990 Make kFreeBSD code more generic to support ext2fs as root, ufs as
17991 a separate module and maybe other interesting combinations.
17992
17993 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
17994 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
17995 (kfreebsd_entry): Add generic filesystem module load routine.
17996 Map GRUB `ext2' to kFreeBSD `ext2fs'.
17997
17998 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17999
18000 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18001 "numcenter" (I misunderstood the purpose of this entry).
18002 * docs/grub.texi (sendkey): Likewise.
18003
18004 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18005
18006 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18007 status flag options; simply omitting the option is equivalent and
18008 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18009 (keysym_table): Rename "num5numlock" to "numlock".
18010 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18011 can uniformly say that only the last of multiple `sendkey'
18012 invocations has any effect.
18013 * docs/grub.texi (sendkey): New section.
18014
18015 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18016
18017 * commands/i386/pc/sendkey.c (options): Fix three typos.
18018
18019 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18020
18021 Implement sendkey support.
18022
18023 * commands/i386/pc/sendkey.c: New file.
18024 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18025 (sendkey_mod_SOURCES): New variable.
18026 (sendkey_mod_CFLAGS): Likewise.
18027 (sendkey_mod_LDFLAGS): Likewise.
18028
18029 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18030
18031 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18032 fix warnings from Autoconf.
18033
18034 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18035
18036 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18037 to avoid false positives with some assemblers that output things
18038 like "someprefix_func" as part of their output.
18039
18040 2010-08-15 Robert Millan <rmh@gnu.org>
18041
18042 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18043 errors.
18044 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18045 grub_get_libzfs_handle() errors.
18046
18047 2010-08-14 Robert Millan <rmh@gnu.org>
18048
18049 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18050 filesystem is not ZFS.
18051
18052 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18053
18054 Fix for misspelled color names defaulting to black/black (bug
18055 reported by Doug Nazar)
18056
18057 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18058 status to prototype.
18059 * normal/color.c (grub_parse_color_name_pair): Return failure
18060 status.
18061 (grub_env_write_color_normal): Ignore bad color names.
18062 (grub_env_write_color_highlight): Likewise.
18063 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18064
18065 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18066
18067 "shift" command support to GRUB script.
18068
18069 * include/grub/script_sh.h (grub_script_shift): New prototype.
18070 * script/execute.c (grub_script_shift): New function.
18071 * script/main.c (grub_script_init): Register shift command.
18072 (grub_script_fini): Unregister shift command.
18073 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18074
18075 * tests/grub_script_shift.in: New testcase.
18076 * conf/tests.rmk: Rules for new testcase.
18077
18078 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18079
18080 "continue" command support to GRUB script.
18081
18082 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18083 (grub_script_break): Continue support.
18084 * script/main.c (grub_script_init): Register continue command.
18085 (grub_script_fini): Unregister continue command.
18086
18087 * tests/grub_script_continue.in: New testcase.
18088 * conf/tests.rmk: Rules for new testcase.
18089
18090 2010-08-12 BVK Chaitanya <bvk@dbook>
18091
18092 "break" command support to GRUB script.
18093
18094 * conf/common.rmk: Rule updates to grub-script-check.
18095 * include/grub/misc.h (grub_min): New function.
18096 * include/grub/script_sh.h (grub_script_init): New prototype.
18097 (grub_script_fini): New prototype.
18098 (grub_script_break): New prototype.
18099 * script/main.c (grub_script_init): New function.
18100 (grub_script_fini): New function.
18101 * script/execute.c (grub_script_break): New function.
18102 * normal/main.c: Calls to grub_script_{init,fini}.
18103 * util/grub-script-check.c (grub_script_break): New function.
18104
18105 * tests/grub_script_break.in: New testcase.
18106 * conf/tests.rmk: Rules for new test case.
18107
18108 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18109
18110 Function parameters support to GRUB script.
18111
18112 * script/yylex.l (VARIABLE): Regular expression update.
18113 * script/function.c (grub_script_function_call): Moved ...
18114 * script/execute.c (grub_script_function_call): ... to here.
18115 (grub_script_execute_arglist_to_argv): Removed.
18116 (grub_script_arglist_to_argv): New function.
18117 * script/argv.c: New file.
18118 (grub_script_argv_free): New function.
18119 (grub_script_argv_next): Likewise.
18120 (grub_script_argv_append): Likewise.
18121 (grub_script_argv_split_append): Likewise.
18122 * include/grub/script_sh.h (grub_script_argv): New struct.
18123 (grub_script_argv_free): New function.
18124 (grub_script_argv_next): Likewise.
18125 (grub_script_argv_append): Likewise.
18126 (grub_script_argv_split_append): Likewise.
18127
18128 * conf/common.rmk (normal.mod): New source script/argv.c.
18129
18130 * tests/grub_script_echo1.in: More tests.
18131 * tests/grub_script_vars1.in: Likewise.
18132 * tests/grub_script_functions.in: New test case.
18133 * conf/tests.rmk: Rules for new testcase.
18134
18135 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18136
18137 Remove grub_script_cmdblock struct.
18138
18139 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18140 * script/parser.y: Likewise.
18141 * script/execute.c: Rename cmdblock suffix to cmdlist.
18142 * script/script.c: Likewise.
18143 * util/grub-script-check.c: Likewise.
18144
18145 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18146
18147 * .bzrignore: add grub-macho2img
18148
18149 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18150
18151 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18152
18153 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18154
18155 Remove the dump of sm712 initialisation sequence.
18156
18157 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18158 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18159 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18160 (GRUB_VGA_CR_*): Added many registers.
18161 (GRUB_VGA_SR_*): Likewise.
18162 (GRUB_VGA_GR_*): Likewise.
18163 (grub_vga_write_arx): New function.
18164 (grub_video_hw_config): New struct.
18165 (grub_vga_set_geometry): New function.
18166 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18167 GRUB_PCI_CLASS_SUBCLASS_VGA.
18168 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18169 * video/sm712.c (grub_sm712_write_reg): New function
18170 (grub_sm712_read_reg): Likewise.
18171 (grub_sm712_sr_write): Likewise.
18172 (grub_sm712_gr_write): Likewise.
18173 (grub_sm712_cr_write): Likewise.
18174 (grub_sm712_write_arx): Likewise.
18175 (grub_sm712_cr_shadow_write): Likewise.
18176 (grub_sm712_write_dda_lookup): Likewise.
18177 (grub_video_sm712_setup): Initialise the video rather then
18178 blindly replay the dump.
18179 (main) [TEST]: Add a routine to be able to compile as standalone for
18180 tests.
18181 * video/sm712_init.c (sm712_init): Removed.
18182 (sm712_sr_seq1): New array.
18183 (sm712_sr_seq2): Likewise.
18184
18185 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18186
18187 * include/grub/vga.h: Add missing grub/pci.h include.
18188
18189 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18190
18191 * util/grub-macho2img.c (main): fix typo
18192
18193 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18194
18195 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18196 (grub_vga_gr_read): Likewise.
18197 (grub_vga_cr_write): Likewise.
18198 (grub_vga_cr_read): Likewise.
18199 (grub_vga_sr_write): Likewise.
18200 (grub_vga_sr_read): Likewise.
18201 (grub_vga_palette_read): Likewise.
18202 (grub_vga_palette_write): Likewise.
18203 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18204 (grub_sm712_sr_read): New function.
18205 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18206 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18207
18208 2010-08-09 Robert Millan <rmh@gnu.org>
18209
18210 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18211 out unused variables on non-ZFS build.
18212
18213 2010-08-08 Robert Millan <rmh@gnu.org>
18214
18215 Fix path generation for sub-filesystems in ZFS.
18216
18217 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18218 missing slash.
18219
18220 2010-08-08 Robert Millan <rmh@gnu.org>
18221
18222 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18223
18224 2010-08-08 Robert Millan <rmh@gnu.org>
18225
18226 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18227 exist, issue a proper error message (rely on `ls' for translated
18228 strings).
18229
18230 2010-08-08 Robert Millan <rmh@gnu.org>
18231
18232 Fix grub-probe invocation.
18233
18234 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18235
18236 2010-08-04 Robert Millan <rmh@gnu.org>
18237
18238 * configure.ac: Remove checks for getfsstat() and getmntany().
18239 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18240 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18241 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18242 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18243 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18244 function.
18245 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18246 via find_mount_point_from_dir() and getfsstat() / getmntany().
18247
18248 2010-08-04 Robert Millan <rmh@gnu.org>
18249
18250 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18251 (grub_find_zpool_from_mount_point): Merge into ...
18252 (grub_find_zpool_from_dir): ... this.
18253 * kern/emu/misc.c: Likewise.
18254
18255 * kern/emu/misc.c
18256 (grub_make_system_path_relative_to_its_root): Replace
18257 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18258 with grub_find_zpool_from_dir().
18259 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18260
18261 2010-08-04 Robert Millan <rmh@gnu.org>
18262
18263 Support OpenSolaris in ZFS device resolution.
18264
18265 * configure.ac: Check for getmntany().
18266 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18267 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18268 support.
18269
18270 2010-08-03 Robert Millan <rmh@gnu.org>
18271
18272 Fix grub-emu build.
18273
18274 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18275 * include/grub/emu/misc.h: ... here.
18276
18277 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18278 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18279
18280 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18281 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18282 (grub_get_libzfs_handle): Move to ...
18283 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18284 (grub_get_libzfs_handle): ... here.
18285
18286 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18287
18288 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18289 as command name case.
18290
18291 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18292
18293 * disk/raid.c (insert_array): Select unique numbers for named arrays
18294 as well, for use as keys in the disk cache.
18295
18296 2010-08-01 Robert Millan <rmh@gnu.org>
18297
18298 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18299 kFreeBSD device name, except on ZFS where the filesystem label is
18300 used.
18301 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18302 `/boot/zfs/zpool.cache'.
18303 Set mountfrom kernel variable using ${kfreebsd_device}.
18304
18305 2010-08-01 Robert Millan <rmh@gnu.org>
18306
18307 Make it even harder to use uninitialized `libzfs_handle' (and
18308 make the interface a bit simpler).
18309
18310 * include/grub/util/misc.h (grub_util_init_libzfs)
18311 (libzfs_handle): Remove.
18312 (grub_get_libzfs_handle): New prototype.
18313
18314 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18315 attribute.
18316 (grub_util_init_libzfs): Remove.
18317 (grub_get_libzfs_handle): New function.
18318
18319 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18320 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18321 accessing `libzfs_handle' directly.
18322
18323 2010-08-01 Robert Millan <rmh@gnu.org>
18324
18325 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18326 (grub_find_zpool_from_mount_point): New function prototypes.
18327
18328 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18329 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18330
18331 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18332 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18333 `static' attribute.
18334
18335 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18336 finding zpool from mount point into ...
18337 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18338
18339 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18340 requested path is part of a ZFS pool, use
18341 grub_find_zpool_from_mount_point() to detect its filesystem name,
18342 and generate a path with `/fsname@path' syntax.
18343
18344 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18345
18346 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18347 (void) rather than () so that this is a proper prototype.
18348
18349 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18350
18351 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18352
18353 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18354
18355 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18356 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18357
18358 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18359
18360 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18361
18362 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18363
18364 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18365
18366 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18367
18368 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18369 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18370 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18371 disable gfxpayload.
18372 (Shell-like scripting): Add real content.
18373 (Serial terminal): Suggest `terminal_input serial; terminal_output
18374 serial' rather than putting the two commands on separate lines,
18375 since console input will be inoperative after the first command.
18376 (menuentry): Document --class, --users, and --hotkey options.
18377 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18378 Vladimir Serbinenko).
18379
18380 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18381 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18382
18383 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18384
18385 2010-08-01 Robert Millan <rmh@gnu.org>
18386
18387 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18388 (grub_find_zpool_from_mount_point): New function prototypes.
18389
18390 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18391 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18392
18393 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18394 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18395 `static' attribute.
18396
18397 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18398 finding zpool from mount point into ...
18399 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18400
18401 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18402 requested path is part of a ZFS pool, use
18403 grub_find_zpool_from_mount_point() to detect its filesystem name,
18404 and generate a path with `/fsname@path' syntax.
18405
18406 2010-08-01 Robert Millan <rmh@gnu.org>
18407
18408 Prevent accidental use of uninitialized libzfs_handle.
18409
18410 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18411 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18412 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18413
18414 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18415
18416 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18417 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18418
18419 2010-08-01 Robert Millan <rmh@gnu.org>
18420
18421 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18422
18423 2010-07-31 Robert Millan <rmh@gnu.org>
18424
18425 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18426
18427 2010-07-31 Robert Millan <rmh@gnu.org>
18428
18429 * kern/emu/misc.c: Add missing license header.
18430
18431 2010-07-31 Robert Millan <rmh@gnu.org>
18432
18433 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18434
18435 * include/grub/util/libnvpair.h: Include `<config.h>'.
18436 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18437 declaring libnvpair prototypes ourselves.
18438 * include/grub/util/libzfs.h: Include `<config.h>'.
18439 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18440 declaring libzfs prototypes ourselves.
18441
18442 (libzfs_handle): Moved to ...
18443 * include/grub/util/misc.h (libzfs_handle): ... here.
18444 Include `<grub/util/libzfs.h>'.
18445
18446 2010-07-30 Robert Millan <rmh@gnu.org>
18447
18448 * include/grub/emu/misc.h: Add missing license header.
18449
18450 2010-07-30 Robert Millan <rmh@gnu.org>
18451
18452 Enable `grub-probe -t device' resolution on ZFS.
18453
18454 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18455 * include/grub/util/libnvpair.h: New file.
18456 * include/grub/util/libzfs.h: New file.
18457
18458 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18459 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18460 `<grub/util/libnvpair.h>'.
18461 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18462
18463 (find_mount_point_from_dir): New static function.
18464 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18465 function.
18466 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18467 find_root_device_from_libzfs() before ressorting to find_root_device().
18468
18469 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18470 prototype.
18471 * util/misc.c: Include `<grub/util/libzfs.h>'.
18472 (grub_util_init_libzfs): New function.
18473 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18474 [HAVE_LIBZFS] (fini_libzfs): New static function.
18475 (grub_util_init_libzfs): New function.
18476 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18477
18478 2010-07-30 Robert Millan <rmh@gnu.org>
18479
18480 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18481 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18482 `warn_unused_result' attribute.
18483 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18484 (grub_xasprintf, grub_xvasprintf): Likewise.
18485 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18486
18487 2010-07-29 Robert Millan <rmh@gnu.org>
18488
18489 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18490 (probe): Handle `PRINT_FS_LABEL'.
18491 (main): Handle `-t fs_label'.
18492
18493 2010-07-29 Robert Millan <rmh@gnu.org>
18494
18495 * configure.ac: Remove grub-mkisofs checks.
18496
18497 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18498
18499 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18500 Reported by: Lennart Sorensen.
18501
18502 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18503
18504 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18505 prior to terminal_input/terminal_output separation. It's been over 1.5
18506 years and those versions weren't widely deployed.
18507
18508 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18509
18510 * disk/raid.c (insert_array): Don't count named arrays when looking
18511 for unused array numbers.
18512 Reported and tested by: Michael Guntsche.
18513
18514 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18515
18516 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18517 implementation of this so that grub-emu links again, with a note
18518 that this should support hotplugging in the future.
18519
18520 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18521
18522 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18523
18524 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18525
18526 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18527 handle on failure.
18528 (grub_loopback_close): Remove empty function.
18529 (grub_loopback_dev): Remove close method.
18530
18531 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18532
18533 Disable EFI cursor when the EFI console becomes inactive.
18534
18535 * term/efi/console.c (grub_efi_console_init): New function.
18536 (grub_efi_console_fini): New function.
18537 (grub_console_term_output): Register init and fini methods.
18538
18539 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18540
18541 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18542 sh script.
18543
18544 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18545
18546 * disk/loopback.c (grub_loopback): Replace filename with file.
18547 (delete_loopback): Handle new semantics.
18548 (grub_cmd_loopback): Likewise.
18549 (grub_loopback_iterate): Likewise.
18550 (grub_loopback_close): Likewise.
18551
18552 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18553
18554 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18555 with -p "".
18556 Reported by: Tito Keitel.
18557
18558 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 * docs/grub.texi (Naming convention): Document new naming convention.
18561
18562 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18563 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18564
18565 Generate device.map in something closer to the old ordering.
18566
18567 * util/deviceiter.c (struct device): New declaration.
18568 (compare_file_names): Rename to ...
18569 (compare_devices): ... this. Sort by kernel name in preference to
18570 the stable by-id name, but keep the latter as a fallback comparison.
18571 Update header comment.
18572 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18573 of `struct device' rather than of plain file names.
18574
18575 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18576
18577 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18578 on i386.
18579
18580 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18581
18582 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18583 hardcoding size.
18584 (setv1table): Likewise.
18585
18586 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18587
18588 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18589 removing the homehost if present.
18590 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18591 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18592 removing the homehost if present.
18593 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18594 if possible.
18595 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18596
18597 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18598 parameter. Set its pointer target to 0.
18599 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18600 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18601 `data_offset' value from the superblock for 1.x metadata.
18602 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18603 data on the device.
18604 (insert_array): Record the start sector of data on the device.
18605 (grub_raid_register): Pass start_sector parameters to
18606 grub_raid_list->detect and insert_array.
18607 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18608 member.
18609 (struct grub_raid): Add start_sector parameter to `detect'.
18610
18611 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18612 __attribute__ ((packed)), leaving a comment.
18613 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18614 (grub_mdraid_detect_09): ... here and ...
18615 (grub_mdraid_detect_1x): ... here.
18616
18617 2010-07-20 Peter Henn <peter.henn@web.de>
18618
18619 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18620 chunk size and disk size, which are already given as sector counts
18621 as distinct from the 0.90 units. Fetch the correct device number
18622 from the role table instead of using the table index.
18623
18624 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18625
18626 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
18627 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
18628 (WriteMostly1): New macro.
18629 Set array->name to NULL for metadata format 0.90. Add support for
18630 metadata 1.x. Fix some comments.
18631 * disk/raid.c (): Add support for name based RAID arrays. Fix a
18632 few comments.
18633 * util/getroot.c (grub_util_get_grub_dev): Add support for
18634 /dev/md/name style devices.
18635
18636 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18637
18638 * .bzrignore: Ignore 20_linux_xen.
18639
18640 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
18641
18642 * util/import_unicode.py: Remove unnecessary imports.
18643
18644 2010-07-17 Aleš Nesrsta <starous@volny.cz>
18645
18646 Hotplugging and USB hub support.
18647
18648 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
18649 (grub_ohci): Likewise.
18650 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
18651 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
18652 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
18653 (GRUB_OHCI_CTRL_EDS): Likewise.
18654 (GRUB_OHCI_BULK_EDS): Likewise.
18655 (GRUB_OHCI_TDS): Likewise.
18656 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
18657 (grub_ohci_ed_phys2virt): New function.
18658 (grub_ohci_virt_to_phys): Likewise.
18659 (grub_ohci_td_phys2virt): Likewise.
18660 (grub_ohci_td_virt2phys): Likewise.
18661 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
18662 attachment.
18663 (grub_ohci_find_ed): New function.
18664 (grub_ohci_alloc_td): Likewise.
18665 (grub_ohci_free_td): Likewise.
18666 (grub_ohci_free_tds): Likewise.
18667 (grub_ohci_transfer): Use previously allocated memory.
18668 (grub_ohci_portstatus): Reset status changed bit.
18669 (grub_ohci_detect_dev): Supply status changed.
18670 (grub_ohci_fini_hw): Free memory.
18671 (grub_ohci_restore_hw): Reallocate memory.
18672 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
18673 Reset status change.
18674 (grub_uhci_detect_dev): Supply status_change.
18675 * bus/usb/usb.c (attach_hooks): New var.
18676 (grub_usb_device_attach): New function.
18677 (grub_usb_register_attach_hook_class): Likewise.
18678 (grub_usb_unregister_attach_hook_class): Likewise.
18679 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
18680 (grub_usb_add_hub): Reset connection changed bit.
18681 (attach_root_port): New function.
18682 (grub_usb_root_hub): Likewise.
18683 (poll_nonroot_hub): Likewise.
18684 (grub_usb_poll_devices): Likewise.
18685 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
18686 * disk/usbms.c (grub_usbms_open): Use device hooks.
18687 (grub_usbms_iterate) :Poll devices.
18688 (grub_usbms_finddevs): Split into ...
18689 (grub_usbms_attach): ... this ...
18690 (grub_usbms_attach): ... and this.
18691 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
18692 in detect_dev.
18693 (grub_usb_interface): New fields attached and detach_hook.
18694 (grub_usb_attach_hook_class): New type.
18695 (grub_usb_attach_desc): New struct.
18696 (grub_usb_register_attach_hook_class): New function.
18697 (grub_usb_unregister_attach_hook_class): Likewise.
18698 (grub_usb_poll_devices): Likewise.
18699 (grub_usb_device_attach): Likewise.
18700 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
18701 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
18702
18703 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18704
18705 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
18706 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
18707 delta determination style. Works with most NetBSD partitions too.
18708
18709 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18710
18711 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
18712 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
18713
18714 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18715
18716 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
18717
18718 2010-07-14 Anton Blanchard <anton@samba.org>
18719
18720 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
18721 ET_DYN files.
18722
18723 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18724
18725 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
18726
18727 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18728
18729 * kern/partition.c (grub_partition_check_containment): New function to
18730 check that a partition is physically contained in a parent. Since
18731 offsets are relative (and non-negative), this reduces to checking that
18732 the partition ends before its parent.
18733 (grub_partition_map_probe): Discard out-of-range sub-partitions.
18734 (grub_partition_iterate): Likewise.
18735 * include/grub/partition.h (grub_partition_map): Slightly more detailed
18736 comments.
18737 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
18738 partitions that start before their parent, and add debug printfs.
18739
18740 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18741
18742 * Makefile.in (.SUFFIX): Spell correctly, as ...
18743 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
18744 bare module name without `.mod', e.g. `test') tried to invoke a
18745 Modula-2 compiler.
18746
18747 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18748
18749 * README: Point to the Info manual.
18750
18751 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
18752
18753 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
18754 2nd superblock position from partition size.
18755
18756 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
18757
18758 * Makefile.in (MAINTAINER_CLEANFILES): Remove
18759 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
18760 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
18761 outputs.
18762
18763 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18764
18765 Restructure SCSI .id handling.
18766 Reported and tested by: Aleš Nesrsta.
18767
18768 * disk/ata.c (grub_atapi_close): Removed. All users updated.
18769 (grub_atapi_dev): Changed .name to "ata". New field .id.
18770 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
18771 (grub_usbms_dev): New field .id.
18772 * disk/scsi.c (grub_scsi_iterate): Generate name.
18773 (grub_scsi_open): Parse name.
18774 * include/grub/scsi.h (grub_make_scsi_id): New function.
18775 (grub_scsi_dev): Change iterate and open to number instead of naming
18776 busses. All users updated.
18777 (grub_scsi): Remove name. Add .bus.
18778
18779 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18780
18781 * commands/help.c (grub_cmd_help): Fix a typo.
18782
18783 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18784
18785 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
18786 Reported and tested by: Colin Watson.
18787
18788 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18789
18790 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
18791 in this context.
18792
18793 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18794
18795 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
18796
18797 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
18798
18799 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
18800 indentation.
18801
18802 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18803
18804 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
18805 and disk/raid6_recover.c.
18806 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18807 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18808
18809 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18810
18811 * term/gfxterm.c (repaint_schedulded): Rename to ...
18812 (repaint_scheduled): ... this. Update all callers.
18813 (repaint_was_schedulded): Rename to ...
18814 (repaint_was_scheduled): ... this. Update all callers.
18815
18816 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18817
18818 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
18819 which we expect to be handled by upper layers.
18820
18821 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
18822
18823 * bus/usb/usbhub.c: #include time.h header.
18824
18825 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18826
18827 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
18828 entry_name also for entries without stat blocks (e.g. ".."); fixes
18829 corruption of the first entry in a directory.
18830
18831 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18832
18833 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
18834 after setting gfxterm as the active terminal. GRUB_BACKGROUND
18835 doesn't work otherwise.
18836
18837 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18838
18839 * docs/grub.texi (Features): Update list of supported file systems.
18840 (GNU/Linux): Update for GRUB 2.
18841 (Serial terminal): Remove mention of --disable-serial, which was a
18842 GRUB Legacy configure option. Update instructions to use
18843 `terminal_input' and `terminal_output' rather than `terminal'.
18844 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
18845 configuration' and `Installing GRUB using grub-install'.
18846 (Menu entry editor): Update for GRUB 2.
18847 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
18848 Document new -a, -u, and -v options.
18849 (initrd): New section.
18850 (initrd16): New section.
18851 (linux): New section.
18852 (linux16): New section.
18853 (search): The `var' argument to `--set' is optional.
18854 (GRUB only offers a rescue shell): Go into a little more detail on
18855 drive ordering.
18856
18857 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18858
18859 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
18860
18861 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18862
18863 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
18864 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
18865
18866 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18867
18868 * util/i386/pc/grub-setup.c (setup): Rename prefix to
18869 install_prefix, in line with install_dos_part and install_bsd_part.
18870 Add new prefix variable, which is copied to install_prefix after
18871 comparing core.img in memory with the one read from disk in the
18872 no-embedding case, and use that rather than overwriting
18873 install_prefix immediately when installing to a partition.
18874 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
18875 Bicakci.
18876
18877 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18878
18879 * configure.ac: Avoid == in test command, it's not portable.
18880 * util/grub.d/30_os-prober.in: Likewise.
18881
18882 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
18883
18884 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
18885
18886 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18887
18888 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
18889 multiple (top-level) partmaps.
18890
18891 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18892
18893 * util/i386/efi/grub-install.in: Don't use empty grub_device.
18894 Reported by: Tino Keitel.
18895
18896 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18897
18898 Bidi and diacritics support.
18899
18900 * Makefile.in (widthspec.bin): New target.
18901 (widthspec.h): Likewise.
18902 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
18903 * autogen.sh: Generate unidata.c.
18904 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
18905 * commands/ls.c (grub_ls_list_devices): Likewise.
18906 (grub_ls_list_files): Likewise.
18907 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18908 (grub_mini_cmd_lsmod): Likewise.
18909 * commands/read.c: Likewise.
18910 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
18911 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
18912 * lib/arg.c (grub_arg_show_help): Likewise.
18913 * lib/crypto.c (grub_password_get): Likewise.
18914 * normal/auth.c (grub_username_get): Likewise.
18915 * normal/misc.c (grub_normal_print_device_info): Likewise.
18916 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
18917 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
18918 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
18919 (normal/charset.c_DEPENDENCIES): New variable.
18920 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
18921 (pkglib_MODULES): Remove charset.mod.
18922 (charset_mod_SOURCES): Removed.
18923 (charset_mod_CFLAGS): Likewise.
18924 (charset_mod_LDFLAGS): Likewise.
18925 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
18926 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
18927 and term/tparm.c.
18928 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18929 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18930 (kernel_img_HEADERS): Add terminfo.h.
18931 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
18932 Fill ->font. Reverse ascii bitmaps.
18933 (grub_font_get_xheight): New function.
18934 * font/font.c (grub_font_get_string_width): Moved from here ...
18935 * gfxmenu/font.c (grub_font_get_string_width): ... here.
18936 * font/font.c (grub_font_draw_string): Moved from here ...
18937 * gfxmenu/font.c (grub_font_draw_string): ... here.
18938 * font/font.c (grub_font_dup_glyph): New function.
18939 (grub_font_blit_glyph): Likewise.
18940 (grub_font_blit_glyph_mirror): Likewise.
18941 (blit_comb): Likewise.
18942 (grub_font_construct_dry_run): Likewise.
18943 (grub_font_get_constructed_device_width): Likewise.
18944 (grub_font_construct_glyph): Likewise.
18945 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
18946 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
18947 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
18948 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
18949 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
18950 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
18951 (grub_font_get_xheight): New proto.
18952 (grub_font_get_constructed_device_width): Likewise.
18953 (grub_font_construct_glyph): Likewise.
18954 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
18955 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
18956 * include/grub/font.h (grub_font_draw_string): Moved from here ...
18957 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
18958 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
18959 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
18960 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
18961 (grub_console_getcharwidth): Likewise.
18962 * include/grub/misc.h (grub_xputs): New proto.
18963 (grub_puts): Inlined.
18964 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
18965 (grub_normal_get_line_counter): Removed.
18966 (grub_install_newline_hook): Likewise.
18967 (grub_normal_get_char_counter): New proto.
18968 (grub_normal_reset_more): Likewise.
18969 (grub_xputs_normal): Likewise.
18970 * include/grub/powerpc/ieee1275/console.h: Removed.
18971 * include/grub/sparc64/ieee1275/console.h: Likewise.
18972 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
18973 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
18974 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
18975 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
18976 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
18977 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
18978 (grub_term_input): Pass reference to self. All users updated.
18979 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
18980 Pass reference to self. New fields normal_color, highlight_color and
18981 data. All users updated.
18982 (grub_putchar): Removed.
18983 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
18984 (grub_unicode_estimate_width): New function.
18985 (grub_term_getcharwidth): Add defaults.
18986 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
18987 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
18988 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
18989 (grub_cls): Remove EXPORT_FUNC.
18990 (grub_setcolorstate): Inline.
18991 (grub_newline_hook): Removed.
18992 * include/grub/terminfo.h: Rewritten. All users updated.
18993 * include/grub/unicode.h: New file.
18994 * include/grub/video.h (grub_video_signed_rect): New type.
18995 * kern/emu/console.c (grub_console_highlight_color): Removed.
18996 (grub_console_normal_color): Likewise.
18997 (grub_console_standard_color): Made static.
18998 (grub_ncurses_putchar): Remove mapping.
18999 (grub_ncurses_getcharwidth): Removed.
19000 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19001 (grub_ncurses_setcolor): Removed.
19002 (grub_ncurses_getcolor): Likewise.
19003 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19004 (grub_console_putchar): ... this.
19005 (grub_console_putchar): Handle argument difference.
19006 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19007 console_init_early and console_init_lately.
19008 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19009 * kern/misc.c (grub_puts): Removed.
19010 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19011 (grub_vsnprintf_real): Remove str = NULL support.
19012 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19013 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19014 * kern/term.c (grub_putcode): Renamed to ...
19015 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19016 (grub_putchar): Removed.
19017 (grub_xputs_dumb): New function.
19018 (grub_xputs): New variable.
19019 * lib/charset.c: Move from here ...
19020 * normal/charset.c: ... to here.
19021 (grub_ucs4_to_utf8): New function.
19022 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19023 (join_types): New variable.
19024 (unpack_join): New function.
19025 (bidi_types): New variable.
19026 (unpack_bidi): New function.
19027 (get_bidi_type): Likewise.
19028 (get_join_type): Likewise.
19029 (is_mirrored): Likewise.
19030 (grub_unicode_get_comb_type): Likewise.
19031 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19032 (is_type_after): Likewise.
19033 (grub_unicode_aglomerate_comb): Likewise.
19034 (bidi_line_wrap): Likewise.
19035 (grub_bidi_line_logical_to_visual): Likewise.
19036 (grub_bidi_logical_to_visual): Likewise.
19037 (grub_unicode_mirror_code): Likewise.
19038 (grub_unicode_shape_code): Likewise.
19039 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19040 Don't use grub_putchar.
19041 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19042 (grub_normal_reader_init): Likewise.
19043 (grub_xputs_saved): New variable.
19044 (GRUB_MOD_INIT): Set grub_xputs.
19045 (GRUB_MOD_FINI): Restore grub_xputs.
19046 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19047 (menu_init): Avoid printing gfxmenu error.
19048 (show_menu): Use grub_normal_get_char_counter.
19049 * normal/menu_entry.c (update_screen): Fix out-of-array.
19050 (complete): Avoid NULL dereferencing.
19051 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19052 * normal/menu_text.c (print_spaces): Removed.
19053 (grub_print_ucs4): Likewise.
19054 (grub_print_message_indented): Use grub_print_ucs4.
19055 (print_message): Use grub_putcode.
19056 (print_entry): Hanlde diacritics.
19057 * normal/term.c (term_state): New type.
19058 (grub_more_lines): Removed.
19059 (term_states): New variable.
19060 (grub_normal_line_counter): Renamed to ..
19061 (grub_normal_char_counter): ...this. All users updated.
19062 (grub_normal_get_line_counter): Renamed to ...
19063 (grub_normal_get_char_counter): ... this.
19064 (grub_normal_reset_more): New function.
19065 (process_newline): Removed.
19066 (print_more): New function.
19067 (grub_install_newline_hook): Removed.
19068 (map_code): New function.
19069 (grub_puts_terminal): Use grub_print_ucs4.
19070 (putglyph): New function.
19071 (putcode_real): Likewise.
19072 (grub_putcode): Use putcode_real.
19073 (get_maxwidth): New function.
19074 (get_startwidth): Likewise.
19075 (print_ucs4_terminal): Likewise.
19076 (find_term_state): Likewise.
19077 (put_glyphs_terminal): Likewise.
19078 (print_backlog): Likewise.
19079 (print_ucs4_real): Likewise.
19080 (grub_print_ucs4): Likewise.
19081 (grub_xputs_normal): Likewise.
19082 * term/efi/console.c (grub_console_putchar): Output diacritics.
19083 (grub_console_getcharwidth): Removed.
19084 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19085 * term/gfxterm.c (clear_char): Free chars.
19086 (scroll_up): Avoid leaking memory.
19087 (grub_gfxterm_putchar): Support diacritics.
19088 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19089 * term/i386/pc/console.c (grub_console_term_output): Declare as
19090 GRUB_TERM_CODE_TYPE_VGA.
19091 * term/i386/pc/vga.c (grub_vga_term): Declare as
19092 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19093 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19094 GRUB_TERM_CODE_TYPE_VGA.
19095 * term/i386/vga_common.c (map_char): Removed.
19096 (grub_console_putchar): Likewise.
19097 (grub_console_getcharwidth): Likewise.
19098 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19099 (colors): Reordered to match terminfo.
19100 (grub_ofconsole_normal_color): Removed.
19101 (grub_ofconsole_writeesc): Likewise.
19102 (grub_ofconsole_highlight_color): Likewise.
19103 (grub_ofconsole_getcharwidth): Likewise.
19104 (grub_ofconsole_setcolorstate): Likewise.
19105 (grub_ofconsole_setcolor): Likewise.
19106 (grub_ofconsole_getcolor): Likewise.
19107 (grub_ofconsole_readkey): Renamed to ...
19108 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19109 key.
19110 (grub_ofconsole_checkkey): Removed.
19111 (grub_ofconsole_getkey): Likewise.
19112 (grub_ofconsole_getxy): Likewise.
19113 (grub_ofconsole_gotoxy): Likewise.
19114 (grub_ofconsole_cls): Likewise.
19115 (grub_ofconsole_refresh): Likewise.
19116 (grub_ofconsole_terminfo_input): New struct.
19117 (grub_ofconsole_terminfo_output): Likewise.
19118 (grub_ofconsole_term_input): Use terminfo.
19119 (grub_ofconsole_term_output): Likewise.
19120 (grub_console_init): Split into ...
19121 (grub_console_init_early): ...this and ...
19122 (grub_console_init_lately): ...this. Use terminfo.
19123 (grub_ofconsole_putchar): Renamed to ...
19124 (put): ... this. Remove mapping.
19125 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19126 * term/serial.c: Simplify using terminfo.
19127 (xpos): Removed.
19128 (ypos): Likewise.
19129 (keep_track): Likewise.
19130 (registered): Likewise.
19131 (input_buf): Likewise.
19132 (npending): Likewise.
19133 (serial_translate_key_sequence): Likewise.
19134 (fill_input_buf): Likewise.
19135 (grub_serial_checkkey): Likewise.
19136 (grub_serial_getkey): Likewise.
19137 (grub_serial_getxy): Likewise.
19138 (grub_serial_gotoxy): Likewise.
19139 (grub_serial_putchar): Likewise.
19140 (grub_serial_cls): Likewise.
19141 (grub_serial_setcolorstate): Likewise.
19142 (grub_serial_setcursor): Likewise.
19143 (serial_hw_init): Use serial_hw_fetch.
19144 (grub_serial_terminfo_input): New variable.
19145 (grub_serial_terminfo_output): Likewise.
19146 (grub_serial_term_input): Use terminfo.
19147 (grub_serial_term_output): Likewise.
19148 * term/terminfo.c (putstr): Use put.
19149 (grub_terminfo_all_free): New function
19150 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19151 (grub_terminfo_output_register): New function.
19152 (grub_terminfo_output_unregister): Likewise.
19153 (grub_terminfo_getxy): Likewise.
19154 (grub_terminfo_readkey): Likewise.
19155 (grub_terminfo_checkkey): Likewise.
19156 (grub_terminfo_getkey): Likewise.
19157 (grub_terminfo_input_init): Likewise.
19158 (print_terminfo): Likewise.
19159 (grub_cmd_terminfo): Handle encoding.
19160 (grub_terminfo_gotoxy): Track position.
19161 (grub_terminfo_cls): Likewise.
19162 (grub_terminfo_putchar): Likewise.
19163 (grub_terminfo_setcolorstate): Handle colors
19164 (grub_terminfo_cursor_on): This ...
19165 (grub_terminfo_cursor_off): ... and this merged into ...
19166 (grub_terminfo_setcursor): ... this.
19167 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19168 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19169 * unicode/BidiMirroring.txt: Likewise.
19170 * unicode/UnicodeData.txt: Likewise.
19171 * unicode/COPYING: Likewise.
19172 * util/grub-editenv.c (grub_putchar): Removed.
19173 (grub_xputs_real): New function.
19174 (grub_xputs): New variable.
19175 * util/grub-fstest.c (grub_putchar): Removed.
19176 (grub_xputs_real): New function.
19177 (grub_xputs): New variable.
19178 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19179 (grub_xputs_real): New function.
19180 (grub_xputs): New variable.
19181 * util/grub-probe.c (grub_putchar): Removed.
19182 (grub_xputs_real): New function.
19183 (grub_xputs): New variable.
19184 * util/grub-script-check.c (grub_putchar): Removed.
19185 (grub_xputs_real): New function.
19186 (grub_xputs): New variable.
19187 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19188 (grub_xputs_real): New function.
19189 (grub_xputs): New variable.
19190 * util/import_unicode.py: New file.
19191 * util/grub-mkfont.c (ft_errmsgs): New array.
19192 (grub_glyph_info): Make bitmap a pointer.
19193 (file_formats): New type WIDTH_SPEC.
19194 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19195 (options): Add width-spec.
19196 (help): Likewise.
19197 (add_char): Renamed to ...
19198 (add_glyph): ... this.
19199 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19200 (glyph_replace): New type.
19201 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19202 (add_char): New function.
19203 (add_subst): Likewise.
19204 (process_cursive): Likewise.
19205 (add_font): Handle GSUB.
19206 (write_font_width_spec): New function.
19207 (main): Sort glyphs.
19208 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19209 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19210 * kern/term.c (grub_cls): Moved from here...
19211 * normal/term.c (grub_cls): ... here.
19212
19213 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19214
19215 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19216 suitable for using within the format argument of printf when
19217 converting grub_size_t.
19218 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19219 "x" to convert grub_size_t arguments.
19220
19221 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19222
19223 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19224 too long captions.
19225 (list_get_minimal_size): Take selection box into account.
19226
19227 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19228
19229 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19230 NULL font.
19231
19232 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19233
19234 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19235 devices when iterating over /dev/disk/by-id; they will be handled
19236 later if appropriate, which they aren't always (e.g. LVM).
19237
19238 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19239
19240 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19241 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19242 fails.
19243 (grub_halt): Likewise.
19244 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19245 reset-all fails.
19246 (grub_halt): Don't return, even if all of shut-down, power-off, and
19247 poweroff fail.
19248
19249 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19250
19251 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19252 arguments, not three.
19253
19254 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19255
19256 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19257 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19258 LVM-on-RAID is handled correctly.
19259
19260 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19261
19262 * docs/grub.texi (Changes from GRUB Legacy): New section.
19263 (Future): Fix typo.
19264
19265 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19266
19267 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19268 grub.d/README accidentally ends up executable for one reason or
19269 another. Ignore it.
19270
19271 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19272
19273 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19274 (gpt_partition_map_iterate): Support non-512B sectors.
19275
19276 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19277
19278 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19279 Tested by: Seth Goldberg.
19280
19281 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19282
19283 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19284 Properly align mbi.
19285 Reported by: Seth Goldberg.
19286
19287 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19288
19289 * util/grub-mkrescue.in: Avoid module duplication.
19290
19291 2010-07-01 Sean Finney <seanius@seanius.net>
19292
19293 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19294
19295 2010-07-01 Sean Finney <seanius@seanius.net>
19296
19297 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19298
19299 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19300
19301 * disk/lvm.c (grub_lvm_checkvalue): New function.
19302 (grub_lvm_check_flag): Likewise.
19303
19304 2010-07-01 Robert Millan <rmh@gnu.org>
19305
19306 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19307 Support 'p' as partition separator on kernel of FreeBSD (used
19308 with GPT labels).
19309 (grub_util_biosdisk_get_grub_dev): Likewise.
19310
19311 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19312
19313 Yeeloong firmware port.
19314
19315 * boot/mips/yeeloong/fwstart.S: New file.
19316 * bus/cs5536.c (gpiodump): New const.
19317 (set_io_space): New function.
19318 (set_iod): Likewise.
19319 (set_p2d): Likewise.
19320 (grub_cs5536_init_geode): Likewise.
19321 * commands/mips/yeeloong/lsspd.c: New file.
19322 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19323 (serial_mod_SOURCES): New variable.
19324 (serial_mod_CFLAGS): Likewise.
19325 (serial_mod_LDFLAGS): Likewise.
19326 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19327 term/terminfo.c and term/tparm.c.
19328 (pkglib_IMAGES): Add fwstart.img.
19329 (fwstart_img_SOURCES): New variable.
19330 (fwstart_img_CFLAGS): Likewise.
19331 (fwstart_img_ASFLAGS): Likewise.
19332 (fwstart_img_LDFLAGS): Likewise.
19333 (fwstart_img_FORMAT): Likewise.
19334 (pkglib_MODULES): Add lsspd.mod.
19335 (lsspd_mod_SOURCES): New variable.
19336 (lsspd_mod_CFLAGS): Likewise.
19337 (lsspd_mod_LDFLAGS): Likewise.
19338 (pkglib_MODULES): Add halt.mod.
19339 (halt_mod_SOURCES): New variable.
19340 (halt_mod_CFLAGS): Likewise.
19341 (halt_mod_LDFLAGS): Likewise.
19342 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19343 (serial_mod_SOURCES): Removed.
19344 (serial_mod_CFLAGS): Likewise.
19345 (serial_mod_LDFLAGS): Likewise.
19346 * disk/ata.c (check_device): New function.
19347 (grub_ata_device_initialize): Use check_device.
19348 (grub_ata_iterate): Recheck devices.
19349 (grub_ata_open): Likewise.
19350 (grub_atapi_iterate): Likewise.
19351 (grub_atapi_open): Likewise.
19352 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19353 (GRUB_ATA_CH1_PORT1): Likewise.
19354 (GRUB_ATA_CH0_PORT2): Likewise.
19355 (GRUB_ATA_CH1_PORT2): Likewise.
19356 * include/grub/mips/loongson.h: New file.
19357 * include/grub/mips/yeeloong/ec.h: Likewise.
19358 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19359 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19360 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19361 * include/grub/misc.h (grub_halt): Declare as noreturn.
19362 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19363 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19364 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19365 (UART_ENABLE_DTRRTS): Likewise.
19366 (UART_ENABLE_MODEM): Removed.
19367 (UART_ENABLE_OUT2): New const.
19368 * include/grub/term.h (grub_term_register_input_active): New function.
19369 (grub_term_register_output_active): Likewise.
19370 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19371 argument.
19372 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19373 (init_pci): New function.
19374 (grub_machine_init): Execute platform init when firmware. Init serial.
19375 (grub_halt): Implement.
19376 (grub_exit): Likewise.
19377 (grub_reboot): Likewise.
19378 * term/serial.c (serial_hw_init): Update macros.
19379 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19380 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19381 (image_targets): New target mipsel-yeeloong-flash.
19382 (generate_image): Support IMAGE_YEELOONG_FLASH.
19383 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19384 (grub_video_sm712_setup): Init card.
19385 (grub_video_sm712_set_palette): Removed.
19386 * video/sm712_init.c: New file.
19387
19388 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19389
19390 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19391 PATH when running help2man and then run it on the unadorned
19392 executable names, rather than passing $(builddir)/* paths to
19393 help2man. This avoids the build directory ending up in generated
19394 manual pages.
19395
19396 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19397
19398 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19399 to avoid accidents when debugging with 'sh -x'.
19400 * util/grub-mkrescue.in: Likewise.
19401 * util/grub.d/00_header.in: Likewise.
19402 * util/grub.d/10_hurd.in: Likewise.
19403 * util/grub.d/10_kfreebsd.in: Likewise.
19404 * util/grub.d/10_linux.in: Likewise.
19405 * util/grub.d/10_netbsd.in: Likewise.
19406 * util/grub.d/10_windows.in: Likewise.
19407 * util/grub.d/20_linux_xen.in: Likewise.
19408 * util/grub.d/30_os-prober.in: Likewise.
19409 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19410
19411 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19412
19413 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19414 last character in the buffer.
19415 Reported by: Vladimir Serbinenko.
19416
19417 2010-06-29 Robert Millan <rmh@gnu.org>
19418
19419 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19420 (Command-line and menu entry commands): Document `badram' command.
19421
19422 2010-06-28 Robert Millan <rmh@gnu.org>
19423
19424 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19425 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19426 command using ${GRUB_BADRAM} as parameter.
19427
19428 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19429
19430 * docs/grub.texi (Device map): New section.
19431 (Themes): New section (stub).
19432 * Makefile.in (docs/grub.info): The info documentation now builds
19433 without errors. Make sure it stays that way.
19434
19435 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19436
19437 Use normal parser for menu entries.
19438 Reported by: Thomas Frauendorfer
19439
19440 * include/grub/parser.h (grub_parser_execute): Don't export.
19441 * normal/menu.c (grub_menu_execute_entry_real): New function.
19442 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19443
19444 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19445
19446 * docs/grub.texi (Embedded configuration): New section (replacing
19447 old "Preset Menu" stub).
19448 (Images): New section.
19449 (configfile): Note that any menu entries defined in `file' are shown
19450 immediately.
19451
19452 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19453
19454 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19455
19456 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19457
19458 * util/grub-install.in: Add --debug-image= option.
19459
19460 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19461
19462 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19463 possible on Linux.
19464
19465 * util/deviceiter.c (check_device): Rename to ...
19466 (check_device_readable_unique): ... this. Update all callers.
19467 Maintain and check a list of which devices (by canonicalized name)
19468 have already been seen.
19469 (clear_seen_devices): New function.
19470 (compare_file_names) [__linux__]: New function.
19471 (grub_util_iterate_devices): Clear the list of seen devices on exit
19472 and (just in case) on entry.
19473 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19474 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19475 seen-devices list, superseded by general code in check_device.
19476
19477 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19478
19479 * commands/cat.c (options): New variable.
19480 (grub_cmd_cat): Parse options. If the --dos option is given, print
19481 DOS-style "\r\n" line endings as simple newlines (Debian bug
19482 #586358).
19483 (GRUB_MOD_INIT): Use extcmd.
19484 (GRUB_MOD_FINI): Likewise.
19485 * docs/grub.texi (cat): Document --dos.
19486
19487 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19488
19489 XEN with Linux grub-mkconfig support.
19490
19491 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19492 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19493 GRUB_CMDLINE_XEN_DEFAULT.
19494 * util/grub.d/20_linux_xen.in: New file.
19495
19496 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19497
19498 Initialise VGA video on qemu ourselves.
19499
19500 * boot/i386/qemu/boot.S: Don't call 0xc000.
19501 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19502 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19503 (kernel_img_HEADERS): Add pci.h.
19504 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19505 * configure.ac: Force unifont on qemu and yeeloong.
19506 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19507 (grub_vga_palette_write): Use correct register.
19508 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19509 Call grub_qemu_init_cirrus.
19510 * kern/i386/qemu/init.c: New file.
19511 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19512
19513 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19514
19515 2010-06-26 Pavel Roskin <proski@gnu.org>
19516
19517 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19518 13.
19519
19520 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19521
19522 * docs/grub.texi (Simple configuration): Explain that
19523 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19524 set to `true' to disable their respective recovery entries, not
19525 merely set.
19526
19527 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19528
19529 Make the `source' command slightly faster.
19530
19531 * normal/main.c (grub_normal_execute): Don't re-read list files when
19532 nested.
19533
19534 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19535
19536 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19537 field position and mask size to red fields from mode_info, not
19538 green.
19539 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19540 Remove redundant tag->common.framebuffer_type assignment.
19541 Reported by: Seth Goldberg.
19542
19543 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19544
19545 Sync up other versions of the Linux loader with Robert Millan's
19546 change of 2010-01-09, "Make loader output a bit more user-friendly".
19547
19548 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19549 grub_dprintf().
19550 (grub_cmd_linux): Likewise.
19551 (grub_cmd_initrd): Likewise.
19552 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19553 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19554
19555 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19556
19557 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19558 larger than MEMORY_MAP_SIZE.
19559
19560 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19561
19562 Fix parallel build.
19563
19564 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19565 dependency.
19566 * script/parser.y: #include grub_script.tab.h header.
19567
19568 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19569
19570 Support >3GiB and <16MiB RAM in i386-qemu.
19571
19572 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19573 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19574 (grub_lower_mem): Removed.
19575 (grub_upper_mem): Likewise.
19576 (mem_size): Made static.
19577 (above_4g): New variable.
19578 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19579 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19580 support.
19581
19582 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19583
19584 Cirrus 5446 and Bochs video cards support.
19585
19586 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19587 video_bochs.mod
19588 (video_cirrus_mod_SOURCES): New variable.
19589 (video_cirrus_mod_CFLAGS): Likewise.
19590 (video_cirrus_mod_LDFLAGS): Likewise.
19591 (video_bochs_mod_SOURCES): Likewise.
19592 (video_bochs_mod_CFLAGS): Likewise.
19593 (video_bochs_mod_LDFLAGS): Likewise.
19594 * include/grub/vga.h: New file.
19595 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19596 (grub_video_fb_set_page_t): New type.
19597 (grub_video_fb_setup): New prototype.
19598 (grub_video_fb_swap_buffers): Likewise.
19599 (grub_video_fb_get_info_and_fini): Likewise.
19600 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19601 (CRTC_DATA_PORT): Likewise.
19602 (CRTC_CURSOR): Likewise.
19603 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19604 (CRTC_CURSOR_ADDR_LOW): Likewise.
19605 (CRTC_CURSOR_DISABLE): Likewise.
19606 (update_cursor): Use grub_vga_cr_write.
19607 (grub_vga_text_setcursor): Likewise.
19608 * video/bochs.c: New file.
19609 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19610 (palette): Likewise.
19611 (palette_size): Likewise.
19612 (framebuffer): New variable.
19613 (grub_video_fb_init): Use 'framebuffer'.
19614 (grub_video_fb_fini): Likewise.
19615 (grub_video_fb_get_info): Likewise.
19616 (grub_video_fb_get_palette): Likewise.
19617 (grub_video_fb_set_palette): Likewise.
19618 (grub_video_fb_set_viewport): Likewise.
19619 (grub_video_fb_get_viewport): Likewise.
19620 (grub_video_fb_map_color): Likewise.
19621 (grub_video_fb_map_rgb): Likewise.
19622 (grub_video_fb_map_rgba): Likewise.
19623 (grub_video_fb_unmap_color): Likewise.
19624 (grub_video_fb_unmap_color_int): Likewise.
19625 (grub_video_fb_fill_rect): Likewise.
19626 (grub_video_fb_blit_bitmap): Likewise.
19627 (grub_video_fb_blit_render_target): Likewise.
19628 (grub_video_fb_scroll): Likewise.
19629 (grub_video_fb_create_render_target): Likewise.
19630 (grub_video_fb_doublebuf_blit_init): Likewise.
19631 (grub_video_fb_set_active_render_target): Handle doublebuffering.
19632 (doublebuf_pageflipping_update_screen): New function.
19633 (doublebuf_pageflipping_init): Likewise.
19634 (grub_video_fb_setup): Likewise.
19635 (grub_video_fb_swap_buffers): Likewise.
19636 (grub_video_fb_get_info_and_fini): Likewise.
19637 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
19638 All users updated.
19639 (doublebuf_pageflipping_commit): Restructured into ...
19640 (doublebuf_pageflipping_set_page): ... this.
19641 (doublebuf_pageflipping_update_screen): Removed.
19642 (doublebuf_pageflipping_init): Likewise.
19643 (double_buffering_init): Likewise.
19644 (grub_video_vbe_setup): Use grub_video_fb_setup.
19645 (grub_video_vbe_swap_buffers): Removed.
19646 (grub_video_vbe_set_active_render_target): Likewise.
19647 (grub_video_vbe_get_active_render_target): Likewise.
19648 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
19649 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
19650 grub_video_fb_set_active_render_target and
19651 grub_video_fb_get_active_render_target.
19652 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
19653 (SEQUENCER_DATA_PORT): Likewise.
19654 (MAP_MASK_REGISTER): Likewise.
19655 (CRTC_ADDR_PORT): Likewise.
19656 (CRTC_DATA_PORT): Likewise.
19657 (START_ADDR_HIGH_REGISTER): Likewise.
19658 (START_ADDR_LOW_REGISTER): Likewise.
19659 (GRAPHICS_ADDR_PORT): Likewise.
19660 (GRAPHICS_DATA_PORT): Likewise.
19661 (READ_MAP_REGISTER): Likewise.
19662 (INPUT_STATUS1_REGISTER): Likewise.
19663 (INPUT_STATUS1_VERTR_BIT): Likewise.
19664 (get_map_mask): Use grub_vga_sr_read.
19665 (set_map_mask): Use grub_vga_sr_write.
19666 (set_read_map): Use grub_vga_gr_write.
19667 (set_start_address): Use grub_vga_cr_write.
19668 * video/sm712.c (framebuffer): Remove leftover fields.
19669
19670 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
19671
19672 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
19673 setting GRUB_VIDEO_BACKEND. Make it available as a user override
19674 instead. Replace the gfxterm backend check with a check that
19675 ${GRUB_PREFIX}/video.lst is non-empty.
19676 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
19677 again.
19678 (load_video): New generated function. Call it before loading
19679 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
19680 * util/grub.d/10_linux.in (linux_entry): Call load_video.
19681 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
19682 * docs/grub.texi (Simple configuration): Document
19683 GRUB_VIDEO_BACKEND.
19684
19685 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19686
19687 Use video functions in linux and xnu loaders.
19688
19689 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
19690 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
19691 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
19692 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
19693 loader/i386/pc/linux.c.
19694 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
19695 (find_line_len): Removed.
19696 (find_framebuf): Likewise.
19697 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
19698 * loader/i386/efi/xnu.c: Removed.
19699 * loader/i386/pc/xnu.c: Moved from here...
19700 * loader/i386/xnu.c: ...here.
19701
19702 Enable priorities in video drivers.
19703
19704 * include/grub/video.h (grub_video_adapter_prio_t): New type.
19705 (grub_video_adapter): New field prio.
19706 (grub_video_register): Respect prio when inserting.
19707 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
19708 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
19709 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
19710 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
19711 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
19712 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
19713 * video/sm712.c (grub_video_sm712_adapter): Likewise.
19714
19715 Fix SDL driver ID.
19716
19717 * include/grub/video.h (grub_video_driver_id_t): New value
19718 GRUB_VIDEO_DRIVER_SDL.
19719 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
19720
19721 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19722
19723 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
19724 argument to printf.
19725 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19726
19727 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19728
19729 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
19730 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19731
19732 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19733
19734 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
19735 directly, and recommend grub-install instead.
19736 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19737
19738 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19739
19740 Fix i386-pc prefix handling with nested partitions (Debian bug
19741 #585068). Note that the case where the core image is booted using
19742 multiboot and relocated from its original location still requires
19743 more work.
19744
19745 * kern/i386/pc/init.c (make_install_device): If the prefix starts
19746 with "(,", fill the boot drive in between those two characters, but
19747 expect that a full partition specification including partition map
19748 names will follow.
19749 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
19750 specified, write a prefix without the drive name but including a
19751 full partition specification.
19752
19753 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
19754
19755 * util/grub-mkconfig.in: Ignore non-option arguments, for
19756 compatibility with older versions (before 2010-06-12) which did the
19757 same. In particular, this makes it easier to ship an update-grub
19758 wrapper which is compatible with that used with GRUB Legacy (Debian
19759 bug #586056).
19760
19761 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19762
19763 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
19764 for manual page generation.
19765
19766 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19767
19768 * po/POTFILES: Remove leftover commands/handler.c.
19769
19770 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19771
19772 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
19773 left this script non-functional.
19774
19775 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19776
19777 * docs/man/grub-emu.h2m: New file.
19778
19779 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
19780
19781 * docs/grub.texi (Commands): Document reduced command set in rescue
19782 mode.
19783 (cpuid): New section.
19784
19785 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
19786
19787 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
19788 new partition naming style.
19789 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
19790
19791 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
19792
19793 Add "-o grub.iso" like cmdline options support.
19794
19795 * util/grub-install.in: Improve cmdline option parsing.
19796 * util/grub-mkconfig.in: Likewise.
19797 * util/grub-mkrescue.in: Likewise.
19798 * util/grub-reboot.in: Likewise.
19799 * util/grub-set-default.in: Likewise.
19800 * util/i386/efi/grub-install.in: Likewise.
19801 * util/ieee1275/grub-install.in: Likewise.
19802 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19803
19804 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19805
19806 * .bzrignore: Ignore 41_custom.
19807
19808 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19809
19810 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
19811
19812 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19813
19814 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
19815 prototype declarations.
19816
19817 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
19818 generating fs, partmap, and video lists.
19819 * include/grub/fs.h (grub_fs_register): Omit prototype if
19820 GRUB_LST_GENERATOR is defined.
19821 * include/grub/partition.h (grub_partition_map_register): Likewise.
19822 * include/grub/video.h (grub_video_register): Likewise.
19823
19824 2010-06-12 Javier Martín <lordhabbit@gmail.com>
19825
19826 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
19827
19828 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19829
19830 * util/grub-mkrescue.in: Support --xorriso argument.
19831
19832 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19833
19834 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
19835 Suggested by: Thomas Schmitt.
19836
19837 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19838
19839 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
19840 Suggested by: Thomas Schmitt.
19841
19842 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19843
19844 custom.cfg support.
19845
19846 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
19847 * util/grub.d/41_custom.in: New file.
19848
19849 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19850
19851 * util/grub-mkrescue.in (make_image): Remove sh module, which has
19852 been merged back into normal.
19853
19854 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19855
19856 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
19857 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
19858
19859 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19860
19861 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
19862 when generating manual pages.
19863 * docs/man/grub-bin2h.h2m: New file.
19864 * docs/man/grub-editenv.h2m: New file.
19865 * docs/man/grub-fstest.h2m: New file.
19866 * docs/man/grub-install.h2m: New file.
19867 * docs/man/grub-macho2img.h2m: New file.
19868 * docs/man/grub-mkconfig.h2m: New file.
19869 * docs/man/grub-mkdevicemap.h2m: New file.
19870 * docs/man/grub-mkfont.h2m: New file.
19871 * docs/man/grub-mkimage.h2m: New file.
19872 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
19873 * docs/man/grub-mkrelpath.h2m: New file.
19874 * docs/man/grub-mkrescue.h2m: New file.
19875 * docs/man/grub-ofpathname.h2m: New file.
19876 * docs/man/grub-pe2elf.h2m: New file.
19877 * docs/man/grub-probe.h2m: New file.
19878 * docs/man/grub-reboot.h2m: New file.
19879 * docs/man/grub-script-check.h2m: New file.
19880 * docs/man/grub-set-default.h2m: New file.
19881 * docs/man/grub-setup.h2m: New file.
19882
19883 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
19884
19885 Use FOR_* macros instead of *_iterate whenever possible.
19886
19887 * commands/handler.c: Removed.
19888 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
19889 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
19890 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19891 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
19892 (grub_probe_SOURCES): Remove kern/parser.c.
19893 (util/grub-script-check.c_DEPENDENCIES): Removed.
19894 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
19895 and grub_script_check_init.c.
19896 (grub_script_check_init.lst): Removed.
19897 (grub_script_check_init.h): Likewise.
19898 (grub_script_check_init.c): Likewise.
19899 (pkglib_MODULES): Remove handler.mod and sh.mod.
19900 (handler_mod_SOURCES): Removed.
19901 (handler_mod_CFLAGS): Likewise.
19902 (handler_mod_LDFLAGS): Likewise.
19903 (normal_mod_SOURCES): Remove normal/handler.c.
19904 Add script/main.c, script/script.c, script/execute.c,
19905 script/function.c, script/lexer.c, grub_script.tab.c
19906 and grub_script.yy.c.
19907 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19908 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19909 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
19910 (grub_setup_SOURCES): Remove kern/parser.c.
19911 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19912 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
19913 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19914 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19915 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19916 (grub_setup_SOURCES): Remove kern/parser.c.
19917 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19918 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
19919 * include/grub/command.h (grub_command_iterate): Removed.
19920 (FOR_COMMANDS): New macro.
19921 * include/grub/dl.h (grub_dl): New member next.
19922 (grub_dl_iterate): Removed.
19923 (grub_dl_head): New variable declaration.
19924 (FOR_DL_MODULES): New macro.
19925 * include/grub/fs.h: Include list.h.
19926 (grub_fs): Make next first element.
19927 (grub_fs_list): New variable declaration.
19928 (grub_fs_register): Make inline.
19929 (grub_fs_unregister): Likewise.
19930 (grub_fs_iterate): Removed.
19931 (FOR_FILESYSTEMS): New macro.
19932 * include/grub/handler.h: Removed.
19933 * include/grub/list.h (grub_list_hook_t): Removed.
19934 (grub_list_test_t): Likewise.
19935 (grub_list_pop): Likewise.
19936 (grub_list_iterate): Likewise.
19937 (grub_list_insert): Likewise.
19938 (FOR_LIST_ELEMENTS): New macro.
19939 * include/grub/parser.h (grub_parser_class): Removed.
19940 (grub_parser_register): Likewise.
19941 (grub_parser_unregister): Likewise.
19942 (grub_parser_get_current): Likewise.
19943 (grub_parser_set_current): Likewise.
19944 (grub_register_rescue_parser): Likewise.
19945 (grub_rescue_parse_line): New function.
19946 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
19947 * include/grub/script_sh.h (grub_script_function_list): New variable
19948 declaration.
19949 (FOR_SCRIPT_FUNCTIONS): New macro.
19950 (grub_script_function_iterate): Removed.
19951 (grub_normal_parse_line): New prototype.
19952 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
19953 (FOR_DISABLED_TERM_INPUTS): Likewise.
19954 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19955 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19956 * include/grub/video.h (grub_video_adapter): Move 'next' to first
19957 element.
19958 (grub_video_register): Inline.
19959 (grub_video_unregister): Likewise.
19960 (grub_video_adapter_list): New variable declaration.
19961 (grub_video_iterate): Removed.
19962 (FOR_VIDEO_ADAPTERS): New macro.
19963 * kern/dl.c (grub_dl_list): Removed. All users updated.
19964 (grub_dl_iterate): Removed.
19965 * kern/fs.c (grub_fs_list): Make global.
19966 (grub_fs_register): Removed.
19967 (grub_fs_unregister): Likewise.
19968 (grub_fs_iterate): Likewise.
19969 * kern/handler.c: Removed.
19970 * kern/list.c (grub_list_pop): Removed.
19971 (grub_list_iterate): Likewise.
19972 (grub_list_insert): Likewise.
19973 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
19974 (grub_prio_list_insert): Don't use grub_list_insert.
19975 * kern/main.c (grub_register_rescue_parser): Don't call
19976 grub_register_rescue_parser.
19977 * kern/parser.c (grub_parser_class): Removed.
19978 (grub_parser_execute): Use grub_rescue_parse_line.
19979 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
19980 (grub_rescue_parser): Removed.
19981 (grub_register_rescue_parser): Likewise.
19982 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
19983 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
19984 (grub_auth_check_authentication): Likewise.
19985 * normal/completion.c (iterate_command): Removed.
19986 (grub_normal_do_completion): Use FOR_COMMANDS.
19987 * normal/handler.c: Removed.
19988 * normal/main.c (read_config_file): Remove parser changing.
19989 (grub_normal_execute): Don't call read_handler_list.
19990 (grub_normal_read_line_real): Statically allocate prompt.
19991 (grub_cmdline_run): Use grub_normal_parse_line.
19992 (GRUB_MOD_FINI): Don't call free_handler_list.
19993 * normal/menu_entry.c (run): Likewise.
19994 * script/function.c (grub_script_function_list): Make global.
19995 (grub_script_function_iterate): Removed.
19996 * script/main.c (grub_normal_parse_line): Make global.
19997 (grub_sh_parser): Removed.
19998 (GRUB_MOD_INIT): Likewise.
19999 (GRUB_MOD_FINI): Likewise.
20000 * tests/lib/functional_test.c (grub_functional_test): Use
20001 FOR_LIST_ELEMENTS.
20002 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20003 (grub_test_run): Use FOR_LIST_ELEMENTS.
20004 * tests/lib/unit_test.c (main): Likewise.
20005 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20006 grub_list_pop.
20007 * util/grub-fstest.c (grub_term_input_class): Removed.
20008 (grub_term_output_class): Likewise.
20009 * util/grub-probe.c: Likewise.
20010 * util/i386/pc/grub-setup.c: Likewise.
20011 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20012 * util/grub-script-check.c (main): Don't call grub_init_all and
20013 grub_fini_all.
20014 * video/video.c (grub_video_adapter_list): Make global.
20015 (grub_video_register): Removed.
20016 (grub_video_unregister): Likewise.
20017 (grub_video_iterate): Likewise.
20018
20019 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20020
20021 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20022 reported by Henrique Ferreiro.
20023
20024 2010-06-09 Robert Millan <rmh@gnu.org>
20025
20026 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20027 ones, when both are available.
20028
20029 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20030
20031 Make --version uniform and avoid hard-coded program name.
20032
20033 * util/grub-mkimage.c (main): Use `program_name' instead of
20034 hard-coded string.
20035 * util/i386/pc/grub-setup.c (main): Likewise.
20036 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20037 * util/grub-install.in: Save the basename of $0 in $self, and use the
20038 latter in informational messages. Use the same format for --version
20039 as the binary programs.
20040 * util/grub-mkconfig.in: Likewise.
20041 * util/grub-mkrescue.in: Likewise.
20042 * util/grub-reboot.in: Likewise.
20043 * util/grub-set-default.in: Likewise.
20044 * util/i386/efi/grub-install.in: Likewise.
20045 * util/ieee1275/grub-install.in: Likewise.
20046 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20047
20048 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20049
20050 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20051 embedding area. Use <= instead of == when checking for non-emptiness.
20052
20053 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20054
20055 * configure.ac: Add `.' to the directories searched for unifont.
20056
20057 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20058
20059 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20060 grub_script.yy.h.
20061
20062 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20063
20064 * docs/grub.texi (History): Expand to cover GRUB 2.
20065 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20066 commands, not `terminal'.
20067 (serial): Likewise.
20068 (terminal_input): New section.
20069 (terminal_output): New section.
20070 (uppermem): New section (stub).
20071 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20072
20073 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20074
20075 * docs/grub.texi (Security): Menu entries are unrestricted by
20076 default, not restricted to superusers as I had previously thought.
20077 Reword to account for this.
20078
20079 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20080
20081 * kern/emu/misc.c (device_mapper_null_log): New function.
20082 (grub_device_mapper_supported): New function.
20083 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20084 prototype.
20085 * kern/emu/hostdisk.c (find_partition_start): Check whether
20086 device-mapper is supported before trying to use it.
20087 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20088
20089 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20090
20091 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20092 (File name syntax): Likewise.
20093 (help): --all is no longer supported in GRUB 2. Be more precise
20094 about pattern matching.
20095
20096 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20097
20098 * normal/completion.c (grub_normal_do_completion): When completing
20099 arguments to "set" and the current word contains an equals sign,
20100 skip to after the equals sign before starting completion.
20101
20102 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20103
20104 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20105
20106 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20107
20108 * docs/grub.texi (Network): New section.
20109 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20110 `(nd)' as in GRUB Legacy.
20111 (pxe_unload): New section.
20112
20113 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20114
20115 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20116 in the rescue shell, so recommend using `set' instead. Thanks,
20117 Jordan Uggla.
20118
20119 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20120
20121 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20122 (password): New section.
20123 (password_pbkdf2): New section.
20124 (search): New section.
20125 (Security): New section.
20126 (Troubleshooting): New section, currently very incomplete.
20127 (Invoking grub-mkpasswd-pbkdf2): New section.
20128 (Internals): New section, currently very incomplete.
20129
20130 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20131
20132 * util/grub.d/00_header.in: Add some more quoting (of
20133 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20134 work again.
20135 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20136
20137 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20138
20139 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20140 to `count', fixing variable shadowing that broke the -c option.
20141
20142 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20143
20144 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20145 in case they contain spaces.
20146
20147 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20148
20149 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20150 "part_" to partmap module names, in line with grub-install.
20151 Reported by: Jindřich Makovička (Debian bug #584426).
20152
20153 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20154
20155 * util/grub-mkimage.c: Make target-related error messages slightly
20156 more helpful; -O talks about "format". Explicitly point to the use
20157 of -O if no target is specified.
20158 Reported by: Didier Raboud (Debian bug #584415).
20159
20160 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20161
20162 * INSTALL: Document several build requirements for optional features
20163 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20164
20165 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20166
20167 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20168 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20169 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20170
20171 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20172
20173 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20174 Thanks to Jordan Uggla for spotting this.
20175
20176 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20177
20178 Finally make USB usable.
20179
20180 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20181 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20182 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20183 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20184 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20185 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20186 (GRUB_OHCI_FSMPS): Likewise.
20187 (GRUB_OHCI_PERIODIC_START): Likewise.
20188 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20189 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20190 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20191 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20192 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20193 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20194 (grub_ohci_transaction): Likewise.
20195 (grub_ohci_transfer): Improve condition detection algorithms.
20196 Handle toggle property. Program the transactions correctly.
20197 Improve error handling. Various important fixups.
20198 (grub_ohci_portstatus): Put register writes in right order.
20199 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20200 (grub_uhci_transfer): Don't show "failed" message on success.
20201 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20202 array.
20203 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20204 determine its size.
20205 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20206 before initialization is completed. Use IN direction for empty
20207 transfers. Use last_trans and compute toggle.
20208 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20209 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20210 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20211 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20212 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20213 (grub_usb_device): Increase toggle to 256.
20214 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20215 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20216 GRUB_USBMS_SUBCLASS_SFF8070.
20217 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20218 (grub_scsi_inquiry): New member page and alloc_length.
20219 (grub_scsi_request_sense): New structure.
20220 (grub_scsi_request_sense_data): Likewise.
20221 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20222 control.
20223 * disk/scsi.c (grub_scsi_request_sense): New function.
20224 (grub_scsi_test_unit_ready): Likewise.
20225 (grub_scsi_inquiry): Fill new fields.
20226 (grub_scsi_read_capacity): Likewise.
20227 (grub_scsi_read10): Add request sense at the end.
20228 (grub_scsi_read12): Likewise.
20229 (grub_scsi_write10): Likewise.
20230 (grub_scsi_write12): Likewise.
20231 (grub_scsi_open): Add Test Unit Ready.
20232 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20233 Support additional subclasses. Con't clear halt yet. Activate the
20234 proper config. Calculate LUNs correctly.
20235 (grub_usbms_transfer): Various important fixups.
20236
20237 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20238
20239 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20240 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20241 (grub_ohci_fini_hw): New function.
20242 (grub_ohci_restore_hw): Likewise.
20243 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20244 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20245 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20246
20247 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20248
20249 Dedicated DMA allocations.
20250
20251 * bus/pci.c (grub_memalign_dma32): New function
20252 (grub_dma_free): Likewise.
20253 (grub_dma_get_virt): Likewise.
20254 (grub_dma_get_phys): Likewise.
20255 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20256 (grub_ohci_pci_iter): Use dma32_alloc.
20257 (grub_ohci_transfer): Likewise.
20258 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20259 (grub_usb_bulk_readwrite): Likewise.
20260 * include/grub/pci.h: Add declarations.
20261
20262 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20263
20264 CS5536 support.
20265
20266 * bus/cs5536.c: New file.
20267 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20268 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20269 (cs5536_mod_SOURCES): New variable.
20270 (cs5536_mod_CFLAGS): Likewise.
20271 (cs5536_mod_LDFLAGS): Likewise.
20272 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20273 machine/pci.h.
20274 (kernel_img_SOURCES): Add bus/cs5536.c.
20275 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20276 usb_keyboard.mod.
20277 (usb_mod_SOURCES): New variable.
20278 (usb_mod_CFLAGS): New variable.
20279 (usb_mod_LDFLAGS): New variable.
20280 (usbtest_mod_SOURCES): New variable.
20281 (usbtest_mod_CFLAGS): New variable.
20282 (usbtest_mod_LDFLAGS): New variable.
20283 (ohci_mod_SOURCES): New variable.
20284 (ohci_mod_CFLAGS): New variable.
20285 (ohci_mod_LDFLAGS): New variable.
20286 (usbms_mod_SOURCES): New variable.
20287 (usbms_mod_CFLAGS): New variable.
20288 (usbms_mod_LDFLAGS): New variable.
20289 (usb_keyboard_mod_SOURCES): New variable.
20290 (usb_keyboard_mod_CFLAGS): New variable.
20291 (usb_keyboard_mod_LDFLAGS): New variable.
20292 * include/grub/smbus.h: New file.
20293 * include/grub/cs5536.h: New file.
20294
20295 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20296
20297 * util/grub.d/00_header.in: Add safety check to make sure that
20298 ${locale_dir} exists before trying to probe it.
20299
20300 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20301
20302 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20303 per the GNU Coding Standards; this is now too obscure to be worth
20304 documenting.
20305 (QNX): Likewise.
20306 (chainloader): Remove cross-reference to `SCO UnixWare'.
20307
20308 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20309
20310 * docs/grub.texi (Chain-loading): New section.
20311 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20312 adjusted for GRUB 2.
20313 (SCO UnixWare): Likewise.
20314 (QNX): Likewise.
20315 (chainloader): Add reference to `Block list syntax'.
20316 (drivemap): New section.
20317 (parttool): New section.
20318
20319 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20320
20321 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20322 the grub shell'.
20323 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20324 (Installing GRUB using grub-install): Remove reference to the grub
20325 shell; mention `grub-mkimage' and `grub-setup' instead.
20326 (Invoking grub-install): Likewise.
20327 (Interface): Add reference to `Menu entry editor'.
20328 (serial): Remove `--device' option.
20329
20330 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20331
20332 * docs/grub.texi (Configuration): New section, documenting
20333 configuration file generation using grub-mkconfig. I've left a slot
20334 for documenting the full shell scripting format but have not yet
20335 started on writing that up.
20336 (Invoking grub-mkconfig): New section.
20337
20338 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20339
20340 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20341 (GNU GRUB manual): Likewise.
20342 (General commands): Update description of `terminfo' for GRUB 2.
20343
20344 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20345
20346 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20347 (GRUB_MOD_INIT): Fix capitalisation.
20348 * docs/grub.texi (Command-line and menu entry commands): Document
20349 gettext and gptsync commands.
20350
20351 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20352
20353 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20354 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20355
20356 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20357
20358 Add btrfs probing support, currently only in the single-device case.
20359
20360 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20361 function.
20362 (grub_guess_root_device): Call find_root_device_from_mountinfo
20363 before looking in /dev.
20364
20365 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20366
20367 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20368 GRUB_DISK_SIZE_UNKNOWN.
20369 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20370
20371 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20372
20373 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20374 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20375 corrupted or not synced properly.
20376
20377 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20378
20379 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20380 Reported by: Seth Goldberg.
20381
20382 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20383
20384 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20385 addition of dest.
20386 Reported by: Seth Goldberg.
20387
20388 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20389
20390 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20391 Reported by: Seth Goldberg.
20392
20393 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20394
20395 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20396 64-bit address as signed on MIPS.
20397
20398 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20399
20400 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20401 to the empty string.
20402
20403 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20404
20405 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20406
20407 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20408 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20409 * kern/misc.c (__enable_execute_stack): Disable on
20410 GRUB_MACHINE_EMU.
20411
20412 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20413
20414 Make grub-probe work with symbolic links under /dev/mapper as well
20415 as with real block devices. The Linux world seems to be (at best)
20416 in transition here, and GRUB shouldn't get caught in the middle.
20417
20418 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20419 /dev/mapper.
20420
20421 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20422
20423 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20424 input files (in which case exit zero).
20425
20426 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20427
20428 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20429 return NULL for various reasons even if it has a maximum-length
20430 buffer: for example, there might be a symlink loop, or the path
20431 might exceed PATH_MAX. If this happens, return NULL.
20432
20433 2010-05-27 Robert Millan <rmh@gnu.org>
20434
20435 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20436 partmap module to handle cross-partmap setups.
20437 Reported by Orestes Mas. Gràcies!
20438
20439 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20440
20441 * util/grub-mkrescue.in: Initialise override_dir rather than
20442 assuming that it's unset or empty in the environment.
20443
20444 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20445
20446 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20447 variable index into p_index to suppress a warning with -Wshadow.
20448
20449 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20450
20451 * INSTALL: Added flex >= 2.5.35 requirement.
20452
20453 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20454
20455 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20456
20457 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20458
20459 cmostest support.
20460
20461 * commands/i386/cmostest.c: New file.
20462 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20463 (cmostest_mod_SOURCES): New variable.
20464 (cmostest_mod_CFLAGS): Likewise.
20465 (cmostest_mod_LDFLAGS): Likewise.
20466 * conf/i386-pc.rmk: Likewise.
20467 * docs/grub.texi (Vendor power-on keys): New section.
20468 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20469 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20470 and GRUB_BUTTON_CMOS_ADDRESS.
20471 * util/grub.d/00_header.in: Handle powering-on by separate button.
20472
20473 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20474
20475 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20476 Removed drawing_scrollbar argument. All users updated
20477 Fixes #29792.
20478 Reported by Jo Shields
20479
20480 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20481
20482 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20483 buffer since gfxterm handles double repaint.
20484
20485 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20486
20487 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20488 * term/gfxterm.c (real_scroll): Likewise.
20489
20490 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20493 before calling BIOS.
20494
20495 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20496
20497 * include/grub/i18n.h: Always enable grub_gettext.
20498
20499 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20500
20501 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20502 partition naming style.
20503
20504 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20505
20506 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20507 not the first option.
20508
20509 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20510
20511 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20512
20513 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20514
20515 * util/misc.c: Move inclusion of <limits.h> to ...
20516 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20517
20518 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20519
20520 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20521 Fix merge error in NetBSD code.
20522 (find_partition_start) [__NetBSD__]: Likewise.
20523
20524 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20525
20526 Fix grub-mkrescue usage unit testing.
20527
20528 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20529
20530 2010-05-18 Christian Franke <franke@computer.org>
20531
20532 * util/grub.d/10_windows.in: Use path names instead of
20533 drive letters to prevent warning from Cygwin 1.7.
20534 Add drivemap command to menuentry if needed.
20535
20536 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20537
20538 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20539 gnumach and gnumach.gz.
20540
20541 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20542
20543 * include/grub/i18n.h (gettext): Inline instead of using #define.
20544 (grub_gettext): Likewise.
20545 (_): Likewise.
20546
20547 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20548
20549 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20550 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20551 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20552 (main): Add a slash after pkglibdirroot.
20553
20554 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20555
20556 * util/grub-install.in: Add missing "in" keyword.
20557
20558 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20559
20560 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20561 Reported by: Seth Goldberg.
20562
20563 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20564
20565 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20566
20567 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20568
20569 * configure.ac: Check for Linux device-mapper support.
20570
20571 * util/hostdisk.c (device_is_mapped): New function.
20572 (find_partition_start): New function, partly broken out from
20573 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20574 device-mapper support added.
20575 (linux_find_partition): Use find_partition_start.
20576 (convert_system_partition_to_system_disk): Add `st' argument.
20577 Support Linux /dev/mapper/* devices if device-mapper support is
20578 available; only DM-RAID devices are understood at present.
20579 (find_system_device): Add `st' argument. Pass it to
20580 convert_system_partition_to_system_disk.
20581 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20582 find_system_device and convert_system_partition_to_system_disk. Use
20583 find_partition_start.
20584
20585 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20586 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20587 * util/deviceiter.c [__linux__]: Define MINOR.
20588 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20589 * util/mkdevicemap.c (grub_putchar): New function.
20590 (grub_getkey): New function.
20591 (grub_refresh): New function.
20592 (main): Set debug=all if -v -v is used.
20593
20594 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20595
20596 Fix build with non-GNU libcs.
20597
20598 * util/misc.c (canonicalize_file_name): Move to ...
20599 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20600 grub_make_system_path_relative_to_its_root.
20601
20602 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20603
20604 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20605 we handle finding grub-mkimage. Default to finding grub-mkimage in
20606 ${bindir} with program_transform_name applied, and provide a
20607 --grub-mkimage option to override this.
20608
20609 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20610
20611 Remove grub-mkisofs.
20612
20613 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20614 (grub_mkisofs_SOURCES): Removed.
20615 (grub_mkisofs_CFLAGS): Removed.
20616 * util/mkisofs/defaults.h: Removed.
20617 * util/mkisofs/eltorito.c: Likewise.
20618 * util/mkisofs/exclude.h: Likewise.
20619 * util/mkisofs/hash.c: Likewise.
20620 * util/mkisofs/include/: Likewise.
20621 * util/mkisofs/include/fctldefs.h: Likewise.
20622 * util/mkisofs/include/mconfig.h: Likewise.
20623 * util/mkisofs/include/prototyp.h: Likewise.
20624 * util/mkisofs/include/statdefs.h: Likewise.
20625 * util/mkisofs/iso9660.h: Likewise.
20626 * util/mkisofs/joliet.c: Likewise.
20627 * util/mkisofs/match.c: Likewise.
20628 * util/mkisofs/match.h: Likewise.
20629 * util/mkisofs/mkisofs.c: Likewise.
20630 * util/mkisofs/mkisofs.h: Likewise.
20631 * util/mkisofs/msdos_partition.h: Likewise.
20632 * util/mkisofs/multi.c: Likewise.
20633 * util/mkisofs/name.c: Likewise.
20634 * util/mkisofs/rock.c: Likewise.
20635 * util/mkisofs/tree.c: Likewise.
20636 * util/mkisofs/write.c: Likewise.
20637
20638 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20639
20640 Unify grub-mkimage accross platforms.
20641
20642 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
20643 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
20644 (grub_mkelfimage_SOURCES): Removed.
20645 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
20646 (util/grub-mkimage.c_DEPENDENCIES): .. this.
20647 (bin_UTILITIES): Add grub-mkimage.
20648 (grub_mkimage_SOURCES): New variable.
20649 (kernel_img_HEADERS): Remove machine/kernel.h.
20650 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
20651 (pkglib_PROGRAMS): Add kernel.img.
20652 (kernel_img_HEADERS): Add machine/kernel.h.
20653 (kernel_img_FORMAT): Removed.
20654 (bin_UTILITIES): Remove grub-mkimage.
20655 (grub_mkimage_SOURCES): Removed.
20656 (grub_mkimage_CFLAGS): Likewise.
20657 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20658 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
20659 (pkglib_PROGRAMS): Add kernel.img.
20660 (bin_UTILITIES): Remove grub-mkimage.
20661 (grub_mkimage_SOURCES): Removed.
20662 (grub_mkimage_CFLAGS): Likewise.
20663 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20664 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
20665 (pkglib_PROGRAMS): Add kernel.img.
20666 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
20667 (pkglib_PROGRAMS): Add kernel.img.
20668 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
20669 (grub_mkimage_SOURCES): Removed.
20670 (grub_mkimage_CFLAGS): Likewise.
20671 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20672 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
20673 (pkglib_PROGRAMS): Add kernel.img.
20674 (bin_UTILITIES): Remove grub-mkimage.
20675 (grub_mkimage_SOURCES): Removed.
20676 (grub_mkimage_CFLAGS): Likewise.
20677 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20678 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
20679 (grub_mkimage_SOURCES): Removed.
20680 (grub_mkimage_CFLAGS): Likewise.
20681 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20682 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
20683 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
20684 (grub_pe32_optional_header): ... this.
20685 (grub_pe64_optional_header): ... and this. All users updated.
20686 (GRUB_PE32_PE32_MAGIC): Split into ..
20687 (GRUB_PE32_PE32_MAGIC): .. this.
20688 (GRUB_PE32_PE64_MAGIC): .. and this.
20689 (GRUB_PE32_SIGNATURE_SIZE): New definition.
20690 * include/grub/elf.h (PT_GNU_STACK): New definition.
20691 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
20692 * include/grub/i386/efi/kernel.h: Likewise.
20693 * include/grub/i386/kernel.h: Likewise.
20694 * include/grub/i386/pc/kernel.h: Likewise.
20695 * include/grub/i386/qemu/boot.h: Likewise.
20696 * include/grub/mips/kernel.h: Likewise.
20697 * include/grub/mips/qemu-mips/kernel.h: Likewise.
20698 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20699 * include/grub/powerpc/kernel.h: Likewise.
20700 * include/grub/sparc64/ieee1275/boot.h: Likewise.
20701 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20702 * include/grub/sparc64/kernel.h: Likewise.
20703 * include/grub/x86_64/efi/kernel.h: Likewise.
20704 * include/grub/x86_64/kernel.h: Likewise.
20705 * include/grub/offsets.h: New file.
20706 * include/grub/kernel.h (grub_module_info): Split into ...
20707 (grub_module_info32): ... this.
20708 (grub_module_info64): ... and this.
20709 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
20710 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
20711 (grub_boot_blocklist): Moved from here ...
20712 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
20713 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
20714 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
20715 * include/grub/types.h (grub_target_to_host16): Removed.
20716 (grub_target_to_host32): Likewise.
20717 (grub_target_to_host64): Likewise.
20718 (grub_host_to_target16): Likewise.
20719 (grub_host_to_target32): Likewise.
20720 (grub_host_to_target64): Likewise.
20721 (grub_host_to_target_addr): Likewise.
20722
20723 Support grub-mkrescue for efi, coreboot and qemu.
20724
20725 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
20726 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
20727 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
20728 * util/grub-mkrawimage.c: Moved from here ...
20729 * util/grub-mkimage.c: ... here. All users updated.
20730 (ALIGN_ADDR): Use image_target.
20731 (TARGET_NO_FIELD): New const.
20732 (image_target_desc): New type.
20733 (image_targets): New array.
20734 (grub_target_to_host64): Use image_target.
20735 (grub_target_to_host32): Likewise.
20736 (grub_target_to_host16): Likewise.
20737 (grub_host_to_target64): Likewise.
20738 (grub_host_to_target32): Likewise.
20739 (grub_host_to_target16): Likewise.
20740 (grub_host_to_target_addr): Likewise.
20741 (generate_image): Handle multiimage.
20742 (main): Require -O parameter. All users updated.
20743 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
20744 util/efi/grub-mkimage.c
20745 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
20746 New option --rom-directory.
20747 Use xorriso.
20748 * util/i386/efi/grub-mkimage.c: Removed.
20749 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
20750 (grub_target_to_host32): Likewise.
20751 (grub_target_to_host64): Likewise.
20752 (grub_host_to_target16): Likewise.
20753 (grub_host_to_target32): Likewise.
20754 (grub_host_to_target64): Likewise.
20755 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
20756 (grub_target_to_host32): Likewise.
20757 (grub_target_to_host64): Likewise.
20758 (grub_host_to_target16): Likewise.
20759 (grub_host_to_target32): Likewise.
20760 (grub_host_to_target64): Likewise.
20761
20762 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
20763
20764 Source tree is reorganized for emu build.
20765
20766 * include/grub/util/console.h: Move from here...
20767 * include/grub/emu/console.h: ...to here.
20768 * include/grub/util/getroot.h: Move from here...
20769 * include/grub/emu/getroot.h: ...to here.
20770 * include/grub/util/hostdisk.h: Move from here...
20771 * include/grub/emu/hostdisk.h: ...to here.
20772 * util/console.c: Move from here...
20773 * kern/emu/console.c: ...to here.
20774 * util/getroot.c: Move from here...
20775 * kern/emu/getroot.c: ...to here.
20776 * util/grub-emu.c: Move from here...
20777 * kern/emu/main.c: ...to here.
20778 * util/hostdisk.c: Move from here...
20779 * kern/emu/hostdisk.c: ...to here.
20780 * util/hostfs.c: Move from here...
20781 * kern/emu/hostfs.c: ...to here.
20782 * util/mm.c: Move from here...
20783 * kern/emu/mm.c: ...to here.
20784 * util/pci.c: Move from here...
20785 * bus/emu/pci.c: ...to here.
20786 * util/sdl.c: Move from here...
20787 * video/emu/sdl.c: ...to here.
20788 * util/time.c: Move from here...
20789 * kern/emu/time.c: ...to here.
20790 * util/usb.c: Move from here...
20791 * bus/usb/emu/usb.c: ...to here.
20792
20793 * include/grub/emu/misc.h: New header for grub-emu functions.
20794 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
20795
20796 * conf/any-emu.rmk: Rule updates for above renames.
20797 * conf/common.rmk: Likewise.
20798 * conf/i386-pc.rmk: Likewise.
20799 * conf/i386-qemu.rmk: Likewise.
20800 * conf/mips.rmk: Likewise.
20801 * conf/sparc64-ieee1275.rmk: Likewise.
20802 * conf/x86-efi.rmk: Likewise.
20803
20804 * disk/lvm.h: #include updates for above renames.
20805 * util/grub-mkrelpath.c: Likewise.
20806 * util/grub-probe.c: Likewise.
20807 * util/i386/pc/grub-setup.c: Likewise.
20808 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20809 * kern/emu/console.c: Likewise.
20810 * kern/emu/getroot.c: Likewise.
20811 * kern/emu/hostdisk.c: Likewise.
20812 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
20813
20814 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
20815 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
20816 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
20817 * util/misc.c: Remove grub-emu functions.
20818
20819 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20820
20821 Fix gfxmenu crash.
20822 Reported by: Thorsten Grützmacher.
20823
20824 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
20825 timeout hook.
20826 (circprog_set_property): Register and unregister timeout hook.
20827 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
20828 (label_destroy): Free template. and unregister hook.
20829 (label_set_state): New function.
20830 (label_set_property): Handle templates and hooks.
20831 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
20832 timeout hook.
20833 (progress_bar_set_property): Register and unregister timeout hook.
20834 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
20835 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
20836 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
20837 (update_timeout_visit): Removed.
20838 (update_timeouts): New function.
20839 (redraw_timeouts): Likewise.
20840 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
20841 (grub_gfxmenu_clear_timeout): Likewise.
20842 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
20843 (grub_gfxmenu_timeout_notify): Likewise.
20844 (grub_gfxmenu_timeout_notifications): New external variable.
20845 (grub_gfxmenu_timeout_register): New function.
20846 (grub_gfxmenu_timeout_unregister): Likewise.
20847
20848 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20849
20850 Transform (broken) vga terminal into (working) vga video driver.
20851
20852 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
20853 video/i386/pc/vga.c.
20854 * include/grub/video.h (grub_video_driver_id):
20855 Add GRUB_VIDEO_DRIVER_VGA.
20856 * term/i386/pc/vga.c: Renamed to ...
20857 * video/i386/pc/vga.c: ...this
20858 (DEBUG_VGA): Removed.
20859 (CHAR_WIDTH): Likewise.
20860 (CHAR_HEIGHT): Likewise.
20861 (TEXT_WIDTH): Likewise.
20862 (TEXT_HEIGHT): Likewise.
20863 (DEFAULT_FG_COLOR): Likewise.
20864 (DEFAULT_BG_COLOR): Likewise.
20865 (colored_char): Likewise.
20866 (xpos): Likewise.
20867 (ypos): Likewise.
20868 (cursor_state): Likewise.
20869 (fg_color): Likewise.
20870 (bg_color): Likewise.
20871 (text_buf): Likewise.
20872 (page): Likewise.
20873 (font): Likewise.
20874 (framebuffer): New variable.
20875 (set_read_map): Disabled.
20876 (setup): New variable.
20877 (is_target): Likewise.
20878 (grub_vga_mod_init): Likewise.
20879 (grub_vga_mod_fini): Likewise.
20880 (check_vga_mem): Likewise.
20881 (write_char): Likewise.
20882 (write_cursor): Likewise.
20883 (scroll_up): Likewise.
20884 (grub_vga_putchar): Likewise.
20885 (grub_vga_getcharwidth): Likewise.
20886 (grub_vga_getwh): Likewise.
20887 (grub_vga_getxy): Likewise.
20888 (grub_vga_gotoxy): Likewise.
20889 (grub_vga_cls): Likewise.
20890 (grub_vga_setcolorstate): Likewise.
20891 (grub_vga_setcursor): Likewise.
20892 (grub_video_vga_init): New function.
20893 (grub_video_vga_setup): Likewise.
20894 (grub_video_vga_fini): Likewise.
20895 (update_target): Likewise.
20896 (grub_video_vga_blit_bitmap): Likewise.
20897 (grub_video_vga_blit_render_target): Likewise.
20898 (grub_video_vga_set_active_render_target): Likewise.
20899 (grub_video_vga_get_active_render_target): Likewise.
20900 (grub_video_vga_swap_buffers): Likewise.
20901 (grub_video_vga_set_palette): Likewise.
20902 (grub_video_vga_get_info_and_fini): Likewise.
20903 (grub_vga_term): Removed.
20904 (grub_video_vga_adapter): New variable.
20905 (GRUB_MOD_INIT): Register a video driver instead of terminal.
20906 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
20907
20908 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20909
20910 * video/readers/jpeg.c: Indented.
20911
20912 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20913
20914 Various jpeg cleanups.
20915
20916 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
20917 (grub_jpeg_decode_quan_table): Use sizeof.
20918 (grub_jpeg_decode_du): Use ARRAY_SIZE.
20919
20920 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
20921
20922 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
20923 tables. Ignore non-last ac bit.
20924 (grub_jpeg_decode_quan_table): Likewise.
20925
20926 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20927
20928 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
20929 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
20930 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20931 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
20932 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
20933 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
20934
20935 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20936
20937 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
20938 error.
20939
20940 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20941
20942 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
20943
20944 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20945
20946 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
20947 condition.
20948
20949 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20950
20951 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
20952 part.
20953
20954 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20955
20956 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
20957 pointers.
20958
20959 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20960
20961 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
20962
20963 2010-05-01 Christian Franke <franke@computer.org>
20964
20965 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
20966 Remove broken Cygwin path conversion.
20967 * util/misc.c: [__CYGWIN__] Add include and define.
20968 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
20969 for Cygwin 1.7.
20970 (make_system_path_relative_to_its_root): Simplify loop, replace early
20971 return by break.
20972 [__CYGWIN__] Add conversion to win32 path.
20973 Include "/" case in trailing slash removal.
20974
20975 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 * kern/main.c (grub_load_config): Fix copy-pasted comment.
20978 Reported by: Seth Goldberg
20979
20980 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20981
20982 * commands/help.c (grub_cmd_help): Fix a typo.
20983 Reported by: Seth Goldberg
20984
20985 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20986
20987 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
20988 name and add N_.
20989 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
20990 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
20991 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
20992 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
20993 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
20994 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
20995 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20996 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20997 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20998 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20999 * normal/context.c (GRUB_MOD_INIT): Likewise.
21000 * normal/main.c (GRUB_MOD_INIT): Likewise.
21001 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21002 * term/serial.c (GRUB_MOD_INIT): Likewise.
21003 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21004
21005 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21006
21007 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21008 extra == 0.
21009
21010 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21011
21012 * commands/iorw.c: New file.
21013 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21014 (iorw_mod_SOURCES): New variable.
21015 (iorw_mod_CFLAGS): Likewise.
21016 (iorw_mod_LDFLAGS): Likewise.
21017
21018 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21019
21020 Hotkey support
21021
21022 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21023 * normal/main.c (hotkey_aliases): New variable.
21024 (grub_normal_add_menu_entry): Parse "--hotkey".
21025 * normal/menu_text.c (run_menu): Handle hotkeys.
21026
21027 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21028
21029 * kern/i386/coreboot/init.c (grub_machine_init): Call
21030 grub_machine_mmap_init on qemu.
21031
21032 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21033
21034 * boot/i386/qemu/boot.S: Add a missing .code16.
21035
21036 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21037
21038 Use LBIO on coreboot.
21039
21040 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21041 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21042 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21043 New declaration.
21044 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21045 grub_machine_mmap_init on coreboot.
21046 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21047 GRUB_LINUXBIOS_MEMBER_LINK.
21048 (grub_machine_mmap_iterate): Fix declaration.
21049 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21050
21051 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21052
21053 Split coreboot and multiboot ports.
21054
21055 * conf/i386-multiboot.rmk: New file.
21056 * configure.ac: Add multiboot port.
21057 * include/grub/i386/multiboot/boot.h: New file.
21058 * include/grub/i386/multiboot/console.h: Likewise.
21059 * include/grub/i386/multiboot/init.h: Likewise.
21060 * include/grub/i386/multiboot/kernel.h: Likewise.
21061 * include/grub/i386/multiboot/loader.h: Likewise.
21062 * include/grub/i386/multiboot/memory.h: Likewise.
21063 * include/grub/i386/multiboot/serial.h: Likewise.
21064 * include/grub/i386/multiboot/time.h: Likewise.
21065 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21066 * loader/multiboot.c: Likewise.
21067 * loader/multiboot_mbi2.c: Likewise.
21068 * util/grub-mkrescue.in: Generate multiboot rescue.
21069
21070 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21071
21072 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21073
21074 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21075
21076 Merge handling of input and output terminals. Fix a hang.
21077
21078 * commands/terminal.c (abstract_terminal): New struct.
21079 (handle_command): New function. Based on grub_cmd_terminal_input.
21080 (grub_cmd_terminal_input): Use handle_command.
21081 (grub_cmd_terminal_output): Use handle_command.
21082
21083 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21084
21085 Fix comment handling.
21086
21087 * tests/grub_script_comments.in: New testcase.
21088 * conf/tests.rmk: Rules for new testcase.
21089 * script/yylex.l: Updated flex rules.
21090
21091 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21092
21093 * docs/grub.texi (play): Document that zero pitches produce rests.
21094 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21095 if argc is 1.
21096
21097 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21098
21099 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21100 autogen issues.
21101
21102 2010-04-26 Christian Franke <franke@computer.org>
21103
21104 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21105 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21106 (grub_get_prefix): Remove function.
21107 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21108 make_system_path_relative_to_its_root ().
21109 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21110
21111 2010-04-24 Christian Franke <franke@computer.org>
21112
21113 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21114 (kernel_img_LDFLAGS): Remove -static-libgcc.
21115
21116 2010-04-24 Christian Franke <franke@computer.org>
21117
21118 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21119 and CHECK_END_SYMBOL if grub-emu is built.
21120 Unset TARGET_OBJ2ELF if grub-emu is built
21121 without module support.
21122
21123 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21124
21125 Nilfs2 support.
21126
21127 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21128 (grub_fstest_SOURCES): Likewise.
21129 (pkglib_MODULES): Add nilfs2.mod.
21130 (nilfs2_mod_SOURCES): New variable.
21131 (nilfs2_mod_CFLAGS): Likewise.
21132 (nilfs2_mod_LDFLAGS): Likewise.
21133 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21134 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21135 * fs/nilfs2.c: New file.
21136
21137 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21138
21139 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21140 is not supported.
21141
21142 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21143
21144 Add grub-mkconfig support for NetBSD.
21145
21146 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21147 * util/grub-mkconfig.in: export new NetBSD specific variables.
21148 * po/POTFILES-shell: added 10_netbsd.in.
21149 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21150
21151 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21152
21153 Fix emu build with grub-emu-pci and grub-emu-modules.
21154
21155 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21156 functions.
21157 * include/grub/libpciaccess.h: New file.
21158 * conf/any-emu.rmk: Update kernel headers for emu build.
21159
21160 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21161
21162 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21163
21164 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21165
21166 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21167
21168 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21169
21170 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21171 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21172 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21173 util/ieee1275/ofpath.c.
21174 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21175 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21176 * include/grub/sparc64/ieee1275/boot.h
21177 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21178 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21179 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21180 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21181 const char *.
21182 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21183 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21184 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21185 install.
21186
21187 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21188
21189 * util/grub-mkconfig.in: Corrected two == equality tests.
21190 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21191 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21192 expect a number appended to it.
21193 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21194 expects a number appended to it.
21195
21196 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21197
21198 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21199
21200 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21201
21202 * util/hostdisk.c (make_device_name): Change to new partition naming.
21203
21204 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21205
21206 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21207
21208 2010-04-17 Christian Franke <franke@computer.org>
21209
21210 * Makefile.in: Add missing localedir setting.
21211
21212 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21213
21214 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21215 mistake in r2156. Noticed by Anthony Fok.
21216
21217 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21218 @localedir@.
21219 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21220
21221 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21222
21223 Fix a spurious, uninitialized variable warning.
21224
21225 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21226 Initialize variable, shdr.
21227 (grub_freebsd_load_elfmodule): Likewise.
21228 (grub_freebsd_load_elf_meta): Likewise.
21229
21230 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21231
21232 Fix for escaped dollar in double quoted strings.
21233
21234 * script/yylex.l: Updated flex rules.
21235 * conf/tests.rmk: Rule for new testcase.
21236 * tests/grub_script_dollar.in: New testcase.
21237
21238 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21239 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21240
21241 Enclose all translated strings in grub.cfg in single quotes, and
21242 escape them appropriately (Ubuntu bug #552921).
21243
21244 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21245 * util/grub.d/10_hurd.in: Use it.
21246 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21247 * util/grub.d/10_linux.in (linux_entry): Likewise.
21248
21249 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21250
21251 Fix cygwin compilation.
21252
21253 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21254 * include/grub/misc.h (__register_frame_info)
21255 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21256 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21257 * kern/misc.c (__register_frame_info)
21258 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21259 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21260
21261 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21262
21263 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21264
21265 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21266
21267 Unify libgcc processing.
21268
21269 * Makefile.in (kernel_img_LDFLAGS): New variable.
21270 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21271 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21272 overwriting.
21273 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21274 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21275 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21276 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21277 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21278 overwriting. Remove -lgcc and -static-libgcc
21279 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21280 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21281 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21282 (kernel_img_LDFLAGS): Append instead of overwriting.
21283 Remove -lgcc and -static-libgcc
21284 * conf/sparc64-ieee1275.rmk: Likewise.
21285 * include/grub/powerpc/libgcc.h: Move to ...
21286 * include/grub/libgcc.h: .. this.
21287 * include/grub/libgcc.h: Don't export most of the function on x86.
21288 (__bswapsi2): New export.
21289 (__bswapdi2): Likewise.
21290 * include/grub/mips/libgcc.h: Removed.
21291 * include/grub/sparc64/libgcc.h: Likewise.
21292
21293 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21294
21295 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21296 disk_info_msg (conflicts with gettexting into languages with cases).
21297
21298 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21299
21300 Add grub-probe support for NetBSD.
21301
21302 * util/getroot.c (find_root_device): Convert block device to
21303 character device on NetBSD.
21304 * util/probe.c (probe): Require character device on NetBSD.
21305 * util/hostdisk.c: NetBSD specific headers.
21306 (configure_device_driver): new function to tune device driver
21307 parameters (currently only for NetBSD floppy driver).
21308 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21309 via disklabel ioctl).
21310 (open_device): call configure_device_driver on NetBSD.
21311 (convert_system_partition_to_system_disk): NetBSD specific code.
21312 (device_is_wholedisk): Likewise.
21313 (grub_util_biosdisk_get_grub_dev): Likewise.
21314 (make_device_name): Fixed a typo in bsd_part_str.
21315 * configure.ac: check for opendisk() and getrawpartition() on
21316 NetBSD and set LIBUTIL.
21317 * Makefile.in: add LIBUTIL to LIBS.
21318
21319 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21320
21321 Documentation fix.
21322
21323 * util/grub-script-check.c: Better help message.
21324
21325 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21326
21327 Fix FreeBSD build.
21328
21329 * configure.ac: Flex version check.
21330 * conf/common.rmk: Add -Wno-error to sh.mod.
21331 * script/yylex.l: Remove all #pragma.
21332
21333 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21334
21335 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21336 prototype.
21337 Reported by: Seth Goldberg.
21338
21339 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21340
21341 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21342 Rename "module" to "module2".
21343 Reported by: Seth Goldberg.
21344
21345 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21346
21347 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21348 EXPORT_FUNC.
21349 Reported by: Seth Goldberg.
21350
21351 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21352
21353 * lib/posix_wrap/locale.h: Add missing file.
21354 Reported by: Seth Goldberg.
21355
21356 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21357
21358 grub-emu module load support.
21359
21360 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21361 NO_DYNAMIC_MODULES switched to this.
21362 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21363 (CFLAGS): Likewise.
21364 * conf/any-emu.rmk: Generate symlist.
21365 (kernel_img_HEADERS): Add util/datetime.h.
21366 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21367 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21368 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21369 kern/$(target_cpu)/cache.S.
21370 * configure.ac (grub-emu-modules): New option.
21371 * genmk.rb: Handle multiple source lists.
21372 * include/grub/sdl.h: New file.
21373 * include/grub/libusb.h: Likewise.
21374 * util/grub-emu.c (main): Hanle (host) root.
21375 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21376 GRUB_ERR_UNKNOWN_DEVICE.
21377 * util/misc.c: Move mm functions to ...
21378 * util/mm.c: ... here. All users updated.
21379
21380 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21381
21382 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21383 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21384 missing files.
21385 (maintainer-clean): Remove libgcrypt-grub.
21386
21387 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21388
21389 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21390
21391 2010-04-09 EFI Coder <eficoder@hotmail.com>
21392
21393 * normal/menu_text.c (print_message): Clean up the message and show
21394 the Fn information when on EFI
21395 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21396
21397 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21398
21399 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21400 All users updated.
21401 * normal/crypto.c (read_crypto_list): Likewise.
21402 * normal/dyncmd.c (read_command_list): Likewise.
21403 * normal/term.c (read_terminal_list): Likewise.
21404 * normal/main.c (read_lists): Use explicit prefix.
21405 (read_lists_hook): Use read_lists.
21406 (grub_normal_execute): Likewise.
21407
21408 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21409
21410 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21411 Reported by: Thomas Schmitt.
21412 Add -no-emul-boot to grub-mkisofs parameters.
21413
21414 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21415
21416 * font/font.c: Indented.
21417
21418 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21419
21420 Elif support to GRUB script (by Deepak Vankadaru).
21421
21422 * tests/grub_script_if.in: New testcase.
21423 * conf/tests.rmk: Rule for new testcase.
21424 * script/parser.y: Grammar rules for elif.
21425
21426 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21427
21428 While and until loops support to GRUB script.
21429
21430 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21431 (grub_script_create_cmdwhile): New function prototype.
21432 (grub_script_execute_cmdwhile): New function prototype.
21433 * script/execute.c (grub_script_execute_cmdwhile): New function.
21434 * script/parser.y (command): New commands.
21435 (whilecmd): New grammar rule.
21436 (untilcmd): New grammar rule.
21437 * script/script.c (grub_script_create_cmdwhile): New function.
21438 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21439 function.
21440
21441 * tests/grub_script_while1.in: New testcase.
21442 * conf/tests.rmk: Rule for new testcase.
21443
21444 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21445
21446 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21447 as *.jpg.
21448
21449 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21450
21451 GRUB_BACKGROUND support.
21452
21453 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21454 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21455
21456 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 Load fonts and modules for gfxmenu in grub-mkconfig.
21459 Idea by: Mario Vazquez
21460
21461 * util/grub.d/00_header.in: Load pf2 and image modules.
21462
21463 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21464
21465 grub-mkconfig multiple terminal support.
21466
21467 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21468 * util/grub.d/00_header.in: Likewise.
21469
21470 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21471
21472 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21473 we use cd $(srcdir).
21474
21475 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21476
21477 * util/grub.d/10_linux.in: Only use the first word of
21478 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21479 spaces in GRUB_DISTRIBUTOR.
21480 * util/grub.d/10_kfreebsd.in: Likewise.
21481 * util/grub.d/10_hurd.in: Likewise.
21482
21483 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21484
21485 Fix unit testing framework for Qemu 0.12.
21486
21487 * tests/util/grub-shell.in: Remove -serial stdio option.
21488
21489 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21490
21491 POSIX header file wrappers.
21492
21493 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21494 equivalents.
21495 * lib/posix_wrap/ctype.h: Likewise.
21496 * lib/posix_wrap/errno.h: Likewise.
21497 * lib/posix_wrap/langinfo.h: Likewise.
21498 * lib/posix_wrap/limits.h: Likewise.
21499 * lib/posix_wrap/localcharset.h: Likewise.
21500 * lib/posix_wrap/stdint.h: Likewise.
21501 * lib/posix_wrap/stdio.h: Likewise.
21502 * lib/posix_wrap/stdlib.h: Likewise.
21503 * lib/posix_wrap/string.h: Likewise.
21504 * lib/posix_wrap/sys/types.h: Likewise.
21505 * lib/posix_wrap/unistd.h: Likewise.
21506 * lib/posix_wrap/wchar.h: Likewise.
21507 * lib/posix_wrap/wctype.h: Likewise.
21508 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21509 (grub_script.yy.h): Likewise.
21510 * script/yylex.l: Remove POSIX emulation #defines.
21511 * Makefile.in (POSIX_CFLAGS): New variable.
21512 (GNULIB_UTIL_CFLAGS): Likewise.
21513
21514 Regexp support.
21515
21516 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21517 (regexp_mod_SOURCES): New variable.
21518 (regexp_mod_CFLAGS): Likewise.
21519 (regexp_mod_LDFLAGS): Likewise.
21520 * commands/regexp.c: New file.
21521 * gnulib/regcomp.c: New file. Imported from gnulib.
21522 * gnulib/regex.c: Likewise.
21523 * gnulib/regex_internal.c: Likewise.
21524 * gnulib/regex_internal.h: Likewise.
21525 * gnulib/regexec.c: Likewise.
21526 * gnulib/regex.h: Likewise.
21527
21528 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21529
21530 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21531 unsupported video mode types.
21532
21533 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21534
21535 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21536
21537 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21538
21539 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21540 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21541
21542 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21543
21544 Remove unused grub_vga_get_font.
21545
21546 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21547 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21548
21549 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21550
21551 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21552 * include/grub/misc.h: Likewise.
21553
21554 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21555
21556 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21557 for which failure is fatal.
21558
21559 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21560
21561 * util/grub-install.in: Use mkdir -p to create grub directory.
21562 * util/i386/efi/grub-install.in: Likewise.
21563 * util/ieee1275/grub-install.in: Likewise.
21564
21565 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21566
21567 * Makefile.in (LEX): new variable.
21568
21569 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21570
21571 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21572 `=' and added double quotes on operands of this equality test.
21573
21574 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21575
21576 * Makefile.in (uninstall): Remove a leftover debug echo.
21577 Reported by: Grégoire Sutre
21578
21579 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21580
21581 MIPS multiboot2 support.
21582
21583 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21584 (multiboot2_mod_SOURCES): New variable.
21585 (multiboot2_mod_CFLAGS): Likewise.
21586 (multiboot2_mod_LDFLAGS): Likewise.
21587 (multiboot2_mod_ASFLAGS): Likewise.
21588 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21589 definition.
21590 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21591 (MULTIBOOT_MBI_REGISTER): Likewise.
21592 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21593 (MULTIBOOT_ELF32_MACHINE): Likewise.
21594 (MULTIBOOT_ELF64_MACHINE): Likewise.
21595 * include/grub/mips/multiboot.h: New file.
21596 * include/grub/video.h (grub_video_driver_id): New type
21597 GRUB_VIDEO_DRIVER_SM712.
21598 (grub_video_get_info_and_fini): Export.
21599 (grub_video_get_palette): Likewise.
21600 (grub_video_get_driver_id): Likewise.
21601 * include/multiboot2.h: Resynced with spec.
21602 * loader/i386/multiboot.c: Moved from here ...
21603 * loader/multiboot.c: ... here. All users updated.
21604 (grub_multiboot_boot): Use platform-specific macros.
21605 * loader/i386/multiboot_elfxx.c: Moved from here ...
21606 * loader/multiboot_elfxx.c: ... here. All users updated.
21607 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21608 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21609 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21610
21611 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21612
21613 Import gnulib argp module.
21614
21615 * gnulib/argp-ba.c: New file.
21616 * gnulib/argp-eexst.c: Likewise.
21617 * gnulib/argp-fmtstream.c: Likewise.
21618 * gnulib/argp-fmtstream.h: Likewise.
21619 * gnulib/argp-fs-xinl.c: Likewise.
21620 * gnulib/argp-help.c: Likewise.
21621 * gnulib/argp-namefrob.h: Likewise.
21622 * gnulib/argp-parse.c: Likewise.
21623 * gnulib/argp-pin.c: Likewise.
21624 * gnulib/argp-pv.c: Likewise.
21625 * gnulib/argp-pvh.c: Likewise.
21626 * gnulib/argp-version-etc.c: Likewise.
21627 * gnulib/argp-version-etc.h: Likewise.
21628 * gnulib/argp-xinl.c: Likewise.
21629 * gnulib/argp.h: Likewise.
21630
21631 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21632
21633 * kern/device.c (grub_device_iterate): Clear errors after failed
21634 opening device.
21635
21636 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21637
21638 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
21639 returned by firmware.
21640
21641 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
21642
21643 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
21644 compilation on coreboot and qemu
21645
21646 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21647
21648 * include/multiboot2.h: Resync with spec.
21649
21650 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21651
21652 Multiboot2 tag support
21653
21654 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
21655 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
21656 Remove loader/multiboot_loader.c.
21657 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
21658 (grub_multiboot2_real_boot): Likewise.
21659 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
21660 (grub_get_multiboot_mmap_count): New proto.
21661 (grub_fill_multiboot_mmap): Likewise.
21662 (grub_multiboot_set_video_mode): Likewise.
21663 (grub_multiboot_set_console): Likewise.
21664 (grub_multiboot_load): Likewise.
21665 (grub_multiboot_load_elf): Likewise.
21666 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
21667 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
21668 * include/multiboot.h: Resynced with specification.
21669 * include/multiboot2.h: Resynced with specification.
21670 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
21671 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
21672 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
21673 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
21674 users updated.
21675 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
21676 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
21677 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
21678 Removed.
21679 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
21680 Moved from here...
21681 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
21682 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21683 Moved from here...
21684 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
21685 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
21686 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
21687 All users updated.
21688 * loader/i386/multiboot_mbi2.c: New file.
21689
21690 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 Resync with gnulib.
21693
21694 * Makefile.in (GNULIB_CFLAGS): New variable.
21695 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
21696 (grub_script_check_CFLAGS): New variable.
21697 * gnulib/alloca.h: Resync with gnulib.
21698 * gnulib/error.c: Likewise.
21699 * gnulib/error.h: Likewise.
21700 * gnulib/fnmatch.c: Likewise.
21701 * gnulib/fnmatch_loop.c: Likewise.
21702 * gnulib/getdelim.c: Likewise.
21703 * gnulib/getline.c: Likewise.
21704 * gnulib/getopt.c: Likewise.
21705 * gnulib/getopt1.c: Likewise.
21706 * gnulib/getopt_int.h: Likewise.
21707 * gnulib/gettext.h: Likewise.
21708 * gnulib/progname.c: Likewise.
21709 * gnulib/progname.h: Likewise.
21710
21711 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
21712
21713 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
21714 which is the case with --disabled-nls.
21715
21716 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
21717 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
21718 * util/misc.c: Likewise.
21719 * util/mkisofs/mkisofs.c: Likewise.
21720 * util/mkisofs/mkisofs.h: Likewise.
21721
21722 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21723
21724 Simplify Apple CC support.
21725
21726 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
21727 Add 0 byte at the end not to have a symbol with empty target.
21728 * mmap/i386/pc/mmap_helper.S: Likewise.
21729 * genmk.rb: Ignore errors 2030 and 2050.
21730 * kern/i386/pc/startup.S: Use LOCAL when possible.
21731
21732 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
21733
21734 Testcase and the fix for final semicolon on cmdline.
21735
21736 * tests/grub_script_final_semicolon.in: New testcase.
21737 * conf/tests.rmk: Rules for the new testcase.
21738 * script/parser.y: Grammar fix.
21739
21740 2010-03-26 BVK Chaitanya <bvk@localhost>
21741
21742 Blank lines testcase for GRUB script.
21743
21744 * tests/grub_script_blanklines.in: New testcase.
21745 * conf/tests.rmk: Rules for the new testcase.
21746
21747 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21748
21749 Don't use __FILE__.
21750
21751 * genmk.rb: Add -DGRUB_FILE to all C targets.
21752 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
21753 * include/grub/list.h: Likewise.
21754 * include/grub/misc.h: Likewise.
21755 * include/grub/mm.h: Likewise.
21756 * include/grub/test.h: Likewise.
21757 * kern/mm.c: Likewise.
21758 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
21759
21760 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21761
21762 Sunpc partitions support.
21763
21764 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
21765 (grub_fstest_SOURCES): Likewise.
21766 (pkglib_MODULES): Add part_sunpc.mod.
21767 (part_sunpc_mod_SOURCES): New variable.
21768 (part_sunpc_mod_CFLAGS): Likewise.
21769 (part_sunpc_mod_LDFLAGS): Likewise.
21770 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
21771 * partmap/sunpc.c: New file.
21772
21773 2010-03-26 BVK Chaitanya <bvk@localhost>
21774
21775 For loop support to GRUB script.
21776
21777 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
21778 (grub_script_create_cmdfor): New function prototype.
21779 (grub_script_execute_cmdfor): New function prototype.
21780 * script/execute.c (grub_script_execute_cmdfor): New function.
21781 * script/parser.y (command): New for command.
21782 (forcmd): New grammar rule.
21783 * script/script.c (grub_script_create_cmdfor): New function.
21784 * util/grub-script-check.c (grub_script_execute_cmdfor): New
21785 function.
21786 * tests/grub_script_for1.in: New testcase.
21787 * conf/tests.rmk: Rules for new testcase.
21788
21789 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21790
21791 Nested partitions
21792
21793 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
21794 'partition' is NULL, grub_partition_get_start already does that.
21795 * commands/loadenv.c (check_blocklists): Likewise.
21796 (write_blocklists): Likewise.
21797 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
21798 (grub_fstest_SOURCES): Likewise.
21799 (pkglib_MODULES): Add part_bsd.mod.
21800 (part_bsd_mod_SOURCES): New variable.
21801 (part_bsd_mod_CFLAGS): Likewise.
21802 (part_bsd_mod_LDFLAGS): Likewise.
21803 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
21804 (grub_emu_SOURCES): Likewise.
21805 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21806 * include/grub/bsdlabel.h: New file.
21807 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
21808 'get_name'.
21809 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
21810 (grub_partition_map_list): New variable.
21811 (grub_partition_map_register): Inline.
21812 (grub_partition_map_unregister): Likewise.
21813 (FOR_PARTITION_MAPS): New macro.
21814 (grub_partition_map_iterate): Removed.
21815 (grub_partition_get_start): Handle nested partitions.
21816 * include/grub/msdos_partition.h: Remove bsd-related entries.
21817 (grub_pc_partition): Remove.
21818 * kern/disk.c (grub_disk_close): Free partition data.
21819 (grub_disk_adjust_range): Handle nested partitions.
21820 * kern/partition.c (grub_partition_map_probe): New function.
21821 (grub_partition_probe): Parse name to number, handle subpartitions.
21822 (get_partmap): New function.
21823 (grub_partition_iterate): Handle subpartitions.
21824 (grub_partition_get_name): Likewise.
21825 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
21826 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
21827 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
21828 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
21829 Set 'number'.
21830 (acorn_partition_map_probe): Remove.
21831 (acorn_partition_map_get_name): Likewise.
21832 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
21833 Set 'number'.
21834 Set 'index' to 0 since there can be only one partition entry per sector.
21835 (amiga_partition_map_probe): Remove.
21836 (amiga_partition_map_get_name): Likewise.
21837 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
21838 Set 'number'.
21839 Set 'offset' and 'index' to real positions of partitions.
21840 (apple_partition_map_probe): Remove.
21841 (apple_partition_map_get_name): Likewise.
21842 * partmap/bsdlabel.c: New file.
21843 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
21844 Set 'number'.
21845 Allocate 'data' so it can be correctly freed.
21846 Set 'index' to offset inside sector.
21847 (gpt_partition_map_probe): Remove.
21848 (gpt_partition_map_get_name): Likewise.
21849 * partmap/msdos.c (grub_partition_parse): Remove.
21850 (pc_partition_map_iterate): Don't force raw access.
21851 Set 'number'.
21852 Make 'ext_offset' a local variable.
21853 (pc_partition_map_probe): Remove.
21854 (pc_partition_map_get_name): Remove.
21855 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
21856 Set 'number'.
21857 (sun_partition_map_probe): Remove.
21858 (sun_partition_map_get_name): Likewise.
21859 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
21860 (grub_pcpart_type): Likewise.
21861 * util/hostdisk.c (open_device): Handle new numbering scheme.
21862 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
21863 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
21864 * util/grub-probe.c (probe_partmap): Handle nested paritions.
21865 * util/grub-install.in: Insert all subpartition modules.
21866 * util/ieee1275/grub-install.in: Likewise.
21867
21868 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
21869
21870 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
21871 grammar.
21872
21873 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
21874
21875 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
21876
21877 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
21878
21879 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
21880 match where 'make install' puts them.
21881 * util/i386/efi/grub-install.in: Likewise.
21882
21883 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
21884
21885 * .bzrignore: Add gentrigtables, grub-script-check,
21886 grub_script_check_init.c, grub_script_check_init.h, and
21887 trigtables.c.
21888
21889 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
21890
21891 * kern/parser.c: Indented.
21892
21893 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21894
21895 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
21896
21897 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21898
21899 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
21900 alpha_mask_size == 0 case.
21901
21902 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
21903
21904 GRUB shell lexer and parser improvements.
21905
21906 * conf/any-emu.rmk: Build rule updates.
21907 * conf/common.rmk: Likewise.
21908 * conf/i386-coreboot.rmk: Likewise.
21909 * conf/i386-efi.rmk: Likewise.
21910 * conf/i386-ieee1275.rmk: Likewise.
21911 * conf/i386-pc.rmk: Likewise.
21912 * conf/powerpc-ieee1275.rmk: Likewise.
21913 * conf/x86_64-efi.rmk: Likewise.
21914
21915 * configure.ac: Configure check for flex.
21916
21917 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
21918 types.
21919 (grub_lexer_param): Struct member updates.
21920 (grub_parser_param): Likewise.
21921 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
21922 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
21923 (grub_script_lexer_init): Prototype update.
21924 (grub_script_lexer_record_start): Likewise.
21925 (grub_script_lexer_record_stop): Likewise.
21926 (grub_script_lexer_yywrap): New function prototype.
21927 (grub_script_lexer_fini): Likewise.
21928 (grub_script_execute_argument_to_string): Removed by...
21929 (grub_script_execute_argument_to_argv): ...better version.
21930
21931 * script/execute.c (ROUND_UPTO): New macro.
21932 (grub_script_execute_cmdline): Out of memory fixes.
21933 (grub_script_execute_menuentry): Likewise.
21934 (grub_script_execute_argument_to_string): Removed. Update all
21935 users by...
21936 (grub_script_execute_argument_to_argv): ...better version.
21937 * script/function.c (grub_script_function_create): Use
21938 grub_script_execute_argument_to_argv instead of
21939 grub_script_execute_argument_to_string.
21940
21941 * script/lexer.c (check_varstate): Removed.
21942 (check_textstate): Removed.
21943 (grub_script_lexer_record_start): Likewise.
21944 (grub_script_lexer_record_stop): Likewise.
21945 (recordchar): Replaced with...
21946 (grub_script_lexer_record): ...new function.
21947 (nextchar): Removed.
21948 (grub_script_lexer_init): Rewritten.
21949 (grub_script_yylex): Rewritten.
21950 (append_newline): New function.
21951 (grub_script_lexer_yywrap): New function.
21952 (grub_script_lexer_fini): New function.
21953 (grub_script_yyerror): Sets error flag.
21954
21955 * script/yylex.l: New file.
21956 (grub_lexer_yyfree): Wrapper for flex yyffre.
21957 (grub_lexer_yyalloc): Likewise.
21958 (grub_lexer_yyrealloc): Likewise.
21959 * script/parser.y: Refactored.
21960
21961 * script/script.c (grub_script_arg_add): Out of memory fixes.
21962 (grub_script_add_arglist): Likewise.
21963 (grub_script_create_cmdline): Likewise.
21964 (grub_script_create_cmdmenu): Likewise.
21965 (grub_script_add_cmd): Likewise.
21966 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
21967 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
21968 unnecessary code.
21969
21970 * tests/grub_script_echo1.in: New testcase.
21971 * tests/grub_script_vars1.in: New testcase.
21972 * tests/grub_script_echo_keywords.in: New testcase.
21973
21974 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 Remove some redundancy in build system.
21977
21978 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
21979 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
21980 (TARGET_LDFLAGS): Add -nostdlib.
21981 (TARGET_IMG_LDFLAGS): Likewise.
21982 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
21983 anything since mmap isn't available.
21984 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
21985 Add util/time.c.
21986 (pkglib_MODULES): Remove reboot.mod.
21987 (reboot_mod_SOURCES): Removed.
21988 (reboot_mod_CFLAGS): Likewise.
21989 (reboot_mod_LDFLAGS): Likewise.
21990 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
21991 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
21992 (DEFSYMFILES): Add kernel_syms.lst.
21993 (kernel_img_HEADERS): Add common headers.
21994 (symlist.c): New target.
21995 (kernel_syms.lst): Likewise.
21996 (pkglib_MODULES): Add memdisk.mod.
21997 (memdisk_mod_SOURCES): New variable.
21998 (memdisk_mod_CFLAGS): Likewise.
21999 (memdisk_mod_LDFLAGS): Likewise.
22000 (pkglib_MODULES): Add reboot.mod.
22001 (reboot_mod_SOURCES): New variable.
22002 (reboot_mod_CFLAGS): Likewise.
22003 (reboot_mod_LDFLAGS): Likewise.
22004 (pkglib_MODULES): Add date.mod.
22005 (date_mod_SOURCES): New variable.
22006 (date_mod_CFLAGS): Likewise.
22007 (date_mod_LDFLAGS): Likewise.
22008 (pkglib_MODULES): Add datehook.mod.
22009 (datehook_mod_SOURCES): New variable.
22010 (datehook_mod_CFLAGS): Likewise.
22011 (datehook_mod_LDFLAGS): Likewise.
22012 (pkglib_MODULES): Add lsmmap.mod.
22013 (lsmmap_mod_SOURCES): New variable.
22014 (lsmmap_mod_CFLAGS): Likewise.
22015 (lsmmap_mod_LDFLAGS): Likewise.
22016 (pkglib_MODULES): Add boot.mod.
22017 (boot_mod_SOURCES): New variable.
22018 (boot_mod_CFLAGS): Likewise.
22019 (boot_mod_LDFLAGS): Likewise.
22020 * conf/i386-coreboot.rmk: Removed redundant parts.
22021 * conf/i386-ieee1275.rmk: Likewise.
22022 * conf/i386-pc.rmk: Likewise.
22023 * conf/mips-yeeloong.rmk: Likewise.
22024 * conf/mips.rmk: Likewise.
22025 * conf/powerpc-ieee1275.rmk: Likewise.
22026 * conf/sparc64-ieee1275.rmk: Likewise.
22027 * conf/x86_64-efi.rmk: Likewise.
22028 * conf/i386-coreboot.rmk: Moved qemu parts ..
22029 * conf/i386-qemu.rmk: ... here
22030 * conf/i386-efi.rmk: Moved common parts to...
22031 * conf/x86-efi.rmk: ... here.
22032 * conf/i386.rmk: Added modules common to all x86 variants.
22033 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22034 * disk/memdisk.c: Remove grub/machine/kernel.h.
22035 * gensymlist.sh.in: Include symbol.h.
22036 * hook/datehook.c: Correct module name.
22037 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22038 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22039 * include/grub/i386/efi/serial.h: New file.
22040 * include/grub/x86_64/efi/serial.h: Likewise.
22041 * util/time.c: Likewise.
22042 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22043
22044 2010-03-14 Colin King <colin.king@ubuntu.com>
22045 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22046
22047 Shrink the pre-partition-table part of boot.img by eight bytes.
22048
22049 * boot/i386/pc/boot.S (ERR): New macro.
22050 (chs_mode): Use ERR.
22051 (geometry_error): Likewise.
22052 (hd_probe_error): Remove. This is only used once, so we wrwite
22053 it inline instead.
22054 (read_error): Instead of printing read_error_string, just set up
22055 %si and fall through to ...
22056 (error_message): ... this new function, also used by ERR.
22057
22058 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22059
22060 Speed up consecutive hostdisk operations on the same device.
22061
22062 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22063 (grub_util_biosdisk_open): Initialise disk->data.
22064 (struct linux_partition_cache): New structure.
22065 (linux_find_partition): Cache partition start positions; these are
22066 expensive to compute on every read and write.
22067 (open_device): Cache open file descriptor in disk->data, so that we
22068 don't have to reopen it and flush the buffer cache for consecutive
22069 operations on the same device.
22070 (grub_util_biosdisk_close): New function.
22071 (grub_util_biosdisk_dev): Set `close' member.
22072
22073 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22074 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22075 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22076 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22077 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22078
22079 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22080
22081 Compile parts of grub-emu as modules.
22082
22083 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22084 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22085 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22086 (all-local): Add $(GRUB_EMU).
22087 (install-local): Install $(GRUB_EMU).
22088 (uninstall): Uninstall $(GRUB_EMU).
22089 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22090 * kern/dl.c: Likewise.
22091 * commands/sleep.c: Not include machine/time.h.
22092 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22093 (COMMON_CFLAGS): Likewise.
22094 (sbin_UTILITIES): Remove grub-emu.
22095 (grub_emu_SOURCES): Removed.
22096 (kernel_img_RELOCATABLE): New variable.
22097 (pkglib_PROGRAMS): Add kernel.img.
22098 (kernel_img_SOURCES): New variable
22099 (kernel_img_CFLAGS): Likewise.
22100 (kernel_img_LDFLAGS): Likewise.
22101 (TARGET_NO_STRIP): Likewise.
22102 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22103 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22104 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22105 (grub-emu): New target.
22106 (GRUB_EMU): New variable.
22107 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22108 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22109 * loader/xnu.c: Likewise.
22110 * include/grub/pci.h: Likewise.
22111 * genemuinit.sh: New file.
22112 * genemuinitheader.sh: Likewise.
22113 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22114 Support TARGET_NO_DYNAMIC_MODULES.
22115 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22116 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22117 * disk/loopback.c: Likewise.
22118 * font/font_cmd.c: Likewise.
22119 * partmap/acorn.c: Likewise.
22120 * partmap/amiga.c: Likewise.
22121 * partmap/apple.c: Likewise.
22122 * partmap/gpt.c: Likewise.
22123 * partmap/msdos.c: Likewise.
22124 * partmap/sun.c: Likewise.
22125 * parttool/msdospart.c: Likewise.
22126 * term/gfxterm.c: Likewise.
22127 * video/bitmap.c: Likewise.
22128 * video/readers/jpeg.c: Likewise.
22129 * video/readers/png.c: Likewise.
22130 * video/readers/tga.c: Likewise.
22131 * video/video.c: Likewise.
22132 * util/grub-emu.c (read_command_list): Removed.
22133 (main): Don't call util_init_nls.
22134 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22135 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22136
22137 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22138
22139 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22140 date.mod, datehook.mod.
22141 (datetime_mod_SOURCES): New variable.
22142 (datetime_mod_CFLAGS): Likewise.
22143 (datetime_mod_LDFLAGS): Likewise.
22144 (date_mod_SOURCES): Likewise.
22145 (date_mod_CFLAGS): Likewise.
22146 (date_mod_LDFLAGS): Likewise.
22147 (datehook_mod_SOURCES): Likewise.
22148 (datehook_mod_CFLAGS): Likewise.
22149 (datehook_mod_LDFLAGS): Likewise.
22150 * conf/sparc64-ieee1275.rmk: Likewise.
22151 * lib/ieee1275/datetime.c: New file.
22152
22153 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22154
22155 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22156 (ieee1275_fb_mod_SOURCES): New variable.
22157 (ieee1275_fb_mod_CFLAGS): Likewise.
22158 (ieee1275_fb_mod_LDFLAGS): Likewise.
22159 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22160 New proto.
22161 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22162 (HEAP_MAX_ADDR): Likewise.
22163 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22164 type.
22165 Correct stop condition.
22166 (grub_ieee1275_devices_iterate): New function.
22167 * video/ieee1275.c: New file.
22168
22169 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22170
22171 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22172
22173 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22174 as scratch.
22175 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22176 SCRATCH_PAD_DISKBOOT as scratch.
22177 (bootit): Pass Openfirmware pointer in %o4.
22178 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22179 of 0x200000.
22180 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22181 with util/grub-mkrawimage.c.
22182 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22183 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22184 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22185 (grub_aout_load) [GRUB_UTIL]: Likewise.
22186 * include/grub/kernel.h (grub_modules_get_end): New proto.
22187 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22188 (SCRATCH_PAD_BOOT): New definition.
22189 (SCRATCH_PAD_DISKBOOT): Likewise.
22190 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22191 * include/grub/sparc64/ieee1275/ieee1275.h
22192 (grub_ieee1275_original_stack): New variable
22193 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22194 New definition
22195 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22196 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22197 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22198 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22199 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22200 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22201 (grub_platform_image_format_t): New type.
22202 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22203 * kern/main.c (grub_modules_get_end)
22204 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22205 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22206 (codestart): Switch stacks.
22207 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22208 variable.
22209 (grub_heap_init): Use grub_modules_get_end.
22210 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22211 stack.
22212 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22213 (main): Likewise.
22214 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22215
22216 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22217
22218 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22219
22220 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22221
22222 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22223 bug #559005).
22224
22225 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22226
22227 * genmoddep.awk: Output all missing symbols and not only first.
22228
22229 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22230
22231 * NEWS: Put the date of 1.98 release.
22232
22233 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22234
22235 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22236 ft2build.h.
22237
22238 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22239
22240 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22241 completition in the middle of string.
22242
22243 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22244
22245 * util/grub-mkrescue.in: Use mktemp with explicit template.
22246
22247 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22248
22249 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22250
22251 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22252
22253 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22254 right pointer.
22255
22256 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22257
22258 Fix FreeBSD compilation.
22259
22260 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22261 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22262
22263 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22266
22267 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22268
22269 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22270
22271 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22272
22273 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22274
22275 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22276
22277 Support relative image path in theme file.
22278
22279 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22280 (image_set_property): Handle theme_dir and relative path.
22281
22282 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 * configure.ac: Alias amd64 to x86_64.
22285
22286 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * NEWS: mention multiboot on EFI.
22289
22290 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22291
22292 * kern/main.c (grub_load_modules): Handle errors from init functions of
22293 embeded modules.
22294
22295 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22296
22297 * normal/autofs.c (autoload_fs_module): Handle errors.
22298
22299 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22300
22301 Disable linux.mod on qemu-mips since it's not functional and leads
22302 to compilation failure.
22303
22304 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22305 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22306 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22307 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22308 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22309 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22310 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22311 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22312 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22313 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22314 Reported by: BVK Chaitanya
22315
22316 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22317
22318 * INSTALL: Add gettext as a dependency and add qemu to a new section
22319 "Prerequisites for make-check".
22320
22321 2010-03-04 Christian Franke <franke@computer.org>
22322
22323 * util/grub-pe2elf.c: Add missing include "progname.h".
22324
22325 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22326
22327 * normal/crypto.c (read_crypto_list): Fix a typo.
22328 Reported by: Seth Goldberg.
22329
22330 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22331
22332 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22333 Reported by: Seth Goldberg.
22334
22335 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22336
22337 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22338 ascii.bitmaps.
22339
22340 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22341
22342 * genmk.rb: Remove terminal*.lst in make clean.
22343 Reported by: Seth Goldberg.
22344
22345 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22346
22347 * util/i386/efi/grub-install.in: Copy gettext files.
22348
22349 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22350
22351 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22352
22353 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 Wait for user entry basing on presence of output rather than on errors.
22356
22357 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22358 (grub_install_newline_hook): Likewise.
22359 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22360 * normal/menu.c (show_menu): Check line_counter to determine presence
22361 of output.
22362 * normal/term.c (grub_normal_line_counter): New variable.
22363 (grub_normal_get_line_counter): New function.
22364 (grub_install_newline_hook): Likewise.
22365
22366 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22367
22368 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22369
22370 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22371
22372 * configure.ac: Update version to 1.98.
22373
22374 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22375
22376 * util/grub.d/10_linux.in (linux_entry): Don't default to
22377 gfxpayload=keep if Linux doesn't support video handover.
22378
22379 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22380
22381 Don't compile video modules on yeeloong since video subsystem is part
22382 of kernel.
22383
22384 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22385 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22386 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22387 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22388 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22389 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22390 * include/grub/bitmap_scale.h: Likewise.
22391 * include/grub/bufio.h: Likewise.
22392 * include/grub/font.h: Likewise.
22393 * include/grub/gfxterm.h: Likewise.
22394 * include/grub/video.h: Likewise.
22395 * include/grub/vbe.h: Don't include video_fb.h.
22396 * video/i386/pc/vbe.c: Include video_fb.h.
22397 * commands/i386/pc/vbetest.c: Include video.h.
22398
22399 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22400
22401 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22402 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22403 default entry if GRUB_SAVEDEFAULT=true. This allows using
22404 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22405 saving a new default on every boot.
22406
22407 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22408
22409 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22410 * normal/term.c (read_terminal_list): Likewise.
22411 * normal/main.c (grub_normal_init_page): Likewise.
22412 (grub_normal_read_line_real): Likewise.
22413
22414 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22415
22416 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22417 memory leak.
22418 Reported by: Seth Goldberg.
22419
22420 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22421
22422 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22423 duplicate declaration of `start'.
22424
22425 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22426
22427 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22428 filename.
22429 Reported by: Georgy Buranov
22430
22431 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22432
22433 * util/grub-mkrawimage.c (usage): Change string formatting to
22434 improve gettext.
22435
22436 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22437
22438 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22439 backspace keys.
22440
22441 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22442
22443 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22444 Reported by: Michael Suchanek.
22445
22446 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22447
22448 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22449 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22450
22451 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22452
22453 Remove any reference to non-free fonts.
22454
22455 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22456 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22457 uses non-free components.
22458 * font/font.c (grub_font_get_name): Remove example name.
22459 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22460 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22461 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22462 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22463
22464 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22465
22466 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22467
22468 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22469
22470 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22471 Double divisor.
22472 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22473 features.
22474 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22475
22476 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22477
22478 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22479
22480 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22481
22482 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22483 * docs/grub.texi (Command-line and menu entry commands): Document play
22484 command.
22485
22486 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22487
22488 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22489 parse arguments as inline tempo and notes. Move code for playing notes
22490 to...
22491 (play): ... new function.
22492
22493 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22494
22495 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22496 grub_uint16_t instead of short.
22497 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22498 disk from little endian to cpu endianness.
22499
22500 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22501
22502 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22503 GRUB_TICKS_PER_SECOND instead of 120.
22504
22505 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22506
22507 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22508 escape sequence after \e.
22509
22510 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22511
22512 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22513 non-ASCII characters.
22514
22515 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22516
22517 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22518 set root in single quotes to prevent \, from being unescaped.
22519
22520 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22521
22522 Prevent unknown commands from stopping menuentry execution.
22523
22524 * script/execute.c (grub_script_execute_cmdline): Print error after
22525 unknown command.
22526
22527 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22528
22529 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22530 Reported by: Pavel Pisa.
22531
22532 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22535
22536 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22537
22538 Merge grub_ieee1275_map_physical into grub_map and rename to
22539 grub_ieee1275_map
22540
22541 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22542 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22543 Remove.
22544 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22545 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22546 necessary.
22547 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22548
22549 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22550
22551 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22552 opening and not after.
22553
22554 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22555
22556 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22557 constants.
22558
22559 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22560
22561 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22562 (alloc_phys): Use ALIGN_UP instead of align_addr.
22563
22564 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22567
22568 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22569
22570 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22571
22572 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22573
22574 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22575 verbose dprintf.
22576
22577 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22578
22579 Fix over-4GiB seek on sparc64.
22580
22581 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22582 Replace pos_i and pos_lo with pos. All users updated.
22583 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22584 New constant.
22585 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22586 Likewise.
22587 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22588 and pos_lo.
22589
22590 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22591
22592 * util/grub-mkrawimage.c (main): Call set_program_name.
22593
22594 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22595
22596 Properly align 64-bit targets.
22597
22598 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22599 (generate_image): Use ALIGN_ADDR.
22600
22601 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22602
22603 Properly create cross-endian images.
22604
22605 * include/grub/types.h (grub_host_to_target_addr): New macro
22606 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22607
22608 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22609
22610 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22611
22612 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22613
22614 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22615
22616 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22617 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22618 (grub_linux_boot): Divide by 64K when on VESA.
22619
22620 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22621
22622 Support GRUB_GFXPAYLOAD_LINUX.
22623
22624 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22625 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
22626
22627 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22628
22629 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
22630 to show messages instead of discarding them.
22631 Process errors after executing command and not before. Keep old method
22632 too as precaution.
22633
22634 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
22635
22636 * configure.ac: Check for ft2build.h.
22637
22638 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22639
22640 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
22641
22642 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22643
22644 * genkernsyms.sh.in: Use TARGET_CC.
22645
22646 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
22647
22648 * NEWS: Update.
22649
22650 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22651
22652 * include/grub/multiboot2.h: Remove leftover file.
22653 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
22654 * include/grub/partition.h [GRUB_UTIL]: Likewise.
22655
22656 2010-02-07 Yves Blusseau <blusseau@zetam.org>
22657
22658 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
22659
22660 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22661
22662 Fix warnings in grub-emu when compiling with maximum warning options.
22663
22664 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
22665 (grub_arch_modules_addr): Return 0 and not NULL.
22666 * util/misc.c (ENABLE_RELOCATABLE): New definition.
22667 (xstrdup): Use newstr instead of dup.
22668 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
22669 of disk to dsk to avoid shadowing.
22670 (find_free_slot): Fix prototype.
22671 * util/getroot.c (grub_util_is_dmraid): Make static.
22672 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
22673 Add missing prototype.
22674 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
22675
22676 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22677
22678 * loader/i386/linux.c (grub_linux_setup_video): Handle error
22679 appropriately.
22680
22681 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22682
22683 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
22684 code out.
22685
22686 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
22689 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
22690 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
22691 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
22692 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
22693 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
22694
22695 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22696
22697 * include/grub/err.h (grub_err_printf): Don't export.
22698
22699 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22700
22701 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
22702
22703 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22704
22705 * include/grub/i18n.h (grub_gettext_dummy): Removed.
22706 * kern/misc.c (grub_gettext_dummy): Make static.
22707
22708 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22709
22710 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
22711 by non-valid ones.
22712 * kern/term.c (grub_putchar): Likewise.
22713
22714 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22715
22716 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
22717 buggy hook call and memory leak.
22718
22719 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
22722
22723 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22724
22725 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
22726
22727 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22728
22729 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
22730 modevar.
22731 Return grub_errno on allocation error.
22732
22733 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22734
22735 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
22736
22737 2010-02-06 Yves Blusseau <blusseau@zetam.org>
22738
22739 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
22740 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
22741
22742 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22743
22744 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
22745 non-pxe disk.
22746 (grub_pxefs_open): Likewise.
22747
22748 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22749
22750 * util/grub.d/10_hurd.in: Add --class information to menuentries.
22751 * util/grub.d/10_kfreebsd.in: Likewise.
22752 * util/grub.d/10_linux.in: Likewise.
22753
22754 2010-02-06 Colin D Bennett <colin@gibibit.com>
22755
22756 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
22757 (gfxmenu_mod_SOURCES): New variable.
22758 (gfxmenu_mod_CFLAGS): Likewise.
22759 (gfxmenu_mod_LDFLAGS): Likewise.
22760 * include/grub/term.h (grub_term_set_current_output): Declare
22761 argument as const.
22762 * docs/gfxmenu-theme-example.txt: New file.
22763 * gfxmenu/gfxmenu.c: Likewise.
22764 * gfxmenu/gui_box.c: Likewise.
22765 * gfxmenu/gui_canvas.c: Likewise.
22766 * gfxmenu/gui_circular_progress.c: Likewise.
22767 * gfxmenu/gui_image.c: Likewise.
22768 * gfxmenu/gui_label.c: Likewise.
22769 * gfxmenu/gui_list.c: Likewise.
22770 * gfxmenu/gui_progress_bar.c: Likewise.
22771 * gfxmenu/gui_string_util.c: Likewise.
22772 * gfxmenu/gui_util.c: Likewise.
22773 * gfxmenu/icon_manager.c: Likewise.
22774 * gfxmenu/model.c: Likewise.
22775 * gfxmenu/named_colors.c: Likewise.
22776 * gfxmenu/theme_loader.c: Likewise.
22777 * gfxmenu/view.c: Likewise.
22778 * gfxmenu/widget-box.c: Likewise.
22779 * include/grub/gfxmenu_model.h: Likewise.
22780 * include/grub/gfxmenu_view.h: Likewise.
22781 * include/grub/gfxwidgets.h: Likewise.
22782 * include/grub/gui.h: Likewise.
22783 * include/grub/gui_string_util.h: Likewise.
22784 * include/grub/icon_manager.h: Likewise.
22785
22786 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22787
22788 Agglomerate scrolling in gfxterm.
22789
22790 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
22791 (grub_virtual_screen_setup): Initialise 'total_screen'.
22792 (write_char): Split to ...
22793 (paint_char): ... this ...
22794 (write_char): ... and this.
22795 (paint_char): Handle delayed scrolling.
22796 (draw_cursor): Likewise.
22797 (scroll_up): Split to ...
22798 (real_scroll): ... this ...
22799 (scroll_up): ... and this.
22800 (real_scroll): Handle multi-line scroll and draw below-the-bottom
22801 characters.
22802 (grub_gfxterm_refresh): Call real_scroll.
22803
22804 2010-02-06 Colin D Bennett <colin@gibibit.com>
22805
22806 * include/grub/misc.h (grub_iscntrl): New inline function.
22807 (grub_isalnum): Likewise.
22808 (grub_strtol): Likewise.
22809
22810 2010-02-06 Colin D Bennett <colin@gibibit.com>
22811
22812 * normal/menu_text.c (get_entry_number): Move from here ...
22813 * normal/menu.c (get_entry_number): ... moved here.
22814 * include/grub/menu.h (grub_menu_get_default_entry_index):
22815 New prototype.
22816 * normal/menu.c (grub_menu_get_default_entry_index): New function.
22817 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
22818 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
22819 (grub_menu_viewer_should_return): Likewise.
22820 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
22821 * normal/menu_text.c (run_menu): Enable menu switching.
22822 * normal/menu_viewer.c (should_return): New variable.
22823 (menu_viewer_changed): Likewise.
22824 (grub_menu_viewer_show_menu): Handle menu viewer changes.
22825 (grub_menu_viewer_should_return): New function.
22826 (menuviewer_write_hook): Likewise.
22827 (grub_menu_viewer_init): Likewise.
22828
22829 2010-02-06 Colin D Bennet <colin@gibibit.com>
22830 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22831
22832 Support for gfxterm in a window.
22833
22834 * include/grub/gfxterm.h: New file.
22835 * include/grub/video.h (struct grub_video_rect): New declaration.
22836 (grub_video_rect_t): Likewise.
22837 * term/gfxterm.c (struct grub_gfxterm_window): New type.
22838 (refcount): New variable.
22839 (render_target): Likewise.
22840 (window): Likewise.
22841 (repaint_callback): Likewise.
22842 (grub_virtual_screen_setup): Use 'render_target'.
22843 (init_window): New function.
22844 (grub_gfxterm_init_window): Likewise.
22845 (grub_gfxterm_init): Check reference counter.
22846 Use init_window.
22847 (destroy_window): New function.
22848 (grub_gfxterm_destroy_window): Likewise.
22849 (grub_gfxterm_fini): Check reference counter.
22850 Use destroy_window.
22851 (redraw_screen_rect): Restore viewport.
22852 Use 'render_target' and 'window'.
22853 Call 'repaint_callback'.
22854 (write_char): Use 'render_target'.
22855 (draw_cursor): Likewise.
22856 (scroll_up): Restore viewport.
22857 Use 'render_target' and 'window'.
22858 Call 'repaint_callback'.
22859 (grub_gfxterm_cls): Likewise.
22860 (grub_gfxterm_refresh): Use 'window'.
22861 (grub_gfxterm_set_repaint_callback): New function.
22862 (grub_gfxterm_background_image_cmd): Use 'window'.
22863 (grub_gfxterm_get_term): New function.
22864 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
22865
22866 2010-02-06 Colin D Bennett <colin@gibibit.com>
22867
22868 Bitmap scaling support.
22869
22870 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
22871 (bitmap_scale_mod_SOURCES): New variable.
22872 (bitmap_scale_mod_CFLAGS): Likewise.
22873 (bitmap_scale_mod_LDFLAGS): Likewise.
22874 * include/grub/bitmap_scale.h: New file.
22875 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
22876 (background_image_cmd_options): New variable.
22877 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
22878 (cmd): Rename and change type to ...
22879 (background_image_cmd_handle): ... this. All users updated.
22880 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
22881 * video/bitmap_scale.c: New file.
22882
22883 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22884
22885 SDL support.
22886
22887 * Makefile.in (LIBSDL): New variable.
22888 (enable_grub_emu_sdl): Likewise.
22889 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
22890 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
22891 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
22892 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
22893 * util/sdl.c: New file.
22894
22895 2010-02-06 Colin D Bennett <colin@gibibit.com>
22896 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22897
22898 Double buffering support.
22899
22900 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
22901 * include/grub/video.h: Update comment.
22902 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
22903 New type.
22904 (grub_video_fb_doublebuf_blit_init): New prototype.
22905 * term/gfxterm.c (scroll_up): Support double buffering.
22906 (grub_gfxterm_refresh): Likewise.
22907 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
22908 (grub_video_fb_doublebuf_blit_init): Likewise.
22909 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
22910 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
22911 'displayed_page', 'render_page' and 'update_screen'.
22912 (grub_video_vbe_fini): Free offscreen buffer.
22913 (doublebuf_pageflipping_commit): New function.
22914 (doublebuf_pageflipping_update_screen): Likewise.
22915 (doublebuf_pageflipping_init): Likewise.
22916 (double_buffering_init): Likewise.
22917 (grub_video_vbe_setup): Enable doublebuffering.
22918 (grub_video_vbe_swap_buffers): Implement.
22919 (grub_video_vbe_set_active_render_target): Handle double buffering.
22920 (grub_video_vbe_get_active_render_target): Likewise.
22921 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
22922 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
22923 (grub_video_vbe_enable_double_buffering): Likewise.
22924 (grub_video_vbe_swap_buffers): Use update_screen.
22925 (grub_video_set_mode): Use double buffering.
22926
22927 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22928
22929 * maintainance/gentrigtables.py: Remove.
22930 * lib/trig.c: Likewise.
22931
22932 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
22933
22934 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
22935 `trigtables.c'.
22936 (trigtables.c): New rule.
22937 (gentrigtables): Likewise.
22938 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
22939
22940 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22941
22942 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
22943 integer constants.
22944
22945 2010-02-06 Colin D Bennet <colin@gibibit.com>
22946
22947 Trigonometry support.
22948
22949 * include/grub/trig.h: New file.
22950 * lib/trig.c: Likewise.
22951 * maintainance/gentrigtables.py: Likewise.
22952 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
22953 (trig_mod_SOURCES): New variable.
22954 (trig_mod_CFLAGS): Likewise.
22955 (trig_mod_LDFLAGS): Likewise.
22956
22957 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22958
22959 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
22960 disk devices.
22961
22962 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22963
22964 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
22965 error.
22966
22967 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22968
22969 * util/hostdisk.c (open_device): Don't use partition device when reading
22970 before the partition.
22971 (grub_util_biosdisk_read): Don't read from partition and before the
22972 partition in single operation.
22973 (grub_util_biosdisk_write): Don't write to partition and before the
22974 partition in single operation.
22975
22976 2010-02-03 Torsten Landschoff <torsten@debian.org>
22977
22978 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22979 last sectors.
22980
22981 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22982
22983 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
22984 CDROM reads.
22985 (grub_biosdisk_write): Refuse to write to CDROM.
22986
22987 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22988
22989 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
22990
22991 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22992
22993 * font/font.c (find_glyph): Check that bmp_idx is available before
22994 using it.
22995 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
22996 with (font == NULL).
22997
22998 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
22999
23000 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23001
23002 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23003
23004 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23005 * util/grub-script-check.c (getline): Fix empty lines case.
23006
23007 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23008
23009 * Makefile.in (check): Exit with fail status when one of the tests
23010 fails.
23011 * tests/example_functional_test.c (example_test): Fix reversed assert.
23012 * tests/example_unit_test.c (example_test): Likewise.
23013
23014 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23015
23016 * util/grub.d/10_linux.in: This script does not use any of the
23017 contents of gettext.sh, only the external command `gettext', so stop
23018 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23019 the same prefix as GRUB.)
23020 * util/grub.d/10_kfreebsd.in: Likewise.
23021
23022 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23023
23024 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23025 of the line.
23026
23027 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23028
23029 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23030 last sectors.
23031
23032 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23033
23034 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23035 having a 4KiB and not 32KiB buffer size.
23036
23037 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23038
23039 * util/hostfs.c: Include `<errno.h>'.
23040 (grub_hostfs_read): Handle errors from fseeko() and fread().
23041
23042 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23043
23044 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23045 loop when using read hooks on files whose size isn't sector-aligned.
23046
23047 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23048
23049 Remove unused parameter.
23050
23051 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23052 (grub_iso9660_open): Remove initialization of `data->length'.
23053
23054 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23055
23056 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23057 memleak conditions.
23058
23059 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23060
23061 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23062 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23063
23064 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23065
23066 * util/bin2h.c (usage): Fix warning (space after backslash).
23067
23068 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23069
23070 * font/font.c: Include `grub/fontformat.h.
23071 Remove font file format constants.
23072 (grub_font_load): Use the new macros.
23073 * include/grub/fontformat.h: New file.
23074 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23075 (write_font_pf2): Use the new macros.
23076
23077 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23078
23079 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23080 does.
23081
23082 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23083
23084 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23085
23086 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23087 (_start): Macroify `0x7F'.
23088
23089 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23090 (make_install_device): Use "(pxe)" as fallback prefix when booting
23091 via PXE.
23092
23093 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23094
23095 * configure.ac: Reset LIBS after check for libgcc symbols.
23096
23097 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23098
23099 * util/hostdisk.c (open_device): Add trailing newline to debug
23100 message.
23101
23102 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23103
23104 * configure.ac: Check for `limits.h'.
23105 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23106
23107 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23108
23109 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23110 capitalize error strings.
23111
23112 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23113
23114 * util/grub.d/10_hurd.in: Add a recovery mode.
23115
23116 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23117
23118 * configure.ac: Check for libgcc symbols with -nostdlib.
23119
23120 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23121
23122 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23123
23124 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23125
23126 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23127 stack since heap may be unavailable at that point.
23128 (grub_ofconsole_gotoxy): Likewise.
23129
23130 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23131
23132 * configure.ac: Check for _restgpr_14_x.
23133 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23134 and _savegpr_* prototypes.
23135
23136 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23137
23138 Use generic grub_reboot() for i386-efi.
23139
23140 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23141 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23142 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23143
23144 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23145
23146 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23147 presence of "prefix" variable as it breaks when normal.mod is
23148 embedded.
23149
23150 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23151
23152 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23153 stack since heap is unavailable at that point.
23154
23155 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23156
23157 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23158 (grub_freebsd_bootinfo): Rewritten.
23159 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23160
23161 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23162
23163 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23164
23165 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23166
23167 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23168 domain now.
23169
23170 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23171
23172 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23173 around for handling "/" to the correct fix. Fix a memory leak. Use
23174 xstrdup instead of strdup.
23175
23176 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23177
23178 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23179
23180 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23181
23182 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23183
23184 * font/font.c (struct grub_font): New member 'bmp_idx'.
23185 (font_init): Initialise 'bmp_idx'.
23186 (load_font_index): Fill 'bmp_idx'.
23187 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23188
23189 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23190
23191 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23192 unnecessary calls.
23193
23194 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23195
23196 Move context handling out of the kernel.
23197
23198 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23199 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23200 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23201 * conf/i386-efi.rmk: Likewise.
23202 * conf/i386-ieee1275.rmk: Likewise.
23203 * conf/i386-pc.rmk: Likewise.
23204 * conf/powerpc-ieee1275.rmk: Likewise.
23205 * conf/sparc64-ieee1275.rmk: Likewise.
23206 * conf/x86_64-efi.rmk: Likewise.
23207 * include/grub/env.h: Include grub/menu.h.
23208 (grub_env_var_type): Removed.
23209 (grub_env_var): Replaced field 'type' with 'global'.
23210 (grub_env_find): New prototype.
23211 (grub_env_context_open): Remove EXPORT_FUNC.
23212 (grub_env_context_close): Likewise.
23213 (grub_env_export): Likewise.
23214 (grub_env_set_data_slot): Removed.
23215 (grub_env_get_data_slot): Likewise.
23216 (grub_env_unset_data_slot): Likewise.
23217 (grub_env_unset_menu): New prototype.
23218 (grub_env_set_menu): Likewise.
23219 (grub_env_get_menu): Likewise.
23220 * include/grub/env_private.h: New file.
23221 * include/grub/normal.h (grub_context_init): New prototype.
23222 (grub_context_fini): Likewise.
23223 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23224 * normal/context.c (grub_cmd_export): ... to here.
23225 * kern/env.c: Include env_private.h.
23226 (HASHSZ): Moved to include/grub/env_private.h.
23227 (grub_env_context): Likewise.
23228 (grub_env_sorted_var): Likewise.
23229 (current_context): Renamed from this ...
23230 (grub_current_context): ...to this. 'static' removed. All users updated.
23231 (grub_env_find): Removed 'static'.
23232 (grub_env_context_open): Moved to normal/context.c.
23233 (grub_env_context_close): Likewise.
23234 (grub_env_export): Likewise.
23235 (mangle_data_slot_name): Removed.
23236 (grub_env_set_data_slot): Likewise.
23237 (grub_env_get_data_slot): Likewise.
23238 (grub_env_unset_data_slot): Likewise.
23239 * kern/main.c (grub_set_root_dev): Don't export root.
23240 It will be done later.
23241 (grub_main): Don't export prefix.
23242 It will be done later.
23243 * normal/context.c: New file.
23244 * normal/main.c (free_menu): Use grub_env_unset_menu.
23245 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23246 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23247 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23248 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23249
23250 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23251
23252 setpci support.
23253
23254 * commands/setpci.c: New file.
23255 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23256 (setpci_mod_SOURCES): New variable.
23257 (setpci_mod_CFLAGS): Likewise.
23258 (setpci_mod_LDFLAGS): Likewise.
23259
23260 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23261
23262 Byte-addressable PCI configuration space.
23263
23264 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23265 dword address.
23266 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23267 GRUB_PCI_REG_CACHELINE.
23268 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23269 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23270 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23271 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23272 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23273 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23274 grub_pci_make_address.
23275 (lock_rom_area): Likewise.
23276 * commands/lspci.c (grub_lspci_iter): Use macroses
23277 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23278 of grub_pci_make_address.
23279 * disk/ata.c (grub_ata_pciinit): Likewise.
23280 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23281 (GRUB_PCI_REG_VENDOR): Likewise.
23282 (GRUB_PCI_REG_DEVICE): Likewise.
23283 (GRUB_PCI_REG_COMMAND): Likewise.
23284 (GRUB_PCI_REG_STATUS): Likewise.
23285 (GRUB_PCI_REG_REVISION): Likewise.
23286 (GRUB_PCI_REG_CLASS): Likewise.
23287 (GRUB_PCI_REG_CACHELINE): Likewise.
23288 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23289 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23290 (GRUB_PCI_REG_BIST): Likewise.
23291 (GRUB_PCI_REG_ADDRESSES): Likewise.
23292 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23293 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23294 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23295 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23296 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23297 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23298 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23299 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23300 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23301 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23302 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23303 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23304 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23305 (GRUB_PCI_REG_MIN_GNT): Likewise.
23306 (GRUB_PCI_REG_MAX_LAT): Likewise.
23307 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23308 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23309 * video/efi_uga.c (find_framebuf): Likewise.
23310 * video/sm712.c (grub_video_sm712_setup): Likewise.
23311 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23312 space.
23313
23314 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23315
23316 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23317 can be reliably determined to be supported.
23318
23319 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23320
23321 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23322 that VESA is supported.
23323 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23324 supported.
23325
23326 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23327
23328 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23329
23330 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23331
23332 * util/misc.c (make_system_path_relative_to_its_root): Work around
23333 special-casing of "/", as previous incarnation of this routine did.
23334
23335 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23336
23337 Fix any-emu compilation.
23338
23339 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23340 * grub_bin2h_SOURCES: New variable.
23341
23342 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23343
23344 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23345
23346 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23347
23348 * util/grub.d/00_header.in: Fix handling of locale_dir.
23349
23350 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23351
23352 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23353 as possible unifont location (Gentoo).
23354 Reported by: Alexander Brüning
23355
23356 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23357
23358 Don't try to generate lists for kernel.img.
23359
23360 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23361 (pkglib_MODULES): Remove kernel.img.
23362 (kernel_img_EXPORTS): Removed.
23363 (kernel_img_RELOCATABLE): New variable.
23364 * conf/x86_64-efi.rmk: Likewise.
23365 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23366
23367 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23368
23369 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23370 grub_xasprintf or grub_snprintf.
23371 (grub_vsprintf): Likewise.
23372 (grub_snprintf): New proto.
23373 (grub_vsnprintf): Likewise.
23374 (grub_xasprintf): Likewise.
23375 (grub_xvasprintf): Likewise.
23376 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23377 (grub_sprintf): Removed.
23378 (grub_vsnprintf): New function.
23379 (grub_snprintf): Likewise.
23380 (grub_xvasprintf): Likewise.
23381 (grub_xasprintf): Likewise.
23382 (grub_vsprintf): Renamed to ...
23383 (grub_vsnprintf_real): ...this. New argument max_len.
23384
23385 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23386
23387 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23388 fix grub-script-check warning.
23389
23390 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23391
23392 * include/grub/font.h (grub_font_load): Fix prototype.
23393
23394 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23395
23396 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23397
23398 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23399
23400 * include/grub/x86_64/at_keyboard.h: New file.
23401
23402 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23403
23404 * loader/mips/linux.c: Include missing grub/i18n.h.
23405
23406 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23407
23408 * normal/menu.c (notify_execution_failure): Clarify error message.
23409
23410 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23411
23412 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23413 return value (and revert all return statements). Update users.
23414
23415 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23416
23417 * kern/device.c (grub_device_iterate): Allocate new part_ent
23418 structure based on sizeof (*p) rather than sizeof (p->next), to
23419 account for structure padding.
23420
23421 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23422 disk is NULL, which might happen for LVM physical volumes with no
23423 LVM signature.
23424
23425 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23426
23427 * loader/mips/linux.c (grub_cmd_initrd)
23428 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23429
23430 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23431
23432 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23433 (grub_video_video_init, grub_video_bitmap_init)
23434 (grub_font_manager_init, grub_term_gfxterm_init)
23435 (grub_at_keyboard_init): New extern declarations.
23436 (grub_machine_init): Initialize gfxterm and at_keyboard.
23437
23438 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23439
23440 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23441 `gfxterm.mod' into core image.
23442
23443 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23444 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23445 (kernel_img_FORMAT): Copy to ...
23446
23447 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23448 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23449 (kernel_img_FORMAT): ... here, and ...
23450
23451 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23452 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23453 (kernel_img_FORMAT): ... here.
23454
23455 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23456 and input (at_keyboard) terminals in kernel.
23457 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23458
23459 (pkglib_MODULES): Remove `pci.mod'.
23460 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23461 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23462 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23463 (at_keyboard_mod_LDFLAGS): Remove variables.
23464
23465 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23466
23467 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23468
23469 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23470
23471 * include/grub/mips/libgcc.h: Only export symbols for functions
23472 that libgcc provides.
23473
23474 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23475
23476 MIPS support.
23477
23478 * bus/bonito.c: New file.
23479 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23480 GRUB_PCI_NUM_DEVICES.
23481 * term/i386/pc/serial.c: Move to ...
23482 * term/serial.c: ... here. All users updated.
23483 * util/i386/pc/grub-mkimage.c: Move to ...
23484 * util/grub-mkrawimage.c: ... here. All users updated.
23485 * term/i386/pc/at_keyboard.c: Move to ...
23486 * term/at_keyboard.c: ... here. All users updated.
23487 * conf/mips-qemu-mips.rmk: New file.
23488 * conf/mips-yeeloong.rmk: Likewise.
23489 * conf/mips.rmk: Likewise.
23490 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23491 mipsel-qemu-mips.
23492 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23493 to port addresses.
23494 (grub_ata_pciinit): Support CS5536.
23495 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23496 * font/font_cmd.c (loadfont_command): Open file before passing it to
23497 grub_font_load.
23498 (pseudo_file_read): New function.
23499 (pseudo_file_close): Likewise.
23500 (pseudo_fs): New structure.
23501 (load_font_module): New function.
23502 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23503 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23504 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23505 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23506 * include/grub/i386/at_keyboard.h: Split into ...
23507 * include/grub/at_keyboard.h: ... this ...
23508 * include/grub/i386/at_keyboard.h: ... and this.
23509 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23510 New prototype.
23511 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23512 updated.
23513 (grub_elf64_size): Likewise.
23514 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23515 filename.
23516 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23517 * include/grub/i386/coreboot/serial.h: Rewritten.
23518 * include/grub/i386/ieee1275/serial.h: Include
23519 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23520 * include/grub/i386/pc/serial.h: Moved from here ...
23521 * include/grub/serial.h: ... to here. All users updated.
23522 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23523 (GRUB_PCI_NUM_BUS): Likewise.
23524 (GRUB_PCI_NUM_DEVICES): Likewise.
23525 (grub_pci_device_map_range): Add missing volatile keyword.
23526 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23527 * include/grub/mips/at_keyboard.h: New file.
23528 * include/grub/mips/cache.h: Likewise.
23529 * include/grub/mips/io.h: Likewise.
23530 * include/grub/mips/kernel.h: Likewise.
23531 * include/grub/mips/libgcc.h: Likewise.
23532 * include/grub/mips/pci.h: Likewise.
23533 * include/grub/mips/qemu-mips/boot.h: Likewise.
23534 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23535 * include/grub/mips/qemu-mips/loader.h: Likewise.
23536 * include/grub/mips/qemu-mips/memory.h: Likewise.
23537 * include/grub/mips/qemu-mips/serial.h: Likewise.
23538 * include/grub/mips/qemu-mips/time.h: Likewise.
23539 * include/grub/mips/relocator.h: Likewise.
23540 * include/grub/mips/time.h: Likewise.
23541 * include/grub/mips/types.h: Likewise.
23542 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23543 * include/grub/mips/yeeloong/boot.h: Likewise.
23544 * include/grub/mips/yeeloong/kernel.h: Likewise.
23545 * include/grub/mips/yeeloong/loader.h: Likewise.
23546 * include/grub/mips/yeeloong/memory.h: Likewise.
23547 * include/grub/mips/yeeloong/pci.h: Likewise.
23548 * include/grub/mips/yeeloong/serial.h: Likewise.
23549 * include/grub/mips/yeeloong/time.h: Likewise.
23550 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23551 * kern/elf.c (grub_elf32_size): New parameter. All users
23552 updated.
23553 (grub_elf64_size): Likewise.
23554 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23555 Load modules before saying "Welcome to GRUB!".
23556 Call grub_refresh after saying "Welcome to GRUB!".
23557 * kern/mips/cache.S: New file.
23558 * kern/mips/cache_flush.S: Likewise.
23559 * kern/mips/dl.c: Likewise.
23560 * kern/mips/init.c: Likewise.
23561 * kern/mips/qemu-mips/init.c: Likewise.
23562 * kern/mips/startup.S: Likewise.
23563 * kern/mips/yeeloong/init.c: Likewise.
23564 * kern/term.c (grub_putcode): Handle NULL terminal.
23565 (grub_getcharwidth): Likewise.
23566 (grub_getkey): Likewise.
23567 (grub_checkkey): Likewise.
23568 (grub_getkeystatus): Likewise.
23569 (grub_getxy): Likewise.
23570 (grub_getwh): Likewise.
23571 (grub_gotoxy): Likewise.
23572 (grub_cls): Likewise.
23573 (grub_setcolorstate): Likewise.
23574 (grub_setcolor): Likewise.
23575 (grub_getcolor): Likewise.
23576 (grub_refresh): Likewise.
23577 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23578 (write_jump): Add hatch nop.
23579 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23580 * lib/mips/setjmp.S: New file.
23581 * loader/mips/linux.c: Likewise.
23582 * term/i386/pc/at_keyboard.c: Move from here ...
23583 * term/at_keyboard.c: ... to here.
23584 * term/i386/pc/serial.c: Moved from here ...
23585 * term/serial.c: ... to here. All users updated.
23586 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23587 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23588 (serial_translate_key_sequence): Avoid deadlock.
23589 (grub_serial_getkey): Handle backspace.
23590 (grub_serial_putchar): Fix newline handling.
23591 * util/i386/pc/grub-mkimage.c: Move from here ...
23592 * util/grub-mkrawimage.c: ... to here. All users updated.
23593 (generate_image): New parameters 'font_path' and 'format'.
23594 Support embedding font.
23595 Use grub_host_to_target* instead of grub_cpu_to_le*.
23596 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23597 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23598 (options): New option "--font".
23599 (usage): Likewise.
23600 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23601 (main): Handle "--font".
23602 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23603 (grub_virtual_screen_setup): Set bg_color_display.
23604 (redraw_screen_rect): Use bg_color_display instead of incorrect
23605 bg_color.
23606 (grub_gfxterm_cls): Likewise.
23607 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23608 Support embedding config file.
23609 (add_segments): Likewise.
23610 (options): New option "--config".
23611 (main): Handle "--config".
23612 * video/sm712.c: New file.
23613
23614 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23615
23616 Fix parallel builds.
23617
23618 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23619 font.c depend on ascii.h).
23620
23621 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23622
23623 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23624
23625 2010-01-11 Carles Pina i Estany <carles@pina.cat>
23626
23627 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
23628 By default: disabled.
23629 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
23630 parameter.
23631
23632 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23633
23634 * font/font.c: Update copyright years.
23635 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
23636
23637 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23638
23639 * font/font.c: Include `ascii.h'.
23640 (ASCII_BITMAP_SIZE): New macro.
23641 (ascii_font_glyph): Define.
23642 (ascii_glyph_lookup): New function.
23643 (grub_font_get_string_width): Change comment. If glyph not found, use
23644 ascii_glyph_lookup.
23645 (grub_font_get_glyph_with_fallback): If glyph not available returns
23646 ascii_glyph_lookup.
23647 * util/grub-mkfont.c (file_formats): New enum.
23648 (options): Add `ascii-bitmaps' new option.
23649 (usage): Add `asii-bitmaps' new option.
23650 (write_font_ascii_bitmap): New function.
23651 (write_font): Rename to ...
23652 (write_font_p2): ... this. Remove print_glyphs call.
23653 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
23654 used. Call print_glyphs.
23655 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
23656
23657 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23658
23659 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
23660 (grub_bin2h_SOURCES): New variable.
23661 * util/bin2h.c: New file.
23662
23663 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 * include/multiboot.h: Resynced with spec.
23666 * include/multiboot2.h: Likewise.
23667 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
23668 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
23669
23670 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23671
23672 * include/grub/term.h (grub_term_register_input,
23673 grub_term_register_output): Check return of terminal init()
23674 routines, and abort if errors are raised.
23675
23676 * commands/terminal.c: Update copyright year.
23677
23678 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23679
23680 * commands/terminal.c (grub_cmd_terminal_input)
23681 (grub_cmd_terminal_output): Check return of terminal init()
23682 routines, and abort if errors are raised.
23683
23684 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23685
23686 * include/grub/i386/bsd.h: Fix include pathes.
23687
23688 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23689
23690 Add missing *BSD copyright headers.
23691
23692 * include/grub/aout.h: Add BSD licence.
23693 * include/grub/i386/bsd.h: Parts under different licences moved to ...
23694 * include/grub/i386/freebsd_linker.h: ... here,
23695 * include/grub/i386/freebsd_reboot.h: ... here,
23696 * include/grub/i386/netbsd_bootinfo.h: ... here,
23697 * include/grub/i386/netbsd_reboot.h: ... here,
23698 * include/grub/i386/openbsd_bootarg.h: ... here,
23699 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
23700 licence to each file.
23701
23702 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23703
23704 * acinclude.m4: Remove `nop' assembly instruction; it's not
23705 implemented by all architectures.
23706
23707 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23708
23709 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
23710 ELILO. This is no longer necessary.
23711
23712 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
23713
23714 Added new tool, grub-scrit-check to verify grub.cfg syntax.
23715
23716 * util/grub-script-check.c: grub-script-check tool.
23717 * conf/common.rmk: Make rules for grub-script-check.
23718
23719 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23720
23721 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
23722 spotting it back in 2008. Shame on me for forgetting he did.
23723
23724 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
23725
23726 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23727
23728 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
23729 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
23730 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
23731 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
23732 (GRUB_VIDEO_TYPE_EFI): Rename to ...
23733 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
23734
23735 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
23736
23737 * include/grub/test.h: Add license header.
23738 * tests/example_functional_test.c: Likewise.
23739 * tests/example_unit_test.c: Likewise.
23740 * tests/lib/functional_test.c: Likewise.
23741 * tests/lib/test.c: Likewise.
23742 * tests/lib/unit_test.c: Likewise.
23743
23744 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
23745
23746 Use flag-based instead of hook-based video mode selection and "auto"
23747 keyword.
23748
23749 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
23750 (grub_video_set_mode): Changed prototype. All users updated.
23751 (grub_video_check_mode_flag): New inline function.
23752 * video/video.c (parse_modespec): New function.
23753 (grub_video_set_mode): Parse flags and keywords.
23754
23755 2010-01-17 Carles Pina i Estany <carles@pina.cat>
23756
23757 * util/misc.c (grub_util_info): Fix the order of the parameters in a
23758 fprintf call.
23759
23760 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
23761
23762 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
23763
23764 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23765
23766 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
23767 string.
23768 * util/grub-emu.c (usage): Likewise.
23769 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
23770 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23771 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23772 * util/i386/pc/grub-setup.c (usage): Likewise.
23773
23774 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23775
23776 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
23777 the message.
23778 (grub_util_info): Likewise.
23779 (grub_util_error): Likewise.
23780 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
23781 and/or new lines in `grub_util_warna', `grub_util_info',
23782 `grub_util_error' calls.
23783 * util/getroot.c: Likewise.
23784 * util/grub-editenv.c: Likewise.
23785 * util/grub-emu.c: Likewise.
23786 * util/grub-fstest.c: Likewise.
23787 * util/grub-mkdevicemap.c: Likewise.
23788 * util/grub-mkfont.c: Likewise.
23789 * util/grub-mkpasswd-pbkdf2.c: Likewise.
23790 * util/grub-mkrelpath.c: Likewise.
23791 * util/grub-pe2elf.c: Likewise.
23792 * util/grub-probe.c: Likewise.
23793 * util/hostdisk.c: Likewise.
23794 * util/i386/efi/grub-mkimage.c: Likewise.
23795 * util/i386/pc/grub-mkimage.c: Likewise.
23796 * util/i386/pc/grub-setup.c: Likewise.
23797 * util/ieee1275/ofpath.c: Likewise.
23798 * util/mkisofs/eltorito.c: Likewise.
23799 * util/mkisofs/rock.c: Likewise.
23800 * util/mkisofs/write.c: Likewise.
23801 * util/raid.c: Likewise.
23802 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
23803 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23804
23805 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23806
23807 Enable multiboot on non-pc.
23808
23809 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
23810 multiboot.mod and multiboot2.mod to ...
23811 * conf/i386.rmk (pkglib_MODULES): ... here.
23812 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
23813 Moved to ...
23814 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
23815 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
23816 Moved to ...
23817 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
23818 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
23819 Moved to ...
23820 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
23821 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
23822 Moved to ...
23823 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
23824 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
23825 relocator.mod.
23826 (ata_mod_SOURCES): Removed.
23827 (ata_mod_CFLAGS): Likewise.
23828 (ata_mod_LDFLAGS): Likewise.
23829 (relocator_mod_SOURCES): Removed.
23830 (relocator_mod_CFLAGS): Likewise.
23831 (relocator_mod_ASFLAGS): Likewise.
23832 (relocator_mod_LDFLAGS): Likewise.
23833 Include i386.mk.
23834 * include/grub/x86_64/multiboot.h: New file.
23835 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
23836 Terminate EFI.
23837
23838 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23839
23840 Video multiboot support.
23841
23842 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
23843 New prototype.
23844 * include/multiboot.h: Resynced with multiboot specification.
23845 * include/multiboot2.h: Likewise.
23846 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
23847 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
23848 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
23849 (HAS_VGA_TEXT): Likewise.
23850 (accepts_video): New variable.
23851 (grub_multiboot_set_accepts_video): New function.
23852 (grub_multiboot_get_mbi_size): Account for video structures.
23853 (set_video_mode): New function.
23854 (retrieve_video_parameters): Likewise.
23855 (grub_multiboot_make_mbi): Fill video fields.
23856
23857 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23858
23859 Video driver ids.
23860
23861 * include/grub/video.h (grub_video_driver_id): New type.
23862 (grub_video_adapter): New member 'id'. All users updated.
23863 (grub_video_get_driver_id): New proto.
23864 * video/video.c (grub_video_get_driver_id): New function.
23865
23866 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23867
23868 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
23869 `var=val'.
23870
23871 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23872
23873 * normal/cmdline.c (print_completion): Gettextizze.
23874
23875 2001-01-14 Carles Pina i Estany <carles@pina.cat>
23876
23877 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
23878
23879 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23880
23881 * gettext/gettext.c (grub_gettext_translate): Push and pop
23882 grub_errno.
23883 (grub_gettext_delete_list): Change comment style.
23884 * kern/err.c (grub_error): Gettextizze.
23885 (grub_fatal): Gettextizze.
23886
23887 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23888
23889 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
23890 (grub_linux16_real_boot): ... this.
23891 * kern/i386/loader.S: Likewise.
23892 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
23893 (grub_linux16_boot): New function. Switches to text mode and calls
23894 grub_linux16_real_boot().
23895
23896 * loader/i386/bsd.c: Include `<grub/video.h>'.
23897 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
23898 text mode before calling grub_unix_real_boot().
23899
23900 * loader/i386/multiboot.c: Include `<grub/video.h>'.
23901 (grub_multiboot_boot): Switch to text mode before calling
23902 grub_relocator32_boot().
23903
23904 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
23905 (grub_chainloader_boot): Switch to text mode before calling
23906 grub_chainloader_real_boot().
23907
23908 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23909 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23910
23911 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
23912 non-empty value.
23913
23914 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23915 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23916
23917 * util/grub.d/00_header.in: Define a "savedefault" function for use
23918 in menu entries.
23919 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
23920
23921 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23922 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23923
23924 * util/grub-mkconfig_lib.in (save_default_entry): Only set
23925 saved_entry if boot_once is unset.
23926 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
23927 previous saved entry (i.e. grub-reboot).
23928
23929 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23930
23931 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
23932
23933 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23934
23935 * util/grub.d/00_header.in: Use `set var=val' rather than plain
23936 `var=val'.
23937 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
23938
23939 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23940
23941 * util/grub-reboot.in: Fix --version output.
23942 * util/grub-set-default.in: Likewise.
23943
23944 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23945
23946 * util/grub.d/00_header.in: Silently ignore zero-sized environment
23947 blocks.
23948
23949 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23950
23951 * util/grub.d/00_header.in: Quote the value assigned to `default',
23952 in case it contains spaces.
23953
23954 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23955
23956 * util/grub.d/30_os-prober.in: Fix merge error that moved a
23957 `save_default_entry' call from the macosx case to the linux case.
23958
23959 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
23960 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
23961
23962 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
23963 in `chosen' environment variable.
23964 * normal/menu_text.c (get_entry_number): Check if the variable
23965 matches the title of a menu entry.
23966 (run_menu): Pass menu to get_entry_number.
23967
23968 * util/grub-reboot.in: New file.
23969 * util/grub-set-default.in: New file.
23970 * conf/common.rmk (grub-reboot): New utility.
23971 (grub-set-default): New utility.
23972
23973 * util/grub-mkconfig_lib.in (save_default_entry): New function.
23974 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
23975 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
23976 move it to `saved_entry' for the next boot. Load environment on
23977 initialisation.
23978 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
23979 * util/grub.d/10_hurd.in: Likewise.
23980 * util/grub.d/10_linux.in (linux_entry): Likewise.
23981 * util/grub.d/10_windows.in: Likewise.
23982 * util/grub.d/30_os-prober.in: Likewise.
23983
23984 * util/grub-install.in: Create environment block.
23985 * util/i386/efi/grub-install.in: Likewise.
23986 * util/ieee1275/grub-install.in: Likewise.
23987 * util/sparc64/ieee1275/grub-install.in: Likewise.
23988
23989 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
23990
23991 Unit testing framework for GRUB.
23992
23993 * Makefile.in: Test framework build rules for 'make check'.
23994 * conf/tests.rmk: Build rules for individual tests and framework.
23995
23996 * include/grub/test.h: Header file for whitebox tests.
23997 * tests/lib/functional_test.c: Framework support for whitebox
23998 functional tests.
23999 * tests/lib/test.c: Common whitebox testing code for unit and
24000 functional tests.
24001 * tests/lib/unit_test.c: Framework support for whitebox unit
24002 tests.
24003
24004 * tests/util/grub-shell-tester.in: Support utility for grub-script
24005 tests.
24006 * tests/util/grub-shell.in: Utility to execute grub-script
24007 commands in a Qemu instance.
24008
24009 * tests/example_functional_test.c: Example whitebox functional
24010 test.
24011 * tests/example_grub_script_test.in: Example grub-script test.
24012 * tests/example_scripted_test.in: Example scripted test.
24013 * tests/example_unit_test.c: Example whitebox unit test.
24014
24015 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24016
24017 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24018 Add loader/i386/multiboot_mbi.c.
24019 (multiboot2_mod_SOURCES): Likewise.
24020 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24021 (multiboot2_mod_SOURCES): Likewise.
24022 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24023 (grub_multiboot_make_mbi): Likewise.
24024 (grub_multiboot_free_mbi): Likewise.
24025 (grub_multiboot_init_mbi): Likewise.
24026 (grub_multiboot_add_module): Likewise.
24027 (grub_multiboot_set_bootdev): Likewise.
24028 * loader/i386/multiboot.c (mbi): Removed.
24029 (mbi_dest): Likewise.
24030 (alloc_mbi): New variable.
24031 (grub_multiboot_payload_size): Removed. All users updated.
24032 (grub_multiboot_pure_size): New variable.
24033 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24034 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24035 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24036 (grub_fill_multiboot_mmap): Likewise.
24037 (grub_multiboot_get_bootdev): Likewise.
24038 (grub_multiboot): Use multiboot_mbi functions.
24039 * loader/i386/multiboot_mbi.c: New file.
24040
24041 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24042
24043 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24044 it would result in module crash.
24045
24046 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24047
24048 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24049 (grub_ofconsole_getwh): Split to ...
24050 (grub_ofconsole_getwh): ... this.
24051 (grub_ofconsole_dimensions): ...and this.
24052 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24053
24054 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24055
24056 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24057
24058 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24059
24060 * loader/i386/pc/multiboot2.c: Removed stalled file.
24061
24062 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24063
24064 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24065 Reported by: Grégoire Sutre
24066
24067 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24068
24069 * util/misc.c (canonicalize_file_name): New function.
24070 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24071 instead of realpath().
24072
24073 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24074
24075 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24076 and make it clearer that it's optional. Based on confusion
24077 witnessed on IRC.
24078
24079 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24080
24081 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24082 in premature implicit newline.
24083
24084 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24085
24086 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24087 which resulted in garbled command line at the end of screen.
24088
24089 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24090
24091 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24092 initialization with similar approach as with other Linux loaders.
24093
24094 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24095
24096 Fix i386-ieee1275 build.
24097
24098 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24099 and grub_term_height() for video_{width,height} initialization.
24100
24101 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24102
24103 Fix grub-emu build.
24104
24105 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24106
24107 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24108 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24109
24110 Support for multiple terminals.
24111
24112 * Makefile.in (pkglib_DATA): terminal.lst.
24113 (terminal.lst): New target.
24114 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24115 (GRUB_MOD_INIT(handler)): Likewise.
24116 (GRUB_MOD_FINI(handler)): Likewise.
24117 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24118 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24119 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24120 (grub_cmd_sleep): Use grub_term_save_pos.
24121 * commands/terminal.c: New file.
24122 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24123 commands/terminal.c and lib/charset.c.
24124 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24125 (pkglib_MODULES): Add terminal.mod.
24126 (terminal_mod_SOURCES): New variable.
24127 (terminal_mod_CFLAGS): Likewise.
24128 (terminal_mod_LDFLAGS): Likewise.
24129 * genhandlerlist.sh: Don't handle terminals.
24130 * genmk.rb: Generate terminal-*.lst.
24131 * genterminallist.sh: New file.
24132 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24133 (grub_is_valid_utf8): Likewise.
24134 (grub_utf8_to_ucs4_alloc): Likewise.
24135 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24136 (grub_menu_register_viewer): Changed argument.
24137 (grub_menu_try_text): New proto.
24138 (grub_gfxmenu_try_hook): New declaration.
24139 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24140 (grub_menu_init_page): Additional argument term.
24141 (grub_normal_init_page): Likewise.
24142 (grub_cmdline_get): Arguments simplified.
24143 (grub_utf8_to_ucs4_alloc): Removed.
24144 (grub_print_ucs4): Additional argument term.
24145 (grub_getstringwidth): Likewise.
24146 (grub_print_message_indented): Likewise.
24147 (grub_menu_text_register_instances): New proto.
24148 (grub_show_menu): Likewise.
24149 (read_terminal_list): Likewise.
24150 (grub_set_more): Likewise.
24151 * include/grub/parser.h: Include handler.h.
24152 * include/grub/reader.h: Rewritten.
24153 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24154 (GRUB_TERM_WIDTH): Changed to function.
24155 (GRUB_TERM_HEIGHT): Likewise.
24156 (GRUB_TERM_BORDER_WIDTH): Likewise.
24157 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24158 (GRUB_TERM_NUM_ENTRIES): Likewise.
24159 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24160 (GRUB_TERM_CURSOR_X): Likewise.
24161 (grub_term_input_class): Likewise.
24162 (grub_term_output_class): Likewise.
24163 (grub_term_outputs_disabled): New declaration.
24164 (grub_term_inputs_disabled): Likewise.
24165 (grub_term_outputs): Likewise.
24166 (grub_term_inputs): Likewise.
24167 (grub_term_register_input): Rewritten.
24168 (grub_term_register_output): Likewise.
24169 (grub_term_unregister_input): Likewise.
24170 (grub_term_unregister_output): Likewise.
24171 (FOR_ACTIVE_TERM_INPUTS): New macro.
24172 (FOR_DISABLED_TERM_INPUTS): Likewise.
24173 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24174 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24175 * include/grub/terminfo.h: Add oterm argument to all protypes.
24176 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24177 Use grub_rescue_run.
24178 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24179 All users updated.
24180 * kern/reader.c: Removed. All users updated.
24181 * kern/rescue_reader.c (grub_rescue_init): Removed.
24182 (grub_rescue_reader): Likewise.
24183 (grub_register_rescue_reader): Likewise.
24184 (grub_rescue_run): New function based on kern/reader.c.
24185 * kern/term.c: Adapted for multiterm.
24186 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24187 (grub_is_valid_utf8): Likewise.
24188 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24189 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24190 right terminal.
24191 * loader/i386/linux.c (grub_linux_boot): Likewise.
24192 * normal/auth.c (grub_username_get): New function.
24193 (grub_auth_check_authentication): Use grub_username_get.
24194 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24195 * normal/color.c: Adapt for multiterm.
24196 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24197 (grub_normal_init_page): Additional argument term.
24198 (read_lists): Call read_terminal_lists.
24199 (grub_enter_normal_mode): Call grub_cmdline_run.
24200 Handle grub_normal_exit_level.
24201 (grub_cmd_normal): Make reentrant.
24202 (grub_cmd_normal_exit): New function.
24203 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24204 * normal/menu.c: Adapt for multiterm.
24205 * normal/menu_entry.c: Likewise.
24206 * normal/menu_text.c: Likewise.
24207 * normal/menu_viewer.c: Removed. All users updated.
24208 * normal/term.c: New file.
24209 * util/console.c: Change order of includes to workaround a bug in
24210 ncurses headers.
24211 * term/terminfo.c: New argument oterm on all exported functions.
24212 All users updated.
24213 * util/grub-editenv.c (grub_term_input_class): Removed.
24214 (grub_term_output_class): Likewise.
24215
24216 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24217
24218 Make loader output a bit more user-friendly.
24219
24220 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24221 is being loaded. Likewise for the Hurd.
24222
24223 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24224 that kernel of FreeBSD ${version} is being loaded.
24225
24226 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24227 grub_dprintf().
24228 (grub_cmd_initrd): Likewise.
24229 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24230 that Linux ${version} is being loaded. Likewise for initrd.
24231
24232 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24233
24234 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24235
24236 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24237
24238 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24239 (GRUB_MOD_INIT): Gettextizze.
24240 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24241 (GRUB_MOD_INIT): Gettextizze.
24242 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24243 (grub_cmd_linux): Capitalise Linux.
24244 (GRUB_MOD_INIT): Gettextizze.
24245 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24246 (grub_cmd_linux): Capitalise Linux.
24247 (GRUB_MOD_INIT): Gettextizze.
24248 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24249 (grub_cmd_linux): Capitalise Linux.
24250 (GRUB_MOD_INIT): Gettextizze.
24251 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24252 (GRUB_MOD_INIT): Gettextizze.
24253 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24254 (grub_cmd_linux): Capitalise Linux.
24255 (GRUB_MOD_INIT): Gettextizze.
24256 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24257 (grub_cpu_xnu_init): Gettextizze.
24258 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24259 (GRUB_MOD_INIT): Gettextizze.
24260 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24261 (GRUB_MOD_INIT): Gettextizze.
24262 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24263 (grub_linux_load64): Capitalise Linux.
24264 (GRUB_MOD_INIT): Gettextizze.
24265 * loader/xnu.c: Include `<grub/i18n.h>'.
24266 (GRUB_MOD_INIT): Gettextizze.
24267 * po/POTFILES: Add `loader/efi/appleloader.c',
24268 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24269 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24270 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24271 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24272 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24273 and `loader/xnu.c'.
24274
24275 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24276
24277 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24278
24279 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24280
24281 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24282 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24283 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24284
24285 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24286
24287 Reset Multiboot 2 support. New loader implements the draft in
24288 /branches/multiboot2 and shares as much code as possible with the
24289 production Multiboot 1 implementation.
24290
24291 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24292 * loader/multiboot2.c: Likewise.
24293 * loader/i386/multiboot_helper.S: Likewise.
24294 * include/multiboot2.h: Replace with latest version from the draft
24295 in /branches/multiboot2.
24296
24297 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24298 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24299 and `loader/multiboot2.c'.
24300 (pkglib_MODULES): Add `multiboot2.mod'.
24301 (multiboot2_mod_SOURCES): New variable.
24302 (multiboot2_mod_LDFLAGS): Likewise.
24303 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24304
24305 * conf/i386-pc.rmk: Likewise.
24306
24307 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24308 (multiboot_mod_SOURCES): Remove variable.
24309 (multiboot_mod_LDFLAGS): Likewise.
24310 (multiboot_mod_CFLAGS): Likewise.
24311
24312 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24313 `<multiboot2.h>' instead of `<multiboot.h>'.
24314 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24315 (MULTIBOOT_HEADER_MAGIC): New macros.
24316
24317 * loader/multiboot_loader.c (module_version_status): Remove variable.
24318 (find_multi_boot2_header): Remove function.
24319 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24320 logic. Always check for the Multiboot version we're compiling for.
24321 (grub_cmd_module_loader): Likewise.
24322 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24323 command instead of `multiboot'.
24324
24325 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24326
24327 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24328 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24329 all users.
24330
24331 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24332 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24333
24334 Fix breakage introduced with previous commit.
24335
24336 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24337 commands.
24338 * normal/handler.c (read_handler_list): Revert part of previous commit
24339 affecting this file.
24340 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24341 (grub_normal_execute): ... here.
24342
24343 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24344
24345 Merge prefix-redefinition-fix branch.
24346
24347 * normal/autofs.c (read_fs_list): Make function capable of being
24348 run multiple times, gracefuly replacing the previous data
24349 structures.
24350 * normal/dyncmd.c (read_command_list): Likewise.
24351 * normal/handler.c (read_handler_list): Likewise.
24352 * normal/main.c (read_lists): New function. Calls all the
24353 list reading functions.
24354 (grub_normal_execute): Use read_lists() instead of calling all
24355 list reading functions explicitly. Register read_lists() as a
24356 variable hook attached to ${prefix}.
24357
24358 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24359
24360 Merge crypto branch.
24361
24362 * Makefile.in (pkglib_DATA): Add crypto.lst.
24363 (crypto.lst): New target.
24364 * commands/hashsum.c: New file.
24365 * commands/password.c (check_password): Use grub_crypto_memcmp.
24366 * commands/password_pbkdf2.c: New file.
24367 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24368 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24369 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24370 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24371 -I$(srcdir)/lib/libgcrypt_wrap.
24372 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24373 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24374 password_pbkdf2.mod.
24375 (crypto_mod_SOURCES): New variable.
24376 (crypto_mod_CFLAGS): Likewise.
24377 (crypto_mod_LDFLAGS): Likewise.
24378 (hashsum_mod_SOURCES): New variable.
24379 (hashsum_mod_CFLAGS): Likewise.
24380 (hashsum_mod_LDFLAGS): Likewise.
24381 (pbkdf2_mod_SOURCES): New variable.
24382 (pbkdf2_mod_CFLAGS): Likewise.
24383 (pbkdf2_mod_LDFLAGS): Likewise.
24384 (password_pbkdf2_mod_SOURCES): New variable.
24385 (password_pbkdf2_mod_CFLAGS): Likewise.
24386 (password_pbkdf2_mod_LDFLAGS): Likewise.
24387 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24388 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24389 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24390 Include conf/gcry.rmk.
24391 * include/grub/auth.h: Rewritten.
24392 * include/grub/crypto.h: New file.
24393 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24394 * include/grub/normal.h (read_crypto_list): New prototype.
24395 * lib/crypto.c: New file.
24396 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24397 * lib/pbkdf2.c: Likewise.
24398 * normal/auth.c (grub_auth_strcmp): Removed.
24399 (grub_iswordseparator): Likewise.
24400 (grub_auth_strword): Likewise.
24401 (is_authenticated): Use grub_strword.
24402 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24403 and grub_strword. Pass entered password to authentication callback.
24404 * normal/crypto.c: New file.
24405 * normal/main.c: Call read_crypto_list.
24406 * util/grub-mkpasswd-pbkdf2.c: New file.
24407 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24408
24409 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24410
24411 Fix descent and ascent calculation.
24412
24413 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24414 (options): New option "asce".
24415 (usage): Likewise.
24416 (add_char): Ignore invalid glyphs for descent calculation.
24417 Calculate ascent from actual content.
24418 (print_glyphs): Use 'asce'.
24419 (write_font): Likewise. Allow ascent override.
24420 (main): Handle "asce" option.
24421
24422 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24423
24424 * kern/err.c: Include `<grub/i18n.h>'.
24425 (grub_print_error): Add full stop. Gettextizze.
24426 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24427 (grub_bsd_load_elf): Capitalise ELF.
24428 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24429 (grub_cmd_freebsd_module): Likewise.
24430 (grub_cmd_freebsd_module_elf): Likewise.
24431 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24432
24433 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24434
24435 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24436 * commands/search_file.c (HELP_MESSAGE): New macro.
24437 * commands/search_label.c (HELP_MESSAGE): Likewise.
24438 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24439 * po/POTFILES: Add `commands/search_file.c',
24440 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24441 `commands/search.c'.
24442
24443 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24444
24445 * config.rpath: Update from Gnulib.
24446
24447 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24448
24449 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24450
24451 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24452
24453 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24454
24455 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24456
24457 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24458 arguments to fread so that we get a return value in bytes, rather
24459 than something that will normally be rounded down to 0.
24460 Adjust error handling to avoid producing garbage when size_t is not
24461 the same size as long long.
24462
24463 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24464
24465 * util/mkisofs/write.c (padblock_write): Check return value of
24466 fread.
24467
24468 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24469
24470 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24471 floppy images now.
24472
24473 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24474
24475 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24476
24477 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24478 instead of manual alignment.
24479 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24480 verbose). Avoid attempts to read past end of the device
24481 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24482 but GRUB_DISK_CACHE_SIZE may exceed that).
24483
24484 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24485
24486 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24487 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24488 it to upper layer.
24489
24490 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24491
24492 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24493 New constant.
24494 (grub_efi_piwg_device_path): New structure
24495 (grub_efi_piwg_device_path_t): New type.
24496 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24497 (devpath_1): Transform to a structure. All users updated.
24498 (devpath_2): Likewise.
24499 (devpath_3): Likewise.
24500 (devpath_4): Likewise.
24501 (devpath_5): Likewise.
24502
24503 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24504
24505 * loader/efi/appleloader.c: Restored. Update all users.
24506
24507 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24508
24509 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24510
24511 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24512 (struct boot_blocklist): Move from here ...
24513 * include/grub/i386/pc/boot.h [ASM_FILE]
24514 (struct grub_boot_blocklist): ... to here. Update all users.
24515 (setup): Only initialize `start' member of `first_block'
24516 structure. Add assert() calls to verify the other members.
24517
24518 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24519 (generate_image): Fix broken blocklist length initialization.
24520 Add assert() call to verify blocklist `segment' field.
24521
24522 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24523
24524 * loader/efi/appleloader.c: Remove. Update all users.
24525
24526 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24527
24528 * boot/i386/pc/boot.S: Update copyright year.
24529 * boot/i386/pc/cdboot.S: Likewise.
24530 * boot/i386/pc/diskboot.S: Likewise.
24531 * boot/i386/pc/lnxboot.S: Likewise.
24532 * boot/i386/pc/pxeboot.S: Likewise.
24533 * bus/pci.c: Likewise.
24534 * commands/cmp.c: Likewise.
24535 * commands/help.c: Likewise.
24536 * commands/hexdump.c: Likewise.
24537 * commands/i386/pc/halt.c: Likewise.
24538 * commands/i386/pc/play.c: Likewise.
24539 * commands/i386/pc/vbeinfo.c: Likewise.
24540 * commands/ls.c: Likewise.
24541 * commands/test.c: Likewise.
24542 * disk/dmraid_nvidia.c: Likewise.
24543 * disk/i386/pc/biosdisk.c: Likewise.
24544 * disk/ieee1275/nand.c: Likewise.
24545 * disk/ieee1275/ofdisk.c: Likewise.
24546 * disk/lvm.c: Likewise.
24547 * disk/raid.c: Likewise.
24548 * disk/raid6_recover.c: Likewise.
24549 * disk/scsi.c: Likewise.
24550 * fs/affs.c: Likewise.
24551 * fs/cpio.c: Likewise.
24552 * fs/ext2.c: Likewise.
24553 * fs/hfs.c: Likewise.
24554 * fs/iso9660.c: Likewise.
24555 * fs/ntfs.c: Likewise.
24556 * fs/sfs.c: Likewise.
24557 * fs/udf.c: Likewise.
24558 * fs/ufs.c: Likewise.
24559 * fs/xfs.c: Likewise.
24560 * gencmdlist.sh: Likewise.
24561 * genmk.rb: Likewise.
24562 * include/grub/disk.h: Likewise.
24563 * include/grub/efi/api.h: Likewise.
24564 * include/grub/efi/efi.h: Likewise.
24565 * include/grub/efi/pe32.h: Likewise.
24566 * include/grub/elf.h: Likewise.
24567 * include/grub/fs.h: Likewise.
24568 * include/grub/i386/at_keyboard.h: Likewise.
24569 * include/grub/i386/pc/memory.h: Likewise.
24570 * include/grub/i386/pc/vbe.h: Likewise.
24571 * include/grub/i386/pci.h: Likewise.
24572 * include/grub/i386/tsc.h: Likewise.
24573 * include/grub/ieee1275/ieee1275.h: Likewise.
24574 * include/grub/ntfs.h: Likewise.
24575 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24576 * include/grub/sparc64/libgcc.h: Likewise.
24577 * include/grub/symbol.h: Likewise.
24578 * include/grub/types.h: Likewise.
24579 * include/multiboot2.h: Likewise.
24580 * io/gzio.c: Likewise.
24581 * kern/device.c: Likewise.
24582 * kern/disk.c: Likewise.
24583 * kern/efi/efi.c: Likewise.
24584 * kern/efi/mm.c: Likewise.
24585 * kern/elf.c: Likewise.
24586 * kern/file.c: Likewise.
24587 * kern/i386/dl.c: Likewise.
24588 * kern/i386/pc/init.c: Likewise.
24589 * kern/i386/pc/startup.S: Likewise.
24590 * kern/ieee1275/ieee1275.c: Likewise.
24591 * kern/ieee1275/init.c: Likewise.
24592 * kern/main.c: Likewise.
24593 * kern/mm.c: Likewise.
24594 * kern/powerpc/dl.c: Likewise.
24595 * kern/sparc64/dl.c: Likewise.
24596 * kern/x86_64/dl.c: Likewise.
24597 * lib/hexdump.c: Likewise.
24598 * loader/efi/appleloader.c: Likewise.
24599 * loader/i386/ieee1275/linux.c: Likewise.
24600 * loader/i386/pc/chainloader.c: Likewise.
24601 * loader/i386/pc/linux.c: Likewise.
24602 * loader/i386/pc/multiboot2.c: Likewise.
24603 * loader/ieee1275/multiboot2.c: Likewise.
24604 * loader/multiboot2.c: Likewise.
24605 * loader/multiboot_loader.c: Likewise.
24606 * loader/powerpc/ieee1275/linux.c: Likewise.
24607 * normal/completion.c: Likewise.
24608 * normal/menu_entry.c: Likewise.
24609 * partmap/apple.c: Likewise.
24610 * util/grub.d/10_hurd.in: Likewise.
24611 * util/hostfs.c: Likewise.
24612 * video/readers/png.c: Likewise.
24613
24614 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24615
24616 * include/grub/misc.h (GNUC_PREREQ): New macro.
24617 (ATTRIBUTE_ERROR): New macro.
24618 * include/grub/list.h (grub_bad_type_cast_real): Use
24619 ATTRIBUTE_ERROR.
24620
24621 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24622
24623 * normal/menu_text.c (print_message): Change messages.
24624
24625 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24626
24627 * normal/menu_entry.c (store_completion): Gettextizze.
24628
24629 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24630
24631 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
24632
24633 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24634
24635 * po/POTFILES: Sort correctly.
24636
24637 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24638
24639 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
24640 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
24641 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
24642 full stop.
24643 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
24644 summary. Gettextizze the strings.
24645 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
24646 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
24647 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
24648 full stop.
24649 (GRUB_MOD_INIT): Remove command name from summary.
24650 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
24651 summary.
24652 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
24653 * term/i386/pc/serial.c (options): Add full stops.
24654 (GRUB_MOD_INIT): Remove command name from the summary.
24655
24656 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24657
24658 * commands/acpi.c: Gettextizze help strings and/or options. Include
24659 `grub/i18n.h' if needed.
24660 * commands/blocklist.c: Likewise.
24661 * commands/boot.c: Likewise.
24662 * commands/cat.c: Likewise.
24663 * commands/cmp.c: Likewise.
24664 * commands/configfile.c: Likewise.
24665 * commands/crc.c: Likewise.
24666 * commands/date.c: Likewise.
24667 * commands/echo.c: Likewise.
24668 * commands/efi/fixvideo.c: Likewise.
24669 * commands/efi/loadbios.c: Likewise.
24670 * commands/gptsync.c: Likewise.
24671 * commands/halt.c: Likewise.
24672 * commands/handler.c: Likewise.
24673 * commands/hdparm.c: Likewise.
24674 * commands/hexdump.c: Likewise.
24675 * commands/i386/cpuid.c: Likewise.
24676 * commands/i386/pc/drivemap.c: Likewise.
24677 * commands/i386/pc/halt.c: Likewise.
24678 * commands/i386/pc/pxecmd.c: Likewise.
24679 * commands/i386/pc/vbeinfo.c: Likewise.
24680 * commands/i386/pc/vbetest.c: Likewise.
24681 * commands/ieee1275/suspend.c: Likewise.
24682 * commands/keystatus.c: Likewise.
24683 * commands/loadenv.c: Likewise.
24684 * commands/ls.c: Likewise.
24685 * commands/lsmmap.c: Likewise.
24686 * commands/lspci.c: Likewise.
24687 * commands/memrw.c: Likewise.
24688 * commands/minicmd.c: Likewise.
24689 * commands/parttool.c: Likewise.
24690 * commands/password.c: Likewise.
24691 * commands/probe.c: Likewise.
24692 * commands/read.c: Likewise.
24693 * commands/reboot.c: Likewise.
24694 * commands/search.c: Likewise.
24695 * commands/sleep.c: Likewise.
24696 * commands/test.c: Likewise.
24697 * commands/true.c: Likewise.
24698 * commands/usbtest.c: Likewise.
24699 * commands/videotest.c: Likewise.
24700 * commands/xnu_uuid.c: Likewise.
24701 * disk/loopback.c: Likewise.
24702 * hello/hello.c: Likewise.
24703 * loader/i386/bsd.c: Likewise.
24704 * term/i386/pc/serial.c: Likewise.
24705 * po/POTFILES: Add new files.
24706
24707 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
24708
24709 * term/i386/pc/at_keyboard.c
24710 (keyboard_controller_wait_untill_ready): Rename to ...
24711 (keyboard_controller_wait_until_ready): ... this. Update all users.
24712
24713 2010-01-01 Carles Pina i Estany <carles@pina.cat>
24714
24715 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
24716 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
24717 string using string width.
24718 * normal/menu_text.c (grub_print_message_indented): Use
24719 grub_print_spaces and not print_spaces.
24720 (print_timeout): Likewise.
24721 (print_spaces): Move to...
24722 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
24723
24724 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
24725
24726 Import from Gnulib.
24727
24728 * gnulib/getdelim.c: New file.
24729 * gnulib/getline.c: Likewise.
24730
24731 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
24732
24733 * include/grub/list.h (grub_assert_fail): Removed.
24734 (grub_bad_type_cast_real): New function.
24735 (grub_bad_type_cast): New macro.
24736 (GRUB_AS_LIST): Use grub_bad_type_cast.
24737 (GRUB_AS_LIST_P): Likewise.
24738 (GRUB_AS_NAMED_LIST): Likewise.
24739 (GRUB_AS_NAMED_LIST_P): Likewise.
24740 (GRUB_AS_PRIO_LIST): Likewise.
24741 (GRUB_AS_PRIO_LIST_P): Likewise.
24742 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
24743
24744 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
24745
24746 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
24747 Fix syntax error.
24748
24749 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
24750
24751 * configure.ac: Check for TARGET_CFLAGS initialization before we
24752 initialize it ourselves (sigh).
24753 Move a few modifications to TARGET_CFLAGS to be unconditional
24754 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
24755 eh_frame)
24756
24757 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
24758 * term/i386/pc/at_keyboard.c
24759 (keyboard_controller_wait_untill_ready): Likewise.
24760 (keyboard_controller_led): Rename `led_status' paramter to avoid
24761 name conflict.
24762
24763 2009-12-28 Carles Pina i Estany <carles@pina.cat>
24764
24765 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
24766 quotes.
24767
24768 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24769
24770 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
24771
24772 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24773
24774 * normal/menu_text.c (grub_print_message_indented): Prevent
24775 past-the-end-of-array dereference.
24776
24777 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24778
24779 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
24780 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
24781
24782 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24783
24784 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
24785 * normal/main.c (grub_normal_read_line): Remove a space from the
24786 default prompt.
24787
24788 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24789
24790 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
24791 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24792 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24793 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24794 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24795 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24796 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24797
24798 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24799
24800 * video/readers/jpeg.c (cmd): Declare.
24801 (grub_cmd_jpegtest): Use `grub_command_t' type.
24802 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24803 Assign to `cmd'.
24804 (GRUB_MOD_FINI): Use `cmd' to unregister.
24805 * video/readers/png.c (cmd): Declare.
24806 (grub_cmd_pngtest): Use `grub_command_t' type.
24807 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24808 Assign to `cmd'.
24809 (GRUB_MOD_FINI): Use `cmd' to unregister.
24810 * video/readers/tga.c (cmd): Declare.
24811 (grub_cmd_tgatest): Use `grub_command_t' type.
24812 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24813 Assign to `cmd'.
24814 (GRUB_MOD_FINI): Use `cmd' to unregister.
24815
24816 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24817
24818 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
24819 stops.
24820 * kern/corecmd.c (grub_register_core_commands): Likewise.
24821 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
24822 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24823 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
24824 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24825 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24826 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
24827 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24828 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
24829 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24830 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24831 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24832 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24833 * normal/handler.c (insert_handler): Likewise.
24834 * normal/main.c (GRUB_MOD_INIT): Likewise.
24835 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24836
24837 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24838
24839 * commands/help.c (grub_cmd_help): Print the command name before the
24840 summary.
24841 (GRUB_MOD_INIT): Remove command name from the summary.
24842 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
24843 string as summary.
24844 * lib/arg.c (find_long): Print the command name before the summary.
24845 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
24846 summary.
24847 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
24848 * commands/cat.c (GRUB_MOD_INIT): Likewise.
24849 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
24850 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24851 * commands/crc.c (GRUB_MOD_INIT): Likewise.
24852 * commands/date.c (GRUB_MOD_INIT): Likewise.
24853 * commands/echo.c (GRUB_MOD_INIT): Likewise.
24854 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
24855 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24856 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24857 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
24858 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
24859 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
24860 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
24861 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24862 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
24863 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
24864 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
24865 * commands/ls.c (GRUB_MOD_INIT): Likewise.
24866 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24867 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24868 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24869 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
24870 * commands/password.c (GRUB_MOD_INIT): Likewise.
24871 * commands/probe.c (GRUB_MOD_INIT): Likewise.
24872 * commands/read.c (GRUB_MOD_INIT): Likewise.
24873 * commands/search.c (GRUB_MOD_INIT): Likewise.
24874 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
24875 * commands/test.c (GRUB_MOD_INIT): Likewise.
24876 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
24877 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24878 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24879 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
24880 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24881 * lib/arg.c (GRUB_MOD_INIT): Likewise.
24882 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
24883 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24884 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24885 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24886 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24887 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
24888 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
24889 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
24890
24891 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24892
24893 Use search command for preliminar UUID search.
24894
24895 * commands/search.c: Split into ...
24896 * commands/search_wrap.c: ...this
24897 * commands/search.c: ...and this.
24898 * commands/search_file.c: New file.
24899 * commands/search_label.c: New file.
24900 * commands/search_uuid.c: New file.
24901 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
24902 Add commands/search_wrap.c, commands/search_file.c,
24903 commands/search_label.c and commands/search_uuid.c.
24904 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
24905 (search_mod_SOURCES): Set to commands/search_wrap.c.
24906 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
24907 search_label.mod.
24908 (search_fs_file_mod_SOURCES): New variable.
24909 (search_fs_file_mod_CFLAGS): Likewise.
24910 (search_fs_file_mod_LDFLAGS): Likewise.
24911 (search_label_mod_SOURCES): Likewise.
24912 (search_label_mod_CFLAGS): Likewise.
24913 (search_label_mod_LDFLAGS): Likewise.
24914 (search_fs_uuid_mod_SOURCES): New variable.
24915 (search_fs_uuid_mod_CFLAGS): Likewise.
24916 (search_fs_uuid_mod_LDFLAGS): Likewise.
24917 (fs_file_mod_SOURCES): Removed.
24918 (fs_file_mod_CFLAGS): Likewise.
24919 (fs_file_mod_LDFLAGS): Likewise.
24920 (fs_uuid_mod_SOURCES): Removed.
24921 (fs_uuid_mod_CFLAGS): Likewise.
24922 (fs_uuid_mod_LDFLAGS): Likewise.
24923 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
24924 Set to util/grub-install.in.
24925 * disk/fs_file.c: Removed.
24926 * disk/fs_uuid.c: Likewise.
24927 * include/grub/search.h: New file.
24928 * util/grub-install.in: Handle sparc64.
24929 Create and use load.cfg.
24930 * util/sparc64/ieee1275/grub-install.in: Removed.
24931
24932 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24933
24934 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
24935 Ignore return status if CF is cleared.
24936 (grub_biosdisk_get_diskinfo_standard): Likewise.
24937
24938 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24939
24940 * term/i386/pc/at_keyboard.c
24941 (keyboard_controller_wait_untill_ready): New function.
24942 (grub_keyboard_controller_write, grub_keyboard_controller_read)
24943 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
24944 for keyboard polling, rather than duplicate the same loop. This
24945 saves a few bytes in code size.
24946
24947 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24948
24949 Support for (pxe[:server[:gateway]]) syntax and
24950 use environment variable for PXE.
24951
24952 * commands/i386/pc/pxecmd.c (options): Removed.
24953 (print_ip): Removed.
24954 (grub_cmd_pxe): Removed
24955 (grub_cmd_pxe_unload): New function.
24956 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
24957 (grub_pxe_your_ip): Made static.
24958 (grub_pxe_default_server_ip): Likewise.
24959 (grub_pxe_default_gateway_ip): Likewise.
24960 (grub_pxe_blksize): Likewise.
24961 (parse_ip): New function.
24962 (grub_pxe_open): Support server and gateway specification.
24963 (grub_pxe_close): Free disk->data.
24964 (grub_pxefs_open): Use disk->data.
24965 (grub_pxefs_read): Likewise.
24966 (grub_env_write_readonly): New function.
24967 (set_mac_env): Likewise.
24968 (set_env_limn_ro): Likewise.
24969 (parse_dhcp_vendor): Likewise.
24970 (grub_pxe_detect): Set the environment variables.
24971 (set_ip_env): New function.
24972 (write_ip_env): Likewise.
24973 (grub_env_write_pxe_default_server): Likewise.
24974 (grub_env_write_pxe_default_gateway): Likewise.
24975 (grub_env_write_pxe_blocksize): Likewise.
24976 (GRUB_MOD_INIT(pxe)): Set environment variables.
24977 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
24978 (grub_pxe_mac_addr_t): ... this. All users updated.
24979 (grub_pxe_your_ip): Removed.
24980 (grub_pxe_server_ip): Likewise.
24981 (grub_pxe_gateway_ip): Likewise.
24982 (grub_pxe_blksize): Likewise.
24983
24984 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24985
24986 * commands/help.c: Include `<grub/i18n.h>'.
24987 (grub_cmd_help): Gettextizze.
24988 (GRUB_MOD_INIT): Likewise.
24989 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
24990 (GRUB_MOD_INIT): Gettextizze.
24991 * commands/search.c: Include `<grub/i18n.h>'.
24992 (options): Gettextizze.
24993 (GRUB_MOD_INIT): Gettextizze.
24994 * lib/arg.c: Include `<grub/i18n.h>'.
24995 (help_options): Gettextizze.
24996 (find_long): Likewise.
24997 (grub_arg_show_help): Likewise.
24998 * normal/dyncmd.c: Include `<grub/i18n.h>'.
24999 (read_command_list): Gettextizze.
25000 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25001 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25002
25003 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25004
25005 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25006 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25007 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25008 (led_status): New variable.
25009 (keyboard_controller_led): New function.
25010 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25011 update led status for caps lock, num lock and scroll lock.
25012
25013 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25014
25015 * util/hostdisk.c (open_device): Fix a comment.
25016
25017 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25018
25019 * util/grub-install.in (host_os): New variable.
25020 * util/i386/efi/grub-install.in (host_os): Likewise.
25021
25022 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25023
25024 * util/mkisofs/write.c (padblock_write): Abort when given an
25025 excedingly large embed image, instead of silently truncating it.
25026
25027 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25028
25029 * include/multiboot.h: Indentation fixes.
25030
25031 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25032
25033 * include/multiboot.h (struct multiboot_aout_symbol_table)
25034 (struct multiboot_elf_section_header_table): New structure
25035 declarations (stolen from GRUB Legacy).
25036 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25037 table information.
25038
25039 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25040 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25041 type aliases.
25042
25043 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25044
25045 * include/multiboot.h: Make comments src2texi-friendly.
25046
25047 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25048
25049 For consistency with [multiboot]/docs/boot.S.
25050
25051 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25052 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25053 (MULTIBOOT_MAGIC2): Rename from this ...
25054 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25055
25056 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25057
25058 * include/multiboot.h: Remove `<grub/types.h>'.
25059 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25060 types. Update all users.
25061
25062 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25063
25064 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25065 `couldn't' and `can not' by `cannot'.
25066 * commands/i386/pc/drivemap.c: Likewise.
25067 * disk/ata.c: Likewise.
25068 * disk/ieee1275/nand.c: Likewise.
25069 * fs/affs.c: Likewise.
25070 * fs/fat.c: Likewise.
25071 * fs/hfs.c: Likewise.
25072 * fs/hfsplus.c: Likewise.
25073 * fs/iso9660.c: Likewise.
25074 * fs/jfs.c: Likewise.
25075 * fs/minix.c: Likewise.
25076 * fs/reiserfs.c: Likewise.
25077 * fs/sfs.c: Likewise.
25078 * fs/udf.c: Likewise.
25079 * fs/ufs.c: Likewise.
25080 * fs/xfs.c: Likewise.
25081 * loader/powerpc/ieee1275/linux.c: Likewise.
25082 * loader/sparc64/ieee1275/linux.c: Likewise.
25083 * util/grub-probe.c: Likewise.
25084 * util/misc.c: Likewise.
25085
25086 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25087
25088 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25089 grub_errno calls.
25090 * commands/acpi.c: Likewise.
25091 * commands/blocklist.c: Likewise.
25092 * commands/efi/loadbios.c: Likewise.
25093 * commands/i386/pc/drivemap.c: Likewise.
25094 * commands/loadenv.c: Likewise.
25095 * commands/memrw.c: Likewise.
25096 * commands/password.c: Likewise.
25097 * commands/videotest.c: Likewise.
25098 * disk/ata.c: Likewise.
25099 * disk/ata_pthru.c: Likewise.
25100 * disk/dmraid_nvidia.c: Likewise.
25101 * disk/ieee1275/nand.c: Likewise.
25102 * disk/ieee1275/ofdisk.c: Likewise.
25103 * disk/loopback.c: Likewise.
25104 * disk/lvm.c: Likewise.
25105 * disk/mdraid_linux.c: Likewise.
25106 * disk/raid.c: Likewise.
25107 * disk/raid6_recover.c: Likewise.
25108 * disk/scsi.c: Likewise.
25109 * efiemu/main.c: Likewise.
25110 * efiemu/mm.c: Likewise.
25111 * efiemu/pnvram.c: Likewise.
25112 * efiemu/symbols.c: Likewise.
25113 * font/font.c: Likewise.
25114 * fs/cpio.c: Likewise.
25115 * fs/hfsplus.c: Likewise.
25116 * fs/iso9660.c: Likewise.
25117 * fs/jfs.c: Likewise.
25118 * fs/minix.c: Likewise.
25119 * fs/ntfs.c: Likewise.
25120 * fs/ntfscomp.c: Likewise.
25121 * fs/reiserfs.c: Likewise.
25122 * fs/ufs.c: Likewise.
25123 * fs/xfs.c: Likewise.
25124 * gettext/gettext.c: Likewise.
25125 * include/grub/auth.h: Likewise.
25126 * kern/elf.c: Likewise.
25127 * kern/file.c: Likewise.
25128 * kern/ieee1275/init.c: Likewise.
25129 * kern/ieee1275/mmap.c: Likewise.
25130 * kern/ieee1275/openfw.c: Likewise.
25131 * kern/powerpc/dl.c: Likewise.
25132 * kern/sparc64/dl.c: Likewise.
25133 * lib/arg.c: Likewise.
25134 * loader/i386/bsd.c: Likewise.
25135 * loader/i386/bsdXX.c: Likewise.
25136 * loader/i386/efi/linux.c: Likewise.
25137 * loader/i386/efi/xnu.c: Likewise.
25138 * loader/i386/ieee1275/linux.c: Likewise.
25139 * loader/i386/linux.c: Likewise.
25140 * loader/i386/multiboot.c: Likewise.
25141 * loader/i386/pc/linux.c: Likewise.
25142 * loader/i386/pc/multiboot2.c: Likewise.
25143 * loader/i386/xnu.c: Likewise.
25144 * loader/ieee1275/multiboot2.c: Likewise.
25145 * loader/macho.c: Likewise.
25146 * loader/machoXX.c: Likewise.
25147 * loader/multiboot2.c: Likewise.
25148 * loader/multiboot_loader.c: Likewise.
25149 * loader/powerpc/ieee1275/linux.c: Likewise.
25150 * loader/sparc64/ieee1275/linux.c: Likewise.
25151 * loader/xnu.c: Likewise.
25152 * loader/xnu_resume.c: Likewise.
25153 * mmap/i386/pc/mmap.c: Likewise.
25154 * normal/menu_viewer.c: Likewise.
25155 * partmap/acorn.c: Likewise.
25156 * partmap/amiga.c: Likewise.
25157 * partmap/apple.c: Likewise.
25158 * script/lexer.c: Likewise.
25159 * term/gfxterm.c: Likewise.
25160 * term/i386/pc/serial.c: Likewise.
25161 * term/i386/pc/vga.c: Likewise.
25162 * term/ieee1275/ofconsole.c: Likewise.
25163 * term/terminfo.c: Likewise.
25164 * video/bitmap.c: Likewise.
25165 * video/efi_gop.c: Likewise.
25166 * video/efi_uga.c: Likewise.
25167 * video/fb/video_fb.c: Likewise.
25168 * video/i386/pc/vbe.c: Likewise.
25169 * video/readers/tga.c: Likewise.
25170 * video/video.c: Likewise.
25171
25172 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25173
25174 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25175 * commands/lspci.c: Likewise.
25176 * commands/probe.c: Likewise.
25177 * commands/xnu_uuid.c: Likewise.
25178 * conf/i386-coreboot.rmk: Likewise.
25179 * conf/i386-efi.rmk: Likewise.
25180 * conf/i386-ieee1275.rmk: Likewise.
25181 * conf/i386-pc.rmk: Likewise.
25182 * conf/powerpc-ieee1275.rmk: Likewise.
25183 * conf/sparc64-ieee1275.rmk: Likewise.
25184 * conf/x86_64-efi.rmk: Likewise.
25185 * fs/i386/pc/pxe.c: Likewise.
25186 * gettext/gettext.c: Likewise.
25187 * include/grub/efi/graphics_output.h: Likewise.
25188 * include/grub/i386/pc/memory.h: Likewise.
25189 * kern/env.c: Likewise.
25190 * kern/i386/qemu/startup.S: Likewise.
25191 * lib/i386/pc/biosnum.c: Likewise.
25192 * lib/i386/relocator.c: Likewise.
25193 * lib/i386/relocator_asm.S: Likewise.
25194 * lib/relocator.c: Likewise.
25195 * loader/i386/bsd.c: Likewise.
25196 * loader/i386/multiboot.c: Likewise.
25197 * loader/i386/pc/chainloader.c: Likewise.
25198 * loader/i386/xnu.c: Likewise.
25199 * loader/xnu.c: Likewise.
25200 * normal/main.c: Likewise.
25201 * normal/menu_text.c: Likewise.
25202 * util/getroot.c: Likewise.
25203 * util/grub-mkconfig_lib.in: Likewise.
25204 * util/grub.d/00_header.in: Likewise.
25205 * util/i386/pc/grub-mkimage.c: Likewise.
25206 * util/mkisofs/eltorito.c: Likewise.
25207 * util/mkisofs/exclude.h: Likewise.
25208 * util/mkisofs/hash.c: Likewise.
25209 * util/mkisofs/iso9660.h: Likewise.
25210 * util/mkisofs/joliet.c: Likewise.
25211 * util/mkisofs/mkisofs.c: Likewise.
25212 * util/mkisofs/mkisofs.h: Likewise.
25213 * util/mkisofs/multi.c: Likewise.
25214 * util/mkisofs/name.c: Likewise.
25215 * util/mkisofs/rock.c: Likewise.
25216 * util/mkisofs/tree.c: Likewise.
25217 * util/mkisofs/write.c: Likewise.
25218 * video/efi_gop.c: Likewise.
25219
25220 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25221
25222 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25223 size counting.
25224
25225 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25226
25227 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25228 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25229
25230 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25231
25232 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25233 (GRUB_MOD_INIT(memrw)): Update help line.
25234
25235 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25236
25237 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25238 Use grub_extcmd_t. All users updated.
25239 (options): New variable.
25240 (grub_cmd_read): Restructure for readability. Support "-v" option.
25241 (grub_cmd_write): Restructure for readability.
25242
25243 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25244
25245 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25246
25247 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25248
25249 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25250 with the actual contents of the correspondending make variable.
25251 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25252 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25253 specifying `*.lst' and `efiemu??.o'
25254
25255 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25256
25257 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25258 after function name.
25259 Noticed by Rene Engelhard <rene@debian.org>.
25260
25261 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25262
25263 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25264 (options): New variable.
25265 (iospace): Likewise.
25266 (grub_lspci_iter): List IO spaces if "-i" was given.
25267 (grub_cmd_lspci): Parse options.
25268 (GRUB_MOD_INIT(lspci)): Use extcmd.
25269 (GRUB_MOD_FINI(lspci)): Likewise.
25270
25271 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25272
25273 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25274 `function' keyword.
25275 Patch by Tony Mancill <tmancill@debian.org>.
25276
25277 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25278
25279 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25280 (grub_uhci_portstatus): Likewise.
25281 (grub_uhci_portstatus): Add necessary delay.
25282 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25283
25284 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25285
25286 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25287 (GRUB_MOD_INIT): Likewise.
25288 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25289 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25290 * commands/echo.c (options): Fix capitalizations and/or full stops.
25291 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25292 (enable_rom_area): Likewise.
25293 (GRUB_MOD_INIT): Likewise.
25294 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25295 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25296 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25297 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25298 * commands/hexdump.c (options): Likewise.
25299 * commands/i386/cpuid.c (options): Likewise.
25300 (GRUB_MOD_INIT): Likewise.
25301 * commands/i386/pc/drivemap.c (options): Likewise.
25302 (GRUB_MOD_INIT): Likewise.
25303 * commands/i386/pc/halt (options): Likewise.
25304 (GRUB_MOD_INIT): Likewise.
25305 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25306 * commands/i386/pc/pxecmd.c (options): Likewise.
25307 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25308 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25309 * commands/keystatus.c (options): Likewise.
25310 (GRUB_MOD_INIT): Likewise.
25311 * commands/loadenv.c (options): Likewise.
25312 * commands/ls.c (options): Likewise.
25313 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25314 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25315 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25316 * commands/parttool.c (helpmsg): Likewise.
25317 * commands/probe.c (options): Likewise.
25318 * commands/read.c (GRUB_MOD_INIT): Likewise.
25319 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25320 * commands/search.c (options): Likewise.
25321 * commands/sleep.c (options): Likewise.
25322 * commands/test.c (GRUB_MOD_INIT): Likewise.
25323 * commands/true.c (GRUB_MOD_INIT): Likewise.
25324 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25325 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25326 * lib/arg.c (help_options): Likewise.
25327 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25328 `$(XGETTEXT)'.
25329 * po/POTFILES: Add `commands/loadenv.c'.
25330
25331 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25332
25333 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25334 instead of specifying them explicit.
25335
25336 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25337
25338 * NEWS: Add grub-probe support for GNU/Hurd.
25339
25340 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25341
25342 * NEWS: gettext was added after 1.97.
25343
25344 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25345
25346 * util/mkisofs/msdos_partition.h: New file (based on
25347 include/grub/msdos_partition.h).
25348 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25349 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25350 (ld_options, main): Recognize --protective-msdos-label.
25351 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25352 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25353 (padblock_write): If `use_protective_msdos_label' is set, patch a
25354 protective DOS-style label in the output image.
25355
25356 * util/grub-mkrescue.in: Use --protective-msdos-label.
25357
25358 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25359
25360 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25361 boot.
25362
25363 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25364
25365 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25366 variables.
25367 (ld_options, main): Recognize `--embedded-boot'.
25368 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25369 declarations.
25370 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25371 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25372 (padblock_write): Likewise. Rewrite to support embedded boot image.
25373
25374 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25375 for BIOS-based disk boot instead of only ElTorito.
25376
25377 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25378
25379 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25380 build (not needed for bootstrap).
25381
25382 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25383
25384 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25385 from i386-pc build (not needed for bootstrap).
25386 Rewrite a pair of strings.
25387
25388 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25389
25390 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25391
25392 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25393
25394 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25395
25396 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25397
25398 * kern/env.c (grub_env_context_open): Mark exported variable for
25399 reexport.
25400
25401 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25402
25403 * kern/env.c (grub_env_export): Create nonexistent variables before
25404 exporting.
25405
25406 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25407
25408 * include/grub/auth.h: Include `<grub/i18n.h>'.
25409 (GRUB_GET_PASSWORD): Gettextizze string.
25410 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25411 menu_text.c.
25412 (grub_utf8_to_ucs4_alloc): Fix indentation.
25413 (grub_print_ucs4): Likewise.
25414 (grub_getstringwidth): Likewise.
25415 (print_message_indented): New declaration.
25416 * normal/auth.c: Include `<grub/i18n.h>'.
25417 (grub_auth_check_authentication): Gettexttize string.
25418 * normal/cmdline.c: Include `<grub/i18n.h>'.
25419 (grub_cmdline_get): Gettextizze.
25420 * normal/color.c: Include `<grub/i18n.h>'.
25421 (grub_parse_color_name_pair): Gettexttize strings.
25422 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25423 string (use `print_message_indented').
25424 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25425 `include/grub/normal.h'.
25426 (print_message_indented): Renamed to ...
25427 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25428 used in normal/main.c).
25429 (print_message): Use `grub_print_message_indented' instead of
25430 `print_message_indented'.
25431 (print_timeout): Likewise.
25432 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25433 (grub_normal_print_device_info): Gettexttize strings.
25434 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25435
25436 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25437
25438 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25439 of arguments. Return number of tokens and not arguments. All users
25440 updated.
25441
25442 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25443
25444 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25445 non-MSDOS paritions.
25446
25447 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25448
25449 * include/grub/types.h (UNUSED): Removed since it conflicts with
25450 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25451 Reported by Grégoire Sutre.
25452
25453 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25454
25455 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25456 (grub_print_ucs4_alloc): Likewise.
25457 (grub_getstringwidth): Likewise.
25458 * normal/main.c (grub_normal_init_page): Gettextize version string.
25459 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25460 (getstringwidth): Renamed to ...
25461 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25462 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25463 (grub_print_ucs4): Remove `static' qualifer (now used in
25464 normal/main.c).
25465 * po/POTFILES: Add normal/main.c.
25466
25467 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25468
25469 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25470 (print_message_indented): Add `margin_left' and `margin_right'
25471 parameters.
25472 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25473 strings.
25474 (print_timeout): Use `print_message_indented' to print the message.
25475 Deletes `second_stage' parameter.
25476 (run_menu): Update `print_timeout' calls.
25477
25478 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25479
25480 Fix console palette on OpenFirmware.
25481
25482 * term/ieee1275/ofconsole.c (MAX): Removed.
25483 (colors): Redone based on VGA palette.
25484 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25485 colors are supported.
25486 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25487
25488 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25489
25490 Fix potential EfiEmu double prepare.
25491
25492 * efiemu/main.c (prepared): New variable
25493 (grub_efiemu_unload): Set prepare to '0'.
25494 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25495
25496 set_virtual_address_map support.
25497
25498 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25499 prototype.
25500 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25501 prototype.
25502 (grub_efiemu_crc32): Likewise.
25503 (grub_efiemu_crc64): Likewise.
25504 (grub_efiemu_set_virtual_address_map): Likewise.
25505 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25506 New definition.
25507 (grub_autoefi_set_virtual_address_map): Likewise.
25508 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25509 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25510 Restructure flow to accomodate it.
25511 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25512 (grub_efiemu_crc): Recompute CRC32.
25513 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25514 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25515 * efiemu/symbols.c (relocated_handle): New variable.
25516 (grub_efiemu_free_syms): Free relocated_handle.
25517 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25518 (grub_efiemu_write_sym_markers): New function.
25519 (grub_efiemu_set_virtual_address_map): Likewise.
25520
25521 Newer XNU parameters.
25522
25523 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25524 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25525 (grub_xnu_fill_devicetree): New prototype.
25526 (grub_xnu_heap_real_start): New variable.
25527 * loader/xnu.c (get_name_ptr): New function.
25528 (grub_xnu_load_driver): Fill namelen and name.
25529
25530 64-bit xnu support.
25531
25532 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25533 and 'loader/macho64.c'.
25534 * conf/i386-pc.rmk: Likewise.
25535 * conf/x86_64-efi.rmk: Likewise.
25536 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25537 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25538 * include/grub/macho.h (grub_macho_segment64): New structure.
25539 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25540 (grub_macho_size32): ... to this.
25541 (grub_macho32_get_entry_point): Renamed from ...
25542 (grub_macho_get_entry_point32): ... to this.
25543 (grub_macho_contains_macho64): New prototype.
25544 (grub_macho_size64): Likewise.
25545 (grub_macho_get_entry_point64): Likewise.
25546 (grub_macho32_load): Renamed from ...
25547 (grub_macho_load32): ... to this.
25548 (grub_macho32_filesize): Renamed from ...
25549 (grub_macho_filesize32): ... to this.
25550 (grub_macho32_readfile): Renamed from ...
25551 (grub_macho_readfile32): ... to this.
25552 (grub_macho_filesize64): New prototype.
25553 (grub_macho_readfile64): Likewise.
25554 (grub_macho_parse32): Likewise.
25555 (grub_macho_parse64): Likewise.
25556 * loader/macho.c: Split into ...
25557 * loader/machoXX.c: ... and this. Replace 32 with XX.
25558 * loader/macho32.c: New file.
25559 * loader/macho64.c: Likewise.
25560 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25561 (grub_cmd_xnu_kernel): Make 32-bit only.
25562 (grub_cmd_xnu_kernel64): New function.
25563 (grub_xnu_load_driver): Support Mach-O 64.
25564 (grub_cmd_xnu_mkext): Likewise.
25565 * util/grub.d/30_os-prober.in (osx_entry): New function.
25566 Generate entries for 64-bit boot too.
25567
25568 Eliminate ad-hoc tree format in XNU and EfiEmu.
25569
25570 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25571 * efiemu/pnvram.c: Rewritten to use environment variables.
25572 All users updated.
25573
25574 Inline utf16_to_utf8.
25575
25576 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25577 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25578 All users updated.
25579 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25580
25581 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25582 * commands/usbtest.c (grub_usb_get_string): ... move here.
25583 (usb_print_str): Fix error handling.
25584 * include/grub/usb.h (grub_usb_get_string): Remove.
25585
25586 UTF-8 to UTF-16 transformation.
25587
25588 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25589 (charset_mod_SOURCES): New variable.
25590 (charset_mod_CFLAGS): Likewise.
25591 (charset_mod_LDFLAGS): Likewise.
25592 * include/grub/utf.h: New file.
25593 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25594
25595 Support for device properties.
25596
25597 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25598 (grub_xnu_devprop_device_header): Likewise.
25599 (grub_xnu_devprop_device_descriptor): Likewise.
25600 (grub_xnu_devprop_add_device): New prototype.
25601 (grub_xnu_devprop_remove_device): Likewise.
25602 (grub_xnu_devprop_remove_property): Likewise.
25603 (grub_xnu_devprop_add_property_utf8): Likewise.
25604 (grub_xnu_devprop_add_property_utf16): Likewise.
25605 (grub_cpu_xnu_init): Likewise.
25606 (grub_cpu_xnu_fini): Likewise.
25607 (grub_cpu_xnu_unload): Likewise.
25608 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25609 (property_descriptor): Likewise.
25610 (devices): New variable.
25611 (grub_xnu_devprop_remove_property): New function.
25612 (grub_xnu_devprop_add_device): Likewise.
25613 (grub_xnu_devprop_remove_device): Likewise.
25614 (grub_xnu_devprop_add_property): Likewise.
25615 (grub_xnu_devprop_add_property_utf8): Likewise.
25616 (grub_xnu_devprop_add_property_utf16): Likewise.
25617 (hextoval): Likewise.
25618 (grub_cpu_xnu_fill_devprop): Likewise.
25619 (grub_cmd_devprop_load): Likewise.
25620 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25621 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25622 (cmd_devprop_load): New variable.
25623 (grub_cpu_xnu_init): New function.
25624 (grub_cpu_xnu_fini): Likewise.
25625 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
25626 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
25627 (grub_cmd_xnu_devtree): Likewise.
25628 (hextoval): New function.
25629 (unescape): Likewise.
25630 (grub_xnu_fill_devicetree): Likewise.
25631
25632 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
25633 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
25634
25635 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25636
25637 Workaround for broken ATI VBE.
25638
25639 * video/i386/pc/vbe.c (last_set_mode): New variable.
25640 (grub_vbe_set_video_mode): Set 'last_set_mode'.
25641 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
25642 (grub_video_vbe_setup): Don't check for reserved flag.
25643
25644 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
25645
25646 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
25647 the `find' command.
25648
25649 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
25650
25651 UUID support for HFS.
25652
25653 * fs/hfs.c (grub_hfs_uuid): New function.
25654 (grub_hfs_fs): New value .uuid.
25655 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
25656
25657 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
25658
25659 Fix a segfault with parsing unknown long options.
25660
25661 * util/grub-mkrelpath.c (options): Zero terminate it.
25662
25663 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25664
25665 * include/grub/misc.h (grub_puts): New declaration.
25666 (grub_puts_): Likewise.
25667 * kern/misc.c (grub_puts): New definition.
25668 (grub_puts_): Likewise.
25669
25670 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25671
25672 * util/grub-probe.c (probe): Improve error message.
25673
25674 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25675
25676 * loader/i386/multiboot_elfxx.c
25677 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
25678 initialization.
25679
25680 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25681
25682 Relocator framework
25683
25684 * loader/i386/xnu_helper.S: Removed. All users updated.
25685 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
25686 (relocator_mod_SOURCES): New variable.
25687 (relocator_mod_CFLAGS): Likewise.
25688 (relocator_mod_LDFLAGS): Likewise.
25689 (relocator_mod_ASFLAGS): Likewise.
25690 * conf/x86_64.rmk: Likewise.
25691 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
25692 (grub_multiboot_payload_entry_offset): Likewise.
25693 (grub_multiboot_forward_relocator): Likewise.
25694 (grub_multiboot_forward_relocator_end): Likewise.
25695 (grub_multiboot_backward_relocator): Likewise.
25696 (grub_multiboot_backward_relocator_end): Likewise.
25697 (grub_multiboot_payload_eip): New variable.
25698 (grub_multiboot_payload_orig): Likewise.
25699 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
25700 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
25701 * include/grub/i386/memory.h
25702 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
25703 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
25704 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
25705 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
25706 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
25707 * include/grub/i386/relocator.h: New file.
25708 * include/grub/x86_64/relocator.h: Likewise.
25709 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
25710 (XNU_RELOCATOR): New macro.
25711 (grub_xnu_launcher_start): Remove.
25712 (grub_xnu_launcher_end): Likewise.
25713 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
25714 (grub_xnu_heap_real_start): Remove.
25715 (grub_xnu_heap_start): Change to void *. All users updated.
25716 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
25717 * lib/i386/relocator.c: New file.
25718 * lib/i386/relocator_asm.S: Likewise.
25719 * lib/i386/relocator_backward.S: Likewise.
25720 * lib/mips/relocator.c: Likewise.
25721 * lib/mips/relocator_asm.S: Likewise.
25722 * lib/relocator.c: Likewise.
25723 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
25724 (entry): Removed.
25725 (playground): Likewise.
25726 (grub_multiboot_payload_orig): New variable.
25727 (grub_multiboot_payload_dest): Likewise.
25728 (grub_multiboot_payload_size): Likewise.
25729 (grub_multiboot_payload_eip): Likewise.
25730 (grub_multiboot_payload_esp): Likewise.
25731 (grub_multiboot_boot): Use grub_relocator32_boot.
25732 (grub_multiboot_unload): Free relocators.
25733 (grub_multiboot): Setup stack. Use relocators.
25734 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
25735 (grub_multiboot_load_elfXX): Use relocators.
25736 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
25737 (grub_multiboot_payload_size): Likewise.
25738 (grub_multiboot_payload_dest): Likewise.
25739 (grub_multiboot_payload_entry_offset): Likewise.
25740 (grub_multiboot_forward_relocator): Likewise.
25741 (grub_multiboot_backward_relocator): Likewise.
25742 (grub_multiboot_real_boot): Likewise.
25743 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
25744 (grub_xnu_entry_point): Likewise.
25745 (grub_xnu_arg1): Likewise.
25746 (grub_xnu_stack): Likewise.
25747 (grub_xnu_launch): Removed.
25748 (grub_xnu_boot_resume): New function.
25749 (grub_xnu_boot): Use relocators.
25750 * loader/i386/xnu_helper.S: Removed.
25751 * loader/xnu.c (grub_xnu_heap_start): New variable.
25752 (grub_xnu_heap_size): Likewise.
25753 (grub_xnu_heap_malloc): Use relocators.
25754 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
25755
25756 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25757
25758 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
25759 anything.
25760
25761 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25762
25763 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
25764 GRUB_ERR_NONE before calling grub_env_set.
25765
25766 2009-12-12 Robert Millan <rmh@aybabtu.com>
25767
25768 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
25769 * genmk.rb (video): New variable.
25770 (CLEANFILES, VIDEOFILES): Add #{video}.
25771 (#{video}): New target rule.
25772 * genvideolist.sh: New file.
25773 * Makefile.in (pkglib_DATA): Add video.lst.
25774 (video.lst): New target rule.
25775 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
25776 `video.lst'.
25777 * util/grub.d/30_os-prober.in: Replace `vbe' with
25778 ${GRUB_VIDEO_BACKEND}.
25779
25780 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
25781
25782 * THANKS: Add David Miller.
25783
25784 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
25785
25786 libpciaccess support.
25787
25788 * Makefile.in (LIBPCIACCESS): New variable.
25789 (enable_grub_emu_pci): Likewise.
25790 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
25791 util/pci.c and commands/lspci.c.
25792 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
25793 * configure.ac (grub-emu-pci): New option.
25794 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
25795 (grub_pci_device_unmap_range): Likewise.
25796 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
25797 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
25798 (grub_pci_address_t) [!GRUB_UTIL]: New type.
25799 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
25800 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
25801 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
25802 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
25803 * include/grub/pciutils.h: New file.
25804 * util/pci.c: Likewise.
25805
25806 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
25807
25808 * util/misc.c: Don't include <errno.h> twice.
25809
25810 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
25811
25812 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
25813 name in an error message.
25814 (grub_biosdisk_rw): Likewise.
25815
25816 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25817
25818 Eliminate NTFS 4Gib barrier.
25819
25820 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
25821 (read_run_data): Likewise.
25822 (grub_ntfs_read_run_list): Likewise.
25823 (grub_ntfs_read_block): Likewise.
25824 (grub_ntfs_iterate_dir): Likewise.
25825 (read_mft): Likewise.
25826 (read_data): Likewise.
25827 Use COM_LOG_LEN.
25828 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
25829 to avoid 64-bit division
25830 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
25831 (grub_ntfs_rlst): Use grub_disk_addr_t.
25832
25833 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25834
25835 Eliminate grub-fstest 4Gib barrier.
25836
25837 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
25838 (read_file): Fix error reporting.
25839
25840 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25841
25842 Eliminate hexdump 4Gib barrier.
25843
25844 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
25845 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
25846
25847 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25848
25849 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
25850 Fixes amarsh bug.
25851
25852 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
25853
25854 Remove miscellaneous files in distclean target.
25855
25856 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
25857
25858 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
25859
25860 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
25861 if they're already set. This resolves the conflict between my
25862 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
25863 fixing the --grub-probe option again.
25864 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
25865 change on 2009-10-06, so that we now once again source
25866 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
25867
25868 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
25869
25870 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
25871 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
25872 `util/devicemap.c'.
25873
25874 2009-12-08 Carles Pina i Estany <carles@pina.cat>
25875
25876 * include/grub/misc.h (grub_printf_): New declaration.
25877 * kern/misc.c (grub_printf_): New definition.
25878 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
25879 instead of `grub_printf' and `_'.
25880 * normal/menu_entry.c (store_completion): Likewise.
25881 (run): Likewise.
25882 (grub_menu_entry_run): Likewise.
25883 * normal/menu_text.c (grub_wait_after_message): Likewise.
25884 (notify_booting): Likewise.
25885 (notify_fallback): Likewise.
25886 (notify_execution_failure): Likewise.
25887
25888 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
25889
25890 * configure.ac: Check for vasprintf.
25891 * util/misc.c (asprintf): Move allocation from here ...
25892 (vasprintf): ... to here. New function.
25893 (xasprintf): New function.
25894 * include/grub/util/misc.h (vasprintf, xasprintf): Add
25895 prototypes.
25896 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25897 * util/grub-mkfont.c (write_font): Likewise.
25898 * util/grub-probe.c (probe): Likewise.
25899 * util/hostdisk.c (make_device_name): Likewise.
25900
25901 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
25902
25903 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
25904 anything even prefixed with 'cdrom' as a cdrom.
25905
25906 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
25907
25908 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
25909 mount points.
25910
25911 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25912
25913 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
25914 grub_gettext_msg_list.
25915 (grub_gettext_gettranslation_from_position): Return const char *
25916 and not char *.
25917 (grub_gettext_translate): Add the translated strings into a list,
25918 returns from the list if existing there.
25919 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
25920 (grub_gettext_delete_list): Delete the list.
25921 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
25922 lang environment variable is changed.
25923 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
25924
25925 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25926
25927 Rename kernel.mod to kernel.img.
25928
25929 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
25930 (kernel_mod_EXPORTS): Rename to ...
25931 (kernel_img_EXPORTS): ... this.
25932 (kernel_mod_SOURCES): Rename to ...
25933 (kernel_img_SOURCES): ... this.
25934 (kernel_mod_HEADERS): Rename to ...
25935 (kernel_img_HEADERS): ... this. All users updated.
25936 (kernel_mod_CFLAGS): Rename to ...
25937 (kernel_img_CFLAGS): ... this.
25938 (kernel_mod_ASFLAGS): Rename to ...
25939 (kernel_img_ASFLAGS): ... this.
25940 (kernel_mod_LDFLAGS): Rename to ...
25941 (kernel_img_LDFLAGS): ... this.
25942 * conf/x86_64-efi.rmk: Likewise.
25943 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
25944 (read_kernel_image): ... this. All users updated.
25945 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
25946
25947 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25948
25949 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
25950 (print_spaces): New function.
25951 (grub_print_ucs4): New function.
25952 (getstringwidth): New function.
25953 (print_message_indented): New function.
25954 (print_message): Gettexttize strings using print_message_indented.
25955 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
25956 width.
25957 (get_entry_number): Gettextize and uses dynamic terminal width.
25958 (notify_booting, notify_fallback, notify_execution_failure):
25959 Gettextize.
25960 * normal/menu_entry.c (store_completion): Cleanup the gettextized
25961 string.
25962 (run): Likewise.
25963 (grub_menu_entry_run): Likewise.
25964 * PO/POTFILES: Add normal/menu_entry.c.
25965
25966 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25967
25968 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
25969
25970 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25971
25972 * util/grub-install.in: Install gettext .mo files.
25973 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
25974
25975 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25976
25977 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
25978 grub_dprintf.
25979
25980 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
25981
25982 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
25983 non-firmware-dependant one in realmode.S takes precedence.
25984
25985 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
25986
25987 * commands/halt.c: Replace misc arch-specific headers with
25988 `<grub/misc.h>'.
25989 * commands/reboot.c: Likewise.
25990 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
25991 `<grub/misc.h>'.
25992 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
25993 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
25994 (kernel_img_SOURCES): ... to here.
25995
25996 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
25997 * include/grub/i386/pc/init.h: Likewise.
25998 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25999 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26000
26001 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26002
26003 * include/grub/i386/halt.h: Remove.
26004 * include/grub/i386/reboot.h: Likewise.
26005
26006 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26007
26008 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26009
26010 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26011 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26012 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26013 "progname.h"
26014 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26015 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26016 (usage): Add missing comma in printf.
26017
26018 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26019
26020 Use the same reboot approach on i386 coreboot and qemu as we do on
26021 BIOS.
26022
26023 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26024 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26025 * kern/i386/reboot.c: Remove.
26026 * include/grub/i386/reboot.h (grub_reboot): Export function.
26027 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26028 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26029 0xf000:0xfff0 instead of 0xffff:0x0000.
26030 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26031 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26032
26033 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26034
26035 Fix $srcdir != $objdir build.
26036
26037 * Makefile.in (po/%.po): Rewrite as ...
26038 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26039
26040 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26041
26042 Fix GNU/Hurd grub-install crash.
26043 * util/grub-probe.c (probe): Try to access `path' only when it is not
26044 NULL.
26045
26046 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26047
26048 Correct module naming.
26049
26050 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26051 (GRUB_MOD_INIT(efi_uga)): ... to this
26052 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26053 (GRUB_MOD_FINI(efi_uga)): ... to this
26054 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26055 (GRUB_MOD_INIT(efi_gop)): ... to this
26056 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26057 (GRUB_MOD_FINI(efi_gop)): ... to this
26058
26059 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26060
26061 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26062 translatable.
26063 (usage): Translate `arg' strings using gettext().
26064 Thanks to Jordi Mallach for the suggestion.
26065
26066 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26067
26068 GOP support. Based on patch from Bean
26069 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26070
26071 * video/efi_gop.c: New file.
26072 * include/grub/efi/graphics_output.h: Likewise.
26073 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26074 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26075 variables.
26076 * conf/x86_64-efi.rmk: Likewise.
26077
26078 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26079
26080 Rename efi_fb to efi_uga.
26081
26082 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26083 'efi_uga.mod'.
26084 (efi_fb_mod_SOURCES): Rename this ...
26085 (efi_uga_mod_SOURCES): ... to this.
26086 (efi_fb_mod_CFLAGS): Rename this ...
26087 (efi_uga_mod_CFLAGS): ... to this.
26088 (efi_fb_mod_LDFLAGS): Rename this ...
26089 (efi_uga_mod_LDFLAGS): ... to this.
26090 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26091 'efi_uga.mod'.
26092 (efi_fb_mod_SOURCES): Rename this ...
26093 (efi_uga_mod_SOURCES): ... to this.
26094 (efi_fb_mod_CFLAGS): Rename this ...
26095 (efi_uga_mod_CFLAGS): ... to this.
26096 (efi_fb_mod_LDFLAGS): Rename this ...
26097 (efi_uga_mod_LDFLAGS): ... to this.
26098 * video/efi_fb.c: Move this ...
26099 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26100
26101 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26102
26103 * po/README: New file. Explain our PO file workflow.
26104
26105 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26106
26107 * po/ChangeLog: Remove. Move relevant entries back to ...
26108 * ChangeLog: ... here.
26109 * po/ca.po: Remove (now handled by TLP).
26110 * po/id.po: Likewise.
26111 * po/zh_CN.po: Likewise.
26112 * Makefile.in (LINGUAS): Initialize in a way that supports
26113 empty set.
26114
26115 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26116
26117 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26118 reliing on po/LINGUAS.
26119 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26120 (po/%.po): ... this.
26121
26122 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26123
26124 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26125 (main): Use `program_name' instead of nonexistent `progname'.
26126
26127 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26128
26129 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26130 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26131
26132 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26133
26134 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26135 commit.
26136 * conf/i386-efi.rmk: Likewise.
26137 * conf/i386-ieee1275.rmk: Likewise.
26138 * conf/powerpc-ieee1275.rmk: Likewise.
26139 * conf/sparc64-ieee1275.rmk: Likewise.
26140 * conf/x86_64-efi.rmk: Likewise.
26141
26142 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26143
26144 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26145
26146 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26147
26148 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26149
26150 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26151
26152 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26153 (grub_mkdevicemap_SOURCES): New variable.
26154 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26155 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26156 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26157 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26158 (grub_mkdevicemap_SOURCES): Remove.
26159 * conf/i386-efi.rmk: Likewise.
26160 * conf/i386-ieee1275.rmk: Likewise.
26161 * conf/i386-pc.rmk: Likewise.
26162 * conf/powerpc-ieee1275.rmk: Likewise.
26163 * conf/sparc64-ieee1275.rmk: Likewise.
26164 * conf/x86_64-efi.rmk: Likewise.
26165 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26166 (usage): Fix strings to use `program_name'.
26167 (main): Initialize gettext.
26168 * util/grub-editenv.c: Likewise.
26169 * util/grub-emu.c: Likewise.
26170 * util/grub-fstest.c: Likewise.
26171 * util/grub-mkdevicemap.c: Likewise.
26172 * util/grub-mkfont.c: Likewise.
26173 * util/grub-mkrelpath.c: Likewise.
26174 * util/grub-pe2elf.c: Likewise.
26175 * util/grub-probe.c: Likewise.
26176 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26177 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26178 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26179
26180 * util/misc.c: Include `"progname.h"'.
26181 (progname): Remove variable.
26182 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26183
26184 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26185
26186 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26187 printf and print a newline after the menuentry header line.
26188 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26189
26190 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26191
26192 autoconf >= 2.60 support $(localedir).
26193
26194 * INSTALL: Note that autoconf 2.60 is required.
26195 * configure.ac (AC_PREREQ): Bump to 2.60.
26196 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26197 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26198
26199 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26200
26201 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26202 aclocal is run.
26203
26204 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26205
26206 * normal/main.c (grub_normal_read_line): Fix off-by-one
26207 buffer overflow.
26208
26209 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26210
26211 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26212 "parser.grub" in grub_command_execute() call.
26213
26214 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26215
26216 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26217 * conf/i386-efi.rmk: Likewise.
26218 * conf/i386-ieee1275.rmk: Likewise.
26219 * conf/i386-pc.rmk: Likewise.
26220 * conf/powerpc-ieee1275.rmk: Likewise.
26221 * conf/sparc64-ieee1275.rmk: Likewise.
26222 * conf/x86_64-efi.rmk: Likewise.
26223 * gettext/gettex.c: Include <grub/i18n.h>.
26224 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26225 here ...
26226 * include/grub/i18n.h: ... to here
26227 * include/grub/i18n.h: ... to here.
26228 * kern/misc.c: Include <grub/i18n.h>
26229 (grub_gettext_dummy): Move above user.
26230
26231 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26232
26233 * util/Makefile.in (install-local): Convert a `for' into a normal
26234 shell expansion.
26235
26236 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26237
26238 * autogen.sh: Add automake call.
26239 * config.guess: Remove.
26240 * config.sub: Likewise.
26241 * install-sh: Likewise.
26242
26243 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26244
26245 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26246
26247 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26248
26249 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26250 function to a normal shell `for'.
26251
26252 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26253
26254 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26255
26256 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26257
26258 * util/grub-mkrelpath.c: New file.
26259 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26260 (grub_mkrelpath_SOURCES): New variable.
26261 * include/grub/util/misc.h: New function prototype.
26262 * util/misc.c (make_system_path_relative_to_its_root): New function.
26263
26264 * util/grub-mkconfig_lib.in (bindir): New variable.
26265 (grub_mkrelpath): Likewise.
26266 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26267
26268 * util/probe.c (probe): Make the file path relative to its root.
26269 Change a info message to use the GRUB path. Enable again the
26270 check if we can read the file with GRUB facilities.
26271
26272 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26273 to its root.
26274
26275 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26276
26277 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26278 platform.
26279
26280 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26281
26282 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26283 strncmp().
26284
26285 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26286
26287 * util/getroot.c (grub_util_is_dmraid): New function.
26288 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26289 devices as normal ones, not as LVM.
26290
26291 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26292
26293 * conf/common.rmk: Add grub-gettext_lib target and updates
26294 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26295 LDFLAGS.
26296 * gettext/gettext.c: New file. (Reads mo files).
26297 * include/grub/file.h (grub_file_pread): New prototype.
26298 * include/grub/i18n.h (_): New prototype.
26299 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26300 prototypes.
26301 * kern/misc.c (grub_gettext_dummy): New function.
26302 * normal/menu_text.c: Include <grub/i18n.h>.
26303 * normal/menu_text.c (print_timeout): Gettexttize string.
26304 * normal/menu_text.c (print_message): Gettexttize string.
26305 * po/POTFILES: Add `normal/menu_text.c'.
26306 * po/ca.po: Add new translations.
26307 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26308 gettext module and defines locale_dir and lang in grub.cfg.
26309 * NEWS: Add gettext support.
26310
26311 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26312
26313 * util/hostdisk.c: Include `<grub/i18n.h>'.
26314 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26315 (make_device_name): Rewrite using asprintf.
26316 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26317 (find_system_device): If a device is not found, generate one just
26318 by reusing the OS path name.
26319 (read_device_map): Make it permissible for device.map not to exist.
26320
26321 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26322
26323 * script/sh/execute.c: Move from here ...
26324 * script/execute.c: ... to here. Update all users.
26325 * script/sh/function.c: Move from here ...
26326 * script/function.c: ... to here. Update all users.
26327 * script/sh/lexer.c: Move from here ...
26328 * script/lexer.c: ... to here. Update all users.
26329 * script/sh/main.c: Move from here ...
26330 * script/main.c: ... to here. Update all users.
26331 * script/sh/parser.y: Move from here ...
26332 * script/parser.y: ... to here. Update all users.
26333 * script/sh/script.c: Move from here ...
26334 * script/script.c: ... to here. Update all users.
26335
26336 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26337
26338 * configure.ac: Detect all `emu' platforms. Define
26339 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26340 --enable-grub-emu logic. Disable include/grub/machine
26341 symlink on `emu' platforms.
26342
26343 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26344 * gensymlist.sh.in: Likewise.
26345
26346 * include/grub/i386/coreboot/machine.h: Remove file.
26347 * include/grub/i386/efi/machine.h: Likewise.
26348 * include/grub/i386/ieee1275/machine.h: Likewise.
26349 * include/grub/i386/pc/machine.h: Likewise.
26350 * include/grub/i386/qemu/machine.h: Likewise.
26351 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26352 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26353 * include/grub/x86_64/efi/machine.h: Likewise.
26354
26355 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26356 * commands/halt.c: Likewise.
26357 * commands/reboot.c: Likewise.
26358 * include/grub/autoefi.h: Likewise.
26359 * include/grub/i386/at_keyboard.h: Likewise.
26360 * include/grub/i386/kernel.h: Likewise.
26361 * include/grub/i386/loader.h: Likewise.
26362 * include/grub/i386/pc/memory.h: Likewise.
26363 * kern/dl.c: Likewise.
26364 * kern/i386/coreboot/init.c: Likewise.
26365 * loader/i386/bsd.c: Likewise.
26366 * loader/i386/linux.c: Likewise.
26367 * loader/multiboot_loader.c: Likewise.
26368 * term/i386/pc/serial.c: Likewise.
26369 * term/usb_keyboard.c: Likewise.
26370
26371 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26372 `<grub/machine/machine.h>'
26373 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26374 * util/misc.c: Remove `<grub/machine/machine.h>' and
26375 `<grub/machine/time.h>'.
26376
26377 * Makefile.in (enable_grub_emu): Remove variable.
26378 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26379
26380 * conf/any-emu.rmk: New file.
26381 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26382 (grub_emu_init.c): Move from here ...
26383 * conf/any-emu.rmk: ... to here.
26384
26385 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26386 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26387 * conf/any-emu.rmk: ... to here.
26388
26389 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26390
26391 * include/grub/parser.h (grub_parser_register): Document need
26392 of `name' parameter.
26393 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26394 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26395 "sh" to "grub".
26396
26397 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26398
26399 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26400 `$(XGETTEXT)'.
26401 * include/grub/i18n.h (N_): New macro.
26402 * util/mkisofs/mkisofs.h: Likewise.
26403 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26404 around N_().
26405 (usage): Use gettext() to translate help strings when printing them.
26406
26407 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26408
26409 Based on patch from Bean
26410 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26411
26412 * video/efi_fb.c: New file.
26413 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26414 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26415 variables.
26416 * conf/x86_64-efi.rmk: Likewise.
26417
26418 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26419
26420 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26421 * util/i386/pc/grub-setup.c: Likewise.
26422
26423 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26424
26425 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26426 <hurd/fs.h>
26427 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26428 file_get_storage_info to implement grub_guess_root_device.
26429
26430 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26431
26432 * Makefile.in (target): Use make's builtin $(shell) function
26433 instead of calling directly $(SHELL) to create the locale directories,
26434 inside the $(foreach) function.
26435
26436 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26437
26438 * util/grub-mkrescue.in: Print an error and usage if output option
26439 has not been given.
26440
26441 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26442
26443 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26444 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26445 root and /boot are on different devices.
26446
26447 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26448
26449 Fix build for srcdir != objdir.
26450
26451 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26452 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26453 $(srcdir).
26454 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26455 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26456 reference for input.
26457
26458 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26459
26460 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26461 or hardlinking it). Remove -J option, Joliet is not compatible with
26462 multiple source directories.
26463
26464 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26465 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26466
26467 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26468 (process_input_dir): New function. Process an arbitrary input
26469 directory.
26470 Misc adjustments to support both "override mode" and system-wide mode.
26471
26472 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26473
26474 * configure.ac (UNIFONT_BDF): Rename to ...
26475 (FONT_SOURCE): ... this. Update all users.
26476
26477 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26478
26479 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26480 to the list of unifont files to look for.
26481
26482 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26483
26484 Patch from Joe Auricchio <jauricchio@gmail.com>
26485 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26486 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26487 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26488
26489 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26490
26491 * Makefile.in (install-local): Add a missing backslash.
26492
26493 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26494
26495 * include/grub/x86_64/io.h: New file.
26496
26497 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26498
26499 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26500 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26501 Include `"progname.h"'.
26502 (main): Initialize gettext.
26503 * util/i386/pc/grub-setup.c: Gettexttize.
26504 * util/i386/pc/grub-mkimage.c: Likewise.
26505
26506 * Makefile.in (po/*.po): Redefine as ...
26507 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26508
26509 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26510
26511 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26512
26513 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26514 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26515 (program_name): Remove.
26516 (main): Initialize gettext support.
26517 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26518 Include `<libintl.h>'.
26519 (_): New macro.
26520
26521 * util/mkisofs/eltorito.c: Gettexttize.
26522 * util/mkisofs/joliet.c: Likewise.
26523 * util/mkisofs/mkisofs.c: Likewise.
26524 * util/mkisofs/multi.c: Likewise.
26525 * util/mkisofs/rock.c: Likewise.
26526 * util/mkisofs/tree.c: Likewise.
26527 * util/mkisofs/write.c: Likewise.
26528
26529 * po/POTFILES: Update with new files.
26530
26531 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26532
26533 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26534 * util/mkisofs/iso9660.h: Likewise.
26535 * util/mkisofs/joliet.c: Likewise.
26536 * util/mkisofs/mkisofs.c: Likewise.
26537 * util/mkisofs/mkisofs.h: Likewise.
26538 * util/mkisofs/rock.c: Likewise.
26539 * util/mkisofs/tree.c: Likewise.
26540 * util/mkisofs/write.c: Likewise.
26541
26542 * util/mkisofs/eltorito.c (rcsid): Remove.
26543 * util/mkisofs/hash.c: Likewise.
26544 * util/mkisofs/joliet.c: Likewise.
26545 * util/mkisofs/name.c: Likewise.
26546 * util/mkisofs/rock.c: Likewise.
26547 * util/mkisofs/tree.c: Likewise.
26548 * util/mkisofs/write.c: Likewise.
26549
26550 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26551
26552 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26553 instead of static allocation.
26554 * util/mkisofs/match.h: Likewise.
26555
26556 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26557
26558 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26559 and `util/grub.d/10_linux.in'.
26560 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26561 translatable Shell files.
26562
26563 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26564
26565 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26566
26567 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26568
26569 * INSTALL: Document Automake is needed for bootstrap.
26570 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26571 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26572 Add gettext initialization.
26573 (kfreebsd_entry): Make menuentry output translatable.
26574
26575 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26576
26577 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26578 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26579 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26580 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26581 (LINGUAS): Auto-generate using `po/LINGUAS'.
26582 * po/LINGUAS: New file.
26583
26584 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26585
26586 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26587 other things).
26588 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26589 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26590 bindtextdomain() calls for gettext initialization.
26591
26592 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26593
26594 * gnulib/progname.c: New file (imported from Gnulib).
26595 * gnulib/progname.h: Likewise.
26596 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26597 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26598 (usage): Replace `progname' with `program_name'.
26599 (main): Use set_program_name() for program name initialization.
26600
26601 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26602
26603 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26604 from here ...
26605 * Makefile.in (CPPFLAGS): ... to here.
26606
26607 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26608
26609 * aclocal.m4: Move from here ...
26610 * acinclude.m4: ... to here.
26611 * autogen.sh: Add call to `aclocal'.
26612 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26613
26614 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26615
26616 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26617 (LINGUAS): New variable.
26618 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26619 (install-local): Install MO files.
26620 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26621 * include/grub/i18n.h: New file.
26622 * po/POTFILES: New file.
26623 * po/ca.po: New file.
26624 * util/grub.d/10_linux.in (bindir): New variable.
26625 Add gettext initialization.
26626 (linux_entry): Make menuentry output translatable.
26627 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
26628 (usage): Make --help output translatable.
26629 (main): Initialize gettext.
26630
26631 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26632
26633 * import_gcry.py: New file (written by Vladimir with minor
26634 adjustments).
26635 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
26636 ciphers.
26637 * INSTALL: Document that Python is required for bootstrap.
26638
26639 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26640
26641 Import ciphers from libgcrypt 1.4.4.
26642
26643 * lib/libgcrypt/cipher/ChangeLog
26644 * lib/libgcrypt/cipher/ac.c
26645 * lib/libgcrypt/cipher/arcfour.c
26646 * lib/libgcrypt/cipher/bithelp.h
26647 * lib/libgcrypt/cipher/blowfish.c
26648 * lib/libgcrypt/cipher/camellia-glue.c
26649 * lib/libgcrypt/cipher/camellia.c
26650 * lib/libgcrypt/cipher/camellia.h
26651 * lib/libgcrypt/cipher/cast5.c
26652 * lib/libgcrypt/cipher/cipher.c
26653 * lib/libgcrypt/cipher/crc.c
26654 * lib/libgcrypt/cipher/des.c
26655 * lib/libgcrypt/cipher/dsa.c
26656 * lib/libgcrypt/cipher/ecc.c
26657 * lib/libgcrypt/cipher/elgamal.c
26658 * lib/libgcrypt/cipher/hash-common.c
26659 * lib/libgcrypt/cipher/hash-common.h
26660 * lib/libgcrypt/cipher/hmac-tests.c
26661 * lib/libgcrypt/cipher/md.c
26662 * lib/libgcrypt/cipher/md4.c
26663 * lib/libgcrypt/cipher/md5.c
26664 * lib/libgcrypt/cipher/primegen.c
26665 * lib/libgcrypt/cipher/pubkey.c
26666 * lib/libgcrypt/cipher/rfc2268.c
26667 * lib/libgcrypt/cipher/rijndael-tables.h
26668 * lib/libgcrypt/cipher/rijndael.c
26669 * lib/libgcrypt/cipher/rmd.h
26670 * lib/libgcrypt/cipher/rmd160.c
26671 * lib/libgcrypt/cipher/rsa.c
26672 * lib/libgcrypt/cipher/seed.c
26673 * lib/libgcrypt/cipher/serpent.c
26674 * lib/libgcrypt/cipher/sha1.c
26675 * lib/libgcrypt/cipher/sha256.c
26676 * lib/libgcrypt/cipher/sha512.c
26677 * lib/libgcrypt/cipher/tiger.c
26678 * lib/libgcrypt/cipher/twofish.c
26679 * lib/libgcrypt/cipher/whirlpool.c
26680
26681 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26682
26683 Fix build for systems without error().
26684
26685 * gnulib/error.c: New file (imported from Gnulib).
26686 * gnulib/error.h: Likewise.
26687 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
26688 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
26689 (this variable is now used by error()).
26690
26691 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26692
26693 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
26694 instead of relying that char is signed.
26695
26696 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
26697
26698 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
26699 blocksize different from specified.
26700 (grub_pxefs_read): Likewise.
26701
26702 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26703
26704 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
26705
26706 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
26707 (grub_ata_readwrite): Likewise. Update 2 format strings.
26708 (grub_atapi_read): Likewise.
26709
26710 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
26711 * conf/i386.rmk (pkglib_MODULES): ... to here ...
26712 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
26713 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
26714 (ata_mod_LDFLAGS): Move from here ...
26715 * conf/i386.rmk: ... to here ...
26716 * conf/x86_64-efi.rmk: ... and here.
26717 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
26718 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
26719
26720 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26721
26722 Relicense multiboot.h, with RMS' blessing.
26723
26724 * include/multiboot.h: Change to X11 license.
26725
26726 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
26727
26728 Support --version in grub-mkisofs.
26729
26730 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
26731 (OPTION_VERSION): New macro.
26732 (ld_options): Recognize --version.
26733 (usage): Move `program_name' from here ...
26734 (program_name): ... to here. Add `static' qualifier.
26735 (main): Recognize `OPTION_VERSION'.
26736
26737 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
26738
26739 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
26740 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
26741
26742 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26743
26744 Fix help2man generation for mkisofs.
26745
26746 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
26747 (usage): Send output to stdout (rather than stderr).
26748
26749 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26750
26751 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
26752 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26753 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
26754 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26755 (bin_SCRIPTS): Add `grub-mkfloppy'.
26756 (grub_mkfloppy_SOURCES): New variable.
26757
26758 * util/grub-mkrescue.in: New file.
26759 * util/i386/pc/grub-mkfloppy.in: New file.
26760
26761 * util/i386/coreboot/grub-mkrescue.in: Remove.
26762 * util/i386/pc/grub-mkrescue.in: Remove.
26763
26764 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26765
26766 * include/grub/multiboot.h (struct grub_multiboot_header): Move
26767 from here ...
26768 * include/multiboot.h (struct multiboot_header): ... to here. Update
26769 all users.
26770 * include/grub/multiboot.h (struct grub_multiboot_info): Move
26771 from here ...
26772 * include/multiboot.h (struct multiboot_info): ... to here. Update
26773 all users.
26774 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
26775 from here ...
26776 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
26777 Update all users.
26778 * include/grub/multiboot.h (struct grub_mod_list): Move
26779 from here ...
26780 * include/multiboot.h (struct multiboot_mod_list): ... to here.
26781 Update all users.
26782
26783 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26784
26785 * include/multiboot2.h (multiboot_word): Rename from this ...
26786 (multiboot2_word): ... to this. Update all users.
26787 (multiboot_header): Rename from this ...
26788 (multiboot2_header): ... to this. Update all users.
26789 (multiboot_tag_header): Rename from this ...
26790 (multiboot2_tag_header): ... to this. Update all users.
26791 (multiboot_tag_start): Rename from this ...
26792 (multiboot2_tag_start): ... to this. Update all users.
26793 (multiboot_tag_name): Rename from this ...
26794 (multiboot2_tag_name): ... to this. Update all users.
26795 (multiboot_tag_module): Rename from this ...
26796 (multiboot2_tag_module): ... to this. Update all users.
26797 (multiboot_tag_memory): Rename from this ...
26798 (multiboot2_tag_memory): ... to this. Update all users.
26799 (multiboot_tag_unused): Rename from this ...
26800 (multiboot2_tag_unused): ... to this. Update all users.
26801 (multiboot_tag_end): Rename from this ...
26802 (multiboot2_tag_end): ... to this. Update all users.
26803
26804 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26805
26806 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
26807 this platform we should support Multiboot1 first.
26808
26809 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26810 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
26811 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
26812
26813 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26814
26815 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
26816 of write calls (converting them to fwrite() if they aren't already).
26817 (get_torito_desc): Likewise.
26818 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
26819
26820 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26821
26822 * util/i386/pc/grub-install.in: Move from here ...
26823 * util/grub-install.in: ... to here. Update all users.
26824
26825 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
26826
26827 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
26828
26829 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26830
26831 Support for El Torito without floppy emulation.
26832
26833 * util/mkisofs/eltorito.c: Include `<errno.h>'.
26834 (init_boot_catalog): Improve error handling.
26835 (get_torito_desc): Don't use floppy emulation unless requested by
26836 user. Patch boot information table when requested via
26837 `-boot-info-table'.
26838 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
26839 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
26840 (use_boot_info_table): New variables.
26841 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
26842 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
26843 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
26844 `--eltorito-emul-floppy'.
26845 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
26846 and `OPTION_ELTORITO_EMUL_FLOPPY'.
26847 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
26848 (use_boot_info_table, get_731): New prototypes.
26849 * util/mkisofs/write.c (get_731): New function.
26850
26851 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
26852
26853 Fix the generation of the man page.
26854
26855 * util/pc/i386/grub-install.in: Source
26856 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26857
26858 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26859
26860 Large file support for grub-mkisofs.
26861
26862 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
26863 * util/mkisofs/mkisofs.c (next_extent, last_extent)
26864 (session_start): Upgrade type to `uint64_t'. Update all users.
26865 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
26866 (struct directory_entry): Upgrade type of `starting_block' and
26867 `size' to `uint64_t'. Update all users.
26868 (struct deferred): Remove unused structure.
26869 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
26870 Update all users.
26871 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
26872 file is larger than `UINT32_MAX'.
26873 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
26874 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
26875 return value.
26876 (struct deferred_write): Upgrade type of `extent' and `size' to
26877 `uint64_t'. Update all users.
26878 (last_extent_written): Upgrade type to `uint64_t'. Update all
26879 users.
26880 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
26881 Update all users. Upgrade type of `remain' to `int64_t' and
26882 `use' to `size_t'. Use error() to handle fread() errors.
26883 (write_files): Rely on write_one_file() rather than calling
26884 xfwrite() directly.
26885
26886 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
26887
26888 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
26889
26890 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26891
26892 * util/mkisofs/fnmatch.c: Remove.
26893 * util/mkisofs/getopt1.c: Likewise.
26894 * util/mkisofs/getopt.c: Likewise.
26895 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
26896 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
26897 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
26898 `gnulib/getopt1.c' and `gnulib/getopt.c'.
26899 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
26900
26901 * configure.ac: Detect `mingw32msvc' host_os.
26902 Check for lstat(), getuid() and getgid().
26903
26904 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
26905 instances of `u_char' with `uint8_t'.
26906
26907 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
26908 [!HAVE_GETUID] (getuid): New function (stub).
26909 [!HAVE_GETGID] (getgid): Likewise.
26910 [!HAVE_LSTAT] (lstat): Likewise.
26911 [!S_IROTH] (S_IROTH): New macro (dummy).
26912 [!S_IRGRP] (S_IRGRP): Likewise.
26913
26914 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26915
26916 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
26917 conditional expression).
26918
26919 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26920
26921 Import from Gnulib.
26922
26923 * gnulib/fnmatch.c: New file.
26924 * gnulib/fnmatch.h: Likewise.
26925 * gnulib/fnmatch_loop.c: Likewise.
26926 * gnulib/getopt.c: Likewise.
26927 * gnulib/getopt.h: Likewise.
26928 * gnulib/getopt1.c: Likewise.
26929 * gnulib/getopt_int.h: Likewise.
26930 * gnulib/gettext.h: Likewise.
26931
26932 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26933
26934 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
26935 * normal/handler.c (read_handler_list): Likewise.
26936
26937 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26938
26939 Misc cleanup.
26940
26941 * kern/command.c (grub_register_command_prio): Use
26942 grub_zalloc() instead of explicitly zeroing data.
26943 * kern/list.c: Include `<grub/mm.h>'.
26944 (grub_named_list_find): Replace `0' with `NULL'.
26945 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
26946 (fs_module_list): Change type to `grub_named_list_t'. Update all
26947 users.
26948 * normal/dyncmd.c (read_command_list): Add space between function
26949 call and parenthesis.
26950 * normal/handler.c (read_handler_list): Likewise.
26951
26952 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26953
26954 * normal/auth.c (punishment_delay): Moved from here ...
26955 (grub_auth_strcmp): ... to here (inside function).
26956
26957 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26958
26959 * include/grub/list.h (struct grub_named_list): Remove `const'
26960 qualifier from `name'.
26961 (struct grub_prio_list): Likewise.
26962
26963 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26964
26965 * normal/auth.c: Include `<grub/time.h>'.
26966 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
26967
26968 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26969
26970 * normal/auth.c (punishment_delay): New variable.
26971 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
26972 (grub_auth_check_authentication): Punish failed login attempts with
26973 an incremental (2^N) delay.
26974
26975 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26976
26977 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
26978 path with $(srcdir).
26979
26980 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26981
26982 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
26983
26984 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26985
26986 * util/i386/coreboot/grub-mkrescue.in: New file.
26987 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
26988 variables.
26989
26990 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
26991 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
26992 * configure.ac: Add header and function checks to satisfy grub-mkisofs
26993 requirements.
26994 * util/mkisofs/defaults.h: New file.
26995 * util/mkisofs/eltorito.c: Likewise.
26996 * util/mkisofs/exclude.h: Likewise.
26997 * util/mkisofs/fnmatch.c: Likewise.
26998 * util/mkisofs/getopt.c: Likewise.
26999 * util/mkisofs/getopt1.c: Likewise.
27000 * util/mkisofs/hash.c: Likewise.
27001 * util/mkisofs/include/fctldefs.h: Likewise.
27002 * util/mkisofs/include/mconfig.h: Likewise.
27003 * util/mkisofs/include/prototyp.h: Likewise.
27004 * util/mkisofs/include/statdefs.h: Likewise.
27005 * util/mkisofs/iso9660.h: Likewise.
27006 * util/mkisofs/joliet.c: Likewise.
27007 * util/mkisofs/match.c: Likewise.
27008 * util/mkisofs/match.h: Likewise.
27009 * util/mkisofs/mkisofs.c: Likewise.
27010 * util/mkisofs/mkisofs.h: Likewise.
27011 * util/mkisofs/multi.c: Likewise.
27012 * util/mkisofs/name.c: Likewise.
27013 * util/mkisofs/rock.c: Likewise.
27014 * util/mkisofs/tree.c: Likewise.
27015 * util/mkisofs/write.c: Likewise.
27016
27017 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27018
27019 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27020 being insecure.
27021
27022 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27023
27024 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27025 `grub-mkimage' (and use $0 when possible).
27026
27027 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27028
27029 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27030 error message for excessively large memory map.
27031
27032 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27033
27034 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27035 executable bit.
27036
27037 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27038
27039 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27040 message for coreboot users.
27041
27042 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27043
27044 Fix build with GNU gold.
27045
27046 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27047 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27048 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27049 link addresses.
27050 * aclocal.m4: Likewise.
27051
27052 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27053
27054 * configure.ac (AC_PREREQ): Bump to 2.59d.
27055 * INSTALL: Make it more clear when Autoconf and Ruby are
27056 needed and when to run `./autogen.sh'.
27057
27058 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27059
27060 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27061 OSes.
27062
27063 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27064
27065 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27066
27067 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27068
27069 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27070 giving it to GNU Mach.
27071
27072 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27073
27074 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27075 GNU partition number to get internal GRUB partition number.
27076
27077 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27078
27079 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27080 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27081
27082 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27083
27084 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27085 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27086 case.
27087
27088 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27089
27090 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27091
27092 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27093
27094 Fix build problem.
27095
27096 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27097 `-isystem=$(srcdir)/include'.
27098
27099 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27100
27101 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27102 checked (grub-install doesn't currently rely on it).
27103
27104 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27105
27106 Revert SVN r2660.
27107
27108 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27109 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27110 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27111 * conf/i386-ieee1275.rmk: Likewise.
27112 * conf/i386-pc.rmk: Likewise.
27113 * conf/powerpc-ieee1275.rmk: Likewise.
27114 * conf/sparc64-ieee1275.rmk: Likewise.
27115 * conf/x86_64-efi.rmk: Likewise.
27116
27117 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27118
27119 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27120
27121 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27122
27123 * include/grub/misc.h: Stop checking for APPLE_CC.
27124
27125 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27126
27127 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27128 doesn't cause an infinite call loop.
27129
27130 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27131
27132 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27133 strings.
27134
27135 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27136
27137 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27138 variable.
27139 * Makefile.in: Likewise.
27140
27141 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27142
27143 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27144
27145 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27146
27147 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27148
27149 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27150
27151 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27152
27153 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27154
27155 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27156 from here ...
27157 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27158
27159 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27160
27161 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27162 in $(MAKEINFO) invocation. This makes it clear in output that
27163 errors are being ignored.
27164
27165 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27166
27167 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27168 from here ...
27169 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27170 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27171 * conf/i386-ieee1275.rmk: Likewise.
27172 * conf/i386-pc.rmk: Likewise.
27173 * conf/powerpc-ieee1275.rmk: Likewise.
27174 * conf/sparc64-ieee1275.rmk: Likewise.
27175 * conf/x86_64-efi.rmk: Likewise.
27176
27177 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27178
27179 * util/grub-editenv.c (main): If only a command is given, use
27180 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27181 (usage): FILENAME is now optional and has a default.
27182
27183 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27184
27185 Improve grub-mkconfig performance when there are several menu
27186 entries on a single filesystem.
27187
27188 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27189 prepare_grub_to_access_device.
27190 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27191 * util/grub.d/30_os-prober.in: Likewise.
27192
27193 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27194
27195 * util/grub.d/10_freebsd.in: Remove.
27196 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27197 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27198
27199 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27200
27201 * docs/grub.cfg: Fix example usage of *BSD loaders.
27202
27203 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27204
27205 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27206 grub_util_error() call.
27207
27208 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27209
27210 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27211 `reserved_first_sector' member.
27212 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27213 `reserved_first_sector' to 1.
27214 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27215 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27216 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27217 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27218 filesystems which begin at first sector.
27219 (options): New option --skip-fs-probe.
27220 (main): Handle --skip-fs-probe and pass it to setup().
27221
27222 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27223
27224 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27225 (memset): Fix function prototype.
27226
27227 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27228 2009-10-25 Vasily Averin <vvs@parallels.com>
27229
27230 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27231 `dirent.direntlen == 0'.
27232
27233 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27234
27235 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27236 `cpio'.
27237 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27238
27239 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27240
27241 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27242 `__trampoline_setup' and `__ucmpdi2'.
27243 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27244 that libgcc provides.
27245
27246 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27247
27248 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27249 * include/grub/sparc64/libgcc.h (memset): Likewise.
27250 * include/grub/misc.h (memset, memcmp): New function prototypes.
27251
27252 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27253
27254 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27255 `cpio'.
27256 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27257
27258 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27259
27260 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27261 * docs/grub.cfg: Compensate for recent change in multiboot
27262 loader (since 2009-08-14 it won't pass filename to payload).
27263 * util/grub.d/10_hurd.in: Likewise.
27264
27265 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27266
27267 * config.guess: Update to latest version from config git
27268 repository.
27269 * config.sub: Likewise.
27270
27271 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27272
27273 Fix build on sparc64.
27274
27275 * configure.ac: Perform checks for libgcc symbols before
27276 adding `-nostdlib' to LDFLAGS.
27277
27278 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27279
27280 Let user specify OpenBSD root device.
27281
27282 * loader/i386/bsd.c (openbsd_root): New variable.
27283 (openbsd_opts): New option 'root'.
27284 (OPENBSD_ROOT_ARG): New macro.
27285 (grub_openbsd_boot): Use 'openbsd_root'.
27286 (grub_cmd_openbsd): Fill 'openbsd_root'.
27287
27288 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27289
27290 * NEWS: Misc adjustments.
27291
27292 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27293
27294 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27295
27296 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27297
27298 * configure.ac: Bump version to 1.97.
27299
27300 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27301
27302 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27303 -mno-3dnow on x86 architectures. Some toolchains enable these
27304 features by default, but they rely on registers that aren't enabled
27305 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27306
27307 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27308
27309 Make entry text a bit more readable.
27310
27311 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27312
27313 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27314
27315 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27316
27317 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27318
27319 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27320 operations.
27321
27322 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27323
27324 * configure.ac: Add missing dollar.
27325
27326 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27327
27328 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27329
27330 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27331 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27332 exports.
27333 * include/grub/sparc64/libgcc.h: Likewise. Use
27334 preprocessor conditionals.
27335
27336 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27337
27338 * conf/common.rmk (grub-dumpbios): Remove rule.
27339 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27340 * util/grub-dumpbios.in: Remove file.
27341
27342 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27343
27344 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27345 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27346
27347 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27348 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27349 users.
27350
27351 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27352 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27353 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27354 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27355 users.
27356
27357 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27358
27359 * term/tparm.c: Switch to GPLv3.
27360
27361 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27362
27363 * include/grub/i386/cpuid.h: Add header protection.
27364
27365 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27366
27367 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27368
27369 * include/grub/i386/cpuid.h: New file.
27370 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27371 (has_longmode): Rename to ...
27372 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27373 `static' attribute.
27374 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27375 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27376 on a CPU that doesn't implement AMD64 instruction set.
27377
27378 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27379
27380 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27381 that version.texi is rebuilt on version number changes.
27382
27383 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27384
27385 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27386 Fixes bug #27602.
27387
27388 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27389
27390 * util/i386/pc/grub-install.in: Source
27391 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27392 that the --grub-probe option will work.
27393 * util/sparc64/ieee1275/grub-install.in: Likewise.
27394
27395 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27396
27397 * configure.ac: Bump version to 1.97~beta4.
27398
27399 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27400
27401 Resync grub-mkdevicemap in x86_64-efi.
27402
27403 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27404 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27405 `util/devicemap.c'.
27406
27407 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27408
27409 * util/grub-editenv.c (create_envblk_file): Write new block with a
27410 .new suffix and then rename it into place, to ensure atomic
27411 creation.
27412
27413 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27414
27415 Do not automatically install headers.
27416
27417 * Makefile.in (include_DATA): Remove. Update all users.
27418
27419 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27420
27421 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27422 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27423
27424 * util/osdetect.lua: Remove.
27425 * script/lua/lauxlib.c: Likewise.
27426 * script/lua/ldebug.c: Likewise.
27427 * script/lua/grub_main.c: Likewise.
27428 * script/lua/lauxlib.h: Likewise.
27429 * script/lua/ldebug.h: Likewise.
27430 * script/lua/ltablib.c: Likewise.
27431 * script/lua/liolib.c: Likewise.
27432 * script/lua/lstrlib.c: Likewise.
27433 * script/lua/lualib.h: Likewise.
27434 * script/lua/ldo.c: Likewise.
27435 * script/lua/ldump.c: Likewise.
27436 * script/lua/ldo.h: Likewise.
27437 * script/lua/loslib.c: Likewise.
27438 * script/lua/lundump.c: Likewise.
27439 * script/lua/grub_lib.c: Likewise.
27440 * script/lua/ldblib.c: Likewise.
27441 * script/lua/lundump.h: Likewise.
27442 * script/lua/lmem.c: Likewise.
27443 * script/lua/grub_lib.h: Likewise.
27444 * script/lua/lmathlib.c: Likewise.
27445 * script/lua/lstate.c: Likewise.
27446 * script/lua/ltm.c: Likewise.
27447 * script/lua/lvm.c: Likewise.
27448 * script/lua/lmem.h: Likewise.
27449 * script/lua/lstate.h: Likewise.
27450 * script/lua/ltm.h: Likewise.
27451 * script/lua/ltable.c: Likewise.
27452 * script/lua/lvm.h: Likewise.
27453 * script/lua/llex.c: Likewise.
27454 * script/lua/lgc.c: Likewise.
27455 * script/lua/grub_lua.h: Likewise.
27456 * script/lua/loadlib.c: Likewise.
27457 * script/lua/lfunc.c: Likewise.
27458 * script/lua/lopcodes.c: Likewise.
27459 * script/lua/lparser.c: Likewise.
27460 * script/lua/ltable.h: Likewise.
27461 * script/lua/llex.h: Likewise.
27462 * script/lua/lgc.h: Likewise.
27463 * script/lua/lfunc.h: Likewise.
27464 * script/lua/lbaselib.c: Likewise.
27465 * script/lua/lopcodes.h: Likewise.
27466 * script/lua/lparser.h: Likewise.
27467 * script/lua/lzio.c: Likewise.
27468 * script/lua/linit.c: Likewise.
27469 * script/lua/lobject.c: Likewise.
27470 * script/lua/llimits.h: Likewise.
27471 * script/lua/lstring.c: Likewise.
27472 * script/lua/lzio.h: Likewise.
27473 * script/lua/lapi.c: Likewise.
27474 * script/lua/lcode.c: Likewise.
27475 * script/lua/lua.h: Likewise.
27476 * script/lua/lobject.h: Likewise.
27477 * script/lua/lstring.h: Likewise.
27478 * script/lua/lapi.h: Likewise.
27479 * script/lua/lcode.h: Likewise.
27480 * script/lua/luaconf.h: Likewise.
27481
27482 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27483
27484 * docs/grub.texi (Command-line and menu entry commands): Document
27485 date and echo commands.
27486
27487 2009-09-24 Pavel Roskin <proski@gnu.org>
27488
27489 * include/grub/kernel.h (struct grub_module_header): Remove
27490 `grub_module_header_types'. Make `type' unsigned. Make `size'
27491 32-bit on all platforms.
27492 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27493 8-bit field. Use grub_host_to_target32() for `size'.
27494 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27495 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27496 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27497
27498 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27499
27500 Fix "lost keypress" bug in at_keyboard.
27501
27502 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27503 Checks for readyness of input buffer (without flushing it).
27504 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27505 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27506
27507 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27508
27509 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27510 size check within GRUB_MACHINE_PCBIOS section.
27511
27512 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27513
27514 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27515 return value.
27516 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27517 KEYBOARD_ISREADY check.
27518 (grub_at_keyboard_checkkey): Rename to ...
27519 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27520 Remove gratuitous cast.
27521
27522 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27523
27524 * configure.ac: Call AC_PROG_MKDIR_P.
27525 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27526 version.texi in $(builddir) rather than $(srcdir).
27527 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27528 to makeinfo's @include search path.
27529
27530 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27531
27532 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27533
27534 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27535
27536 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27537 for `*.dpkg-new'.
27538
27539 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27540
27541 Build info documentation. Some code borrowed from Automake.
27542
27543 * configure.ac: Check for makeinfo.
27544 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27545 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27546 docs/version.texi.
27547 (MOSTLYCLEANFILES): Add vti.tmp.
27548 (docs/version.texi, docs/stamp-vti): Update automatically.
27549 (docs/grub.info): Build info documentation. Use --force and ignore
27550 errors for now.
27551 (all-local): Add $(INFOS).
27552 (install-local): Install info files.
27553 (uninstall): Uninstall info files.
27554 * docs/version.texi: Remove from revision control. This file is
27555 automatically generated on build now.
27556 * gendistlist.sh: Add `*.info'.
27557
27558 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27559
27560 * kern/term.c: Fix indentation.
27561
27562 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27563
27564 * util/hostdisk.c: Fix a comment.
27565
27566 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27567
27568 Fix regression introduced in r2539.
27569
27570 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27571 to 0xA1.
27572
27573 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27574
27575 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27576 os-prober. Under normal operation, it does not print anything to
27577 stderr; if it does, we need to debug it, and throwing away stderr
27578 makes that excessively difficult.
27579
27580 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27581
27582 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27583
27584 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27585
27586 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27587 AC_LANG_PROGRAM from autoconf.
27588 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27589 prototypes (fixes warning).
27590
27591 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27592 `--disable-werror' was used.
27593
27594 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27595
27596 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27597 uninitialized `lastaddr'.
27598
27599 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27600
27601 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27602
27603 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27604
27605 * commands/test.c (get_fileinfo): Return immediately if
27606 grub_fs_probe fails.
27607
27608 2009-09-14 José Martínez <xosemp@gmail.com>
27609
27610 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27611
27612 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27613
27614 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27615 output.
27616
27617 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27618
27619 * configure.ac: Remove --enable-grub-pe2elf. Only build
27620 grub-pe2elf when needed by the build system itself.
27621 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27622
27623 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27624
27625 * configure.ac: Bump version to 1.97~beta3.
27626 * docs/version.texi: Likewise.
27627
27628 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27629
27630 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
27631 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
27632 from here ...
27633 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
27634 (grub_linux_setup_video): ... to here (with some adjustments).
27635
27636 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27637
27638 Fix memory corruption issue (spotted by Colin Watson).
27639
27640 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
27641 causing returned size to be stored in an incorrect memory location.
27642 Fix use of uninitialized value when storing the returned size.
27643
27644 2009-09-12 Yves Blusseau <blusseau@zetam.org>
27645
27646 Change clean rules to properly remove files
27647
27648 * genmk.rb: add new clean rules
27649 * Makefile.in (clean): add the new targets
27650 (mostlyclean): likewise
27651
27652 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27653
27654 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
27655 to grub_uint64_t.
27656 * fs/ntfs.c (init_file): Understand 64-bit sizes for
27657 non-resident files.
27658
27659 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27660
27661 * configure.ac: Don't look for help2man when cross-compiling. Fixes
27662 part of bug #27349.
27663
27664 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27665
27666 * util/grub-mkconfig.in: Make the created config mode 400 and
27667 print a warning if it fails.
27668
27669 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
27670
27671 * util/grub.d/40_custom.in: Ask user to type custom entries below
27672 comment, rather than below 'exec tail' line.
27673
27674 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27675
27676 * util/grub.d/40_custom.in: Make sure that the explanatory text is
27677 visible in grub.cfg.
27678
27679 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27680
27681 * util/grub.d/40_custom.in: Make it a little clearer how to use this
27682 file.
27683
27684 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27685
27686 * docs/grub.cfg: Add an example menu entry for memtest86+.
27687
27688 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
27689
27690 * config.guess: Update to latest version from config git.
27691 * config.sub: Likewise.
27692
27693 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
27694
27695 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
27696 unknown-command case. Fixes bug #27320.
27697
27698 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
27699
27700 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
27701 `help' if the command exists.
27702
27703 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
27704
27705 * INSTALL: Require GCC 4.1.3 or later.
27706
27707 2009-09-06 Yves Blusseau <blusseau@zetam.org>
27708
27709 * Makefile.in (RMKFILES): add i386-qemu.rmk
27710 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
27711 $(srcdir)/stamp-h.in
27712
27713 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
27714
27715 * util/grub-probe.c (probe): Comment out buggy codepath, which
27716 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
27717 should be re-enabled after 1.97.
27718
27719 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
27720
27721 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
27722 find searches for.
27723
27724 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
27725
27726 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
27727 unnecessary calls to grub_error.
27728
27729 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
27730
27731 * NEWS: Mention `keystatus' and Unicode fonts.
27732
27733 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
27734
27735 * configure.ac: Bump version to 1.97~beta2.
27736 * docs/version.texi: Likewise.
27737
27738 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27739
27740 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
27741 containing unwind information in some cases where it previously did
27742 not. Use -fno-dwarf2-cfi-asm if available to restore the old
27743 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
27744 discussion.
27745
27746 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
27747
27748 Embedding loadenv module into grub-emu
27749
27750 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
27751 commands/loadenv.c
27752 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
27753 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
27754 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
27755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
27756 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
27757 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
27758
27759 2009-09-03 Magnus Granberg <zorry@ume.nu>
27760
27761 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
27762 include -fPIE in the default specs.
27763 * configure.ac: Check if pie_possible is yes and add -fno-PIE
27764 to TARGET_CFLAGS.
27765
27766 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
27767
27768 * INSTALL: Note that GNU Bison 2.3 or later is required.
27769
27770 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27771
27772 * kern/i386/pc/startup.S: Fix typo.
27773
27774 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
27775
27776 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
27777 according to GCS.
27778
27779 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27780
27781 * docs/grub.texi (Naming convention): Describe one-based partition
27782 numbering.
27783 (Device syntax): Likewise.
27784 (File name syntax): Likewise.
27785 (Block list syntax): Likewise.
27786 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
27787 menu.lst.
27788 (File name syntax): Likewise.
27789 (Command-line and menu entry commands): Document acpi, blocklist,
27790 crc, export, insmod, keystatus, ls, set, and unset commands.
27791
27792 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27793
27794 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
27795 to avoid implying that only one of --shift, --ctrl, or --alt may be
27796 used.
27797
27798 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27799
27800 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
27801 rather than comparing against S_IFREG, which will almost never work.
27802
27803 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
27804
27805 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
27806 (write_blocklists): Likewise.
27807
27808 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
27809
27810 * script/lua/grub_lua.h (fputs): Supply a format string as the first
27811 argument to grub_printf.
27812
27813 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
27814
27815 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
27816 non GNU test.
27817
27818 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27819
27820 * kern/file.c (grub_file_read): Spelling fix
27821
27822 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27823
27824 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
27825 loading of headers in some cases.
27826
27827 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
27828
27829 * configure.ac: Bump version to 1.97~beta1.
27830 * docs/version.texi: Likewise.
27831
27832 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
27833
27834 * include/grub/i386/xnu.h: Add license header.
27835 include grub/err.h explicitly.
27836
27837 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27838
27839 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
27840 to `ufs' in the vfs.root.mountfrom kernel parameter.
27841
27842 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27843
27844 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
27845
27846 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
27847 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
27848
27849 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
27850 `ARRAY_SIZE' macro.
27851
27852 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27853
27854 * kern/file.c (grub_file_read): Check offset.
27855 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
27856 * fs/jfs.c (grub_jfs_read_file): Likewise.
27857 * fs/ntfs.c (grub_ntfs_read): Likewise.
27858 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
27859 * fs/minix.c (grub_minix_read_file): Correct offset check.
27860 * fs/ufs.c (grub_ufs_read_file): Likewise.
27861
27862 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27863
27864 * term/i386/pc/console.c (bios_data_area): Cast
27865 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
27866
27867 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27868
27869 1-bit optimised blitters.
27870
27871 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
27872 prototype.
27873 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27874 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27875 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27876 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27877 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27878 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27879 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
27880 function.
27881 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27882 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27883 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27884 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27885 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27886 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27887 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
27888 when possible.
27889 * video/video.c (grub_video_get_blit_format): Return
27890 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
27891
27892 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27893
27894 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
27895 the first argument to grub_printf.
27896
27897 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27898 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
27899
27900 Add `getkeystatus' terminal method. Add a new `keystatus' command
27901 to query it.
27902
27903 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
27904 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
27905 modifier key bitmasks.
27906 (struct grub_term_input): Add `getkeystatus' member.
27907 (grub_getkeystatus): Add prototype.
27908 * kern/term.c (grub_getkeystatus): New function.
27909
27910 * include/grub/i386/pc/memory.h
27911 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
27912 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
27913 Data Area layout.
27914 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
27915 (grub_console_term_input): Set `getkeystatus' member.
27916 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
27917 constants.
27918 (grub_usb_keyboard_getreport): Likewise.
27919 (grub_usb_keyboard_checkkey): Likewise.
27920 (grub_usb_keyboard_getkeystatus): New function.
27921 (grub_usb_keyboard_term): Set `getkeystatus' member.
27922
27923 * commands/keystatus.c: New file.
27924 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
27925 (keystatus_mod_SOURCES): New variable.
27926 (keystatus_mod_CFLAGS): Likewise.
27927 (keystatus_mod_LDFLAGS): Likewise.
27928 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
27929 commands/keystatus.c.
27930 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27931 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27932 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27934 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27935 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27936
27937 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27938
27939 Split befs.mod and afs.mod into *_be.mod and *.mod
27940
27941 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
27942 (grub_fstest_SOURCES): Likewise.
27943 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
27944 (afs_be_mod_SOURCES): New variable.
27945 (afs_be_mod_CFLAGS): Likewise.
27946 (afs_be_mod_LDFLAGS): Likewise.
27947 (befs_be_mod_SOURCES): Likewise.
27948 (befs_be_mod_CFLAGS): Likewise.
27949 (befs_be_mod_LDFLAGS): Likewise.
27950 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
27951 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27952 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27953 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27954 (grub_emu_SOURCES): Likewise.
27955 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27956 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27957 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27958 * fs/afs_be.c: New file.
27959 * fs/befs_be.c: New file.
27960 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
27961 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
27962 (U16): Replaced with ...
27963 (grub_afs_to_cpu16): ...this. All users updated.
27964 (U32): Replaced with ...
27965 (grub_afs_to_cpu32): ...this. All users updated.
27966 (U64): Replaced with ...
27967 (grub_afs_to_cpu64): ...this. All users updated.
27968 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
27969 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
27970 (grub_afs_validate_sblock): Check only one endianness.
27971 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27972 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27973 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27974 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27975 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27976 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27977 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27978 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27979
27980 2009-08-26 Bean <bean123ch@gmail.com>
27981
27982 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
27983 64-bit number.
27984 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
27985 (grub_xfs_inode_block): Change return type to grub_uint64_t.
27986 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
27987
27988 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27989
27990 NetBSD memory map support.
27991
27992 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
27993 (grub_netbsd_btinfo_mmap_header): New structure.
27994 (grub_netbsd_btinfo_mmap_entry): Likewise.
27995 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
27996
27997 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27998
27999 Enable bsd.mod on coreboot.
28000
28001 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28002 (bsd_mod_SOURCES): New variable.
28003 (bsd_mod_CFLAGS): Likewise.
28004 (bsd_mod_LDFLAGS): Likewise.
28005 (bsd_mod_ASFLAGS): Likewise.
28006 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28007 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28008
28009 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28010
28011 Cleanup NetBSD root support.
28012
28013 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28014 grub_bsd_get_device.
28015 Fix typo.
28016
28017 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28018
28019 * util/grub.d/00_header.in: Move check for the video backend of
28020 gfxterm from here ...
28021 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28022 a suitable video backend.
28023
28024 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28025
28026 Fix breakage in grub-setup.
28027
28028 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28029 "msdos_partition_map".
28030
28031 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28032
28033 Fix breakage in normal/auth.c.
28034
28035 * normal/auth.c (grub_iswordseparator): New function.
28036
28037 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28038
28039 Authentication support.
28040
28041 * commands/password.c: New file.
28042 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28043 (password_mod_SOURCES): New variable.
28044 (password_mod_CFLAGS): Likewise.
28045 (password_mod_LDFLAGS): Likewise.
28046 (normal_mod_SOURCES): Add normal/auth.c.
28047 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28048 normal/auth.c.
28049 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28050 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28051 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28053 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28054 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28055 * include/grub/auth.h: New file.
28056 * include/grub/err.h (grub_err_t): New enum value
28057 GRUB_ERR_ACCESS_DENIED.
28058 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28059 'users'.
28060 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28061 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28062 users updated.
28063 * normal/auth.c: New file.
28064 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28065 (grub_cmdline_run): Don't allow to go to command line without
28066 authentication.
28067 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28068 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28069 menuentry without superuser rights.
28070 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28071 user isn't a superuser.
28072
28073 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28074
28075 Save space by inlining misc.c functions.
28076
28077 * kern/misc.c (grub_iswordseparator): Made static.
28078 * kern/misc.c (grub_strcat): Moved from here ...
28079 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28080 * kern/misc.c (grub_strncat): Moved from here ...
28081 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28082 * kern/misc.c (grub_strcasecmp): Moved from here ...
28083 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28084 * kern/misc.c (grub_strncasecmp): Moved from here ...
28085 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28086 * kern/misc.c (grub_isalpha): Moved from here ...
28087 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28088 * kern/misc.c (grub_isdigit): Moved from here ...
28089 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28090 * kern/misc.c (grub_isgraph): Moved from here ...
28091 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28092 * kern/misc.c (grub_tolower): Moved from here ...
28093 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28094
28095 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28096
28097 * script/sh/function.c (grub_script_function_find): Cut error message
28098 not to flood terminal.
28099 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28100 limit.
28101 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28102
28103 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28104
28105 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28106 `report' grub_uint8_t *.
28107 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28108 Use a 50-millisecond timeout rather than just repeating
28109 grub_usb_keyboard_getreport 50 times.
28110 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28111
28112 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28113
28114 Rename *_partition_map to part_*
28115
28116 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28117 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28118 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28119 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28120 All users updated.
28121 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28122 All users updated.
28123 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28124 * util/grub-probe.c (probe_partmap): Don't transform partition name
28125 to get module name.
28126
28127 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28128
28129 Fix OpenBSD and NetBSD support.
28130
28131 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28132 memory address conflict.
28133 (OPENBSD_MMAP_ACPI): New definition.
28134 (OPENBSD_MMAP_NVS): Likewise.
28135 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28136 and OPENBSD_MMAP_NVS.
28137 Add memory map terminator
28138 Explicit cast when calling grub_unix_real_boot.
28139 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28140
28141 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28142
28143 Let user specify NetBSD root device.
28144
28145 * loader/i386/bsd.c (netbsd_root): New variable.
28146 (netbsd_opts): New option 'root'.
28147 (NETBSD_ROOT_ARG): New macro.
28148 (grub_netbsd_boot): Use 'netbsd_root'.
28149 (grub_bsd_unload): Free 'netbsd_root'.
28150 (grub_cmd_netbsd): Fill 'netbsd_root'.
28151
28152 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28153
28154 Support for 64-bit NetBSD.
28155
28156 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28157 point when booting non-FreeBSD.
28158
28159 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28160
28161 Support --no-smp and --no-acpi for NetBSD.
28162
28163 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28164 (NETBSD_AB_NOACPI): Likewise.
28165 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28166 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28167
28168 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28169
28170 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28171 errors.
28172 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28173 errors. Call grub_error when needed.
28174
28175 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28176
28177 * commands/search.c (search_fs): Try searching without autoload first.
28178 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28179 filesystem module explicitly for faster booting.
28180
28181 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28182
28183 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28184
28185 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28186
28187 * util/grub.d/30_os-prober.in: Disable os-prober if
28188 `GRUB_DISABLE_OS_PROBER' was set to true.
28189
28190 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28191
28192 * partmap/pc.c: Rename to ...
28193 * partmap/msdos.c: ... this. Update all users.
28194 (grub_pc_partition_map): Rename to ...
28195 (grub_msdos_partition_map): ... this. Update all users.
28196
28197 * parttool/pcpart.c: Rename to ...
28198 * parttool/msdospart.c: ... this. Update all users.
28199
28200 * include/grub/pc_partition.h: Rename to ...
28201 * include/grub/msdos_partition.h: ... this. Update all users.
28202 (grub_pc_partition_bsd_entry): Rename to ...
28203 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28204 (grub_pc_partition_disk_label): Rename to ...
28205 (grub_msdos_partition_disk_label): ... this. Update all users.
28206 (grub_pc_partition_entry): Rename to ...
28207 (grub_msdos_partition_entry): ... this. Update all users.
28208 (grub_pc_partition_mbr): Rename to ...
28209 (grub_msdos_partition_mbr): ... this. Update all users.
28210 (grub_pc_partition): Rename to ...
28211 (grub_msdos_partition): ... this. Update all users.
28212 (grub_pc_partition_is_empty): Rename to ...
28213 (grub_msdos_partition_is_empty): ... this. Update all users.
28214 (grub_pc_partition_is_extended): Rename to ...
28215 (grub_msdos_partition_is_extended): ... this. Update all users.
28216 (grub_pc_partition_is_bsd): Rename to ...
28217 (grub_msdos_partition_is_bsd): ... this. Update all users.
28218
28219 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28220 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28221 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28222 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28223 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28224 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28225 (gpt_mod_LDFLAGS): Rename to ...
28226 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28227 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28228 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28229 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28230 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28231 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28232 (part_gpt_mod_LDFLAGS): ... this.
28233 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28234 `pcpart.mod' to `msdospart.mod'.
28235 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28236 to ...
28237 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28238 (msdospart_mod_LDFLAGS): ... this.
28239
28240 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28241
28242 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28243 (openbsd_opts): Likewise.
28244 (netbsd_opts): Likewise.
28245 (freebsd_flags): Added 0 terminator.
28246 (openbsd_flags): Likewise.
28247 (netbsd_flags): Likewise.
28248 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28249 (grub_cmd_freebsd): Transformed into extended command.
28250 (grub_cmd_openbsd): Likewise.
28251 (grub_cmd_netbsd): Likewise.
28252 (cmd_freebsd): Changed type to grub_extcmd_t.
28253 (cmd_openbsd): Likewise.
28254 (cmd_netbsd): Likewise.
28255 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28256 grub_cmd_openbsd as extended commands.
28257 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28258 cmd_netbsd and cmd_openbsd
28259
28260 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28261
28262 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28263
28264 2009-08-21 Pavel Roskin <proski@gnu.org>
28265
28266 * Makefile.in (install-local): When checking if a file is in the
28267 build directory, use "test -e" to detect symlinks.
28268
28269 * Makefile.in (install-local): Remove all files in
28270 $(DESTDIR)$(pkglibdir) before installing new files there.
28271
28272 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28273
28274 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28275 grub-mkelfimage.
28276
28277 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28278
28279 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28280 explicitly specified by the user.
28281
28282 2009-08-18 Pavel Roskin <proski@gnu.org>
28283
28284 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28285 grub_uint8_t pointer for data.
28286 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28287 Likewise.
28288 * video/fb/fbutil.c: Remove unnecessary casts.
28289
28290 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28291
28292 VBE cleanup.
28293
28294 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28295 (grub_vbe_set_video_mode): Save active mode info
28296 only after setting the mode.
28297 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28298 second argument.
28299
28300 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28301
28302 Rename variables for clarity.
28303
28304 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28305 (active_vbe_mode_info): ... this. All users updated.
28306 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28307 All users updated.
28308 (initial_mode): Rename to ...
28309 (initial_vbe_mode): ... this. All users updated.
28310 (mode_in_use): Rename to ..
28311 (vbe_mode_in_use): ... this. All users updated.
28312 (mode_list): Rename to ..
28313 (vbe_mode_list): ... this. All users updated.
28314 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28315 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28316 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28317 'mode_list_size' to 'vbe_mode_list_size'.
28318 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28319 'best_mode_info' to 'best_vbe_mode_info' and
28320 'best_mode' to 'best_vbe_mode'
28321
28322 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28323
28324 Remove duplicate grub_video_fb_get_video_ptr.
28325
28326 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28327 (grub_video_fb_get_video_ptr): ... this.
28328 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28329 * video/fb/fbutil.c: Add comment about addressing.
28330 (get_data_ptr): Rename to ...
28331 (grub_video_fb_get_video_ptr): ... this. All users updated.
28332 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28333
28334 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28335
28336 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28337 grub_dprintf() that was just added.
28338
28339 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28340
28341 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28342 (DEFAULT_VIDEO_MODE): Remove macros.
28343 (grub_linux_boot): Remove assumption that Linux has FB support,
28344 and use "text" as default video mode.
28345
28346 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28347
28348 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28349 grub_dprintf.
28350 * fs/fat.c (grub_fat_read_data): Likewise.
28351
28352 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28353
28354 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28355 payload.
28356 (grub_module): Likewise.
28357
28358 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28359
28360 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28361 mbi->cmdline but free playground.
28362
28363 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28364
28365 Handle group offset on UFS1.
28366
28367 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28368 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28369
28370 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28371
28372 Split ufs.mod into ufs1.mod and ufs2.mod.
28373
28374 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28375 (grub_fstest_SOURCES): Likewise.
28376 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28377 (ufs_mod_SOURCES): Remove.
28378 (ufs_mod_CFLAGS): Likewise.
28379 (ufs_mod_LDFLAGS): Likewise.
28380 (ufs1_mod_SOURCES): New variable.
28381 (ufs1_mod_CFLAGS): Likewise.
28382 (ufs1_mod_LDFLAGS): Likewise.
28383 (ufs2_mod_SOURCES): New variable.
28384 (ufs2_mod_CFLAGS): Likewise.
28385 (ufs2_mod_LDFLAGS): Likewise.
28386 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28387 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28388 Likewise.
28389 (grub_emu_SOURCES): Likewise.
28390 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28391 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28392 (grub_setup_SOURCES): Likewise.
28393 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28394 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28395 (grub_setup_SOURCES): Likewise.
28396 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28397 Likewise.
28398 * fs/ufs2.c: New file.
28399 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28400
28401 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28402
28403 Framebuffer split.
28404
28405 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28406 subsystem at the end.
28407 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28408 (video_fb_mod_SOURCES): New variable.
28409 (video_fb_mod_CFLAGS): Likewise.
28410 (video_fb_mod_LDFLAGS): Likewise.
28411 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28412 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28413 * video/i386/pc/vbeblit.c: Moved from here ...
28414 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28415 * video/i386/pc/vbefill.c: Moved from here ...
28416 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28417 * video/i386/pc/vbeutil.c: Moved from here ...
28418 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28419 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28420 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28421 * include/grub/i386/pc/vbefill.h: Moved from here ...
28422 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28423 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28424 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28425 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28426 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28427 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28428 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28429 (grub_video_adapter): Added 'get_info_and_fini'.
28430 (grub_video_get_info_and_fini): New prototype.
28431 (grub_video_set_mode): make modestring const char *.
28432 * loader/i386/linux.c (grub_linux_setup_video): Use
28433 grub_video_get_info_and_fini.
28434 (grub_linux_boot): Move modesetting just before booting.
28435 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28436 grub_video_get_info_and_fini.
28437 * video/i386/pc/vbe.c: Moved framebuffer part ...
28438 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28439 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28440 grub_video_fbstd_colors and grub_video_fb_set_palette.
28441 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28442 grub_video_fb_init.
28443 (grub_video_vbe_fini): Use grub_video_fb_fini.
28444 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28445 render_target and use grub_video_fb_set_active_render_target and
28446 grub_video_fb_set_palette.
28447 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28448 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28449 (grub_video_vbe_adapter): Use framebuffer.
28450 * video/video.c (grub_video_get_info_and_fini): New function.
28451 (grub_video_set_mode): Make modestring const char *.
28452 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28453 values are already initialised.
28454
28455 2009-08-14 Pavel Roskin <proski@gnu.org>
28456
28457 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28458 ABS and APPLE_CC.
28459 * boot/i386/pc/diskboot.S: Likewise.
28460 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28461 sectors allow compilation on MacOSX.
28462 * conf/i386-pc.rmk: Enable unconditional compilation of
28463 lnxboot.img.
28464
28465 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28466
28467 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28468 * util/grub.d/00_header.in: Enter interruptible sleep if
28469 GRUB_HIDDEN_TIMEOUT is set.
28470
28471 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28472
28473 * include/grub/symbol.h: Add the LOCAL macro.
28474 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28475 starting with "L_".
28476
28477 2009-08-13 Pavel Roskin <proski@gnu.org>
28478
28479 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28480 any modern compilers we support.
28481
28482 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28483 Use local labels starting with "L_" so that Apple assembler
28484 knows they are local.
28485
28486 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28487
28488 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28489 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28490 (bsd_kernel_types): ... this enum.
28491
28492 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28493 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28494 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28495
28496 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28497 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28498 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28499 messages.
28500
28501 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28502
28503 * util/grub-dumpdevtree: Moved from here ...
28504 * util/i386/efi/grub-dumpdevtree: ... to here.
28505 (hexify): New function. Converts a string to its hex version.
28506 Generate hex versions of "efi" and "device-properties" by calling
28507 hexify() on the ASCII strings rather than by hardcoding numbers.
28508
28509 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28510
28511 * fs/jfs.c: Update copyright year.
28512
28513 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28514
28515 * util/grub.d/00_header.in: Fix a comment.
28516 * util/grub.d/10_linux.in: Likewise.
28517 * util/grub.d/10_windows.in: Likewise.
28518 * util/grub.d/10_hurd.in: Likewise.
28519
28520 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28521
28522 * util/grub-mkconfig.in: Allow the user to specify the used font
28523 with GRUB_FONT.
28524
28525 2009-08-08 Pavel Roskin <proski@gnu.org>
28526
28527 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28528 available, xfs.mod needs it now.
28529
28530 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28531 the "g" modifier in sed when the intention is to strip something
28532 once. This fixes comparison of kernels with multiple dashes.
28533
28534 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28535 on it. Add missing space before closing bracket. Fix
28536 misleading formatting.
28537
28538 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28539
28540 * docs/grub.texi: Major overhaul. Remove all sections that are
28541 specific to GRUB Legacy, or mostly composed of Legacy-specific
28542 information.
28543
28544 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28545
28546 * docs/version.texi: New file. Provides version information for
28547 grub.texi.
28548
28549 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28550
28551 * docs/grub.texi: Update CVS information to SVN.
28552 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28553
28554 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28555
28556 * util/grub-mkconfig.in: Remove a wrong `fi'.
28557
28558 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28559
28560 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28561 (grub_jfs_uuid): New function.
28562 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28563
28564 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28565
28566 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28567 of it to ...
28568 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28569 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28570
28571 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28572
28573 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28574 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28575 Update all users.
28576
28577 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28578 not just "vmlinu[zx]".
28579 Moved from here ...
28580 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28581 all users.
28582
28583 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28584 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28585 all users.
28586
28587 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28588
28589 * util/grub.d/10_freebsd.in: Use an absolute device path for
28590 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28591
28592 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28593
28594 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28595 handling of multiple abstraction modules.
28596
28597 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28598
28599 Fix a bug resulting in black screen when loading Linux using a
28600 packed video mode.
28601
28602 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28603 function.
28604
28605 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28606 (grub_vbe_bios_getset_dac_palette_width): New function.
28607 (grub_vbe_bios_get_dac_palette_width)
28608 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28609 grub_vbe_bios_getset_dac_palette_width()).
28610
28611 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28612 check for return status.
28613 (grub_vbe_get_video_mode_info): When getting information for a packed
28614 mode (<= 8 bpp), obtain DAC palette width using
28615 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28616 {red,green,blue}_mark_size.
28617
28618 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28619
28620 * commands/search.c (options): Fix help output to match actual code.
28621
28622 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28623
28624 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28625 of homegrown code.
28626
28627 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28628
28629 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
28630 on XFS or ReiserFS.
28631
28632 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28633
28634 Support Apple partition map with sector size different from 512 bytes.
28635
28636 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
28637 (apple_partition_map_iterate): Respect 'aheader.blocksize'
28638 and 'apart.partmap_size'.
28639
28640 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28641 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
28642
28643 Fix cpuid command.
28644
28645 * commands/i386/cpuid.c (options): New variable.
28646 (grub_cmd_cpuid): Return real error.
28647 (GRUB_MOD_INIT(cpuid)): Declare options.
28648
28649 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
28650
28651 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
28652 valid.
28653
28654 2009-07-31 Bean <bean123ch@gmail.com>
28655
28656 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
28657 log2_inode.
28658 (grub_fshelp_node): Move inode field to the end.
28659 (grub_xfs_data): Remove inode field.
28660 (grub_xfs_inode_block): Calculate inode size using sblock.
28661 (grub_xfs_inode_offset): Likewise.
28662 (grub_xfs_read_inode): Calculate inode size using sblock.
28663 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
28664 (grub_xfs_iterate_dir): Calculate inode size using sblock.
28665 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
28666 to match inode size.
28667 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
28668 not accessible when data is null.
28669 (grub_xfs_open): Likewise.
28670
28671 2009-07-31 Bean <bean123ch@gmail.com>
28672
28673 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
28674 Don't change pv->disk if it's already set.
28675
28676 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
28677 (grub_raid_register): ... here.
28678 (grub_raid_rescan): Removed.
28679
28680 * include/grub/raid.h (grub_raid_rescan): Removed.
28681
28682 * util/grub-fstest.c: Remove include file <grub/raid.h>.
28683 (fstest): Replace grub_raid_rescan with module fini function followed
28684 by init function.
28685
28686 * util/grub-probe.c: Add include file <grub/raid.h>.
28687 (probe_raid_level): New function.
28688 (probe): Detect abstraction by walking the disk device, support two
28689 level of abstraction (LVM on RAID) when detecting partition map.
28690
28691 2009-07-31 Pavel Roskin <proski@gnu.org>
28692
28693 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
28694 to grub_zalloc(), it was erroneous.
28695 Reported by Bean <bean123ch@gmail.com>
28696
28697 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
28698
28699 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
28700 embedding zone, not only the first one.
28701
28702 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
28703
28704 * term/gfxterm.c (clear_char): New function.
28705 (grub_virtual_screen_setup): Use clear_char.
28706 (scroll_up): Likewise.
28707 (grub_virtual_screen_cls): Likewise.
28708
28709 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
28710
28711 * util/deviceiter.c (get_acceleraid_disk_name): New static
28712 function.
28713 (grub_util_iterate_devices): Handle Accelraid devices.
28714 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
28715
28716 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
28717
28718 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
28719 separator for the suggested gfxpayload string (';' collides with the
28720 parser and needs escaping).
28721
28722 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
28723
28724 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
28725 Clear direction flag before jumping to OS.
28726 (grub_multiboot2_real_boot): Likewise.
28727
28728 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28729
28730 * util/i386/pc/grub-install: Fix parsing of --disk-module
28731 option.
28732
28733 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28734
28735 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
28736 when embedding.
28737
28738 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
28739
28740 * util/grub-mkconfig.in (package_version): New variable.
28741 Use it do display the version.
28742
28743 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28744
28745 * kern/file.c (grub_file_open): Revert to previous check with
28746 grub_errno.
28747
28748 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28749
28750 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
28751 from help line. It's out of sync with code.
28752
28753 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28754
28755 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
28756 entries on failed boot.
28757
28758 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28759
28760 * kern/file.c (grub_file_open): Fix an error check.
28761
28762 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
28763
28764 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
28765 partition map couldn't be identified.
28766
28767 2009-07-23 Pavel Roskin <proski@gnu.org>
28768
28769 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
28770 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
28771 case of little endian words becomes just an optimization.
28772 Respect const modifier.
28773 (md5_final): Use code that doesn't depend on endianness.
28774
28775 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
28776 to avoid loss of upper bits if align is unsigned and shorter
28777 than addr.
28778
28779 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28780
28781 UUID support for UFS
28782
28783 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
28784 (grub_ufs_uuid): New function.
28785 (grub_ufs_fs): add .uuid
28786
28787 2009-07-21 Pavel Roskin <proski@gnu.org>
28788
28789 * kern/dl.c (grub_dl_check_header): Make static.
28790
28791 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
28792
28793 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
28794 add drivemap for Vista. It breaks Windows 7.
28795
28796 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28797
28798 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
28799 128 bytes
28800
28801 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28802
28803 Add BFS support
28804
28805 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
28806 (grub_fstest_SOURCES): Likewise.
28807 (pkglib_MODULES): Add befs.mod.
28808 (befs_mod_SOURCES): New variable.
28809 (befs_mod_CFLAGS): Likewise.
28810 (befs_mod_LDFLAGS): Likewise.
28811 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28812 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28813 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28814 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28815 (grub_setup_SOURCES): Likewise.
28816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28817 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28818 (grub_setup_SOURCES): Likewise.
28819 * fs/befs.c: New file.
28820 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
28821 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
28822 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
28823 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
28824 (B_KEY_INDEX_ALIGN): New declaration.
28825 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
28826 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
28827 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
28828 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
28829 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
28830 (grub_afs_mount) [MODE_BFS]: Likewise.
28831 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
28832 (grub_afs_fs): Use GRUB_AFS_FSNAME
28833 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
28834 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
28835 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
28836 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
28837
28838 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
28839
28840 * util/getroot.c (find_root_device): Add support for MacOSX.
28841 * util/hostdisk.c: Likewise.
28842
28843 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28844
28845 * font/font.c (find_glyph): Check whether a font is present to avoid
28846 segmentation fault.
28847
28848 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
28849
28850 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
28851
28852 2009-07-20 Pavel Roskin <proski@gnu.org>
28853
28854 * configure.ac: Trim excessively wordy excuses.
28855
28856 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28857
28858 Add symlink, mtime and label support to AtheFS.
28859
28860 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
28861 (grub_afs_iterate_dir): Handle symlinks.
28862 (grub_afs_open): Use grub_afs_read_symlink.
28863 (grub_afs_dir): Likewise.
28864 Pass mtime.
28865 (grub_afs_label): New function.
28866 (grub_afs_fs): Add grub_afs_label.
28867 (grub_afs_read_symlink): New function.
28868
28869 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28870
28871 Fix AtheFS support.
28872
28873 * fs/afs.c: Fix comments style.
28874 (grub_afs_blockrun): Declare as packed.
28875 (grub_afs_datastream): Likewise.
28876 (grub_afs_bnode): Likewise.
28877 (grub_afs_btree): Likewise.
28878 (grub_afs_sblock): Likewise.
28879 Declare `name' as char.
28880 (grub_afs_inode): Declare as packed.
28881 Change void *vnode to grub_uint32_t unused.
28882 (grub_afs_iterate_dir): Check that key_size is positive.
28883 (grub_afs_mount): Don't read superblock twice.
28884 (grub_afs_dir): Don't free node in case of error,
28885 grub_fshelp_find_file already handles this.
28886 (grub_afs_open): Likewise.
28887
28888 2009-07-19 Pavel Roskin <proski@gnu.org>
28889
28890 * Makefile.in: Remove LIBLZO and enable_lzo.
28891 * conf/i386-pc.rmk: Remove lzo support.
28892 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
28893 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
28894 support.
28895 * kern/i386/pc/lzo1x.S: Remove.
28896 * kern/i386/pc/startup.S: Remove lzo support.
28897 * util/i386/pc/grub-mkimage.c: Likewise.
28898
28899 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
28900
28901 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
28902 * fs/xfs.c (grub_xfs_dir): Likewise.
28903 * fs/afs.c (grub_afs_dir): Likewise.
28904 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
28905 (grub_iso9660_open): Likewise.
28906 * fs/jfs.c (grub_jfs_open): Likewise.
28907 * fs/ext2.c (grub_ext2_dir): Likewise.
28908 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
28909 * script/sh/lexer.c (grub_script_yylex): Likewise.
28910
28911 2009-07-16 Pavel Roskin <proski@gnu.org>
28912
28913 * configure.ac: Never add "-c" to CFLAGS.
28914
28915 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
28916
28917 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
28918 grub_cv_cc_efiemu should be used.
28919
28920 * configure.ac: Typo fixes.
28921
28922 * kern/mm.c (grub_zalloc): New function.
28923 (grub_debug_zalloc): Likewise.
28924 * include/grub/mm.h: Declare grub_zalloc() and
28925 grub_debug_zalloc().
28926 * util/misc.c (grub_zalloc): New function.
28927 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
28928 instead of grub_malloc(), remove unneeded initializations.
28929 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
28930 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
28931 * commands/parttool.c (grub_cmd_parttool): Likewise.
28932 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
28933 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
28934 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
28935 * disk/usbms.c (grub_usbms_finddevs): Likewise.
28936 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
28937 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
28938 (grub_cmd_efiemu_pnvram): Likewise.
28939 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
28940 * fs/iso9660.c (grub_iso9660_mount): Likewise.
28941 (grub_iso9660_iterate_dir): Likewise.
28942 * fs/jfs.c (grub_jfs_opendir): Likewise.
28943 * fs/ntfs.c (list_file): Likewise.
28944 (grub_ntfs_mount): Likewise.
28945 * kern/disk.c (grub_disk_open): Likewise.
28946 * kern/dl.c (grub_dl_load_core): Likewise.
28947 * kern/elf.c (grub_elf_file): Likewise.
28948 * kern/env.c (grub_env_context_open): Likewise.
28949 (grub_env_set): Likewise.
28950 (grub_env_set_data_slot): Likewise.
28951 * kern/file.c (grub_file_open): Likewise.
28952 * kern/fs.c (grub_fs_blocklist_open): Likewise.
28953 * loader/i386/multiboot.c (grub_module): Likewise.
28954 * loader/xnu.c (grub_xnu_create_key): Likewise.
28955 (grub_xnu_create_value): Likewise.
28956 * normal/main.c (grub_normal_add_menu_entry): Likewise.
28957 (read_config_file): Likewise.
28958 * normal/menu_entry.c (make_screen): Likewise.
28959 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28960 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
28961 * script/sh/script.c (grub_script_parse): Likewise.
28962 * video/bitmap.c (grub_video_bitmap_create): Likewise.
28963 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
28964 * video/readers/png.c (grub_png_output_byte): Likewise.
28965 (grub_video_reader_png): Likewise.
28966
28967 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28968
28969 Enable all targets that can be built by default
28970
28971 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
28972 grub-mkfont and grub-fstest if they can be built
28973
28974 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28975
28976 Fix hang and segmentation fault in grub-emu-usb
28977
28978 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
28979 * util/usb.c (grub_libusb_devices): likewise
28980 (grub_libusb_init): rename to ...
28981 (GRUB_MOD_INIT (libusb)):...this
28982 (grub_libusb_fini): rename to ..
28983 (GRUB_MOD_FINI (libusb)):...this
28984 * disk/usbms.c (grub_usbms_transfer): fix retry logic
28985 * include/grub/disk.h (grub_raid_init): removed, it's useless
28986 (grub_raid_fini): likewise
28987 (grub_lvm_init): likewise
28988 (grub_lvm_fini): likewise
28989 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
28990 by grub_init_all
28991
28992 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28993
28994 Fix libusb
28995
28996 * Makefile.in (LIBUSB): new macro
28997 * genmk.rb (Utility/print_tail): new method
28998 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
28999 (top level): call util.print_tail at the end.
29000
29001 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29002
29003 Make FreeBSD accept zpool.cache
29004
29005 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29006 type is /boot/zfs/zpool.cache
29007
29008 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29009
29010 Fix 64-bit efiemu
29011
29012 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29013 correct wrong typedef
29014 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29015
29016 2009-07-15 Pavel Roskin <proski@gnu.org>
29017
29018 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29019 * kern/disk.c (struct grub_disk_cache): Likewise.
29020
29021 * commands/probe.c (options): Typo fix.
29022
29023 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29024 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29025 accordingly.
29026 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29027
29028 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29029 the end of "Error" to make the message more readable.
29030
29031 * boot/i386/pc/boot.S (kernel_segment): Remove.
29032 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29033 for destination.
29034
29035 * boot/i386/pc/boot.S (boot_version): Remove.
29036 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29037 Remove.
29038
29039 * include/grub/i386/pc/boot.h: Sort all offsets.
29040 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29041 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29042 * boot/i386/pc/boot.S: Assert location of every offset listed in
29043 include/grub/i386/pc/boot.h.
29044
29045 2009-07-13 Pavel Roskin <proski@gnu.org>
29046
29047 * include/grub/i386/coreboot/machine.h: Rename
29048 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29049 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29050 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29051
29052 * kern/dl.c: Force native word size to suppress warnings when
29053 compiling grub-emu.
29054
29055 * kern/device.c (grub_device_iterate): Change struct part_ent to
29056 hold the name, not a pointer to it. Use one grub_malloc() per
29057 partition, not two. Free partition_name if grub_malloc() fails.
29058 Set ents to NULL only before grub_partition_iterate() is called.
29059
29060 2009-07-11 Bean <bean123ch@gmail.com>
29061
29062 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29063 childname.
29064
29065 2009-07-10 Bean <bean123ch@gmail.com>
29066 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29067
29068 * kern/ieee1275/openfw.c (grub_children_iterate)
29069 (grub_devalias_iterate): Fix size evaluation for property or path
29070 strings, which was broken since r2132.
29071
29072 2009-07-07 Pavel Roskin <proski@gnu.org>
29073
29074 * commands/search.c (search_file): Merge into ...
29075 (search_fs): ... this. Accept search type as argument.
29076 (grub_cmd_search): Pass search type to search_fs().
29077
29078 * include/grub/util/console.h: New file.
29079 * util/console.c: Use it instead of grub/machine/console.h.
29080 * util/grub-emu.c: Likewise.
29081
29082 * lib/arg.c (find_long_option): Remove.
29083 (find_long): Add `len' argument, make `s' const char *.
29084 (grub_arg_parse): Parse long options in place, not in a
29085 temporary buffer.
29086
29087 2009-07-06 Pavel Roskin <proski@gnu.org>
29088
29089 * commands/search.c (search_fs): Fix potential NULL pointer
29090 dereference.
29091
29092 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29093 function pointer.
29094
29095 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29096
29097 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29098 comparison.
29099
29100 2009-07-05 Pavel Roskin <proski@gnu.org>
29101
29102 * include/grub/i386/linux.h (struct linux_kernel_params):
29103 Restore padding3, it's still needed.
29104
29105 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29106 FreeBSD.
29107 * util/osdetect.lua: Likewise.
29108
29109 2009-07-05 Bean <bean123ch@gmail.com>
29110
29111 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29112
29113 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29114 (grub_lua_getenv): Likewise.
29115 (grub_lua_setenv): Likewise.
29116 (save_errno): New function.
29117 (push_result): Likewise.
29118 (grub_lua_enum_device): Likewise.
29119 (grub_lua_enum_file): Likewise.
29120 (grub_lua_file_open): Likewise.
29121 (grub_lua_file_close): Likewise.
29122 (grub_lua_file_seek): Likewise.
29123 (grub_lua_file_read): Likewise.
29124 (grub_lua_file_getline): Likewise.
29125 (grub_lua_file_getsize): Likewise.
29126 (grub_lua_file_getpos): Likewise.
29127 (grub_lua_file_eof): Likewise.
29128 (grub_lua_file_exist): Likewise.
29129 (grub_lua_add_menu): Likewise.
29130
29131 * script/lua/grub_lua.h (isupper): New inline function.
29132 (islower): Likewise.
29133 (ispunct): Likewise.
29134 (isxdigit): Likewise.
29135 (strcspn): Change to normal function.
29136 (strpbkr): New function declaration.
29137 (memchr): Likewise.
29138
29139 * script/lua/grub_main.c (scan_str): New function.
29140 (strcspn): Likewise.
29141 (strpbrk): Likewise.
29142 (memchr): Likewise.
29143
29144 * script/lua/linit.c (lualibs): Enable the string library.
29145
29146 * util/osdetect.lua: New file.
29147
29148 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29149
29150 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29151 `capabilities' member.
29152
29153 2009-07-02 Pavel Roskin <proski@gnu.org>
29154
29155 * genparttoollist.sh: Add missing newline at the end.
29156
29157 2009-07-01 Pavel Roskin <proski@gnu.org>
29158
29159 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29160
29161 * util/hostdisk.c (open_device): Remove `const' from
29162 `sysctl_size', as sysctlbyname() can change it (in this case it
29163 doesn't actually happen).
29164
29165 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29166 using signed long int constants.
29167
29168 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29169 constant to avoid a warning on FreeBSD.
29170
29171 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29172 where it's needed.
29173
29174 * Makefile.in: Install include/grub/machine symlink.
29175
29176 * Makefile.in: When installing symlinks, use "cp -fR", which
29177 works on FreeBSD and MacOSX.
29178 From Yves Blusseau <cl7m42e02@sneakemail.com>
29179
29180 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29181 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29182
29183 * util/misc.c: Move grub_reboot() and grub_halt() ...
29184 * util/grub-emu.c: ... here. Make main_env static.
29185 * include/grub/util/misc.h: Remove main_env.
29186
29187 * kern/mm.c: Use correct format to print size_t.
29188
29189 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29190 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29191 * kern/powerpc/dl.c: Likewise.
29192 * kern/sparc64/dl.c: Likewise.
29193 * kern/x86_64/dl.c: Likewise.
29194
29195 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29196
29197 Fix grub-emu build on sparc64-ieee1275.
29198
29199 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29201
29202 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29203
29204 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29205 (grub_reboot, grub_halt): New functions.
29206
29207 * util/i386/pc/misc.c: Delete. Update all users.
29208 * util/sparc64/ieee1275/misc.c: Likewise.
29209 * util/powerpc/ieee1275/misc.c: Likewise.
29210
29211 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29212
29213 * conf/i386.rmk (setjmp_mod_SOURCES)
29214 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29215 * conf/common.rmk (setjmp_mod_SOURCES)
29216 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29217 to use $(target_cpu).
29218 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29219 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29220 * conf/powerpc-ieee1275.rmk: Likewise.
29221 * conf/sparc64-ieee1275.rmk: Likewise.
29222
29223 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29224 $(target_cpu) for kern/$(target_cpu)/dl.c.
29225 * conf/i386-efi.rmk: Likewise.
29226 * conf/i386-ieee1275.rmk: Likewise.
29227 * conf/x86_64-efi.rmk: Likewise.
29228 * conf/i386-coreboot.rmk: Likewise.
29229 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29230 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29231 kern/$(target_cpu)/cache.S.
29232 * conf/sparc64-ieee1275.rmk: Likewise.
29233
29234 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29235
29236 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29237 type to `grub_uint8_t', and adjust `padding9' accordingly.
29238
29239 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29240
29241 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29242
29243 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29244 assembly in final jump, using register constraints.
29245
29246 (grub_linux_boot): For text mode, initialize `have_vga' using
29247 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29248
29249 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29250 right before the final jump.
29251
29252 Set `video_mode' to 0x3.
29253
29254 Document initialization of `video_page', `video_mode' and
29255 `video_ega_bx'.
29256
29257 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29258
29259 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29260 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29261 and set GRUB_LINUX_FLAG_QUIET appropriately.
29262
29263 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29264
29265 Fix build on Debian / sparc.
29266
29267 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29268
29269 2009-06-28 Pavel Roskin <proski@gnu.org>
29270
29271 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29272 fix a warning.
29273
29274 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29275
29276 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29277
29278 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29279 `err'.
29280
29281 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29282
29283 Revert r2338.
29284
29285 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29286 file can't be opened. grub_file_open() is already supposed to set
29287 grub_errno / grub_errmsg appropriately.
29288 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29289
29290 2009-06-27 Pavel Roskin <proski@gnu.org>
29291 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29292
29293 * include/grub/dl.h: Include grub/elf.h.
29294 (struct grub_dl): Add symtab field.
29295 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29296 GRUB_MODULES_MACHINE_READONLY.
29297 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29298 of the header for read-only modules.
29299 (grub_dl_unload): Free mod->symtab for read-only modules.
29300 * kern/i386/dl.c: Use mod->symtab.
29301 * kern/powerpc/dl.c: Likewise.
29302 * kern/sparc64/dl.c: Likewise.
29303 * kern/x86_64/dl.c: Likewise.
29304
29305 * conf/i386-qemu.rmk: New file.
29306 * kern/i386/qemu/startup.S: Likewise.
29307 * kern/i386/qemu/mmap.c: Likewise.
29308 * boot/i386/qemu/boot.S: Likewise.
29309 * include/grub/i386/qemu/time.h: Likewise.
29310 * include/grub/i386/qemu/serial.h: Likewise.
29311 * include/grub/i386/qemu/kernel.h: Likewise.
29312 * include/grub/i386/qemu/console.h: Likewise.
29313 * include/grub/i386/qemu/boot.h: Likewise.
29314 * include/grub/i386/qemu/init.h: Likewise.
29315 * include/grub/i386/qemu/machine.h: Likewise.
29316 * include/grub/i386/qemu/loader.h: Likewise.
29317 * include/grub/i386/qemu/memory.h: Likewise.
29318
29319 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29320 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29321 [qemu] (pkglib_IMAGES): Add `boot.img'.
29322 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29323 [qemu] (boot_img_FORMAT): New variables.
29324 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29325 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29326 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29327 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29328 [qemu] (kernel_img_FORMAT): New variables.
29329
29330 * configure.ac: Recognise `i386-qemu'.
29331
29332 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29333 (for no compression).
29334 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29335 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29336 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29337 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29338 ifdefs).
29339
29340 2009-06-27 Pavel Roskin <proski@gnu.org>
29341
29342 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29343 read.
29344 * efiemu/prepare32.c: Likewise.
29345 * efiemu/prepare64.c: Likewise.
29346
29347 2009-06-26 Pavel Roskin <proski@gnu.org>
29348
29349 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29350 * include/grub/elf.h: Define symbols without "32" or "64" based
29351 on GRUB_TARGET_WORDSIZE.
29352 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29353 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29354 ELF definitions.
29355 * efiemu/loadcore64.c: Likewise.
29356 * loader/i386/bsd32.c: Likewise.
29357 * loader/i386/bsd64.c: Likewise.
29358 * kern/dl.c: Remove own ELF definitions.
29359 * util/i386/efi/grub-mkimage.c: Likewise.
29360
29361 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29362
29363 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29364 segment 0x0 unconditionally, because the reference generated by
29365 GAS is an absolute address.
29366
29367 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29368
29369 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29370 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29371
29372 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29373
29374 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29375 indexes. Check for -f explicitly.
29376 (search_file): Improve error message.
29377 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29378
29379 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29380
29381 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29382 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29383
29384 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29385
29386 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29387 * conf/i386-ieee1275.rmk: Likewise.
29388 * conf/i386-coreboot.rmk: Likewise.
29389
29390 * kern/i386/pc/startup.S (grub_stop): Remove function.
29391 * kern/i386/ieee1275/startup.S: Likewise.
29392 * kern/i386/coreboot/startup.S: Likewise.
29393 * kern/i386/misc.S (grub_stop): New function.
29394
29395 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29396
29397 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29398 * kern/i386/realmode.S (real_to_prot): ... to here.
29399
29400 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29401
29402 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29403 with `kernel.img'.
29404 (kernel_elf_SOURCES): Rename to ...
29405 (kernel_img_SOURCES): ... this.
29406 (kernel_elf_HEADERS): Rename to ...
29407 (kernel_img_HEADERS): ... this. Update all users.
29408 (kernel_elf_ASFLAGS): Rename to ...
29409 (kernel_img_ASFLAGS): ... this.
29410 (kernel_elf_CFLAGS): Rename to ...
29411 (kernel_img_CFLAGS): ... this.
29412 (kernel_elf_LDFLAGS): Rename to ...
29413 (kernel_img_LDFLAGS): ... this.
29414 * conf/i386-coreboot.rmk: Likewise.
29415 * conf/powerpc-ieee1275.rmk: Likewise.
29416
29417 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29418 with "kernel.img".
29419
29420 2009-06-21 Pavel Roskin <proski@gnu.org>
29421
29422 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29423 to match nested functions.
29424 * loader/sparc64/ieee1275/linux.c: Likewise.
29425
29426 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29427
29428 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29429
29430 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29431 all i386 platforms.
29432
29433 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29434
29435 Fix asm file handling on ELF, and remove workarounds.
29436
29437 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29438 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29439 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29440 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29441
29442 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29443
29444 Load BSD ELF modules
29445
29446 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29447 and loader/i386/bsd64.c
29448 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29449 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29450 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29451 (grub_freebsd_load_elfmodule32): New declaration
29452 (grub_freebsd_load_elfmoduleobj64): Likewise
29453 (grub_freebsd_load_elf_meta32): Likewise
29454 (grub_freebsd_load_elf_meta64): Likewise
29455 (grub_freebsd_add_meta): Likewise
29456 (grub_freebsd_add_meta_module): Likewise
29457 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29458 (grub_freebsd_add_meta_module): Likewise and move module-specific
29459 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29460 (grub_cmd_freebsd): Add elf-kernel specific parts
29461 based on grub_freebsd_add_meta_module
29462 (grub_cmd_freebsd_module): Add type parsing moved from
29463 grub_freebsd_add_meta_module
29464 (grub_cmd_freebsd_module_elf): New function
29465 (cmd_freebsd_module_elf): New variable
29466 (GRUB_MOD_INIT): Register freebsd_module_elf
29467 * loader/i386/bsd32.c: New file
29468 * loader/i386/bsd64.c: Likewise
29469 * loader/i386/bsdXX.c: Likewise
29470 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29471 (grub_elf64_load): Likewise
29472 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29473 All users updated
29474 (grub_elf64_load_hook_t): Likewise
29475
29476 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29477
29478 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29479 variable.
29480 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29481 don't write a menu entry for recovery mode.
29482
29483 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29484
29485 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29486 after it's no longer needed.
29487
29488 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29489
29490 * include/grub/i386/loader.h (grub_linux_prot_size)
29491 (grub_linux_tmp_addr, grub_linux_real_addr)
29492 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29493 GRUB_MACHINE_PCBIOS.
29494 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29495 common grub_util_info() call to ...
29496 (generate_image): ... here.
29497 Fix use of uninitialized memory, comparison of signed with
29498 unsigned integers and memory leak.
29499 Remove bogus module address message.
29500
29501 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29502
29503 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29504 grub_raid_register
29505 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29506
29507 2009-06-19 Pavel Roskin <proski@gnu.org>
29508
29509 * configure.ac: Remove stray AC_MSG_CHECKING.
29510
29511 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29512
29513 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29514
29515 2009-06-18 Pavel Roskin <proski@gnu.org>
29516
29517 * conf/common.rmk: Add fs_file.mod.
29518 * disk/fs_file.c: New file.
29519 * include/grub/disk.h (enum grub_disk_dev_id): Add
29520 GRUB_DISK_DEVICE_FILE_ID.
29521
29522 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29523
29524 Fix build with Apple's toolchain. Part 2
29525
29526 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29527 a fake start
29528
29529 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29530
29531 Fix build with Apple's toolchain. Part 1
29532
29533 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29534 for long calls
29535 * configure.ac: remove a leftover AC_MSG_RESULT
29536 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29537 Apple's toolchain
29538
29539 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29540
29541 Fix warnings
29542
29543 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29544 (decomp_block): initialize ch
29545 use grub_memcpy instead of memcpy
29546
29547 2009-06-17 Pavel Roskin <proski@gnu.org>
29548
29549 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29550 version, use declarations needed to use vga_text as the startup
29551 console.
29552
29553 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29554 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29555 the kernel.
29556 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29557 and grub_at_keyboard_fini(), it's done on module load and
29558 unload.
29559
29560 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29561
29562 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29563 file can't be found.
29564 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29565
29566 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29567
29568 Fix newline handling
29569
29570 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29571 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29572 (grub_script_yylex): don't segfault on unterminated script
29573 newline terminates command and variable
29574
29575 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29576
29577 avoid double grub_adjust_range call. Bug reported by David Simner
29578
29579 * kern/disk.c (grub_disk_write): change to raw disk access before
29580 calling disk_read
29581
29582 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29583
29584 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29585 spaces, for the benefit of help2man.
29586 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29587
29588 2009-06-16 Pavel Roskin <proski@gnu.org>
29589
29590 * kern/i386/halt.c: Include grub/machine/init.h.
29591 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29592
29593 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29594
29595 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29596 drivemap menuentry.
29597
29598 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29599
29600 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29601 `echo' command.
29602
29603 2009-06-16 Pavel Roskin <proski@gnu.org>
29604
29605 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29606 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29607 save %dx, we only need %dl and we never change it.
29608 * boot/i386/pc/cdboot.S: Don't set the root drive.
29609 * boot/i386/pc/pxeboot.S: Likewise.
29610 * include/grub/i386/pc/boot.h: Remove
29611 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29612 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29613 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29614 * kern/i386/pc/init.c (make_install_device): Remove references
29615 to grub_root_drive.
29616 * kern/i386/pc/startup.S: Likewise.
29617 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29618
29619 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29620
29621 xnu_uuid command
29622
29623 * commands/xnu_uuid.c: new file
29624 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29625 (xnu_uuid_mod_SOURCES): new variable
29626 (xnu_uuid_mod_CFLAGS): likewise
29627 (xnu_uuid_mod_LDFLAGS): likewise
29628 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29629 * conf/i386-ieee1275.rmk: likewise
29630 * conf/i386-pc.rmk: likewise
29631 * conf/powerpc-ieee1275.rmk: likewise
29632 * conf/sparc64-ieee1275.rmk: likewise
29633 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
29634
29635 2009-06-16 Pavel Roskin <proski@gnu.org>
29636
29637 * configure.ac: Avoid '==' in test command, it's not portable.
29638
29639 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29640
29641 Probe command
29642
29643 * commands/probe.c: new file
29644 * conf/common.rmk (pkglib_MODULES): add probe.mod
29645 (probe_mod_SOURCES): new variable
29646 (probe_mod_CFLAGS): likewise
29647 (probe_mod_LDFLAGS): likewise
29648 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29649 * conf/i386-ieee1275.rmk: likewise
29650 * conf/i386-pc.rmk: likewise
29651 * conf/powerpc-ieee1275.rmk: likewise
29652 * conf/sparc64-ieee1275.rmk: likewise
29653
29654 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
29655
29656 Fix handling of string like \"hello\" and "a
29657 b"
29658
29659 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
29660 (grub_script_yylex): fix parsing of quoting, escaping and newline
29661
29662 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
29663
29664 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
29665 handling
29666
29667 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
29668
29669 * util/grub-mkconfig.in: Fix parsing of --output option.
29670
29671 2009-06-12 Pavel Roskin <proski@gnu.org>
29672
29673 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
29674 genmk.rb don't need to be generated or installed.
29675
29676 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
29677
29678 * commands/i386/pc/drivemap_int13h.S: add more comments
29679
29680 2009-06-11 Pavel Roskin <proski@gnu.org>
29681
29682 * Makefile.in (uninstall): Uninstall manuals.
29683
29684 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
29685 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
29686 and update-grub_lib in two places.
29687 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
29688
29689 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
29690 a compiler warning.
29691
29692 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
29693 `entry_lo' to fix variable shadowing.
29694
29695 2009-06-11 Christian Franke <franke@computer.org>
29696
29697 * kern/misc.c (__enable_execute_stack): Add missing return type
29698 to prevent gcc warning.
29699
29700 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29701
29702 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
29703
29704 2009-06-11 Pavel Roskin <proski@gnu.org>
29705
29706 * Makefile.in: Don't rely on any scripts being executable.
29707 Always use $(SHELL) to run shell scripts.
29708
29709 * configure.ac: Always define ___main if using -nostdlib. This
29710 fixes tests on Cygwin.
29711
29712 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
29713
29714 UDF fix
29715
29716 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
29717 is in bytes and not in blocks
29718
29719 2009-06-11 Pavel Roskin <proski@gnu.org>
29720
29721 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
29722 warning.
29723
29724 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29725
29726 * util/grub.d/30_os-prober.in: Fix a comment. Source
29727 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
29728 to set the root device. Place drivemap command in the generated
29729 chain entry.
29730
29731 2009-06-11 Pavel Roskin <proski@gnu.org>
29732
29733 * configure.ac: Remove host_m32. Issues with 64-bit utilities
29734 have long been resolved.
29735
29736 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
29737
29738 * util/grub.d/10_linux.in: Capitalise "Linux".
29739
29740 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
29741
29742 2009-06-11 Pavel Roskin <proski@gnu.org>
29743
29744 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
29745 fix a gcc warning and ensure that the function won't ever exit.
29746
29747 * kern/i386/ieee1275/init.c: Add missing prototype for
29748 grub_stop_floppy().
29749
29750 * loader/ieee1275/multiboot2.c [__i386__]: Include
29751 grub/cpu/multiboot.h.
29752
29753 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
29754 casts to short - they are not portable and cause warnings. Fix
29755 use of uninitialized values in input_buf. Use ARRAY_SIZE.
29756
29757 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
29758
29759 Drivemap fixes
29760
29761 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
29762 new function
29763 (grub_get_root_biosnumber_saved): new variable
29764 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
29765 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
29766 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
29767 %dx after the call if necessary
29768 * conf/common.rmk (pkglib_MODULES): remove boot.mod
29769 (boot_mod_SOURCES): remove
29770 (boot_mod_CFLAGS): remove
29771 (boot_mod_LDFLAGS): remove
29772 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
29773 (boot_mod_SOURCES): new variable
29774 (boot_mod_CFLAGS): likewise
29775 (boot_mod_LDFLAGS): likewise
29776 * conf/i386-efi.rmk: likewise
29777 * conf/i386-ieee1275.rmk: likewise
29778 * conf/i386-pc.rmk: likewise
29779 * conf/powerpc-ieee1275.rmk: likewise
29780 * conf/sparc64-ieee1275.rmk: likewise
29781 * conf/x86_64-efi.rmk: likewise
29782 * include/grub/i386/pc/biosnum.h: new file
29783 * lib/i386/pc/biosnum.c: likewise
29784 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
29785 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
29786 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
29787
29788 2009-06-10 Pavel Roskin <proski@gnu.org>
29789
29790 * io/gzio.c (test_header): Don't reuse one buffer for all data.
29791 Use separate variables. Read only the file size at the end, but
29792 not the checksum that we don't use.
29793
29794 * kern/file.c (grub_file_read): Use void pointer for the buffer.
29795 Adjust all callers.
29796
29797 * kern/ieee1275/openfw.c: Remove libc includes.
29798 * kern/ieee1275/cmain.c: Likewise.
29799 * include/grub/ieee1275/ieee1275.h: Likewise.
29800
29801 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
29802 compiler warnings.
29803
29804 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29805
29806 * Makefile.in: Remove all trailing whitespace.
29807 * conf/i386-pc.rmk: Likewise.
29808 * conf/powerpc-ieee1275.rmk: Likewise.
29809 * conf/sparc64-ieee1275.rmk: Likewise.
29810 * docs/grub.texi: Likewise.
29811 * docs/texinfo.tex: Likewise.
29812 * disk/fs_uuid.c: Likewise.
29813 * disk/lvm.c: Likewise.
29814 * disk/scsi.c: Likewise.
29815 * disk/ata.c: Likewise.
29816 * disk/ieee1275/ofdisk.c: Likewise.
29817 * disk/i386/pc/biosdisk.c: Likewise.
29818 * disk/host.c: Likewise.
29819 * disk/raid.c: Likewise.
29820 * disk/efi/efidisk.c: Likewise.
29821 * disk/usbms.c: Likewise.
29822 * disk/memdisk.c: Likewise.
29823 * disk/loopback.c: Likewise.
29824 * kern/powerpc/dl.c: Likewise.
29825 * kern/device.c: Likewise.
29826 * kern/dl.c: Likewise.
29827 * kern/sparc64/dl.c: Likewise.
29828 * kern/ieee1275/ieee1275.c: Likewise.
29829 * kern/term.c: Likewise.
29830 * kern/fs.c: Likewise.
29831 * kern/i386/dl.c: Likewise.
29832 * kern/i386/pc/startup.S: Likewise.
29833 * kern/i386/pc/init.c: Likewise.
29834 * kern/i386/pc/mmap.c: Likewise.
29835 * kern/i386/pc/lzo1x.S: Likewise.
29836 * kern/i386/ieee1275/init.c: Likewise.
29837 * kern/i386/realmode.S: Likewise.
29838 * kern/i386/tsc.c: Likewise.
29839 * kern/partition.c: Likewise.
29840 * kern/corecmd.c: Likewise.
29841 * kern/file.c: Likewise.
29842 * kern/efi/efi.c: Likewise.
29843 * kern/efi/init.c: Likewise.
29844 * kern/efi/mm.c: Likewise.
29845 * kern/main.c: Likewise.
29846 * kern/err.c: Likewise.
29847 * kern/env.c: Likewise.
29848 * kern/disk.c: Likewise.
29849 * kern/generic/millisleep.c: Likewise.
29850 * kern/generic/rtc_get_time_ms.c: Likewise.
29851 * kern/misc.c: Likewise.
29852 * kern/parser.c: Likewise.
29853 * genmk.rb: Likewise.
29854 * configure.ac: Likewise.
29855 * boot/i386/pc/diskboot.S: Likewise.
29856 * boot/i386/pc/pxeboot.S: Likewise.
29857 * boot/i386/pc/boot.S: Likewise.
29858 * boot/i386/pc/lnxboot.S: Likewise.
29859 * boot/i386/pc/cdboot.S: Likewise.
29860 * parttool/pcpart.c: Likewise.
29861 * video/readers/tga.c: Likewise.
29862 * video/video.c: Likewise.
29863 * video/bitmap.c: Likewise.
29864 * lib/envblk.c: Likewise.
29865 * lib/i386/setjmp.S: Likewise.
29866 * fs/xfs.c: Likewise.
29867 * fs/afs.c: Likewise.
29868 * fs/fat.c: Likewise.
29869 * fs/ntfs.c: Likewise.
29870 * fs/udf.c: Likewise.
29871 * fs/affs.c: Likewise.
29872 * fs/iso9660.c: Likewise.
29873 * fs/hfs.c: Likewise.
29874 * fs/fshelp.c: Likewise.
29875 * fs/ext2.c: Likewise.
29876 * fs/jfs.c: Likewise.
29877 * fs/reiserfs.c: Likewise.
29878 * fs/hfsplus.c: Likewise.
29879 * fs/minix.c: Likewise.
29880 * fs/cpio.c: Likewise.
29881 * fs/sfs.c: Likewise.
29882 * fs/ufs.c: Likewise.
29883 * efiemu/prepare.c: Likewise.
29884 * efiemu/loadcore_common.c: Likewise.
29885 * efiemu/runtime/efiemu.sh: Likewise.
29886 * efiemu/runtime/efiemu.S: Likewise.
29887 * efiemu/runtime/efiemu.c: Likewise.
29888 * efiemu/pnvram.c: Likewise.
29889 * efiemu/main.c: Likewise.
29890 * efiemu/i386/pc/cfgtables.c: Likewise.
29891 * efiemu/i386/loadcore64.c: Likewise.
29892 * efiemu/i386/loadcore32.c: Likewise.
29893 * efiemu/loadcore.c: Likewise.
29894 * efiemu/symbols.c: Likewise.
29895 * efiemu/mm.c: Likewise.
29896 * include/grub/autoefi.h: Likewise.
29897 * include/grub/datetime.h: Likewise.
29898 * include/grub/term.h: Likewise.
29899 * include/grub/hfs.h: Likewise.
29900 * include/grub/lvm.h: Likewise.
29901 * include/grub/i386/tsc.h: Likewise.
29902 * include/grub/i386/linux.h: Likewise.
29903 * include/grub/i386/xnu.h: Likewise.
29904 * include/grub/i386/efiemu.h: Likewise.
29905 * include/grub/i386/pc/biosdisk.h: Likewise.
29906 * include/grub/i386/pc/memory.h: Likewise.
29907 * include/grub/i386/pc/vbe.h: Likewise.
29908 * include/grub/parttool.h: Likewise.
29909 * include/grub/video.h: Likewise.
29910 * include/grub/memory.h: Likewise.
29911 * include/grub/fs.h: Likewise.
29912 * include/grub/partition.h: Likewise.
29913 * include/grub/xnu.h: Likewise.
29914 * include/grub/efi/api.h: Likewise.
29915 * include/grub/efi/pe32.h: Likewise.
29916 * include/grub/efi/memory.h: Likewise.
29917 * include/grub/multiboot.h: Likewise.
29918 * include/grub/usbdesc.h: Likewise.
29919 * include/grub/multiboot2.h: Likewise.
29920 * include/grub/acpi.h: Likewise.
29921 * include/grub/efiemu/efiemu.h: Likewise.
29922 * include/grub/disk.h: Likewise.
29923 * include/grub/ieee1275/ieee1275.h: Likewise.
29924 * include/grub/net.h: Likewise.
29925 * include/grub/machoload.h: Likewise.
29926 * include/grub/macho.h: Likewise.
29927 * include/multiboot.h: Likewise.
29928 * genmoddep.awk: Likewise.
29929 * normal/main.c: Likewise.
29930 * normal/menu_entry.c: Likewise.
29931 * normal/menu_viewer.c: Likewise.
29932 * normal/completion.c: Likewise.
29933 * normal/cmdline.c: Likewise.
29934 * normal/misc.c: Likewise.
29935 * normal/datetime.c: Likewise.
29936 * bus/usb/usbtrans.c: Likewise.
29937 * bus/usb/ohci.c: Likewise.
29938 * bus/usb/uhci.c: Likewise.
29939 * bus/usb/usb.c: Likewise.
29940 * mmap/efi/mmap.c: Likewise.
29941 * mmap/i386/pc/mmap_helper.S: Likewise.
29942 * mmap/i386/pc/mmap.c: Likewise.
29943 * mmap/i386/mmap.c: Likewise.
29944 * mmap/i386/uppermem.c: Likewise.
29945 * mmap/mmap.c: Likewise.
29946 * commands/acpi.c: Likewise.
29947 * commands/echo.c: Likewise.
29948 * commands/blocklist.c: Likewise.
29949 * commands/loadenv.c: Likewise.
29950 * commands/usbtest.c: Likewise.
29951 * commands/boot.c: Likewise.
29952 * commands/parttool.c: Likewise.
29953 * commands/search.c: Likewise.
29954 * commands/cat.c: Likewise.
29955 * commands/i386/pc/play.c: Likewise.
29956 * commands/i386/pc/drivemap.c: Likewise.
29957 * commands/i386/pc/vbeinfo.c: Likewise.
29958 * commands/i386/pc/acpi.c: Likewise.
29959 * commands/i386/pc/vbetest.c: Likewise.
29960 * commands/ls.c: Likewise.
29961 * commands/cmp.c: Likewise.
29962 * commands/test.c: Likewise.
29963 * commands/efi/acpi.c: Likewise.
29964 * commands/gptsync.c: Likewise.
29965 * commands/help.c: Likewise.
29966 * partmap/amiga.c: Likewise.
29967 * partmap/apple.c: Likewise.
29968 * partmap/acorn.c: Likewise.
29969 * partmap/pc.c: Likewise.
29970 * partmap/sun.c: Likewise.
29971 * partmap/gpt.c: Likewise.
29972 * script/sh/lexer.c: Likewise.
29973 * script/sh/function.c: Likewise.
29974 * font/font.c: Likewise.
29975 * font/font_cmd.c: Likewise.
29976 * loader/powerpc/ieee1275/linux.c: Likewise.
29977 * loader/efi/chainloader.c: Likewise.
29978 * loader/multiboot_loader.c: Likewise.
29979 * loader/macho.c: Likewise.
29980 * loader/i386/multiboot.c: Likewise.
29981 * loader/i386/linux.c: Likewise.
29982 * loader/i386/pc/linux.c: Likewise.
29983 * loader/i386/pc/multiboot2.c: Likewise.
29984 * loader/i386/pc/chainloader.c: Likewise.
29985 * loader/i386/pc/xnu.c: Likewise.
29986 * loader/i386/bsd_trampoline.S: Likewise.
29987 * loader/i386/efi/linux.c: Likewise.
29988 * loader/i386/multiboot_elfxx.c: Likewise.
29989 * loader/i386/bsd_helper.S: Likewise.
29990 * loader/i386/bsd.c: Likewise.
29991 * loader/i386/linux_trampoline.S: Likewise.
29992 * loader/i386/xnu_helper.S: Likewise.
29993 * loader/i386/xnu.c: Likewise.
29994 * loader/i386/bsd_pagetable.c: Likewise.
29995 * loader/i386/multiboot_helper.S: Likewise.
29996 * loader/xnu.c: Likewise.
29997 * loader/xnu_resume.c: Likewise.
29998 * io/gzio.c: Likewise.
29999 * term/efi/console.c: Likewise.
30000 * term/terminfo.c: Likewise.
30001 * term/ieee1275/ofconsole.c: Likewise.
30002 * term/i386/pc/serial.c: Likewise.
30003 * term/i386/pc/vesafb.c: Likewise.
30004 * term/i386/pc/vga.c: Likewise.
30005 * term/usb_keyboard.c: Likewise.
30006 * term/gfxterm.c: Likewise.
30007 * aclocal.m4: Likewise.
30008 * util/lvm.c: Likewise.
30009 * util/grub.d/30_os-prober.in: Likewise.
30010 * util/grub.d/10_hurd.in: Likewise.
30011 * util/console.c: Likewise.
30012 * util/grub-macho2img.c: Likewise.
30013 * util/grub-probe.c: Likewise.
30014 * util/hostfs.c: Likewise.
30015 * util/i386/pc/grub-mkimage.c: Likewise.
30016 * util/i386/pc/grub-setup.c: Likewise.
30017 * util/i386/efi/grub-mkimage.c: Likewise.
30018 * util/grub-mkconfig.in: Likewise.
30019 * util/raid.c: Likewise.
30020 * util/resolve.c: Likewise.
30021 * util/grub-mkdevicemap.c: Likewise.
30022 * util/grub-emu.c: Likewise.
30023 * util/getroot.c: Likewise.
30024 * util/hostdisk.c: Likewise.
30025 * util/usb.c: Likewise.
30026 * util/grub-editenv.c: Likewise.
30027 * util/misc.c: Likewise.
30028
30029 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30030
30031 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30032 `genparttoollist.sh'.
30033 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30034 Add `*.sh' to the list find searches for and change `mdate.sh'
30035 to `mdate-sh'.
30036
30037 2009-06-10 Pavel Roskin <proski@gnu.org>
30038
30039 * include/grub/multiboot2.h: Provide compatibility defines for
30040 multiboot2.h.
30041 * include/multiboot2.h: Include stdint.h only if needed, using
30042 angle brackets.
30043 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30044 grub/multiboot2.h.
30045 * loader/ieee1275/multiboot2.c: Likewise.
30046 * loader/multiboot2.c: Likewise.
30047 * loader/multiboot_loader.c: Likewise.
30048
30049 * configure.ac: Use -nostdlib when probing for the target. It
30050 should not be required to have libc for the target.
30051
30052 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30053 they fail without libc headers for the target.
30054 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30055 exports.
30056 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30057 preprocessor conditionals.
30058
30059 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30060 build system doesn't need to be aware of the tar.c internals.
30061
30062 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30063
30064 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30065
30066 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30067
30068 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30069 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30070
30071 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30072
30073 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30074 aren't available if ata.mod gets used.
30075
30076 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30077
30078 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30079 initialising controller.
30080 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30081
30082 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30083
30084 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30085 to choose between ata and biosdisk module on i386-pc.
30086
30087 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30088
30089 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30090 Subclass and Programming Interface fields in terms of the 3 byte
30091 Class Code register.
30092 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30093
30094 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30095 interface is OHCI. Add grub_dprintf for symmetry with
30096 bus/usb/uhci.c.
30097 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30098 interface is UHCI. Add interf variable for programming
30099 interface. Print interface with class/subclass.
30100
30101 * bus/usb/ohci.c: Set interf with correct field.
30102
30103 * bus/usb/uhci.c: Remove unneeded doubled lines.
30104 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30105 Remove whitespace inside comment.
30106
30107 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30108
30109 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30110 as fallback an equivalent option without depth.
30111
30112 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30113
30114 Not fail if unable to retrieve C/H/S on LBA disks
30115
30116 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30117 if unable to retrieve C/H/S on LBA disks
30118
30119 2009-06-08 Pavel Roskin <proski@gnu.org>
30120
30121 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30122 about aliasing.
30123
30124 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30125
30126 * Makefile.in (uninstall): Remove all $lib_DATA files.
30127
30128 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30129
30130 Bugfix: install on partitionless device
30131
30132 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30133 is a whole disk
30134
30135 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30136
30137 * Makefile.in (uninstall): Remove all $include_DATA files.
30138
30139 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30140
30141 * commands/true.c: New file. Implement the true and false commands.
30142 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30143 (true_mod_SOURCES): New variable.
30144 (true_mod_CFLAGS): Likewise.
30145 (true_mod_LDFLAGS): Likewise.
30146
30147 2009-06-05 Colin D Bennett <colin@gibibit.com>
30148
30149 Optimized font character lookup using binary search instead of linear
30150 search. Fonts now are required to have the character index ordered by
30151 code point.
30152
30153 * font/font.c (load_font_index): Verify that fonts have ordered
30154 character indices.
30155 (find_glyph): Use binary search instead of linear search to find a
30156 character in a font.
30157
30158 2009-06-05 Michael Scherer <misc@mandriva.org>
30159
30160 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30161 uses case sensitive btree.
30162 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30163 only for case insensitive filesystems.
30164
30165 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30166
30167 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30168 * conf/common.rmk (search_mod_CFLAGS): likewise
30169
30170 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30171
30172 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30173 compensate a compiler bug
30174
30175 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30176
30177 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30178 instead of '\b'
30179
30180 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30181
30182 Definitions for creating asm symbols with Apple's CC
30183
30184 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30185 [APPLE_CC] (VARIABLE): likewise
30186
30187 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30188
30189 Disable lnxboot.img when compiled
30190 with Apple's CC
30191
30192 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30193 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30194 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30195 [! APPLE_CC] (CODE_LENG): skip
30196 [! APPLE_CC] (setup_sects): likewise
30197 [! APPLE_CC]: skip filling
30198
30199 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30200
30201 Address in trampolines based on 32-bit registers when compiled
30202 with Apple's CC
30203
30204 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30205 for addresses
30206 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30207
30208 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30209
30210 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30211
30212 * kern/misc.c [APPLE_CC] (memcpy): new function
30213 [APPLE_CC] (memmove): likewise
30214 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30215 (memcpy): define alias conditionally on !APPLE_CC
30216 (memset): likewise
30217 (abort): likewise
30218 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30219 APPLE_CC are defined
30220 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30221 (grub_assert_fail): make prototype conditional
30222
30223 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30224
30225 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30226
30227 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30228 grub-macho2img
30229 (CLEANFILES): add grub-macho2img
30230 (grub_macho2img_SOURCES): new variable
30231 * kern/i386/pc/startup.S (bss_start): new variable
30232 (bss_end): likewise
30233 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30234 * util/grub-macho2img.c: new file
30235
30236 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30237
30238 Use objconv when compiling with Apple's CC
30239
30240 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30241 (efiemu64.o): likewise
30242 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30243 when compiling with Apple's CC
30244 (efiemu64_s.o): likewise
30245 * configure.ac: check for objconv when compiling with Apple's CC
30246 * genmk.rb: use objconv for modules when compiled with Apple's CC
30247
30248 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30249
30250 Define segment as well as section when compiling with
30251 Apple's CC
30252
30253 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30254 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30255 (efiemu_convert_pointer): likewise
30256 (efiemu_set_virtual_address_map): likewise
30257 (efiemu_convert_pointer): likewise
30258 (efiemu_getcrc32): likewise
30259 (init_crc32_table): likewise
30260 (reflect): likewise
30261 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30262 (GRUB_MOD_DEP): likewise
30263
30264 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30265
30266 Allow a compilation without -mcmodel=large
30267
30268 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30269 when compiled without -mcmodel=large
30270 (filter_memory_map): remove memory post 4 GiB when compiled
30271 without -mcmodel=large
30272 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30273 TARGET_CFLAGS when -mcmodel=large isn't supported
30274
30275 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30276
30277 Remove nested functions in efiemu core
30278
30279 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30280
30281 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30282
30283 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30284
30285 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30286 temporary storage
30287 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30288 using Apple's CC
30289 (grub_cpu_is_tsc_supported): likewise
30290 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30291
30292 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30293
30294 Absolute addressing through constant with Apple's cc
30295
30296 * kern/i386/pc/startup.S: Define necessary constants
30297 and address through it when using ABS with Apple's CC
30298 * boot/i386/pc/diskboot.S: likewise
30299 * boot/i386/pc/boot.S: likewise
30300 * boot/i386/pc/lnxboot.S: likewise
30301 * boot/i386/pc/cdboot.S: likewise
30302 * mmap/i386/pc/mmap_helper.S: likewise
30303 * commands/i386/pc/drivemap_int13h.S: likewise
30304
30305 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30306
30307 Check if compiler is apple cc
30308
30309 * Makefile.in (ASFLAGS): new variable
30310 (TARGET_ASFLAGS): likewise
30311 (TARGET_MODULE_FORMAT): likewise
30312 (TARGET_APPLE_CC): likewise
30313 (OBJCONV): likewise
30314 (TARGET_IMG_CFLAGS): likewise
30315 (TARGET_CPPFLAGS): add includedir
30316 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30317 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30318 Check for linker script only if compiler isn't Apple's CC
30319 (TARGET_MODULE_FORMAT): set
30320 (TARGET_APPLE_CC): likewise
30321 (TARGET_ASFLAGS): likewise
30322 (ASFLAGS): likewise
30323 Check for objcopy only if compiler isn't Apple's CC
30324 Check for BSS symbol only if compiler isn't Apple's CC
30325 * genmk.rb: adapt nm options if we use Apple's utils
30326 * aclocal.m4 (grub_apple_cc): new test
30327 (grub_apple_target_cc): likewise
30328
30329 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30330
30331 Simplify sed expressions and improve awk
30332
30333 * Makefile.in (install-local): simplify sed expression
30334 * gencmdlist.sh: likewise
30335 * genmoddep.awk: avoid adding module as a dependency of itself
30336
30337 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 Add missing start symbols
30340
30341 * boot/i386/pc/boot.S: add start
30342 * boot/i386/pc/pxeboot.S: likewise
30343
30344 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30345
30346 Fix wrong assumptions with grub-mkimage on EFI
30347
30348 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30349 (relocate_addresses): consider both r_addend and value at offset
30350 (make_mods_section): zerofill modinfo and header
30351 (convert_elf): write prefix here
30352
30353 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30354
30355 Use .asciz instead of .string
30356
30357 * i386/pc/diskboot.S: use .asciz instead of .string
30358 * i386/pc/boot.S: likewise
30359 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30360 (GRUB_MOD_NAME): likewise
30361
30362 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30363
30364 gfxpayload support
30365
30366 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30367 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30368 (grub_video_setup): remove
30369 (grub_video_set_mode): new prototype
30370 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30371 (vid_mode): remove
30372 (linux_vesafb_res): compile only on PCBIOS
30373 (grub_linux_boot): support gfxpayload
30374 * loader/i386/pc/xnu.c (video_hook): new function
30375 (grub_xnu_set_video): support gfxpayload
30376 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30377 (DEFAULT_VIDEO_HEIGHT): likewise
30378 (DEFAULT_VIDEO_FLAGS): likewise
30379 (DEFAULT_VIDEO_MODE): new definition
30380 (video_hook): new function
30381 (grub_gfxterm_init): use grub_video_set_mode
30382 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30383 loading xnu
30384 * video/video.c (grub_video_setup): removed
30385 (grub_video_set_mode): new function based on grub_gfxterm_init and
30386 grub_video_setup
30387
30388 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30389
30390 Avoid calling biosdisk in drivemap
30391
30392 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30393 (revparse_biosdisk): likewise
30394 (list_mappings): derive name from id directly
30395 (grub_cmd_drivemap): use tryparse_diskstring
30396
30397 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30398
30399 Script fixes
30400
30401 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30402 (grub_lexer_param): add tokenonhold
30403 (grub_script_create_cmdline): remove cmdline. All callers updated
30404 (grub_script_function_create): make functionname
30405 grub_script_arg. All callers updated
30406 (grub_script_execute_argument_to_string): new prototype
30407 * kern/parser.c (state_transitions): reorder
30408 (grub_parser_cmdline_state): fix a bug and make more compact
30409 * script/sh/execute.c (grub_script_execute_argument_to_string):
30410 make global
30411 (grub_script_execute_cmdline): use new format
30412 * script/sh/function.c (grub_script_function_create): make functionname
30413 grub_script_arg. All callers updated
30414 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30415 (grub_script_yylex): remove
30416 (grub_script_yylex2): renamed to ...
30417 (grub_script_yylex): ...renamed
30418 parse the expressions like a${b}c
30419 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30420 (GRUB_PARSER_TOKEN_VAR): remove
30421 (GRUB_PARSER_TOKEN_NAME): likewise
30422 ("if"): declare as typeless
30423 ("while"): likewise
30424 ("function"): likewise
30425 ("else"): likewise
30426 ("then"): likewise
30427 ("fi"): likewise
30428 (text): remove
30429 (argument): likewise
30430 (script): accept empty scripts and make exit on error
30431 (arguments): use GRUB_PARSER_TOKEN_ARG
30432 (function): likewise
30433 (command): move error handling to script
30434 (menuentry): move grub_script_lexer_ref before
30435 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30436 argument. All callers updated
30437
30438 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30439
30440 Prevent GRUB from probing floppies during boot.
30441
30442 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30443 * commands/search.c (options): Add --no-floppy.
30444 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30445 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30446 --no-floppy when searching for UUIDs.
30447
30448 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30449
30450 Simplify the code duplication in commands/search.c.
30451
30452 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30453 (search_fs): ... this. Update all users.
30454
30455 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30456
30457 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30458
30459 2009-05-28 Pavel Roskin <proski@gnu.org>
30460
30461 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30462 Remove the original symlink explicitly.
30463
30464 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30465 just one slash. That's how grub_fshelp_find_file() does it.
30466
30467 2009-05-26 Pavel Roskin <proski@gnu.org>
30468
30469 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30470 to `str'.
30471
30472 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30473 possibly unused.
30474
30475 2009-05-25 Christian Franke <franke@computer.org>
30476
30477 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30478 register.
30479 (grub_atapi_identify): Add wait after drive select.
30480 (grub_ata_identify): Do more strict status register check before
30481 calling grub_atapi_identify (). Suppress error message if status
30482 register is 0x00 after command failure. Add status register
30483 check after PIO read to avoid bogus identify due to stuck DRQ.
30484 Thanks to Pavel Roskin for testing.
30485 (grub_device_initialize): Remove unsafe status register check.
30486 Thanks to 'phcoder' for problem report and patch.
30487 Prevent sign extension in debug message.
30488
30489 2009-05-23 Colin D Bennett <colin@gibibit.com>
30490
30491 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30492 definition file, and functions defined in `normal/menu.c' have had
30493 their prototypes moved to `include/grub/menu.h' for consistency.
30494
30495 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30496 from normal.h.
30497 (grub_menu_get_entry): Likewise.
30498 (grub_menu_get_timeout): Likewise.
30499 (grub_menu_set_timeout): Likewise.
30500 (grub_menu_execute_entry): Likewise.
30501 (grub_menu_execute_with_fallback): Likewise.
30502 (grub_menu_entry_run): Likewise.
30503
30504 * include/grub/normal.h: Re-ordered and grouped function
30505 prototypes by file that the function is defined in.
30506 (grub_menu_execute_callback): Removed; moved to menu.h.
30507 (grub_menu_get_entry): Likewise.
30508 (grub_menu_get_timeout): Likewise.
30509 (grub_menu_set_timeout): Likewise.
30510 (grub_menu_execute_entry): Likewise.
30511 (grub_menu_execute_with_fallback): Likewise.
30512 (grub_menu_entry_run): Likewise.
30513 (grub_menu_addentry): Renamed from this ...
30514 (grub_normal_add_menu_entry): ... to this.
30515
30516 * normal/main.c (grub_menu_addentry): Renamed from this ...
30517 (grub_normal_add_menu_entry): ... to this.
30518
30519 * script/sh/execute.c (grub_script_execute_menuentry): Update
30520 reference to renamed grub_menu_addentry function.
30521
30522 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30523
30524 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30525
30526 2009-05-22 Pavel Roskin <proski@gnu.org>
30527
30528 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30529 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30530 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30531 compiling for the i386 targets, but not for the utilities.
30532
30533 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30534 to grub_uint8_t.
30535 (grub_root_drive): Likewise.
30536 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30537 remove alignment.
30538 (grub_root_drive): Change size to byte.
30539 (grub_start_addr): Remove.
30540 (grub_end_addr): Likewise.
30541 (grub_apm_bios_info): Likewise.
30542
30543 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30544
30545 * normal/i386: Remove.
30546 * normal/powerpc: Likewise.
30547 * normal/sparc64: Likewise.
30548 * normal/x86_64: Likewise.
30549
30550 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30551
30552 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30553 * loader/i386/linux_trampoline.S: Fix indentation
30554 * loader/i386/xnu_helper.S: Likewise
30555
30556 2009-05-18 Colin D Bennett <colin@gibibit.com>
30557
30558 Display error messages when parsing a Lua statement fails.
30559 Previously, executing a syntactically invalid statement like
30560 ")foo" or "bar;" would silently fail.
30561
30562 * script/lua/grub_main.c (handle_lua_error): New function.
30563 (grub_lua_parse_line): Improved reporting of Lua parser and
30564 execution errors.
30565
30566 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30567
30568 Remove -Werror which causes build to fail on some systems
30569
30570 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30571 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30572 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30573
30574 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30575
30576 trampoline for linux on 64-bit platform
30577
30578 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30579 loader/i386/efi/linux_trampoline.S
30580 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30581 declaration
30582 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30583 here
30584 * loader/i386/linux_trampoline.S: moved here
30585 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30586 trampoline
30587 (jumpvector): removed
30588 (grub_linux_trampoline_start): new declaration
30589 (grub_linux_trampoline_end): likewise
30590 (grub_linux_boot): use trampoline when on 64-bit platform
30591 * loader/i386/linux.c: likewise
30592
30593 2009-05-16 Pavel Roskin <proski@gnu.org>
30594
30595 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30596 const to avoid a warning.
30597 (grub_lua_setenv): Likewise.
30598 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30599 lmsg to fix a warning.
30600
30601 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30602
30603 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30604 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30605 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30606 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30607 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30608 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30609 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30610 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30611
30612 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30613
30614 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30615
30616 2009-05-16 Bean <bean123ch@gmail.com>
30617
30618 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30619 (lua_mod_SOURCES): New variable.
30620 (lua_mod_CFLAGS): Likewise.
30621 (lua_mod_LDFLAGS): Likewise.
30622
30623 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30624 (setjmp_mod_SOURCES): New variable.
30625 (setjmp_mod_CFLAGS): Likewise.
30626 (setjmp_LDFLAGS): Likewise.
30627
30628 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
30629 (setjmp_mod_SOURCES): New variable.
30630 (setjmp_mod_CFLAGS): Likewise.
30631 (setjmp_LDFLAGS): Likewise.
30632
30633 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30634 (setjmp_mod_SOURCES): New variable.
30635 (setjmp_mod_CFLAGS): Likewise.
30636 (setjmp_LDFLAGS): Likewise.
30637
30638 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30639 (setjmp_mod_SOURCES): New variable.
30640 (setjmp_mod_CFLAGS): Likewise.
30641 (setjmp_LDFLAGS): Likewise.
30642
30643 * normal/i386/setjmp.S: Moved from here ...
30644 * lib/i386/setjmp.S: ... Moved here
30645 * normal/x86_64/setjmp.S: Moved from here ...
30646 * lib/x86_64/setjmp.S: ... Moved here
30647 * normal/powerpc/setjmp.S: Moved from here ...
30648 * lib/powerpc/setjmp.S: ... Moved here
30649 * normal/sparc64/setjmp.S: Moved from here ...
30650 * lib/sparc64/setjmp.S: ... Moved here
30651
30652 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
30653 returns_twice in mingw.
30654
30655 * script/lua/grub_lib.c: New file.
30656 * script/lua/grub_lib.h: Likewise.
30657 * script/lua/grub_lua.h: Likewise.
30658 * script/lua/grub_main.c: Likewise.
30659 * script/lua/lapi.c: Likewise.
30660 * script/lua/lapi.h: Likewise.
30661 * script/lua/lauxlib.c: Likewise.
30662 * script/lua/lauxlib.h: Likewise.
30663 * script/lua/lbaselib.c: Likewise.
30664 * script/lua/lcode.c: Likewise.
30665 * script/lua/lcode.h: Likewise.
30666 * script/lua/ldblib.c: Likewise.
30667 * script/lua/ldebug.c: Likewise.
30668 * script/lua/ldebug.h: Likewise.
30669 * script/lua/ldo.c: Likewise.
30670 * script/lua/ldo.h: Likewise.
30671 * script/lua/ldump.c: Likewise.
30672 * script/lua/lfunc.c: Likewise.
30673 * script/lua/lfunc.h: Likewise.
30674 * script/lua/lgc.c: Likewise.
30675 * script/lua/lgc.h: Likewise.
30676 * script/lua/linit.c: Likewise.
30677 * script/lua/liolib.c: Likewise.
30678 * script/lua/llex.c: Likewise.
30679 * script/lua/llex.h: Likewise.
30680 * script/lua/llimits.h: Likewise.
30681 * script/lua/lmathlib.c: Likewise.
30682 * script/lua/lmem.c: Likewise.
30683 * script/lua/lmem.h: Likewise.
30684 * script/lua/loadlib.c: Likewise.
30685 * script/lua/lobject.c: Likewise.
30686 * script/lua/lobject.h: Likewise.
30687 * script/lua/lopcodes.c: Likewise.
30688 * script/lua/lopcodes.h: Likewise.
30689 * script/lua/loslib.c: Likewise.
30690 * script/lua/lparser.c: Likewise.
30691 * script/lua/lparser.h: Likewise.
30692 * script/lua/lstate.c: Likewise.
30693 * script/lua/lstate.h: Likewise.
30694 * script/lua/lstring.c: Likewise.
30695 * script/lua/lstring.h: Likewise.
30696 * script/lua/lstrlib.c: Likewise.
30697 * script/lua/ltable.c: Likewise.
30698 * script/lua/ltable.h: Likewise.
30699 * script/lua/ltablib.c: Likewise.
30700 * script/lua/ltm.c: Likewise.
30701 * script/lua/ltm.h: Likewise.
30702 * script/lua/lua.h: Likewise.
30703 * script/lua/luaconf.h: Likewise.
30704 * script/lua/lualib.h: Likewise.
30705 * script/lua/lundump.c: Likewise.
30706 * script/lua/lundump.h: Likewise.
30707 * script/lua/lvm.c: Likewise.
30708 * script/lua/lvm.h: Likewise.
30709 * script/lua/lzio.c: Likewise.
30710 * script/lua/lzio.h: Likewise.
30711
30712 2009-05-16 Bean <bean123ch@gmail.com>
30713
30714 * include/grub/kernel.h (grub_module_header_types): Add type
30715 OBJ_TYPE_CONFIG.
30716
30717 * kern/main.c (grub_load_config): New function.
30718 (grub_main): Call grub_load_config to read boot config.
30719
30720 * grub-mkimage (generate_image): New parameter config_path.
30721 (options): New option --config.
30722 (main): Parse --config option, and pass it to generate_image.
30723
30724 2009-05-14 Christian Franke <franke@computer.org>
30725
30726 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
30727 This fixes build on Cygwin.
30728
30729 2009-05-14 Pavel Roskin <proski@gnu.org>
30730
30731 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
30732 jump. This saves two bytes, so the typical case of 2 swapped
30733 drives would fit 32 bytes.
30734
30735 2009-05-13 Pavel Roskin <proski@gnu.org>
30736
30737 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
30738 grub_uint32_t to avoid a warning.
30739
30740 * loader/i386/linux.c (allocate_pages): When assigning
30741 real_mode_mem, cast through grub_size_t to fix a warning. The
30742 code already makes sure that the value would fit a pointer.
30743 (grub_linux_setup_video): Cast render_target->data to
30744 grub_size_t to fix a warning.
30745
30746 2009-05-13 Javier Martín <lordhabbit@gmail.com>
30747
30748 * commands/i386/pc/drivemap.c: New file - implement drivemap
30749 command.
30750 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
30751 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
30752
30753 2009-05-13 Pavel Roskin <proski@gnu.org>
30754
30755 * util/i386/pc/grub-setup.c (setup): Remove unused variable
30756 embedding_area_exists.
30757
30758 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
30759
30760 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
30761 it easier to understand / work with.
30762 Improve warning messages for cases where there's no embedding area,
30763 or when it is too small (or core.img too large).
30764
30765 2009-05-13 Pavel Roskin <proski@gnu.org>
30766
30767 * loader/i386/pc/multiboot2.c: Add necessary includes for
30768 grub_multiboot2_real_boot().
30769
30770 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
30771 PX record is always little-endian. We only need the lower 2
30772 bytes of the mode.
30773
30774 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
30775 facilitate code reuse.
30776 (grub_cpio_mount): Use "struct head", not a char buffer. This
30777 fixes a warning reported by gcc 4.4.
30778
30779 * kernel/disk.c (grub_disk_read): Use void pointer for the
30780 buffer.
30781 (grub_disk_write): Use const void pointer for the buffer.
30782 Adjust all callers. Remove unnecessary casts.
30783
30784 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
30785
30786 * util/i386/pc/grub-install.in: Update copyright year.
30787
30788 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30789
30790 gptsync
30791
30792 * commands/gptsync.c: new file
30793 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
30794 (gptsync_mod_SOURCES): new variable
30795 (gptsync_mod_CFLAGS): likewise
30796 (gptsync_mod_LDFLAGS): likewise
30797 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
30798 new definition
30799 (GRUB_PC_PARTITION_TYPE_HFS): likewise
30800 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
30801 * conf/i386-ieee1275.rmk: likewise
30802 * conf/i386-pc.rmk: likewise
30803 * conf/powerpc-ieee1275.rmk: likewise
30804
30805 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30806
30807 Fixed grub-emu
30808
30809 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
30810 (grub_dl_ref): likewise
30811
30812 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
30813
30814 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
30815 split in two functions (one for msdos and one for gpt).
30816
30817 2009-05-08 Pavel Roskin <proski@gnu.org>
30818
30819 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
30820 not modified.
30821
30822 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
30823 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
30824 Initialize them with -1. Add sanity check for bad1. Eliminate
30825 nerr variable.
30826
30827 2009-05-08 David S. Miller <davem@davemloft.net>
30828
30829 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
30830
30831 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
30832
30833 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
30834 existence.
30835
30836 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
30837
30838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30839 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
30840
30841 2009-05-05 David S. Miller <davem@davemloft.net>
30842
30843 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
30844
30845 2009-05-05 Pavel Roskin <proski@gnu.org>
30846
30847 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
30848 of grub_dl_ref() and grub_dl_unref().
30849 * commands/parttool.c: Remove preprocessor conditionals around
30850 grub_dl_ref() and grub_dl_unref().
30851 * fs/affs.c: Likewise.
30852 * fs/afs.c: Likewise.
30853 * fs/cpio.c: Likewise.
30854 * fs/ext2.c: Likewise.
30855 * fs/fat.c: Likewise.
30856 * fs/hfs.c: Likewise.
30857 * fs/hfsplus.c: Likewise.
30858 * fs/iso9660.c: Likewise.
30859 * fs/jfs.c: Likewise.
30860 * fs/minix.c: Likewise.
30861 * fs/ntfs.c: Likewise.
30862 * fs/reiserfs.c: Likewise.
30863 * fs/sfs.c: Likewise.
30864 * fs/udf.c: Likewise.
30865 * fs/ufs.c: Likewise.
30866 * fs/xfs.c: Likewise.
30867 * include/grub/dl.h: Likewise.
30868 * loader/xnu.c: Likewise.
30869
30870 2009-05-04 Pavel Roskin <proski@gnu.org>
30871
30872 * commands/acpi.c: Remove unused variable my_mod.
30873 * partmap/amiga.c: Likewise.
30874 * partmap/apple.c: Likewise.
30875 * partmap/gpt.c: Likewise.
30876 * partmap/pc.c: Likewise.
30877 * partmap/sun.c: Likewise.
30878 * term/gfxterm.c: Likewise.
30879 * term/i386/pc/vesafb.c: Likewise.
30880 * term/i386/pc/vga.c: Likewise.
30881
30882 2009-05-04 David S. Miller <davem@davemloft.net>
30883
30884 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
30885 pointer args to grub_ieee1275_get_property().
30886
30887 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
30888
30889 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
30890 devices, and do not traverse down under controller nodes.
30891
30892 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
30893 (grub_ofdisk_open): Use it to un-escape "," characters.
30894 * kern/disk.c (find_part_sep): New.
30895 (grub_disk_open): Use it to find the first non-escaped ','
30896 character in the disk name.
30897 * util/ieee1275/devicemap.c (escape_of_path): New.
30898 (grub_util_emit_devicemap_entry): Use it.
30899 * util/sparc64/ieee1275/grub-install.in: Update script to
30900 strip partition specifiers properly by not triggering on
30901 '\' escaped ',' characters.
30902
30903 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30904
30905 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
30906 to 0x300.
30907 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
30908 resolutions.
30909 (linux_vesafb_modes): Add a lot of additional modes to the list (based
30910 on documentation from Wikipedia).
30911
30912 2009-05-04 Pavel Roskin <proski@gnu.org>
30913
30914 * disk/ata.c: Spelling fixes.
30915 * disk/raid.c: Likewise.
30916 * disk/usbms.c: Likewise.
30917 * disk/dmraid_nvidia.c: Likewise.
30918 * kern/ieee1275/openfw.c: Likewise.
30919 * kern/ieee1275/init.c: Likewise.
30920 * kern/ieee1275/cmain.c: Likewise.
30921 * boot/i386/pc/cdboot.S: Likewise.
30922 * video/readers/png.c: Likewise.
30923 * video/i386/pc/vbe.c: Likewise.
30924 * fs/udf.c: Likewise.
30925 * fs/hfs.c: Likewise.
30926 * fs/reiserfs.c: Likewise.
30927 * efiemu/runtime/efiemu.c: Likewise.
30928 * efiemu/main.c: Likewise.
30929 * efiemu/mm.c: Likewise.
30930 * include/grub/elf.h: Likewise.
30931 * include/grub/xnu.h: Likewise.
30932 * include/grub/usbdesc.h: Likewise.
30933 * include/grub/usb.h: Likewise.
30934 * include/grub/script_sh.h: Likewise.
30935 * include/grub/lib/LzmaEnc.h: Likewise.
30936 * include/grub/efiemu/efiemu.h: Likewise.
30937 * include/grub/command.h: Likewise.
30938 * normal/menu.c: Likewise.
30939 * normal/main.c: Likewise.
30940 * normal/datetime.c: Likewise.
30941 * bus/usb/uhci.c: Likewise.
30942 * mmap/i386/uppermem.c: Likewise.
30943 * mmap/mmap.c: Likewise.
30944 * commands/acpi.c: Likewise.
30945 * commands/test.c: Likewise.
30946 * partmap/apple.c: Likewise.
30947 * font/font.c: Likewise.
30948 * loader/sparc64/ieee1275/linux.c: Likewise.
30949 * loader/macho.c: Likewise.
30950 * loader/i386/bsd_trampoline.S: Likewise.
30951 * loader/i386/bsd.c: Likewise.
30952 * loader/xnu.c: Likewise.
30953 * term/i386/pc/vesafb.c: Likewise.
30954 * term/usb_keyboard.c: Likewise.
30955 * util/resolve.c: Likewise.
30956 * util/getroot.c: Likewise.
30957
30958 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30959
30960 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
30961
30962 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30963
30964 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
30965 build error.
30966
30967 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30968
30969 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
30970 parameter only available on BIOS.
30971
30972 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30973
30974 Removed wrong semicolon in declaration
30975
30976 * grub/misc.h (grub_dprintf): remove semicolon
30977
30978 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30979
30980 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
30981 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
30982 is done by grub_cmd_linux() now).
30983 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
30984 restore video to text mode.
30985 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
30986 indicates lack of "vga=" parameter. "vga=0" is mapped to
30987 `GRUB_LINUX_VID_MODE_NORMAL'.
30988
30989 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30990
30991 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
30992 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
30993 and `normal/script.c'. Add `kern/rescue_reader.c',
30994 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
30995 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
30996 `grub_script.tab.c'.
30997
30998 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30999 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31000 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31001 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31002 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31003
31004 * Makefile.in: Remove duplicated 2008 in Copyright line.
31005
31006 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31007
31008 * util/misc.c (grub_util_warn): New function. Emits a warning
31009 unconditionally.
31010 * include/grub/util/misc.h (grub_util_warn): New declaration.
31011
31012 * util/i386/pc/grub-install.in: Understand --force and pass it down
31013 to grub-setup.
31014
31015 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31016 down to setup().
31017 (setup): Improve error messages and add warnings when requested to
31018 install in odd layouts. Refuse to install using blocklists unless
31019 --force was set.
31020
31021 2009-05-04 martin f. krafft <madduck@madduck.net>
31022
31023 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31024
31025 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31026
31027 Updated copyright year
31028
31029 * fs/hfsplus.c: updated copyright year
31030
31031 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31032
31033 HFS+ UUID
31034
31035 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31036 in the space previously used by unused3
31037 (grub_hfsplus_uuid): new function
31038 (grub_hfsplus_fs): added uuid field
31039
31040 2009-05-03 Pavel Roskin <proski@gnu.org>
31041
31042 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31043 suppress warnings. It's no longer needed.
31044 * disk/host.c: Likewise.
31045 * disk/ata_pthru.c: Likewise.
31046 * disk/loopback.c: Likewise.
31047 * hook/datehook.c: Likewise.
31048 * parttool/pcpart.c: Likewise.
31049 * fs/i386/pc/pxe.c: Likewise.
31050 * fs/ntfscomp.c: Likewise.
31051 * efiemu/main.c: Likewise.
31052 * mmap/mmap.c: Likewise.
31053 * commands/crc.c: Likewise.
31054 * commands/hexdump.c: Likewise.
31055 * commands/hdparm.c: Likewise.
31056 * commands/acpi.c: Likewise.
31057 * commands/echo.c: Likewise.
31058 * commands/minicmd.c: Likewise.
31059 * commands/blocklist.c: Likewise.
31060 * commands/memrw.c: Likewise.
31061 * commands/loadenv.c: Likewise.
31062 * commands/usbtest.c: Likewise.
31063 * commands/lsmmap.c: Likewise.
31064 * commands/boot.c: Likewise.
31065 * commands/parttool.c: Likewise.
31066 * commands/configfile.c: Likewise.
31067 * commands/search.c: Likewise.
31068 * commands/ieee1275/suspend.c: Likewise.
31069 * commands/cat.c: Likewise.
31070 * commands/i386/pc/pxecmd.c: Likewise.
31071 * commands/i386/pc/play.c: Likewise.
31072 * commands/i386/pc/halt.c: Likewise.
31073 * commands/i386/pc/vbeinfo.c: Likewise.
31074 * commands/i386/pc/vbetest.c: Likewise.
31075 * commands/lspci.c: Likewise.
31076 * commands/date.c: Likewise.
31077 * commands/handler.c: Likewise.
31078 * commands/ls.c: Likewise.
31079 * commands/test.c: Likewise.
31080 * commands/cmp.c: Likewise.
31081 * commands/efi/loadbios.c: Likewise.
31082 * commands/efi/fixvideo.c: Likewise.
31083 * commands/halt.c: Likewise.
31084 * commands/help.c: Likewise.
31085 * commands/reboot.c: Likewise.
31086 * hello/hello.c: Likewise.
31087 * script/sh/main.c: Likewise.
31088 * loader/xnu.c: Likewise.
31089 * term/terminfo.c: Likewise.
31090 * term/i386/pc/serial.c: Likewise.
31091 * term/usb_keyboard.c: Likewise.
31092
31093 2009-05-03 David S. Miller <davem@davemloft.net>
31094
31095 * normal/menu.c: Include grub/parser.h
31096
31097 2009-05-03 Pavel Roskin <proski@gnu.org>
31098
31099 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31100 not char*.
31101 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31102 Suggested by Javier Martín <lordhabbit@gmail.com>
31103
31104 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31105 efiemu??.o doesn't exist.
31106 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31107 copying.
31108
31109 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31110
31111 FreeBSD 64-bit support
31112
31113 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31114 and loader/i386/bsd_trampoline.S
31115 (bsd_mod_ASFLAGS): new variable
31116 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31117 (FREEBSD_MODTYPE_KERNEL64): likewise
31118 (grub_bsd64_trampoline_start): likewise
31119 (grub_bsd64_trampoline_end): likewise
31120 (grub_bsd64_trampoline_selfjump): likewise
31121 (grub_bsd64_trampoline_gdt): likewise
31122 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31123 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31124 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31125 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31126 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31127 of "attrib" member
31128 * loader/i386/bsd_pagetable.c: new file
31129 * loader/i386/bsd_trampoline.S: likewise
31130 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31131 (ALIGN_VAR): likewise
31132 (entry_hi): new variable
31133 (kern_end_mdofs): likewise
31134 (is_64bit): likewise
31135 (grub_freebsd_add_meta): use ALIGN_VAR
31136 (grub_e820_mmap): new declaration
31137 (grub_freebsd_add_mmap): new function
31138 (grub_freebsd_add_meta_module): support 64 bit kernels
31139 (grub_freebsd_list_modules): use ALIGN_VAR
31140 (gdt_descriptor): new declaration
31141 (grub_freebsd_boot): support 64 bit kernels
31142 (grub_bsd_elf64_hook): new function
31143 (grub_bsd_load_elf): support elf64
31144
31145 2009-05-03 Bean <bean123ch@gmail.com>
31146
31147 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31148 after we get the result of if statement.
31149
31150 2009-05-03 Bean <bean123ch@gmail.com>
31151
31152 * Makefile.in (enable_efiemu): New variable.
31153
31154 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31155 set.
31156 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31157 path.
31158 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31159 path, add -mno-red-zone option.
31160 (efiemu64_s.o): Likewise.
31161 (efiemu64.o): Use macro $^ for source file.
31162
31163 * configure.ac (--enable-efiemu): New option.
31164
31165 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31166
31167 xnu support
31168
31169 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31170 (pkglib_MODULES): add xnu.mod
31171 (xnu_mod_SOURCES): new variable
31172 (xnu_mod_CFLAGS): likewise
31173 (xnu_mod_LDFLAGS): likewise
31174 (xnu_mod_ASFLAGS): likewise
31175 * conf/i386-pc.rmk: likewise
31176 * conf/x86_64-efi.rmk: likewise
31177 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31178 new declaration
31179 * include/grub/i386/macho.h: new file
31180 * include/grub/i386/xnu.h: likewise
31181 * include/grub/macho.h: likewise
31182 * include/grub/machoload.h: likewise
31183 * include/grub/x86_64/macho.h: likewise
31184 * include/grub/x86_64/xnu.h: likewise
31185 * include/grub/xnu.h: likewise
31186 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31187 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31188 * loader/i386/efi/xnu.c: new file
31189 * loader/i386/pc/xnu.c: likewise
31190 * loader/i386/xnu.c: likewise
31191 * loader/i386/xnu_helper.S: likewise
31192 * loader/macho.c: likewise
31193 * loader/xnu.c: likewise
31194 * loader/xnu_resume.c: likewise
31195 * util/grub-dumpdevtree: likewise
31196 * include/grub/i386/pit.h: include grub/err.h
31197 (grub_pit_wait): export
31198 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31199
31200 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31201
31202 Efiemu
31203
31204 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31205 _linux_efi, linux_efi.
31206 new files in grub-emu
31207 new targets efiemu32.o and efiemu64.o
31208 * loader/linux_normal_efiemu.c: likewise
31209 * loader/i386/efi/linux.c: added preliminary efiemu support
31210 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31211 files to copy
31212 * include/grub/autoefi.h: new file
31213 * include/grub/i386/efiemu.h: likewise
31214 * include/grub/i386/pc/efiemu.h: likewise
31215 * include/grub/efi/api.h: add LL suffix when necessary
31216 new definitions relating to tables
31217 * include/grub/efiemu/efiemu.h: new file
31218 * include/grub/efiemu/runtime.h: likewise
31219 * efiemu/prepare.c: likewise
31220 * efiemu/loadcore_common.c: likewise
31221 * efiemu/loadcore64.c: likewise
31222 * efiemu/runtime/efiemu.sh: likewise
31223 * efiemu/runtime/efiemu.S: likewise
31224 * efiemu/runtime/efiemu.c: likewise
31225 * efiemu/runtime/config.h: likewise
31226 * efiemu/prepare32.c: likewise
31227 * efiemu/main.c: likewise
31228 * efiemu/modules/pnvram.c: likewise
31229 * efiemu/modules/i386: likewise
31230 * efiemu/modules/i386/pc: likewise
31231 * efiemu/modules/acpi.c: likewise
31232 * efiemu/i386/pc/cfgtables.c: likewise
31233 * efiemu/i386/loadcore64.c: likewise
31234 * efiemu/i386/loadcore32.c: likewise
31235 * efiemu/prepare64.c: likewise
31236 * efiemu/loadcore.c: likewise
31237 * efiemu/symbols.c: likewise
31238 * efiemu/mm.c: likewise
31239 * efiemu/loadcore32.c: likewise
31240
31241 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31242
31243 ACPI spoofing
31244
31245 * commands/acpi.c: new file
31246 * commands/i386/pc/acpi.c: likewise
31247 * commands/efi/acpi.c: likewise
31248 * include/grub/acpi.h: likewise
31249 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31250 (acpi_mod_SOURCES): new variable
31251 (acpi_mod_CFLAGS): likewise
31252 (acpi_mod_LDFLAGS): likewise
31253 * conf/i386-efi.rmk: likewise
31254 * conf/x86_64-efi.rmk: likewise
31255
31256 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31257
31258 Missing part from mmap patch
31259
31260 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31261 (grub_mmap_unregister)
31262 (grub_mmap_free_and_unregister): use grub_mmap_register
31263
31264 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31265
31266 Mmap services
31267
31268 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31269 * loader/i386/linux.c (find_mmap_size): likewise
31270 (allocate_pages): likewise
31271 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31272 (grub_fill_multiboot_mmap): likewise
31273 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31274 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31275 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31276 (OPENBSD_MMAP_RESERVED): likewise
31277 * include/grub/i386/pc/memory.h: include grub/memory.h
31278 (grub_lower_mem): removed
31279 (grub_upper_mem): likewise
31280 (GRUB_MACHINE_MEMORY_ACPI): new definition
31281 (GRUB_MACHINE_MEMORY_NVS): likewise
31282 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31283 (GRUB_MACHINE_MEMORY_HOLE): likewise
31284 (grub_machine_mmap_register): likewise
31285 (grub_machine_mmap_unregister): likewise
31286 (grub_machine_get_upper): likewise
31287 (grub_machine_get_lower): likewise
31288 (grub_machine_get_post64): likewise
31289 * include/grub/i386/efi/memory.h: new file
31290 * include/grub/x86_64/efi/memory.h: likewise
31291 * include/grub/efi/memory.h: likewise
31292 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31293 (mmap_mod_SOURCES): new variable
31294 (mmap_mod_LDFLAGS): likewise
31295 (mmap_mod_ASFLAGS): likewise
31296 * conf/i386-coreboot.rmk: likewise
31297 * conf/i386-ieee1275.rmk: likewise
31298 * conf/i386-efi.rmk: likewise
31299 * conf/x86_64-efi.rmk: likewise
31300 * include/grub/types.h (UINT_TO_PTR): new macro
31301 (PTR_TO_UINT32): likewise
31302 (PTR_TO_UINT64): likewise
31303 * include/grub/memory.h: new file
31304 * mmap/i386/pc/mmap.c: likewise
31305 * mmap/i386/pc/mmap_helper.S: likewise
31306 * mmap/i386/uppermem.c: likewise
31307 * mmap/mmap.c: likewise
31308 * mmap/efi/mmap.c: likewise
31309 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31310 grub_upper_mem
31311 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31312 (grub_upper_mem): likewise
31313 (grub_machine_init): don't use grub_upper_mem,
31314 make grub_lower_mem local
31315 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31316 grub_mmap_iterate and grub_mmap_get_upper
31317 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31318
31319 2009-05-02 Bean <bean123ch@gmail.com>
31320
31321 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31322 script/sh/parser.y.
31323 (pkglib_MODULES): Add normal.mod and sh.mod.
31324 (normal_SOURCES): New variable.
31325 (normal_mod_CFLAGS): Likewise.
31326 (normal_mod_LDFLAGS): Likewise.
31327 (sh_mod_SOURCES): Likewise.
31328 (sh_mod_CFLAGS): Likewise.
31329 (sh_mod_LDFLAGS): Likewise.
31330
31331 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31332 script/sh/lexer.c_DEPENDENCIES.
31333 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31334 kern/rescue_reader.c and kern/rescue_parser.c.
31335 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31336 (grub_emu_SOURCES): Change source files.
31337 (pkglib_MODULES): Remove normal.mod.
31338 (normal_SOURCES): Removed.
31339 (normal_mod_CFLAGS): Likewise.
31340 (normal_mod_LDFLAGS): Likewise.
31341 * conf/i386-coreboot.rmk: Likewise.
31342 * conf/i386-efi.rmk: Likewise.
31343 * conf/i386-ieee1276.rmk: Likewise.
31344 * conf/powerpc-ieee1275.rmk: Likewise.
31345 * conf/sparc64-ieee1275.rmk: Likewise.
31346 * conf/x86_64-efi.rmk: Likewise.
31347
31348 * include/grub/command.h (grub_command_execute): New inline function.
31349
31350 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31351
31352 * include/grub/normal.h: Remove <grub/setjmp.h>.
31353 (grub_fs_module_list): Moved to normal/autofs.c.
31354 (grub_exit_env): Removed.
31355 (grub_command_execute): Likewise.
31356 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31357 parameter script.
31358 (read_command_list): New function declaration.
31359 (read_fs_list): Likewise.
31360
31361 * include/parser.h: Include <grub/reader.h>.
31362 (grub_parser_split_cmdline): Change type of getline parameter.
31363 (grub_parser): New structure.
31364 (grub_parser_class): New variable.
31365 (grub_parser_execute): New function declaration.
31366 (grub_register_rescue_parser): Likewise.
31367 (grub_parser_register): New inline function.
31368 (grub_parser_unregister): Likewise.
31369 (grub_parser_get_current): Likewise.
31370 (grub_parser_set_current): Likewise.
31371
31372 * include/grub/reader.h: New file.
31373 * kern/reader.c: Likewise.
31374 * kern/rescue_parser.c: Likewise.
31375 * kern/rescue_reader.c: Likewise.
31376 * normal/autofs.c: Likewise.
31377 * normal/dyncmd.c: Likewise.
31378
31379 * include/grub/rescue.h: Removed.
31380 * normal/command.h: Likewise.
31381
31382 * include/grub/script.h: Moved to ...
31383 * include/grub/script_sh.h: ... Moved here.
31384 * normal/execute.c: Moved to ...
31385 * script/sh/execute.c: ... Moved here.
31386 * normal/function.c: Moved to ...
31387 * script/sh/function.c: ... Moved here.
31388 * normal/lexer.c: Moved to ...
31389 * script/sh/lexer.c: ... Moved here.
31390 * normal/parser.y: Moved to ...
31391 * script/sh/parser.y: ... Moved here.
31392 * normal/script.c: Moved to ...
31393 * script/sh/script.c: ... Moved here.
31394
31395 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31396 <grub/reader.h>.
31397 (grub_exit_env): Removed.
31398 (fs_module_list): Moved to normal/autofs.c.
31399 (grub_file_getline): Don't handle comment here.
31400 (free_menu): Skip removed field entry->commands.
31401 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31402 script parameter.
31403 (read_config_file): Removed nested parameter, change getline function.
31404 (grub_enter_normal_mode): Removed.
31405 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31406 (read_command_list): Likewise.
31407 (autoload_fs_module): Moved to normal/autofs.c.
31408 (read_fs_list): Likewise.
31409 (reader_nested): New variable.
31410 (grub_normal_execute): Run parser.sh to switch to sh parser.
31411 (grub_cmd_rescue): Removed.
31412 (cmd_normal): Removed.
31413 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31414 rescue command.
31415 (grub_cmdline_run): New function.
31416 (grub_normal_reader_init): Likewise.
31417 (grub_normal_read_line): Likewise.
31418 (grub_env_write_pager): Likewise.
31419 (cmdline): New variable.
31420 (grub_normal_reader): Likewise.
31421 (GRUB_MOD_INIT): Register normal reader and set as current, register
31422 pager hook, register normal command with grub_register_command_prio,
31423 so that it won't show up in command.lst.
31424 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31425 grub_fs_autoload_hook.
31426
31427 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31428 (grub_menu_execute_entry): Replace grub_script_execute with
31429 grub_parser_execute, change parameter to grub_command_execute.
31430
31431 * normal/menu_text.c: Remove <grub/script.h>.
31432
31433 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31434 and <grub/parser.h>.
31435 (run): Change editor_getline to use new parser interface. Change
31436 parameter to grub_command_execute.
31437
31438 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31439 <grub/reader.h> and <grub/parser.h>.
31440 (grub_load_normal_mode): Execute normal command.
31441 (grub_main): Call grub_register_core_commands,
31442 grub_register_rescue_parser and grub_register_rescue_reader, use
31443 grub_reader_loop to enter input loop.
31444
31445 * kern/parser.c (grub_parser_split_cmdline): Change type of
31446 getline parameter.
31447 (grub_parser_class): New variable.
31448 (grub_parser_execute): New function.
31449
31450 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31451 * loader/multiboot2.c: Likewise.
31452 * loader/sparc64/ieee1275/linux.c: Likewise.
31453
31454 * util/grub-emu.c (read_command_list): New dummy function.
31455
31456 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31457
31458 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31459 count to 16 for CCISS and IDA.
31460
31461 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31462
31463 * normal/menu_text.c (grub_wait_after_message): Print a newline
31464 after waiting for user input.
31465
31466 * loader/i386/linux.c: Include `<grub/normal.h>'.
31467 (grub_cmd_linux): Improve the error message about `ask' mode, by
31468 waiting for user input so it's not missed (we can do this, since
31469 user requested interaction).
31470
31471 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31472
31473 Added missing lst to grub-mkrescue
31474
31475 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31476 and ${input_dir}/parttool.lst
31477
31478 2009-04-30 David S. Miller <davem@davemloft.net>
31479
31480 * util/hostdisk.c (device_is_wholedisk): New function.
31481 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31482 zero only if device_is_wholedisk() returns true.
31483
31484 * util/hostdisk.c (convert_system_partition_to_system_disk):
31485 Handle virtual disk devices named /dev/vdiskX as found on sparc
31486 and powerpc.
31487
31488 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31489 lettered partition specifier is found, convert to numbered.
31490
31491 2009-04-29 David S. Miller <davem@davemloft.net>
31492
31493 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31494 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31495
31496 * normal/command.c: Add missing newline at end of file.
31497
31498 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31499 warnings.
31500 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31501 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31502 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31503 ihandles have a 32-bit type but need to be stored in a "void *".
31504
31505 2009-04-28 Pavel Roskin <proski@gnu.org>
31506
31507 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31508 not disk. Adjust all dependencies.
31509 (grub_fs_uuid_close): Use grub_device_close(), not
31510 grub_disk_close().
31511
31512 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31513 parent's partition, don't copy it by reference, as it gets freed
31514 on close.
31515
31516 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31517
31518 Preboot hooks support
31519
31520 * commands/boot.c (struct grub_preboot_t): new declaration
31521 (preboots_head): new variable
31522 (preboots_tail): likewise
31523 (grub_loader_register_preboot_hook): new function
31524 (grub_loader_unregister_preboot_hook): likewise
31525 (grub_loader_set): launch preboot hooks
31526 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31527 (grub_loader_register_preboot_hook): new declaration
31528 (grub_loader_unregister_preboot_hook): likewise
31529
31530 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31531
31532 Warning fix
31533
31534 * disk/scsi.c (grub_scsi_open): added missing cast when
31535 calling grub_dprintf
31536
31537 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31538
31539 Bug and warning fixes
31540
31541 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31542 declaration
31543 * commands/test.c (test_parse): fixed bug with file tests and corrected
31544 declaration of find_file
31545
31546 2009-04-26 Pavel Roskin <proski@gnu.org>
31547
31548 * Makefile.in: Don't install empty manual pages if help2man is
31549 missing. Use help2man option for output, not shell redirection.
31550
31551 2009-04-26 David S. Miller <davem@davemloft.net>
31552
31553 * util/grub-mkdevicemap.c (make_device_map): Add missing
31554 NESTED_FUNC_ATTR to process_device().
31555
31556 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31557
31558 Test command
31559
31560 * commands/test.c: rewritten to use bash-like test
31561
31562 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31563
31564 Parttool autoloading and improvements
31565
31566 * Makefile.in (pkglib_DATA): add parttool.lst
31567 (parttool.lst): new target
31568 * genmk.rb: generate parttool-*
31569 (CLEANFILES): add #{parttool}
31570 (PARTTOOLFILES): new variable
31571 * genparttoollist.sh: new file
31572 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31573 (grub_pcpart_type): likewise
31574 * commands/parttool.c (helpmsg): new variable
31575 (grub_cmd_parttool): output help if not enough arguments are supplied
31576 autoload modules
31577 (GRUB_MOD_INIT(parttool)): use helpmsg
31578
31579 2009-04-24 David S. Miller <davem@davemloft.net>
31580
31581 Avoiding opening same device multiple times in device iterator.
31582
31583 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31584 and use it to build a list of partitions in iterate_disk() and
31585 iterate_partition().
31586
31587 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31588 on disk->data.
31589
31590 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31591 grub_devalias_iterate() result instead of unconditional 0.
31592 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31593 Also, capture hook return value, either directly or via
31594 grub_children_iterate(), and propagate to caller.
31595 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31596 grub_children_iterate): Return value is now 'int' instead of
31597 'grub_err_t'.
31598 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31599 like a proper iterator, stopping when hooks return non-zero.
31600 (grub_devalias_iterate): Likewise.
31601
31602 2009-04-23 David S. Miller <davem@davemloft.net>
31603
31604 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31605
31606 2009-04-22 David S. Miller <davem@davemloft.net>
31607
31608 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31609 is larger than address_cells, use that value for address_cells too.
31610
31611 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31612 IEEE1275_MAX_PATH_LEN): Define.
31613 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31614 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31615 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31616 'devtype'. Explicitly NULL terminate devalias expansion.
31617
31618 * util/sparc64/ieee1275/misc.c: New file.
31619 * util/sparc64/ieee1275/grub-setup.c: New file.
31620 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31621 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31622 * util/sparc64/ieee1275/grub-install.in: New file.
31623 * util/ieee1275/ofpath.c: New file.
31624 * util/ieee1275/devicemap.c: New file.
31625 * util/devicemap.c: New file.
31626 * util/deviceiter.c: New file.
31627 * kern/sparc64/ieee1275/init.c: New file.
31628 * include/grub/util/ofpath.h: New file.
31629 * include/grub/util/deviceiter.h: New file.
31630 * util/grub-mkdevicemap.c: Include deviceiter.h.
31631 Implement using grub_util_emit_devicemap_entry and
31632 grub_util_iterate_devices.
31633 * conf/i386-corebook.rmk: Build util/deviceiter.c and
31634 util/devicemap.c into grub-mkdevicemap
31635 * conf/i386-efi.rmk: Likewise.
31636 * conf/i386-ieee1275.rmk: Likewise.
31637 * conf/i386-pc.rmk: Likewise.
31638 * conf/powerpc-ieee1275.rmk: Likewise.
31639 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
31640 images and installation utilities. Build kernel as image
31641 instead of as elf binary. Use common rules as much as possible.
31642
31643 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
31644
31645 Correct GPT definition
31646
31647 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31648 of "attrib" member
31649
31650 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
31651
31652 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
31653
31654 2009-04-19 David S. Miller <davem@davemloft.net>
31655
31656 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
31657 (grub_rescue_cmd_linux): Rename to...
31658 (grub_cmd_linux): and fix prototype.
31659 (grub_rescue_cmd_initrd): Rename to...
31660 (grub_cmd_initrd): and fix prototype.
31661 (cmd_linux, cmd_initrd): New.
31662 (GRUB_MOD_INIT(linux)): Use grub_register_command().
31663 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
31664
31665 2009-04-17 Pavel Roskin <proski@gnu.org>
31666
31667 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
31668 format.
31669 (grub_ohci_transfer): Likewise.
31670
31671 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
31672
31673 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
31674 return without a value. Fix inconsistent indentation.
31675
31676 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
31677 match struct grub_fs.
31678
31679 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
31680 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
31681 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31682 * commands/lspci.c (grub_lspci_iter): Likewise.
31683
31684 2009-04-16 Bean <bean123ch@gmail.com>
31685
31686 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
31687 value.
31688
31689 2009-04-15 Pavel Roskin <proski@gnu.org>
31690
31691 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
31692 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
31693 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
31694 definitions.
31695
31696 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31697
31698 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
31699 that no multiple data or metadata areas are supported and `Unknown
31700 metadata header'.
31701
31702 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31703
31704 Move loader out of the kernel
31705
31706 * kern/loader.c: moved to ...
31707 * commands/boot.c: ... moved here
31708 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
31709 * commands/boot.c (grub_cmd_boot): moved here. All users updated
31710 * include/grub/kernel.h (grub_machine_fini): export
31711 * include/grub/loader.h (grub_loader_is_loaded): update declaration
31712 (grub_loader_set): likewise
31713 (grub_loader_unset): likewise
31714 (grub_loader_boot): likewise
31715 * conf/common.rmk: new module boot.mod
31716 (pkglib_MODULES): add boot.mod
31717 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
31718 (grub_emu_SOURCES): likewise
31719 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
31720 (grub_emu_SOURCES): likewise
31721 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
31722 (grub_emu_SOURCES): likewise
31723 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
31724 (grub_emu_SOURCES): likewise
31725 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
31726 (grub_emu_SOURCES): likewise
31727 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
31728 (grub_emu_SOURCES): likewise
31729 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
31730 (grub_emu_SOURCES): likewise
31731
31732 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31733
31734 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
31735
31736 * kern/misc.c (grub_itoa): Removed function
31737 (grub_ltoa): likewise
31738 (grub_vsprintf): use grub_lltoa
31739
31740 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31741
31742 Restore grub-emu
31743
31744 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
31745 * conf/i386-coreboot.rmk: likewise
31746 * conf/i386-ieee1275.rmk: likewise
31747 * conf/powerpc-ieee1275.rmk: likewise
31748
31749 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31750
31751 * INSTALL: Add that `./autogen.sh' needs to be run before
31752 `./configure.'.
31753
31754 2009-04-14 Bean <bean123ch@gmail.com>
31755
31756 * Makefile.in (pkglib_DATA): Add handler.lst.
31757 (handler.lst): New rule.
31758
31759 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
31760 * conf/i386-coreboot.rmk: Likewise.
31761 * conf/i386-ieee1275.rmk: Likewise.
31762 * conf/i386-efi.rmk: Likewise.
31763 * conf/x86_64-efi.rmk: Likewise.
31764 * conf/powerpc-ieee1275.rmk: Likewise.
31765 * conf/sparc64-ieee1275.rmk: Likewise.
31766
31767 * genhandlerlist.sh: New file.
31768
31769 * genmk.rb: Add rules to generate handler.lst.
31770
31771 * include/grub/normal.h (grub_file_getline): New function definition.
31772 (read_handler_list): Likewise.
31773 (free_handler_list): Likewise.
31774
31775 * include/grub/term.h (grub_term_register_input): Add name parameter
31776 for auto generation of handler.lst.
31777 (grub_term_register_output): Likewise.
31778
31779 * normal/handler.c: New file.
31780
31781 * normal/main.c (get_line): Renamed to grub_file_getline.
31782 (read_config_file): Use the newly renamed grub_file_getline.
31783 (read_command_list): Likewise.
31784 (read_fs_list): Likewise.
31785 (grub_normal_execute): Call read_handler_list to parse handler.lst.
31786 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
31787
31788 * term/efi/console.c (grub_console_init): Add name parameter for auto
31789 generation of handler.lst.
31790 * term/gfxterm.c: Likewise.
31791 * term/i386/pc/at_keyboard.c: Likewise.
31792 * term/i386/pc/console.c: Likewise.
31793 * term/i386/pc/serial.c: Likewise.
31794 * term/i386/pc/vesafb.c: Likewise.
31795 * term/i386/pc/vga.c: Likewise.
31796 * term/i386/pc/vga_text.c: Likewise.
31797 * term/ieee1275/ofconsole.c: Likewise.
31798 * term/usb_keyboard.c: Likewise.
31799
31800 2009-04-14 Bean <bean123ch@gmail.com>
31801
31802 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
31803 properly with null character.
31804
31805 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31806
31807 * configure: Remove.
31808 * config.h.in: Likewise.
31809 * stamp-h.in: Likewise.
31810 * DISTLIST: Likewise.
31811 * conf/common.mk: Likewise.
31812 * conf/i386-coreboot.mk: Likewise.
31813 * conf/i386-efi.mk: Likewise.
31814 * conf/i386-ieee1275.mk: Likewise.
31815 * conf/i386.mk: Likewise.
31816 * conf/i386-pc.mk: Likewise.
31817 * conf/powerpc-ieee1275.mk: Likewise.
31818 * conf/sparc64-ieee1275.mk: Likewise.
31819 * conf/x86_64-efi.mk: Likewise.
31820
31821 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
31822 develop on GRUB.
31823
31824 2009-04-14 John Stanley <jpsinthemix@verizon.net>
31825 David S. Miller <davem@davemloft.net>
31826
31827 * util/hostdisk.c (make_device_name): Fix buffer length
31828 calculations.
31829
31830 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31831
31832 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
31833 <sys/param.h> and <sys/sysctl.h>.
31834 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
31835 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
31836 opening the device and reset them afterwards.
31837
31838 2009-04-13 Pavel Roskin <proski@gnu.org>
31839
31840 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
31841 Reported by John Stanley <jpsinthemix@verizon.net>
31842
31843 2009-04-13 Robert Millan <rmh@aybabtu.com>
31844
31845 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
31846 that name for menuentries when appropriate.
31847
31848 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31849
31850 * util/grub.d/10_freebsd.in: Add a missing `fi'.
31851
31852 2009-04-13 Robert Millan <rmh@aybabtu.com>
31853
31854 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
31855 to Linux, simply abort telling the user it's no longer supported.
31856
31857 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31858
31859 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
31860 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
31861 `freebsd_loadenv' only when devices.hints exist.
31862
31863 2009-04-13 Pavel Roskin <proski@gnu.org>
31864
31865 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
31866
31867 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31868
31869 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
31870 partition number.
31871 (grub_drive): Likewise.
31872
31873 2009-04-13 David S. Miller <davem@davemloft.net>
31874
31875 * kern/sparc64/ieee1275/ieee1275.c: New file.
31876 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
31877 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
31878 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
31879 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
31880 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
31881 grub_ieee1275_alloc_physmem): Declare new exported functions.
31882
31883 * include/grub/sparc64/ieee1275/loader.h: New file.
31884 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31885 * include/grub/sparc64/kernel.h: Likewise.
31886 * loader/sparc64/ieee1275/linux.c: Likewise.
31887
31888 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
31889 (grub_fstest_SOURCES): Likewise.
31890
31891 * util/hostdisk.c (make_device_name): Do not make any assumptions
31892 about the length of drive names.
31893
31894 * kern/dl.c (grub_dl_load_file): Close file immediately when
31895 we are done using it.
31896
31897 2009-04-12 David S. Miller <davem@davemloft.net>
31898
31899 * kern/misc.c (grub_ltoa): Fix cast when handling negative
31900 values. Noticed by Pavel Roskin.
31901
31902 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
31903 target compiler.
31904
31905 * genmk.rb: Add more flexible image type specification, also
31906 pass --strip-unneeded to objcopy.
31907 * conf/i386-pc.rmk: Use *_FORMAT.
31908 * conf/i386-pc.mk: Rebuilt.
31909
31910 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
31911 (OFDISK_HASH_SZ): Define.
31912 (ofdisk_hash): New hash table.
31913 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
31914 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
31915 instead of device phandle which is not unique.
31916
31917 * kern/sparc64/ieee1275/init.c: Delete, replace with...
31918 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
31919 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
31920 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
31921 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
31922 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
31923 GRUB_KERNEL_MACHINE_DATA_END): Define.
31924 (grub_kernel_image_size, grub_total_module_size): Declare.
31925
31926 2009-04-12 Pavel Roskin <proski@gnu.org>
31927
31928 * configure.ac: Change the logic when we check for target tools.
31929 Do it when the target is specified and it's different from the
31930 specified value of the host.
31931
31932 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
31933
31934 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
31935 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
31936 GNU/kFreeBSD. Check if a device is a character device. Use
31937 DIOCGMEDIASIZE to get the size.
31938 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
31939 support for GNU/kFreeBSD.
31940 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
31941 is a character device instead of a block device. Add support for
31942 FreeBSD device names.
31943
31944 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
31945 is a character device instead of a block device.
31946
31947 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
31948 is a character device instead of a block device.
31949
31950 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
31951
31952 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
31953 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
31954 FreeBSD. Check if a device is a character device. Use
31955 DIOCGMEDIASIZE to get the size.
31956 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
31957 support for FreeBSD.
31958 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
31959 is a character device instead of a block device. Add support for
31960 FreeBSD device names.
31961
31962 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
31963 a character device instead of a block device.
31964 (grub_util_check_char_device): New function.
31965
31966 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
31967 a character device instead of a block device.
31968
31969 * include/grub/util/getroot.h (grub_util_check_char_device): New
31970 prototype.
31971
31972 2009-04-11 David S. Miller <davem@davemloft.net>
31973
31974 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
31975 static libgcc.
31976 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
31977 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
31978 function, if present.
31979 (__bswapdi2): Likewise.
31980
31981 * include/grub/sparc64/ieee1275/boot.h: New file.
31982 * boot/sparc64/ieee1275/boot.S: Likewise.
31983 * boot/sparc64/ieee1275/diskboot.S: Likewise.
31984
31985 * kern/misc.c (grub_ltoa): New function.
31986 (grub_vsprintf): Use it to format 'long' integers.
31987
31988 2009-04-10 David S. Miller <davem@davemloft.net>
31989
31990 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
31991 slots are of type grub_ieee1275_cell_t.
31992 (grub_nand_read): Likewise.
31993 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
31994 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
31995 macros are used to compare values in arg/ret block of the call.
31996 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31997 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
31998 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
31999 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32000 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32001 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32002 grub_ieee1275_close, grub_ieee1275_set_property,
32003 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32004 grub_ieee1275_cell_t.
32005 * kern/ieee1275/openfw.c (grub_map): Likewise.
32006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32007 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32008
32009 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32010 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32011 (grub_devalias_iterate): Likewise.
32012
32013 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32014
32015 UFS improvements
32016
32017 * fs/ufs.c (INODE_NBLOCKS): new definition
32018 (struct grub_ufs_dirent): added fields for non-BSD dirents
32019 (grub_ufs_get_file_block): fixed double indirect handling
32020 (grub_ufs_lookup_symlink): use more robust way to determine whether
32021 symlink is inline
32022 (grub_ufs_find_file): support for non-BSD dirents
32023 (grub_ufs_dir): support for non-BSD dirents
32024
32025 2009-04-10 Bean <bean123ch@gnail.com>
32026
32027 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32028 attribute, otherwise the size would be wrong for i386 platform.
32029
32030 * include/grub/pci.h (grub_pci_read_word): New inline function.
32031 (grub_pci_read_byte): Likewise.
32032 (grub_pci_write): Likewise.
32033 (grub_pci_write_word): Likewise.
32034 (grub_pci_write_byte): Likewise.
32035
32036 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32037
32038 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32039 (find_framebuf): Scan pci to locate the frame buffer address.
32040
32041 * commands/efi/fixvideo.c: New file.
32042
32043 * commands/efi/loadbios.c: Likewise.
32044
32045 * commands/memrw.c: Likewise.
32046
32047 * util/grub-dumpbios.in: Likewise.
32048
32049 * conf/common.rmk (grub-dumpbios): New utility.
32050 (pkglib_MODULES): New module memrw.mod.
32051 (memrw_mod_SOURCE): New macro.
32052 (memrw_mod_CFLAGS): Likewise.
32053 (memrw_mod_LDFLAGS): Likewise.
32054
32055 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32056 fixvideo.mod.
32057 (loadbios_mod_SOURCE): New macro.
32058 (loadbios_mod_CFLAGS): Likewise.
32059 (loadbios_mod_LDFLAGS): Likewise.
32060 (fixvideo_mod_SOURCE): Likewise.
32061 (fixvideo_mod_CFLAGS): Likewise.
32062 (fixvideo_mod_LDFLAGS): Likewise.
32063
32064 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32065 fixvideo.mod.
32066 (loadbios_mod_SOURCE): New macro.
32067 (loadbios_mod_CFLAGS): Likewise.
32068 (loadbios_mod_LDFLAGS): Likewise.
32069 (fixvideo_mod_SOURCE): Likewise.
32070 (fixvideo_mod_CFLAGS): Likewise.
32071 (fixvideo_mod_LDFLAGS): Likewise.
32072
32073 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32074
32075 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32076
32077 2009-04-07 David S. Miller <davem@davemloft.net>
32078
32079 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32080 support for R_SPARC_OLO10 relocations. Fix compile warning for
32081 R_SPARC_WDISP30 case.
32082 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32083
32084 2009-04-06 Pavel Roskin <proski@gnu.org>
32085
32086 * include/grub/misc.h (ARRAY_SIZE): New macro.
32087 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32088 New macro.
32089 * loader/i386/linux.c (allocate_pages): Use free_pages().
32090 (grub_linux_unload): Don't use free_pages().
32091 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32092 wrong index. Treat all other modes as text modes.
32093 (grub_cmd_linux): Initialize vid_mode unconditionally to
32094 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32095
32096 * commands/help.c (print_command_help): Use cmd->prio, not
32097 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32098
32099 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32100
32101 Parttool
32102
32103 * parttool/pcpart.c: new file
32104 * commands/parttool.c: likewise
32105 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32106 (parttool_mod_SOURCES): new variable
32107 (parttool_mod_CFLAGS): likewise
32108 (parttool_mod_LDFLAGS): likewise
32109 (pcpart_mod_SOURCES): likewise
32110 (pcpart_mod_CFLAGS): likewise
32111 (pcpart_mod_LDFLAGS): likewise
32112 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32113 and parttool/pcpart.c
32114 * conf/i386-efi.rmk: likewise
32115 * conf/i386-ieee1275.rmk: likewise
32116 * conf/i386-pc.rmk: likewise
32117 * conf/powerpc-ieee1275.rmk: likewise
32118 * conf/sparc64-ieee1275.rmk: likewise
32119 * conf/x86_64-ieee1275.rmk: likewise
32120
32121 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32122
32123 Support for mtime and further expandability of dir command
32124
32125 * include/grub/lib/datetime.h: moved to ...
32126 * include/grub/datetime.h: ... moved here and added
32127 declaration of grub_unixtime2datetime. All users updated
32128 * include/grub/fs.h: new syntax for dir and mtime functions in
32129 struct grub_fs
32130 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32131 and GRUB_FSHELP_FLAGS_MASK
32132 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32133 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32134 (grub_ext2_mtime): new function
32135 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32136 (grub_hfsplus_mtime): new function
32137 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32138 (GRUB_UFS_ATTR_FILE): likewise
32139 (GRUB_UFS_ATTR_LNK): likewise
32140 (struct grub_ufs_sblock): new fields mtime
32141 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32142 all users updated
32143 (grub_ufs_dir): mtime support
32144 (grub_ufs_mtime): new function
32145 * fs/affs.c (grub_affs_dir): use new dir syntax
32146 * fs/afs.c (grub_afs_dir): likewise
32147 * fs/cpio.c (grub_cpio_dir): likewise
32148 * fs/fat.c (grub_fat_find_dir): likewise
32149 * fs/hfs.c (grub_hfs_dir): likewise
32150 * fs/iso9660.c (grub_iso9660_dir): likewise
32151 * fs/jfs.c (grub_jfs_dir): likewise
32152 * fs/minix.c (grub_minix_dir): likewise
32153 * fs/ntfs.c (grub_ntfs_dir): likewise
32154 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32155 * fs/sfs.c (grub_sfs_dir): likewise
32156 * fs/xfs.c (grub_xfs_dir): likewise
32157 * util/hostfs.c (grub_hostfs_dir): likewise
32158 * lib/datetime.c: moved to ...
32159 * normal/datetime.c: ... moved here
32160 (grub_unixtime2datetime): new function
32161 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32162 * normal/completion.c (iterate_dir): use new dir syntax
32163 * normal/misc.c (grub_normal_print_device_info): tell the
32164 last modification time of a volume
32165 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32166 * conf/common.rmk: added lib/datetime.c to ls.mod
32167 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32168 (normal_mod_SOURCES): likewise
32169 (datetime_mod_SOURCES): Removed lib/datetime.c
32170 * conf/i386-efi.rmk: likewise
32171 * conf/i386-ieee1275.rmk: likewise
32172 * conf/i386-pc.rmk: likewise
32173 * conf/powerpc-ieee1275.rmk: likewise
32174 * conf/sparc64-ieee1275.rmk: likewise
32175 * conf/x86_64-efi.rmk: likewise
32176
32177 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32178
32179 Trim trailing spaces in FAT label and support mtools-like labels
32180
32181 * fs/fat.c (grub_fat_iterate_dir): New function based
32182 on grub_fat_find_dir
32183 (grub_fat_find_dir): use grub_fat_iterate_dir
32184 (grub_fat_label): likewise
32185
32186 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32187
32188 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32189 and command.h
32190 remove extraneous kernel_elf_HEADERS
32191
32192 2009-04-04 Bean <bean123ch@gnail.com>
32193
32194 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32195
32196 * util/misc.c: Likewise.
32197
32198 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32199
32200 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32201 instead of grub_printf.
32202
32203 2009-04-03 Robert Millan <rmh@aybabtu.com>
32204
32205 * loader/i386/linux.c (grub_linux_setup_video): Fill
32206 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32207 values from `mode info' structure instead of hardcoded
32208 values.
32209
32210 2009-04-01 Pavel Roskin <proski@gnu.org>
32211
32212 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32213 unused now.
32214 * genmk.rb: Likewise.
32215 * configure.ac: Likewise.
32216
32217 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32218
32219 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32220 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32221
32222 2009-04-01 David S. Miller <davem@davemloft.net>
32223
32224 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32225 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32226 (grub_setjmp): Mark with 'returns_twice' attribute.
32227 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32228 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32229 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32230
32231 2009-04-01 Robert Millan <rmh@aybabtu.com>
32232
32233 Reapply fix from 2008-07-28 which was accidentally reverted; also
32234 perform the same fix to a similar check in same function.
32235
32236 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32237 with the same number are found, just use issue a warning with
32238 grub_dprintf(), as this error has been reported to be non-fatal.
32239
32240 2009-03-31 Pavel Roskin <proski@gnu.org>
32241
32242 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32243 for cross-compilation.
32244
32245 2009-03-30 Robert Millan <rmh@aybabtu.com>
32246
32247 Fix i386-ieee1275 build.
32248
32249 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32250 Remove declaration.
32251
32252 2009-03-30 Pavel Roskin <proski@gnu.org>
32253
32254 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32255 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32256 zero-terminated, rely only on the strlen value. Fix comparison
32257 of strings differing in length.
32258
32259 2009-03-30 Robert Millan <rmh@aybabtu.com>
32260
32261 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32262 checking for abi version. Improve error messages on BIOS to notify
32263 user about `linux16' command.
32264
32265 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32266
32267 Leak fixes
32268
32269 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32270 in case of collision
32271 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32272
32273 2009-03-29 Robert Millan <rmh@aybabtu.com>
32274
32275 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32276 set `vid_mode' accordingly.
32277 (grub_linux_boot): Process `vid_mode' and set video mode.
32278
32279 2009-03-29 Robert Millan <rmh@aybabtu.com>
32280
32281 * util/grub.d/10_linux.in (linux_entry): New function.
32282 Factorize generation of Linux boot entries.
32283
32284 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32285
32286 Make the format of Environment Block plain text. The boot loader
32287 part is not tested well yet.
32288
32289 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32290 (buffer): Removed.
32291 (envblk): Likewise.
32292 (usage): Remove "info" and "clear". Add "unset". Update the
32293 description of "set", as this does not delete variables any
32294 longer.
32295 (create_envblk_file): Complete rewrite.
32296 (open_envblk_file): Likewise.
32297 (cmd_info): Removed.
32298 (cmd_list): Likewise.
32299 (cmd_set): Likewise.
32300 (cmd_clear): Likewise.
32301 (list_variables): New function.
32302 (write_envblk): Likewise.
32303 (set_variables): Likewise.
32304 (unset_variables): Likewise.
32305 (main): Complete rewrite.
32306
32307 * commands/loadenv.c (buffer): Removed.
32308 (envblk): Likewise.
32309 (open_envblk_file): New function.
32310 (read_envblk_file): Complete rewrite.
32311 (grub_cmd_load_env): Likewise.
32312 (grub_cmd_list_env): Likewise.
32313 (struct blocklist): New struct.
32314 (free_blocklists): New function.
32315 (check_blocklists): Likewise.
32316 (write_blocklists): Likewise.
32317 (grub_cmd_save_env): Complete rewrite.
32318
32319 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32320 a plain text signature.
32321 (GRUB_ENVBLK_MAXLEN): Removed.
32322 (struct grub_envblk): Complete rewrite.
32323 (grub_envblk_find): Removed.
32324 (grub_envblk_insert): Likewise.
32325 (grub_envblk_open): New prototype.
32326 (grub_envblk_set): Likewise.
32327 (grub_envblk_delete): Put const to VALUE.
32328 (grub_envblk_iterate): Put const to NAME and VALUE.
32329 (grub_envblk_close): New prototype.
32330 (grub_envblk_buffer): New inline function.
32331 (grub_envblk_size): Likewise.
32332
32333 * lib/envblk.c: Include grub/mm.h.
32334 (grub_env_find): Removed.
32335 (grub_envblk_open): New function.
32336 (grub_envblk_close): Likewise.
32337 (escaped_value_len): Likewise.
32338 (find_next_line): Likewise.
32339 (grub_envblk_insert): Removed.
32340 (grub_envblk_set): New function.
32341 (grub_envblk_delete): Complete rewrite.
32342 (grub_envblk_iterate): Likewise.
32343
32344 2009-03-28 Robert Millan <rmh@aybabtu.com>
32345
32346 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32347 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32348 variables. Use 16-bit loader.
32349 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32350 loader.
32351 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32352 (grub_linux16_boot): ... this. Update all users.
32353 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32354 (grub_linux_boot): ... this. Update all users.
32355
32356 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32357 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32358 commands to `linux16' and `initrd16'.
32359 (GRUB_MOD_FINI(linux)): Rename to ...
32360 (GRUB_MOD_FINI(linux16)): ... this.
32361
32362 2009-03-24 Pavel Roskin <proski@gnu.org>
32363
32364 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32365 not just for compilation.
32366
32367 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32368
32369 Move multiboot helper out of kernel
32370
32371 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32372 `loader/i386/multiboot_helper.S'.
32373 * conf/i386-coreboot.rmk: Likewise
32374 * conf/i386-ieee1275.rmk: Likewise
32375
32376 * kern/i386/loader.S: Move multiboot helpers from here...
32377 * loader/i386/multiboot_helper.S: ...moved here
32378 * include/grub/i386/loader.h: Move declarations of multiboot
32379 helpers from here...
32380 * include/grub/i386/multiboot.h: ...moved here
32381 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32382
32383 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32384
32385 * kern/env.c (grub_env_context_open): Added an argument to specify
32386 whether a new context inherits exported variables from current
32387 one. This is useful when making a sandbox to interpret a config
32388 file.
32389 All callers updated.
32390
32391 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32392
32393 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32394
32395 * kern/env.c (grub_env_context_close): Fix memory leaks.
32396
32397 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32398
32399 * normal/main.c (grub_normal_execute): Added an argument
32400 BATCH to specify if an interactive interface should be provided
32401 after reading a config file.
32402 All callers updated.
32403 (read_command_list): Prevent being executed twice.
32404 (read_fs_list): Likewise.
32405
32406 * include/grub/normal.h (grub_normal_execute): Updated the
32407 prototype.
32408
32409 2009-03-22 Pavel Roskin <proski@gno.org>
32410
32411 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32412 _start.
32413 * kern/i386/pc/startup.S: Likewise.
32414 * kern/i386/efi/startup.S: Likewise.
32415 * kern/i386/ieee1275/startup.S: Likewise.
32416 * kern/i386/coreboot/startup.S: Likewise.
32417 * kern/x86_64/efi/startup.S: Likewise.
32418
32419 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32420 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32421 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32422
32423 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32424
32425 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32426
32427 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32428 limit detection.
32429 Use vaddr of correct segment for entry_point.
32430
32431 2009-03-21 Bean <bean123ch@gmail.com>
32432
32433 * commands/blocklist.c: Add include file <grub/command.h>, remove
32434 <grub/normal.h> and <grub/arg.h>.
32435 (grub_cmd_blocklist): Use the new command interface.
32436 (GRUB_MOD_INIT): Likewise.
32437 (GRUB_MOD_FINI): Likewise.
32438 * commands/boot.c: Likewise.
32439 * commands/cat.c: Likewise.
32440 * commands/cmp.c: Likewise.
32441 * commands/configfile.c: Likewise.
32442 * commands/crc.c: Likewise.
32443 * commands/echo.c: Likewise.
32444 * commands/halt.c: Likewise.
32445 * commands/handler.c: Likewise.
32446 * commands/hdparm.c: Likewise.
32447 * commands/help.c: Likewise.
32448 * commands/hexdump.c: Likewise.
32449 * commands/loadenv.c: Likewise.
32450 * commands/ls.c: Likewise.
32451 * commands/lsmmap.c: Likewise.
32452 * commands/lspci.c: Likewise.
32453 * commands/loadenv.c: Likewise.
32454 * commands/read.c: Likewise.
32455 * commands/reboot.c: Likewise.
32456 * commands/search.c: Likewise.
32457 * commands/sleep.c: Likewise.
32458 * commands/test.c: Likewise.
32459 * commands/usbtest.c: Likewise.
32460 * commands/videotest.c: Likewise.
32461 * commands/i386/cpuid.c: Likewise.
32462 * commands/i386/pc/halt.c: Likewise.
32463 * commands/i386/pc/play.c: Likewise.
32464 * commands/i386/pc/pxecmd.c: Likewise.
32465 * commands/i386/pc/vbeinfo.c: Likewise.
32466 * commands/i386/pc/vbetest.c: Likewise.
32467 * commands/ieee1275/suspend.c: Likewise.
32468 * disk/loopback.c: Likewise.
32469 * font/font_cmd.c: Likewise.
32470 * hello/hello.c: Likewise.
32471 * loader/efi/appleloader.c: Likewise.
32472 * loader/efi/chainloader.c: Likewise.
32473 * loader/i386/bsd.c: Likewise.
32474 * loader/i386/efi/linux.c: Likewise.
32475 * loader/i386/ieee1275/linux.c: Likewise.
32476 * loader/i386/linux.c: Likewise.
32477 * loader/i386/pc/chainloader.c: Likewise.
32478 * loader/i386/pc/linux.c: Likewise.
32479 * loader/powerpc/ieee1275/linux.c: Likewise.
32480 * loader/multiboot_loader.c: Likewise.
32481 * term/gfxterm.c: Likewise.
32482 * term/i386/pc/serial.c: Likewise.
32483 * term/terminfo.c: Likewise.
32484
32485 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32486 * term/i386/pc/vga.c: Likewise.
32487 * video/readers/jpeg.c: Likewise.
32488 * video/readers/png.c: Likewise.
32489 * video/readers/tga.c: Likewise.
32490
32491 * util/grub-fstest (cmd_loopback): Removed.
32492 (cmd_blocklist): Likewise.
32493 (cmd_ls): Likewise.
32494 (grub_register_command): Likewise.
32495 (grub_unregister_command): Likewise.
32496 (execute_command): Use grub_command_find to locate command and execute
32497 it.
32498
32499 * include/grub/efi/chainloader.h: Removed.
32500 * loader/efi/chainloader_normal.c: Likewise.
32501 * loader/i386/bsd_normal.c: Likewise.
32502 * loader/i386/pc/chainloader_normal.c: Likewise.
32503 * loader/i386/pc/multiboot_normal.c: Likewise.
32504 * loader/linux_normal.c: Likewise.
32505 * loader/multiboot_loader_normal.c: Likewise.
32506 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32507
32508 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32509 and grub_register_command_p1.
32510
32511 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32512 kern/command.c, lib/arg.c and commands/extcmd.c.
32513 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32514 (minicmd_mod_SOURCES): New variable.
32515 (minicmd_mod_CFLAGS): Likewise.
32516 (minicmd_mod_LDFLAGS): Likewise.
32517 (extcmd_mod_SOURCES): Likewise.
32518 (extcmd_mod_CFLAGS): Likewise.
32519 (extcmd_mod_LDFLAGS): Likewise.
32520 (boot_mod_SOURCES): Removed.
32521 (boot_mod_CFLAGS): Likewise.
32522 (boot_mod_LDFLAGS): Likewise.
32523
32524 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32525 kern/corecmd.c.
32526 (kernel_img_HEADERS): Add command.h.
32527 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32528 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32529 and lib/arg.c.
32530 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32531 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32532 remove the corresponding normal mode command.
32533 (normal_mod_SOURCES): Remove normal/arg.c.
32534 * conf/i386-coreboot.rmk: Likewise.
32535 * conf/i386-efi.rmk: Likewise.
32536 * conf/i386-ieee1275.rmk: Likewise.
32537 * conf/powerpc-ieee1275.rmk: Likewise.
32538 * conf/x86_64-efi.rmk: Likewise.
32539
32540 * include/grub/arg.h: Move from here ...
32541 * include/grub/lib/arg.h: ... to here.
32542
32543 * normal/arg.c: Move from here ...
32544 * lib/arg.c: ... to here.
32545
32546 * commands/extcmd.c: New file.
32547 * commands/minicmd.c: Likewise.
32548 * include/grub/command.h: Likewise.
32549 * include/grub/extcmd.h: Likewise.
32550 * kern/command.c: Likewise.
32551 * kern/corecmd.c: Likewise.
32552
32553 * kern/list.c (grub_list_iterate): Return int instead of void.
32554 (grub_list_insert): New function.
32555 (grub_prio_list_insert): Likewise.
32556
32557 * kern/rescue.c (grub_rescue_command): Removed.
32558 (grub_rescue_command_list): Likewise.
32559 (grub_rescue_register_command): Likewise.
32560 (grub_rescue_unregister_command): Likewise.
32561 (grub_rescue_cmd_boot): Move to minicmd.c
32562 (grub_rescue_cmd_help): Likewise.
32563 (grub_rescue_cmd_info): Likewise.
32564 (grub_rescue_cmd_boot): Likewise.
32565 (grub_rescue_cmd_testload): Likewise.
32566 (grub_rescue_cmd_dump): Likewise.
32567 (grub_rescue_cmd_rmmod): Likewise.
32568 (grub_rescue_cmd_lsmod): Likewise.
32569 (grub_rescue_cmd_exit): Likewise.
32570 (grub_rescue_print_devices): Moved to corecmd.c.
32571 (grub_rescue_print_files): Likewise.
32572 (grub_rescue_cmd_ls): Likewise.
32573 (grub_rescue_cmd_insmod): Likewise.
32574 (grub_rescue_cmd_set): Likewise.
32575 (grub_rescue_cmd_unset): Likewise.
32576 (attempt_normal_mode): Use grub_command_find to get normal module.
32577 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32578 commands, remove grub_rescue_register_command calls.
32579
32580 * normal/command.c (grub_register_command): Removed.
32581 (grub_unregister_command): Likewise.
32582 (grub_command_find): Likewise.
32583 (grub_iterate_commands): Likewise.
32584 (rescue_command): Likewise.
32585 (export_command): Moved to corecmd.c.
32586 (set_command): Removed.
32587 (unset_command): Likewise.
32588 (insmod_command): Likewise.
32589 (rmmod_command): Likewise.
32590 (lsmod_command): Likewise.
32591 (grub_command_init): Likewise.
32592
32593 * normal/completion.c (iterate_command): Use cmd->prio to check for
32594 active command.
32595 (complete_arguments): Use grub_extcmd_t structure to find options.
32596 (grub_normal_do_completion): Change function grub_iterate_commands to
32597 grub_command_iterate.
32598
32599 * normal/execute.c (grub_script_execute_cmd): No need to parse
32600 argument here.
32601
32602 * normal/main.c (grub_dyncmd_dispatcher): New function.
32603 (read_command_list): Register unload commands as dyncmd.
32604 (grub_cmd_normal): Use new command interface, register rescue,
32605 unregister normal at entry, register normal, unregister rescue at exit.
32606
32607 * include/grub/list.h (grub_list_test_t): New type.
32608 (grub_list_iterate): Return int instead of void.
32609 (grub_list_insert): New function.
32610 (GRUB_AS_NAMED_LIST_P): New macro.
32611 (GRUB_AS_PRIO_LIST): Likewise.
32612 (GRUB_AS_PRIO_LIST_P): Likewise.
32613 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32614 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32615 (grub_prio_list): New structure.
32616 (grub_prio_list_insert): New function.
32617 (grub_prio_list_remove): New inline function.
32618
32619 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32620 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32621 (GRUB_COMMAND_FLAG_MENU): Likewise.
32622 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32623 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32624 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32625 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
32626 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
32627 (grub_command): Likewise.
32628 (grub_register_command): Likewise.
32629 (grub_command_find): Likewise.
32630 (grub_iterate_commands): Likewise.
32631 (grub_command_init): Likewise.
32632 (grub_arg_parse): Likewise.
32633 (grub_arg_show_help): Likewise.
32634
32635 * include/grub/rescue.h (grub_rescue_register_command): Removed.
32636 (grub_rescue_unregister_command): Likewise.
32637
32638 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
32639 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
32640 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
32641
32642 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
32643 grub_rescue_cmd_initrd.
32644 * include/grub/i386/loader.h: Likewise.
32645 * include/grub/x86_64/loader.h: Likewise.
32646
32647 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
32648
32649 2009-03-21 Bean <bean123ch@gmail.com>
32650
32651 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
32652 instead of stat in mingw environment.
32653
32654 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
32655
32656 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
32657
32658 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
32659 AC_CONFIG_LINKS.
32660
32661 2009-03-21 Bean <bean123ch@gmail.com>
32662
32663 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
32664 out of range error.
32665
32666 2009-03-18 Michel Dänzer <michel@daenzer.net>
32667
32668 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
32669 checking inode flags for EXT4_EXTENTS_FLAG.
32670
32671 2009-03-18 Robert Millan <rmh@aybabtu.com>
32672
32673 * loader/i386/linux.c: Include `<grub/video.h>' and
32674 `<grub/i386/pc/vbe.h>'..
32675 (grub_linux_setup_video): New function. Loosely based on the EFI one.
32676 (grub_linux32_boot): Attempt to configure video settings with
32677 grub_linux_setup_video().
32678 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
32679 to avoid grub_console_fini() which would step out of graphical mode
32680 unconditionally.
32681
32682 2009-03-14 Robert Millan <rmh@aybabtu.com>
32683
32684 Fix build on powerpc.
32685 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
32686
32687 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
32688
32689 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
32690 background image command.
32691
32692 2009-03-12 Colin D Bennett <colin@gibibit.com>
32693
32694 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
32695 (grub_gfxterm_putchar): Extract pairs of identical calls to
32696 draw_cursor out of conditional blocks.
32697
32698 2009-03-11 Pavel Roskin <proski@gnu.org>
32699
32700 * fs/hfs.c (grub_hfs_strncasecmp): New function.
32701 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
32702
32703 2009-03-11 Robert Millan <rmh@aybabtu.com>
32704
32705 * loader/i386/multiboot_elfxx.c
32706 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
32707
32708 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
32709
32710 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
32711 `kern/handler.c'.
32712
32713 2009-03-11 Robert Millan <rmh@aybabtu.com>
32714
32715 * loader/i386/multiboot.c (code_size): New variable.
32716 (grub_multiboot): Define offsets by adding to `code_size' rather
32717 than subtracting from `grub_multiboot_payload_size'. Provide
32718 4-byte alignment to MBI and others by increasing
32719 `boot_loader_name_length' appropriately.
32720
32721 * loader/i386/multiboot_elfxx.c
32722 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
32723
32724 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
32725
32726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
32727 `fs/ext2.c'.
32728
32729 2009-03-08 Robert Millan <rmh@aybabtu.com>
32730
32731 Make loader/i386/linux.c usable on i386-pc again.
32732
32733 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
32734 memory to heap.
32735 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
32736 `#error' stanza.
32737
32738 2009-03-07 Bean <bean123ch@gmail.com>
32739
32740 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
32741 allocation.
32742
32743 2009-03-06 Robert Millan <rmh@aybabtu.com>
32744
32745 Fix display issue on terminals with screen size other than 80x25
32746 (e.g. gfxterm with resolution higher than 640x480).
32747
32748 * normal/main.c (grub_normal_init_page): Display title text in a
32749 position relative to the center of the terminal instead of relying
32750 on a hardcoded offset.
32751
32752 2009-03-04 Robert Millan <rmh@aybabtu.com>
32753
32754 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
32755 installed.
32756
32757 * Makefile.in (host_kernel): New variable.
32758 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
32759 scripts instead of just the windows one.
32760 * configure.ac: Initialize and AC_SUBST `host_kernel'.
32761
32762 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32763
32764 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
32765 `kern/handler.c'.
32766 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32767 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32768 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32770 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32771 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32772
32773 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32774
32775 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
32776 or if there's no space for the disk label and print the partition number on a
32777 invalid magic.
32778
32779 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32780
32781 * util/misc.c: Include <time.h>.
32782 (grub_millisleep): New function.
32783
32784 2009-03-04 Bean <bean123ch@gmail.com>
32785
32786 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
32787 another option -mno-red-zone.
32788
32789 * commands/handler.c: Change module description.
32790
32791 * kern/handler.c: Add missing space at the end of description line.
32792
32793 * kern/list.c: Likewise.
32794
32795 2009-03-03 Robert Millan <rmh@aybabtu.com>
32796
32797 Move more components to the relocation area, and fix mbi pointer
32798 handling to use the destination rather than the origin (thanks to
32799 Vladimir Serbinenko for spotting).
32800
32801 * loader/i386/multiboot.c (mbi_dest): New variable.
32802 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
32803 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
32804 relocation area.
32805
32806 2009-03-01 Bean <bean123ch@gmail.com>
32807
32808 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
32809 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
32810 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
32811 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
32812
32813 * loader/i386/efi/linux.c (acpi_guid): New variable.
32814 (acpi_guid): Likewise.
32815 (EBDA_SEG_ADDR): New constant.
32816 (LOW_MEM_ADDR): Likewise.
32817 (FAKE_EBDA_SEG): Likewise.
32818 (fake_bios_data): New function.
32819 (grub_linux_boot): Call fake_bios_data.
32820
32821 2009-03-01 Bean <bean123ch@gmail.com>
32822
32823 * commands/terminal.c: Removed.
32824
32825 * commands/handler.c: New file.
32826
32827 * include/grub/list.h: Likewise.
32828
32829 * include/grub/handler.h: Likewise.
32830
32831 * kern/list.c: Likewise.
32832
32833 * kern/handler.c: Likewise.
32834
32835 * kern/term.h: Include header file <grub/handler.h>.
32836 (grub_term_input): Move next field to the beginning.
32837 (grub_term_output): Likewise.
32838 (grub_term_input_class): New variable.
32839 (grub_term_output_class): Likewise.
32840 (grub_term_register_input): Changed to inline function.
32841 (grub_term_register_output): Likewise.
32842 (grub_term_unregister_input): Likewise.
32843 (grub_term_unregister_output): Likewise.
32844 (grub_term_set_current_input): Likewise.
32845 (grub_term_set_current_output): Likewise.
32846 (grub_term_get_current_input): Likewise.
32847 (grub_term_get_current_output): Likewise.
32848 (grub_term_iterate_input): Removed.
32849 (grub_term_iterate_output): Likewise.
32850
32851 * kern/term.c (grub_term_list_input): Removed.
32852 (grub_term_list_output): Likewise.
32853 (grub_term_input_class): New variable.
32854 (grub_term_output_class): Likewise.
32855 (grub_cur_term_input): Change variable as macro.
32856 (grub_cur_term_output): Likewise.
32857 (grub_term_register_input): Removed.
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_iterate_input): Likewise.
32864 (grub_term_iterate_output): Likewise.
32865 (grub_term_get_current_input): Likewise.
32866 (grub_term_get_current_output): Likewise.
32867
32868 * util/grub-editenv.c: Include header file <grub/handler.h>.
32869 (grub_term_get_current_input): Removed.
32870 (grub_term_get_current_output): Likewise.
32871 (grub_term_input_class): New variable.
32872 (grub_term_output_class): Likewise.
32873
32874 * util/grub-fstest.c (grub_term_get_current_input): Removed.
32875 (grub_term_get_current_output): Likewise.
32876 (grub_term_input_class): New variable.
32877 (grub_term_output_class): Likewise.
32878
32879 * util/grub-probe.c (grub_term_get_current_input): Removed.
32880 (grub_term_get_current_output): Likewise.
32881 (grub_term_input_class): New variable.
32882 (grub_term_output_class): Likewise.
32883
32884 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
32885 (grub_term_get_current_output): Likewise.
32886 (grub_term_input_class): New variable.
32887 (grub_term_output_class): Likewise.
32888
32889 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
32890 (terminal_mod_SOURCES): Likewise.
32891 (terminal_mod_CFLAGS): Likewise.
32892 (terminal_mod_LDFLAGS): Likewise.
32893
32894 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
32895 handler.c.
32896 (kernel_img_SOURCES): Add list.c and handler.c.
32897 (kernel_img_HEADERS): Add list.h and handler.h.
32898
32899 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32900 handler.c.
32901 (kernel_mod_SOURCES): Add list.c and handler.c.
32902 (kernel_mod_HEADERS): Add list.h and handler.h.
32903
32904 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
32905 handler.c.
32906 (kernel_elf_SOURCES): Add list.c and handler.c.
32907 (kernel_elf_HEADERS): Add list.h and handler.h.
32908
32909 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32910 handler.c.
32911 (kernel_elf_SOURCES): Add list.c and handler.c.
32912 (kernel_elf_HEADERS): Add list.h and handler.h.
32913
32914 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32915 handler.c.
32916 (kernel_mod_SOURCES): Add list.c and handler.c.
32917 (kernel_mod_HEADERS): Add list.h and handler.h.
32918
32919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32920 handler.c.
32921 (kernel_elf_SOURCES): Add list.c and handler.c.
32922 (kernel_elf_HEADERS): Add list.h and handler.h.
32923
32924 2009-02-27 Robert Millan <rmh@aybabtu.com>
32925
32926 Factorize elf32 / elf64 code in Multiboot loader. This will
32927 prevent it from getting out of sync again.
32928
32929 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
32930 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
32931 grub_multiboot_load_elf64): Move from here ...
32932 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
32933 grub_multiboot_load_elf): ... to here (new file).
32934
32935 2009-02-27 Robert Millan <rmh@aybabtu.com>
32936
32937 * util/grub.d/10_linux.in: Rename "single-user mode" to
32938 "recovery mode".
32939
32940 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
32941
32942 Don't leak in SCSI code.
32943 * disk/scsi.c (grub_scsi_close): free `scsi'.
32944
32945 2009-02-27 Robert Millan <rmh@aybabtu.com>
32946
32947 * loader/i386/pc/multiboot.c: Move from here ...
32948 * loader/i386/multiboot.c: ... to here. Update all users.
32949
32950 2009-02-27 Robert Millan <rmh@aybabtu.com>
32951
32952 Patch from Alexandre Bique <bique.alexandre@gmail.com>
32953 * util/i386/pc/grub-setup.c (setup): Fix directory path.
32954
32955 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
32956
32957 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
32958 b-tree.
32959
32960 2009-02-27 Robert Millan <rmh@aybabtu.com>
32961
32962 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
32963 `0x' qualifier as 0 when base is specified as parameter).
32964
32965 2009-02-24 Bean <bean123ch@gmail.com>
32966
32967 * configure.ac: Check for -mcmodel=large in x86_64 target.
32968
32969 * include/grub/efi/api.h (efi_call_10): New macro.
32970 (efi_wrap_10): New function.
32971
32972 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
32973 (GRUB_PE32_REL_BASED_HIGH): Likewise.
32974 (GRUB_PE32_REL_BASED_LOW): Likewise.
32975 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
32976 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
32977 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
32978 (GRUB_PE32_REL_BASED_SECTION): Likewise.
32979 (GRUB_PE32_REL_BASED_REL): Likewise.
32980 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
32981 (GRUB_PE32_REL_BASED_DIR64): Likewise.
32982 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
32983
32984 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
32985 issue.
32986
32987 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
32988 (efi_wrap_10): New function.
32989
32990 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
32991
32992 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
32993 MB/MBP model (NV chipset).
32994 (devdata_devs): Add devpath_5 to the list.
32995
32996 * load/i386/efi/linux.c (video_base): Remove variable.
32997 (RGB_MASK): New macro.
32998 (RGB_MAGIC): Likewise.
32999 (LINE_MIN): Likewise.
33000 (LINE_MAX): Likewise.
33001 (FBTEST_STEP): Likewise.
33002 (FBTEST_COUNT): Likewise.
33003 (fb_list): New variable.
33004 (grub_find_video_card): Remove function.
33005 (find_framebuf): New function.
33006 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33007 line length.
33008
33009 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33010 problem for x86_64.
33011
33012 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33013
33014 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33015
33016 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33017 coding tool name.
33018
33019 2009-02-22 Robert Millan <rmh@aybabtu.com>
33020
33021 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33022 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33023 in our relocation, instead of using it directly from heap. Also
33024 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33025
33026 2009-02-21 Robert Millan <rmh@aybabtu.com>
33027
33028 Implement USB keyboard support (based on patch by Marco Gerards)
33029
33030 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33031 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33032 (usb_keyboard_mod_LDFLAGS): New variables.
33033
33034 * term/usb_keyboard.c: New file.
33035
33036 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33037
33038 Corrected wrong declaration
33039
33040 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33041
33042 2009-02-14 Christian Franke <franke@computer.org>
33043
33044 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33045 (grub_lspci_iter): Print class code and programming interface byte.
33046
33047 2009-02-14 Christian Franke <franke@computer.org>
33048
33049 * gendistlist.sh: Ignore `.svn' directories.
33050
33051 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33052
33053 * fs/fat.c: Add 2009 to Copyright line.
33054
33055 2009-02-14 Christian Franke <franke@computer.org>
33056
33057 * commands/hdparm.c: New file. Provides `hdparm' command
33058 which sends ATA commands via grub_disk_ata_pass_through ().
33059
33060 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33061
33062 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33063 and <grub/cpu/io.h> to include/grub/ata.h.
33064 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33065 (GRUB_CDROM_SECTOR_SIZE): Remove.
33066 (GRUB_ATA_*): Move to include/grub/ata.h.
33067 (GRUB_ATAPI_*): Likewise.
33068 (enum grub_ata_commands): Likewise.
33069 (enum grub_ata_timeout_milliseconds): Likewise.
33070 (struct grub_ata_device): Likewise.
33071 (grub_ata_regset): Likewise.
33072 (grub_ata_regget): Likewise.
33073 (grub_ata_regset2): Likewise.
33074 (grub_ata_regget2): Likewise.
33075 (grub_ata_check_ready): Likewise.
33076 (grub_ata_wait_not_busy): Remove static, exported in
33077 include/grub/ata.h.
33078 (grub_ata_wait_drq): Likewise.
33079 (grub_ata_pio_read): Likewise.
33080
33081 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33082 function for hdparm.mod.
33083
33084 * include/grub/ata.h: New file, contains declarations from
33085 disk/ata.c.
33086 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33087
33088 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33089 (grub_disk_ata_pass_through): New exported variable.
33090
33091 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33092
33093 2009-02-13 Colin D Bennett <colin@gibibit.com>
33094
33095 Support multiple fallback entries, and provide an API to support
33096 executing default+fallback menu entries. Renamed the `terminal' menu
33097 viewer to `text'.
33098
33099 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33100 variable declaration.
33101 (grub_menu_execute_callback): New structure declaration.
33102 (grub_menu_execute_callback_t): New typedef.
33103 (grub_menu_execute_with_fallback): New function declaration.
33104 (grub_menu_get_entry): Likewise.
33105 (grub_menu_get_timeout): Likewise.
33106 (grub_menu_set_timeout): Likewise.
33107
33108 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33109
33110 * normal/menu.c (grub_wait_after_message): Moved to
33111 `normal/menu_text.c'.
33112 (draw_border): Likewise.
33113 (print_message): Likewise.
33114 (print_entry): Likewise.
33115 (print_entries): Likewise.
33116 (grub_menu_init_page): Likewise.
33117 (get_entry_number): Likewise.
33118 (print_timeout): Likewise.
33119 (run_menu): Likewise.
33120 (grub_menu_execute_entry): Likewise.
33121 (show_text_menu): Likewise.
33122 (get_and_remove_first_entry_number): New function.
33123 (grub_menu_execute_with_fallback): Likewise.
33124 (get_entry): Renamed to ...
33125 (grub_menu_get_entry): .. this and made it global.
33126 (get_timeout): Renamed to ...
33127 (grub_menu_get_timeout): ... this and made it global.
33128 (set_timeout): Renamed to ...
33129 (grub_menu_set_timeout): ... this and made it global.
33130 (grub_normal_terminal_menu_viewer): Renamed to ...
33131 (grub_normal_text_menu_viewer): ... this.
33132
33133 * normal/menu_text.c: New file. Extracted text-menu-specific code
33134 from normal/menu.c.
33135
33136 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33137 (normal_mod_SOURCES): Likewise.
33138
33139 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33140 (normal_mod_SOURCES): Likewise.
33141
33142 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33143 (normal_mod_SOURCES): Likewise.
33144
33145 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33146 (normal_mod_SOURCES): Likewise.
33147
33148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33149 (normal_mod_SOURCES): Likewise.
33150
33151 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33152 (normal_mod_SOURCES): Likewise.
33153
33154 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33155 (normal_mod_SOURCES): Likewise.
33156
33157 2009-02-11 Robert Millan <rmh@aybabtu.com>
33158
33159 * util/grub.d/00_header.in: Update old reference to `font' command.
33160
33161 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33162
33163 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33164
33165 Based on patch from Javier Martín.
33166
33167 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33168
33169 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33170 to avoid false positives with FAT.
33171 (grub_fstest_SOURCES): Likewise.
33172 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33173 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33175 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33176 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33177 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33178
33179 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33180
33181 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33182 bpb.version_specific.fat12_or_fat16.fstype and
33183 bpb.version_specific.fat32.fstype.
33184
33185 2009-02-08 Robert Millan <rmh@aybabtu.com>
33186
33187 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33188
33189 2009-02-08 Robert Millan <rmh@aybabtu.com>
33190
33191 * Makefile.in (host_os, host_cpu): New variables.
33192 (target_os): Remove. Update all users.
33193
33194 2009-02-08 Marco Gerards <marco@gnu.org>
33195
33196 * Makefile.in (enable_grub_emu_usb): New variable.
33197 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33198 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33199 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33200 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33201 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33202 `usbtest.mod' and `usbms.mod'.
33203 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33204 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33205 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33206 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33207 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33208 variables.
33209
33210 * disk/usbms.c: New file.
33211
33212 * include/grub/usb.h: Likewise.
33213
33214 * include/grub/usbtrans.h: Likewise.
33215
33216 * include/grub/usbdesc.h: Likewise.
33217
33218 * bus/usb/usbtrans.c: Likewise.
33219
33220 * bus/usb/ohci.c: Likewise.
33221
33222 * bus/usb/uhci.c: Likewise.
33223
33224 * bus/usb/usbhub.c: Likewise.
33225
33226 * bus/usb/usb.c: Likewise.
33227
33228 * commands/usbtest.c: Likewise.
33229
33230 * util/usb.c: Likewise.
33231
33232 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33233
33234 * configure.ac: Test for libusb presence.
33235
33236 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33237
33238 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33239
33240 * kern/mm.c: Add more comments.
33241
33242 2009-02-08 Robert Millan <rmh@aybabtu.com>
33243
33244 Patch from Javier Martín.
33245 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33246 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33247
33248 2009-02-08 Robert Millan <rmh@aybabtu.com>
33249
33250 * fs/cpio.c: Split tar functionality to ...
33251 * fs/tar.c: ... here (new file). Update all users.
33252
33253 2009-02-07 Robert Millan <rmh@aybabtu.com>
33254
33255 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33256 backward-incompatible features.
33257
33258 Based on patch from Javier Martín, with some adjustments.
33259
33260 2009-02-07 Michael Scherer <misc@mandriva.org>
33261
33262 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33263
33264 2009-02-07 Robert Millan <rmh@aybabtu.com>
33265
33266 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33267 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33268 after the RAID stuff.
33269
33270 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33271
33272 Fixes problem when running vbetest command as reported by
33273 Vladimir Serbinenko <phcoder@gmail.com>.
33274
33275 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33276
33277 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33278
33279 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33280 /dev/md/NpN style mdraid devices.
33281
33282 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33283
33284 * util/unifont2pff.rb: Remove.
33285
33286 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33287
33288 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33289 `#'.
33290
33291 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33292
33293 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33294 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33295 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33296 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33297 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33298 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33299 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33300
33301 2009-02-02 Christian Franke <franke@computer.org>
33302
33303 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33304
33305 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33306
33307 * INSTALL: Note that we now require at least autoconf 2.59 and
33308 that LZO is optional.
33309
33310 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33311
33312 Base on patch on bug #24154 created by Tomas Tintera
33313 <trosos@seznam.cz>.
33314
33315 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33316
33317 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33318
33319 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33320 <bero@arklinux.org>.
33321
33322 * normal/parser.y (script_init): Add missing semicolon.
33323
33324 2009-01-31 Colin D Bennett <colin@gibibit.com>
33325
33326 * normal/main.c: Add include to grub/menu_viewer.h.
33327 (free_menu_entry_classes): Added.
33328 (grub_normal_menu_addentry): Added class property handling.
33329 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33330 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33331
33332 * normal/menu_viewer.c: New file.
33333
33334 * normal/menu.c (run_menu_entry): Renamed to ...
33335 (grub_menu_execute_entry): ... this and made it as global.
33336 (grub_menu_run): Renamed to ...
33337 (show_text_menu): ... this and made it local.
33338 (show_text_menu): Adapt to new function names.
33339 (grub_normal_terminal_menu_viewer): New global variable.
33340
33341 * include/grub/menu.h: New file.
33342
33343 * include/grub/menu_viewer.h: New file.
33344
33345 * include/grub/normal.h: Added include to grub/menu.h.
33346 (grub_menu_entry): Moved to include/grub/menu.h.
33347 (grub_menu_entry_t): Likewise.
33348 (grub_menu): Likewise.
33349 (grub_menu_t): Likewise.
33350 (grub_normal_terminal_menu_viewer): Added.
33351 (grub_menu_execute_entry): Likewise.
33352 (grub_menu_run): Removed.
33353
33354 * DISTLIST: Added include/grub/menu.h.
33355 Added include/grub/menu_viewer.h.
33356 Added normal/menu_viewer.c.
33357
33358 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33359
33360 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33361 arglist for menutitle arguments.
33362
33363 * normal/main.c (grub_normal_menu_addentry): Likewise.
33364
33365 * normal/parser.y (menuentry): Likewise.
33366
33367 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33368
33369 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33370 (grub_script_create_cmdmenu): Likewise.
33371
33372 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33373
33374 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33375 changes.
33376
33377 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33378
33379 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33380
33381 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33382
33383 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33384
33385 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33386
33387 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33388
33389 2009-01-30 Christian Franke <franke@computer.org>
33390
33391 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33392 in option help text.
33393
33394 2009-01-27 Pavel Roskin <proski@gnu.org>
33395
33396 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33397
33398 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33399
33400 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33401
33402 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33403
33404 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33405 unregister function.
33406
33407 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33408
33409 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33410
33411 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33412
33413 * util/grub-mkfont.c (usage): Fix typo.
33414
33415 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33416
33417 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33418
33419 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33420
33421 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33422
33423 * kern/misc.c (grub_strcasecmp): New function.
33424 (grub_strcasecmp): Use grub_size_t instead of int for length.
33425 Fix return value.
33426 * include/grub/misc.h: Update function prototypes.
33427
33428 2009-01-26 Robert Millan <rmh@aybabtu.com>
33429
33430 * configure.ac: Fix cross-compilation check.
33431
33432 2009-01-22 Christian Franke <franke@computer.org>
33433
33434 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33435 (precision) digit string. Allow `.format2' without `format1' (width).
33436 Limit input chars for `%s' output to `format2' if specified. This is
33437 compatible with standard printf ().
33438
33439 2009-01-22 Christian Franke <franke@computer.org>
33440
33441 * disk/ata.c (grub_ata_wait_status): Replace by ...
33442 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33443 other status bits may be invalid while BSY is asserted.
33444 (grub_ata_check_ready): New function.
33445 (grub_ata_cmd): Removed.
33446 (grub_ata_wait_drq): New function.
33447 (grub_ata_strncpy): Remove inline.
33448 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33449 and error check now done by grub_ata_wait_drq ().
33450 (grub_ata_pio_write): Likewise.
33451 (grub_atapi_identify): Set DEV before check for !BSY. Use
33452 grub_ata_wait_drq () to wait for data.
33453 (grub_ata_device_initialize): Add status register check to
33454 detect missing SATA slave devices. Add debug messages.
33455 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33456 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33457 transfer loop by grub_ata_pio_write ().
33458 (grub_ata_identify): Set DEV before check for !BSY. Use
33459 grub_ata_wait_drq () to wait for data.
33460 (grub_ata_setaddress): Set DEV before check for !BSY.
33461 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33462 read/write in one loop. Fix invalid command on write. Fix incomplete
33463 command on (size % batch) == 0. Add missing error check after write of
33464 last block. Add debug messages.
33465 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33466
33467 2009-01-19 Christian Franke <franke@computer.org>
33468
33469 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33470 (GRUB_ATAPI_IREASON_*): Likewise.
33471 (grub_ata_pio_write): Fix timeout error return.
33472 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33473 (grub_atapi_wait_drq): New function.
33474 (grub_atapi_packet): New parameter `size'.
33475 Use grub_atapi_wait_drq () and direct write instead of
33476 grub_ata_pio_write ().
33477 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33478 reads the number of bytes requested by the device for each DRQ
33479 assertion.
33480 (grub_atapi_write): Remove old implementation, return not
33481 implemented instead.
33482
33483 2009-01-19 Christian Franke <franke@computer.org>
33484
33485 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33486 of 512 to calculate data size.
33487 (grub_scsi_read12): Likewise.
33488 (grub_scsi_write10): Likewise.
33489 (grub_scsi_write12): Likewise.
33490 (grub_scsi_read): Adjust size according to blocksize.
33491 Add checks for invalid blocksize and unaligned transfer.
33492
33493 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33494
33495 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33496
33497 * term/gfxterm.c (write_char): Fix background rendering for wide
33498 width glyphs.
33499
33500 2009-01-19 Robert Millan <rmh@aybabtu.com>
33501
33502 * config.guess: Update to latest version from config git.
33503 * config.sub: Likewise.
33504
33505 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33506
33507 * Makefile.in: Change font compilation to use new grub-mkfont instead
33508 of java version.
33509
33510 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33511 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33512 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33513 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33514 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33515 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33516 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33517 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33518 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33519
33520 2009-01-16 Christian Franke <franke@computer.org>
33521
33522 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33523 (enum grub_ata_timeout_milliseconds): New enum.
33524 (grub_ata_wait_status): Add parameter milliseconds.
33525 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33526 recovery from timed-out commands.
33527 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33528 return grub_errno instead of REG_ERROR.
33529 (grub_ata_pio_write): Add parameter milliseconds.
33530 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33531 Pass milliseconds to grub_ata_wait_status () and
33532 grub_ata_pio_read ().
33533 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33534 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33535 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33536 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33537 It is not suitable for device detection, because DEV bit is ignored,
33538 the command may run too long, and not all devices set the signature
33539 properly.
33540 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33541 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33542 Fix device selection, DEV bit must be set first to address the registers
33543 of the correct device.
33544 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33545 grub_ata_pio_read/write ().
33546 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33547 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33548
33549 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33550
33551 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33552
33553 2009-01-13 Bean <bean123ch@gmail.com>
33554
33555 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33556
33557 2009-01-13 Bean <bean123ch@gmail.com>
33558
33559 * Makefile.in: (enable_grub_mkfont): New variable.
33560 (freetype_cflags): Likewise.
33561 (freetype_libs): Likewise.
33562
33563 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33564 (grub_mkfont_SOURCES): New variable.
33565 (grub_mkfont_CFLAGS): Likewise.
33566 (grub_mkfont_LDFLAGS): Likewise.
33567
33568 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33569 library if `--enable-grub-mkfont' is requested.
33570 (enable_grub_mkfont): New variable.
33571 (freetype_cflags): Likewise.
33572 (freetype_libs): Likewise.
33573
33574 * util/grub-mkfont.c: New file.
33575
33576 2009-01-12 Christian Franke <franke@computer.org>
33577
33578 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33579 mode check. Fix setting of compat_use[].
33580
33581 2009-01-10 Robert Millan <rmh@aybabtu.com>
33582
33583 Update a few copyright years which we forgot to do in 2008 (only for
33584 files whose changes made in 2008 were copyright-significant)
33585
33586 * Makefile.in: Add 2008 to Copyright line.
33587 * disk/ieee1275/ofdisk.c: Likewise.
33588 * disk/efi/efidisk.c: Likewise.
33589 * kern/dl.c: Likewise.
33590 * kern/sparc64/ieee1275/init.c: Likewise.
33591 * kern/mm.c: Likewise.
33592 * kern/efi/mm.c: Likewise.
33593 * boot/i386/pc/boot.S: Likewise.
33594 * genfslist.sh: Likewise.
33595 * fs/iso9660.c: Likewise.
33596 * fs/hfs.c: Likewise.
33597 * fs/jfs.c: Likewise.
33598 * fs/minix.c: Likewise.
33599 * fs/ufs.c: Likewise.
33600 * gensymlist.sh.in: Likewise.
33601 * genkernsyms.sh.in: Likewise.
33602 * include/grub/misc.h: Likewise.
33603 * include/grub/types.h: Likewise.
33604 * include/grub/symbol.h: Likewise.
33605 * include/grub/elf.h: Likewise.
33606 * include/grub/kernel.h: Likewise.
33607 * include/grub/disk.h: Likewise.
33608 * include/grub/dl.h: Likewise.
33609 * include/grub/i386/linux.h: Likewise.
33610 * include/grub/i386/pc/biosdisk.h: Likewise.
33611 * include/grub/efi/api.h: Likewise.
33612 * include/grub/efi/pe32.h: Likewise.
33613 * include/grub/util/misc.h: Likewise.
33614 * normal/execute.c: Likewise.
33615 * normal/arg.c: Likewise.
33616 * normal/completion.c: Likewise.
33617 * normal/lexer.c: Likewise.
33618 * normal/parser.y: Likewise.
33619 * normal/misc.c: Likewise.
33620 * commands/i386/pc/vbeinfo.c: Likewise.
33621 * commands/hexdump.c: Likewise.
33622 * commands/terminal.c: Likewise.
33623 * commands/ls.c: Likewise.
33624 * commands/help.c: Likewise.
33625 * partmap/pc.c: Likewise.
33626 * loader/efi/chainloader.c: Likewise.
33627 * loader/multiboot_loader.c: Likewise.
33628 * loader/i386/pc/multiboot2.c: Likewise.
33629 * term/efi/console.c: Likewise.
33630 * term/i386/pc/serial.c: Likewise.
33631 * util/lvm.c: Likewise.
33632 * util/console.c: Likewise.
33633 * util/i386/efi/grub-mkimage.c: Likewise.
33634 * util/raid.c: Likewise.
33635
33636 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
33637
33638 * commands/videotest.c: Removed include to grub/machine/memory.h.
33639
33640 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
33641 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
33642 (video_mod_SOURCES): Removed.
33643 (video_mod_CFLAGS): Likewise.
33644 (video_mod_LDFLAGS): Likewise.
33645 (gfxterm_mod_SOURCES): Likewise.
33646 (gfxterm_mod_CFLAGS): Likewise.
33647 (gfxterm_mod_LDFLAGS): Likewise.
33648 (videotest_mod_SOURCES): Likewise.
33649 (videotest_mod_CFLAGS): Likewise.
33650 (videotest_mod_LDFLAGS): Likewise.
33651 (bitmap_mod_SOURCES): Likewise.
33652 (bitmap_mod_CFLAGS): Likewise.
33653 (bitmap_mod_LDFLAGS): Likewise.
33654 (tga_mod_SOURCES): Likewise.
33655 (tga_mod_CFLAGS): Likewise.
33656 (tga_mod_LDFLAGS): Likewise.
33657 (jpeg_mod_SOURCES): Likewise.
33658 (jpeg_mod_CFLAGS): Likewise.
33659 (jpeg_mod_LDFLAGS): Likewise.
33660 (png_mod_SOURCES): Likewise.
33661 (png_mod_CFLAGS): Likewise.
33662 (png_mod_LDFLAGS): Likewise.
33663
33664 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
33665 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
33666 (video_mod_SOURCES): Added.
33667 (video_mod_CFLAGS): Likewise.
33668 (video_mod_LDFLAGS): Likewise.
33669 (videotest_mod_SOURCES): Likewise.
33670 (videotest_mod_CFLAGS): Likewise.
33671 (videotest_mod_LDFLAGS): Likewise.
33672 (bitmap_mod_SOURCES): Likewise.
33673 (bitmap_mod_CFLAGS): Likewise.
33674 (bitmap_mod_LDFLAGS): Likewise.
33675 (tga_mod_SOURCES): Likewise.
33676 (tga_mod_CFLAGS): Likewise.
33677 (tga_mod_LDFLAGS): Likewise.
33678 (jpeg_mod_SOURCES): Likewise.
33679 (jpeg_mod_CFLAGS): Likewise.
33680 (jpeg_mod_LDFLAGS): Likewise.
33681 (png_mod_SOURCES): Likewise.
33682 (png_mod_CFLAGS): Likewise.
33683 (png_mod_LDFLAGS): Likewise.
33684 (gfxterm_mod_SOURCES): Likewise.
33685 (gfxterm_mod_CFLAGS): Likewise.
33686 (gfxterm_mod_LDFLAGS): Likewise.
33687
33688 * term/gfxterm.c: Removed include to grub/machine/memory.h,
33689 grub/machine/console.h.
33690
33691 2009-01-04 Jerone Young <jerone@gmail.com>
33692
33693 Make on screen instructions clearer
33694
33695 Based on patch created by Jidanni <jidanni@jidanni.org>
33696
33697 * normal/menu.c: print clearer instructions on the screen
33698
33699 2009-01-02 Colin D Bennett <colin@gibibit.com>
33700
33701 New font engine.
33702
33703 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
33704 build system and fixed gfxterm.c to work with different sized fonts.
33705
33706 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
33707
33708 * configure: Re-generated.
33709
33710 * DISTLIST: Removed font/manager.c.
33711 Added font/font.c.
33712 Added font/font_cmd.c.
33713
33714 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
33715 compilation.
33716
33717 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
33718
33719 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
33720
33721 * kern/term.c: Changed users of grub_utf8_to_ucs4.
33722
33723 * normal/menu.c: Likewise.
33724
33725 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
33726 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
33727
33728 * include/grub/font.h: Replaced with new file.
33729
33730 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
33731 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
33732 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
33733 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
33734 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
33735 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
33736 fg_red, fg_green, fg_blue, fg_alpha.
33737 (grub_video_adapter): Removed blit_glyph.
33738 (grub_video_blit_glyph): Removed.
33739
33740 * font/manager.c: Removed file.
33741
33742 * font/font.c: New file.
33743
33744 * font/font_cmd.c: Likewise.
33745
33746 * video/video.c (grub_video_blit_glyph): Removed.
33747
33748 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
33749 (grub_video_vbe_map_rgba): Likewise.
33750 (grub_video_vbe_unmap_color_int): Likewise.
33751 (grub_video_vbe_blit_glyph): Removed.
33752 (grub_video_vbe_adapter): Removed blit_glyph.
33753
33754 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
33755 (get_pixel): Likewise.
33756 (set_pixel): Likewise.
33757
33758 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
33759
33760 * term/gfxterm.c: Adapted to new font engine.
33761
33762 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
33763
33764 * term/i386/pc/vga.c: Likewise.
33765
33766 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
33767
33768 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33769
33770 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33771
33772 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33773
33774 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33775
33776 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33777
33778 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33779
33780 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33781
33782 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33783
33784 * util/grub.d/00_header.in: Changed to use new loadfont command.
33785
33786 * util/grub-mkconfig_lib.in: Changed font extension.
33787
33788 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
33789
33790 * util/getroot.c (grub_util_get_grub_dev): Add support for
33791 /dev/md/dNNpNN style partitionable mdraid devices.
33792
33793 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
33794
33795 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
33796 at a time limit of the PXE TFTP API correctly.
33797 (grub_pxefs_close): Likewise.
33798
33799 2008-11-29 Robert Millan <rmh@aybabtu.com>
33800
33801 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
33802 grub_ata_device_initialize() calls.
33803
33804 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
33805
33806 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
33807 iteration failed.
33808 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
33809
33810 2008-11-28 Robert Millan <rmh@aybabtu.com>
33811
33812 Fix build on powerpc-ieee1275. Based on patch created by
33813 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
33814 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33815 `kern/ieee1275/mmap.c'.
33816 * include/grub/powerpc/ieee1275/memory.h: New file.
33817
33818 Provide grub-install on coreboot.
33819 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
33820 (grub_install_SOURCES): New variable.
33821 * util/i386/pc/grub-install.in: Add a few condition checks to make it
33822 usable on coreboot.
33823
33824 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
33825
33826 * util/grub-fstest.c (grub_term_get_current_input): Change return type
33827 to `grub_term_input_t'.
33828 (grub_term_get_current_output): Change return type to
33829 `grub_term_output_t'.
33830
33831 2008-11-22 Robert Millan <rmh@aybabtu.com>
33832
33833 Fix breakage on coreboot due to declaration mismatch.
33834 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
33835 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
33836 grub_vga_text_cls().
33837
33838 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
33839 comments. Avoid copying one more byte than necessary (just in case).
33840
33841 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
33842 to 0x200000 (avoids trouble with some OFW implementations, and matches
33843 with the one in Yaboot).
33844 Reported by Manoel Abranches
33845
33846 2008-11-20 Robert Millan <rmh@aybabtu.com>
33847
33848 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
33849 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
33850
33851 * util/grub-mkconfig_lib.in (grub_warn): New function.
33852 (convert_system_path_to_grub_path): Use grub_warn() when issuing
33853 warnings, to obtain consistent formatting.
33854 * util/grub.d/00_header.in: Likewise.
33855 * util/update-grub_lib.in: Likewise.
33856
33857 * loader/i386/linux.c (allocate_pages): Fix a warning.
33858 Move comment text to `#error' stanza.
33859
33860 Harmonize ieee1275's grub_available_iterate() with the generic
33861 grub_machine_mmap_iterate() interface (fixes a recently-introduced
33862 build problem on i386-ieee1275):
33863 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
33864 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
33865 parameter `type'. Update all users of this function.
33866 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33867 `kern/ieee1275/mmap.c'.
33868 * kern/ieee1275/init.c
33869 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
33870 with ...
33871 (grub_machine_mmap_iterate): ... this.
33872 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
33873 return type to `grub_err_t'. Update all implementations of this
33874 function prototype.
33875 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
33876 Likewise.
33877
33878 Add `lsmmap' command (lists firmware-provided memory map):
33879 * commands/lsmmap.c: New file.
33880 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
33881 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
33882 variables.
33883 * conf/powerpc-ieee1275.rmk: Likewise.
33884 * conf/i386-coreboot.rmk: Likewise.
33885 * conf/i386-ieee1275.rmk: Likewise.
33886
33887 2008-11-19 Robert Millan <rmh@aybabtu.com>
33888
33889 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
33890 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
33891 constraints to initrd allocation (based on code from
33892 loader/i386/pc/linux.c). Without them, initrd was allocated too high
33893 for Linux to find it.
33894
33895 2008-11-14 Robert Millan <rmh@aybabtu.com>
33896
33897 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
33898 order to cope with duplicate slashes.
33899
33900 2008-11-14 Robert Millan <rmh@aybabtu.com>
33901
33902 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
33903 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
33904 don't want to mess with lower memory, because it is used in the Linux
33905 loader.
33906
33907 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
33908 an appropriate place in lower memory, between 0x10000 and 0x90000,
33909 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
33910 is in our heap (probably as a result of it being corrupted during
33911 decompression). Add #error instance with comment to explain why this
33912 loader isn't currently usable on PC/BIOS.
33913
33914 2008-11-14 Robert Millan <rmh@aybabtu.com>
33915
33916 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
33917 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
33918
33919 2008-11-12 Robert Millan <rmh@aybabtu.com>
33920
33921 Make loader/i386/linux.c buildable on i386-pc (although disabled).
33922
33923 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
33924 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
33925 from here ...
33926 * include/grub/i386/pc/memory.h: ... to here.
33927
33928 2008-11-12 Robert Millan <rmh@aybabtu.com>
33929
33930 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
33931 split).
33932
33933 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
33934 (grub_console_cur_color, grub_console_real_putchar)
33935 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33936 (grub_console_setcolorstate, grub_console_setcolor)
33937 (grub_console_getcolor): Move from here ...
33938 * include/grub/i386/vga_common.h: ... to here (new file).
33939
33940 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
33941 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
33942 `<grub/i386/io.h>'.
33943 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
33944 `<grub/i386/vga_common.h>'.
33945
33946 2008-11-12 Robert Millan <rmh@aybabtu.com>
33947
33948 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
33949 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
33950 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
33951 variables.
33952 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33953 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
33954
33955 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
33956 grub_console_init() with call to grub_vga_text_init().
33957 (grub_machine_fini): Replace call to
33958 grub_console_fini() with call to grub_vga_text_fini() and
33959 grub_at_keyboard_fini().
33960
33961 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
33962 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33963 (grub_console_setcolorstate, grub_console_setcolor)
33964 (grub_console_getcolor): New function prototypes.
33965
33966 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
33967 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
33968 (grub_vga_text_setcursor): Static-ize.
33969 (grub_vga_text_term): New structure.
33970 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
33971
33972 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
33973 (grub_console_cur_color, grub_console_standard_color)
33974 (grub_console_normal_color, grub_console_highlight_color)
33975 (map_char, grub_console_putchar, grub_console_getcharwidth)
33976 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
33977 (grub_console_getcolor): Move from here ...
33978 * term/i386/vga_common.c: ... to here (same function names).
33979
33980 2008-11-12 Robert Millan <rmh@aybabtu.com>
33981
33982 Use newly-added Multiboot support in coreboot.
33983
33984 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33985 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
33986
33987 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
33988 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
33989 (codestart): Store the MBI in `startup_multiboot_info' when we're
33990 being loaded using Multiboot.
33991
33992 * kern/i386/coreboot/init.c (grub_machine_init): Move
33993 grub_at_keyboard_init() call to beginning of function (useful for
33994 debugging). Call grub_machine_mmap_init() before attempting to use
33995 grub_machine_mmap_iterate().
33996 (grub_lower_mem, grub_upper_mem): Move from here ...
33997 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
33998 here (new file).
33999
34000 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34001 function prototype.
34002
34003 2008-11-12 Robert Millan <rmh@aybabtu.com>
34004
34005 Fix a regression introduced by the at_keyboard.mod split. Because
34006 some terminals are default on some platforms and non-default on
34007 others, the first terminal being registered determines which is
34008 going to be default.
34009
34010 * kern/term.c (grub_term_register_input): If this is the first
34011 terminal being registered, set it as the current one.
34012 (grub_term_register_output): Likewise.
34013
34014 * term/efi/console.c (grub_console_init): Do not call
34015 grub_term_set_current_output() or grub_term_set_current_input().
34016 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34017 * term/i386/pc/console.c (grub_console_init): Likewise.
34018 (grub_console_fini): Do not call grub_term_set_current_input()
34019 (but leave grub_term_set_current_output() to restore text mode).
34020
34021 2008-11-10 Robert Millan <rmh@aybabtu.com>
34022
34023 * util/grub.d/00_header.in: Add backward compatibility check for
34024 versions of terminal.mod that don't understand `terminal_input' or
34025 `terminal_output'.
34026
34027 2008-11-09 Robert Millan <rmh@aybabtu.com>
34028
34029 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34030 `terminal_input' / `terminal_output', not `terminal'.
34031
34032 2008-11-08 Robert Millan <rmh@aybabtu.com>
34033
34034 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34035 (DISTCLEANFILES): Add `build_env.mk'.
34036
34037 2008-11-08 Robert Millan <rmh@aybabtu.com>
34038
34039 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34040 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34041 members. Update all users.
34042 * util/console.c (grub_ncurses_term): Split in ...
34043 (grub_ncurses_term_input): ... this, and ...
34044 (grub_ncurses_term_output): ... this. Update all users.
34045 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34046
34047 2008-11-08 Robert Millan <rmh@aybabtu.com>
34048
34049 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34050 (PKGDATA): Add $(pkgdata_SRCDIR).
34051 (pkglib_BUILDDIR): New variable.
34052 (pkgdata_SRCDIR): New variable.
34053 (build_env.mk): New target.
34054 (include_DATA): New variable.
34055 (install-local): Install $(include_DATA) files in $(includedir).
34056
34057 2008-11-07 Pavel Roskin <proski@gnu.org>
34058
34059 * gendistlist.sh: Use C locale for sorting to ensure consistent
34060 output on all systems.
34061
34062 * util/grub.d/00_header.in: Remove incorrect space before
34063 "serial".
34064
34065 2008-11-07 Robert Millan <rmh@aybabtu.com>
34066
34067 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34068 per specification.
34069 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34070 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34071 (based on find_multi_boot1_header).
34072 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34073 using find_multi_boot2_header(), and abort if neither Multiboot or
34074 Multiboot headers were found.
34075
34076 2008-11-07 Robert Millan <rmh@aybabtu.com>
34077
34078 Modularize at_keyboard.mod:
34079
34080 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34081 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34082 (at_keyboard_mod_LDFLAGS): New variables.
34083
34084 Actual terminal split:
34085
34086 * include/grub/term.h (struct grub_term): Split in ...
34087 (struct grub_term_input): ... this, and ...
34088 (struct grub_term_output): ... this. Update all users.
34089 (grub_term_set_current): Split in ...
34090 (grub_term_set_current_input): ... this, and ...
34091 (grub_term_set_current_output): ... this.
34092 (grub_term_get_current): Split in ...
34093 (grub_term_get_current_input): ... this, and ...
34094 (grub_term_get_current_output): ... this.
34095 (grub_term_register): Split in ...
34096 (grub_term_register_input): ... this, and ...
34097 (grub_term_register_output): ... this.
34098 (grub_term_unregister): Split in ...
34099 (grub_term_unregister_input): ... this, and ...
34100 (grub_term_unregister_output): ... this.
34101 (grub_term_iterate): Split in ...
34102 (grub_term_iterate_input): ... this, and ...
34103 (grub_term_iterate_output): ... this.
34104
34105 * kern/term.c (grub_term_list): Split in ...
34106 (grub_term_list_input): ... this, and ...
34107 (grub_term_list_output): ... this. Update all users.
34108 (grub_cur_term): Split in ...
34109 (grub_cur_term_input): ... this, and ...
34110 (grub_cur_term_output): ... this. Update all users.
34111 (grub_term_set_current): Split in ...
34112 (grub_term_set_current_input): ... this, and ...
34113 (grub_term_set_current_output): ... this.
34114 (grub_term_get_current): Split in ...
34115 (grub_term_get_current_input): ... this, and ...
34116 (grub_term_get_current_output): ... this.
34117 (grub_term_register): Split in ...
34118 (grub_term_register_input): ... this, and ...
34119 (grub_term_register_output): ... this.
34120 (grub_term_unregister): Split in ...
34121 (grub_term_unregister_input): ... this, and ...
34122 (grub_term_unregister_output): ... this.
34123 (grub_term_iterate): Split in ...
34124 (grub_term_iterate_input): ... this, and ...
34125 (grub_term_iterate_output): ... this.
34126
34127 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34128 a check for input and one for output (and only attempt to get keys
34129 from user when input works).
34130
34131 * util/grub-probe.c (grub_term_get_current): Split in ...
34132 (grub_term_get_current_input): ... this, and ...
34133 (grub_term_get_current_output): ... this.
34134 * util/grub-fstest.c: Likewise.
34135 * util/i386/pc/grub-setup.c: Likewise.
34136 * util/grub-editenv.c: Likewise.
34137
34138 Portability adjustments:
34139
34140 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34141 `term/i386/pc/at_keyboard.c'.
34142 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34143 grub_keyboard_controller_init() (now handled by terminal .init).
34144 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34145 grub_at_keyboard_init().
34146 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34147 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34148 at_keyboard.mod via input terminal interface).
34149 * include/grub/i386/coreboot/console.h: Convert into a stub for
34150 `<grub/i386/pc/console.h>'.
34151
34152 Migrate full terminals to new API:
34153
34154 * term/efi/console.c (grub_console_term): Split into ...
34155 (grub_console_term_input): ... this, and ...
34156 (grub_console_term_output): ... this. Update all users.
34157 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34158 (grub_ofconsole_init): Split into ...
34159 (grub_ofconsole_init_input): ... this, and ...
34160 (grub_ofconsole_init_output): ... this.
34161 (grub_ofconsole_term): Split into ...
34162 (grub_ofconsole_term_input): ... this, and ...
34163 (grub_ofconsole_term_output): ... this. Update all users.
34164 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34165 (grub_serial_term_input): ... this, and ...
34166 (grub_serial_term_output): ... this. Update all users.
34167 * term/i386/pc/console.c (grub_console_term): Split into ...
34168 (grub_console_term_input): ... this, and ...
34169 (grub_console_term_output): ... this. Update all users.
34170 (grub_console_term_input): Only enable it on PC/BIOS platform.
34171 (grub_console_init): Remove grub_keyboard_controller_init() call.
34172
34173 Migrate input terminals to new API:
34174
34175 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34176 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34177 i386-specific anyway).
34178 (grub_console_checkkey): Rename to ...
34179 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34180 users.
34181 (grub_keyboard_controller_orig): New variable.
34182 (grub_console_getkey): Rename to ...
34183 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34184 users.
34185 (grub_keyboard_controller_init): Static-ize. Save original
34186 controller value so that it can be restored ...
34187 (grub_keyboard_controller_fini): ... here (new function).
34188 (grub_at_keyboard_term): New structure.
34189 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34190 functions.
34191
34192 Migrate output terminals to new API:
34193
34194 * term/i386/pc/vga.c (grub_vga_term): Change type to
34195 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34196 members. Update all users.
34197 * term/gfxterm.c (grub_video_term): Change type to
34198 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34199 members. Update all users.
34200 * include/grub/i386/pc/console.h (grub_console_checkkey)
34201 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34202 etc).
34203
34204 Migrate `terminal' command and userland tools to new API:
34205
34206 * commands/terminal.c (grub_cmd_terminal): Split into ...
34207 (grub_cmd_terminal_input): ... this, and ...
34208 (grub_cmd_terminal_output): ... this.
34209 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34210 `terminal_input' and `terminal_output'.
34211 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34212 `terminal_input' / `terminal_output' API.
34213 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34214 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34215 provided ${GRUB_TERMINAL}, convert it).
34216
34217 2008-11-04 Robert Millan <rmh@aybabtu.com>
34218
34219 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34220 for FreeBSD.
34221 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34222
34223 2008-11-03 Bean <bean123ch@gmail.com>
34224
34225 * kern/elf.c (grub_elf32_load): Revert to previous code.
34226 (grub_elf64_load): Likewise.
34227
34228 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34229
34230 2008-11-01 Robert Millan <rmh@aybabtu.com>
34231
34232 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34233 (TARGET_CPPFLAGS): Likewise.
34234 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34235
34236 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34237
34238 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34239
34240 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34241
34242 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34243 addition of objects until the code is not going to be able to fail.
34244
34245 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34246
34247 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34248 (add a missing NULL check, and correct them by moving the pointer
34249 operations after the actual check).
34250
34251 2008-10-29 Robert Millan <rmh@aybabtu.com>
34252
34253 * util/i386/pc/grub-install.in: Handle empty string as output from
34254 make_system_path_relative_to_its_root().
34255
34256 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34257
34258 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34259 circular metadata worst case scenario. If the metadata is circular
34260 then copy the wrap in place.
34261 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34262 project lib/format_text/layout.h
34263 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34264
34265 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34266
34267 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34268
34269 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34270
34271 * util/update-grub_lib.in: Mention filename in warning message.
34272
34273 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34274
34275 * NEWS: Update for rename of update-grub to grub-mkconfig.
34276
34277 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34278
34279 * util/update-grub_lib.in: Copy to ...
34280 * util/grub-mkconfig_lib.in: ... this. Update all users.
34281 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34282 * util/update-grub.in: Rename to ...
34283 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34284 option. Add `--output' option to allow users to specify the generated
34285 configuration file. Default to stdout.
34286 (update_grub_dir): Rename to ...
34287 (grub_mkconfig_dir): ... this.
34288 (grub_cfg): Default to an empty string.
34289 * conf/common.rmk (update-grub): Rename to ...
34290 (grub-mkconfig): ... this.
34291 (update-grub_lib): Copy to ...
34292 (grub-mkconfig_lib): ... this.
34293 (update-grub_SCRIPTS): Copy to ...
34294 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34295 (update-grub_DATA): Rename to ...
34296 (grub-mkconfig_DATA): ... this.
34297
34298 2008-09-28 Robert Millan <rmh@aybabtu.com>
34299
34300 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34301 to `modified'. Add the real `created' field.
34302 (grub_iso9660_uuid): Use `modified' rather than `created' for
34303 constructing the UUID.
34304
34305 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34306
34307 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34308 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34309
34310 2008-09-28 Bean <bean123ch@gmail.com>
34311
34312 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34313 Thanks to Christian Franke for finding this bug.
34314
34315 2008-09-25 Robert Millan <rmh@aybabtu.com>
34316
34317 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34318 instances of grub_util_get_disk_name() (see previous commit).
34319
34320 2008-09-25 Robert Millan <rmh@aybabtu.com>
34321
34322 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34323 `util/i386/get_disk_name.c'.
34324 * conf/i386-efi.rmk: Likewise.
34325 * conf/x86_64-efi.rmk: Likewise.
34326 * conf/i386-coreboot.rmk: Likewise.
34327 * conf/i386-ieee1275.rmk: Likewise.
34328 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34329 `util/ieee1275/get_disk_name.c'.
34330 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34331 * util/ieee1275/get_disk_name.c: Remove file.
34332 * util/i386/get_disk_name.c: Remove file.
34333 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34334 "hd%d" for device.map entries, rather than using
34335 grub_util_get_disk_name().
34336
34337 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34338
34339 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34340 warning.
34341 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34342
34343 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34344
34345 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34346 Changed to 0x5100.
34347 (GRUB_TERM_PPAGE): Changed to 0x4900.
34348
34349 2008-09-24 Robert Millan <rmh@aybabtu.com>
34350
34351 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34352 macros (they were i386-pc specific).
34353 * include/grub/sparc64/ieee1275/console.h: Likewise.
34354 * include/grub/efi/console.h: Likewise.
34355
34356 2008-09-22 Bean <bean123ch@gmail.com>
34357
34358 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34359 resident and in attribute list.
34360
34361 * include/grub/ntfs.h (BMP_LEN): Removed.
34362
34363 2008-09-22 Bean <bean123ch@gmail.com>
34364
34365 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34366 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34367
34368 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34369 error occurs, as grub_disk_open will call grub_disk_close, which will
34370 call p->close (scsi).
34371
34372 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34373
34374 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34375 (AC_PREREQ): Bumped to 2.59.
34376 (AC_TRY_COMPILE): Replace obsolete macro with ...
34377 (AC_COMPILE_IFELSE): ... this.
34378 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34379 (AC_LINK_IFELSE): ... this.
34380
34381 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34382
34383 * autogen.sh: Add a call to `gendistlist.sh'.
34384
34385 2008-09-19 Christian Franke <franke@computer.org>
34386
34387 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34388 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34389 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34390 Export __enable_execute_stack() to modules.
34391 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34392 New function.
34393
34394 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34395
34396 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34397 Sort the list.
34398
34399 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34400
34401 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34402 #include <grub/util/hostdisk.h>.
34403
34404 2008-09-08 Robert Millan <rmh@aybabtu.com>
34405
34406 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34407 segments when their filesz is zero (grub_file_read() interprets
34408 zero-size as "read until EOF", which results in memory corruption).
34409 Use `lowest_segment' rather than 0 for calculating the current
34410 segment load address.
34411
34412 2008-09-08 Robert Millan <rmh@aybabtu.com>
34413
34414 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34415 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34416 clobbered useful information.
34417
34418 2008-09-08 Robert Millan <rmh@aybabtu.com>
34419
34420 * include/grub/util/biosdisk.h: Move to ...
34421 * include/grub/util/hostdisk.h: ... here. Update all users.
34422 * util/biosdisk.c: Move to ...
34423 * util/hostdisk.c: ... here. Update all users.
34424
34425 2008-09-07 Robert Millan <rmh@aybabtu.com>
34426
34427 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34428 variables.
34429 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34430 and length can be stored directly in the `mbi->mmap_addr' and
34431 `mbi->mmap_length' struct fields.
34432
34433 2008-09-07 Robert Millan <rmh@aybabtu.com>
34434
34435 * conf/i386.rmk: New file. Provides declaration for building
34436 `cpuid.mod'.
34437 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34438 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34439 variables.
34440 Include `conf/i386.mk'.
34441 * conf/i386-efi.rmk: Likewise.
34442 * conf/x86_64-efi.rmk: Likewise.
34443 * conf/i386-coreboot.rmk: Likewise.
34444 * conf/i386-ieee1275.rmk: Likewise.
34445
34446 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34447
34448 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34449 Adds optimization support for BGR based modes.
34450
34451 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34452 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34453 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34454 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34455 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34456 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34457 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34458 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34459 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34460 (grub_video_i386_vbeblit_index_index): Likewise.
34461 (grub_video_i386_vbeblit_replace_directN): Added.
34462 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34463 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34464 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34465 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34466 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34467 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34468 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34469 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34470 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34471 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34472 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34473 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34474 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34475
34476 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34477 (grub_video_i386_vbefill_R8G8B8): Likewise.
34478 (grub_video_i386_vbefill_index): Likewise.
34479 (grub_video_i386_vbefill_direct32): Added.
34480 (grub_video_i386_vbefill_direct24): Likewise.
34481 (grub_video_i386_vbefill_direct16): Likewise.
34482 (grub_video_i386_vbefill_direct8): Likewise.
34483
34484 * include/grub/video.h (grub_video_blit_format): Removed
34485 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34486 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34487 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34488 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34489 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34490
34491 * video/video.c (grub_video_get_blit_format): Updated to use new
34492 blit formats. Added handling for 16 bit color modes.
34493
34494 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34495 fillers.
34496 (common_blitter): Updated to use new blitters.
34497
34498 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34499 Removed.
34500 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34501 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34502 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34503 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34504 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34505 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34506 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34507 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34508 (grub_video_i386_vbeblit_index_index): Likewise.
34509 (grub_video_i386_vbeblit_replace_directN): Added.
34510 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34511 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34512 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34513 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34514 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34515 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34516 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34517 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34518 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34519 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34520 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34521 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34522 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34523
34524 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34525 (grub_video_i386_vbefill_R8G8B8): Likewise.
34526 (grub_video_i386_vbefill_index): Likewise.
34527 (grub_video_i386_vbefill_direct32): Added.
34528 (grub_video_i386_vbefill_direct24): Likewise.
34529 (grub_video_i386_vbefill_direct16): Likewise.
34530 (grub_video_i386_vbefill_direct8): Likewise.
34531
34532 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34533 types.
34534
34535 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34536 types.
34537
34538 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34539 blitter types.
34540
34541 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34542 types.
34543
34544 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34545
34546 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34547 RAID level 1.
34548
34549 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34550
34551 * fs/iso9660.c (grub_iso9660_date): New structure.
34552 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34553 (grub_iso9660_uuid): New function.
34554
34555 2008-09-05 Bean <bean123ch@gmail.com>
34556
34557 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34558
34559 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34560 insensitive bit for names in Win32 and Win32 & DOS namespace.
34561
34562 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34563
34564 * include/grub/types.h (LONG_MAX): Likewise.
34565
34566 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34567
34568 * util/getroot.c: Include <config.h>.
34569 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34570 add support for /dev/md/N devices and handle LVM double dash escaping.
34571
34572 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34573
34574 * config.guess: Update to latest version from config git.
34575 * config.sub: Likewise.
34576
34577 2008-09-03 Robert Millan <rmh@aybabtu.com>
34578
34579 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34580 `disk->total_sectors'.
34581
34582 2008-09-01 Colin D Bennett <colin@gibibit.com>
34583
34584 * include/grub/normal.h: Fixed incorrect comment for
34585 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34586
34587 2008-09-01 Colin D Bennett <colin@gibibit.com>
34588
34589 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34590 values with defines.
34591
34592 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34593 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34594 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34595 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34596 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34597 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34598 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34599 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34600 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34601 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34602 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34603 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34604 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34605 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34606 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34607 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34608 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34609 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34610 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34611
34612 2008-08-31 Robert Millan <rmh@aybabtu.com>
34613
34614 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34615 declaration.
34616 (grub_multiboot): Fix a few warnings.
34617
34618 2008-08-31 Robert Millan <rmh@aybabtu.com>
34619
34620 * loader/i386/pc/multiboot.c: Update comment not to say that
34621 boot_device support is unimplemented.
34622
34623 2008-08-31 Robert Millan <rmh@aybabtu.com>
34624
34625 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
34626 or memory map support are unimplemented.
34627
34628 2008-08-31 Colin D Bennett <colin@gibibit.com>
34629
34630 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
34631
34632 2008-08-31 Colin D Bennett <colin@gibibit.com>
34633
34634 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
34635 total video memory in 'vbeinfo' output; show color format details for
34636 each video mode.
34637
34638 2008-08-30 Pavel Roskin <proski@gnu.org>
34639
34640 * util/genmoddep.c: Remove for real this time.
34641 * DISTLIST: Remove util/genmoddep.c.
34642
34643 2008-08-30 Robert Millan <rmh@aybabtu.com>
34644
34645 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
34646 as required by Multiboot spec (it was already 4-byte aligned, but
34647 only by chance).
34648
34649 2008-08-29 Pavel Roskin <proski@gnu.org>
34650
34651 * kern/powerpc/ieee1275/crt0.S: Rename to ...
34652 * kern/powerpc/ieee1275/startup.S: ... this.
34653 * conf/powerpc-ieee1275.rmk: Adjust for the above.
34654 * DISTLIST: Likewise.
34655
34656 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
34657 grub/cpu/kernel.h. Add start label for consistency with other
34658 platforms. Add grub_prefix immediately after start. Add jump
34659 to the code after grub_prefix.
34660 * include/grub/powerpc/kernel.h: Provide valid values for
34661 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
34662
34663 2008-08-29 Bean <bean123ch@gmail.com>
34664
34665 * configure.ac: Change host_os to cygwin for mingw.
34666 (asprintf): New check for function.
34667
34668 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
34669 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
34670
34671 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
34672 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
34673 sync, sleep and grub_util_get_disk_size for mingw.
34674
34675 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
34676 to get size in mingw.
34677 (open_device): Use flag O_BINARY if it's defined.
34678 (find_root_device): Add dummy code for mingw.
34679
34680 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
34681 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
34682 (get_scsi_disk_name): Return 0 for mingw.
34683
34684 * util/hostfs.c: #include <grub/util/misc.h>.
34685 (grub_hostfs_open): Use "rb" flag to open file, use
34686 grub_util_get_disk_size to get disk size for mingw.
34687
34688 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
34689 (asprintf): New function if HAVE_ASPRINTF is not set.
34690 (sync): New function for mingw.
34691 (sleep): Likewise.
34692 (grub_util_get_disk_size): Likewise.
34693
34694 2008-08-28 Pavel Roskin <proski@gnu.org>
34695
34696 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34697 kern/time.c.
34698
34699 2008-08-28 Robert Millan <rmh@aybabtu.com>
34700
34701 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
34702
34703 2008-08-28 Robert Millan <rmh@aybabtu.com>
34704
34705 Change find_grub_drive() syntax so it doesn't prevent it from
34706 detecting NULL names as errors.
34707
34708 * util/biosdisk.c (find_grub_drive): Move free slot search code
34709 from here ...
34710 (find_free_slot): ... to here.
34711 (read_device_map): Use find_free_slot() to search for free slots.
34712
34713 2008-08-27 Marco Gerards <marco@gnu.org>
34714
34715 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
34716 (scsi_mod_SOURCES): New variable.
34717 (scsi_mod_CFLAGS): Likewise
34718 (scsi_mod_LDFLAGS): Likewise.
34719
34720 * disk/scsi.c: New file.
34721
34722 * include/grub/scsi.h: Likewise.
34723
34724 * include/grub/scsicmd.h: Likewise.
34725
34726 * disk/ata.c: Include <grub/scsi.h>.
34727 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
34728 instead.
34729 (grub_ata_iterate): Skip ATAPI devices.
34730 (grub_ata_open): Only handle ATAPI devices.
34731 (struct grub_atapi_read): Removed.
34732 (grub_atapi_readsector): Likewise.
34733 (grub_ata_read): No longer handle ATAPI devices.
34734 (grub_ata_write): Likewise.
34735 (grub_atapi_iterate): New function.
34736 (grub_atapi_read): Likewise.
34737 (grub_atapi_write): Likewise.
34738 (grub_atapi_open): Likewise.
34739 (grub_atapi_close): Likewise.
34740 (grub_atapi_dev): New variable.
34741 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
34742 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
34743
34744 * include/grub/disk.h (enum grub_disk_dev_id): Add
34745 `GRUB_DISK_DEVICE_SCSI_ID'.
34746
34747 2008-08-26 Robert Millan <rmh@aybabtu.com>
34748
34749 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
34750 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
34751 descriptive.
34752
34753 2008-08-23 Bean <bean123ch@gmail.com>
34754
34755 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
34756 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34757 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
34758 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
34759 dm_nv.mod.
34760 (raid5rec_mod_SOURCES): New macro.
34761 (raid5rec_mod_CFLAGS): Likewise.
34762 (raid5rec_mod_LDFLAGS): Likewise.
34763 (raid6rec_mod_SOURCES): Likewise.
34764 (raid6rec_mod_CFLAGS): Likewise.
34765 (raid6rec_mod_LDFLAGS): Likewise.
34766 (mdraid_mod_SOURCES): Likewise.
34767 (mdraid_mod_CFLAGS): Likewise.
34768 (mdraid_mod_LDFLAGS): Likewise.
34769 (dm_nv_mod_SOURCES): Likewise.
34770 (dm_nv_mod_CFLAGS): Likewise.
34771 (dm_nv_mod_LDFLAGS): Likewise.
34772
34773 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
34774 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34775 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34776
34777 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
34778 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34779
34780 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34781
34782 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34783
34784 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34785
34786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34787
34788 * disk/raid5_recover.c: New file.
34789
34790 * disk/raid6_recover.c: Likewise.
34791
34792 * disk/mdraid_linux.c: Likewise.
34793
34794 * disk/dmraid_nvidia.c: Likewise.
34795
34796 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
34797 ULONG_MAX.
34798
34799 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
34800 calculate the size of raid device.
34801 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
34802 different layout of raid5.
34803 (grub_raid_scan_device): Remove code specific to mdraid.
34804 (grub_raid_list): New variable.
34805 (free_array): New function.
34806 (grub_raid_register): Likewise.
34807 (grub_raid_unregister): Likewise.
34808 (grub_raid_rescan): Likewise.
34809 (GRUB_MOD_INIT): Don't iterate device here.
34810 (GRUB_MOD_FINI): Use free_array to release resource.
34811
34812 * include/grub/raid.h: Remove macro and structure specific to mdraid.
34813 (grub_raid5_recover_func_t): New function variable type.
34814 (grub_raid6_recover_func_t): Likewise.
34815 (grub_raid5_recover_func): New variable.
34816 (grub_raid6_recover_func): Likewise.
34817 (grub_raid_register): New function.
34818 (grub_raid_unregister): Likewise.
34819 (grub_raid_rescan): Likewise.
34820 (grub_raid_block_xor): Likewise.
34821
34822 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
34823 (CMD_CRC): New macro.
34824 (part): Removed.
34825 (read_file): Handle device as well as file.
34826 (cmd_crc): New function.
34827 (fstest): Handle multiple disks.
34828 (options): Remove part, raw and long, add root and diskcount.
34829 (usage): Add crc, remove -p, -r, -l, add -r and -c.
34830 (main): Find the first non option entry and ignore subsequent options,
34831 add handling for the new options, support multiple disks.
34832
34833 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
34834
34835 2008-08-23 Bean <bean123ch@gmail.com>
34836
34837 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
34838
34839 * genfslist.sh: Ignore kernel.mod.
34840
34841 * genpartmaplist.sh: Likewise.
34842
34843 2008-08-23 Robert Millan <rmh@aybabtu.com>
34844
34845 * util/getroot.c (find_root_device): Skip anything that starts with
34846 a dot, not just directories. This avoids things like /dev/.tmp.md0.
34847
34848 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
34849
34850 * util/update-grub.in (GRUB_GFXMODE): Export variable.
34851 * util/grub.d/00_header.in: Allow the administrator to change default
34852 gfxmode via ${GRUB_GFXMODE}.
34853
34854 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
34855
34856 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
34857
34858 2008-08-21 Robert Millan <rmh@aybabtu.com>
34859
34860 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
34861 loader.
34862 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
34863 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
34864
34865 2008-08-20 Carles Pina i Estany <carles@pina.cat>
34866
34867 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
34868 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
34869
34870 2008-08-19 Robert Millan <rmh@aybabtu.com>
34871
34872 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
34873 (struct grub_virtual_screen): Remove `cursor_color'.
34874 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
34875 initialization.
34876 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
34877
34878 2008-08-18 Robert Millan <rmh@aybabtu.com>
34879
34880 Unify (identical) linux_normal.c files.
34881 * loader/i386/efi/linux_normal.c: Move from here ...
34882 * loader/linux_normal.c: ... to here. Update all users.
34883 * loader/i386/pc/linux_normal.c: Delete. Update all users.
34884 * loader/i386/ieee1275/linux_normal.c: Likewise.
34885
34886 2008-08-18 Robert Millan <rmh@aybabtu.com>
34887
34888 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
34889 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
34890 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
34891 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
34892 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
34893 New macros.
34894 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
34895 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
34896 (GRUB_LINUX_CL_END_OFFSET): ... to here.
34897 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
34898 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
34899 (GRUB_EFI_CL_END_OFFSET): Rename to ...
34900 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
34901 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
34902 Initialize `params->video_cursor_x' and `params->video_cursor_y'
34903 portably using grub_getxy().
34904 Replace `-EFI' with `-bzImage' in boot message.
34905
34906 2008-08-17 Robert Millan <rmh@aybabtu.com>
34907
34908 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
34909
34910 2008-08-17 Robert Millan <rmh@aybabtu.com>
34911
34912 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
34913
34914 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
34915 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
34916 (grub_machine_mmap_iterate): New function declaration.
34917 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
34918 structure.
34919 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
34920 macros.
34921
34922 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
34923 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
34924 Move e820 parsing from here ...
34925 * kern/i386/pc/mmap.c: New file.
34926 (grub_machine_mmap_iterate): ... to here.
34927
34928 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
34929 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
34930 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
34931 (grub_available_iterate): Redeclare to return `void', and redeclare
34932 its hook to use grub_uint64_t as addr and size parameters, and rename
34933 to ...
34934 (grub_machine_mmap_iterate): ... this. Update all users.
34935
34936 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
34937 to make it more readable. Rename to ...
34938 (grub_machine_mmap_iterate): ... this.
34939
34940 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
34941 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
34942 (grub_multiboot): Allocate an extra region after the payload, and fill
34943 it with a Multiboot memory map. Adjust a.out loader to calculate size
34944 with the extra space.
34945 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
34946 with the extra space.
34947
34948 2008-08-17 Carles Pina i Estany <carles@pina.cat>
34949
34950 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
34951
34952 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
34953
34954 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
34955 mdate-sh to the list `find' searches for.
34956 * DISTLIST: Regenerated.
34957
34958 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
34959
34960 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
34961 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
34962 genmoddep.awk, gensymlist.sh.in.
34963 (DISTDIRS): Add bus, docs, hook, lib.
34964 * DISTLIST: Regenerated.
34965 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
34966
34967 2008-08-16 Robert Millan <rmh@aybabtu.com>
34968
34969 * disk/raid.c (grub_raid_init): Handle/report errors set by
34970 grub_device_iterate().
34971 * disk/lvm.c (grub_lvm_init): Likewise.
34972
34973 2008-08-15 Bean <bean123ch@gmail.com>
34974
34975 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34976 and datehook.mod.
34977 (datetime_mod_SOURCES): New macro.
34978 (datetime_mod_CFLAGS): Likewise.
34979 (datetime_mod_LDFLAGS): Likewise.
34980 (date_mod_SOURCES): Likewise.
34981 (date_mod_CFLAGS): Likewise.
34982 (date_mod_LDFLAGS): Likewise.
34983 (datehook_mod_SOURCES): Likewise.
34984 (datehook_mod_CFLAGS): Likewise.
34985 (datehook_mod_LDFLAGS): Likewise.
34986
34987 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34988 and datehook.mod.
34989 (datetime_mod_SOURCES): New macro.
34990 (datetime_mod_CFLAGS): Likewise.
34991 (datetime_mod_LDFLAGS): Likewise.
34992 (date_mod_SOURCES): Likewise.
34993 (date_mod_CFLAGS): Likewise.
34994 (date_mod_LDFLAGS): Likewise.
34995 (datehook_mod_SOURCES): Likewise.
34996 (datehook_mod_CFLAGS): Likewise.
34997 (datehook_mod_LDFLAGS): Likewise.
34998
34999 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35000 and datehook.mod.
35001 (datetime_mod_SOURCES): New macro.
35002 (datetime_mod_CFLAGS): Likewise.
35003 (datetime_mod_LDFLAGS): Likewise.
35004 (date_mod_SOURCES): Likewise.
35005 (date_mod_CFLAGS): Likewise.
35006 (date_mod_LDFLAGS): Likewise.
35007 (datehook_mod_SOURCES): Likewise.
35008 (datehook_mod_CFLAGS): Likewise.
35009 (datehook_mod_LDFLAGS): Likewise.
35010
35011 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35012 and datehook.mod.
35013 (datetime_mod_SOURCES): New macro.
35014 (datetime_mod_CFLAGS): Likewise.
35015 (datetime_mod_LDFLAGS): Likewise.
35016 (date_mod_SOURCES): Likewise.
35017 (date_mod_CFLAGS): Likewise.
35018 (date_mod_LDFLAGS): Likewise.
35019 (datehook_mod_SOURCES): Likewise.
35020 (datehook_mod_CFLAGS): Likewise.
35021 (datehook_mod_LDFLAGS): Likewise.
35022
35023 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35024 and datehook.mod.
35025 (datetime_mod_SOURCES): New macro.
35026 (datetime_mod_CFLAGS): Likewise.
35027 (datetime_mod_LDFLAGS): Likewise.
35028 (date_mod_SOURCES): Likewise.
35029 (date_mod_CFLAGS): Likewise.
35030 (date_mod_LDFLAGS): Likewise.
35031 (datehook_mod_SOURCES): Likewise.
35032 (datehook_mod_CFLAGS): Likewise.
35033 (datehook_mod_LDFLAGS): Likewise.
35034
35035 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35036
35037 * commands/date.c: New file.
35038
35039 * hook/datehook.c: Likewise.
35040
35041 * include/grub/lib/datetime.h: Likewise.
35042
35043 * include/grub/i386/cmos.h: Likewise.
35044
35045 * lib/datetime.c: Likewise.
35046
35047 * lib/i386/datetime.c: Likewise.
35048
35049 * lib/efi/datetime.c: Likewise.
35050
35051 2008-08-14 Robert Millan <rmh@aybabtu.com>
35052
35053 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35054 (grub_mkelfimage_SOURCES): New variable.
35055 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35056
35057 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35058 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35059 * conf/powerpc-ieee1275.rmk: Likewise.
35060 * conf/i386-ieee1275.rmk: Likewise.
35061
35062 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35063 * kern/i386/coreboot/init.c: Likewise.
35064
35065 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35066 with `<grub/cpu/kernel.h>'.
35067 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35068 to ...
35069 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35070 * kern/i386/coreboot/startup.S: Likewise.
35071
35072 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35073 (GRUB_MOD_GAP): Remove.
35074 * include/grub/powerpc/kernel.h: New file.
35075 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35076 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35077 * include/grub/i386/kernel.h: New file.
35078 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35079 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35080 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35081
35082 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35083 `grub-mkelfimage'.
35084 Use --directory when invoking grub_mkimage.
35085
35086 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35087 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35088 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35089 and GRUB_KERNEL_CPU_PREFIX.
35090
35091 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35092
35093 * include/grub/err.h (grub_err_printf): New function prototype.
35094 * util/misc.c (grub_err_printf): New function.
35095 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35096 grub_printf.
35097 * kern/err.c (grub_print_error): Use grub_err_printf.
35098
35099 2008-08-13 Robert Millan <rmh@aybabtu.com>
35100
35101 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35102
35103 2008-08-13 Robert Millan <rmh@aybabtu.com>
35104
35105 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35106 boot entry.
35107
35108 2008-08-12 Robert Millan <rmh@aybabtu.com>
35109
35110 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35111 of the relocation code from here ...
35112 (grub_multiboot): ... to here.
35113 (forward_relocator, backward_relocator): Move from here ...
35114 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35115 (grub_multiboot_backward_relocator): ... to here.
35116 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35117 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35118 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35119 (grub_multiboot_forward_relocator_end)
35120 (grub_multiboot_backward_relocator)
35121 (grub_multiboot_backward_relocator_end): New variables.
35122
35123 2008-08-12 Bean <bean123ch@gmail.com>
35124
35125 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35126
35127 2008-08-11 Robert Millan <rmh@aybabtu.com>
35128
35129 * kern/i386/linuxbios/startup.S: Move from here ...
35130 * kern/i386/coreboot/startup.S: ... to here.
35131
35132 * kern/i386/linuxbios/init.c: Move from here ...
35133 * kern/i386/coreboot/init.c: ... to here.
35134
35135 * kern/i386/linuxbios/table.c: Move from here ...
35136 * kern/i386/coreboot/mmap.c: ... to here.
35137
35138 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35139
35140 2008-08-11 Robert Millan <rmh@aybabtu.com>
35141
35142 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35143 errors. Leave it to the upper layer to handle them.
35144
35145 2008-08-09 Christian Franke <franke@computer.org>
35146
35147 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35148 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35149 Install `grub.d/10_windows' only on Cygwin.
35150 * configure.ac: Add subst of `target_os'.
35151 Check `target_os' also before setting TARGET_OBJ2ELF.
35152 Add `--enable-grub-pe2elf'.
35153
35154 2008-08-08 Robert Millan <rmh@aybabtu.com>
35155
35156 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35157 (grub_last_time): Change type to grub_uint64_t.
35158 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35159 (grub_disk_close): Likewise.
35160
35161 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35162 (run_menu): Migrate code from to using grub_get_time_ms().
35163
35164 * util/misc.c (grub_get_time_ms): New function.
35165
35166 2008-08-08 Marco Gerards <marco@gnu.org>
35167
35168 * disk/ata.c (grub_ata_regget): Change return type to
35169 `grub_uint8_t'.
35170 (grub_ata_regget2): Likewise.
35171 (grub_ata_wait_status): New function.
35172 (grub_ata_wait_busy): Removed function, updated all users to use
35173 `grub_ata_wait_status'.
35174 (grub_ata_wait_drq): Likewise.
35175 (grub_ata_cmd): New function.
35176 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35177 error handling.
35178 (grub_ata_pio_write): Add error handling.
35179 (grub_atapi_identify): Likewise.
35180 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35181 handling.
35182 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35183 handling. Actually use the detected registers. Reorder the
35184 detection logic such that it is easier to read.
35185 (grub_ata_pciinit): Do not assign the same ID to each controller.
35186 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35187 handling.
35188 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35189
35190 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35191
35192 2008-08-08 Marco Gerards <marco@gnu.org>
35193
35194 * NEWS: Update.
35195
35196 2008-08-07 Bean <bean123ch@gmail.com>
35197
35198 * include/grub/x86_64/pci.h: New file.
35199
35200 2008-08-07 Christian Franke <franke@computer.org>
35201
35202 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35203 (TIMER2_GATE): Likewise.
35204 (grub_pit_wait): Add enable/disable of the timer2 gate
35205 bit of port 0x61. This fixes a possible infinite loop.
35206
35207 2008-08-07 Bean <bean123ch@gmail.com>
35208
35209 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35210 kern/i386/tsc.c and kern/i386/pit.c.
35211
35212 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35213 x86_64 platform.
35214
35215 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35216 <grub/i386/tsc.h>.
35217
35218 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35219
35220 2008-08-07 Bean <bean123ch@gmail.com>
35221
35222 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35223
35224 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35225
35226 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35227 multiple inclusion. Add #include <grub/types.h>.
35228
35229 2008-08-06 Christian Franke <franke@computer.org>
35230
35231 * conf/common.rmk: Build and install `10_windows'.
35232 * util/grub.d/10_windows.in: New script.
35233
35234 2008-08-06 Pavel Roskin <proski@gnu.org>
35235
35236 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35237
35238 2008-08-06 Robert Millan <rmh@aybabtu.com>
35239
35240 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35241 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35242
35243 2008-08-06 Bean <bean123ch@gmail.com>
35244
35245 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35246 (grub_pxefs_fs_int): Remove dummy definition.
35247 (grub_pxefs_open): Use data->block_size to store the current block
35248 size setting.
35249 (grub_pxefs_read): Use block size stored in data->block_size. As the
35250 value of grub_pxe_blksize can be changed after the file is opened.
35251
35252 2008-08-06 Bean <bean123ch@gmail.com>
35253
35254 * fs/i386/pc/pxe.c (curr_file): new variable.
35255 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35256 require the dummy internal file system anymore.
35257 (grub_pxefs_read): Removed.
35258 (grub_pxefs_close): Likewise.
35259 (grub_pxefs_fs_int): Likewise.
35260 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35261 connection when we switch file.
35262 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35263
35264 2008-08-06 Robert Millan <rmh@aybabtu.com>
35265
35266 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35267 `halt.mod'.
35268 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35269 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35270
35271 * kern/i386/halt.c: New file.
35272 * kern/i386/reboot.c: Likewise.
35273 * include/grub/i386/reboot.h: Likewise.
35274 * include/grub/i386/halt.h: Likewise.
35275
35276 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35277 Include `<grub/cpu/halt.h>'.
35278 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35279 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35280
35281 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35282 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35283 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35284 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35285 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35286 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35287 from here ...
35288 * include/grub/i386/at_keyboard.h: ... to here.
35289
35290 2008-08-05 Robert Millan <rmh@aybabtu.com>
35291
35292 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35293 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35294 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35295 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35296 `kern/generic/millisleep.c'.
35297
35298 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35299 instead of grub_get_rtc().
35300 (grub_tsc_init): Initialize `tsc_boot_time'.
35301
35302 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35303 (grub_machine_init): Use grub_tsc_init() rather than
35304 installing an RTC-based handler via grub_install_get_time_ms().
35305
35306 * kern/i386/pit.c: New file.
35307 * include/grub/i386/pit.h: Likewise.
35308
35309 2008-08-05 Bean <bean123ch@gmail.com>
35310
35311 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35312
35313 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35314 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35315 (pxe_mod_SOURCES): New macro.
35316 (pxe_mod_CFLAGS): Likewise.
35317 (pxe_mod_LDFLAGS): Likewise.
35318 (pxecmd_mod_SOURCES): Likewise.
35319 (pxecmd_mod_CFLAGS): Likewise.
35320 (pxecmd_mod_LDFLAGS): Likewise.
35321
35322 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35323 (grub_pxe_call): Likewise.
35324
35325 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35326
35327 * commands/i386/pc/pxecmd.c: New file.
35328
35329 * fs/i386/pc/pxe.c: Likewise.
35330
35331 * include/grub/i386/pc/pxe.h: Likewise.
35332
35333 2008-08-05 Bean <bean123ch@gmail.com>
35334
35335 * util/console.c (grub_console_cur_color): New variable.
35336 (grub_console_standard_color): Likewise.
35337 (grub_console_normal_color): Likewise.
35338 (grub_console_highlight_color): Likewise.
35339 (color_map): Likewise.
35340 (use_color): Likewise.
35341 (NUM_COLORS): New macro.
35342 (grub_ncurses_setcolorstate): Handle color properly.
35343 (grub_ncurses_setcolor): Don't change color here, just remember the
35344 settings, color will be set in grub_ncurses_setcolorstate.
35345 (grub_ncurses_getcolor): New function.
35346 (grub_ncurses_init): Initialize color pairs.
35347 (grub_ncurses_term): New member grub_ncurses_getcolor.
35348
35349 2008-08-05 Colin D Bennett <colin@gibibit.com>
35350
35351 High resolution timer support. Implemented for x86 CPUs using TSC.
35352 Extracted generic grub_millisleep() so it's linked in only as needed.
35353 This requires a Pentium compatible CPU; if the RDTSC instruction is
35354 not supported, then it falls back on the generic grub_get_time_ms()
35355 implementation that uses the machine's RTC.
35356
35357 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35358 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35359 `kern/generic/millisleep.c'.
35360
35361 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35362 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35363
35364 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35365 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35366
35367 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35368
35369 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35370 `kern/generic/millisleep.c'.
35371
35372 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35373
35374 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35375
35376 * kern/generic/rtc_get_time_ms.c: New file.
35377
35378 * kern/generic/millisleep.c: New file.
35379
35380 * kern/misc.c: Don't include
35381 <kern/time.h> anymore.
35382 (grub_millisleep_generic): Removed.
35383
35384 * commands/sleep.c (grub_interruptible_millisleep): Uses
35385 grub_get_time_ms() instead of grub_get_rtc().
35386
35387 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35388 function.
35389 (grub_cpu_is_cpuid_supported): New inline function.
35390 (grub_cpu_is_tsc_supported): New inline function.
35391 (grub_tsc_init): New function prototype.
35392 (grub_tsc_get_time_ms): New function prototype.
35393
35394 * kern/i386/tsc.c (grub_get_time_ms): New file.
35395
35396 * include/grub/time.h: Include <grub/types.h.
35397 (grub_millisleep_generic): Removed.
35398 (grub_get_time_ms): New prototype.
35399 (grub_install_get_time_ms): New prototype.
35400 (grub_rtc_get_time_ms): New prototype.
35401
35402 * kern/time.c (grub_get_time_ms): New function.
35403 (grub_install_get_time_ms): New function.
35404
35405 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35406 <grub/time.h> anymore.
35407 (grub_millisleep): Removed.
35408 (grub_machine_init): Call grub_tsc_init.
35409
35410 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35411 get_time_ms() implementation.
35412
35413 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35414 (ieee1275_get_time_ms): New function.
35415 (grub_machine_init): Install get_time_ms() implementation.
35416
35417 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35418 (grub_machine_init): Call grub_tsc_init().
35419 (grub_millisleep): Removed.
35420
35421 * kern/ieee1275/init.c (grub_millisleep): Removed.
35422 (grub_machine_init): Install ieee1275_get_time_ms()
35423 implementation.
35424 (ieee1275_get_time_ms): New function.
35425 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35426 real work.
35427
35428 2008-08-05 Marco Gerards <marco@gnu.org>
35429
35430 * disk/ata.c: Include <grub/pci.h>.
35431 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35432 (grub_ata_initialize): Rewritten.
35433 (grub_ata_device_initialize): New function.
35434
35435 2008-08-04 Pavel Roskin <proski@gnu.org>
35436
35437 * kern/main.c: Include grub/mm.h.
35438
35439 2008-08-04 Robert Millan <rmh@aybabtu.com>
35440
35441 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35442 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35443 corruption problem).
35444
35445 2008-08-04 Robert Millan <rmh@aybabtu.com>
35446
35447 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35448 warnings introduced in my last commit.
35449
35450 2008-08-03 Robert Millan <rmh@aybabtu.com>
35451
35452 Make PCI available on all i386 architectures.
35453
35454 * include/grub/i386/pc/pci.h: Move from here ...
35455 * include/grub/i386/pci.h: ... to here.
35456
35457 * include/grub/i386/pc/pci.h: Remove.
35458 * include/grub/i386/efi/pci.h: Remove.
35459 * include/grub/x86_64/efi/pci.h: Remove.
35460
35461 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35462 `<grub/cpu/pci.h>'.
35463
35464 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35465 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35466 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35467
35468 * conf/i386-ieee1275.rmk: Likewise.
35469
35470 2008-08-03 Robert Millan <rmh@aybabtu.com>
35471
35472 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35473 (grub_console_setcursor): Make it possible to set cursor off.
35474
35475 2008-08-03 Robert Millan <rmh@aybabtu.com>
35476
35477 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35478 of modules instead of assuming which platform provides what.
35479 * util/update-grub.in: Likewise.
35480
35481 2008-08-03 Robert Millan <rmh@aybabtu.com>
35482
35483 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35484 instead of `grub_install_dos_part' to determine whether a drive needs
35485 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35486 because it can be overridden when loading GRUB via Multiboot).
35487
35488 2008-08-02 Robert Millan <rmh@aybabtu.com>
35489
35490 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35491
35492 2008-08-02 Robert Millan <rmh@aybabtu.com>
35493
35494 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35495 of informational grub_dprintf() calls.
35496
35497 2008-08-02 Robert Millan <rmh@aybabtu.com>
35498
35499 * disk/memdisk.c (memdisk_size): Don't initialize.
35500 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35501
35502 * include/grub/i386/pc/kernel.h
35503 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35504 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35505 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35506 (grub_arch_memdisk_size): Remove.
35507
35508 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35509 field (was only used to transfer a constant). Add `type' field to
35510 support multiple module types.
35511 (grub_module_iterate): New function.
35512
35513 * kern/device.c (grub_device_open): Do not hide error messages
35514 when grub_disk_open() fails. Use grub_print_error() instead.
35515
35516 * kern/i386/pc/init.c (grub_arch_modules_addr)
35517 (grub_arch_memdisk_size): Remove functions.
35518 (grub_arch_modules_addr): Return the module address in high memory
35519 (now that it isn't copied anymore).
35520
35521 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35522 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35523 decompression routine (grub_total_module_size already includes that
35524 now). Don't copy modules back to low memory.
35525
35526 * kern/main.c: Include `<grub/mm.h>'.
35527 (grub_load_modules): Split out (and use) ...
35528 (grub_module_iterate): ... this function, which iterates through
35529 module objects and runs a hook.
35530 Comment out grub_mm_init_region() call, as it would cause non-ELF
35531 modules to be overwritten.
35532
35533 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35534 the memdisk image in its own region, make it part of the module list.
35535 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35536 (main): Parse --memdisk|-m option, and pass user-provided path as
35537 parameter to generate_image().
35538 (add_segments): Pass `memdisk_path' down to load_modules().
35539 (load_modules): Embed memdisk image in module section when requested.
35540 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35541 `header.type' instead of `header.offset'.
35542
35543 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35544 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35545 (memdisk_mod_LDFLAGS): New variables.
35546 * conf/i386-coreboot.rmk: Likewise.
35547 * conf/i386-ieee1275.rmk: Likewise.
35548
35549 2008-08-02 Robert Millan <rmh@aybabtu.com>
35550
35551 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35552 (backward_relocator): New variables. Used to allocate and relocate
35553 the payload, respectively.
35554 (grub_multiboot_load_elf32): Load into heap instead of requested
35555 address, install the appropriate relocator code in each bound of
35556 the payload, and set the entry point such that
35557 grub_multiboot_real_boot() will jump to one of them.
35558
35559 * kern/i386/loader.S (grub_multiboot_payload_size)
35560 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35561 (grub_multiboot_payload_entry_offset): New variables.
35562 (grub_multiboot_real_boot): Set cpu context to what the relocator
35563 expects, and jump to the relocator instead of the payload.
35564
35565 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35566 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35567 (grub_multiboot_payload_entry_offset): Export.
35568
35569 2008-08-01 Bean <bean123ch@gmail.com>
35570
35571 * normal/menu_entry.c (editor_getline): Don't return the original
35572 string as result, as it will be released by lexer once it has done
35573 using it.
35574
35575 2008-08-01 Robert Millan <rmh@aybabtu.com>
35576
35577 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35578 within menuentries, not before them.
35579 util/grub.d/10_hurd.in: Likewise.
35580
35581 2008-08-01 Bean <bean123ch@gmail.com>
35582
35583 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35584 (bufio_mod_SOURCES): New macro.
35585 (bufio_mod_CFLAGS): Likewise.
35586 (bufio_mod_LDFLAGS): Likewise.
35587
35588 * include/grub/bufio.h: New file.
35589
35590 * io/bufio.c: Likewise.
35591
35592 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35593 (grub_video_reader_png): Use grub_buffile_open to open file.
35594
35595 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35596 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35597
35598 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35599 (grub_video_reader_tga): Use grub_buffile_open to open file.
35600
35601 * font/manager.c: Include <grub/bufio.h>.
35602 (add_font): Use grub_buffile_open to open file.
35603
35604 2008-07-31 Robert Millan <rmh@aybabtu.com>
35605
35606 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35607 ELF segments, use a macro for arbitrarily accessing any of them instead
35608 of preparing a pointer that allows access to one at a time.
35609 (grub_multiboot_load_elf64): Likewise.
35610
35611 2008-07-31 Bean <bean123ch@gmail.com>
35612
35613 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35614 GRUB_KERNEL_MACHINE_DATA_END.
35615
35616 2008-07-30 Robert Millan <rmh@aybabtu.com>
35617
35618 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35619 Increase from 0x50 to 0x60.
35620 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35621 use UUIDs to identify the root drive for them. If that's not
35622 possible, abort.
35623 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35624 check, for cross-disk installs.
35625
35626 2008-07-30 Robert Millan <rmh@aybabtu.com>
35627
35628 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
35629 is non-empty, use it to set the `prefix' environment variable instead
35630 of the usual approach.
35631 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
35632 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
35633 environment variable instead of dummy make_install_device().
35634
35635 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
35636 (start): Insert a data section, with `grub_prefix' variable.
35637 * kern/i386/linuxbios/startup.S: Likewise.
35638
35639 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
35640 New variable reference.
35641 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
35642 New macro. Defines offset of `grub_prefix' within startup.S (relative
35643 to `start').
35644 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
35645 section within startup.S (relative to `start').
35646 * include/grub/i386/coreboot/kernel.h: Likewise.
35647
35648 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
35649 Overwrite grub_prefix with its contents, at the beginning of the
35650 first segment.
35651 (main): Understand -p|--prefix.
35652
35653 2008-07-30 Robert Millan <rmh@aybabtu.com>
35654
35655 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
35656
35657 2008-07-30 Robert Millan <rmh@aybabtu.com>
35658
35659 * term/i386/pc/vga_text.c (grub_console_cls): Use
35660 grub_console_gotoxy() to go back to beginning of the screen.
35661 Found by Patrick Georgi <patrick.georgi@coresystems.de>
35662
35663 2008-07-29 Christian Franke <franke@computer.org>
35664
35665 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
35666 Add conversion of emulated mount points on Cygwin.
35667
35668 2008-07-29 Christian Franke <franke@computer.org>
35669
35670 * util/update-grub.in: Add a check for admin
35671 group on Cygwin.
35672 Remove old `grub.cfg.new' before creation.
35673 Add `-f' to `mv' to handle the different filesystem
35674 semantics of Windows.
35675
35676 2008-07-29 Bean <bean123ch@gmail.com>
35677
35678 * normal/main.c (get_line): Fix buffer overflow bug.
35679
35680 2008-07-28 Robert Millan <rmh@aybabtu.com>
35681
35682 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
35683 (struct grub_apple_header): New struct. Describes the layout of
35684 the partmap header.
35685 (apple_partition_map_iterate): Check the header magic as well as the
35686 partition magic (which was already being checked).
35687
35688 2008-07-28 Pavel Roskin <proski@gnu.org>
35689
35690 * genmk.rb: Add a warning to the beginning of the output that
35691 it's a generated file and should not be edited.
35692
35693 2008-07-28 Robert Millan <rmh@aybabtu.com>
35694
35695 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35696 with the same number are found, just use issue a warning with
35697 grub_dprintf(), as this error has been reported to be non-fatal.
35698
35699 2008-07-27 Robert Millan <rmh@aybabtu.com>
35700
35701 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
35702 information.
35703
35704 2008-07-27 Bean <bean123ch@gmail.com>
35705
35706 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
35707 (grub_fat_find_dir): Ignore case when comparing filename.
35708
35709 2008-07-27 Bean <bean123ch@gmail.com>
35710
35711 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
35712 smallino, as it's more descriptive, and i8count can be confused with
35713 the other field count.
35714 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
35715 inode type.
35716
35717 2008-07-27 Bean <bean123ch@gmail.com>
35718
35719 * commands/crc.c: New file.
35720
35721 * lib/crc.c: Likewise.
35722
35723 * include/grub/lib/crc.h: Likewise.
35724
35725 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
35726
35727 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
35728 (hexdump): Move this function to ...
35729
35730 * lib/hexdump.c: ... here.
35731
35732 * include/grub/hexdump.h: Renamed to ...
35733
35734 * include/grub/lib/hexdump.h: ... this.
35735
35736 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
35737
35738 * util/grub-editenv.c: Likewise.
35739
35740 * include/envblk.h: Renamed to ...
35741
35742 * include/lib/envblk.h: ... this.
35743
35744 * util/envblk.c: Renamed to ...
35745
35746 * lib/envblk.c: ... this.
35747
35748 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
35749 lib/hexdump.c.
35750 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
35751 (pkglib_MODULES): Add crc.mod.
35752 (hexdump_mod_SOURCES): Add lib/hexdump.c.
35753 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
35754 (crc_mod_SOURCES): New macro.
35755 (crc_mod_CFLAGS): Likewise.
35756 (crc_mod_LDFLAGS): Likewise.
35757
35758 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
35759
35760 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35761
35762 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35763
35764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35765
35766 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35767
35768 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
35769
35770 * commands/help.c: Include <grub/term.h>.
35771 (TERM_WIDTH): Removed. Updated all users.
35772
35773 2008-07-27 Pavel Roskin <proski@gnu.org>
35774
35775 * util/getroot.c (find_root_device): Rephrase a comment to avoid
35776 spurious warnings about a comment within a comment.
35777
35778 2008-07-25 Robert Millan <rmh@aybabtu.com>
35779
35780 * util/getroot.c (find_root_device): Skip devices that match
35781 /dev/dm-[0-9]. This lets the real device be found for any type of
35782 abstraction (LVM, EVMS, RAID..).
35783 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
35784 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
35785 device is found first, find_root_device() will now skip it.
35786
35787 2008-07-24 Pavel Roskin <proski@gnu.org>
35788
35789 * include/grub/types.h: Use __builtin_bswap32() and
35790 __builtin_bswap64() with gcc 4.3 and newer.
35791
35792 2008-07-24 Christian Franke <franke@computer.org>
35793
35794 * util/i386/pc/grub-install.in: If `--debug' is specified,
35795 pass `--verbose' to grub-setup.
35796 Abort script if make_system_path_relative_to_its_root() fails.
35797
35798 2008-07-24 Bean <bean123ch@gmail.com>
35799
35800 * configure.ac: Fixed a bug caused by the previous cygwin patch,
35801 variable `target_platform' should be `platform'.
35802
35803 2008-07-24 Bean <bean123ch@gmail.com>
35804
35805 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
35806 (grub_png_init_fixed_block): New function.
35807 (grub_png_decode_image_data): Handle fixed huffman code compression.
35808
35809 2008-07-24 Bean <bean123ch@gmail.com>
35810
35811 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
35812 (grub_pe2elf_SOURCES): New macro.
35813 (CLEANFILES): Add grub-pe2elf.
35814
35815 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
35816 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
35817 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
35818 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
35819 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
35820 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
35821 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
35822 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
35823 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
35824 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
35825 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
35826 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
35827 (GRUB_PE32_DT_FUNCTION): Likewise.
35828 (GRUB_PE32_REL_I386_DIR32): Likewise.
35829 (GRUB_PE32_REL_I386_REL32): Likewise.
35830 (grub_pe32_symbol): New structure.
35831 (grub_pe32_reloc): Likewise.
35832
35833 * util/grub-pe2elf.c: New file.
35834
35835 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
35836 start symbol in non pc platform.
35837
35838 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
35839
35840 The following patches are from Christian Franke.
35841
35842 * include/grub/dl.h: Remove .previous, gas supports this only
35843 for ELF format.
35844
35845 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
35846 Remove .type, gas supports this only for ELF format.
35847
35848 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
35849 nullbytes in symbol table. This fixes an infinite loop if table is
35850 zero filled.
35851
35852 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
35853 TARGET_IMG_LDFLAGS and EXEEXT.
35854
35855 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
35856 TARGET_IMG_LDFLAGS_AC.
35857 (grub_CHECK_STACK_ARG_PROBE): New function.
35858
35859 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
35860
35861 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
35862
35863 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
35864 to set TARGET_IMG_LD* accordingly.
35865 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
35866 Add call to grub_CHECK_STACK_ARG_PROBE.
35867 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
35868
35869 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
35870
35871 * genmk.rb: Add EXEEXT to CLEANFILES.
35872
35873 2008-07-23 Robert Millan <rmh@aybabtu.com>
35874
35875 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
35876 define the codes for arrows and lines used for the menu).
35877 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
35878 as well.
35879
35880 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
35881 fonts, because the latter are too slow.
35882
35883 2008-07-21 Bean <bean123ch@gmail.com>
35884
35885 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
35886 a20. Run keyboard test last, as it will cause macbook to halt.
35887
35888 2008-07-18 Pavel Roskin <proski@gnu.org>
35889
35890 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
35891 load foreign architecture modules correctly anyway. Keep
35892 support for loading host architecture modules, whether we
35893 compile them or not.
35894
35895 2008-07-17 Pavel Roskin <proski@gnu.org>
35896
35897 * configure.ac: Use -m32 or -m64 regardless of whether we had to
35898 change target_cpu. The compiler default can mismatch target_cpu
35899 in any case.
35900
35901 * disk/efi/efidisk.c: Fix format warnings on x86_64.
35902 * kern/efi/efi.c: Likewise.
35903
35904 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
35905 target compiler is functional.
35906 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
35907 are set up.
35908
35909 * configure.ac: Default to efi platform for x86_64-apple. Allow
35910 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
35911 adjustments from the rest, only do them if target is not
35912 explicitly given. Merge other adjustments with the final sanity
35913 check. Remove an extraneous check for supported CPU. Be
35914 specific which CPU and which platform is not supported.
35915
35916 * configure.ac: Default to pc platform for x86_64.
35917
35918 2008-07-17 Robert Millan <rmh@aybabtu.com>
35919
35920 Partial LinuxBIOS -> Coreboot rename.
35921
35922 * conf/i386-linuxbios.rmk: Renamed to ...
35923 * conf/i386-coreboot.rmk: ... this.
35924 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
35925 * configure.ac: Accept "coreboot" as input platform (but maintain
35926 compatibility with "linuxbios").
35927 * include/grub/i386/linuxbios: Renamed to ...
35928 * include/grub/i386/coreboot: ... this.
35929
35930 2008-07-17 Bean <bean123ch@gmail.com>
35931
35932 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
35933 (appleldr_mod_SOURCE): New variable.
35934 (appleldr_mod_CFLAGS): Likewise.
35935 (appleldr_mod_LDFLAGS): Likewise.
35936 (pci_mod_SOURCES): Likewise.
35937 (pci_mod_CFLAGS): Likewise.
35938 (pci_mod_LDFLAGS): Likewise.
35939 (lspci_mod_SOURCES): Likewise.
35940 (lspci_mod_CFLAGS): Likewise.
35941 (lspci_mod_LDFLAGS): Likewise.
35942
35943 * conf/x86_64-efi.rmk: New file.
35944
35945 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
35946 macro.
35947 (grub_efidisk_write): Likewise.
35948
35949 * include/efi/api.h (efi_call_0): New macro.
35950 (efi_call_1): Likewise.
35951 (efi_call_2): Likewise.
35952 (efi_call_3): Likewise.
35953 (efi_call_4): Likewise.
35954 (efi_call_5): Likewise.
35955 (efi_call_6): Likewise.
35956
35957 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
35958 grub_rescue_cmd_chainloader.
35959
35960 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
35961 (grub_pe32_optional_header): Change some fields based on i386 or
35962 x86_64 platform.
35963 (GRUB_PE32_PE32_MAGIC): Likewise.
35964
35965 * include/grub/efi/uga_draw.h: New file.
35966
35967 * include/grub/elf.h (STN_ABS): New constant.
35968 (R_X86_64_NONE): Relocation constant for x86_64.
35969 (R_X86_64_64): Likewise.
35970 (R_X86_64_PC32): Likewise.
35971 (R_X86_64_GOT32): Likewise.
35972 (R_X86_64_PLT32): Likewise.
35973 (R_X86_64_COPY): Likewise.
35974 (R_X86_64_GLOB_DAT): Likewise.
35975 (R_X86_64_JUMP_SLOT): Likewise.
35976 (R_X86_64_RELATIVE): Likewise.
35977 (R_X86_64_GOTPCREL): Likewise.
35978 (R_X86_64_32): Likewise.
35979 (R_X86_64_32S): Likewise.
35980 (R_X86_64_16): Likewise.
35981 (R_X86_64_PC16): Likewise.
35982 (R_X86_64_8): Likewise.
35983 (R_X86_64_PC8): Likewise.
35984
35985 * include/grub/i386/efi/pci.h: New file.
35986
35987 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
35988 Change it value based on platform.
35989 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
35990 (GRUB_E820_RAM): Likewise.
35991 (GRUB_E820_RESERVED): Likewise.
35992 (GRUB_E820_ACPI): Likewise.
35993 (GRUB_E820_NVS): Likewise.
35994 (GRUB_E820_EXEC_CODE): Likewise.
35995 (GRUB_E820_MAX_ENTRY): Likewise.
35996 (grub_e820_mmap): New structure.
35997 (linux_kernel_header): Change the efi field according to different
35998 kernel version, also field from linux_kernel_header.
35999
36000 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36001
36002 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36003 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36004 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36005 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36006 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36007 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36008 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36009 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36010 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36011 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36012
36013 * include/grub/x86_64/efi/kernel.h: New file.
36014
36015 * include/grub/x86_64/efi/loader.h: Likewise.
36016
36017 * include/grub/x86_64/efi/machine.h: Likewise.
36018
36019 * include/grub/x86_64/efi/pci.h: Likewise.
36020
36021 * include/grub/x86_64/efi/time.h: Likewise.
36022
36023 * include/grub/x86_64/linux.h: Likewise.
36024
36025 * include/grub/x86_64/setjmp.h: Likewise.
36026
36027 * include/grub/x86_64/time.h: Likewise.
36028
36029 * include/grub/x86_64/types.h: Likewise.
36030
36031 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36032 GRUB_TARGET_SIZEOF_VOID_P.
36033
36034 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36035 (grub_efi_locate_handle): Likewise.
36036 (grub_efi_open_protocol): Likewise.
36037 (grub_efi_set_text_mode): Likewise.
36038 (grub_efi_stall): Likewise.
36039 (grub_exit): Likewise.
36040 (grub_reboot): Likewise.
36041 (grub_halt): Likewise.
36042 (grub_efi_exit_boot_services): Likewise.
36043 (grub_get_rtc): Likewise.
36044
36045 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36046 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36047 (grub_efi_allocate_pages): Wrap efi calls.
36048 (grub_efi_free_pages): Wrap efi calls.
36049 (grub_efi_get_memory_map): Wrap efi calls.
36050
36051 * kern/x86_64/dl.c: New file.
36052
36053 * kern/x86_64/efi/callwrap.S: Likewise.
36054
36055 * kern/x86_64/efi/startup.S: Likewise.
36056
36057 * loader/efi/appleloader.c: Likewise.
36058
36059 * loader/efi/chainloader.c (cmdline): New variable.
36060 (grub_chainloader_unload): Wrap efi calls.
36061 (grub_chainloader_boot): Likewise.
36062 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36063 command line.
36064
36065 * loader/efi/chainloader_normal.c (chainloader_command):
36066 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36067 command line.
36068
36069 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36070 method.
36071 (grub_e820_add_region): New function.
36072 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36073 booting.
36074 (grub_find_video_card): New function.
36075 (grub_linux_setup_video): New function.
36076 (grub_rescue_cmd_linux): Probe for video information.
36077
36078 * normal/x86_64/setjmp.S: New file.
36079
36080 * term/efi/console.c (map_char): New function.
36081 (grub_console_putchar): Map unicode char.
36082 (grub_console_checkkey): Wrap efi calls.
36083 (grub_console_getkey): Likewise.
36084 (grub_console_getwh): Likewise.
36085 (grub_console_gotoxy): Likewise.
36086 (grub_console_cls): Likewise.
36087 (grub_console_setcolorstate): Likewise.
36088 (grub_console_setcursor): Likewise.
36089
36090 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36091
36092 2008-07-16 Pavel Roskin <proski@gnu.org>
36093
36094 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36095 format strings.
36096
36097 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36098 pointer, not an integer. This fixes a warning and prevents
36099 precision loss on 64-bit systems.
36100 (relocate_addresses): Remove unneeded cast.
36101
36102 2008-07-15 Pavel Roskin <proski@gnu.org>
36103
36104 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36105
36106 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36107
36108 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36109 Fix comparison between signed and unsigned.
36110
36111 * include/grub/i386/ieee1275/console.h: Declare
36112 grub_console_init() and grub_console_fini().
36113
36114 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36115 It's empty and unused.
36116
36117 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36118 beginning to avoid warnings with some compilers.
36119
36120 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36121 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36122
36123 2008-07-14 Pavel Roskin <proski@gnu.org>
36124
36125 * kern/env.c (grub_register_variable_hook): Don't copy empty
36126 string, it leaks memory. Pass "" to grub_env_set(), it should
36127 handle constant strings.
36128
36129 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36130 * commands/cmp.c (grub_cmd_cmp): Likewise.
36131 * kern/dl.c (grub_dl_flush_cache): Likewise.
36132 (grub_dl_load_core): Likewise.
36133 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36134 (grub_elf64_load_phdrs): Likewise.
36135
36136 2008-07-13 Pavel Roskin <proski@gnu.org>
36137
36138 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36139 between signed and unsigned.
36140 (LzmaEnc_Finish): Fix warning about an unused parameter.
36141
36142 2008-07-13 Bean <bean123ch@gmail.com>
36143
36144 * Makefile.in (enable_lzo): New rule.
36145
36146 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36147
36148 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36149
36150 * boot/i386/pc/lnxboot.S: #include <config.h>.
36151
36152 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36153 its value according to the compression algorithm used, lzo or lzma.
36154
36155 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36156 compression algorithm according to configure macro.
36157
36158 * kern/i386/pc/startup.S (codestart): Likewise.
36159
36160 * kern/i386/pc/lzma_decode.S: New file.
36161
36162 * include/grub/lib/LzFind.h: Likewise.
36163
36164 * include/grub/lib/LzHash.h: Likewise.
36165
36166 * include/grub/lib/LzmaDec.h: Likewise.
36167
36168 * include/grub/lib/LzmaEnc.h: Likewise.
36169
36170 * include/grub/lib/LzmaTypes.h: Likewise.
36171
36172 * lib/LzFind.c: Likewise.
36173
36174 * lib/LzmaDec.c: Likewise.
36175
36176 * lib/LzmaEnc.c: Likewise.
36177
36178 2008-07-13 Bean <bean123ch@gmail.com>
36179
36180 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36181 (grub_ext4_extent_header): New structure.
36182 (grub_ext4_extent): Likewise.
36183 (grub_ext4_extent_idx): Likewise.
36184 (grub_ext4_find_leaf): New function.
36185 (grub_ext2_read_block): Handle extents.
36186
36187 2008-07-12 Robert Millan <rmh@aybabtu.com>
36188
36189 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36190
36191 2008-07-11 Robert Millan <rmh@aybabtu.com>
36192
36193 * util/grub.d/40_custom.in: New file. Example on how to add custom
36194 entries to /etc/grub.d.
36195 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36196 40_custom (implicitly, by merging all the grub.d rules).
36197
36198 2008-07-11 Pavel Roskin <proski@gnu.org>
36199
36200 * commands/read.c (grub_getline): Fix invalid memory access.
36201 Don't add newline to the variable value.
36202
36203 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36204 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36205 (serial_hw_get_port): Check validity of the port number.
36206 (grub_cmd_serial): Check return value of serial_hw_get_port().
36207
36208 2008-07-07 Pavel Roskin <proski@gnu.org>
36209
36210 * boot/i386/pc/diskboot.S (notification_string): Replace
36211 "Loading kernel" with just "loading". This is shorter, less
36212 confusing and saves a few bytes for possible future changes.
36213
36214 2008-07-05 Pavel Roskin <proski@gnu.org>
36215
36216 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36217 size for ATAPI devices, they are undefined. Output sector
36218 number in decimal form.
36219
36220 * disk/ata.c: Use named constants for status bits.
36221
36222 2008-07-04 Pavel Roskin <proski@gnu.org>
36223
36224 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36225 grub_addr_t before casting it to the void pointer to fix a
36226 warning. Non-addressable regions are discarded earlier.
36227 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36228 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36229 (check_signature): Don't shadow table_header.
36230 (grub_linuxbios_table_iterate): Cast numeric constants to
36231 grub_linuxbios_table_header_t.
36232 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36233 grub_stop().
36234
36235 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36236 prevent warnings.
36237
36238 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36239 pointer, which can cause warnings. Support 64-bit addresses.
36240
36241 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36242 of sizeof(long). This fixes PowerPC image generation on x86_64.
36243
36244 2008-07-04 Robert Millan <rmh@aybabtu.com>
36245
36246 This fixes a performance issue when pc & gpt partmap iterators
36247 didn't abort iteration even after our hook found what it was
36248 looking for (often causing expensive probes of non-existent drives).
36249
36250 Some callers relied on previous buggy behaviour, since they would
36251 raise an error when their own hooks caused early abortion of its
36252 iteration.
36253
36254 * kern/device.c (grub_device_open): Improve error message.
36255 * disk/lvm.c (grub_lvm_open): Likewise.
36256 * disk/raid.c (grub_raid_open): Likewise.
36257
36258 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36259 when hook requests it, independently of grub_errno.
36260 (pc_partition_map_probe): Do not fail when find_func() caused
36261 early abortion of pc_partition_map_iterate().
36262
36263 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36264 when hook requests it, independently of grub_errno.
36265 (gpt_partition_map_probe): Do not fail when find_func() caused
36266 early abortion of gpt_partition_map_iterate().
36267
36268 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36269 when hook requests it, independently of grub_errno. Do not fail when
36270 part_map_iterate_hook() caused early abortion of p->iterate().
36271
36272 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36273 when grub_partition_iterate() returned with non-zero.
36274
36275 2008-07-03 Pavel Roskin <proski@gnu.org>
36276
36277 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36278 like we do in grub_ata_pio_read().
36279 (grub_ata_readwrite): Always write individual sectors. Fix the
36280 sector count for the remainder.
36281 (grub_ata_write): Enable writing to ATA devices. Correctly
36282 report error for ATAPI devices.
36283
36284 2008-07-02 Pavel Roskin <proski@gnu.org>
36285
36286 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36287 warning.
36288
36289 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36290 for every read sector, we already increment it for the whole
36291 batch. This fixes reading more than 256 sectors at once.
36292
36293 * util/grub-editenv.c (cmd_info): Cast argument to long
36294 explicitly. ptrdiff_t reduces to int on i386.
36295
36296 * util/grub-editenv.c (main): Be specific which parameter is
36297 missing.
36298
36299 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36300 (memdisk): Make memdisk_orig_addr a pointer.
36301
36302 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36303 for file offsets, use grub_off_t instead. Fix printf format
36304 warnings.
36305
36306 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36307 there. Real unexpected warnings should not drown in the noise
36308 about known problems.
36309
36310 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36311 grub_disk_addr_t for memory addresses.
36312
36313 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36314 explicitly to fix a warning.
36315
36316 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36317
36318 * Makefile.in (MODULE_LDFLAGS): New variable.
36319 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36320 the linker accepts --build-id=none.
36321 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36322 MODULE_LDFLAGS.
36323 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36324
36325 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36326 those in Linux XFS code. Provide a way to access 64-bit parent
36327 inode.
36328 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36329 the end of struct grub_xfs_dir_header.
36330
36331 2008-07-02 Bean <bean123ch@gmail.com>
36332
36333 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36334 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36335 and GRUB_IEEE1275_FLAG_NO_ANSI.
36336
36337 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36338 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36339 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36340
36341 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36342 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36343
36344 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36345 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36346
36347 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36348 esc sequence on non ANSI terminal.
36349 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36350
36351 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36352 beginning of file.
36353
36354 2008-07-02 Bean <bean123ch@gmail.com>
36355
36356 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36357 (grub_editenv_SOURCES): New variable.
36358 (pkglib_MODULES): Add loadenv.mod.
36359 (loadenv_mod_SOURCES): New variable.
36360 (loadenv_mod_CFLAGS): Likewise.
36361 (loadenv_mod_LDFLAGS): Likewise.
36362
36363 * include/grub/envblk.h: New file.
36364
36365 * util/envblk.c: New file.
36366
36367 * util/grub-editenv.c: New file.
36368
36369 * commands/loadenv.c: New file.
36370
36371 2008-07-01 Pavel Roskin <proski@gnu.org>
36372
36373 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36374 not unsigned char. This fixes warnings and is consistent with
36375 other tags.
36376
36377 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36378
36379 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36380
36381 * term/tparm.c (analyze): Always set *popcount.
36382
36383 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36384 cast to fix a warning.
36385
36386 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36387 cast to suppress a warning.
36388
36389 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36390 grub_fshelp_read_file() expects.
36391
36392 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36393 write uuid as a 32-bit value in CPU byte order, so declare and
36394 use it as such.
36395
36396 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36397 long if the format specifier expects it.
36398 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36399 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36400 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36401 long to fix a warning.
36402 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36403 grub_dprintf() arguments to fix warnings.
36404
36405 2008-06-30 Pavel Roskin <proski@gnu.org>
36406
36407 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36408 install_bsd_part immediately before core.img is embedded or
36409 modified on disk. This fixes core.img verification if core.img
36410 cannot be embedded.
36411
36412 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36413 core_path to calculate the blocklist.
36414 Patch from Javier Martín <lordhabbit@gmail.com>
36415
36416 2008-06-29 Robert Millan <rmh@aybabtu.com>
36417
36418 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36419 block to disk block.
36420 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36421 Patch from Niels Böhm <bitbucket@arcor.de>
36422
36423 2008-06-29 Robert Millan <rmh@aybabtu.com>
36424
36425 * util/update-grub_lib.in (font_path): Search for fonts in
36426 /boot/grub first, which is more likely to be readable (we aren't
36427 deciding where fonts live, just looking for them).
36428
36429 2008-06-26 Pavel Roskin <proski@gnu.org>
36430
36431 * util/biosdisk.c (read_device_map): Don't leave dead map
36432 entries for devices failing stat() check.
36433
36434 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36435 core_path_dev for the core.img path on the target device.
36436
36437 2008-06-26 Robert Millan <rmh@aybabtu.com>
36438
36439 * disk/fs_uuid.c: New file.
36440 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36441 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36442 (fs_uuid_mod_LDFLAGS): New variables.
36443 * include/grub/disk.h (grub_disk_dev_id): Add
36444 `GRUB_DISK_DEVICE_UUID_ID'.
36445 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36446 implement iterate().
36447
36448 2008-06-26 Robert Millan <rmh@aybabtu.com>
36449
36450 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36451 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36452 Linux image includes no initrd.
36453
36454 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36455
36456 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36457 call to resolve the core image location that effectively appended the
36458 name twice.
36459
36460 2008-06-21 Robert Millan <rmh@aybabtu.com>
36461
36462 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36463 call from here ...
36464
36465 * util/grub.d/10_hurd.in: ... to here ...
36466 * util/grub.d/10_linux.in: ... and here.
36467
36468 2008-06-19 Robert Millan <rmh@aybabtu.com>
36469
36470 * kern/main.c (grub_main): Export `prefix' variable immediately
36471 after it has been set by grub_machine_set_prefix().
36472
36473 2008-06-19 Robert Millan <rmh@aybabtu.com>
36474
36475 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36476 search result when not saving to variable, not the other way around.
36477 When saving to variable, abort iteration as soon as a match is found.
36478
36479 2008-06-19 Robert Millan <rmh@aybabtu.com>
36480
36481 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36482 check for partition that provides /boot/grub. Its logic is flawed,
36483 as it prevents prepare_grub_to_access_device() from being called
36484 multiple times.
36485
36486 2008-06-19 Robert Millan <rmh@aybabtu.com>
36487
36488 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36489 "insmod" command directly when abstraction modules are needed,
36490 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36491 since it had already been processed).
36492
36493 2008-06-19 Pavel Roskin <proski@gnu.org>
36494
36495 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36496 changed. This is needed in case GRUB_LIBDIR changes.
36497 * conf/i386-ieee1275.rmk: Likewise.
36498 * conf/i386-linuxbios.rmk: Likewise.
36499 * conf/i386-pc.rmk: Likewise.
36500 * conf/powerpc-ieee1275.rmk: Likewise.
36501
36502 2008-06-18 Pavel Roskin <proski@gnu.org>
36503
36504 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36505 kernel_elf_symlist.c to symlist.c for consistency with other
36506 architectures. Update all users.
36507 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36508
36509 2008-06-18 Robert Millan <rmh@aybabtu.com>
36510
36511 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36512 it in prefix.
36513
36514 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36515 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36516 a RAID device, run setup() for all members independently on whether
36517 LVM abstraction is being used.
36518 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36519 If grub-mkimage has set `*install_dos_part == -2', don't override this
36520 value.
36521 Perform *install_dos_part adjustments independently on whether
36522 we're embedding or not.
36523 Clarify error message when image is too big for embedding.
36524 Remove duplicate *install_dos_part stanza.
36525
36526 2008-06-17 Robert Millan <rmh@aybabtu.com>
36527
36528 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36529 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36530 variables.
36531 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36532 values in grub_ofconsole_normal_color and
36533 grub_ofconsole_highlight_color (they're not directly related to
36534 background and foreground).
36535 (grub_ofconsole_setcolorstate): Extract background and foreground
36536 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36537
36538 2008-06-17 Robert Millan <rmh@aybabtu.com>
36539
36540 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36541 /boot/grub for the check in last commit, not /boot (they could be
36542 different partitions).
36543
36544 2008-06-16 Robert Millan <rmh@aybabtu.com>
36545
36546 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36547 asked to setup access for the same partition that provides /boot,
36548 don't bother using UUIDs since our root already has the value we
36549 want.
36550
36551 2008-06-16 Robert Millan <rmh@aybabtu.com>
36552
36553 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36554 I2O devices.
36555 Patch from Sven Mueller <sven@debian.org>.
36556
36557 2008-06-16 Robert Millan <rmh@aybabtu.com>
36558
36559 * util/update-grub.in: Check for $EUID instead of $UID.
36560 Reported by Vincent Zweije.
36561
36562 2008-06-16 Bean <bean123ch@gmail.com>
36563
36564 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36565 (grub_ext2_read_block): Likewise.
36566 (grub_ext2_read_inode): Likewise.
36567 (grub_ext2_mount): Likewise.
36568 (grub_ext2_close): Likewise.
36569 (grub_ext3_get_journal): Removed.
36570
36571 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36572 (grub_reiserfs_read_symlink): Likewise.
36573 (grub_reiserfs_mount): Likewise.
36574 (grub_reiserfs_open): Likewise.
36575 (grub_reiserfs_read): Likewise.
36576 (grub_reiserfs_close): Likewise.
36577 (grub_reiserfs_get_journal): Removed.
36578
36579 * fs/fshelp.c (grub_fshelp_read): Removed.
36580 (grub_fshelp_map_block): Likewise.
36581
36582 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36583 (grub_fshelp_journal): Likewise.
36584 (grub_fshelp_read): Likewise.
36585 (grub_fshelp_map_block): Likewise.
36586
36587 2008-06-16 Pavel Roskin <proski@gnu.org>
36588
36589 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36590 floating point anymore.
36591 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36592
36593 2008-06-15 Pavel Roskin <proski@gnu.org>
36594
36595 * commands/ls.c (grub_ls_list_files): Use integer calculations
36596 for human readable format, avoid floating point use.
36597 * kern/misc.c (grub_ftoa): Remove.
36598 (grub_vsprintf): Remove floating point support.
36599
36600 2008-06-15 Robert Millan <rmh@aybabtu.com>
36601
36602 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36603 devices.
36604 Reported by Max Vozeler.
36605
36606 2008-06-15 Robert Millan <rmh@aybabtu.com>
36607
36608 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36609 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36610 skipped later.
36611 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36612 the beginning of the prefix.
36613
36614 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36615 It is assumed that if we have a memdisk, grub-mkimage has set
36616 grub_prefix to include the "(memdisk)" drive in it.
36617
36618 2008-06-15 Robert Millan <rmh@aybabtu.com>
36619
36620 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36621 Initialize keyboard controller after registering the terminal, so that
36622 grub_printf() can be called from grub_keyboard_controller_init().
36623
36624 2008-06-15 Robert Millan <rmh@aybabtu.com>
36625
36626 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
36627 extent-btree which is written as big endian on disk.
36628 Reported by Alain Greppin <al@chilibi.org>.
36629
36630 2008-06-14 Robert Millan <rmh@aybabtu.com>
36631
36632 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
36633 * util/i386/pc/grub-install.in (modules): Likewise.
36634
36635 2008-06-13 Pavel Roskin <proski@gnu.org>
36636
36637 * commands/ls.c (grub_ls_list_files): Fix format warnings.
36638
36639 2008-06-13 Bean <bean123ch@gmail.com>
36640
36641 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
36642
36643 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
36644
36645 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
36646 to indicate sparse block.
36647
36648 2008-06-12 Pavel Roskin <proski@gnu.org>
36649
36650 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
36651 number, grub_fshelp_read() does it for us.
36652
36653 * fs/fshelp.c (grub_fshelp_read): New function. Implement
36654 linear disk read with journal translation.
36655 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
36656 * include/grub/fshelp.h: Declare grub_fshelp_read().
36657
36658 2008-06-09 Pavel Roskin <proski@gnu.org>
36659
36660 * fs/minix.c (grub_minix_mount): Handle error reading
36661 superblock.
36662
36663 2008-06-08 Robert Millan <rmh@aybabtu.com>
36664
36665 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
36666 don't append the RAID prefix afterwards.
36667 Reported by Clint Adams.
36668
36669 2008-06-08 Robert Millan <rmh@aybabtu.com>
36670
36671 Based on description from Pavel:
36672 * kern/disk.c (grub_disk_check_range): Rename to ...
36673 (grub_disk_adjust_range): ... this. Add a comment explaining the
36674 tasks performed by this function.
36675
36676 2008-06-08 Robert Millan <rmh@aybabtu.com>
36677
36678 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
36679 `num_serial' (for consistency with other variables).
36680 (struct grub_ntfs_data): Add `uuid' member.
36681 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
36682 (grub_ntfs_uuid): New function.
36683 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
36684
36685 2008-06-07 Pavel Roskin <proski@gnu.org>
36686
36687 * util/biosdisk.c (open_device): Revert last change to the
36688 function, it broke installation. The sector needs to be
36689 different dependent on which device is opened.
36690
36691 2008-06-06 Robert Millan <rmh@aybabtu.com>
36692
36693 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
36694 rest of GRUB, and breakage doesn't happen if its value were modified.
36695
36696 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36697 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
36698 a constant (same value).
36699 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
36700 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
36701
36702 2008-06-06 Robert Millan <rmh@aybabtu.com>
36703
36704 * util/biosdisk.c (open_device): Do not modify sector offset when
36705 accessing a partition. kern/disk.c already handles this for us.
36706
36707 2008-06-06 Robert Millan <rmh@aybabtu.com>
36708
36709 * util/grub-emu.c (grub_machine_init): Move code in this function from
36710 here ...
36711 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
36712 segfault in case grub_printf() is called).
36713
36714 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
36715 grub_probe. Update all users not to explicitly add it again.
36716 (grub_device): New variable; contains corresponding device for grubdir.
36717 (fs_module, partmap_module, devabstraction_module): Pass
36718 `--device ${grub_device}' to grub_probe to avoid traversing /dev
36719 every time.
36720
36721 2008-06-05 Robert Millan <rmh@aybabtu.com>
36722
36723 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
36724 is found, print it (same layout as with labels).
36725
36726 2008-06-04 Robert Millan <rmh@aybabtu.com>
36727
36728 * util/biosdisk.c (get_drive): Rename to ...
36729 (find_grub_drive): ... this. Update all users.
36730
36731 (get_os_disk): Rename to ...
36732 (convert_system_partition_to_system_disk): ... this. Update all users.
36733
36734 (find_drive): Rename to ...
36735 (find_system_device): ... this. Update all users.
36736
36737 2008-06-04 Robert Millan <rmh@aybabtu.com>
36738
36739 * util/biosdisk.c (get_os_disk): Handle IDA devices.
36740 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36741 (make_device_map): Likewise.
36742
36743 2008-06-01 Robert Millan <rmh@aybabtu.com>
36744
36745 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
36746 before dereferencing it.
36747
36748 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
36749 union with fat12/fat16-specific ones. Add some new fields, including
36750 `num_serial' for both versions.
36751 (struct grub_fat_data): Add `uuid' member.
36752 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
36753 names. Initialize `data->uuid' using `num_serial'.
36754 (grub_fat_uuid): New function.
36755 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
36756
36757 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
36758 (grub_reiserfs_uuid): New function.
36759 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
36760 member.
36761
36762 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
36763 (grub_xfs_uuid): New function.
36764 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
36765
36766 2008-06-01 Robert Millan <rmh@aybabtu.com>
36767
36768 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
36769 code that is backward compatible with pre-uuid search command.
36770
36771 2008-05-31 Robert Millan <rmh@aybabtu.com>
36772
36773 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
36774 floppies after everything else, to ensure floppy drive isn't accessed
36775 unnecessarily (patch from Bean).
36776
36777 2008-05-31 Robert Millan <rmh@aybabtu.com>
36778
36779 * commands/search.c (search_label, search_fs_uuid, search_file): Do
36780 not print device names when we were asked to set a variable.
36781
36782 2008-05-31 Robert Millan <rmh@aybabtu.com>
36783
36784 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
36785 using "cursor-on" and "cursor-off" commands (understood at least by
36786 the Open Firmware flavour on OLPC).
36787
36788 2008-05-31 Michael Gorven <michael@gorven.za.net>
36789
36790 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
36791 on and off sequences.
36792
36793 2008-05-31 Robert Millan <rmh@aybabtu.com>
36794
36795 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
36796 * util/update-grub.in: Likewise.
36797
36798 2008-05-30 Pavel Roskin <proski@gnu.org>
36799
36800 * util/biosdisk.c (linux_find_partition): Simplify logic and
36801 make the code more universal. Keep special processing for
36802 devfs, but use a simple rule for all other devices. If the
36803 device ends with a number, append 'p' and the partition number.
36804 Otherwise, append only the partition number.
36805
36806 2008-05-30 Robert Millan <rmh@aybabtu.com>
36807
36808 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
36809 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
36810 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
36811 the `root' parameter to Linux.
36812
36813 2008-05-30 Robert Millan <rmh@aybabtu.com>
36814
36815 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
36816 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
36817 --fs_uuid with --fs-uuid.
36818 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
36819 all filesystems support them).
36820
36821 2008-05-30 Robert Millan <rmh@aybabtu.com>
36822
36823 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
36824 grub_printf() flags, since we're printing in units of 2 bytes.
36825
36826 2008-05-30 Robert Millan <rmh@aybabtu.com>
36827
36828 * util/grub.d/00_header.in: Remove obsolete comment referencing
36829 convert_system_path_to_grub_path().
36830 * util/update-grub.in: Likewise.
36831 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
36832 (convert_system_path_to_grub_path): Add a warning message explaining
36833 that this function is deprecated. Rely on is_path_readable_by_grub()
36834 for the readability checks.
36835 (font_path): Use is_path_readable_by_grub() for the readability
36836 check rather than convert_system_path_to_grub_path().
36837
36838 2008-05-30 Robert Millan <rmh@aybabtu.com>
36839
36840 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
36841 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
36842 converting it first.
36843 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
36844 grub.cfg for access to font file, and afterwards call it again to set
36845 the root device.
36846
36847 2008-05-30 Robert Millan <rmh@aybabtu.com>
36848
36849 * commands/search.c (options): Add --fs_uuid option.
36850 (search_fs_uuid): New function.
36851 (grub_cmd_search): Fix --set argument passing.
36852 Use search_fs_uuid() when requested via --fs_uuid.
36853 (grub_search_init): Update help message.
36854 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
36855 and redeclare it as an array of 16-bit words.
36856 (grub_ext2_uuid): New function.
36857 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
36858 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
36859 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
36860 (GRUB_DEVICE_BOOT_UUID): New variables.
36861 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
36862 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
36863 whenever possible.
36864 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
36865 just assume `root' variable has the right value.
36866 * util/grub.d/10_linux.in: Likewise.
36867 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
36868 via PRINT_FS_UUID.
36869 (main): Recognise `-t fs_uuid' argument.
36870
36871 2008-05-30 Robert Millan <rmh@aybabtu.com>
36872
36873 * util/biosdisk.c (map): Redefine structure to hold information
36874 about GRUB drive name.
36875 (get_drive): Reimplement without assuming (and verifying) BIOS-like
36876 drive names.
36877 (call_hook): Remove.
36878 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
36879 member. Assume drive has partitions.
36880 (grub_util_biosdisk_open): Access device names via `.device' struct
36881 member.
36882 (open_device): Likewise.
36883 (find_drive): Likewise.
36884 (read_device_map): Adjust map[] usage to match the new struct
36885 definition. Don't check for duplicates (still possible, but not cheap
36886 anymore).
36887 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
36888 (make_device_name): Remove assumption of BIOS-like drive names.
36889
36890 2008-05-30 Pavel Roskin <proski@gnu.org>
36891
36892 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
36893 compiling execute.c doesn't need grub_script.tab.h anymore.
36894 (normal/command.c_DEPENDENCIES): Likewise.
36895 (normal/function.c_DEPENDENCIES): Likewise.
36896 * conf/i386-ieee1275.rmk: Likewise.
36897 * conf/i386-linuxbios.rmk: Likewise.
36898 * conf/i386-pc.rmk: Likewise.
36899 * conf/powerpc-ieee1275.rmk: Likewise.
36900 * conf/sparc64-ieee1275.rmk: Likewise.
36901
36902 2008-05-29 Pavel Roskin <proski@gnu.org>
36903
36904 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
36905 when scanning metadata for volume group name.
36906
36907 * include/grub/script.h: Don't include grub_script.tab.h. It's
36908 a generated file, which may only be included from the files with
36909 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
36910 use union YYSTYPE, as the later allows forward declaration.
36911 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
36912
36913 2008-05-29 Robert Millan <rmh@aybabtu.com>
36914
36915 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
36916 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
36917 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
36918 (grub_console_checkkey): Add grub_dprintf() call to report unknown
36919 scan codes.
36920
36921 2008-05-29 Robert Millan <rmh@aybabtu.com>
36922
36923 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
36924 control key combinations.
36925
36926 2008-05-29 Robert Millan <rmh@aybabtu.com>
36927
36928 * util/powerpc/ieee1275/grub-install.in: Move from here ...
36929 * util/ieee1275/grub-install.in: ... to here.
36930 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
36931 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
36932 (grub_install_SOURCES): Likewise.
36933
36934 2008-05-29 Robert Millan <rmh@aybabtu.com>
36935
36936 * fs/affs.c: Update copyright year.
36937 * fs/ext2.c: Likewise.
36938 * fs/fshelp.c: Likewise.
36939 * fs/hfsplus.c: Likewise.
36940 * fs/ntfs.c: Likewise.
36941 * fs/xfs.c: Likewise.
36942 * include/grub/fshelp.h: Likewise.
36943 * util/grub-mkdevicemap.c: Likewise.
36944
36945 2008-05-28 Robert Millan <rmh@aybabtu.com>
36946
36947 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
36948 might need to be fatfs to support some firmware implementations
36949 (e.g. OFW or EFI).
36950
36951 2008-05-28 Robert Millan <rmh@aybabtu.com>
36952
36953 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
36954 devices.
36955 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36956 (make_device_map): Likewise.
36957
36958 2008-05-20 Bean <bean123ch@gmail.com>
36959
36960 * fs/fshelp.c (grub_fshelp_map_block): New function.
36961 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
36962 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
36963
36964 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
36965 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
36966 (grub_fshelp_journal): New structure.
36967 (grub_fshelp_map_block): New function prototype.
36968 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
36969 (grub_fshelp_map_block): Likewise.
36970
36971 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
36972 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
36973 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
36974 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
36975 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
36976 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
36977 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
36978 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
36979 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
36980 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
36981 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
36982 (grub_ext2_sblock): New members for journal support.
36983 (grub_ext3_journal_header): New structure.
36984 (grub_ext3_journal_revoke_header): Likewise.
36985 (grub_ext3_journal_block_tag): Likewise.
36986 (grub_ext3_journal_sblock): Likewise.
36987 (grub_fshelp_node): New members logfile and journal.
36988 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
36989 grub_fshelp_map_block to get real block number.
36990 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
36991 number.
36992 (grub_ext2_read_inode): Likewise.
36993 (grub_ext3_get_journal): New function.
36994 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
36995 (grub_ext2_close): Release memory used by journal.
36996
36997 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
36998 (REISERFS_MAGIC_DESC_BLOCK): New macro.
36999 (grub_reiserfs_transaction_header): Renamed to
37000 grub_reiserfs_description_block, replace field data with real_blocks.
37001 (grub_reiserfs_commit_block): New structure.
37002 (grub_reiserfs_data): New member journal.
37003 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37004 number.
37005 (grub_reiserfs_read_symlink): Likewise.
37006 (grub_reiserfs_iterate_dir): Likewise.
37007 (grub_reiserfs_open): Likewise.
37008 (grub_reiserfs_read): Likewise.
37009 (grub_reiserfs_get_journal): New function.
37010 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37011 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37012 using grub_reiserfs_get_journal.
37013 (grub_reiserfs_close): Release memory used by journal.
37014
37015 * fs/affs.c (grub_affs_read_block): Change block type to
37016 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37017
37018 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37019
37020 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37021
37022 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37023
37024 * fs/udf.c (grub_udf_read_block): Change block type to
37025 grub_disk_addr_t. Use type cast to avoid warning.
37026
37027 * fs/xfs.c (grub_xfs_read_block): Likewise.
37028
37029 2008-05-16 Christian Franke <franke@computer.org>
37030
37031 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37032 to ensure that break with ESC will always work.
37033 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37034 Remove ESC from keyboard queue.
37035
37036 2008-05-16 Christian Franke <franke@computer.org>
37037
37038 * util/biosdisk.c: [__CYGWIN__] Add includes.
37039 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37040 (get_os_disk): Move variable declarations to OS specific
37041 parts to avoid warning.
37042 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37043 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37044 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37045 Cygwin.
37046 * util/getroot.c: [__CYGWIN__] Add includes.
37047 (strip_extra_slashes): Fix "/" case.
37048 [__CYGWIN__] (get_win32_path): New function.
37049 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37050 [__CYGWIN__] (find_root_device): Disable.
37051 [__CYGWIN__] (get_bootsec_serial): New function.
37052 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37053 [__linux__] (grub_guess_root_device): Add early returns to simplify
37054 structure.
37055 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37056 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37057 check for Linux only.
37058
37059 2008-05-15 Bean <bean123ch@gmail.com>
37060
37061 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37062 keyboard hang problem in apple's intel mac.
37063
37064 2008-05-09 Robert Millan <rmh@aybabtu.com>
37065
37066 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37067 devices.
37068 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37069 (make_device_map): Likewise.
37070 Reported by Aurelien Jarno <aurel32@debian.org>
37071
37072 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37073
37074 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37075 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37076 (make_device_map): Output entries for xvd type disks.
37077
37078 2008-05-07 Robert Millan <rmh@aybabtu.com>
37079
37080 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37081 devices.
37082 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37083 (make_device_map): Likewise.
37084 Reported by Roland Dreier <rdreier@cisco.com>
37085
37086 2008-05-07 Robert Millan <rmh@aybabtu.com>
37087
37088 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37089 grub_strstr() call. Correct a few mistakes in failure path handling.
37090
37091 2008-05-06 Robert Millan <rmh@aybabtu.com>
37092
37093 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37094 Do not print a trailing slash (therefore, the root directory is an
37095 empty string).
37096 (convert_system_path_to_grub_path): Do not remove trailing slash
37097 from make_system_path_relative_to_its_root() output.
37098
37099 * util/i386/pc/grub-install.in: Add trailing slash to output from
37100 make_system_path_relative_to_its_root().
37101
37102 2008-05-06 Robert Millan <rmh@aybabtu.com>
37103
37104 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37105 ensures that output lines aren't intermangled with those sent to
37106 stderr (via grub_util_info()).
37107 * util/grub-probe.c (grub_refresh): Likewise.
37108 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37109
37110 2008-05-05 Christian Franke <franke@computer.org>
37111
37112 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37113 Add Cygwin device names.
37114 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37115 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37116 (check_device): Return error instead of success on empty name.
37117 (make_device_map): Move label inside linux specific code to
37118 prevent compiler warning.
37119
37120 2008-04-30 Robert Millan <rmh@aybabtu.com>
37121
37122 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37123 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37124 first boot option.
37125 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37126
37127 2008-04-29 Robert Millan <rmh@aybabtu.com>
37128
37129 * docs/grub.cfg: New file (example GRUB configuration).
37130
37131 2008-04-26 Robert Millan <rmh@aybabtu.com>
37132
37133 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37134 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37135 and `disk/ieee1275/nand.c'.
37136
37137 2008-04-25 Bean <bean123ch@gmail.com>
37138
37139 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37140 i386-linuxbios.
37141
37142 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37143 change the buffer size to 4096 for cdrom device.
37144
37145 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37146 and nand.mod.
37147 (_linux_mod_SOURCES): New variable.
37148 (_linux_mod_CFLAGS): Likewise.
37149 (_linux_mod_LDFLAGS): Likewise.
37150 (linux_mod_SOURCES): Likewise.
37151 (linux_mod_CFLAGS): Likewise.
37152 (linux_mod_LDFLAGS): Likewise.
37153 (nand_mod_SOURCES): Likewise.
37154 (nand_mod_CFLAGS): Likewise.
37155 (nand_mod_LDFLAGS): Likewise.
37156
37157 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37158 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37159 type property. (nand device in olpc don't have this property)
37160
37161 * include/grub/disk.h (grub_disk_dev_id): New macro
37162 GRUB_DISK_DEVICE_NAND_ID.
37163
37164 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37165 function prototype.
37166 (grub_rescue_cmd_initrd): Likewise.
37167
37168 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37169 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37170 ofw_cif_handler and ofw_idt, adjust padding number.
37171
37172 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37173 GRUB_MACHINE_IEEE1275 is defined.
37174
37175 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37176 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37177
37178 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37179 on nested function heap_init.
37180 (grub_upper_mem): New variable for i386-ieee1275.
37181 (grub_get_extended_memory): New function for i386-ieee1275.
37182 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37183
37184 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37185 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37186 property.
37187
37188 * loader/i386/ieee1275/linux.c: New file.
37189
37190 * loader/i386/ieee1275/linux_normal.c: New file.
37191
37192 * disk/ieee1275/nand.c: New file.
37193
37194 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37195
37196 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37197 value.
37198 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37199
37200 2008-04-18 Robert Millan <rmh@aybabtu.com>
37201
37202 Restructures early code path on ieee1275 to unify grub_main() as
37203 the first C function that is executed in every platform.
37204
37205 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37206 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37207 cmain().
37208 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37209 * kern/ieee1275/cmain.c (cmain): Rename to ...
37210 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37211 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37212 at the beginning.
37213
37214 2008-04-18 Robert Millan <rmh@aybabtu.com>
37215
37216 * util/update-grub.in: Fix syntax error when setting
37217 `GRUB_PRELOAD_MODULES'.
37218 Reported by Stephane Chazelas <stephane@artesyncp.com>
37219
37220 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37221
37222 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37223 section into account, newer toolchains generate unique build ids
37224 * configure.ac: remove the test for --build-id=none acceptance,
37225 we want build ids to be preserved
37226 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37227 far from other sections don't cause the raw binary images grow
37228 size
37229
37230 2008-04-15 Robert Millan <rmh@aybabtu.com>
37231
37232 * disk/lvm.c: Update copyright year.
37233 * kern/misc.c: Likewise.
37234
37235 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37236
37237 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37238 there is no memory left for physical volume name.
37239
37240 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37241
37242 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37243 volume name mapping to support bigger than 9 character names properly.
37244
37245 2008-04-13 Robert Millan <rmh@aybabtu.com>
37246
37247 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37248 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37249
37250 2008-04-13 Christian Franke <franke@computer.org>
37251
37252 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37253 to create a floppy emulation boot CD when non emulation mode
37254 does not work.
37255 Enable Joliet CD filesystem extension.
37256
37257 2008-04-13 Robert Millan <rmh@aybabtu.com>
37258
37259 * kern/misc.c (grub_strncat): Fix off-by-one error.
37260 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37261
37262 * kern/env.c (grub_env_context_close): Clear current context, not
37263 previous one.
37264 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37265
37266 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37267
37268 2008-04-13 Robert Millan <rmh@aybabtu.com>
37269
37270 Improve robustness when handling LVM.
37271
37272 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37273 (and leave `*p' unmodified).
37274 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37275 through it.
37276 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37277 iterating through it.
37278 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37279 through it.
37280 (grub_lvm_scan_device): Check the return value (and fail gracefully
37281 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37282 Don't assume `vg->pvs != NULL' when iterating through it.
37283
37284 2008-04-13 Robert Millan <rmh@aybabtu.com>
37285
37286 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37287 * genmk.rb (partmap): New variable.
37288 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37289 (#{partmap}): New target rule.
37290 * genpartmaplist.sh: New file.
37291 * Makefile.in (pkglib_DATA): Add partmap.lst.
37292 (partmap.lst): New target rule.
37293 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37294 modules (including all partition maps), instead of preloading them.
37295
37296 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37297
37298 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37299 `linux-boot-prober' (if installed) to detect other operating
37300 systems which are installed on the computer and add them to
37301 the boot menu.
37302 * conf/common.rmk: Build and install 30_os-prober.
37303
37304 2008-04-12 Robert Millan <rmh@aybabtu.com>
37305
37306 * kern/powerpc/ieee1275/init.c: Move from here ...
37307 * kern/ieee1275/init.c: ... to here. Update all users.
37308
37309 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37310 * kern/ieee1275/cmain.c: ... to here. Update all users.
37311
37312 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37313 * kern/ieee1275/openfw.c: ... to here. Update all users.
37314
37315 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37316 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37317
37318 2008-04-10 Pavel Roskin <proski@gnu.org>
37319
37320 * configure.ac: Always use "_cv_" in cache variables for
37321 compatibility with Autoconf 2.62.
37322
37323 2008-04-07 Robert Millan <rmh@aybabtu.com>
37324
37325 Revert grub/machine/init.h addition by Pavel (since it breaks on
37326 i386-ieee1275 and others):
37327 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37328 * util/powerpc/ieee1275/misc.c: Likewise.
37329
37330 2008-04-07 Robert Millan <rmh@aybabtu.com>
37331
37332 * util/grub-probe.c (probe): Improve error message.
37333
37334 2008-04-07 Robert Millan <rmh@aybabtu.com>
37335
37336 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37337 (this prevents the presence of a bogus entry from ruining the whole
37338 thing).
37339
37340 2008-04-06 Pavel Roskin <proski@gnu.org>
37341
37342 * util/biosdisk.c: Include grub/util/biosdisk.h.
37343 * util/grub-fstest.c (execute_command): Make static.
37344 * util/grub-mkdevicemap.c (check_device): Likewise.
37345 * util/i386/pc/misc.c: Include grub/machine/init.h.
37346 * util/powerpc/ieee1275/misc.c: Likewise.
37347 * util/lvm.c: Include grub/util/lvm.h.
37348 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37349 grub/cache.h.
37350 * util/raid.c: Include grub/util/raid.h.
37351 (grub_util_getdiskname): Make static.
37352
37353 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37354 grub_hostfs_fini(), as they are called from grub_init_all() and
37355 grub_fini_all() respectively. This fixes an infinite loop in
37356 grub-fstest due to double registration of hostfs.
37357 Reported by Christian Franke <Christian.Franke@t-online.de>
37358
37359 2008-04-05 Pavel Roskin <proski@gnu.org>
37360
37361 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37362 all 8 functions. Otherwise, probe function 0 only.
37363
37364 2008-04-04 Pavel Roskin <proski@gnu.org>
37365
37366 * commands/lspci.c (grub_lspci_iter): Print the bus number
37367 correctly.
37368
37369 * commands/lspci.c (grub_pci_classes): Fix typos.
37370 (grub_lspci_iter): Don't print func twice. Print vendor ID
37371 before device ID, as it's normally done.
37372
37373 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37374 Fix signedness warnings.
37375 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37376 Likewise.
37377 * util/ieee1275/get_disk_name.c: Include config.h so that
37378 _GNU_SOURCE is defined and getline() is declared. Mark an
37379 unused argument as such. Fix a signedness warning.
37380
37381 2008-04-02 Pavel Roskin <proski@gnu.org>
37382
37383 * genkernsyms.sh.in: Use more robust assignments for CC and
37384 srcdir. Quote srcdir.
37385 * gensymlist.sh.in: Likewise. Assert at the compile time that
37386 the symbol table is not empty.
37387
37388 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37389 * fs/cpio.c (grub_cpio_read): Likewise.
37390
37391 2008-04-01 Pavel Roskin <proski@gnu.org>
37392
37393 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37394 * disk/host.c (grub_host_open): Likewise.
37395 * disk/loopback.c (grub_loopback_open): Likewise.
37396 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37397 disk->id as in disk/host.c, not a multi-character constant.
37398
37399 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37400 later is obsolete, potentially dangerous and sets a bad example.
37401 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37402 * util/misc.c (grub_util_get_image_size): Likewise.
37403
37404 * disk/loopback.c (options): Improve help for "--partitions".
37405
37406 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37407 options to align them with the short options, e.g. "echo -e".
37408
37409 2008-03-31 Bean <bean123ch@gmail.com>
37410
37411 * video/reader/png.c (grub_png_data): New member is_16bit and
37412 image_data.
37413 (grub_png_decode_image_header): Detect 16 bit png image.
37414 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37415 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37416 (grub_video_reader_png): Release memory occupied by image_data.
37417
37418 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37419 4096 bytes.
37420 (grub_nfs_mount): Skip the test for sector per cluster.
37421
37422 * include/grub/ntfs.h (MAX_SPC): Removed.
37423
37424 2008-03-31 Bean <bean123ch@gmail.com>
37425
37426 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37427 (grub_probe_SOURCES): Add fs/afs.c.
37428 (grub_fstest_SOURCES): Likewise.
37429 (afs_mod_SOURCES): New variable.
37430 (afs_mod_CFLAGS): Likewise.
37431 (afs_mod_LDFLAGS): Likewise.
37432
37433 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37434 (grub_emu_SOURCES): Likewise.
37435
37436 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37437
37438 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37439
37440 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37441
37442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37443
37444 * fs/afs.c: New file.
37445
37446 2008-03-30 Pavel Roskin <proski@gnu.org>
37447
37448 * disk/host.c: Include grub/misc.h to fix a warning.
37449 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37450 warnings about implicit declarations.
37451
37452 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37453 variable.
37454 * include/grub/i386/loader.h: Change declaration of
37455 grub_linux_boot() to match what grub_loader_set() expects.
37456 * util/getroot.c (grub_guess_root_device): Return const char* to
37457 fix a warning.
37458 * util/grub-probe.c (probe): Fix a warning about uninitialized
37459 abstraction_name variable.
37460 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37461 second argument as unused to fix a warning.
37462
37463 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37464 missing grub_error() call.
37465
37466 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37467 2.60 and newer uses it to define datadir.
37468
37469 * commands/sleep.c: Fix warning about implicit declaration.
37470 * disk/memdisk.c: Likewise.
37471 * loader/aout.c: Likewise.
37472 * loader/i386/bsd_normal.c: Likewise.
37473 * util/grub-probe.c: Likewise.
37474
37475 * commands/i386/cpuid.c (has_longmode): Make static.
37476 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37477 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37478
37479 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37480 GDT. This is more robust, as %ds can change.
37481 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37482 calling real_to_prot().
37483 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37484
37485 2008-03-28 Pavel Roskin <proski@gnu.org>
37486
37487 * kern/i386/pc/startup.S: Assert that uncompressed functions
37488 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37489 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37490 code, as they push parts of the code (error handlers) beyond
37491 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37492 code as correctness and size.
37493
37494 2008-03-28 Pavel Roskin <proski@gnu.org>
37495
37496 * kern/i386/pc/startup.S
37497 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37498 data block address to the real mode, keep offset minimal. This
37499 works around a bug in AWARD BIOS on old Athlon systems, which
37500 makes CD detection hang.
37501
37502 2008-03-26 Pavel Roskin <proski@gnu.org>
37503
37504 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37505 const.
37506 * include/grub/normal.h: Add grub_parse_color_name_pair()
37507 declaration.
37508
37509 2008-03-24 Bean <bean123ch@gmail.com>
37510
37511 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37512 (cd_count): Removed.
37513 (cd_drive): New variable.
37514 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37515 (grub_biosdisk_call_hook): Likewise.
37516 (grub_biosdisk_iterate): Change cdrom detection method.
37517 (grub_biosdisk_open): Replace cd_start with cd_drive.
37518 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37519 detect cdrom device.
37520
37521 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37522 Removed.
37523 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37524 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37525 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37526 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37527 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37528 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37529 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37530 (grub_biosdisk_cdrp): New structure.
37531 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37532
37533 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37534
37535 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37536 device.
37537
37538 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37539 New function.
37540
37541 2008-03-20 Robert Millan <rmh@aybabtu.com>
37542
37543 Remove 2 TiB limit in ata.mod.
37544 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37545 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37546 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37547 grub_uint64_t instead of grub_uint32_t.
37548
37549 2008-03-05 Bean <bean123ch@gmail.com>
37550
37551 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37552 (grub_multiboot): Set boot device.
37553
37554 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37555
37556 2008-03-02 Bean <bean123ch@gmail.com>
37557
37558 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37559 symlink_buffer.
37560
37561 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37562
37563 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37564 texinfo.tex.
37565
37566 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37567 modified.
37568
37569 * docs/fdl.texi: New file.
37570
37571 * docs/mdate-sh: New file. Copied from gnulib.
37572 * docs/texinfo.tex: Likewise.
37573
37574 * config.guess: Updated from gnulib.
37575 * install-sh: Likewise.
37576
37577 2008-02-28 Robert Millan <rmh@aybabtu.com>
37578
37579 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37580 (aout_mod_SOURCES): New variable.
37581 (aout_mod_CFLAGS): Likewise.
37582 (aout_mod_LDFLAGS): Likewise.
37583
37584 * conf/i386-ieee1275.rmk: Likewise.
37585
37586 2008-02-28 Robert Millan <rmh@aybabtu.com>
37587
37588 * util/update-grub.in: Reorganise terminal validity check. Accept
37589 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37590 Based on suggestion by Franklin PIAT.
37591
37592 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37593
37594 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37595 function.
37596 * util/getroot.c (grub_util_check_block_device): New function that
37597 returns the given argument if it is a block device and returns NULL else.
37598 * util/grub-probe.c (argument_is_device): New variable.
37599 (probe): Promote device_name from a variable to an argument. Receive
37600 device_name from grub_util_check_block_device() if path is NULL and from
37601 grub_guess_root_device() else. Do not free() device_name anymore.
37602 (options): Introduce new parameter '-d, --device'.
37603 (main): Add description of the new parameter to the help screen.
37604 Rename path variable to argument. Set argument_is_device if the '-d'
37605 option is given. Pass argument to probe() depending on
37606 argument_is_device.
37607
37608 2008-02-24 Bean <bean123ch@gmail.com>
37609
37610 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37611 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37612 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37613 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37614 (GRUB_ISO9660_VOLDESC_END): Likewise.
37615 (grub_iso9660_primary_voldesc): New member escape.
37616 (grub_iso9660_data): New member joliet.
37617 (grub_iso9660_convert_string): New function.
37618 (grub_iso9660_mount): Detect joliet extension.
37619 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37620 (grub_iso9660_iso9660_label): Likewise.
37621
37622 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37623 (grub_setup_SOURCES): Add fs/udf.c.
37624 (grub_fstest_SOURCES): Likewise.
37625 (udf_mod_SOURCES): New variable.
37626 (udf_mod_CFLAGS): Likewise.
37627 (udf_mod_LDFLAGS): Likewise.
37628
37629 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
37630 (grub_emu_SOURCES): Likewise.
37631
37632 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37633
37634 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37635
37636 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37637
37638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37639
37640 * fs/udf.c: New file.
37641
37642 2008-02-24 Robert Millan <rmh@aybabtu.com>
37643
37644 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
37645 (normal/lexer.c_DEPENDENCIES): New variables.
37646 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37647 (normal/lexer.c_DEPENDENCIES): Likewise.
37648 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
37649 (normal/lexer.c_DEPENDENCIES): Likewise.
37650 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
37651 (normal/lexer.c_DEPENDENCIES): Likewise.
37652 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37653 (normal/lexer.c_DEPENDENCIES): Likewise.
37654 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37655 (normal/lexer.c_DEPENDENCIES): Likewise.
37656
37657 2008-02-23 Robert Millan <rmh@aybabtu.com>
37658
37659 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
37660 since they were intended to be in hex. This didn't break previously
37661 because of a bug in gpt_partition_map_iterate() (see below).
37662
37663 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
37664 when checking the validity of GPT header.
37665 Remove `partno', since it always provides the same information as `i'.
37666
37667 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
37668
37669 * include/grub/efi/time.h: Fix a wrong comment.
37670
37671 2008-02-19 Pavel Roskin <proski@gnu.org>
37672
37673 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
37674 message.
37675
37676 2008-02-19 Bean <bean123ch@gmail.com>
37677
37678 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
37679 (aout_mod_SOURCES): New variable.
37680 (aout_mod_CFLAGS): Likewise.
37681 (aout_mod_LDFLAGS): Likewise.
37682 (_bsd_mod_SOURCES): New variable.
37683 (_bsd_mod_CFLAGS): Likewise.
37684 (_bsd_mod_LDFLAGS): Likewise.
37685 (bsd_mod_SOURCES): New variable.
37686 (bsd_mod_CFLAGS): Likewise.
37687 (bsd_mod_LDFLAGS): Likewise.
37688
37689 * include/grub/aout.h: New file.
37690
37691 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
37692
37693 * include/grub/i386/bsd.h: New file.
37694
37695 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
37696 to make it public.
37697
37698 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
37699 function is called, so that it's possible to change it inside the hook.
37700 (grub_elf64_load): Likewise.
37701 (grub_elf_file): Don't close the file if elf header is not found.
37702 (grub_elf_close): Close the file if grub_elf_file fails (The new
37703 grub_elf_file won't close it).
37704 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
37705 (grub_elf64_size): Likewise.
37706
37707 * kern/i386/loader.S (grub_unix_real_boot): New function.
37708
37709 * loader/aout.c: New file.
37710
37711 * loader/i386/bsd.c: New file.
37712
37713 * loader/i386/bsd_normal.c: New file.
37714
37715 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
37716
37717 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
37718 can test other formats.
37719
37720 2008-02-19 Robert Millan <rmh@aybabtu.com>
37721
37722 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
37723 (grub_gpt_partition_type_empty): Redefine with macro from
37724 `<grub/gpt_partition.h>'.
37725 (gpt_partition_map_iterate): Adjust partition type comparison.
37726
37727 Export `entry' as partmap-specific `part.data' struct.
37728 (grub_gpt_header, grub_gpt_partentry): Move from here ...
37729
37730 * include/grub/gpt_partition.h (grub_gpt_header)
37731 (grub_gpt_partentry): ... to here (new file).
37732
37733 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
37734
37735 (grub_gpt_partition_type_bios_boot): New const variable, defined
37736 with macro from `<grub/gpt_partition.h>'.
37737
37738 (setup): Replace `first_start' with `embed_region', which keeps
37739 track of the embed region (and is partmap-agnostic).
37740
37741 Replace find_first_partition_start() with find_usable_region(),
37742 which finds a usable region for embedding using partmap-specific
37743 knowledge (supports PC/MSDOS and GPT).
37744
37745 Fix all assumptions that the embed region start at sector 1, using
37746 `embed_region.start' from now on. Similarly, use `embed_region.end'
37747 rather than `first_start' to calculate available size.
37748
37749 In grub_util_info() message, replace "into after the MBR" with an
37750 indication of the specific sector our embed region starts at.
37751
37752 2008-02-19 Robert Millan <rmh@aybabtu.com>
37753
37754 * DISTLIST: Replace `commands/ieee1275/halt.c' and
37755 `commands/ieee1275/reboot.c' with `commands/halt.c' and
37756 `commands/reboot.c'.
37757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37758 (halt_mod_SOURCES): Likewise.
37759 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37760 (halt_mod_SOURCES): Likewise.
37761
37762 2008-02-17 Christian Franke <franke@computer.org>
37763
37764 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
37765
37766 2008-02-17 Robert Millan <rmh@aybabtu.com>
37767
37768 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37769 set `first_start' to 0 for non-PC/MSDOS partition maps.
37770
37771 2008-02-16 Robert Millan <rmh@aybabtu.com>
37772
37773 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37774 do not assume partition map is PC/MSDOS before performing checks that
37775 are specific to that layout.
37776
37777 2008-02-13 Robert Millan <rmh@aybabtu.com>
37778
37779 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
37780 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
37781 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
37782
37783 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
37784
37785 * configure.ac: Only a cosmetic change on the handling of
37786 -fno-stack-protector.
37787
37788 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
37789
37790 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
37791 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
37792 reboot.c.
37793 (grub_install_SOURCES): Add halt.mod and reboot.mod.
37794 (halt_mod_SOURCES): New variable.
37795 (halt_mod_CFLAGS): Likewise.
37796 (halt_mod_LDFLAGS): Likewise.
37797 (reboot_mod_SOURCES): Likewise.
37798 (reboot_mod_CFLAGS): Likewise.
37799 (reboot_mod_LDFLAGS): Likewise.
37800
37801 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
37802 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
37803 reboot.c.
37804 (halt_mod_SOURCES): Likewise.
37805 (reboot_mod_SOURCES): Likewise.
37806
37807 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
37808 commands/i386/pc/reboot.c by commands/reboot.c.
37809 (reboot_mod_SOURCES): Likewise.
37810
37811 * commands/i386/pc/reboot.c: merge this file ...
37812
37813 * commands/ieee1275/reboot.c: ... and this file ...
37814
37815 * commands/reboot.c: ... to this file.
37816 Add some precompiler directive to include the correct header for
37817 each machine.
37818
37819 * commands/ieee1275/halt.c: move this file ...
37820
37821 * commands/halt.c: ... to here.
37822 Add some precompiler directive to include the correct header for
37823 each machine.
37824
37825 * include/grub/efi/efi.h (grub_reboot): New function declaration.
37826 (grub_halt): Likewise.
37827
37828 * kern/efi/efi.c (grub_reboot): New function.
37829 (grub_halt): Likewise.
37830
37831 2008-02-12 Robert Millan <rmh@aybabtu.com>
37832
37833 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
37834 /dev (like it is done for /dev/mapper). This doesn't provide support
37835 for EVMS, but at least it is now easy to identify the problem when it
37836 arises.
37837
37838 2008-02-11 Robert Millan <rmh@aybabtu.com>
37839
37840 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
37841 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
37842 comparing it with -1, not 0.
37843
37844 2008-02-10 Robert Millan <rmh@aybabtu.com>
37845
37846 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
37847 `disk/lvm.c'.
37848 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37849 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
37850
37851 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
37852 `disk/lvm.c' to the end of the list.
37853 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37854 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37855
37856 2008-02-10 Robert Millan <rmh@aybabtu.com>
37857
37858 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
37859 grub_print_error() instead. This will let user know why we're entering
37860 rescue mode.
37861 Based on suggestions from Sam Morris.
37862
37863 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
37864
37865 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
37866 on remaining N args, instead of "--" arg N times.
37867
37868 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
37869
37870 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
37871 (fill_with_default_glyph): Changed to use unknown_glyph for fill
37872 pattern for unknown glyphs.
37873
37874 2008-02-09 Robert Millan <rmh@aybabtu.com>
37875
37876 * configure.ac: Probe for `help2man'.
37877 * Makefile.in (builddir): New variable.
37878 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
37879 or otherwise add a few flags/options to it.
37880 (install-local): For every executable utility or script that is
37881 installed, invoke $(HELP2MAN) to install a manpage based on --help
37882 output.
37883
37884 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
37885 that it doesn't prevent --help from working in build tree.
37886
37887 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
37888 with `bug-grub@gnu.org'.
37889 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
37890 * util/update-grub.in (usage): New function.
37891 Implement proper argument check, with support for --help and --version
37892 (as well as existing -y).
37893
37894 2008-02-09 Christian Franke <franke@computer.org>
37895
37896 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
37897 avoid overwriting previous output.
37898 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
37899
37900 2008-02-09 Robert Millan <rmh@aybabtu.com>
37901
37902 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
37903 drawing the menu.
37904
37905 2008-02-09 Robert Millan <rmh@aybabtu.com>
37906
37907 * commands/sleep.c: New file.
37908 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
37909 (sleep_mod_SOURCES): New variable.
37910 (sleep_mod_CFLAGS): Likewise.
37911 (sleep_mod_LDFLAGS): Likewise.
37912
37913 2008-02-09 Robert Millan <rmh@aybabtu.com>
37914
37915 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
37916 situations in which we can deduce the RAID size and the superblock
37917 doesn't match it.
37918
37919 2008-02-09 Robert Millan <rmh@aybabtu.com>
37920
37921 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
37922 and return a grub_diskmemberlist_t composed of LVM physical volumes.
37923 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
37924
37925 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
37926 and return a grub_diskmemberlist_t composed of physical array members.
37927 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
37928
37929 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
37930 prototype.
37931 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
37932 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
37933 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
37934
37935 * util/grub-probe.c (probe): Move partmap probing code from here ...
37936 (probe_partmap): ... to here.
37937 (probe): Use probe_partmap() once for the disk we're probing, and
37938 additionally, when such disk contains a memberlist() struct member,
37939 once for each disk that is contained in the structure returned by
37940 memberlist().
37941
37942 2008-02-09 Robert Millan <rmh@aybabtu.com>
37943
37944 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
37945 environment variable to 'all' in order to obtain debug output from
37946 non-util/ code.
37947 * util/i386/pc/grub-setup.c (main): Likewise.
37948
37949 2008-02-08 Robert Millan <rmh@aybabtu.com>
37950
37951 * disk/raid.c (grub_raid_scan_device): Check for
37952 `array->device[sb.this_disk.number]' rather than for
37953 `array->device[sb.this_disk.number]->name', since the latter is not
37954 guaranteed to be accessible.
37955
37956 2008-02-08 Robert Millan <rmh@aybabtu.com>
37957
37958 * disk/raid.c: Update copyright.
37959 * fs/cpio.c: Likewise.
37960 * include/grub/raid.h: Likewise.
37961 * loader/i386/pc/multiboot.c: Likewise.
37962 * util/hostfs.c: Likewise.
37963
37964 2008-02-08 Robert Millan <rmh@aybabtu.com>
37965
37966 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
37967 to a grub_disk_t array.
37968 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
37969 `device[x]'.
37970 (grub_raid_scan_device): Replace `device[x].name' accesses with
37971 `device[x]->name'. Simplify initialization of `array->device[x]'.
37972
37973 2008-02-08 Robert Millan <rmh@aybabtu.com>
37974
37975 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
37976 grub_dprintf() calls.
37977 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
37978 error message.
37979
37980 2008-02-07 Christian Franke <franke@computer.org>
37981
37982 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
37983 instead of fseek and ftell to support large files.
37984 (grub_hostfs_read): Likewise.
37985
37986 2008-02-07 Robert Millan <rmh@aybabtu.com>
37987
37988 Patch from Jeroen Dekkers.
37989 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
37990 failure, since successfully reading all array members might not be
37991 required.
37992
37993 2008-02-06 Robert Millan <rmh@aybabtu.com>
37994
37995 * util/grub-probe.c (probe): Simplify partmap probing (with the
37996 assumption that the first word up to the underscore equals to
37997 the module name).
37998
37999 2008-02-06 Christian Franke <franke@computer.org>
38000
38001 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38002 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38003 last block of a cpio or tar stream.
38004 Check for "TRAILER!!!" instead of any empty data
38005 block to detect last block of a cpio stream.
38006 (grub_cpio_dir): Fix constness of variable np.
38007 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38008 cpio or tar trailer is detected. This fixes a crash
38009 on open of a non existing file.
38010
38011 2008-02-05 Bean <bean123ch@gmail.com>
38012
38013 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38014 address of entry.
38015 (grub_multiboot_load_elf64): Likewise.
38016 (grub_multiboot): Initialize mbi structure.
38017
38018 * util/grub-fstest.c: Don't include unused header file script.h.
38019
38020 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38021 of file.
38022 (grub_fstest_SOURCES): Likewise.
38023
38024 2008-02-05 Robert Millan <rmh@aybabtu.com>
38025
38026 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38027 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38028 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38029 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38030
38031 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38032 (translation_table): Replace hardcoded values with macros
38033 provided by `<grub/term.h>'.
38034
38035 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38036 (keyboard_map): Correct/add a few values, with macros provided
38037 by `<grub/term.h>'.
38038 (keyboard_map_shift): Zero values that don't differ from their
38039 `keyboard_map' equivalents.
38040 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38041 Discard the second scan code that is always sent by Caps lock.
38042 Only use `keyboard_map_shift' when it provides a non-zero value,
38043 otherwise fallback to `keyboard_map'.
38044
38045 2008-02-04 Bean <bean123ch@gmail.com>
38046
38047 * Makefile.in (enable_grub_fstest): New variable.
38048
38049 * conf/common.rmk (grub_fstest_init.lst): New rule.
38050 (grub_fstest_init.h): Likewise.
38051 (grub_fstest_init.c): Likewise.
38052 (util/grub-fstest.c_DEPENDENCIES): New variable.
38053 (grub_fstest_SOURCES): Likewise.
38054
38055 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38056
38057 * util/grub-fstest.c: New file.
38058
38059 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38060
38061 Make grub-setup handle a separate root device.
38062
38063 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38064 so that the root device can be compared with the destination
38065 device.
38066 When embedding the core image, if the root and destination devices
38067 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38068 0xFF.
38069 When not embedding, set ROOT_DRIVE to 0xFF.
38070
38071 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38072
38073 Add support for having a grub directory in a different drive. This
38074 is still only the data handling part.
38075
38076 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38077 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38078 (grub_root_drive): New variable.
38079
38080 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38081 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38082 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38083 as it was.
38084
38085 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38086
38087 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38088 macro.
38089 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38090
38091 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38092 is bogus, because PXE booting does not specify any drive
38093 correctly.
38094
38095 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38096 am not sure if this is really correct.
38097
38098 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38099 is always identical to the boot drive when booting from a CD.
38100
38101 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38102 longer.
38103 (root_drive): New variable.
38104 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38105 (setup_sectors): Push %dx right after popping it, because %dh will
38106 be modified later.
38107 (copy_buffer): Restore %dx.
38108
38109 2008-02-03 Robert Millan <rmh@aybabtu.com>
38110
38111 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38112 use `cdboot.img' for cdrom images.
38113
38114 2008-02-03 Robert Millan <rmh@aybabtu.com>
38115
38116 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38117 only setup gfxterm when `font' command has succeeded.
38118
38119 2008-02-03 Robert Millan <rmh@aybabtu.com>
38120
38121 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38122 (grub_rescue_cmd_multiboot_loader)
38123 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38124
38125 2008-02-03 Pavel Roskin <proski@gnu.org>
38126
38127 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38128 %edx and %esi from stack only after grub_gate_a20() is called.
38129 grub_gate_a20() clobbers %edx.
38130
38131 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38132
38133 * configure.ac (AC_INIT): Bumped to 1.96.
38134
38135 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38136 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38137 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38138 video/readers/png.c.
38139
38140 2008-02-03 Bean <bean123ch@gmail.com>
38141
38142 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38143 (cdboot_img_SOURCES): New variable.
38144 (cdboot_img_ASFLAGS): New variable.
38145 (cdboot_img_LDFLAGS): New variable.
38146
38147 * boot/i386/pc/cdboot.S: New file.
38148
38149 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38150 (cd_count): Likewise.
38151 (grub_biosdisk_get_drive): Add support for cd device.
38152 (grub_biosdisk_call_hook): Likewise.
38153 (grub_biosdisk_iterate): Likewise.
38154 (grub_biosdisk_open): Likewise.
38155 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38156 (grub_biosdisk_rw): Support reading from cd device.
38157 (GRUB_MOD_INIT): Iterate cd devices.
38158
38159 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38160 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38161 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38162
38163 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38164
38165 2008-02-02 Robert Millan <rmh@aybabtu.com>
38166
38167 * commands/read.c: New file.
38168 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38169 (read_mod_SOURCES): New variable.
38170 (read_mod_CFLAGS): Likewise.
38171 (read_mod_LDFLAGS): Likewise.
38172
38173 2008-02-02 Robert Millan <rmh@aybabtu.com>
38174
38175 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38176 determining whether menu has to be displayed.
38177
38178 2008-02-02 Marco Gerards <marco@gnu.org>
38179
38180 * bus/pci.c: New file.
38181
38182 * include/grub/pci.h: Likewise.
38183
38184 * include/grub/i386/pc/pci.h: Likewise.
38185
38186 * commands/lspci.c: Likewise.
38187
38188 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38189 `lspci.mod'.
38190 (pci_mod_SOURCES): New variable.
38191 (pci_mod_CFLAGS): Likewise.
38192 (pci_mod_LDFLAGS): Likewise.
38193 (lspci_mod_SOURCES): Likewise.
38194 (lspci_mod_CFLAGS): Likewise.
38195 (lspci_mod_LDFLAGS): Likewise.
38196
38197 2008-02-02 Bean <bean123ch@gmail.com>
38198
38199 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38200 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38201
38202 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38203 (grub_xfs_btree_node): New structure.
38204 (grub_xfs_btree_root): New structure.
38205 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38206 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38207 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38208 (GRUB_XFS_EXTENT_SIZE): Likewise.
38209 (grub_xfs_read_block): Support btree format type.
38210 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38211 Use directory block as basic unit.
38212
38213 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38214
38215 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38216 __attribute__ ((__regparm__ (1))).
38217
38218 2008-02-01 Robert Millan <rmh@aybabtu.com>
38219
38220 Correct a mistake in previous commit.
38221
38222 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38223 top.
38224 (normal/command.c_DEPENDENCIES): New variable.
38225
38226 2008-02-01 Robert Millan <rmh@aybabtu.com>
38227
38228 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38229 top.
38230 (normal/command.c_DEPENDENCIES): New variable.
38231 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38232 * conf/i386-ieee1275.rmk: Likewise.
38233 * conf/i386-linuxbios.rmk: Likewise.
38234 * conf/i386-pc.rmk: Likewise.
38235 * conf/sparc64-ieee1275.rmk: Likewise.
38236 * conf/powerpc-ieee1275.rmk: Likewise.
38237 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38238
38239 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38240
38241 2008-02-01 Robert Millan <rmh@aybabtu.com>
38242
38243 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38244 call at beginning of function.
38245
38246 2008-01-31 Pavel Roskin <proski@gnu.org>
38247
38248 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38249 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38250 (grub_mkrescue_SOURCES): Likewise.
38251 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38252
38253 2008-01-30 Robert Millan <rmh@aybabtu.com>
38254
38255 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38256 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38257 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38258 (grub_probe_SOURCES): ... to here.
38259
38260 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38261 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38262 * conf/i386-ieee1275.rmk: Likewise.
38263 * conf/i386-linuxbios.rmk: Likewise.
38264 * conf/powerpc-ieee1275.rmk: Likewise.
38265
38266 2008-01-30 Tristan Gingold <gingold@free.fr>
38267
38268 * kern/rescue.c: Silently accept empty lines.
38269
38270 2008-01-29 Bean <bean123ch@gmail.com>
38271
38272 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38273 (real_code_2): Code cleanup and change comment style.
38274 (move_memory): Avoid using 32-bit address mode.
38275
38276 2008-01-29 Bean <bean123ch@gmail.com>
38277
38278 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38279 (png_mod_SOURCES): New variable.
38280 (png_mod_CFLAGS): Likewise.
38281 (png_mod_LDFLAGS): Likewise.
38282
38283 * video/readers/png.c: New file.
38284
38285 2008-01-28 Robert Millan <rmh@aybabtu.com>
38286
38287 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38288 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38289 `ifndef GRUB_MOD_GAP' hack.
38290 * util/elf/grub-mkimage.c (add_segments): Likewise.
38291
38292 2008-01-27 Robert Millan <rmh@aybabtu.com>
38293
38294 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38295 `GRUB_MOD_GAP' for platforms in which it's not defined.
38296 * util/elf/grub-mkimage.c (add_segments): Likewise.
38297
38298 2008-01-27 Robert Millan <rmh@aybabtu.com>
38299
38300 Get grub-emu to build again (including parallel builds).
38301
38302 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38303 Split into ...
38304 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38305 (normal/execute.c_DEPENDENCIES): ... this, ...
38306 (grub-emu_DEPENDENCIES): ... and this.
38307
38308 * conf/i386-efi.rmk: Likewise.
38309 * conf/i386-linuxbios.rmk: Likewise.
38310 * conf/i386-ieee1275.rmk: Likewise.
38311 * conf/powerpc-ieee1275.rmk: Likewise.
38312 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38313
38314 2008-01-27 Robert Millan <rmh@aybabtu.com>
38315
38316 * NEWS: Add a few items.
38317
38318 2008-01-27 Robert Millan <rmh@aybabtu.com>
38319
38320 Fix parallel builds with grub-emu. Based on earlier commit for
38321 grub-probe and grub-setup.
38322
38323 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38324 (util/grub-emu.c_DEPENDENCIES): ... this.
38325 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38326 (util/grub-emu.c_DEPENDENCIES): ... this.
38327 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38328 (util/grub-emu.c_DEPENDENCIES): ... this.
38329 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38330 (util/grub-emu.c_DEPENDENCIES): ... this.
38331 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38332 (util/grub-emu.c_DEPENDENCIES): ... this.
38333
38334 2008-01-27 Pavel Roskin <proski@gnu.org>
38335
38336 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38337 to create a gap between _end and the modules added to the image
38338 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38339 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38340 * util/elf/grub-mkimage.c (add_segments): Likewise.
38341
38342 2008-01-26 Pavel Roskin <proski@gnu.org>
38343
38344 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38345 just return an error.
38346
38347 2008-01-26 Bean <bean123ch@gmail.com>
38348
38349 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38350 (grub_reiserfs_get_item): Save offset of the next item.
38351 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38352
38353 2008-01-25 Robert Millan <rmh@aybabtu.com>
38354
38355 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38356 make all filesystem sources appear together (possibly fixing omissions
38357 while at it).
38358 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38359 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38360 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38361 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38362
38363 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38364 add `kern/file.c'.
38365 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38366 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38367 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38368 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38369
38370 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38371 (probe): Add a sanity check to make sure of our ability to read
38372 requested files when probing for filesystem type.
38373
38374 * genmk.rb: Update copyright year (2007).
38375
38376 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38377 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38378 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38379 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38380 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38381 : Remove function prototypes.
38382
38383 2008-01-25 Robert Millan <rmh@aybabtu.com>
38384
38385 Revert my previous commits (based on wrong assumption of how grub_errno
38386 works).
38387
38388 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38389 * kern/file.c (grub_file_open): Likewise.
38390
38391 2008-01-24 Pavel Roskin <proski@gnu.org>
38392
38393 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38394 that hang if GRUB tries to setup colors.
38395 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38396 colors for firmwares that don't support it.
38397 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38398 Recognize Open Hack'Ware, set flags to work around its
38399 limitations.
38400
38401 2008-01-24 Robert Millan <rmh@aybabtu.com>
38402
38403 * kern/file.c (grub_file_open): Do not account previous failures of
38404 unrelated functions when grub_errno is checked for.
38405 Reported by Oleg Strikov.
38406
38407 2008-01-24 Bean <bean123ch@gmail.com>
38408
38409 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38410 (grub_ufs_sblock): New member volume name.
38411 (grub_ufs_find_file): Fix string copy bug.
38412 (grub_ufs_label): Implement this function properly.
38413
38414 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38415 (grub_hfs_iterate_records): Use the correct file number for extents
38416 and catalog file. Fix problem in next index calculation.
38417 (grub_hfs_find_node): Replace recursive function call with loop.
38418 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38419
38420 2008-01-23 Robert Millan <rmh@aybabtu.com>
38421
38422 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38423 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38424 (grub_multiboot2_real_boot): New function prototype.
38425
38426 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38427 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38428
38429 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38430 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38431
38432 2008-01-23 Robert Millan <rmh@aybabtu.com>
38433
38434 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38435 #ifdef'ed out grub_printf().
38436
38437 2008-01-23 Robert Millan <rmh@aybabtu.com>
38438
38439 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38440 grub_dprintf calls, since they make "debug=all" mode unusable.
38441 (grub_console_checkkey): Likewise.
38442
38443 2008-01-23 Robert Millan <rmh@aybabtu.com>
38444
38445 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38446 `term/i386/pc/at_keyboard.c'.
38447 (pkglib_MODULES): Add `serial.mod'.
38448 (serial_mod_SOURCES): New variable.
38449 (serial_mod_CFLAGS): Likewise.
38450 (serial_mod_LDFLAGS): Likewise.
38451
38452 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38453 `<grub/powerpc/ieee1275/console.h>'.
38454 (grub_keyboard_controller_init): New function prototype.
38455 (grub_console_checkkey): Likewise.
38456 (grub_console_getkey): Likewise.
38457
38458 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38459 keyboard on i386.
38460
38461 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38462 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38463
38464 2008-01-23 Robert Millan <rmh@aybabtu.com>
38465
38466 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38467 present, "(memdisk)/boot/grub" becomes the default prefix.
38468
38469 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38470 a memdisk tarball with all the modules. Add --overlay=DIR option that
38471 allows users to overlay additional files into the image.
38472
38473 2008-01-23 Robert Millan <rmh@aybabtu.com>
38474
38475 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38476 and `machine/memory.h'.
38477 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38478 (_multiboot_mod_SOURCES): New variable.
38479 (_multiboot_mod_CFLAGS): Likewise.
38480 (_multiboot_mod_LDFLAGS): Likewise.
38481 (multiboot_mod_SOURCES): Likewise.
38482 (multiboot_mod_CFLAGS): Likewise.
38483 (multiboot_mod_LDFLAGS): Likewise.
38484
38485 * include/grub/i386/ieee1275/loader.h: New file.
38486
38487 * include/grub/i386/ieee1275/machine.h: Likewise.
38488
38489 * include/grub/i386/ieee1275/memory.h: Likewise.
38490
38491 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38492 variable declaration.
38493 (grub_os_area_size): Likewise.
38494
38495 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38496 (grub_lower_mem, grub_upper_mem): New variables.
38497 (grub_stop_floppy): New function (just to make
38498 grub_multiboot2_real_boot() happy).
38499
38500 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38501 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38502 (grub_stop): New function.
38503 Include `"../realmode.S"' and `"../loader.S"'.
38504
38505 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38506 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38507
38508 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38509 rely on grub_multiboot2_real_boot() for final boot.
38510
38511 2008-01-22 Robert Millan <rmh@aybabtu.com>
38512
38513 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38514 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38515 device that doesn't look like an SD card.
38516 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38517 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38518 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38519 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38520 found.
38521
38522 2008-01-22 Robert Millan <rmh@aybabtu.com>
38523
38524 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38525 avoid claiming over our own code.
38526
38527 2008-01-22 Bean <bean123ch@gmail.com>
38528
38529 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38530 (jpeg_mod_SOURCES): New variable.
38531 (jpeg_mod_CFLAGS): Likewise.
38532 (jpeg_mod_LDFLAGS): Likewise.
38533
38534 * video/readers/jpeg.c : New file.
38535
38536 2008-01-22 Bean <bean123ch@gmail.com>
38537
38538 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38539 there are no more items.
38540
38541 2008-01-21 Robert Millan <rmh@aybabtu.com>
38542
38543 * kern/mm.c (grub_mm_init_region): Improve debug message.
38544
38545 2008-01-21 Robert Millan <rmh@aybabtu.com>
38546
38547 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38548 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38549 address.
38550 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38551 a C macro.
38552 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38553 Indicates start of upper memory.
38554 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38555 (generate_image): Abort when image size is big enough to corrupt
38556 upper memory.
38557
38558 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38559 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38560 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38561 instead of hardcoding 0xA0000.
38562 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38563 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38564 instead of hardcoding 0xA0000.
38565
38566 2008-01-21 Robert Millan <rmh@aybabtu.com>
38567
38568 * disk/memdisk.c (memdisk_size): New variable.
38569 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38570 `memdisk_size'.
38571 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38572 image to dynamic memory.
38573 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38574 `memdisk_size'. Free memdisk block.
38575
38576 2008-01-21 Robert Millan <rmh@aybabtu.com>
38577
38578 Fix detection of very small filesystems (like tar).
38579
38580 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38581 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38582 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38583 a problem with this disk).
38584
38585 2008-01-21 Robert Millan <rmh@aybabtu.com>
38586
38587 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38588 on grub_biosdisk_rw_standard() error.
38589
38590 2008-01-21 Robert Millan <rmh@aybabtu.com>
38591
38592 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38593 recent changes.
38594 * kern/elf.c: Likewise.
38595 * kern/ieee1275/ieee1275.c: Likewise.
38596 * kern/powerpc/ieee1275/openfw.c: Likewise.
38597 * term/ieee1275/ofconsole.c: Likewise.
38598
38599 2008-01-21 Robert Millan <rmh@aybabtu.com>
38600
38601 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38602
38603 * include/grub/kernel.h (grub_arch_memdisk_addr)
38604 (grub_arch_memdisk_size): Moved from here ...
38605
38606 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38607 (grub_arch_memdisk_size): ... to here.
38608
38609 2008-01-21 Robert Millan <rmh@aybabtu.com>
38610
38611 Mostly based on bugfix from Bean.
38612
38613 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38614 attribute with hook() parameter.
38615 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38616 declaration.
38617 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38618 attribute with hook() parameter.
38619 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38620 declaration.
38621
38622 2008-01-21 Robert Millan <rmh@aybabtu.com>
38623
38624 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38625 (pkglib_MODULES): Add `memdisk.mod'.
38626 (memdisk_mod_SOURCES): New variable.
38627 (memdisk_mod_CFLAGS): Likewise.
38628 (memdisk_mod_LDFLAGS): Likewise.
38629
38630 * disk/memdisk.c: New file.
38631
38632 * include/grub/disk.h (grub_disk_dev_id): Add
38633 `GRUB_DISK_DEVICE_MEMDISK_ID'.
38634
38635 * include/grub/i386/pc/kernel.h
38636 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
38637 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
38638 (grub_kernel_image_size): New variable declaration.
38639 (grub_total_module_size): Likewise.
38640 (grub_memdisk_image_size): Likewise.
38641
38642 * include/grub/i386/pc/memory.h
38643 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
38644
38645 * include/grub/kernel.h: Include `<grub/symbol.h>'.
38646 (grub_arch_memdisk_addr): New variable declaration.
38647 (grub_arch_memdisk_size): Likewise.
38648
38649 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
38650 (grub_arch_memdisk_size): Likewise.
38651
38652 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
38653 (codestart): Replace hardcoded `0x100000' with
38654 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
38655
38656 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
38657 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
38658 not NULL, append the contents of the file it refers to, at the end of
38659 the compressed kernel image. Initialize `grub_memdisk_image_size'
38660 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
38661 (options): Add "memdisk"|'m' option.
38662 (main): Parse --memdisk|-m option, and pass user-provided path as
38663 parameter to generate_image().
38664
38665 2008-01-20 Robert Millan <rmh@aybabtu.com>
38666
38667 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
38668 grub_dprintf() calls from here ...
38669 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
38670
38671 2008-01-20 Robert Millan <rmh@aybabtu.com>
38672
38673 Fix detection of "real mode" when /options/real-mode? doesn't exist.
38674
38675 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
38676 declaration.
38677 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
38678 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
38679 `GRUB_IEEE1275_FLAG_REAL_MODE'.
38680 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
38681 property).
38682 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
38683 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
38684
38685 2008-01-19 Robert Millan <rmh@aybabtu.com>
38686
38687 Get rid of confusing function (superseded by
38688 `grub_ieee1275_get_integer_property')
38689 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
38690 prototype.
38691 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
38692 function.
38693 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
38694 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
38695 in native endianness from grub_ieee1275_get_integer_property().
38696
38697 2008-01-19 Robert Millan <rmh@aybabtu.com>
38698
38699 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
38700 command after "shut-down", since implementations differ on which
38701 the command for halt is.
38702
38703 2008-01-19 Robert Millan <rmh@aybabtu.com>
38704
38705 * include/grub/i386/linuxbios/console.h: Add header protection.
38706 (grub_keyboard_controller_init): New function prototype.
38707 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
38708 (KEYBOARD_COMMAND_READ): Likewise.
38709 (KEYBOARD_COMMAND_WRITE): Likewise.
38710 (KEYBOARD_SCANCODE_SET1): Likewise.
38711 (grub_keyboard_controller_write): New function.
38712 (grub_keyboard_controller_read): Likewise.
38713 (grub_keyboard_controller_init): Likewise.
38714
38715 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
38716 (grub_console_init): On coreboot/LinuxBIOS, call
38717 grub_keyboard_controller_init().
38718
38719 2008-01-19 Robert Millan <rmh@aybabtu.com>
38720
38721 PowerPC changes provided by Pavel Roskin.
38722
38723 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
38724 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
38725 don't rely on cmain() doing it.
38726 * kern/i386/ieee1275/startup.S (_start): Store %eax in
38727 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
38728
38729 2008-01-16 Robert Millan <rmh@aybabtu.com>
38730
38731 * include/grub/i386/linuxbios/memory.h
38732 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
38733 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
38734 receive `table_header' as argument. Instead, probe for it in the
38735 known memory ranges where it can be present.
38736 (grub_available_iterate): Do not pass a fixed `table_header' address
38737 to grub_linuxbios_table_iterate().
38738
38739 2008-01-15 Robert Millan <rmh@aybabtu.com>
38740
38741 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
38742 * conf/i386-ieee1275.rmk: New file.
38743 * include/grub/i386/ieee1275/console.h: Likewise.
38744 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
38745 * include/grub/i386/ieee1275/kernel.h: Likewise.
38746 * include/grub/i386/ieee1275/time.h: Likewise.
38747 * kern/i386/ieee1275/init.c: Likewise.
38748 * kern/i386/ieee1275/startup.S: Likewise.
38749
38750 2008-01-15 Robert Millan <rmh@aybabtu.com>
38751
38752 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
38753 when pointers are 32-bit (but still do set it to one when they are
38754 64-bit).
38755
38756 2008-01-15 Robert Millan <rmh@aybabtu.com>
38757
38758 * include/grub/ieee1275/ieee1275.h
38759 (grub_ieee1275_get_integer_property): New function prototype.
38760
38761 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
38762 (grub_ieee1275_get_integer_property): New function. Wraps around
38763 grub_ieee1275_get_property() to handle endianness.
38764
38765 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
38766 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
38767 where appropriate.
38768 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
38769 (grub_map): Likewise.
38770 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
38771
38772 2008-01-15 Bean <bean123ch@gmail.com>
38773
38774 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
38775 (grub_script_execute_cmdline): Reset grub_errno.
38776
38777 * normal/main.c (read_config_file): Reset grub_errno.
38778
38779 * normal/parse.y (script_init): New.
38780 (script): Move function and menuentry here.
38781 (delimiter): New.
38782 (command): Add delimiter at the end of command.
38783 (commands): Adjust to match the new command.
38784 (commandblock): Remove grub_script_lexer_record_start.
38785 (menuentry): Add grub_script_lexer_record_start, use the new commands.
38786 (if): Use the new commands.
38787
38788 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
38789
38790 2008-01-15 Robert Millan <rmh@aybabtu.com>
38791
38792 * normal/menu.c (run_menu): Move timeout message from here ...
38793 (print_timeout): ... to here.
38794 (run_menu): Use print_timeout() once during initial draw to print
38795 the whole message, and again in every clock tick to update only
38796 the number of seconds.
38797
38798 2008-01-15 Robert Millan <rmh@aybabtu.com>
38799
38800 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
38801 actual size of `available' from grub_ieee1275_get_property(), and
38802 restrict parsing to that bound.
38803
38804 2008-01-15 Christian Franke <franke@computer.org>
38805
38806 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
38807 (argp_program_version): Remove variable.
38808 (argp_program_bug_address): Likewise.
38809 (options): Convert from struct argp_option to struct option.
38810 (struct arguments): Remove.
38811 (parse_opt): Remove.
38812 (usage): New function.
38813 (main): Replace struct args members by simple variables.
38814 Replace argp_parse() by getopt_long().
38815 Add switch to evaluate options.
38816 Add missing "(...)" around root_dev in prefix string.
38817
38818 2008-01-14 Robert Millan <rmh@aybabtu.com>
38819
38820 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
38821 for grub_ieee1275_exit(), in order to improve portability.
38822
38823 2008-01-14 Robert Millan <rmh@aybabtu.com>
38824
38825 * util/grub.d/10_linux.in (prefix): Define.
38826 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
38827
38828 2008-01-13 Pavel Roskin <proski@gnu.org>
38829
38830 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
38831 grub_errno if no errors have been detected.
38832
38833 2008-01-12 Robert Millan <rmh@aybabtu.com>
38834
38835 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
38836 (grub_util_get_dev_abstraction): New function prototype.
38837
38838 * util/getroot.c: Include `<grub/util/getroot.h>'
38839 (grub_util_get_grub_dev): Move detection of abstraction type to ...
38840 (grub_util_get_dev_abstraction): ... here (new function).
38841
38842 * util/grub-probe.c: Convert PRINT_* to an enum. Add
38843 `PRINT_ABSTRACTION'.
38844 (probe): Probe for abstraction type when requested.
38845 (main): Understand `--target=abstraction'.
38846
38847 * util/i386/efi/grub-install.in: Add abstraction module to core
38848 image when it is found to be necessary.
38849 * util/i386/pc/grub-install.in: Likewise.
38850 * util/powerpc/ieee1275/grub-install.in: Likewise.
38851
38852 * util/update-grub_lib.in (font_path): Return system path without
38853 converting to GRUB path.
38854 * util/update-grub.in: Convert system path returned by font_path()
38855 to a GRUB path. Use `grub-probe -t abstraction' to determine what
38856 abstraction module is needed for loading fonts (if any). Export
38857 that as `GRUB_PRELOAD_MODULES'.
38858 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
38859 insmod commands).
38860
38861 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
38862
38863 Remove some unused code from reiserfs.
38864
38865 * fs/reiserfs.c (struct grub_reiserfs_key)
38866 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
38867 (struct grub_reiserfs_node_body): Removed.
38868 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38869 Likewise.
38870 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38871 Likewise.
38872 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38873 Likewise.
38874 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38875 Likewise.
38876 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38877 Likewise.
38878 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
38879 Likewise.
38880 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38881 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38882 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38883
38884 2008-01-10 Robert Millan <rmh@aybabtu.com>
38885
38886 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
38887 Determines if a file is garbage left by packaging systems, etc.
38888 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
38889 for processing /etc/grub.d scripts.
38890 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
38891 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
38892 as a condition for processing Linux images.
38893
38894 2008-01-10 Pavel Roskin <proski@gnu.org>
38895
38896 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
38897 to compile reiserfs.c on PowerPC.
38898
38899 2008-01-10 Robert Millan <rmh@aybabtu.com>
38900
38901 * kern/device.c (grub_device_iterate): Do not abort device iteration
38902 when one of the devices cannot be opened.
38903 * kern/disk.c (grub_disk_open): Do not account previous failures of
38904 unrelated functions when grub_errno is checked for.
38905
38906 2008-01-08 Robert Millan <rmh@aybabtu.com>
38907
38908 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
38909 `! grub_linux_is_bzimage', change order of address comparison to make
38910 it more intuitive, and improve "too big zImage" error message.
38911
38912 2008-01-08 Robert Millan <rmh@aybabtu.com>
38913
38914 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
38915 `$(update-grub_DATA)'.
38916 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
38917 targets.
38918
38919 2008-01-07 Robert Millan <rmh@aybabtu.com>
38920
38921 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
38922 which instruction is modified by grub-setup during installation
38923 (since it wasn't obvious by only looking at this file).
38924
38925 2008-01-07 Robert Millan <rmh@aybabtu.com>
38926
38927 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
38928 listing actual TODO items.
38929
38930 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38931
38932 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
38933 correctly.
38934 (grub_reiserfs_get_key_offset): Likewise.
38935 (grub_reiserfs_set_key_offset): Likewise.
38936 (grub_reiserfs_set_key_type): Likewise.
38937 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
38938
38939 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
38940 better to remove the bitfield version completely.
38941
38942 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38943
38944 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
38945 allocated from the heap, due to the fshelp implementation.
38946 (grub_reiserfs_dir): Free NODE, due to the same reason.
38947
38948 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38949
38950 Mostly from Vincent Pelletier:
38951
38952 * fs/reiserfs.c: New file.
38953
38954 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
38955 (reiserfs_mod_SOURCES): New variable.
38956 (reiserfs_mod_CFLAGS): Likewise.
38957 (reiserfs_mod_LDFLAGS): Likewise.
38958
38959 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
38960 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
38961 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
38962 normal/color.c.
38963
38964 2008-01-06 Robert Millan <rmh@aybabtu.com>
38965
38966 * normal/color.c: Remove `<grub/env.h>'.
38967
38968 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
38969
38970 * include/grub/normal.h: Include <grub/env.h>.
38971
38972 2008-01-05 Robert Millan <rmh@aybabtu.com>
38973
38974 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
38975 usage example with `(hd0,1)'.
38976 Reported by Samuel Thibault.
38977
38978 2008-01-05 Robert Millan <rmh@aybabtu.com>
38979
38980 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
38981 (grub_linux_boot_zimage): Rename to ...
38982 (grub_linux_boot): ... this.
38983 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
38984 (grub_linux_boot_zimage): Conditionalize zImage copy.
38985
38986 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
38987 (grub_linux_boot_bzimage): Remove prototype.
38988 (grub_linux_boot_zimage): Rename to ...
38989 (grub_linux_boot): ... this.
38990
38991 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
38992 (grub_linux_boot): Remove function.
38993
38994 2008-01-05 Robert Millan <rmh@aybabtu.com>
38995
38996 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
38997 (grub_env_write_color_highlight): Likewise.
38998 (grub_wait_after_message): Likewise.
38999
39000 * normal/color.c: New file.
39001
39002 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39003 (normal_mod_DEPENDENCIES): Likewise.
39004
39005 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39006 (normal_mod_DEPENDENCIES): Likewise.
39007
39008 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39009 (normal_mod_DEPENDENCIES): Likewise.
39010
39011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39012 (normal_mod_DEPENDENCIES): Likewise.
39013
39014 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39015 for waiting after a message is printed.
39016 * normal/main.c (read_config_file): Likewise.
39017 (grub_normal_init): Register grub_env_write_color_normal() and
39018 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39019 `color_highlight' variables as global.
39020
39021 * normal/menu.c (grub_wait_after_message): New function.
39022 (grub_color_menu_normal): New variable. Replaces ...
39023 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39024 (grub_color_menu_highlight): New variable. Replaces ...
39025 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39026 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39027 `GRUB_TERM_COLOR_STANDARD'.
39028 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39029 `normal_code' and `highlight_code' to `old_color_normal' and
39030 `old_color_highlight', respectively.
39031 (grub_menu_init_page): Update colors when drawing the menu, based on
39032 `menu_color_normal' and `menu_color_highlight' variables.
39033 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39034 a message is printed.
39035
39036 2008-01-05 Robert Millan <rmh@aybabtu.com>
39037
39038 * kern/env.c (grub_env_context_open): Propagate hooks for global
39039 variables to new context.
39040
39041 * kern/main.c (grub_set_root_dev): Export `root' variable.
39042
39043 2008-01-05 Robert Millan <rmh@aybabtu.com>
39044
39045 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39046 discs unconditionally, since udev and others have options to provide
39047 them.
39048
39049 2008-01-05 Robert Millan <rmh@aybabtu.com>
39050
39051 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39052
39053 2008-01-04 Christian Franke <franke@computer.org>
39054
39055 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39056 of eisa_mmap.
39057
39058 2008-01-03 Pavel Roskin <proski@gnu.org>
39059
39060 * kern/i386/linuxbios/init.c: Put "void" to all function
39061 declarations with no arguments.
39062 * kern/powerpc/ieee1275/init.c: Likewise.
39063 * term/i386/pc/at_keyboard.c: Likewise.
39064 * term/i386/pc/vga_text.c: Likewise.
39065 * util/grub-mkdevicemap.c: Likewise.
39066
39067 2008-01-02 Robert Millan <rmh@aybabtu.com>
39068
39069 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39070 message when loaded image is out of bounds.
39071 (grub_multiboot_load_elf64): Likewise.
39072
39073 2008-01-02 Pavel Roskin <proski@gnu.org>
39074
39075 * util/grub.d/10_linux.in: Try version without ".old" when
39076 looking for initrd. It's better to use initrd from the newer
39077 kernel of the same version than no initrd at all.
39078
39079 2008-01-01 Robert Millan <rmh@aybabtu.com>
39080
39081 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39082
39083 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39084
39085 * include/grub/video.h: Added grub_video_unmap_color and
39086 grub_video_get_active_render_target.
39087 (grub_video_adapter): Added unmap_color and get_active_render_target.
39088
39089 * video/video.c: Added grub_video_unmap_color and
39090 grub_video_get_active_render_target.
39091 (grub_video_get_info): Changed method to accept NULL pointer as an
39092 argument to allow detection of active video adapter.
39093
39094 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39095 grub_video_vbe_unmap_color_int.
39096 Added grub_video_vbe_unmap_color and
39097 grub_video_vbe_get_active_render_target.
39098 (grub_video_vbe_adapter): Added unmap_color and
39099 get_active_render_target.
39100
39101 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39102 with grub_video_vbe_unmap_color_int.
39103
39104 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39105 (DEFAULT_NORMAL_COLOR): Likewise.
39106 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39107 (DEFAULT_FG_COLOR): Removed.
39108 (DEFAULT_BG_COLOR): Likewise.
39109 (DEFAULT_CURSOR_COLOR): Changed value.
39110 (grub_virtual_screen): Added standard_color_setting,
39111 normal_color_setting, highlight_color_setting and term_color.
39112 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39113 (bitmap_width): Added.
39114 (bitmap_height): Likewise.
39115 (bitmap): Likewise.
39116 (set_term_color): Likewise.
39117 (grub_virtual_screen_setup): Changed to use new terminal coloring
39118 settings.
39119 (grub_gfxterm_init): Added init for bitmap.
39120 (grub_gfxterm_fini): Added destroy for bitmap.
39121 (redraw_screen_rect): Updated to use background bitmap and new
39122 terminal coloring.
39123 (scroll_up): Added optimization for case when there is no bitmap.
39124 (grub_gfxterm_cls): Fixed to use correct background color.
39125 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39126 coloring.
39127 (grub_virtual_screen_setcolor): Likewise.
39128 (grub_virtual_screen_getcolor): Added.
39129 (grub_gfxterm_background_image_cmd): Likewise.
39130 (grub_video_term): Added setcolor and getcolor.
39131 (MOD_INIT): Added registration of background_image command.
39132 (MOD_TERM): Added unregistration for background_image command.
39133
39134 2007-12-30 Pavel Roskin <proski@gnu.org>
39135
39136 * loader/multiboot_loader.c: Fix multiboot command
39137 unregistration. Fix all typos in the word "multiboot".
39138
39139 2007-12-29 Pavel Roskin <proski@gnu.org>
39140
39141 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39142 support for initrd names used in Fedora.
39143
39144 2007-12-26 Bean <bean123ch@gmail.com>
39145
39146 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39147 (cpio_mod_SOURCES): New variable.
39148 (cpio_mod_CFLAGS): Likewise.
39149 (cpio_mod_LDFLAGS): Likewise.
39150
39151 * fs/cpio.c: New file.
39152
39153 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39154
39155 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39156
39157 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39158
39159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39160
39161 2007-12-25 Robert Millan <rmh@aybabtu.com>
39162
39163 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39164 (grub_getcolor): New function.
39165
39166 * kern/term.c (grub_getcolor): New function.
39167 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39168 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39169 (print_entry): Set normal and highlight colors to
39170 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39171 respectively, before printing and restore them to old
39172 values afterwards.
39173 (grub_menu_init_page): Likewise. Fill an additional colored space
39174 that would otherwise be left blank.
39175
39176 * term/efi/console.c (grub_console_getcolor): New function.
39177 (struct grub_console_term.getcolor): New variable.
39178 * term/i386/pc/console.c (grub_console_getcolor): New function.
39179 (struct grub_console_term.getcolor): New variable.
39180 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39181 (struct grub_console_term.getcolor): New variable.
39182
39183 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39184 (struct grub_console_term.setcolor): Remove variable.
39185 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39186 (struct grub_console_term.setcolor): Remove variable.
39187 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39188 (struct grub_console_term.setcolor): Remove variable.
39189 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39190 (struct grub_console_term.setcolor): Remove variable.
39191
39192 2007-12-25 Robert Millan <rmh@aybabtu.com>
39193
39194 * configure.ac: Search for possible unifont.hex locations, and
39195 define UNIFONT_HEX if found.
39196
39197 * Makefile.in (UNIFONT_HEX): Define variable.
39198 (DATA): Rename to ...
39199 (PKGLIB): ... this. Update all users.
39200 (PKGDATA): New variable.
39201 (pkgdata_IMAGES): Rename to ...
39202 (pkglib_IMAGES): ... this. Update all users.
39203 (pkgdata_MODULES): Rename to ...
39204 (pkglib_MODULES): ... this. Update all users.
39205 (pkgdata_PROGRAMS): Rename to ...
39206 (pkglib_PROGRAMS): ... this. Update all users.
39207 (pkgdata_DATA): Rename to ...
39208 (pkglib_DATA): ... this. Update all users.
39209 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39210 (unicode.pff, ascii.pff): New rules.
39211 (all-local): Add `$(PKGDATA)' dependency.
39212 (install-local): Process `$(PKGDATA)'.
39213
39214 * util/update-grub_lib.in (font_path): Search for *.pff files in
39215 a few more locations, including `${pkgdata}'.
39216
39217 2007-12-23 Robert Millan <rmh@aybabtu.com>
39218
39219 Patch from Bean <bean123ch@gmail.com>:
39220 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39221 `size'.
39222
39223 2007-12-21 Bean <bean123ch@gmail.com>
39224
39225 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39226 (ntfscomp_mod_SOURCES): New variable.
39227 (ntfscomp_mod_CFLAGS): Likewise.
39228 (ntfscomp_mod_LDFLAGS): Likewise.
39229
39230 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39231 (grub_probe_SOURCES): Likewise.
39232 (grub_emu_SOURCES): Likewise.
39233
39234 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39235 (grub_emu_SOURCES): Likewise.
39236
39237 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39238 (grub_emu_SOURCES): Likewise.
39239
39240 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39241 (grub_emu_SOURCES): Likewise.
39242
39243 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39244 (read_run_list): Renamed to grub_ntfs_read_run_list.
39245 (decomp_nextvcn): Moved to ntfscomp.c.
39246 (decomp_getch): Likewise.
39247 (decomp_get16): Likewise.
39248 (decomp_block): Likewise.
39249 (read_block): Likewise.
39250 (read_data): Partially moved to ntfscomp.c.
39251 (fixup): Change unsigned to grub_uint16_t.
39252 (read_mft): Change unsigned long to grub_uint32_t.
39253 (read_attr): Likewise.
39254 (read_data): Likewise.
39255 (read_run_data): Likewise.
39256 (read_run_list): Likewise.
39257 (read_mft): Likewise.
39258
39259 * fs/ntfscomp.c: New file.
39260
39261 * include/grub/ntfs.h: New file.
39262
39263 2007-12-16 Robert Millan <rmh@aybabtu.com>
39264
39265 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39266 IDE disk check, since Linux is known to support 20 IDE disks.
39267 Reported by Colin Watson.
39268
39269 2007-12-15 Bean <bean123ch@gmail.com>
39270
39271 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39272 (lnxboot_img_SOURCES): New variable.
39273 (lnxboot_img_ASFLAGS): Likewise.
39274 (lnxboot_img_LDFLAGS): Likewise.
39275
39276 * boot/i386/pc/lnxboot.S: New file.
39277
39278 2007-11-24 Pavel Roskin <proski@gnu.org>
39279
39280 * configure.ac: Test if '--build-id=none' is supported by the
39281 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39282 objcopy to generate incorrect binary files (binutils
39283 2.17.50.0.18-1 as shipped by Fedora 8).
39284 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39285 linking, so that build ID doesn't break the test.
39286
39287 2007-11-24 Pavel Roskin <proski@gnu.org>
39288
39289 * include/grub/i386/time.h: use "void" in the argument list
39290 of grub_cpu_idle().
39291 * include/grub/powerpc/time.h: Likewise.
39292 * include/grub/sparc64/time.h: Likewise.
39293
39294 2007-11-18 Christian Franke <franke@computer.org>
39295
39296 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39297 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39298 This fixes the problem that function keys did not work in grub-emu.
39299
39300 2007-11-18 Christian Franke <franke@computer.org>
39301
39302 * disk/host.c (grub_host_open): Remove attribute unused from
39303 name parameter. Add check for "host". This fixes the problem
39304 that grub-emu does not find partitions.
39305
39306 2007-11-18 Christian Franke <franke@computer.org>
39307
39308 * util/hostfs.c (is_dir): New function.
39309 (grub_hostfs_dir): Handle missing dirent.d_type case.
39310 (grub_hostfs_read): Add missing fseek().
39311 (grub_hostfs_label): Clear label pointer. This fixes a crash
39312 of grub-emu on "ls (host)".
39313
39314 2007-11-18 Christian Franke <franke@computer.org>
39315
39316 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39317 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39318 to 64 bit boundary by default.
39319
39320 2007-11-18 Bean <bean123ch@gmail.com>
39321
39322 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39323 (hexdump_mod_SOURCES): New variable.
39324 (hexdump_mod_CFLAGS): Likewise.
39325 (hexdump_mod_LDFLAGS): Likewise.
39326
39327 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39328
39329 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39330
39331 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39332
39333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39334
39335 * include/grub/hexdump.h: New file.
39336
39337 * commands/hexdump.c: New file.
39338
39339 2007-11-10 Robert Millan <rmh@aybabtu.com>
39340
39341 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39342 in grub_outb() calls.
39343 (beep_on): Likewise.
39344
39345 2007-11-10 Christian Franke <franke@computer.org>
39346
39347 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39348 (grub_menu_run): Likewise.
39349
39350 2007-11-10 Robert Millan <rmh@aybabtu.com>
39351
39352 * include/grub/i386/efi/machine.h: New file.
39353 * include/grub/i386/linuxbios/machine.h: Likewise.
39354 * include/grub/i386/pc/machine.h: Likewise.
39355 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39356 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39357
39358 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39359 (serial_hw_io_addr): New variable.
39360 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39361 instead of `(unsigned short *) 0x400'.
39362
39363 2007-11-10 Bean <bean123ch@gmail.com>
39364
39365 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39366
39367 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39368
39369 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39370 (vga_mod_SOURCES): Added.
39371 (vga_mod_CFLAGS): Likewise.
39372 (vga_mod_LDFLAGS): Likewise.
39373
39374 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39375 grub_outb() calls.
39376 (set_map_mask): Likewise.
39377 (set_read_map): Likewise.
39378 (set_read_address): Likewise.
39379 (vga_font): Removed variable.
39380 (get_vga_glyph): Removed function.
39381 (invalidate_char): Likewise.
39382 (write_char): Changed to use grub_font_get_glyph() for font
39383 information.
39384 (grub_vga_putchar): Likewise.
39385 (grub_vga_getcharwidth): Likewise.
39386
39387 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39388
39389 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39390 flags.
39391 (pxeboot_img_LDFLAGS): Likewise.
39392 (diskboot_img_LDFLAGS): Likewise.
39393 (kernel_img_LDFLAGS): Likewise.
39394
39395 2007-11-06 Robert Millan <rmh@aybabtu.com>
39396
39397 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39398 in grub_outb() calls.
39399 (serial_hw_init): Likewise.
39400
39401 2007-11-05 Robert Millan <rmh@aybabtu.com>
39402
39403 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39404 spaces. Skip non-regular files.
39405
39406 2007-11-05 Robert Millan <rmh@aybabtu.com>
39407
39408 * kern/disk.c (grub_disk_firmware_fini)
39409 (grub_disk_firmware_is_tainted): New variables.
39410
39411 * include/grub/disk.h (grub_disk_firmware_fini)
39412 (grub_disk_firmware_is_tainted): Likewise.
39413
39414 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39415 (grub_disk_biosdisk_fini): ... to here.
39416 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39417 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39418 is set. Register grub_disk_biosdisk_fini() in
39419 `grub_disk_firmware_fini'.
39420
39421 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39422 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39423 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39424 to finish existing firmware disk interface.
39425
39426 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39427 (ata_mod_SOURCES): New variable.
39428 (ata_mod_CFLAGS): Likewise.
39429 (ata_mod_LDFLAGS): Likewise.
39430
39431 2007-11-05 Robert Millan <rmh@aybabtu.com>
39432
39433 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39434 (grub_ata_wait): Reimplement using grub_millisleep().
39435
39436 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39437 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39438
39439 2007-11-03 Marco Gerards <marco@gnu.org>
39440
39441 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39442 (CRTC_ADDR_PORT): New macro.
39443 (CRTC_DATA_PORT): Likewise.
39444 (CRTC_CURSOR): Likewise.
39445 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39446 (CRTC_CURSOR_ADDR_LOW): Likewise.
39447 (update_cursor): New function.
39448 (grub_console_real_putchar): Call `update_cursor'.
39449 (grub_console_gotoxy): Likewise.
39450 (grub_console_cls): Set the default color when clearing the
39451 screen.
39452 (grub_console_setcursor): Implemented.
39453
39454 2007-11-03 Marco Gerards <marco@gnu.org>
39455
39456 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39457 become activate.
39458 (grub_ata_pio_write): Likewise.
39459
39460 (grub_atapi_identify): Wait after issuing an ATA command.
39461 (grub_atapi_packet): Likewise.
39462 (grub_ata_identify): Likewise.
39463 (grub_ata_readwrite): Likewise.
39464
39465 2007-11-03 Marco Gerards <marco@gnu.org>
39466
39467 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39468 (grub_ata_pio_write): Likewise.
39469 (grub_ata_readwrite): Use `grub_error', instead of
39470 returning `grub_errno'.
39471
39472 2007-11-03 Marco Gerards <marco@gnu.org>
39473
39474 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39475 grub_ata_pio_write once for every single sector, instead of for
39476 multiple sectors.
39477
39478 2007-10-31 Robert Millan <rmh@aybabtu.com>
39479
39480 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39481
39482 * conf/i386-linuxbios.rmk: New file.
39483
39484 * kern/i386/pc/hardware.c: Likewise.
39485 * term/i386/pc/at_keyboard.c: Likewise.
39486 * term/i386/pc/vga_text.c: Likewise.
39487
39488 * include/grub/i386/linuxbios/boot.h: Likewise.
39489 * include/grub/i386/linuxbios/console.h: Likewise.
39490 * include/grub/i386/linuxbios/init.h: Likewise.
39491 * include/grub/i386/linuxbios/kernel.h: Likewise.
39492 * include/grub/i386/linuxbios/loader.h: Likewise.
39493 * include/grub/i386/linuxbios/memory.h: Likewise.
39494 * include/grub/i386/linuxbios/serial.h: Likewise.
39495 * include/grub/i386/linuxbios/time.h: Likewise.
39496
39497 * kern/i386/linuxbios/init.c: Likewise.
39498 * kern/i386/linuxbios/startup.S: Likewise.
39499 * kern/i386/linuxbios/table.c: Likewise.
39500
39501 2007-10-31 Marco Gerards <marco@gnu.org>
39502
39503 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39504 (ata_mod_SOURCES): New variable.
39505 (ata_mod_CFLAGS): Likewise.
39506 (ata_mod_LDFLAGS): Likewise.
39507
39508 * disk/ata.c: New file.
39509
39510 * include/grub/disk.h (grub_disk_dev_id): Add
39511 `GRUB_DISK_DEV_ATA_ID'.
39512
39513 2007-10-31 Robert Millan <rmh@aybabtu.com>
39514
39515 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39516 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39517
39518 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39519 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39520
39521 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39522 `<grub/types.h>'.
39523
39524 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39525
39526 2007-10-27 Robert Millan <rmh@aybabtu.com>
39527
39528 * include/grub/types.h (ULONG_MAX): Define macro.
39529
39530 2007-10-22 Robert Millan <rmh@aybabtu.com>
39531
39532 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39533 `"../realmode.S"'.
39534 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39535
39536 2007-10-22 Robert Millan <rmh@aybabtu.com>
39537
39538 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39539 (pkgdata_MODULES): Add `biosdisk.mod'.
39540 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39541 variables.
39542
39543 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39544 (grub_biosdisk_init): Replace with ...
39545 (GRUB_MOD_INIT(biosdisk)): ... this.
39546 (grub_biosdisk_fini): Replace with ...
39547 (GRUB_MOD_FINI(biosdisk)): ... this.
39548
39549 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39550 (grub_machine_init): Remove call to grub_biosdisk_init().
39551 (grub_machine_fini): Remove call to grub_machine_fini().
39552
39553 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39554
39555 2007-10-22 Robert Millan <rmh@aybabtu.com>
39556
39557 * include/grub/time.h: New file.
39558 * include/grub/i386/time.h: Likewise.
39559 * include/grub/powerpc/time.h: Likewise.
39560 * include/grub/sparc64/time.h: Likewise.
39561
39562 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39563 instances to ...
39564 (KERNEL_MACHINE_TIME_HEADER): ... this.
39565 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39566 instances to ...
39567 (KERNEL_MACHINE_TIME_HEADER): ... this.
39568 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39569 instances to ...
39570 (KERNEL_MACHINE_TIME_HEADER): ... this.
39571
39572 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39573 (grub_millisleep): New function.
39574 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39575 (grub_millisleep): New function.
39576 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39577 Remove `grub/machine/time.h' include.
39578 (grub_millisleep): New function.
39579 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39580 Remove `grub/machine/time.h' include.
39581 (grub_millisleep): New function.
39582
39583 * include/grub/misc.h (grub_div_roundup): New function.
39584
39585 * kern/misc.c: Include `<grub/time.h>'.
39586 (grub_millisleep_generic): New function.
39587
39588 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39589 Add `time.h'.
39590 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39591 Add `time.h'.
39592 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39593 `machine/time.h'. Add `time.h'.
39594 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39595
39596 2007-10-21 Robert Millan <rmh@aybabtu.com>
39597
39598 * include/grub/misc.h (grub_max): New function.
39599
39600 2007-10-21 Robert Millan <rmh@aybabtu.com>
39601
39602 * util/misc.c (grub_util_info): Call fflush() before returning.
39603
39604 2007-10-20 Robert Millan <rmh@aybabtu.com>
39605
39606 * genmk.rb (Image): Copy `extra_flags' from here ...
39607 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39608
39609 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39610 to `argc' and `args' arguments.
39611
39612 2007-10-17 Robert Millan <rmh@aybabtu.com>
39613
39614 * kern/i386/loader.S: New file.
39615
39616 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39617 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39618 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39619 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39620 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39621 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39622 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39623 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39624 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39625 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
39626 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
39627 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
39628 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
39629 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
39630
39631 * kern/i386/realmode.S: New file.
39632
39633 * kern/i386/pc/startup.S (protstack): Moved from here ...
39634 * kern/i386/realmode.S (protstack)... to here.
39635 * kern/i386/pc/startup.S (gdt): Moved from here ...
39636 * kern/i386/realmode.S (gdt)... to here.
39637 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
39638 * kern/i386/realmode.S (prot_to_real)... to here.
39639
39640 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
39641 `kern/i386/realmode.S'.
39642
39643 2007-10-17 Robert Millan <rmh@aybabtu.com>
39644
39645 * include/grub/i386/loader.h: New file.
39646
39647 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
39648 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39649 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39650 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39651 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
39652 * include/grub/i386/loader.h (grub_linux_prot_size)
39653 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39654 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39655 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39656 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
39657
39658 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
39659
39660 2007-10-15 Robert Millan <rmh@aybabtu.com>
39661
39662 * normal/misc.c (grub_normal_print_device_info): Do not probe for
39663 filesystem when dev->disk is unset.
39664 Do probe for filesystem even when dev->disk->has_partitions is set.
39665 In case a filesystem is found, always report it.
39666 In case it isn't, if dev->disk->has_partitions is set, report that
39667 a partition table was found instead of reporting that no filesystem
39668 could be identified.
39669
39670 2007-10-12 Robert Millan <rmh@aybabtu.com>
39671
39672 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
39673 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
39674
39675 * include/grub/types.h (grub_host_to_target16): New macro.
39676 (grub_host_to_target32): Likewise.
39677 (grub_host_to_target64): Likewise.
39678 (grub_target_to_host16): Likewise.
39679 (grub_target_to_host32): Likewise.
39680 (grub_target_to_host64): Likewise.
39681
39682 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39683 Renamed from to ...
39684 (GRUB_MOD_ALIGN): ...this. Update all users.
39685
39686 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
39687 grub_host_to_target32.
39688 Replace grub_be_to_cpu32 with grub_target_to_host32.
39689 (load_modules): Likewise.
39690 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
39691 Replace grub_be_to_cpu32 with grub_target_to_host32.
39692 Replace grub_cpu_to_be16 with grub_host_to_target16.
39693 Replace grub_cpu_to_be32 grub_host_to_target32.
39694
39695 2007-10-12 Robert Millan <rmh@aybabtu.com>
39696
39697 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
39698 * util/elf/grub-mkimage.c: ... here.
39699
39700 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
39701 `util/powerpc/ieee1275/grub-mkimage.c'.
39702
39703 2007-10-07 Robert Millan <rmh@aybabtu.com>
39704
39705 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
39706 and make it easier to figure out.
39707 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
39708 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
39709 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
39710 leave us with less than HEAP_MIN_SIZE total heap.
39711 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
39712
39713 2007-10-03 Robert Millan <rmh@aybabtu.com>
39714
39715 * include/grub/i386/io.h: New file.
39716 * commands/i386/pc/play.c (inb): Removed.
39717 (outb): Removed.
39718 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39719 with grub_outb().
39720 * term/i386/pc/serial.c (inb): Removed.
39721 (outb): Removed.
39722 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39723 with grub_outb().
39724 * term/i386/pc/vga.c (inb): Removed.
39725 (outb): Removed.
39726 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39727 with grub_outb().
39728
39729 2007-10-02 Robert Millan <rmh@aybabtu.com>
39730
39731 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
39732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39733 Reported by Marcin Kurek.
39734
39735 2007-09-07 Robert Millan <rmh@aybabtu.com>
39736
39737 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
39738 SmartFirmware version updates (as released by Sven Luther), and avoid
39739 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
39740 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
39741 known broken.
39742
39743 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39744
39745 From Hitoshi Ozeki:
39746 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
39747 when merging two regions.
39748
39749 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39750
39751 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
39752 * normal/completion.c (grub_normal_do_completion): Likewise.
39753 Reported by Hitoshi Ozeki.
39754
39755 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39756
39757 Do not use devices at boot in chainloading.
39758
39759 * loader/i386/pc/chainloader.c (boot_drive): New variable.
39760 (boot_part_addr): Likewise.
39761 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
39762 with BOOT_DRIVE and BOOT_PART_ADDR.
39763 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
39764 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
39765
39766 2007-08-29 Robert Millan <rmh@aybabtu.com>
39767
39768 Patch from Simon Peter <dn.tlp@gmx.net>:
39769 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
39770 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
39771 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
39772 util/i386/pc/grub-setup.c_DEPENDENCIES.
39773 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
39774 util/grub-probe.c_DEPENDENCIES.
39775 * conf/powerpc-ieee1275.rmk: Likewise.
39776
39777 2007-08-28 Robert Millan <rmh@aybabtu.com>
39778
39779 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
39780 to tell grub-mkdevicemap how to name devices.
39781 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
39782 feature).
39783
39784 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
39785 util/i386/get_disk_name.c.
39786 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
39787 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
39788 util/ieee1275/get_disk_name.c.
39789
39790 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
39791
39792 * DISTLIST: Add util/i386/get_disk_name.c and
39793 util/ieee1275/get_disk_name.c.
39794
39795 * util/grub-mkdevicemap.c: Replace device naming logic with
39796 grub_util_get_disk_name() calls.
39797
39798 2007-08-20 Robert Millan <rmh@aybabtu.com>
39799
39800 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
39801 (so that it works for both plural and singular quantities).
39802
39803 2007-08-05 Robert Millan <rmh@aybabtu.com>
39804
39805 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
39806 so that [xz] isn't taken into account when determining order.
39807
39808 2007-08-02 Marco Gerards <marco@gnu.org>
39809
39810 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
39811 `include/multiboot2.h', `include/grub/elfload.h',
39812 `include/multiboot.h', `include/grub/multiboot.h',
39813 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
39814 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
39815 `kern/elf.c', `loader/multiboot_loader.c',
39816 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
39817 `loader/i386/pc/multiboot2.c',
39818 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
39819 `util/i386/pc/grub-mkrescue.in'. Remove
39820 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
39821 `include/grub/i386/pc/util/biosdisk.h' and
39822 `include/grub/powerpc/ieee1275/multiboot.h'.
39823
39824 2007-08-02 Bean <bean123ch@gmail.com>
39825
39826 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
39827 (ntfs_mod_SOURCES): New variable.
39828 (ntfs_mod_CFLAGS): Likewise.
39829 (ntfs_mod_LDFLAGS): Likewise.
39830
39831 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
39832 (grub_probe_SOURCES): Likewise.
39833 (grub_emu_SOURCES): Likewise.
39834
39835 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39836 (grub_emu_SOURCES): Likewise.
39837
39838 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39839 (grub_emu_SOURCES): Likewise.
39840
39841 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
39842
39843 * fs/ntfs.c: New file.
39844
39845 2007-08-02 Bean <bean123ch@gmail.com>
39846
39847 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
39848
39849 * file.h (grub_file): Likewise.
39850
39851 * fshelp.h (grub_fshelp_read_file): Likewise.
39852
39853 * util/i386/pc/grub-setup.c (setup): Likewise.
39854 (save_first_sector): Likewise.
39855 (save_blocklists): Likewise.
39856
39857 * fs/affs.c (grub_affs_read_file): Likewise.
39858
39859 * fs/ext2.c (grub_ext2_read_file): Likewise.
39860
39861 * fs/fat.c (grub_fat_read_data): Likewise.
39862
39863 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
39864
39865 * fs/hfs.c (grub_hfs_read_file): Likewise.
39866
39867 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
39868
39869 * fs/jfs.c (grub_jfs_read_file): Likewise.
39870
39871 * fs/minix.c (grub_minix_read_file): Likewise.
39872
39873 * fs/sfs.c (grub_sfs_read_file): Likewise.
39874
39875 * fs/ufs.c (grub_ufs_read_file): Likewise.
39876
39877 * fs/xfs.c (grub_xfs_read_file): Likewise.
39878
39879 * command/blocklist.c (read_blocklist): Likewise.
39880 (print_blocklist): Likewise.
39881
39882 2007-08-02 Marco Gerards <marco@gnu.org>
39883
39884 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
39885 `util/hostfs.c'.
39886
39887 * disk/host.c: New file.
39888
39889 * util/hostfs.c: Likewise.
39890
39891 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
39892 return `GRUB_ERR_BAD_FS'.
39893 * fs/sfs.c (grub_sfs_mount): Likewise.
39894 * fs/xfs.c (grub_xfs_mount): Likewise.
39895
39896 * include/grub/disk.h (enum grub_disk_dev_id): Add
39897 `GRUB_DISK_DEVICE_HOST_ID'.
39898
39899 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
39900
39901 2007-07-24 Jerone Young <jerone@gmail.com>
39902
39903 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
39904 modules for compilation.
39905 * conf/powerpc-ieee1275.rmk: Likewise.
39906
39907 * include/multiboot.h: Move multiboot definitions to one file. Rename
39908 many definitions to not get grub specific.
39909 * include/multiboot2.h: Create header with multiboot 2 definitions.
39910 * include/grub/multiboot.h: Header for grub specific function
39911 prototypes and definitions.
39912 * include/grub/multiboot2.h: Likewise.
39913 * include/grub/multiboot_loader.h: Likewise.
39914 * include/grub/i386/pc/multiboot.h: Removed.
39915 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
39916
39917 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
39918 and 2 to allow for one multiboot and module commands.
39919 * loader/multiboot2.c: Add multiboot2 functionality.
39920 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
39921 and definition names.
39922 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
39923 2 functions.
39924 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
39925 ieee1275 specific multiboot2 code.
39926
39927 * kern/i386/pc/startup.S: Change headers and definition names for
39928 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
39929
39930 2007-07-22 Robert Millan <rmh@aybabtu.com>
39931
39932 * geninitheader.sh: Process file specified in first parameter rather
39933 than hardcoding grub_modules_init.lst.
39934 * geninit.sh: Likewise. Also, construct header name dynamically rather
39935 than hardcoding grub_modules_init.h.
39936
39937 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
39938 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
39939 grub_probe_init.[ch] and grub_setup_init.[ch].
39940
39941 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
39942 grub_modules_init.h with grub_emu_init.h.
39943 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
39944 grub_probe_init.[ch] files.
39945 * conf/i386-efi.rmk: Likewise.
39946 * conf/i386-pc.rmk: Likewise.
39947 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
39948 grub_setup_init.[ch] files.
39949
39950 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
39951 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
39952 to initialize modules rather than a list of hardcoded functions.
39953 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
39954 grub_init_all() to initialize modules rather than a list of hardcoded
39955 functions.
39956
39957 2007-07-22 Robert Millan <rmh@aybabtu.com>
39958
39959 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
39960 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
39961
39962 2007-07-22 Robert Millan <rmh@aybabtu.com>
39963
39964 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39965 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
39966 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
39967 flag when running on SmartFirmware.
39968 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
39969 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
39970 was set.
39971
39972 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
39973 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
39974 rather than decreasing it.
39975
39976 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
39977 there's not enough space to do it, fail in the same way as when it
39978 can't be done because there are no partitions.
39979
39980 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
39981 when nvsetenv failed.
39982
39983 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39984
39985 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
39986 because this rule is automatically generated.
39987 (grub-mkrescue): Removed for the same reason as above.
39988
39989 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39990
39991 Migrate to GNU General Public License Version 3.
39992
39993 * COPYING: Replaced with the plain text version of GPLv3.
39994
39995 * config.guess: Updated from gnulib.
39996 * config.sub: Likewise.
39997
39998 * geninit.sh: Output a GPLv3 copyright notice.
39999 * geninitheader.sh: Likewise.
40000 * genmodsrc.sh: Likewise.
40001 * gensymlist.sh.in: Likewise.
40002
40003 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40004 * boot/i386/pc/diskboot.S: Likewise.
40005 * boot/i386/pc/pxeboot.S: Likewise.
40006 * commands/blocklist.c: Likewise.
40007 * commands/boot.c: Likewise.
40008 * commands/cat.c: Likewise.
40009 * commands/cmp.c: Likewise.
40010 * commands/configfile.c: Likewise.
40011 * commands/echo.c: Likewise.
40012 * commands/help.c: Likewise.
40013 * commands/ls.c: Likewise.
40014 * commands/search.c: Likewise.
40015 * commands/terminal.c: Likewise.
40016 * commands/test.c: Likewise.
40017 * commands/videotest.c: Likewise.
40018 * commands/i386/cpuid.c: Likewise.
40019 * commands/i386/pc/halt.c: Likewise.
40020 * commands/i386/pc/play.c: Likewise.
40021 * commands/i386/pc/reboot.c: Likewise.
40022 * commands/i386/pc/vbeinfo.c: Likewise.
40023 * commands/i386/pc/vbetest.c: Likewise.
40024 * commands/ieee1275/halt.c: Likewise.
40025 * commands/ieee1275/reboot.c: Likewise.
40026 * commands/ieee1275/suspend.c: Likewise.
40027 * disk/loopback.c: Likewise.
40028 * disk/lvm.c: Likewise.
40029 * disk/raid.c: Likewise.
40030 * disk/efi/efidisk.c: Likewise.
40031 * disk/i386/pc/biosdisk.c: Likewise.
40032 * disk/ieee1275/ofdisk.c: Likewise.
40033 * font/manager.c: Likewise.
40034 * fs/affs.c: Likewise.
40035 * fs/ext2.c: Likewise.
40036 * fs/fat.c: Likewise.
40037 * fs/fshelp.c: Likewise.
40038 * fs/hfs.c: Likewise.
40039 * fs/hfsplus.c: Likewise.
40040 * fs/iso9660.c: Likewise.
40041 * fs/jfs.c: Likewise.
40042 * fs/minix.c: Likewise.
40043 * fs/sfs.c: Likewise.
40044 * fs/ufs.c: Likewise.
40045 * fs/xfs.c: Likewise.
40046 * hello/hello.c: Likewise.
40047 * include/grub/acorn_filecore.h: Likewise.
40048 * include/grub/arg.h: Likewise.
40049 * include/grub/bitmap.h: Likewise.
40050 * include/grub/boot.h: Likewise.
40051 * include/grub/cache.h: Likewise.
40052 * include/grub/device.h: Likewise.
40053 * include/grub/disk.h: Likewise.
40054 * include/grub/dl.h: Likewise.
40055 * include/grub/elfload.h: Likewise.
40056 * include/grub/env.h: Likewise.
40057 * include/grub/err.h: Likewise.
40058 * include/grub/file.h: Likewise.
40059 * include/grub/font.h: Likewise.
40060 * include/grub/fs.h: Likewise.
40061 * include/grub/fshelp.h: Likewise.
40062 * include/grub/gzio.h: Likewise.
40063 * include/grub/hfs.h: Likewise.
40064 * include/grub/kernel.h: Likewise.
40065 * include/grub/loader.h: Likewise.
40066 * include/grub/lvm.h: Likewise.
40067 * include/grub/misc.h: Likewise.
40068 * include/grub/mm.h: Likewise.
40069 * include/grub/net.h: Likewise.
40070 * include/grub/normal.h: Likewise.
40071 * include/grub/parser.h: Likewise.
40072 * include/grub/partition.h: Likewise.
40073 * include/grub/pc_partition.h: Likewise.
40074 * include/grub/raid.h: Likewise.
40075 * include/grub/rescue.h: Likewise.
40076 * include/grub/script.h: Likewise.
40077 * include/grub/setjmp.h: Likewise.
40078 * include/grub/symbol.h: Likewise.
40079 * include/grub/term.h: Likewise.
40080 * include/grub/terminfo.h: Likewise.
40081 * include/grub/tparm.h: Likewise.
40082 * include/grub/types.h: Likewise.
40083 * include/grub/video.h: Likewise.
40084 * include/grub/efi/api.h: Likewise.
40085 * include/grub/efi/chainloader.h: Likewise.
40086 * include/grub/efi/console.h: Likewise.
40087 * include/grub/efi/console_control.h: Likewise.
40088 * include/grub/efi/disk.h: Likewise.
40089 * include/grub/efi/efi.h: Likewise.
40090 * include/grub/efi/pe32.h: Likewise.
40091 * include/grub/efi/time.h: Likewise.
40092 * include/grub/i386/linux.h: Likewise.
40093 * include/grub/i386/setjmp.h: Likewise.
40094 * include/grub/i386/types.h: Likewise.
40095 * include/grub/i386/efi/kernel.h: Likewise.
40096 * include/grub/i386/efi/loader.h: Likewise.
40097 * include/grub/i386/efi/time.h: Likewise.
40098 * include/grub/i386/pc/biosdisk.h: Likewise.
40099 * include/grub/i386/pc/boot.h: Likewise.
40100 * include/grub/i386/pc/chainloader.h: Likewise.
40101 * include/grub/i386/pc/console.h: Likewise.
40102 * include/grub/i386/pc/init.h: Likewise.
40103 * include/grub/i386/pc/kernel.h: Likewise.
40104 * include/grub/i386/pc/loader.h: Likewise.
40105 * include/grub/i386/pc/memory.h: Likewise.
40106 * include/grub/i386/pc/multiboot.h: Likewise.
40107 * include/grub/i386/pc/serial.h: Likewise.
40108 * include/grub/i386/pc/time.h: Likewise.
40109 * include/grub/i386/pc/vbe.h: Likewise.
40110 * include/grub/i386/pc/vbeblit.h: Likewise.
40111 * include/grub/i386/pc/vbefill.h: Likewise.
40112 * include/grub/i386/pc/vbeutil.h: Likewise.
40113 * include/grub/i386/pc/vga.h: Likewise.
40114 * include/grub/ieee1275/ieee1275.h: Likewise.
40115 * include/grub/ieee1275/ofdisk.h: Likewise.
40116 * include/grub/powerpc/libgcc.h: Likewise.
40117 * include/grub/powerpc/setjmp.h: Likewise.
40118 * include/grub/powerpc/types.h: Likewise.
40119 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40120 * include/grub/powerpc/ieee1275/console.h: Likewise.
40121 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40122 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40123 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40124 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40125 * include/grub/powerpc/ieee1275/time.h: Likewise.
40126 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40127 * include/grub/sparc64/libgcc.h: Likewise.
40128 * include/grub/sparc64/setjmp.h: Likewise.
40129 * include/grub/sparc64/types.h: Likewise.
40130 * include/grub/sparc64/ieee1275/console.h: Likewise.
40131 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40132 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40133 * include/grub/sparc64/ieee1275/time.h: Likewise.
40134 * include/grub/util/biosdisk.h: Likewise.
40135 * include/grub/util/getroot.h: Likewise.
40136 * include/grub/util/lvm.h: Likewise.
40137 * include/grub/util/misc.h: Likewise.
40138 * include/grub/util/raid.h: Likewise.
40139 * include/grub/util/resolve.h: Likewise.
40140 * io/gzio.c: Likewise.
40141 * kern/device.c: Likewise.
40142 * kern/disk.c: Likewise.
40143 * kern/dl.c: Likewise.
40144 * kern/elf.c: Likewise.
40145 * kern/env.c: Likewise.
40146 * kern/err.c: Likewise.
40147 * kern/file.c: Likewise.
40148 * kern/fs.c: Likewise.
40149 * kern/loader.c: Likewise.
40150 * kern/main.c: Likewise.
40151 * kern/misc.c: Likewise.
40152 * kern/mm.c: Likewise.
40153 * kern/parser.c: Likewise.
40154 * kern/partition.c: Likewise.
40155 * kern/rescue.c: Likewise.
40156 * kern/term.c: Likewise.
40157 * kern/efi/efi.c: Likewise.
40158 * kern/efi/init.c: Likewise.
40159 * kern/efi/mm.c: Likewise.
40160 * kern/i386/dl.c: Likewise.
40161 * kern/i386/efi/init.c: Likewise.
40162 * kern/i386/efi/startup.S: Likewise.
40163 * kern/i386/pc/init.c: Likewise.
40164 * kern/i386/pc/lzo1x.S: Likewise.
40165 * kern/i386/pc/startup.S: Likewise.
40166 * kern/ieee1275/ieee1275.c: Likewise.
40167 * kern/powerpc/cache.S: Likewise.
40168 * kern/powerpc/dl.c: Likewise.
40169 * kern/powerpc/ieee1275/cmain.c: Likewise.
40170 * kern/powerpc/ieee1275/crt0.S: Likewise.
40171 * kern/powerpc/ieee1275/init.c: Likewise.
40172 * kern/powerpc/ieee1275/openfw.c: Likewise.
40173 * kern/sparc64/cache.S: Likewise.
40174 * kern/sparc64/dl.c: Likewise.
40175 * kern/sparc64/ieee1275/init.c: Likewise.
40176 * kern/sparc64/ieee1275/openfw.c: Likewise.
40177 * loader/efi/chainloader.c: Likewise.
40178 * loader/efi/chainloader_normal.c: Likewise.
40179 * loader/i386/efi/linux.c: Likewise.
40180 * loader/i386/efi/linux_normal.c: Likewise.
40181 * loader/i386/pc/chainloader.c: Likewise.
40182 * loader/i386/pc/chainloader_normal.c: Likewise.
40183 * loader/i386/pc/linux.c: Likewise.
40184 * loader/i386/pc/linux_normal.c: Likewise.
40185 * loader/i386/pc/multiboot.c: Likewise.
40186 * loader/i386/pc/multiboot_normal.c: Likewise.
40187 * loader/powerpc/ieee1275/linux.c: Likewise.
40188 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40189 * normal/arg.c: Likewise.
40190 * normal/cmdline.c: Likewise.
40191 * normal/command.c: Likewise.
40192 * normal/completion.c: Likewise.
40193 * normal/execute.c: Likewise.
40194 * normal/function.c: Likewise.
40195 * normal/lexer.c: Likewise.
40196 * normal/main.c: Likewise.
40197 * normal/menu.c: Likewise.
40198 * normal/menu_entry.c: Likewise.
40199 * normal/misc.c: Likewise.
40200 * normal/parser.y: Likewise.
40201 * normal/script.c: Likewise.
40202 * normal/i386/setjmp.S: Likewise.
40203 * normal/powerpc/setjmp.S: Likewise.
40204 * normal/sparc64/setjmp.S: Likewise.
40205 * partmap/acorn.c: Likewise.
40206 * partmap/amiga.c: Likewise.
40207 * partmap/apple.c: Likewise.
40208 * partmap/gpt.c: Likewise.
40209 * partmap/pc.c: Likewise.
40210 * partmap/sun.c: Likewise.
40211 * term/gfxterm.c: Likewise.
40212 * term/terminfo.c: Likewise.
40213 * term/efi/console.c: Likewise.
40214 * term/i386/pc/console.c: Likewise.
40215 * term/i386/pc/serial.c: Likewise.
40216 * term/i386/pc/vesafb.c: Likewise.
40217 * term/i386/pc/vga.c: Likewise.
40218 * term/ieee1275/ofconsole.c: Likewise.
40219 * util/biosdisk.c: Likewise.
40220 * util/console.c: Likewise.
40221 * util/genmoddep.c: Likewise.
40222 * util/getroot.c: Likewise.
40223 * util/grub-emu.c: Likewise.
40224 * util/grub-mkdevicemap.c: Likewise.
40225 * util/grub-probe.c: Likewise.
40226 * util/lvm.c: Likewise.
40227 * util/misc.c: Likewise.
40228 * util/raid.c: Likewise.
40229 * util/resolve.c: Likewise.
40230 * util/update-grub.in: Likewise.
40231 * util/update-grub_lib.in: Likewise.
40232 * util/grub.d/00_header.in: Likewise.
40233 * util/grub.d/10_hurd.in: Likewise.
40234 * util/grub.d/10_linux.in: Likewise.
40235 * util/i386/efi/grub-install.in: Likewise.
40236 * util/i386/efi/grub-mkimage.c: Likewise.
40237 * util/i386/pc/grub-install.in: Likewise.
40238 * util/i386/pc/grub-mkimage.c: Likewise.
40239 * util/i386/pc/grub-mkrescue.in: Likewise.
40240 * util/i386/pc/grub-setup.c: Likewise.
40241 * util/i386/pc/misc.c: Likewise.
40242 * util/powerpc/ieee1275/grub-install.in: Likewise.
40243 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40244 * util/powerpc/ieee1275/misc.c: Likewise.
40245 * video/bitmap.c: Likewise.
40246 * video/video.c: Likewise.
40247 * video/i386/pc/vbe.c: Likewise.
40248 * video/i386/pc/vbeblit.c: Likewise.
40249 * video/i386/pc/vbefill.c: Likewise.
40250 * video/i386/pc/vbeutil.c: Likewise.
40251 * video/readers/tga.c: Likewise.
40252
40253 2007-07-02 Robert Millan <rmh@aybabtu.com>
40254
40255 * conf/i386-efi.rmk: Replace obsolete reference to
40256 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40257 with util/getroot.c.
40258 * conf/powerpc-ieee1275.rmk: Likewise.
40259 * conf/sparc64-ieee1275.rmk: Likewise.
40260
40261 * util/grub-emu.c (main): Fix unchecked pointer handling.
40262
40263 2007-07-02 Robert Millan <rmh@aybabtu.com>
40264
40265 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40266 invocation to fail, in order to support partition-less media.
40267
40268 * util/i386/pc/grub-install.in: Likewise.
40269
40270 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40271 which fs or partmap modules are needed (akin to its sister scripts).
40272
40273 Also use grub-probe to get rid of unportable /proc/mounts check.
40274
40275 Print the same informational message that the other scripts do, before
40276 exiting.
40277
40278 2007-06-23 Robert Millan <rmh@aybabtu.com>
40279
40280 * util/update-grub_lib.in (font_path): New function. Determine whether
40281 a font file can be found and, if so, echo the GRUB path to it.
40282
40283 * util/update-grub.in: Handle multiple terminals depending on user
40284 input, platform availability and font file presence. Propagate
40285 variables of our findings to /etc/grub.d/ children.
40286
40287 * util/grub.d/00_header.in: Handle multiple terminals, based on
40288 environment setup by update-grub.
40289
40290 2007-06-23 Robert Millan <rmh@aybabtu.com>
40291
40292 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40293
40294 2007-06-21 Robert Millan <rmh@aybabtu.com>
40295
40296 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40297 indicate end of data section in kernel image.
40298 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40299 GRUB_KERNEL_MACHINE_DATA_END.
40300
40301 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40302 space for it.
40303 * kern/i386/efi/startup.S: Likewise.
40304
40305 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40306 during image generation. Implement --prefix option to override this
40307 patch.
40308 * util/i386/efi/grub-mkimage.c: Likewise.
40309
40310 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40311 code to make path relative to its root into a separate function.
40312
40313 * util/i386/pc/grub-install.in: Use newly provided
40314 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40315 pass the result to grub-install --prefix.
40316
40317 2007-06-13 Robert Millan <rmh@aybabtu.com>
40318
40319 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40320 DEFAULT_DEVICE_MAP.
40321 * util/grub-emu.c: Use above definitions from misc.h instead of
40322 defining them.
40323 * util/grub-mkdevicemap.c: Likewise.
40324 * util/i386/pc/grub-setup.c: Likewise.
40325 * util/grub-probe.c: Likewise.
40326 (probe): Abort with grub_util_error() when either
40327 grub_guess_root_device or grub_util_get_grub_dev fails.
40328
40329 2007-06-12 Robert Millan <rmh@aybabtu.com>
40330
40331 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40332 "pager" assignment.
40333 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40334 "pcdata".
40335 * util/grub-probe.c (probe): Likewise for "drive_name".
40336
40337 2007-06-11 Robert Millan <rmh@aybabtu.com>
40338
40339 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40340 not just the cdrom one.
40341
40342 2007-06-11 Robert Millan <rmh@aybabtu.com>
40343
40344 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40345 Add --pkglibdir=DIR option to override pkglibdir.
40346 Mention --image-type=TYPE in help output.
40347 Fix --grub-mkimage (it was a no-op).
40348 Abort gracefully when no parameter is given.
40349
40350 2007-06-11 Robert Millan <rmh@aybabtu.com>
40351
40352 * util/i386/pc/grub-mkrescue.in: New file.
40353 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40354 * Makefile.in: Handle bin_SCRIPTS.
40355
40356 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40357
40358 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40359 list of video modes.
40360
40361 2007-06-06 Robert Millan <rmh@aybabtu.com>
40362
40363 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40364 file doesn't exist, or if it is in a filesystem grub can't read.
40365
40366 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40367 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40368 header comment to fit in 80 columns when the variables are resolved.
40369
40370 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40371 could be identified by update-grub. Remove redundant check for
40372 unifont.pff existence (since convert_system_path_to_grub_path now
40373 handles that).
40374
40375 2007-06-04 Robert Millan <rmh@aybabtu.com>
40376
40377 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40378
40379 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40380
40381 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40382
40383 2007-06-04 Robert Millan <rmh@aybabtu.com>
40384
40385 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40386
40387 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40388 grub_apple_partition_map_fini.
40389
40390 * util/biosdisk.c
40391 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40392 to access >2 TiB disks).
40393
40394 Print disk->total_sectors with %llu instead of %lu, since this
40395 variable is always 64-bit (prevents wrong disk size from being displayed
40396 on either >2 TiB disk or big-endian CPU).
40397
40398 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40399 into a generic case that supports all (sane) partition maps.
40400
40401 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40402 breaks big-endian.
40403
40404 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40405 and grub_apple_partition_map_fini() after that.
40406
40407 2007-06-01 Robert Millan <rmh@aybabtu.com>
40408
40409 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40410
40411 * util/grub.d/00_header.in: Only enable gfxterm when
40412 convert_system_path_to_grub_path() succeeds.
40413
40414 2007-05-20 Robert Millan <rmh@aybabtu.com>
40415
40416 * util/update-grub_lib.in: New file.
40417 * DISTLIST: Add update-grub_lib.in.
40418 * conf/common.rmk: Generate update-grub_lib and install it in
40419 $(lib_DATA).
40420 * Makefile.in: Add install routine for $(lib_DATA).
40421
40422 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40423 function provided by update-grub_lib to support arbitrary paths of
40424 unifont.pff.
40425 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40426 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40427
40428 2007-05-19 Robert Millan <rmh@aybabtu.com>
40429
40430 * commands/i386/cpuid.c: New module.
40431 * DISTLIST: Add it.
40432 * conf/i386-efi.rmk: Enable cpuid.mod.
40433 * conf/i386-pc.rmk: Likewise.
40434
40435 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40436
40437 * kern/disk.c (grub_disk_read): Check return value of
40438 grub_realloc().
40439
40440 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40441
40442 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40443 arrays.
40444 * disk/raid.c (grub_raid_open): Likewise.
40445
40446 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40447
40448 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40449 stack instead of on the heap.
40450
40451 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40452 before doing a read on it.
40453
40454 * configure.ac: Only use -fno-stack-protector for the target
40455 environment.
40456
40457 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40458
40459 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40460 __attribute_ ((unused)) to mode_type argument.
40461
40462 * util/getroot.c (grub_guess_root_device): Fix #endif.
40463
40464 * kern/misc.c (memcmp): Fix prototype.
40465
40466 * include/grub/partition.h [GRUB_UTIL]
40467 (grub_gpt_partition_map_init): Add prototype.
40468 (grub_gpt_partition_map_fini): Likewise.
40469
40470 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40471 at the right place.
40472
40473 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40474 (grub_fat_read_data): Likewise.
40475 (grub_fat_find_dir): Likewise.
40476
40477 * font/manager.c (find_glyph): Make table a const.
40478 (grub_font_get_glyph): Remove bitmap from if statement.
40479
40480 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40481
40482 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40483 code, first search for device in /dev/mapper, then in /dev.
40484 (grub_util_get_grub_dev): New function.
40485 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40486 prototype.
40487 * util/grub-probe.c (probe): Remove check for RAID, call
40488 grub_util_get_grub_dev() instead of
40489 grub_util_biosdisk_get_grub_dev().
40490 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40491 grub_util_biosdisk_get_grub_dev().
40492 * util/i386/pc/grub-setup.c (main): Likewise.
40493
40494 2007-05-16 Robert Millan <rmh@aybabtu.com>
40495
40496 * DISTLIST: Update for the latest changes.
40497 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40498 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40499 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40500 grub/util/biosdisk.h.
40501 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40502 grub/util/biosdisk.h.
40503
40504 2007-05-16 Robert Millan <rmh@aybabtu.com>
40505
40506 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40507
40508 2007-05-16 Robert Millan <rmh@aybabtu.com>
40509
40510 * util/i386/efi/grub-install.in: New.
40511 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40512 newly added grub-install.
40513 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40514 include.
40515 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40516 grub/util/biosdisk.h.
40517 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40518 grub/util/biosdisk.h.
40519
40520 2007-05-16 Robert Millan <rmh@aybabtu.com>
40521
40522 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40523 * include/grub/util/biosdisk.h: ... here.
40524 * util/i386/pc/biosdisk.c: Moved to ...
40525 * util/biosdisk.c: ... here.
40526 * util/i386/pc/getroot.c: Moved to ...
40527 * util/getroot.c: ... here.
40528 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40529 * util/grub-mkdevicemap.c: ... here.
40530 * util/i386/pc/grub-probe.c: Moved to ...
40531 * util/grub-probe.c: ... here.
40532
40533 2007-05-15 Robert Millan <rmh@aybabtu.com>
40534
40535 * util/update-grub.in: Remove duplicated line in grub.cfg header
40536 message.
40537
40538 2007-05-13 Robert Millan <rmh@aybabtu.com>
40539
40540 * util/update-grub.in: Fix a few assumptions about the devices holding
40541 /, /boot and /boot/grub being the same.
40542 * util/grub.d/00_header.in: Likewise.
40543 * util/grub.d/10_hurd.in: Likewise.
40544 * util/grub.d/10_linux.in: Likewise.
40545
40546 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40547 patterns. Use that to define the `.old' suffix as older than `'.
40548
40549 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40550
40551 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40552 the grub.cfg header message.
40553
40554 2007-05-11 Robert Millan <rmh@aybabtu.com>
40555
40556 * util/update-grub.in: Create device.map if it doesn't already exist,
40557 before attempting to run grub-probe.
40558 Check for grub-probe and grub-mkdevicemap with the same code
40559 grub-install is using.
40560 Remove test mode.
40561
40562 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40563
40564 * Makefile.in: Add the datarootdir autoconf variable.
40565
40566 2007-05-09 Robert Millan <rmh@aybabtu.com>
40567
40568 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40569 fail gracefully if dev->disk->partition == NULL.
40570
40571 2007-05-07 Robert Millan <rmh@aybabtu.com>
40572
40573 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40574 determine partition map module.
40575 * util/i386/pc/grub-install.in: Use this feature to decide which
40576 partition module to load, instead of hardcoding pc and gpt.
40577
40578 2007-05-07 Robert Millan <rmh@aybabtu.com>
40579
40580 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40581 source directory differs from build directory.
40582
40583 2007-05-05 Robert Millan <rmh@aybabtu.com>
40584
40585 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40586 initialisation.
40587
40588 2007-05-05 Robert Millan <rmh@aybabtu.com>
40589
40590 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40591
40592 2007-05-05 Robert Millan <rmh@aybabtu.com>
40593
40594 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40595 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40596
40597 2007-05-05 Robert Millan <rmh@aybabtu.com>
40598
40599 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40600 (grub_probe_SOURCES): Likewise.
40601 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40602 GPT and initialize dos_part and bsd_part accordingly.
40603 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40604 install_bsd_part.
40605 (main): Activate gpt module for use during partition identification,
40606 and deactivate it afterwards.
40607 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40608 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40609 partition identification, and deactivate it afterwards.
40610
40611 2007-05-05 Robert Millan <rmh@aybabtu.com>
40612
40613 * term/i386/pc/console.c (grub_console_fini): Call
40614 grub_term_set_current() before grub_term_unregister().
40615
40616 2007-05-04 Robert Millan <rmh@aybabtu.com>
40617
40618 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40619 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40620 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40621 and update-grub_DATA.
40622 * conf/common.rmk: Build and install update-grub components.
40623 * conf/common.mk: Regenerate.
40624 * util/update-grub.in: New. Core of update-grub.
40625 * util/grub.d/00_header.in: New. Generates grub.cfg header.
40626 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
40627 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
40628 * util/grub.d/README: New. Document grub.d directory layout.
40629
40630 2007-05-01 Robert Millan <rmh@aybabtu.com>
40631
40632 * util/grub-emu.c: Move initialization functions
40633 grub_util_biosdisk_init() and grub_init_all() before
40634 grub_util_biosdisk_get_grub_dev(), which relies on them.
40635
40636 2007-04-19 Robert Millan <rmh@aybabtu.com>
40637
40638 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
40639 it is used later.
40640
40641 2007-04-18 Jerone Young <jerone@gmail.com>
40642
40643 * kernel/elf.c: Add missing parenthesis for conditional statement
40644 stanza.
40645
40646 2007-04-10 Jerone Young <jerone@gmail.com>
40647
40648 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
40649 continue on and look for device node with real device name.
40650
40651 2007-04-10 Jerone Young <jerone@gmail.com>
40652
40653 * configure.ac: Add argument for autoconf to use transformation
40654 ability.
40655 * Makefile.in: Add autoconf package transformation code.
40656 * util/i386/pc/grub-install.in: Likewise.
40657 * util/powerpc/ieee1275/grub-install.in: Likewise.
40658
40659 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40660
40661 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
40662 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
40663 (EXT2_REVISION): Likewise.
40664 (EXT2_INODE_SIZE): Likewise.
40665 (struct grub_ext2_block_group): Added a missing member
40666 "used_dirs".
40667 (grub_ext2_read_inode): Divide by the inode size in a superblock
40668 instead of 128 to obtain INODES_PER_BLOCK.
40669 Use the macro EXT2_INODE_SIZE instead of directly using
40670 SBLOCK->INODE_SIZE.
40671
40672 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40673
40674 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
40675 superblock instead of the structure size to compute an
40676 offset. This fixes the problem that GRUB could not read a
40677 filesystem when inode size is different from 128-byte.
40678
40679 2007-03-05 Marco Gerards <marco@gnu.org>
40680
40681 * normal/main.c (read_config_file): When "menu" is not set, create
40682 an initial context.
40683
40684 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40685
40686 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
40687 (HEAP_LIMIT): New macro.
40688 (grub_claim_heap): Claim memory up to `heaplimit'.
40689
40690 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40691
40692 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
40693 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
40694 (_start): Likewise.
40695 (grub_arch_modules_addr): Return address after `_end'.
40696 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
40697 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
40698 (add_segments): Calculate `_end' from phdr size and location.
40699 (ALIGN_UP): Moved to ...
40700 * include/grub/misc.h: here.
40701 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40702 New macro.
40703 (GRUB_IEEE1275_MODULE_BASE): Removed.
40704
40705 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40706
40707 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
40708 loop boundary.
40709
40710 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40711
40712 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
40713 All users updated.
40714 (grub_elf64_load_hook_t): Likewise.
40715 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
40716 debug output.
40717
40718 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40719
40720 * kern/mm.c: Update copyright.
40721 (grub_mm_debug): Correct syntax error.
40722 (grub_mm_dump_free): New function.
40723 (grub_debug_free): Call `grub_free'.
40724 * include/grub/mm.h: Update copyright.
40725 (grub_mm_dump_free): Add declaration.
40726
40727 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40728
40729 * include/grub/ieee1275/ieee1275.h: Update copyright.
40730 * kern/powerpc/ieee1275/init.c: Likewise.
40731 * kern/powerpc/ieee1275/openfw.c: Likewise.
40732
40733 * loader/powerpc/ieee1275/linux.c: Likewise.
40734 * include/grub/elfload.h: Likewise.
40735 * kern/elf.c: Likewise.
40736 (grub_elf32_load): Pass `base' and `size' parameters. Update all
40737 callers.
40738 (grub_elf64_load): Likewise.
40739 (grub_elf32_load_segment): Move to a nested function.
40740 (grub_elf64_load_segment): Likewise.
40741
40742 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40743
40744 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
40745 prototype.
40746 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
40747 (grub_heap_len): Likewise.
40748 (HEAP_SIZE): New macro.
40749 (grub_claim_heap): New function.
40750 (grub_machine_init): Don't claim heap directly. Call
40751 `grub_claim_heap'.
40752 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
40753 (grub_available_iterate): New function.
40754
40755 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
40756
40757 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
40758 * configure.ac: Use it for testing the HOST and TARGET compilers.
40759
40760 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
40761
40762 * Makefile.in (enable_grub_emu): New variable.
40763 * configure.ac (--enable-grub-emu): New option.
40764 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
40765 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
40766 * conf/i386-pc.rmk: Likewise.
40767 * conf/powerpc-ieee1275.rmk: Likewise.
40768 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
40769
40770 2006-12-12 Marco Gerards <marco@gnu.org>
40771
40772 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
40773
40774 * kern/env.c (grub_env_unset): Don't free the member `value' when
40775 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
40776 pointer.
40777
40778 * normal/main.c (current_menu): Removed.
40779 (free_menu): Unset the `menu' environment variable.
40780 (grub_normal_menu_addentry): Make use of the environment variable
40781 `menu', instead of using the global `current_menu'. Allocate
40782 memory for the sourcecode of this entry.
40783 (read_config_file): New argument `nested', changed all callers.
40784 Only in the case of a new context, initialize a new menu. Set the
40785 `menu' environment variable.
40786 (grub_normal_execute): Don't set and unset the environment
40787 variable `menu' here anymore. Only free the menu when leaving the
40788 context.
40789
40790 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
40791 leak.
40792
40793 2006-12-11 Marco Gerards <marco@gnu.org>
40794
40795 * normal/menu_entry.c (run): Fix off by one bug so the last line
40796 is executed. Move the loader check to outside the loop.
40797
40798 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
40799
40800 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
40801
40802 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
40803
40804 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
40805 the number of sectors. Reported by Andrey Shuvikov
40806 <mr_hyro@yahoo.com>.
40807
40808 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
40809
40810 * kern/disk.c (grub_disk_read): When there is a read error, always
40811 try to read only the necessary data.
40812
40813 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
40814 disk/raid.c.
40815 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
40816 prototype.
40817 [GRUB_UTIL] (grub_raid_fini): Likewise.
40818 [GRUB_UTIL] (grub_lvm_init): Likewise.
40819 [GRUB_UTIL] (grub_lvm_fini): Likewise.
40820 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
40821 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
40822 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
40823 and grub_raid_fini().
40824
40825 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40826
40827 * include/grub/types.h (__unused): Rename to UNUSED.
40828 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
40829 (grub_elf64_size): Likewise.
40830
40831 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40832
40833 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
40834 grub_error_push and grub_error_pop in the error-handling path.
40835 (grub_elf32_load_segment): Only call grub_file_read with non-zero
40836 length.
40837
40838 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40839
40840 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
40841 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40843 (kernel_elf_SOURCES): Likewise.
40844 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
40845 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
40846 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40847 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40848 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
40849 (elf_mod_SOURCES): New variable.
40850 (elf_mod_CFLAGS): Likewise.
40851 (elf_mod_LDFLAGS): Likewise.
40852 * include/grub/types.h (__unused): New macro.
40853 * include/grub/elfload.h: New file.
40854 * kern/elf.c: Likewise.
40855 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
40856 (ELF32_LOADMASK): New macro.
40857 (ELF64_LOADMASK): Likewise.
40858 (vmlinux): Removed.
40859 (grub_linux_load32): New function.
40860 (grub_linux_load64): Likewise.
40861 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
40862 Use grub_elf_t instead of grub_file_t.
40863
40864 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
40865
40866 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
40867 `catch_result' to struct set_color_args.
40868
40869 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40870
40871 * normal/menu.c: Include grub/script.h.
40872 * normal/menu_entry.c: Likewise.
40873 * include/grub/normal.h: Do not include grub/script.h.
40874
40875 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40876
40877 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
40878
40879 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40880
40881 * kern/disk.c (grub_disk_open): Print debug messages when opening a
40882 disk.
40883 (grub_disk_close): Print debug messages when closing a disk.
40884 (grub_disk_read): Print debug messages when disk read fails.
40885 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
40886 filesystem type.
40887 * kern/partition.c: Include misc.h.
40888 (grub_partition_iterate): Print debug messages when detecting
40889 partition type.
40890
40891 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40892
40893 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
40894 is negative.
40895 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
40896
40897 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
40898
40899 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40900 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
40901
40902 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
40903
40904 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
40905 instead of sizeof(lv). Patch by Michael Guntsche.
40906
40907 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
40908
40909 * disk/lvm.c: Rename VGS to VG_LIST.
40910 (grub_lvm_iterate): Change VGS->LV to VG-LV.
40911 (grub_lvm_open): Likewise.
40912 Thanks to Michael Guntsche for finding this bug.
40913
40914 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40915
40916 * configure.ac (AC_INIT): Bumped to 1.95.
40917
40918 2006-10-14 Robert Millan <rmh@aybabtu.com>
40919
40920 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
40921 with "/dev/.static/dev/md".
40922
40923 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40924
40925 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
40926 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
40927 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
40928 DRIVE_NAME are always freed.
40929
40930 * util/i386/pc/biosdisk.c (make_device_name): Add one into
40931 DOS_PART, as a DOS partition is counted from one instead of zero
40932 now. Reported by Robert Millan.
40933
40934 2006-10-14 Robert Millan <rmh@aybabtu.com>
40935
40936 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
40937 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
40938 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
40939 string returned by grub_guess_root_device.
40940 * util/i386/pc/grub-setup.c: Likewise.
40941 * util/i386/pc/grub-probefs.c: Likewise.
40942
40943 * util/i386/pc/grub-probefs.c: Rename to ...
40944 * util/i386/pc/grub-probe.c: ... this.
40945 * DISTLIST: Remove grub-probefs, add grub-probe.
40946 * conf/i386-efi.rmk: Likewise.
40947 * conf/i386-pc.rmk: Likewise.
40948 * util/i386/pc/grub-install.in: Likewise.
40949
40950 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
40951 choose which information we want to print.
40952
40953 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40954
40955 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
40956 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
40957 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
40958 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
40959 video/readers/tga.c and video/i386/pc/vbeutil.c.
40960
40961 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
40962
40963 Added support for RAID and LVM.
40964
40965 * disk/lvm.c: New file.
40966 * disk/raid.c: Likewise.
40967 * include/grub/lvm.h: Likewise.
40968 * include/grub/raid.h: Likewise.
40969 * include/grub/util/lvm.h: Likewise.
40970 * include/grub/util/raid.h: Likewise.
40971 * util/lvm.c: Likewise.
40972 * util/raid.c: Likewise.
40973
40974 * include/grub/disk.h (grub_disk_dev_id): Add
40975 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
40976 (grub_disk_get_size): New prototype.
40977 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
40978 returns a partition.
40979 (grub_disk_get_size): New function.
40980
40981 * kern/i386/pc/init.c (make_install_device): Copy the prefix
40982 verbatim if grub_install_dos_part is -2.
40983
40984 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
40985 and LVM devices.
40986
40987 * util/i386/pc/grub-setup.c (setup): New argument
40988 MUST_EMBED. Force embedding of GRUB when the argument is
40989 true. Close FILE before returning.
40990 (main): Add support for RAID and LVM.
40991
40992 * conf/common.rmk: Add RAID and LVM modules.
40993 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
40994 util/lvm.c.
40995 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
40996
40997 * kern/misc.c (grub_strstr): New function.
40998 * include/grub/misc.h (grub_strstr): New prototype.
40999
41000 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41001
41002 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41003
41004 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41005
41006 * kern/misc.c (grub_strtoull): Guess the base only if not
41007 specified.
41008
41009 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41010
41011 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41012 PowerMac support.
41013
41014 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41015
41016 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41017
41018 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41019 Remove `flags' argument. All callers changed.
41020 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41021 (IEEE1275_IHANDLE_INVALID): New variable.
41022 (IEEE1275_CELL_INVALID): New variable.
41023 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41024 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41025 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41026 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41027 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41028 codes from Open Firmware. All callers updated.
41029 (grub_ieee1275_next_property): Directly return Open Firmware return
41030 code.
41031 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41032 Standardize error checking from `grub_ieee1275_get_property'.
41033 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41034 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41035
41036 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41037
41038 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41039 `instance_to_package_args' to `instance_to_path_args'.
41040
41041 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41042 `grub_ieee1275_chosen'.
41043
41044 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41045 `grub_ieee1275_interpret'.
41046
41047 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41048
41049 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41050
41051 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41052
41053 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41054 (__cmpdi): Likewise.
41055
41056 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41057 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41058 `grub_ssize_t'.
41059
41060 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41061
41062 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41063 to type `grub_ssize_t'.
41064 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41065
41066 2006-09-22 Marco Gerards <marco@gnu.org>
41067
41068 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41069 newlines.
41070
41071 2006-09-22 Marco Gerards <marco@gnu.org>
41072
41073 * commands/echo.c: New file.
41074
41075 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41076
41077 * conf/common.rmk (echo_mod_SOURCES): New variable.
41078 (echo_mod_CFLAGS): Likewise.
41079 (echo_mod_LDFLAGS): Likewise.
41080
41081 2006-09-22 Marco Gerards <marco@gnu.org>
41082
41083 * normal/main.c (get_line): Malloc memory instead of using
41084 preallocated memory. Removed the arguments `cmdline' and
41085 `max_len'. Updated all callers.
41086
41087 2006-09-22 Marco Gerards <marco@gnu.org>
41088
41089 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41090 (normal_mod_DEPENDENCIES): Likewise.
41091
41092 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41093 (normal_mod_DEPENDENCIES): Likewise.
41094
41095 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41096
41097 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41098
41099 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41100 programs.
41101 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41102 (normal_mod_DEPENDENCIES): Likewise.
41103 * conf/i386-pc.mk: Regenerate.
41104 * conf/i386-efi.mk: Likewise
41105 * conf/common.mk: Likewise.
41106 * conf/powerpc-ieee1275.mk: Likewise.
41107 * conf/sparc64-ieee1275.mk: Likewise.
41108
41109 2006-09-22 Robert Millan <rmh@aybabtu.com>
41110
41111 Sync with i386 version.
41112 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41113 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41114
41115 2006-09-21 Robert Millan <rmh@aybabtu.com>
41116
41117 Import from GRUB Legacy (lib/device.c):
41118 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41119 (init_device_map) [__linux__]: Add support for I2O devices.
41120
41121 2006-09-14 Marco Gerards <marco@gnu.org>
41122
41123 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41124 `-melf_i386'.
41125
41126 2006-09-14 Robert Millan <rmh@aybabtu.com>
41127
41128 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41129 /boot/grub/*.lst.
41130
41131 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41132
41133 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41134 before adding it to device.map.
41135
41136 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41137
41138 * genmk.rb: Let GCC generate dependencies the first time it
41139 compiles a file; using the -MD option.
41140 * conf/common.mk: Regenerate.
41141 * conf/i386-pc.mk: Likewise.
41142 * conf/i386-efi.mk: Likewise.
41143 * conf/powerpc-ieee1275.mk: Likewise.
41144 * conf/sparc64-ieee1275.mk: Likewise.
41145
41146 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41147
41148 Move the prototypes of grub_setjmp and grub_longjmp to
41149 cpu/setjmp.h, so that each architecture may specify different
41150 attributes.
41151
41152 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41153 (grub_longjmp): Likewise.
41154 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41155 (grub_longjmp): Likewise.
41156 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41157 (grub_longjmp): Likewise.
41158
41159 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41160 [!GRUB_UTIL] (grub_longjmp): Removed.
41161
41162 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41163
41164 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41165 "color!" method does not return any value.
41166
41167 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41168
41169 * include/grub/bitmap.h: New file.
41170
41171 * include/grub/i386/pc/vbeutil.h: Likewise.
41172
41173 * video/bitmap.c: Likewise.
41174
41175 * video/readers/tga.c: Likewise.
41176
41177 * video/i386/pc/vbeutil.c: Likewise.
41178
41179 * commands/videotest.c: Code cleanup and updated to reflect to new
41180 video API.
41181
41182 * term/gfxterm.c: Likewise.
41183
41184 * video/video.c: Likewise.
41185
41186 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41187 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41188 (bitmap_mod_SOURCES): New entry.
41189 (bitmap_mod_CFLAGS): Likewise.
41190 (bitmap_mod_LDFLAGS): Likewise.
41191 (tga_mod_SOURCES): Likewise.
41192 (tga_mod_CFLAGS): Likewise.
41193 (tga_mod_LDFLAGS): Likewise.
41194
41195 * include/grub/video.h (grub_video_blit_operators): New enum type.
41196 (grub_video_render_target): Changed as forward declaration and moved
41197 actual definition to be video driver specific.
41198 (grub_video_adapter.blit_bitmap): Added blitting operator.
41199 (grub_video_adapter.blit_render_target): Likewise.
41200 (grub_video_blit_bitmap): Likewise.
41201 (grub_video_blit_render_target): Likewise.
41202
41203 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41204 driver specific render target definition.
41205 (grub_video_vbe_map_rgba): Added driver internal helper.
41206 (grub_video_vbe_unmap_color): Updated to use
41207 grub_video_i386_vbeblit_info.
41208 (grub_video_vbe_get_video_ptr): Likewise.
41209
41210 * include/grub/i386/pc/vbeblit.h
41211 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41212 grub_video_i386_vbeblit_info.
41213 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41214 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41215 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41216 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41217 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41218 (grub_video_i386_vbeblit_index_index): Likewise.
41219 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41220 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41221 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41222 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41223 operator.
41224 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41225 operator.
41226
41227 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41228 include/grub/i386/pc/vbeblit.h.
41229
41230 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41231 Updated to use grub_video_i386_vbeblit_info.
41232 (grub_video_i386_vbefill_R8G8B8): Likewise.
41233 (grub_video_i386_vbefill_index): Likewise.
41234 (grub_video_i386_vbefill): Added generic filler.
41235
41236 * video/i386/pc/vbefill.c: Updated to reflect changes on
41237 include/grub/i386/pc/vbefill.h.
41238
41239 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41240 grub_video_i386_vbeblit_info.
41241 (grub_video_vbe_unmap_color): Likewise.
41242 (grub_video_vbe_blit_glyph): Likewise.
41243 (grub_video_vbe_scroll): Likewise.
41244 (grub_video_vbe_draw_pixel): Removed function.
41245 (grub_video_vbe_get_pixel): Likewise.
41246 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41247 updated code to use it.
41248 (common_blitter): Added common blitter for render target and bitmap.
41249 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41250 (grub_video_vbe_blit_render_target): Likewise.
41251
41252 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41253
41254 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41255 is in text mode if there is no console control protocol instance
41256 available.
41257
41258 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41259
41260 * include/grub/video.h: Code cleanup.
41261
41262 * include/grub/i386/pc/vbe.h: Likewise.
41263
41264 * video/i386/pc/vbe.c: Likewise.
41265
41266 * video/i386/pc/vbeblit.c: Likewise.
41267
41268 * video/i386/pc/vbefill.c: Likewise.
41269
41270 * video/video.c: Likewise. Also added more comments.
41271
41272 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41273
41274 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41275 (struct grub_biosdisk_dap): Likewise.
41276
41277 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41278 linkage settings for all functions.
41279
41280 2006-07-12 Marco Gerards <marco@gnu.org>
41281
41282 * configure.ac (--enable-mm-debug): Fix typo.
41283
41284 * genkernsyms.sh.in: Use proper quoting for `CC'.
41285
41286 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41287
41288 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41289 (normal_mod_ASFLAGS): Remove "-m32".
41290
41291 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41292
41293 * util/misc.c: Include config.h.
41294 [!HAVE_MEMALIGN]: Do not include malloc.h.
41295 (grub_memalign): Use posix_memalign, if present. Then, use
41296 memalign, if present. Otherwise, emit an error.
41297
41298 * util/grub-emu.c: Do not include malloc.h.
41299
41300 * include/grub/util/misc.h: Include unistd.h. This is required for
41301 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41302 D. Eades III <hde@foobar-qux.org>.
41303
41304 * configure.ac (AC_GNU_SOURCE): Added.
41305 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41306 type.
41307
41308 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41309
41310 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41311 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41312
41313 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41314
41315 * include/grub/types.h (grub_host_addr_t): Rename to
41316 grub_target_addr_t.
41317 (grub_host_off_t): Rename to grub_target_off_t.
41318 (grub_host_size_t): Rename to grub_target_size_t.
41319 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41320 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41321
41322 * include/grub/kernel.h (struct grub_module_header): Change type
41323 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41324 (grub_module_info): Likewise.
41325
41326 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41327
41328 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41329 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41330 Velazquez <jesus.velazquez@gmail.com>.
41331
41332 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41333
41334 Count partitions from 1 instead of 0 in the string representation
41335 of partitions. Still use 0-based internally.
41336
41337 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41338 (sun_partition_map_iterate): Use grub_partition_t instead of
41339 struct grub_partition *. Cast DESC->START_CYLINDER to
41340 grub_uint64_t after converting the endian.
41341 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41342 (sun_partition_map_get_name): Add 1 to P->INDEX.
41343
41344 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41345 PCDATA->DOS_PART.
41346 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41347
41348 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41349 zero instead of one.
41350 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41351 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41352
41353 * partmap/apple.c (apple_partition_map_iterate): Change the type
41354 of POS to unsigned.
41355 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41356 (apple_partition_map_get_name): Add 1 into P->INDEX.
41357
41358 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41359 of POS to unsigned.
41360 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41361 calculate the offset of a partition.
41362 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41363 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41364
41365 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41366 SECTOR to grub_disk_addr_t.
41367 (acorn_partition_map_iterate): Likewise.
41368 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41369 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41370 top.
41371 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41372
41373 * kern/i386/pc/init.c (make_install_device): Add 1 into
41374 GRUB_INSTALL_DOS_PART.
41375
41376 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41377 conditional.
41378
41379 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41380
41381 Clean up the code to support 64-bit addressing in disks and
41382 files. This change is not enough for filesystems yet.
41383
41384 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41385 type of "start" to grub_uint64_t.
41386 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41387 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41388 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41389 convert addresses.
41390
41391 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41392 to grub_disk_addr_t.
41393
41394 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41395 string.
41396
41397 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41398
41399 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41400 to char *.
41401
41402 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41403
41404 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41405
41406 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41407
41408 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41409 to grub_off_t, to detect an error from grub_file_seek.
41410 (grub_multiboot_load_elf32): Likewise.
41411
41412 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41413 maximum unsigned long value when an overflow is detected.
41414 (grub_strtoull): New function.
41415 (grub_divmod64): Likewise.
41416 (grub_lltoa): use grub_divmod64.
41417
41418 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41419 grub_disk_addr_t.
41420 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41421 the pointer to next character. Use grub_strtoull instead of
41422 grub_strtoul.
41423 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41424 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41425 respectively.
41426
41427 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41428 return value is signed.
41429 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41430 test if OFFSET is less than zero, as OFFSET is unsigned now.
41431
41432 * kern/disk.c (struct grub_disk_cache): Change the type of
41433 "sector" to grub_disk_addr_t.
41434 (grub_disk_cache_get_index): Change the type of SECTOR to
41435 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41436 unsigned after shifting.
41437 (grub_disk_cache_invalidate): Change the type of SECTOR to
41438 grub_disk_addr_t.
41439 (grub_disk_cache_unlock): Likewise.
41440 (grub_disk_cache_store): Likewise.
41441 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41442 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41443 grub_disk_addr_t and grub_uint64_t, respectively.
41444 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41445 body, as the value of OFFSET is tweaked by
41446 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41447 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41448 respectively.
41449 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41450 body, as the value of OFFSET is tweaked by
41451 grub_disk_check_range. Change the types of LEN and N to
41452 grub_size_t.
41453
41454 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41455 and "saved_offset" to grub_off_t.
41456 (test_header): Cast BUF to char *.
41457 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41458 to char *.
41459 (grub_gzio_read): Change the types of OFFSET and SIZE to
41460 grub_off_t and grub_size_t, respectively.
41461
41462 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41463 Removed.
41464 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41465 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41466 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41467 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41468 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41469
41470 * include/grub/types.h (grub_off_t): Unconditionally set to
41471 grub_uint64_t.
41472 (grub_disk_addr_t): Changed to grub_uint64_t.
41473
41474 * include/grub/partition.h (struct grub_partition): Change the
41475 types of "start", "len" and "offset" to grub_disk_addr_t,
41476 grub_uint64_t and grub_disk_addr_t, respectively.
41477 (grub_partition_get_start): Return grub_disk_addr_t.
41478 (grub_partition_get_len): Return grub_uint64_t.
41479
41480 * include/grub/misc.h (grub_strtoull): New prototype.
41481 (grub_divmod64): Likewise.
41482
41483 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41484 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41485 grub_off_t, respectively.
41486 All callers and references changed.
41487
41488 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41489 grub_size_t in "read".
41490 All callers and references changed.
41491
41492 * include/grub/file.h (struct grub_file): Change the types of
41493 "offset" and "size" to grub_off_t and grub_off_t,
41494 respectively. Change the type of SECTOR to grub_disk_addr_t in
41495 "read_hook".
41496 (grub_file_read): Change the type of LEN to grub_size_t.
41497 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41498 grub_off_t.
41499 (grub_file_size): Return grub_off_t.
41500 (grub_file_tell): Likewise.
41501 All callers and references changed.
41502
41503 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41504 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41505 "write".
41506 (struct grub_disk): Change the type of "total_sectors" to
41507 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41508 "read_hook".
41509 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41510 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41511 (grub_disk_write): Likewise.
41512 All callers and references changed.
41513
41514 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41515 char * for grub_strncmp to silence gcc.
41516 (grub_iso9660_mount): Likewise.
41517 (grub_iso9660_mount): Likewise.
41518 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41519 return statement.
41520 (grub_iso9660_iterate_dir): Likewise.
41521 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41522
41523 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41524 LEN to grub_disk_addr_t and grub_size_t, respectively.
41525
41526 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41527
41528 * fs/jfs.c (grub_jfs_read_file): Likewise.
41529
41530 * fs/minix.c (grub_jfs_read_file): Likewise.
41531
41532 * fs/sfs.c (grub_jfs_read_file): Likewise.
41533
41534 * fs/ufs.c (grub_jfs_read_file): Likewise.
41535
41536 * fs/xfs.c (grub_jfs_read_file): Likewise.
41537
41538 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41539 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41540 respectively.
41541
41542 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41543 BLKNR to -1 instead of returning GRUB_ERRNO.
41544 (grub_ext2_read_file): Change the types of SECTOR and
41545 LEN to grub_disk_addr_t and grub_size_t, respectively.
41546
41547 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41548 LEN to grub_disk_addr_t and grub_size_t, respectively.
41549
41550 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41551 grub_file_read.
41552
41553 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41554 string. Do not cast SECTOR explicitly.
41555
41556 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41557 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41558 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41559 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41560 over 2TB and LBA mode is not supported, raise an error.
41561 (get_safe_sectors): New function.
41562 (grub_biosdisk_read): Use get_safe_sectors.
41563 (grub_biosdisk_write): Likewise.
41564
41565 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41566 (grub_efidisk_write): Likewise.
41567
41568 * disk/loopback.c (delete_loopback): Cosmetic changes.
41569 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41570 correctly.
41571 (grub_loopback_open): Likewise.
41572 (grub_loopback_read): Likewise. Also, change the type of POS to
41573 grub_off_t, and fix the usage of grub_memset.
41574
41575 * commands/i386/pc/play.c: Include grub/machine/time.h.
41576
41577 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41578 print FILE->SIZE.
41579
41580 * commands/configfile.c: Include grub/env.h.
41581
41582 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41583 GRUB_ERRNO directly instead. Change the type of POS to
41584 grub_off_t. Follow the coding standard.
41585
41586 * commands/blocklist.c: Include grub/partition.h.
41587 (grub_cmd_blocklist): Return an error if the underlying device is
41588 not a disk. Take the starting sector of a partition into account,
41589 if a partition is used.
41590
41591 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41592 a length field.
41593 (lba_mode): Support 64-bit addresses.
41594 (chs_mode): Likewise.
41595 (copy_buffer): Adapted to the new offsets of a length field and a
41596 segment field.
41597 (blocklist_default_start): Allocate 64-bit space.
41598
41599 * boot/i386/pc/boot.S (force_lba): Removed.
41600 (boot_drive): Moved to under KERNEL_SECTOR.
41601 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41602 space.
41603 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41604 is useless.
41605 (lba_mode): Refactored to support a 64-bit address. More size
41606 optimization.
41607 (setup_sectors): Likewise.
41608
41609 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41610
41611 * DISTLIST: Added include/grub/i386/linux.h. Removed
41612 include/grub/i386/pc/linux.h
41613
41614 * configure.ac (AC_INIT): Bumped to 1.94.
41615
41616 * config.guess: Updated from gnulib.
41617 * config.sub: Likewise.
41618 * install-sh: Likewise.
41619 * mkinstalldirs: Likewise.
41620
41621 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41622
41623 * conf/common.rmk (grub_modules_init.lst): Depended on
41624 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41625 MODSRCFILES.
41626
41627 * genmk.rb (PModule::rule): Reverted the previous change.
41628
41629 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41630
41631 * conf/common.rmk (grub_modules_init.lst): Depends on
41632 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
41633 that the target does not exist before producing.
41634 (grub_modules_init.h): Remove the target before generating.
41635 (grub_emu_init.c): Likewise.
41636
41637 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
41638
41639 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
41640
41641 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
41642 for the target-specific tests. Make sure that we also have the
41643 up-to-date target variables for those tests.
41644
41645 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41646
41647 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
41648 (PModule::rule): Likewise.
41649
41650 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41651
41652 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
41653 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
41654 target-specific flags should be prefixed.
41655 (PModule::rule): Likewise.
41656
41657 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
41658
41659 * configure.ac (CMP): Check if cmp is available explicitly.
41660
41661 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
41662
41663 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
41664 (target_cpu): New variable.
41665 (pkglibdir): Use target_cpu instead of host_cpu.
41666
41667 * util/i386/pc/grub-install.in (host_cpu): Removed.
41668 (target_cpu): New variable.
41669 (pkglibdir): Use target_cpu instead of host_cpu.
41670
41671 * util/genmoddep.c: Removed.
41672
41673 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
41674 instead of GRUB_HOST_SIZEOF_VOID_P.
41675 * kern/dl.c: Likewise.
41676
41677 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
41678 ...
41679 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41680 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41681 (GRUB_TARGET_SIZEOF_LONG): ... this.
41682 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41683 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41684 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41685 to ...
41686 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41687 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41688 (GRUB_TARGET_SIZEOF_LONG): ... this.
41689 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41690 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41691 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41692 to ...
41693 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41694 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41695 (GRUB_TARGET_SIZEOF_LONG): ... this.
41696 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41697 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41698
41699 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
41700 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
41701 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
41702 instead of GRUB_HOST_SIZEOF_LONG.
41703 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
41704 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
41705 GRUB_CPU_WORDS_BIGENDIAN.
41706 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
41707 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
41708 grub_host_ssize_t.
41709
41710 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
41711 (genmoddep_SOURCES): Likewise.
41712 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
41713 (genmoddep_SOURCES): Likewise.
41714 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
41715 (genmoddep_SOURCES): Likewise.
41716 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
41717 Likewise.
41718 (genmoddep_SOURCES): Likewise.
41719
41720 * genmoddep.awk: New file.
41721
41722 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
41723 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
41724 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
41725 (PModule::rule): Likewise.
41726 (Program::rule): Likewise.
41727 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
41728 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
41729 respectively.
41730
41731 * configure.ac: Rewritten intensively to use host and target
41732 instead of build and host, respectively.
41733
41734 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
41735 (host_cpu): Removed.
41736 (target_cpu): New variable.
41737 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
41738 (BUILD_CC): Removed.
41739 (BUILD_CFLAGS): Likewise.
41740 (BUILD_CPPFLAGS): Likewise.
41741 (TARGET_CC): New variable.
41742 (TARGET_CFLAGS): Likewise.
41743 (TARGET_CPPFLAGS): Likewise.
41744 (TARGET_LDFLAGS): Likewise.
41745 (AWK): Likewise.
41746 (include): Use target_cpu instead of host_cpu.
41747 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
41748
41749 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
41750
41751 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
41752
41753 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
41754 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
41755 field 'false' to 'exec_on_false'.
41756 (grub_script_create_cmdif): Renamed argument names to reflect above
41757 changes.
41758
41759 * normal/execute.c (grub_script_execute_cmdif): Likewise.
41760
41761 * normal/script.c (grub_script_create_cmdif): Likewise.
41762
41763 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
41764
41765 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
41766 top.
41767 (grub_hfsplus_btree_recptr): Likewise.
41768 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
41769 FILEBLOCK both to pass a block number and store next block
41770 number.
41771 (grub_hfsplus_read_block): Rewritten heavily to support an extent
41772 overflow file correctly. Specify errors appropriately, because
41773 fshelp expects that GRUB_ERRNO is set when fails. Reuse
41774 grub_hfsplus_btree_recptr to get the pointer to a found key.
41775 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
41776 is found.
41777
41778 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
41779 linux.mod.
41780 (_linux_mod_SOURCES): New variable.
41781 (_linux_mod_CFLAGS): Likewise.
41782 (_linux_mod_LDFLAGS): Likewise.
41783 (linux_mod_SOURCES): Likewise.
41784 (linux_mod_CFLAGS): Likewise.
41785 (linux_mod_LDFLAGS): Likewise.
41786
41787 * DISTLIST: Added loader/i386/efi/linux.c,
41788 loader/i386/efi/linux_normal.c and
41789 include/grub/i386/efi/loader.h.
41790
41791 * loader/i386/efi/linux.c: New file.
41792 * loader/i386/efi/linux_normal.c: Likewise.
41793 * include/grub/i386/efi/loader.h: Likewise.
41794
41795 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
41796
41797 * commands/blocklist.c: New file.
41798
41799 * DISTLIST: Added commands/blocklist.c.
41800
41801 * term/efi/console.c (grub_console_highlight_color): Use a lighter
41802 color for the background, and a darker color for the foreground.
41803 (grub_console_checkkey): Return READ_KEY.
41804 (grub_console_cls): Set the background to
41805 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
41806
41807 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
41808
41809 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
41810 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
41811
41812 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
41813 prototype.
41814
41815 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
41816 BG. The spec is wrong again.
41817
41818 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
41819 prototype.
41820 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
41821
41822 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41823 commands/blocklist.c.
41824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41825
41826 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
41827 (blocklist_mod_SOURCES): New variable.
41828 (blocklist_mod_CFLAGS): Likewise.
41829 (blocklist_mod_LDFLAGS): Likewise.
41830
41831 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
41832
41833 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
41834 duplication.
41835 (lba_mode): Use %eax more intensively to reduce the code size.
41836
41837 2006-05-20 Marco Gerards <marco@gnu.org>
41838
41839 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
41840
41841 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
41842 for `menuentry'.
41843 (script): Accept leading newlines.
41844 (newlines): New rule to describe 0 or more newlines.
41845 (commands): Accept `command' with trailing newline. Fixed the
41846 order in which arguments were passed to `grub_script_add_cmd'.
41847 Accept commands separated by newlines.
41848 (function): Changed to accept newlines.
41849 (menuentry) Rewritten.
41850
41851 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
41852 front of the list, instead of to the end.
41853
41854 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
41855
41856 * util/i386/pc/grub-install.in (bindir): New variable.
41857 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
41858 Shaver <lbgwjl@gmail.com>.
41859
41860 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
41861
41862 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
41863 grub/machine/linux.h
41864 * loader/i386/pc/linux.c: Likewise.
41865
41866 * include/grub/i386/pc/linux.h: Moved to ...
41867 * include/grub/i386/linux.h: ... here.
41868
41869 * include/grub/i386/linux.h (struct linux_kernel_params): New
41870 struct.
41871
41872 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
41873
41874 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
41875 checking.
41876 (grub_video_vbe_blit_glyph): Likewise.
41877 (grub_video_vbe_blit_bitmap): Likewise.
41878 (grub_video_vbe_blit_render_target): Likewise.
41879
41880 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
41881
41882 * configure.ac (--with-platform): Properly quote the square
41883 brackets.
41884
41885 2006-05-08 Marco Gerards <marco@gnu.org>
41886
41887 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
41888 this...
41889 (kernel_elf_HEADERS): ...to this. Updated all users.
41890 (grubof_symlist.c): Renamed from this...
41891 (kernel_elf_symlist.c): ...to this. Updated all users.
41892 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41893 (grubof_SOURCES): Renamed from this...
41894 (kernel_elf_SOURCES): ...to this.
41895 (grubof_HEADERS): Renamed from this...
41896 (kernel_elf_HEADERS): ...to this.
41897 (grubof_CFLAGS): Renamed from this...
41898 (kernel_elf_CFLAGS): ...to this.
41899 (grubof_ASFLAGS): Renamed from this...
41900 (kernel_elf_ASFLAGS): ...to this.
41901 (grubof_LDFLAGS): Renamed from this...
41902 (kernel_elf_LDFLAGS): ...to this.
41903
41904 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
41905 this...
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.
41920
41921 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
41922 `kernel.elf' instead of `grubof'.
41923
41924 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
41925
41926 Add --with-platform to configure. Use pkglibdir instead of
41927 pkgdatadir. This is reported by Roger Leigh.
41928
41929 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
41930 (host_vendor): Likewise.
41931 (host_os): Likewise.
41932 (pkgdatadir): Likewise.
41933 (platform): New variable.
41934 (pkglibdir): Likewise.
41935 Use PKGLIBDIR instead of PKGDATADIR.
41936
41937 * util/i386/pc/grub-install.in (datadir): Removed.
41938 (host_vendor): Likewise.
41939 (host_os): Likewise.
41940 (pkgdatadir): Likewise.
41941 (platform): New variable.
41942 (pkglibdir): Likewise.
41943 Use PKGLIBDIR instead of PKGDATADIR.
41944
41945 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
41946 instead of GRUB_DATADIR.
41947 (main): Likewise.
41948 * util/i386/pc/grub-mkimage.c (usage): Likewise.
41949 (main): Likewise.
41950 * util/i386/efi/grub-mkimage.c (usage): Likewise.
41951 (main): Likewise.
41952
41953 * configure.ac (--with-platform): New option.
41954 Use PLATFORM instead of HOST_VENDOR to specify a platform.
41955
41956 * Makefile.in: Include a makefile based on PLATFORM instead of
41957 HOST_VENDOR.
41958 (pkgdatadir): Not appended by the machine type.
41959 (pkglibdir): Appended by the machine type.
41960 (host_vendor): Removed.
41961 (platform): New variable.
41962 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
41963 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
41964 (uninstall): Likewise.
41965
41966 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
41967
41968 Use the environment context in the menu. Remove the commands
41969 "default" and "timeout", and use variables instead.
41970
41971 * normal/menu.c: Include grub/env.h.
41972 (print_entry): Cast TITLE to silence gcc.
41973 (get_timeout): New function.
41974 (set_timeout): Likewise.
41975 (get_entry_number): Likewise.
41976 (run_menu): Use a default entry, a fallback entry and a timeout
41977 in the environment variables "default", "fallback" and
41978 "timeout". Also, tweak the default entry if it is not within the
41979 current menu entries.
41980 (grub_menu_run): Use a fallback entry in the environment variable
41981 "fallback".
41982
41983 * normal/main.c (read_config_file): Do not initialize
41984 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
41985 NEWMENU->TIMEOUT.
41986 (grub_normal_execute): Use a data slot to store the menu.
41987
41988 * include/grub/normal.h (struct grub_menu): Removed default_entry,
41989 fallback_entry and timeout.
41990 (struct grub_menu_list): Removed.
41991 (grub_menu_list_t): Likewise.
41992 (struct grub_context): Likewise.
41993 (grub_context_t): Likewise.
41994 (grub_context_get): Likewise.
41995 (grub_context_get_current_menu): Likewise.
41996 (grub_context_push_menu): Likewise.
41997 (grub_context_pop_menu): Likewise.
41998 (grub_default_init): Likewise.
41999 (grub_default_fini): Likewise.
42000 (grub_timeout_init): Likewise.
42001 (grub_timeout_fini): Likewise.
42002
42003 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42004 and timeout.mod.
42005 (normal_mod_SOURCES): Removed normal/context.c.
42006
42007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42008 commands/default.c, commands/timeout.c and normal/context.c.
42009 (normal_mod_SOURCES): Removed normal/context.c.
42010
42011 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42012 commands/timeout.c and normal/context.c.
42013 (normal_mod_SOURCES): Removed normal/context.c.
42014
42015 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42016 commands/default.c, commands/timeout.c and normal/context.c.
42017 (normal_mod_SOURCES): Removed normal/context.c.
42018
42019 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42020 timeout.mod.
42021 (default_mod_SOURCES): Removed.
42022 (default_mod_CFLAGS): Likewise.
42023 (default_mod_LDFLAGS): Likewise.
42024 (timeout_mod_SOURCES): Removed.
42025 (timeout_mod_CFLAGS): Likewise.
42026 (timeout_mod_LDFLAGS): Likewise.
42027
42028 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42029 normal/context.c.
42030
42031 * commands/default.c: Removed.
42032 * commands/timeout.c: Likewise.
42033 * normal/context.c: Likewise.
42034
42035 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42036
42037 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42038
42039 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42040
42041 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42042 "next" to "prev" for readability.
42043 (struct grub_env_sorted_var): New struct.
42044 (grub_env_context): Renamed to ...
42045 (initial_context): ... this.
42046 (grub_env_var_context): Renamed to ...
42047 (current_context): ... this.
42048 (grub_env_find): Look only at CURRENT_CONTEXT.
42049 (grub_env_context_open): Rewritten to copy exported variables from
42050 previous context.
42051 (grub_env_context_close): Rewritten according to the new
42052 scheme. Also, add an assertion to prevent the initial context from
42053 removed.
42054 (grub_env_insert): Removed the code for the sorted list.
42055 (grub_env_remove): Likewise.
42056 (grub_env_export): Simply mark the variable with
42057 GRUB_ENV_VAR_GLOBAL.
42058 (grub_env_set): A cosmetic change for naming consistency.
42059 (grub_env_get): Likewise.
42060 (grub_env_unset): Likewise.
42061 (grub_env_iterate): Rewritten to sort variables within this
42062 function.
42063 (grub_register_variable_hook): Fixed for naming consistency. Call
42064 grub_env_find again, only if NAME is not found at the first time.
42065 (mangle_data_slot_name): New function.
42066 (grub_env_set_data_slot): Likewise.
42067 (grub_env_get_data_slot): Likewise.
42068 (grub_env_unset_data_slot): Likewise.
42069
42070 * include/grub/env.h (grub_env_var_type): New enum.
42071 (GRUB_ENV_VAR_LOCAL): New constant.
42072 (GRUB_ENV_VAR_GLOBAL): Likewise.
42073 (GRUB_ENV_VAR_DATA): Likewise.
42074 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42075 "type".
42076 (grub_env_set): Replace VAR with NAME for consistency.
42077 (grub_register_variable_hook): Likewise.
42078 (grub_env_export): Specify the name of the argument.
42079 (grub_env_set_data_slot): New prototype.
42080 (grub_env_get_data_slot): Likewise.
42081 (grub_env_unset_data_slot): Likewise.
42082
42083 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42084
42085 Extend the loader so that GRUB can accept a loader which comes
42086 back to GRUB when a loaded image exits. Also, this change adds
42087 support for a chainloader on EFI.
42088
42089 * term/efi/console.c: Include grub/misc.h.
42090 (grub_console_checkkey): Display a scan code on the top for
42091 debugging. This will be removed once the EFI port gets stable.
42092 Correct the scan code mapping.
42093
42094 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42095 allocate memory from larger regions, in order to reduce the number
42096 of allocated regions. Otherwise, the MacOSX loader panics.
42097 (filter_memory_map): Avoid less than 1MB for compatibility with
42098 other loaders.
42099 (add_memory_regions): Allocate from the tail of a region, if
42100 possible, to avoid allocating a region near to 1MB, for the MacOSX
42101 loader.
42102
42103 * kern/efi/init.c (grub_efi_set_prefix): Specify
42104 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42105
42106 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42107 argument IMAGE_HANDLE and specify it to get a loaded image.
42108 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42109 grub_efi_get_loaded_image.
42110 (grub_efi_get_filename): Divide the length by the size of
42111 grub_efi_char16_t.
42112 (grub_efi_get_device_path): New function.
42113 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42114 the length by the size of grub_efi_char16_t for a file path device
42115 path node.
42116
42117 * kern/loader.c (grub_loader_noreturn): New variable.
42118 (grub_loader_set): Accept a new argument NORETURN. Set
42119 GRUB_LOADER_NORETURN to NORETURN.
42120 All callers changed.
42121 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42122 grub_machine_fini.
42123
42124 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42125 prototype.
42126 (grub_efi_get_loaded_image): Take an argument to specify an image
42127 handle.
42128
42129 * include/grub/loader.h (grub_loader_set): Added one more argument
42130 NORETURN.
42131
42132 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42133 instead of grub_efi_open_protocol.
42134 (grub_efidisk_get_device_name): Likewise.
42135 (grub_efidisk_close): Print a newline.
42136 (grub_efidisk_get_device_handle): Fixed to use
42137 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42138 GRUB_EFI_DEVICE_PATH_TYPE.
42139
42140 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42141 * kern/efi/efi.c (device_path_guid): ... here.
42142
42143 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42144 chain.mod.
42145 (kernel_mod_HEADERS): Added efi/disk.h.
42146 (_chain_mod_SOURCES): New variable.
42147 (_chain_mod_CFLAGS): Likewise.
42148 (_chain_mod_LDFLAGS): Likewise.
42149 (chain_mod_SOURCES): Likewise.
42150 (chain_mod_CFLAGS): Likewise.
42151 (chain_mod_LDFLAGS): Likewise.
42152
42153 * DISTLIST: Added include/grub/efi/chainloader.h,
42154 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42155
42156 * include/grub/efi/chainloader.h: New file.
42157 * loader/efi/chainloader.c: Likewise.
42158 * loader/efi/chainloader_normal.c: Likewise.
42159
42160 2006-04-30 Marco Gerards <marco@gnu.org>
42161
42162 * commands/configfile.c (grub_cmd_source): New function.
42163 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42164 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42165
42166 2006-04-30 Marco Gerards <marco@gnu.org>
42167
42168 * normal/execute.c (grub_script_execute_cmd): Change the return
42169 type to `grub_err_t'. Correctly return the error.
42170 (grub_script_execute_cmdline): In case a command line is not a
42171 command or a function, try to interpret it as an assignment.
42172
42173 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42174
42175 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42176 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42177 skip a node whose name is obviously invalid as UTF-16,
42178 i.e. contains a NUL character. Stop the iteration when the last
42179 directory entry is found. Instead of using the return value of
42180 grub_hfsplus_btree_iterate_node, store the value in RET and use
42181 it, because the iterator can be stopped by the last directory
42182 entry.
42183
42184 2006-04-30 Marco Gerards <marco@gnu.org>
42185
42186 * include/grub/env.h (grub_env_export): New prototype. Reported
42187 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42188
42189 2006-04-30 Marco Gerards <marco@gnu.org>
42190
42191 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42192 size of the extents in a catalog file record.
42193
42194 2006-04-29 Marco Gerards <marco@gnu.org>
42195
42196 * commands/configfile.c (grub_cmd_configfile): Execute the
42197 configfile within its own context.
42198
42199 * include/grub/env.h (grub_env_context_open): New prototype.
42200 (grub_env_context_close): Likewise.
42201
42202 * kern/env.c (grub_env): Removed.
42203 (grub_env_sorted): Likewise.
42204 (grub_env_context): New variable.
42205 (grub_env_var_context): Likewise.
42206 (grub_env_find): Search both the active context and the global
42207 context.
42208 (grub_env_context_open): New function.
42209 (grub_env_context_close): Likewise.
42210 (grub_env_insert): Likewise.
42211 (grub_env_remove): Likewise.
42212 (grub_env_export): Likewise.
42213 (grub_env_set): Changed to use helper functions to avoid code
42214 duplication.
42215 (grub_env_iterate): Rewritten so both the current context and the
42216 global context are being used.
42217
42218 * normal/command.c (export_command): New function.
42219 (grub_command_init): Register the `export' function.
42220
42221 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42222
42223 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42224 explicitly to suppress gcc's warnings.
42225 * fs/fat.c (grub_fat_find_dir): Likewise.
42226 (grub_fat_label): Likewise.
42227 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42228 (grub_xfs_mount): Likewise.
42229 (grub_xfs_label): Likewise.
42230 * fs/affs.c (grub_affs_mount): Likewise.
42231 (grub_affs_label): Likewise.
42232 (grub_affs_iterate_dir): Likewise.
42233 * fs/sfs.c (grub_sfs_mount): Likewise.
42234 (grub_sfs_iterate_dir): Likewise.
42235 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42236 * fs/hfs.c (grub_hfs_mount): Likewise.
42237 (grub_hfs_cmp_catkeys): Likewise.
42238 (grub_hfs_find_dir): Likewise.
42239 (grub_hfs_dir): Likewise.
42240 (grub_hfs_label): Likewise.
42241 * fs/jfs.c (grub_jfs_mount): Likewise.
42242 (grub_jfs_opendir): Likewise.
42243 (grub_jfs_getent): Likewise.
42244 (grub_jfs_lookup_symlink): Likewise.
42245 (grub_jfs_label): Likewise.
42246 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42247 (grub_hfsplus_iterate_dir): Likewise.
42248 (grub_hfsplus_btree_iterate_node): Made static.
42249
42250 * util/grub-emu.c (prefix): New variable.
42251 (grub_machine_set_prefix): New function.
42252 (main): Do not set the environment variable "prefix" here. Only
42253 set PREFIX, which is used later by grub_machine_set_prefix.
42254
42255 * include/grub/video.h: Do not include grub/symbol.h.
42256 (grub_video_register): Not exported. This symbol is not defined in
42257 the kernel.
42258 (grub_video_unregister): Likewise.
42259 (grub_video_iterate): Likewise.
42260 (grub_video_setup): Likewise.
42261 (grub_video_restore): Likewise.
42262 (grub_video_get_info): Likewise.
42263 (grub_video_get_blit_format): Likewise.
42264 (grub_video_set_palette): Likewise.
42265 (grub_video_get_palette): Likewise.
42266 (grub_video_set_viewport): Likewise.
42267 (grub_video_get_viewport): Likewise.
42268 (grub_video_map_color): Likewise.
42269 (grub_video_map_rgb): Likewise.
42270 (grub_video_map_rgba): Likewise.
42271 (grub_video_fill_rect): Likewise.
42272 (grub_video_blit_glyph): Likewise.
42273 (grub_video_blit_bitmap): Likewise.
42274 (grub_video_blit_render_target): Likewise.
42275 (grub_video_scroll): Likewise.
42276 (grub_video_swap_buffers): Likewise.
42277 (grub_video_create_render_target): Likewise.
42278 (grub_video_delete_render_target): Likewise.
42279 (grub_video_set_active_render_target): Likewise.
42280
42281 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42282 Undefined.
42283 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42284
42285 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42286 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42287 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42288 instead of $(srcdir)/genkernsyms.sh.
42289
42290 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42291 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42292 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42293 instead of $(srcdir)/genkernsyms.sh.
42294
42295 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42296 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42297 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42298 instead of $(srcdir)/genkernsyms.sh.
42299
42300 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42301 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42302 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42303 instead of $(srcdir)/genkernsyms.sh.
42304
42305 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42306 genkernsyms.sh.
42307
42308 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42309 genkernsyms.sh.
42310 (gensymlist.sh): New target.
42311 (genkernsyms.sh): Likewise.
42312
42313 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42314 genkernsyms.sh.in and gensymlist.sh.in.
42315
42316 * genkernsyms.sh: Removed.
42317 * gensymlist.sh: Likewise.
42318
42319 * genkernsyms.sh.in: New file.
42320 * gensymlist.sh.in: Likewise.
42321
42322 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42323
42324 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42325 clobber "prefix", since we may have already set it manually.
42326
42327 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42328
42329 * kern/misc.c (abort): New alias for grub_abort.
42330
42331 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42332
42333 A new machine-specific function "grub_machine_set_prefix" is
42334 defined. This is called after loading modules, so that a prefix
42335 initialization can use modules. Also, this change adds an
42336 intensive debugging feature for the memory manager via the
42337 configure option "--enable-mm-debug".
42338
42339 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42340 PART.LEN.
42341
42342 * kern/sparc64/ieee1275/init.c (abort): Removed.
42343 (grub_stop): Likewise.
42344 (grub_exit): New function.
42345 (grub_set_prefix): Renamed to ...
42346 (grub_machine_set_prefix): ... this.
42347 (grub_machine_init): Do not call grub_set_prefix.
42348
42349 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42350 (grub_machine_set_prefix): ... this.
42351 (grub_machine_init): Do not call grub_set_prefix.
42352
42353 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42354 (grub_machine_init): Do not set the prefix here.
42355
42356 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42357
42358 * kern/efi/init.c: Include grub/mm.h.
42359 (grub_efi_set_prefix): New function.
42360
42361 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42362 (grub_efi_get_filename): New function.
42363 (grub_print_device_path): Renamed to ...
42364 (grub_efi_print_device_path): ... this.
42365
42366 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42367 [MM_DEBUG] (grub_realloc): Likewise.
42368 [MM_DEBUG] (grub_free): Likewise.
42369 [MM_DEBUG] (grub_memalign): Likewise.
42370 [MM_DEBUG] (grub_mm_debug): New variable.
42371 [MM_DEBUG] (grub_debug_malloc): New function.
42372 [MM_DEBUG] (grub_debug_free): New function.
42373 [MM_DEBUG] (grub_debug_realloc): New function.
42374 [MM_DEBUG] (grub_debug_memalign): New function.
42375
42376 * kern/misc.c (grub_abort): Print a newline to distinguish
42377 the message.
42378
42379 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42380 grub_set_root_dev after loading modules. This is necessary when
42381 setting a prefix depends on modules.
42382
42383 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42384 (grub_efi_print_device_path): ... this.
42385 (grub_efi_get_filename): New prototype.
42386 (grub_efi_set_prefix): Likewise.
42387
42388 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42389 and grub/disk.h.
42390 (grub_efidisk_get_device_handle): New prototype.
42391 (grub_efidisk_get_device_name): Likewise.
42392
42393 * include/grub/mm.h: Include config.h.
42394 (MM_DEBUG): Removed.
42395 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42396 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42397 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42398 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42399 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42400 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42401 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42402 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42403 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42404
42405 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42406
42407 * disk/efi/efidisk.c: Include grub/partition.h.
42408 (iterate_child_devices): New function.
42409 (add_device): First, compare only last device path nodes, so that
42410 devices are sorted by the types.
42411 (grub_efidisk_get_device_handle): New function.
42412 (grub_efidisk_get_device_name): Likewise.
42413
42414 * configure.ac (--enable-mm-debug): New option to enable the
42415 memory manager debugging feature. This makes the binary much
42416 bigger, so is disabled by default.
42417
42418 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42419
42420 Use grub_abort instead of grub_stop, and grub_exit must be
42421 define in each architecture now. Also, this change adds support
42422 for EFI disks.
42423
42424 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42425 (grub_getkey): New function.
42426 (grub_term_get_current): Likewise.
42427
42428 * util/i386/pc/grub-setup.c: Include grub/term.h.
42429 (grub_getkey): New function.
42430 (grub_term_get_current): Likewise.
42431
42432 * util/misc.c (grub_stop): Renamed to ...
42433 (grub_exit): ... this.
42434
42435 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42436 (grub_exit): ... this.
42437 (grub_machine_init): Use grub_abort instead of abort.
42438 (grub_stop): Removed.
42439
42440 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42441 abort.
42442
42443 * kern/i386/pc/startup.S (grub_exit): New function.
42444 (cold_reboot): New label.
42445
42446 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42447 (grub_efi_init): Call grub_efidisk_init.
42448 (grub_efi_fini): Call grub_efidisk_fini.
42449
42450 * kern/efi/efi.c: Include grub/mm.h.
42451 (grub_efi_console_control_guid): Renamed to ...
42452 (console_control_guid): ... this.
42453 (grub_efi_loaded_image_guid): Renamed to ...
42454 (loaded_image_guid): ... this.
42455 (grub_efi_locate_handle): New function.
42456 (grub_efi_open_protocol): Likewise.
42457 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42458 GRUB_EFI_CONSOLE_CONTROL_GUID.
42459 (grub_efi_exit): Removed.
42460 (grub_stop): Likewise.
42461 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42462 (grub_exit): New function.
42463 (grub_print_device_path): Likewise.
42464
42465 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42466 (grub_enter_rescue_mode): Register "exit".
42467
42468 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42469 (grub_abort): New function.
42470
42471 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42472
42473 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42474
42475 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42476
42477 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42478 (grub_print_device_path): New prototype.
42479 (grub_efi_locate_handle): Likewise.
42480 (grub_efi_open_protocol): Likewise.
42481
42482 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42483 * disk/efi/efidisk.c: Likewise.
42484
42485 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42486
42487 * include/grub/efi/console_control.h
42488 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42489
42490 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42491 last 8 bytes as an array.
42492 (GRUB_EFI_DISK_IO_GUID): New macro.
42493 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42494 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42495 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42496 grub_uint8_t.
42497 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42498 (struct grub_efi_device_path): Rename the member "sub_type" to
42499 "subtype".
42500 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42501 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42502 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42503 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42504 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42505 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42506 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42507 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42508 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42509 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42510 (struct grub_efi_pci_device_path): New structure.
42511 (grub_efi_pci_device_path_t): New type.
42512 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42513 (struct grub_efi_pccard_device_path): New structure.
42514 (grub_efi_pccard_device_path_t): New type.
42515 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42516 (struct grub_efi_memory_mapped_device_path): New structure.
42517 (grub_efi_memory_mapped_device_path_t): New type.
42518 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42519 (struct grub_efi_vendor_device_path): New structure.
42520 (grub_efi_vendor_device_path_t): New type.
42521 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42522 (struct grub_efi_controller_device_path): New structure.
42523 (grub_efi_controller_device_path_t): New type.
42524 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42525 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42526 (struct grub_efi_acpi_device_path): New structure.
42527 (grub_efi_acpi_device_path_t): New type.
42528 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42529 (struct grub_efi_expanded_acpi_device_path): New structure.
42530 (grub_efi_expanded_acpi_device_path_t): New type.
42531 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42532 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42533 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42534 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42535 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42536 (struct grub_efi_atapi_device_path): New structure.
42537 (grub_efi_atapi_device_path_t): New type.
42538 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42539 (struct grub_efi_fibre_channel_device_path): New structure.
42540 (grub_efi_fibre_channel_device_path_t): New type.
42541 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42542 (struct grub_efi_1394_device_path): New structure.
42543 (grub_efi_1394_device_path_t): New type.
42544 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42545 (struct grub_efi_usb_device_path): New structure.
42546 (grub_efi_usb_device_path_t): New type.
42547 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42548 (struct grub_efi_usb_class_device_path): New structure.
42549 (grub_efi_usb_class_device_path_t): New type.
42550 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42551 (struct grub_efi_i2o_device_path): New structure.
42552 (grub_efi_i2o_device_path_t): New type.
42553 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42554 (struct grub_efi_mac_address_device_path): New structure.
42555 (grub_efi_mac_address_device_path_t): New type.
42556 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42557 (struct grub_efi_ipv4_device_path): New structure.
42558 (grub_efi_ipv4_device_path_t): New type.
42559 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42560 (struct grub_efi_ipv6_device_path): New structure.
42561 (grub_efi_ipv6_device_path_t): New type.
42562 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42563 (struct grub_efi_infiniband_device_path): New structure.
42564 (grub_efi_infiniband_device_path_t): New type.
42565 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42566 (struct grub_efi_uart_device_path): New structure.
42567 (grub_efi_uart_device_path_t): New type.
42568 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42569 (struct grub_efi_vendor_messaging_device_path): New structure.
42570 (grub_efi_vendor_messaging_device_path_t): New type.
42571 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42572 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42573 (struct grub_efi_hard_drive_device_path): New structure.
42574 (grub_efi_hard_drive_device_path_t): New type.
42575 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42576 (struct grub_efi_cdrom_device_path): New structure.
42577 (grub_efi_cdrom_device_path_t): New type.
42578 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42579 (struct grub_efi_vendor_media_device_path): New structure.
42580 (grub_efi_vendor_media_device_path_t): New type.
42581 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42582 (struct grub_efi_file_path_device_path): New structure.
42583 (grub_efi_file_path_device_path_t): New type.
42584 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42585 (struct grub_efi_protocol_device_path): New structure.
42586 (grub_efi_protocol_device_path_t): New type.
42587 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42588 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42589 (struct grub_efi_bios_device_path): New structure.
42590 (grub_efi_bios_device_path_t): New type.
42591 (struct grub_efi_disk_io): New structure.
42592 (grub_efi_disk_io_t): New type.
42593 (struct grub_efi_block_io_media): New structure.
42594 (grub_efi_block_io_media_t): New type.
42595 (struct grub_efi_block_io): New structure.
42596 (grub_efi_block_io_t): New type.
42597
42598 * include/grub/misc.h (grub_stop): Removed.
42599 (grub_exit): New prototype.
42600 (grub_abort): Likewise.
42601
42602 * include/grub/disk.h (enum grub_disk_dev_id): Added
42603 GRUB_DISK_DEVICE_EFIDISK_ID.
42604
42605 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42606 disk/efi/efidisk.c.
42607 (kernel_syms.lst): Remove the target if an error occurs.
42608
42609 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42610
42611 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42612 as it was simply too buggy.
42613
42614 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42615
42616 * kern/misc.c (grub_lltoa): New function.
42617 (grub_vsprintf): Added support for the long long suffix,
42618 i.e. "ll".
42619
42620 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42621
42622 * Makefile.in (LDFLAGS): Add variable.
42623 (LD): Remove variable.
42624 * configure.ac: Add -m32 to LDFLAGS.
42625 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
42626 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
42627 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
42628 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
42629 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
42630 variables.
42631 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
42632 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
42633 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
42634
42635 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
42636
42637 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
42638 length for unknown glyph.
42639
42640 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42641
42642 Add support for pre-loaded modules into the EFI port.
42643
42644 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
42645 completely. Accept one more argument DIR. The caller has changed.
42646
42647 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
42648
42649 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
42650 (grub_efi_loaded_image_guid): New variable.
42651 (grub_efi_get_loaded_image): New function.
42652 (grub_arch_modules_addr): Likewise.
42653
42654 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
42655 prototype.
42656
42657 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
42658 (struct grub_efi_loaded_image): New structure.
42659 (grub_efi_loaded_image_t): New type.
42660
42661 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42662
42663 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
42664 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
42665 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
42666
42667 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
42668
42669 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
42670
42671 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
42672
42673 * DISTLIST: Added include/grub/efi/console.h,
42674 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
42675 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42676
42677 * include/grub/efi/console.h: New file.
42678 * include/grub/efi/time.h: Likewise.
42679 * include/grub/i386/efi/kernel.h: Likewise.
42680 * kern/efi/init.c: Likewise.
42681 * kern/efi/mm.c: Likewise.
42682 * term/efi/console.c: Likewise.
42683
42684 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
42685 (grub_stop): Removed.
42686 (grub_get_rtc): Likewise.
42687 (grub_machine_init): Simply call grub_efi_init.
42688 (grub_machine_fini): Call grub_efi_fini.
42689
42690 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
42691 (grub_efi_output_string): Removed.
42692 (grub_efi_stall): New function.
42693 (grub_stop): Likewise.
42694 (grub_get_rtc): Likewise.
42695
42696 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
42697 (grub_efi_stall): New prototype.
42698 (grub_efi_allocate_pages): Likewise.
42699 (grub_efi_free_pages): Likewise.
42700 (grub_efi_get_memory_map): Likewise.
42701 (grub_efi_mm_init): Likewise.
42702 (grub_efi_mm_fini): Likewise.
42703 (grub_efi_init): Likewise.
42704 (grub_efi_fini): Likewise.
42705
42706 * include/grub/i386/efi/time.h: Do not include
42707 grub/symbol.h. Include grub/efi/time.h.
42708 (GRUB_TICKS_PER_SECOND): Removed.
42709 (grub_get_rtc): Likewise.
42710
42711 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
42712 Added padding. The EFI spec is buggy.
42713 (GRUB_EFI_BLACK): New macro.
42714 (GRUB_EFI_BLUE): Likewise.
42715 (GRUB_EFI_GREEN): Likewise.
42716 (GRUB_EFI_CYAN): Likewise.
42717 (GRUB_EFI_RED): Likewise.
42718 (GRUB_EFI_MAGENTA): Likewise.
42719 (GRUB_EFI_BROWN): Likewise.
42720 (GRUB_EFI_LIGHTGRAY): Likewise.
42721 (GRUB_EFI_BRIGHT): Likewise.
42722 (GRUB_EFI_DARKGRAY): Likewise.
42723 (GRUB_EFI_LIGHTBLUE): Likewise.
42724 (GRUB_EFI_LIGHTGREEN): Likewise.
42725 (GRUB_EFI_LIGHTCYAN): Likewise.
42726 (GRUB_EFI_LIGHTRED): Likewise.
42727 (GRUB_EFI_LIGHTMAGENTA): Likewise.
42728 (GRUB_EFI_YELLOW): Likewise.
42729 (GRUB_EFI_WHITE): Likewise.
42730 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
42731 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
42732 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
42733 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
42734 (GRUB_EFI_BACKGROUND_RED): Likewise.
42735 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
42736 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
42737 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
42738 (GRUB_EFI_TEXT_ATTR): Likewise.
42739
42740 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
42741 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42742 (kernel_mod_HEADERS): Added efi/time.h.
42743
42744 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
42745
42746 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
42747 include/grub/efi/api.h, include/grub/efi/console_control.h,
42748 include/grub/efi/efi.h, include/grub/efi/pe32.h,
42749 include/grub/i386/efi/time.h, kern/efi/efi.c,
42750 kern/i386/efi/init.c, kern/i386/efi/startup.S,
42751 and util/i386/efi/grub-mkimage.c.
42752
42753 * Makefile.in (RMKFILES): Added i386-efi.rmk.
42754
42755 * genmk.rb (PModule#rule): Do not export symbols if
42756 #{prefix}_EXPORTS is set to "no".
42757
42758 * conf/i386-efi.mk: New file.
42759 * conf/i386-efi.rmk: Likewise.
42760 * include/grub/efi/api.h: Likewise.
42761 * include/grub/efi/console_control.h: Likewise.
42762 * include/grub/efi/efi.h: Likewise.
42763 * include/grub/efi/pe32.h: Likewise.
42764 * include/grub/i386/efi/time.h: Likewise.
42765 * kern/efi/efi.c: Likewise.
42766 * kern/i386/efi/init.c: Likewise.
42767 * kern/i386/efi/startup.S: Likewise.
42768 * util/i386/efi/grub-mkimage.c: Likewise.
42769
42770 2006-04-17 Marco Gerards <marco@gnu.org>
42771
42772 * include/grub/script.h: Include <grub/parser.h> and
42773 "grub_script.tab.h".
42774 (struct grub_lexer_param): New struct.
42775 (struct grub_parser_param): Likewise.
42776 (grub_script_create_arglist): Pass the state in an argument.
42777 (grub_script_add_arglist): Likewise.
42778 (grub_script_create_cmdline): Likewise.
42779 (grub_script_create_cmdblock): Likewise.
42780 (grub_script_create_cmdif): Likewise.
42781 (grub_script_create_cmdmenu): Likewise.
42782 (grub_script_add_cmd): Likewise.
42783 (grub_script_arg_add): Likewise.
42784 (grub_script_lexer_ref): Likewise.
42785 (grub_script_lexer_deref): Likewise.
42786 (grub_script_lexer_record_start): Likewise.
42787 (grub_script_lexer_record_stop): Likewise.
42788 (grub_script_mem_record): Likewise.
42789 (grub_script_mem_record_stop): Likewise.
42790 (grub_script_malloc): Likewise.
42791 (grub_script_yylex): Likewise.
42792 (grub_script_yyparse): Likewise.
42793 (grub_script_yyerror): Likewise.
42794 (grub_script_yylex): Likewise.
42795 (grub_script_lexer_init): Return the state.
42796
42797 * normal/lexer.c (grub_script_lexer_state): Removed variable.
42798 (grub_script_lexer_done): Likewise.
42799 (grub_script_lexer_getline): Likewise.
42800 (grub_script_lexer_refs): Likewise.
42801 (script): Likewise.
42802 (newscript): Likewise.
42803 (record): Likewise.
42804 (recording): Likewise.
42805 (recordpos): Likewise.
42806 (recordlen): Likewise.
42807 (grub_script_lexer_init): Return the state instead of setting
42808 global variables.
42809 (grub_script_lexer_ref): Use the newly added argument for state
42810 instead of globals.
42811 (grub_script_lexer_deref): Likewise.
42812 (grub_script_lexer_record_start): Likewise.
42813 (grub_script_lexer_record_stop): Likewise.
42814 (recordchar): Likewise.
42815 (nextchar): Likewise.
42816 (grub_script_yylex2): Likewise.
42817 (grub_script_yylex): Likewise.
42818 (grub_script_yyerror): Likewise.
42819
42820 * normal/parser.y (func_mem): Removed variable.
42821 (menu_entry): Likewise.
42822 (err): Likewise.
42823 (%lex-param): New parser option.
42824 (%parse-param): Likewise.
42825 (script): Always return the AST.
42826 (argument): Pass the state around.
42827 (arguments): Likewise.
42828 (grubcmd): Likewise.
42829 (commands): Likewise.
42830 (function): Likewise.
42831 (menuentry): Likewise.
42832 (if_statement): Likewise.
42833 (if): Likewise.
42834
42835 * normal/script.c (grub_script_memused): Removed variable.
42836 (grub_script_parsed): Likewise.
42837 (grub_script_malloc): Added a state argument. Use that instead of
42838 global variables.
42839 (grub_script_mem_record): Likewise.
42840 (grub_script_mem_record_stop): Likewise.
42841 (grub_script_arg_add): Likewise.
42842 (grub_script_add_arglist): Likewise.
42843 (grub_script_create_cmdline): Likewise.
42844 (grub_script_create_cmdif): Likewise.
42845 (grub_script_create_cmdmenu): Likewise.
42846 (grub_script_add_cmd): Likewise.
42847 (grub_script_parse): Setup the state before calling the parser.
42848
42849 2006-04-16 Marco Gerards <marco@gnu.org>
42850
42851 * normal/command.c (grub_command_init): Remove the title command.
42852
42853 * normal/lexer.c (grub_script_yylex): Renamed from this...
42854 (grub_script_yylex2): ... to this.
42855 (grub_script_yylex): New function. Temporary
42856 introduced to filter some tokens.
42857 (grub_script_yyerror): Print a newline.
42858
42859 * normal/main.c (read_config_file): Output information about the
42860 lines that contain errors. Wait for a key after all lines have
42861 been processed. Don't return an empty menu.
42862
42863 * normal/parser.y (func_mem): Don't initialize.
42864 (menu_entry): Likewise.
42865 (err): New variable.
42866 (script): Don't return anything when an error was encountered.
42867 (ws, returns): Removed rules.
42868 (argument): Disabled concatenated variable support.
42869 (arguments): Remove explicit separators.
42870 (grubcmd): Likewise.
42871 (function): Likewise.
42872 (menuentry): Likewise.
42873 (if): Likewise.
42874 (commands): Likewise. Add error handling.
42875
42876 * normal/script.c (grub_script_create_cmdline): If
42877 `grub_script_parsed' is 0, assume the parser encountered an error.
42878
42879 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
42880
42881 * configure.ac: Add support for EFI. Fix the typo
42882 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
42883
42884 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42885
42886 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
42887 foreign multibyte characters should be shown correctly.
42888
42889 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42890
42891 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
42892 calculation.
42893 (read_config_file): Made it to close file before returning.
42894
42895 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
42896
42897 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
42898 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
42899 video/i386/pc/vbefill.c.
42900
42901 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
42902 video/i386/pc/vbefill.c.
42903
42904 * include/grub/video.h (grub_video_blit_format): New enum.
42905 (grub_video_mode_info): Added new member blit_format.
42906 (grub_video_get_blit_format): New function prototype.
42907
42908 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
42909 function prototype.
42910 (grub_video_vbe_map_rgb): Likewise.
42911 (grub_video_vbe_unmap_color): Likewise.
42912
42913 * include/grub/i386/pc/vbeblit.h: New file.
42914
42915 * include/grub/i386/pc/vbefill.h: New file.
42916
42917 * video/video.c (grub_video_get_blit_format): New function.
42918 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
42919 (grub_video_vbe_map_rgb): Likewise.
42920 (grub_video_vbe_unmap_color): Likewise.
42921
42922 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
42923 optimized fills.
42924 (grub_video_vbe_blit_render_target): Changed to use more optimized
42925 blits.
42926 (grub_video_vbe_setup): Added detection for optimized settings.
42927 (grub_video_vbe_create_render_target): Likewise.
42928
42929 * video/i386/pc/vbeblit.c: New file.
42930
42931 * video/i386/pc/vbefill.c: New file.
42932
42933 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
42934
42935 * font/manager.c (grub_font_get_glyph): Removed font fixup from
42936 here...
42937
42938 * util/unifont2pff.rb: ... and moved it to here. Improved argument
42939 parsing to support both hex and dec ranges. If filename was missing
42940 show usage information.
42941
42942 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
42943
42944 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
42945 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
42946
42947 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
42948 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
42949 (video_mod_SOURCES): Added.
42950 (video_mod_CFLAGS): Likewise.
42951 (video_mod_LDFLAGS): Likewise.
42952 (gfxterm_mod_SOURCES): Likewise.
42953 (gfxterm_mod_CFLAGS): Likewise.
42954 (gfxterm_mod_LDFLAGS): Likewise.
42955 (videotest_mod_SOURCES): Likewise.
42956 (videotest_mod_CFLAGS): Likewise.
42957 (videotest_mod_LDFLAGS): Likewise.
42958 (vesafb_mod_SOURCES): Removed.
42959 (vesafb_mod_CFLAGS): Likewise.
42960 (vesafb_mod_LDFLAGS): Likewise.
42961 (vga_mod_SOURCES): Likewise.
42962 (vga_mod_CFLAGS): Likewise.
42963 (vga_mod_LDFLAGS): Likewise.
42964
42965 * commands/videotest.c: New file.
42966
42967 * font/manager.c (fill_with_default_glyph): Modified to use
42968 grub_font_glyph.
42969 (grub_font_get_glyph): Likewise.
42970 (fontmanager): Renamed from this...
42971 (font_manager): ... to this.
42972
42973 * include/grub/font.h (grub_font_glyph): Added new structure.
42974 (grub_font_get_glyph): Modified to use grub_font_glyph.
42975
42976 * include/grub/misc.h (grub_abs): Added as inline function.
42977
42978 * include/grub/video.h: New file.
42979
42980 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
42981 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
42982 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
42983 (grub_vbe_get_controller_info): Renamed from this...
42984 (grub_vbe_bios_get_controller_info): ... to this.
42985 (grub_vbe_get_mode_info): Renamed from this...
42986 (grub_vbe_bios_get_mode_info): ... to this.
42987 (grub_vbe_set_mode): Renamed from this...
42988 (grub_vbe_bios_set_mode): ... to this.
42989 (grub_vbe_get_mode): Renamed from this...
42990 (grub_vbe_bios_get_mode): ... to this.
42991 (grub_vbe_set_memory_window): Renamed from this...
42992 (grub_vbe_bios_set_memory_window): ... to this.
42993 (grub_vbe_get_memory_window): Renamed from this...
42994 (grub_vbe_bios_get_memory_window): ... to this.
42995 (grub_vbe_set_scanline_length): Renamed from this...
42996 (grub_vbe_set_scanline_length): ... to this.
42997 (grub_vbe_get_scanline_length): Renamed from this...
42998 (grub_vbe_bios_get_scanline_length): ... to this.
42999 (grub_vbe_set_display_start): Renamed from this...
43000 (grub_vbe_bios_set_display_start): ... to this.
43001 (grub_vbe_get_display_start): Renamed from this...
43002 (grub_vbe_bios_get_display_start): ... to this.
43003 (grub_vbe_set_palette_data): Renamed from this...
43004 (grub_vbe_bios_set_palette_data): ... to this.
43005 (grub_vbe_set_pixel_rgb): Removed.
43006 (grub_vbe_set_pixel_index): Likewise.
43007
43008 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43009 from this...
43010 (grub_vbe_bios_get_controller_info): ... to this.
43011 (grub_vbe_get_mode_info): Renamed from this...
43012 (grub_vbe_bios_get_mode_info): ... to this.
43013 (grub_vbe_set_mode): Renamed from this...
43014 (grub_vbe_bios_set_mode): ... to this.
43015 (grub_vbe_get_mode): Renamed from this...
43016 (grub_vbe_bios_get_mode): ... to this.
43017 (grub_vbe_set_memory_window): Renamed from this...
43018 (grub_vbe_bios_set_memory_window): ... to this.
43019 (grub_vbe_get_memory_window): Renamed from this...
43020 (grub_vbe_bios_get_memory_window): ... to this.
43021 (grub_vbe_set_scanline_length): Renamed from this...
43022 (grub_vbe_set_scanline_length): ... to this.
43023 (grub_vbe_get_scanline_length): Renamed from this...
43024 (grub_vbe_bios_get_scanline_length): ... to this.
43025 (grub_vbe_set_display_start): Renamed from this...
43026 (grub_vbe_bios_set_display_start): ... to this.
43027 (grub_vbe_get_display_start): Renamed from this...
43028 (grub_vbe_bios_get_display_start): ... to this.
43029 (grub_vbe_set_palette_data): Renamed from this...
43030 (grub_vbe_bios_set_palette_data): ... to this.
43031 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43032 getting corrupted after calling it. Added more pushes and pops.
43033 (grub_vbe_bios_set_mode): Likewise.
43034 (grub_vbe_bios_get_mode): Likewise.
43035 (grub_vbe_bios_get_memory_window): Likewise.
43036 (grub_vbe_bios_set_scanline_length): Likewise.
43037 (grub_vbe_bios_get_scanline_length): Likewise.
43038 (grub_vbe_bios_get_display_start): Likewise.
43039 (grub_vbe_bios_set_palette_data): Likewise.
43040
43041 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43042 (cl_insert): Likewise.
43043 (cl_delete): Likewise.
43044
43045 * term/gfxterm.c: New file.
43046
43047 * term/i386/pc/vesafb.c: Removed file.
43048
43049 * video/video.c: New file.
43050
43051 * video/i386/pc/vbe.c (real2pm): Added new function.
43052 (grub_video_vbe_draw_pixel): Likewise.
43053 (grub_video_vbe_get_video_ptr): Likewise.
43054 (grub_video_vbe_get_pixel): Likewise
43055 (grub_video_vbe_init): Likewise.
43056 (grub_video_vbe_fini): Likewise.
43057 (grub_video_vbe_setup): Likewise.
43058 (grub_video_vbe_get_info): Likewise.
43059 (grub_video_vbe_set_palette): Likewise.
43060 (grub_video_vbe_get_palette): Likewise.
43061 (grub_video_vbe_set_viewport): Likewise.
43062 (grub_video_vbe_get_viewport): Likewise.
43063 (grub_video_vbe_map_color): Likewise.
43064 (grub_video_vbe_map_rgb): Likewise.
43065 (grub_video_vbe_map_rgba): Likewise.
43066 (grub_video_vbe_unmap_color): Likewise.
43067 (grub_video_vbe_fill_rect): Likewise.
43068 (grub_video_vbe_blit_glyph): Likewise.
43069 (grub_video_vbe_blit_bitmap): Likewise.
43070 (grub_video_vbe_blit_render_target): Likewise.
43071 (grub_video_vbe_scroll): Likewise.
43072 (grub_video_vbe_swap_buffers): Likewise.
43073 (grub_video_vbe_create_render_target): Likewise.
43074 (grub_video_vbe_delete_render_target): Likewise.
43075 (grub_video_vbe_set_active_render_target): Likewise.
43076 (grub_vbe_set_pixel_rgb): Remove function.
43077 (grub_vbe_set_pixel_index): Likewise.
43078 (index_color_mode): Remove static variable.
43079 (active_mode): Likewise.
43080 (framebuffer): Likewise.
43081 (bytes_per_scan_line): Likewise.
43082 (grub_video_vbe_adapter): Added new static variable.
43083 (framebuffer): Likewise.
43084 (render_target): Likewise.
43085 (initial_mode): Likewise.
43086 (mode_in_use): Likewise.
43087 (mode_list): Likewise.
43088
43089 2006-03-10 Marco Gerards <marco@gnu.org>
43090
43091 * configure.ac (AC_INIT): Bumped to 1.93.
43092
43093 * DISTLIST: Added `include/grub/hfs.h'.
43094
43095 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43096
43097 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43098 18H, which might help the BIOS falling back to next boot media.
43099
43100 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43101
43102 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43103 Poe Chen <poe.poechen@gmail.com>.
43104
43105 2006-01-17 Marco Gerards <marco@gnu.org>
43106
43107 * include/grub/normal.h: Include <grub/script.h>.
43108 (grub_command_list): Removed struct.
43109 (grub_command_list_t): Removed type.
43110 (grub_menu_entry): Remove members `num' and `command_list'. Add
43111 members `commands' and `sourcecode'.
43112 * include/grub/script.h: Add inclusion guards.
43113 (grub_script_cmd_menuentry): New struct.
43114 (grub_script_execute_menuentry): New prototype.
43115 (grub_script_lexer_record_start): Likewise.
43116 (grub_script_lexer_record_stop): Likewise.
43117 * normal/execute.c (grub_script_execute_menuentry): New function.
43118 * normal/lexer.c (record, recording, recordpos, recordlen): New
43119 variables.
43120 (grub_script_lexer_record_start): New function.
43121 (grub_script_lexer_record_stop): Likewise.
43122 (recordchar): Likewise.
43123 (nextchar): Likewise.
43124 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43125 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43126 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43127 (current_menu): New variable.
43128 (free_menu): Mainly rewritten.
43129 (grub_normal_menu_addentry): New function.
43130 (read_config_file): Rewritten.
43131 * normal/menu.c (run_menu_entry): Mainly rewritten.
43132 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43133 the menu entry.
43134 (run): Mainly rewritten.
43135 * normal/parser.y (menu_entry): New variable.
43136 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43137 (menuentry): New rule.
43138 (command): Add `menuentry'.
43139 (if_statement): Allow additional returns before `fi'.
43140 * normal/script.c (grub_script_create_cmdmenu): New function.
43141
43142 2006-01-03 Marco Gerards <marco@gnu.org>
43143
43144 * INSTALL: GNU Bison is required.
43145 * configure.ac: Rewritten the test to detect Bison.
43146 * Makefile.in (YACC): New variable. Reported by Xun Sun
43147 <xun.sun.cn@gmail.com>.
43148
43149 2006-01-03 Marco Gerards <marco@gnu.org>
43150
43151 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43152 the HFS+ filesystem to filesystem blocks.
43153 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43154 GCC warning is silenced.
43155
43156 2006-01-03 Marco Gerards <marco@gnu.org>
43157
43158 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43159 read from disk from big endian to host byte order.
43160
43161 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43162
43163 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43164 documentation.
43165 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43166 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43167 embedded HFS+ filesystem.
43168 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43169 (grub_hfs_sblock): Move from here...
43170 * include/grub/hfs.h: To here... New file.
43171 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43172 documentation.
43173 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43174 New macros.
43175 (grub_hfsplus_volheader): Change type of member `magic' to
43176 `grub_uint16_t'.
43177 (grub_hfsplus_data): Add new member `embedded_offset'.
43178 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43179 returned block.
43180 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43181 Calculate the offset.
43182
43183 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43184
43185 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43186 Removed.
43187 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43188
43189 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43190
43191 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43192 ENV->NAME is NULL after allocating ENV->VALUE.
43193
43194 2005-12-25 Marco Gerards <marco@gnu.org>
43195
43196 * kern/env.c (grub_env_set): Rewritten the error handling code.
43197
43198 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43199
43200 * geninit.sh: Made more robust, and more portable.
43201
43202 2005-12-25 Marco Gerards <marco@gnu.org>
43203
43204 Add support for Apple HFS+ filesystems.
43205
43206 * fs/hfsplus.c: New file.
43207
43208 * DISTLIST: Added `fs/hfsplus.c'.
43209
43210 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43211 (hfsplus_mod_SOURCES): New variable.
43212 (hfsplus_mod_CFLAGS): Likewise.
43213 (hfsplus_mod_LDFLAGS): Likewise.
43214 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43215 (grub_setup_SOURCES): Likewise.
43216 (grub_mkdevicemap_SOURCES): Likewise.
43217 (grub_emu_SOURCES): Likewise.
43218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43219
43220 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43221
43222 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43223
43224 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43225
43226 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43227 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43228 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43229 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43230 normal/lexer.c, normal/parser.y, normal/script.c, and
43231 partmap/gpt.c.
43232 Removed kern/sparc64/cache.c.
43233
43234 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43235 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43236 grub_emu_init.c.
43237
43238 * configure.ac (AC_INIT): Bumped to 1.92.
43239
43240 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43241
43242 * kern/err.c (grub_error_push): Added new function to support error
43243 stacks.
43244 (grub_error_pop): Likewise.
43245 (grub_error_stack_items): New local variable to support error stacks.
43246 (grub_error_stack_pos): Likewise.
43247 (grub_error_stack_assert): Likewise.
43248 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43249 stack depth.
43250 (grub_print_error): Added support to print errors from error stack.
43251
43252 * include/grub/err.h (grub_error_push): Added function prototype.
43253 (grub_error_pop): Likewise.
43254
43255 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43256
43257 * configure.ac: Accept `powerpc64' as host_cpu.
43258 (amd64): Rename to `biarch32'.
43259
43260 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43261 non-cacheline-aligned addresses.
43262
43263 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43264 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43265 if `size' is non-zero.
43266
43267 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43268
43269 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43270 and `cd' to make sure the filename is not prefixed with a
43271 directory name.
43272 (pkgdata_MODULES): Add `gpt.mod'.
43273 (gpt_mod_SOURCES): New variable.
43274 (gpt_mod_CFLAGS): Likewise.
43275 (gpt_mod_LDFLAGS): Likewise.
43276
43277 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43278
43279 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43280 New macro.
43281
43282 * partmap/gpt.c: New file.
43283
43284 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43285 GPT partition map is detected.
43286
43287 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43288
43289 * commands/i386/pc/play.c: New file.
43290 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43291 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43292 macros.
43293
43294 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43295
43296 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43297 ((unused))' to silence gcc warning.
43298
43299 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43300
43301 * configure.ac: Correct `AC_PROG_YACC' test.
43302
43303 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43304
43305 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43306 check before installing files.
43307
43308 2005-11-22 Mike Small <smallm@panix.com>
43309
43310 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43311 number regex so multidigit numbers are recognized correctly.
43312
43313 2005-11-22 Mike Small <smallm@panix.com>
43314
43315 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43316 debugging message before attempting to claim memory.
43317 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43318 multiple addresses in case of failure.
43319
43320 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43321
43322 * term/tparm.c (get_space): Remove empty `if' statement.
43323
43324 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43325
43326 * kern/parser.c (check_varstate): Rename `state' to 's'.
43327
43328 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43329
43330 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43331 variable definitions to the beginning of each function. Sort stack
43332 variables by size.
43333 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43334 `buf' argument to `char *'.
43335
43336 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43337
43338 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43339 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43340 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43341 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43342 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43343 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43344 configfile.mod, search.mod, gzio.mod and test.mod.
43345 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43346 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43347 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43348 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43349 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43350 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43351 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43352 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43353 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43354 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43355 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43356 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43357 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43358 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43359 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43360 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43361 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43362 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43363 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43364 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43365 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43366 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43367 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43368
43369 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43370 `grep --include'.
43371 (pkgdata_MODULES): Add test.mod.
43372
43373 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43374
43375 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43376 appending to variables with "+=".
43377 (PModule): Use full pathname to generate *.lst filenames.
43378
43379 * Makefile.in: Fixed list rules moved from genmk.rb.
43380 (.DELETE_ON_ERROR): New special target.
43381 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43382
43383 * conf/i386-pc.rmk: Include conf/common.mk.
43384 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43385 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43386 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43387 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43388 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43389 configfile.mod, search.mod, gzio.mod and test.mod.
43390 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43391 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43392 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43393 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43394 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43395 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43396 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43397 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43398 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43399 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43400 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43401 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43402 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43403 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43404 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43405 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43406 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43407 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43408 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43409 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43410 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43411 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43412 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43413 here...
43414 * conf/common.rmk: ... to here. New file.
43415
43416 * conf/common.mk: New file.
43417
43418 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43419
43420 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43421 (grub_script.tab.c): ... here.
43422
43423 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43424 (grub_script.tab.c): ... here.
43425
43426 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43427 (grub_script.tab.c): ... here.
43428
43429 * normal/command.c (grub_command_find): Fixed a memory leak of
43430 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43431
43432 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43433
43434 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43435 "@" which marks the start of a comment on ARM.
43436 (VARIABLE): Likewise.
43437
43438 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43439
43440 Add support for Linux/ADFS partition tables.
43441
43442 * partmap/acorn.c: New file.
43443
43444 * include/grub/acorn_filecore.h: Likewise.
43445
43446 * DISTLIST: Added `partmap/acorn.c' and
43447 `include/grub/acorn_filecore.h'.
43448
43449 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43450 `partmap/acorn.c'.
43451 (pkgdata_MODULES): Add `acorn.mod'.
43452 (acorn_mod_SOURCES): New variable.
43453 (acorn_mod_CFLAGS): Likewise.
43454
43455 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43456 `partmap/acorn.c'.
43457 (pkgdata_MODULES): Add `acorn.mod'.
43458 (acorn_mod_SOURCES): New variable.
43459 (acorn_mod_CFLAGS): Likewise.
43460
43461 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43462 (pkgdata_MODULES): Add `acorn.mod'.
43463 (acorn_mod_SOURCES): New variable.
43464 (acorn_mod_CFLAGS): Likewise.
43465 (acorn_mod_LDFLAGS): Likewise.
43466
43467 * include/types.h (grub_disk_addr_t): New typedef.
43468
43469 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43470
43471 * geninit.sh: New file.
43472
43473 * geninitheader.sh: Likewise.
43474
43475 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43476 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43477 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43478 * commands/configfile.c (grub_configfile_init)
43479 (grub_configfile_fini): Likewise.
43480 * commands/default.c (grub_default_init, grub_default_fini):
43481 Likewise.
43482 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43483 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43484 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43485 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43486 Likewise.
43487 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43488 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43489 Likewise.
43490 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43491 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43492 Likewise.
43493 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43494 Likewise.
43495 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43496 Likewise.
43497 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43498 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43499 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43500 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43501 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43502 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43503 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43504 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43505 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43506 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43507 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43508 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43509 * partmap/amiga.c (grub_amiga_partition_map_init)
43510 (grub_amiga_partition_map_fini): Likewise.
43511 * partmap/apple.c (grub_apple_partition_map_init)
43512 (grub_apple_partition_map_fini): Likewise.
43513 * partmap/pc.c (grub_pc_partition_map_init)
43514 (grub_pc_partition_map_fini): Likewise.
43515 * partmap/sun.c (grub_sun_partition_map_init,
43516 grub_sun_partition_map_fini): Likewise.
43517 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43518 Likewise.
43519
43520 * util/grub-emu.c: Include <grub_modules_init.h>.
43521 (main): Don't initialize and de-initialize any modules directly,
43522 use `grub_init_all' and `grub_fini_all' instead.
43523
43524 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43525 `grub_vesafb_mod_init'.
43526 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43527 all users.
43528 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43529 `grub_vga_mod_init'. Updated all users.
43530 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43531
43532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43533 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43534 rules.
43535
43536 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43537 Generate a function to initialize the module in utilities.
43538 Updated all callers.
43539 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43540 initialize the module in utilities. Updated all callers.
43541
43542 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43543
43544 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43545 escape sequence and a literal ^L to clear the screen.
43546
43547 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43548 when returning from Open Firmware.
43549
43550 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43551
43552 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43553 (grub_ofconsole_height): Likewise.
43554 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43555 manually insert a '\n'.
43556 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43557 `grub_ofconsole_height'. Return early if these are already set.
43558
43559 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43560
43561 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43562 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43563 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43564 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43565 and `normal/script.c'.
43566 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43567 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43568 (test_mod_SOURCES): New variable.
43569 (test_mod_CFLAGS): Likewise.
43570 (test_mod_LDFLAGS): Likewise.
43571 (pkgdata_MODULES): Add `test.mod'.
43572 (grub_script.tab.c): New rule.
43573 (grub_script.tab.h): Likewise.
43574
43575 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43576
43577 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43578 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43579 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43580 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43581 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43582 (test_mod_SOURCES): New variable.
43583 (test_mod_CFLAGS): Likewise.
43584 (pkgdata_MODULES): Add `test.mod'.
43585 (grub_script.tab.c): New rule.
43586 (grub_script.tab.h): Likewise.
43587
43588 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43589
43590 Add initial scripting support.
43591
43592 * commands/test.c: New file.
43593 * include/grub/script.h: Likewise.
43594 * normal/execute.c: Likewise.
43595 * normal/function.c: Likewise.
43596 * normal/lexer.c: Likewise.
43597 * normal/parser.y: Likewise.
43598 * normal/script.c: Likewise.
43599
43600 * configure.ac: Add `AC_PROG_YACC' test.
43601
43602 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43603 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43604 `normal/function.c' and `normal/script.c'.
43605 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43606 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43607 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43608 variables.
43609 (pkgdata_MODULES): Add `test.mod'.
43610 (grub_script.tab.c): New rule.
43611 (grub_script.tab.h): Likewise.
43612
43613 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43614
43615 * include/grub/normal.h (grub_test_init): New prototype.
43616 (grub_test_fini): Likewise.
43617
43618 * normal/command.c: Include <grub/script.h>.
43619 (grub_command_execute): Rewritten.
43620
43621 * util/grub-emu.c (main): Call `grub_test_init' and
43622 `grub_test_fini'.
43623
43624 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43625
43626 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
43627 to 0.
43628 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
43629 there are no pending characters.
43630
43631 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43632
43633 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
43634 `grub_strndup' to drop device arguments. Replace unnecessary
43635 `grub_strndup' with `grub_strdup'.
43636
43637 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43638
43639 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
43640 `debug' environment variable has been set.
43641
43642 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
43643
43644 * Makefile.in (install-local): Use $(DATA).
43645 (uninstall): Likewise.
43646 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
43647 (sbin_UTILITIES): ... to here.
43648 (sbin_SCRIPTS): New variable.
43649 (grub_install_SOURCES): New variable.
43650 * util/powerpc/ieee1275/grub-install.in: New file.
43651 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
43652 variable.
43653 (add_segments): Call `grub_util_get_path'.
43654
43655 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43656
43657 From Timothy Baldwin:
43658 * commands/ls.c (grub_ls_list_files): Close FILE with
43659 grub_file_close.
43660 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
43661
43662 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
43663
43664 * include/grub/parser.h: New file.
43665
43666 * kern/parser.c: Likewise.
43667
43668 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
43669 (grub_setup_SOURCES): Likewise.
43670 (grub_probefs_SOURCES): Likewise.
43671 (grub_emu_SOURCES): Likewise.
43672 (kernel_img_HEADERS): Add `parser.h'.
43673
43674 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43675 (grub_emu_SOURCES): Add `kern/parser.c'.
43676 (grubof_SOURCES): Likewise.
43677
43678 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43679 (grubof_SOURCES): Add `kern/parser.c'.
43680
43681 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
43682
43683 * kern/misc.c (grub_split_cmdline): Removed function.
43684
43685 * kern/rescue.c: Include <grub/parser.h>.
43686 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
43687 of `grub_split_cmdline'.
43688
43689 * normal/command.c: Include <grub/parser.h>.
43690 (grub_command_execute): Use `grub_parser_split_cmdline' instead
43691 of `grub_split_cmdline'.
43692
43693 * normal/completion.c: Include <grub/parser.h>.
43694 (cmdline_state): New variable.
43695 (iterate_dir): End the filename with a quote depending on the
43696 command line state.
43697 (get_state): new function.
43698 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
43699 split the arguments and determine the current argument. When the
43700 argument string is not quoted, escape all spaces.
43701
43702 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43703
43704 * normal/sparc64/setjmp.S: New file.
43705
43706 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43707
43708 * include/grub/sparc64/libgcc.h: New file.
43709 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
43710 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
43711 normal/sparc64/setjmp.c.
43712
43713 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43714
43715 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
43716 * kern/sparc64/cache.S: New file.
43717 * kern/sparc64/cache.c: Removed.
43718 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
43719 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
43720 -mtune=ultrasparc.
43721 (COMMON_LDFLAGS): Add -melf64_sparc.
43722 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
43723 (grubof_SOURCES): Use cache.S instead of cache.c.
43724 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
43725 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
43726 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
43727 commented though.
43728 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
43729 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
43730 (linux_mod_CFLAGS): Commented out.
43731 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
43732 out because module isn't built.
43733 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
43734 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
43735 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
43736 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
43737 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
43738 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43739 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43740 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
43741 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
43742 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
43743 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43744 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43745 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
43746 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
43747
43748 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
43749
43750 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
43751 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
43752 longer, because HFS should not be used on PC.
43753
43754 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43755
43756 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
43757 consistently within the loop.
43758
43759 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
43760
43761 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
43762 directory can not be read.
43763
43764 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43765
43766 * configure.ac (AC_INIT): Increase the version number to 1.91.
43767
43768 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
43769 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
43770 term/i386/pc/serial.c.
43771
43772 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43773
43774 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
43775 file size must be permitted.
43776
43777 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
43778 between %ah and %al.
43779
43780 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43781
43782 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
43783 grub_uint64_t.
43784 Call the hook with a NUL-terminated filename.
43785 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
43786 grub_cpu_to_be32.
43787
43788 * kern/term.c (cursor_state): New variable.
43789 (grub_term_set_current): Reset the cursor state on a new
43790 terminal.
43791 (grub_setcursor): Rewritten to use CURSOR_STATE.
43792 (grub_getcursor): New function.
43793
43794 * include/grub/term.h (grub_getcursor): New prototype.
43795
43796 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
43797 integers on ARM. Reported by Timothy Baldwin
43798 <T.E.Baldwin99@members.leeds.ac.uk>.
43799
43800 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
43801
43802 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
43803 allocated.
43804 (grub_sfs_dir): Likewise.
43805
43806 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
43807
43808 Add support for the SFS filesystem.
43809
43810 * fs/sfs.c: New file.
43811
43812 * DISTLIST: Added `fs/sfs.c'.
43813
43814 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
43815 (grub_probefs_SOURCES): Likewise.
43816 (grub_emu_SOURCES): Likewise.
43817 (pkgdata_MODULES): Add `sfs.mod'.
43818 (sfs_mod_SOURCES): New variable.
43819 (sfs_mod_CFLAGS): Likewise.
43820 (sfs_mod_LDFLAGS): Likewise.
43821
43822 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
43823 (pkgdata_MODULES): Add `sfs.mod'.
43824 (sfs_mod_SOURCES): New variable.
43825 (sfs_mod_CFLAGS): Likewise.
43826
43827 * util/grub-emu.c (main): Call `grub_sfs_init' and
43828 `grub_sfs_fini'.
43829
43830 * include/grub/fs.h (grub_sfs_init): New prototype.
43831 (grub_sfs_fini): Likewise.
43832
43833 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
43834
43835 Add support for the AFFS filesystem.
43836
43837 * fs/affs.c: New file.
43838
43839 * DISTLIST: Added `fs/affs.c'.
43840
43841 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
43842 (grub_probefs_SOURCES): Likewise.
43843 (grub_emu_SOURCES): Likewise.
43844 (pkgdata_MODULES): Add `affs.mod'.
43845 (affs_mod_SOURCES): New variable.
43846 (affs_mod_CFLAGS): Likewise.
43847 (affs_mod_LDFLAGS): Likewise.
43848
43849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
43850 (pkgdata_MODULES): Add `affs.mod'.
43851 (affs_mod_SOURCES): New variable.
43852 (affs_mod_CFLAGS): Likewise.
43853
43854 * util/grub-emu.c (main): Call `grub_affs_init' and
43855 `grub_affs_fini'.
43856
43857 * include/grub/fs.h (grub_affs_init): New prototype.
43858 (grub_affs_fini): Likewise.
43859
43860 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43861
43862 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
43863
43864 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43865
43866 * configure.ac: Accept `x86_64' as host_cpu. In that case add
43867 `-m32' to CFLAGS.
43868
43869 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
43870 linking.
43871
43872 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
43873 (COMMON_LDFLAGS): New variable.
43874 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
43875 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
43876 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
43877 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
43878 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
43879 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
43880 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
43881 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
43882 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
43883 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
43884 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43885 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43886 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
43887 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
43888 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
43889 variables.
43890 (normal_mod_ASFLAGS): Add `-m32'.
43891
43892 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
43893 (grub_host_size_t, grub_host_ssize_t): New types.
43894 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
43895 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
43896 `GRUB_HOST_SIZEOF_VOID_P'.
43897
43898 * include/grub/kernel.h (struct grub_module_header): Type of
43899 member offset changed to `grub_host_off_t'. Type of member size
43900 changed to `grub_host_size_t'.
43901 (struct grub_module_info): Type of member offset changed to
43902 `grub_host_off_t'. Type of member size changed to
43903 `grub_host_size_t'.
43904
43905 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
43906
43907 Make GRUB's kernel compliant to Multiboot Specification.
43908
43909 * kern/i386/pc/startup.S (multiboot_header): New label.
43910 (multiboot_entry): Likewise.
43911 (multiboot_trampoline): Likewise.
43912
43913 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43914 Increased to 0x4A0.
43915
43916 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
43917 put parentheses after a question mark.
43918 [!GRUB_UTIL] (my_mod): New variable.
43919
43920 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
43921
43922 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
43923
43924 Adds support for the XFS filesystem. Btrees are not supported
43925 yet.
43926
43927 * fs/xfs.c: New file.
43928
43929 * DISTLIST: Added `fs/xfs.c'.
43930
43931 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
43932 (grub_probefs_SOURCES): Likewise.
43933 (grub_emu_SOURCES): Likewise.
43934 (pkgdata_MODULES): Add `xfs.mod'.
43935 (xfs_mod_SOURCES): New variable.
43936 (xfs_mod_CFLAGS): Likewise.
43937
43938 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
43939 (pkgdata_MODULES): Add `xfs.mod'.
43940 (xfs_mod_SOURCES): New variable.
43941 (xfs_mod_CFLAGS): Likewise.
43942
43943 * util/grub-emu.c (main): Call `grub_xfs_init' and
43944 `grub_xfs_fini'.
43945
43946 * include/grub/fs.h (grub_xfs_init): New prototype.
43947 (grub_xfs_fini): Likewise.
43948
43949
43950 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
43951
43952 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
43953 color modes, allow greater than 16 colors to be configured as
43954 a default palette.
43955
43956 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43957
43958 * normal/completion.c (complete_arguments): Add the qualifier
43959 const into OPTIONS.
43960
43961 From Omniflux <omniflux+lists@omniflux.com>:
43962 * include/grub/terminfo.h: New file.
43963 * include/grub/tparm.h: Likewise.
43964 * include/grub/i386/pc/serial.h: Likewise.
43965 * term/terminfo.c: Likewise.
43966 * term/tparm.c: Likewise.
43967 * term/i386/pc/serial.c: Likewise.
43968 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
43969 serial.mod.
43970 (terminfo_mod_SOURCES): New variable.
43971 (terminfo_mod_CFLAGS): Likewise.
43972 (serial_mod_SOURCES): Likewise.
43973 (serial_mod_CFLAGS): Likewise.
43974
43975 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
43976
43977 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
43978 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
43979 and kern/powerpc/ieee1275/cmain.c, respectively.
43980
43981 * boot/powerpc/ieee1275/crt0.S: Moved to ...
43982 * kern/powerpc/ieee1275/crt0.S: ... here.
43983
43984 * boot/powerpc/ieee1275/cmain.c: Moved to ...
43985 * kern/powerpc/ieee1275/cmain.c: ... here.
43986
43987 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
43988 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
43989 instead of boot/powerpc/ieee1275/crt0.S and
43990 boot/powerpc/ieee1275/cmain.c, respectively.
43991
43992 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
43993 sectors. It was not used anyway.
43994
43995 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43996
43997 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
43998 `unused parameter' warning.
43999
44000 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44001
44002 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44003 function.
44004 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44005 getcharwidth.
44006
44007 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44008
44009 * include/grub/normal.h (enum grub_completion_type): Added
44010 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44011
44012 * normal/cmdline.c (print_completion): Handle
44013 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44014 * normal/menu_entry.c (store_completion): Likewise.
44015
44016 * normal/completion.c (complete_arguments): New function.
44017 (grub_normal_do_completion): Call `complete_arguments' when the
44018 current words start with a dash.
44019
44020 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44021
44022 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44023 `gzio.mod' instead of `io.mod').
44024
44025 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44026
44027 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44028 (DISTDIRS): Added io and video.
44029 Rewrite the search routine to make an output consistently.
44030
44031 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44032 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44033 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44034 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44035 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44036 util/powerpc/ieee1275/misc.c.
44037
44038 * include/grub/gzio.h: New file.
44039 * io/gzio.c: Likewise.
44040
44041 * kern/file.c (grub_file_close): Call grub_device_close only if
44042 FILE->DEVICE is not NULL.
44043
44044 * include/grub/mm.h [!NULL] (NULL): New macro.
44045
44046 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44047
44048 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44049 (pkgdata_MODULES): Added gzio.mod.
44050 (gzio_mod_SOURCES): New variable.
44051 (gzio_mod_CFLAGS): Likewise.
44052
44053 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44054 (pkgdata_MODULES): Added gzio.mod.
44055 (gzio_mod_SOURCES): New variable.
44056 (gzio_mod_CFLAGS): Likewise.
44057
44058 * commands/cat.c: Include grub/gzio.h.
44059 (grub_cmd_cat): Use grub_gzfile_open instead of
44060 grub_file_open.
44061
44062 * commands/cmp.c: Include grub/gzio.h.
44063 (grub_cmd_cmp): Use grub_gzfile_open instead of
44064 grub_file_open.
44065
44066 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44067 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44068 grub_file_open.
44069 (grub_rescue_cmd_module): Likewise.
44070
44071 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44072
44073 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44074 kern/sparc64/ieee1275/init.c because it contains _start.
44075 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44076
44077 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44078
44079 * configure.ac: Add support for sparc64 host with ieee1275
44080 firmware.
44081 * configure: Generated from configure.ac.
44082 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44083 instead of int.
44084 (grub_ofdisk_read): Likewise.
44085 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44086 pointers as (void *) to remove a warning.
44087 (grub_ofdisk_close): Likewise.
44088 (grub_ofdisk_read): Likewise.
44089 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44090 returns, so make it return void to remove a warning.
44091 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44092 Corresponding prototype change.
44093 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44094 values, and cast the pointers as (void *) to remove a warning.
44095 (grub_mm_dump): Likewise.
44096 * conf/sparc64-ieee1275.mk: New file.
44097 * conf/sparc64-ieee1275.rmk: Likewise.
44098 * include/grub/sparc64/setjmp.h: Likewise.
44099 * include/grub/sparc64/types.h: Likewise.
44100 * include/grub/sparc64/ieee1275/console.h: Likewise.
44101 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44102 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44103 * include/grub/sparc64/ieee1275/time.h: Likewise.
44104 * kern/sparc64/cache.c: Likewise.
44105 * kern/sparc64/dl.c: Likewise.
44106 * kern/sparc64/ieee1275/init.c: Likewise.
44107 * kern/sparc64/ieee1275/openfw.c: Likewise.
44108
44109 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44110
44111 * util/console.c (grub_ncurses_putchar): If C is greater than
44112 0x7f, set C to a question mark.
44113 (grub_ncurses_getcharwidth): New function.
44114 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44115 getcharwidth.
44116
44117 * normal/menu.c (print_entry): Made aware of Unicode. First,
44118 convert TITLE to UCS-4, and predict the cursor position by
44119 grub_getcharwidth.
44120
44121 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44122 const to SRC.
44123 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44124
44125 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44126
44127 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44128 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44129 grub_strcat.
44130
44131 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44132 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44133 grub_strcpy and grub_strlen. Take it into account that a space
44134 character is inserted as a delimiter.
44135
44136 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44137
44138 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44139 invalid magic in the error.
44140
44141 * commands/search.c: New file.
44142
44143 * util/grub-emu.c (main): Call grub_search_init and
44144 grub_search_fini.
44145
44146 * kern/rescue.c (grub_rescue_print_disks): Removed.
44147 (grub_rescue_print_devices): New function.
44148 (grub_rescue_cmd_ls): Use grub_device_iterate with
44149 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44150 grub_rescue_print_disks.
44151
44152 * kern/partition.c (grub_partition_iterate): Return the result of
44153 PARTMAP->ITERATE instead of GRUB_ERRNO.
44154
44155 * kern/device.c: Include grub/partition.h.
44156 (grub_device_iterate): New function.
44157
44158 * include/grub/partition.h (grub_partition_iterate): Return int
44159 instead of grub_err_t.
44160
44161 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44162 prototype.
44163 [GRUB_UTIL] (grub_search_fini): Likewise.
44164
44165 * include/grub/device.h (grub_device_iterate): New prototype.
44166
44167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44168 commands/search.c.
44169 (pkgdata_MODULES): Added search.mod.
44170 (search_mod_SOURCES): New variable.
44171 (search_mod_CFLAGS): Likewise.
44172
44173 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44174 (pkgdata_MODULES): Added search.mod.
44175 (search_mod_SOURCES): New variable.
44176 (search_mod_CFLAGS): Likewise.
44177
44178 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44179 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44180 All callers changed.
44181
44182 * DISTLIST: Added commands/search.c.
44183
44184 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44185
44186 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44187 conversion.
44188 (grub_getcharwidth): New function.
44189
44190 * kern/misc.c (grub_utf8_to_ucs4): New function.
44191
44192 * include/grub/term.h (struct grub_term): Added a new member
44193 "getcharwidth".
44194 (grub_getcharwidth): New prototype.
44195
44196 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44197
44198 * term/i386/pc/console.c (map_char): New function. Segregated from
44199 grub_console_putchar.
44200 (grub_console_putchar): Use map_char.
44201 (grub_console_getcharwidth): New function.
44202 (grub_console_term): Specified grub_console_getcharwidth as
44203 getcharwidth.
44204
44205 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44206 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44207
44208 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44209 GRUB_ERRNO.
44210 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44211 on grub_strtoul completely.
44212 (write_char): Declare local variables in the beginning of the
44213 function.
44214 (grub_vesafb_getcharwidth): New function.
44215 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44216 getcharwidth.
44217
44218 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44219
44220 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44221 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44222 commands/i386/pc/vbetest.c.
44223
44224 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44225 call grub_vbe_get_controller_info again, because the returned
44226 information is volatile.
44227 (grub_vbe_set_video_mode): Mostly rewritten.
44228 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44229 grub_vbe_status_t correctly.
44230 (grub_vbe_get_video_mode_info): Likewise.
44231 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44232 several if statements.
44233
44234 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44235 * commands/i386/pc/vbeinfo.c: ... this.
44236
44237 * commands/i386/pc/vbe_test.c: Renamed to ...
44238 * commands/i386/pc/vbetest.c: ... this.
44239
44240 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44241 ...
44242 (grub_cmd_vbeinfo): ... this. Save video modes before
44243 iterating. Skip a video mode, if it is not available, not enough
44244 information is given or it is monochrome. Show the memory
44245 model. Leave the interpretation of MODEVAR to grub_strtoul
44246 completely.
44247 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44248 (GRUB_MOD_FINI): Likewise.
44249
44250 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44251 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44252 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44253 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44254 grub_strtoul completely.
44255 (real2pm): Removed.
44256 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44257 (GRUB_MOD_FINI): Likewise.
44258
44259 * normal/misc.c: Include grub/mm.h.
44260
44261 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44262 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44263 (vbe_list_modes_mod_SOURCES): Removed.
44264 (vbe_list_modes_mod_CFLAGS): Likewise.
44265 (vbe_test_mod_SOURCES): Likewise.
44266 (vbe_test_mod_CFLAGS): Likewise.
44267 (vbeinfo_mod_SOURCES): New variable.
44268 (vbeinfo_mod_CFLAGS): Likewise.
44269 (vbetest_mod_SOURCES): Likewise.
44270 (vbetest_mod_CFLAGS): Likewise.
44271
44272 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44273
44274 * normal/misc.c: New file.
44275
44276 * DISTLIST: Added normal/misc.c.
44277
44278 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44279 DISK to HOOK. Call HOOK with DISK.
44280 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44281 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44282 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44283
44284 * normal/menu_entry.c (struct screen): Added a new member
44285 "completion_shown".
44286 (completion_buffer): New global variable.
44287 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44288 (store_completion): New function.
44289 (complete): Likewise.
44290 (clear_completions): Likewise.
44291 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44292 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44293 a tab, call complete.
44294
44295 * normal/completion.c (disk_dev): Removed.
44296 (print_simple_completion): Likewise.
44297 (print_partition_completion): Likewise.
44298 (print_func): New global variable.
44299 (add_completion): Do not take the arguments WHAT or PRINT any
44300 longer. Added a new argument TYPE. Instead of printing directly,
44301 call PRINT_FUNC if not NULL.
44302 All callers changed.
44303 (complete_device): Use a local variable DEV instead of
44304 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44305 (grub_normal_do_completion): Take a new argument HOOK. Do not
44306 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44307 empty string, return NULL instead.
44308 All callers changed.
44309
44310 * normal/cmdline.c (print_completion): New function.
44311
44312 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44313 to HOOK.
44314 All callers changed.
44315
44316 * kern/disk.c (grub_print_partinfo): Removed.
44317
44318 * include/grub/partition.h (struct grub_partition_map): Add a new
44319 argument DISK into HOOK of ITERATE.
44320 (grub_partition_iterate): Add a new argument DISK to HOOK.
44321
44322 * include/grub/normal.h (enum grub_completion_type): New enum.
44323 (grub_completion_type_t): New type.
44324 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44325 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44326 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44327 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44328 (grub_normal_do_completion): Added a new argument HOOK.
44329 (grub_normal_print_device_info): New prototype.
44330
44331 * include/grub/disk.h (grub_print_partinfo): Removed.
44332
44333 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44334 (normal_mod_SOURCES): Likewise.
44335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44336 (normal_mod_SOURCES): Likewise.
44337
44338 * commands/ls.c (grub_ls_list_disks): Use
44339 grub_normal_print_device_info instead of grub_print_partinfo. Free
44340 PNAME.
44341 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44342 duplicating the code.
44343
44344 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44345
44346 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44347 follow GCS more precisely.
44348 * commands/i386/pc/vbe_test.c: Likewise.
44349 * include/grub/i386/pc/vbe.h: Likewise.
44350 * term/i386/pc/vesafb.c: Likewise.
44351 * video/i386/pc/vbe.c: Likewise.
44352
44353 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44354
44355 * DISTLIST: Added term/i386/pc/vesafb.c
44356 DISTLIST: Added video/i386/pc/vbe.c
44357 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44358 DISTLIST: Added commands/i386/pc/vbe_test.c.
44359 * commands/i386/pc/vbe_list_modes.c: New file.
44360 * commands/i386/pc/vbe_test.c: Likewise.
44361 * term/i386/pc/vesafb.c: Likewise.
44362 * video/i386/pc/vbe.c: Likewise.
44363 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44364 (grub_vbe_probe) Added prototype.
44365 (grub_vbe_set_video_mode) Likewise.
44366 (grub_vbe_get_video_mode) Likewise.
44367 (grub_vbe_get_video_mode_info) Likewise.
44368 (grub_vbe_set_pixel_rgb) Likewise.
44369 (grub_vbe_set_pixel_index) Likewise.
44370 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44371 (pkgdata_MODULES): Added vesafb.mod.
44372 (pkgdata_MODULES): Added vbe_list_modes.mod.
44373 (pkgdata_MODULES): Added vbe_test.mod.
44374 (vbe_mod_SOURCES): Added.
44375 (vbe_mod_CFLAGS): Likewise.
44376 (vesafb_mod_SOURCES): Likewise.
44377 (vesafb_mod_CFLAGS): Likewise.
44378 (vbe_list_modes_mod_SOURCES): Likewise.
44379 (vbe_list_modes_mod_CFLAGS): Likewise.
44380 (vbe_test_mod_SOURCES): Likewise.
44381 (vbe_test_mod_CFLAGS): Likewise.
44382
44383 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44384
44385 * normal/command.c (grub_command_execute): If INTERACTIVE is
44386 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44387 CMDLINE. Disable the pager if INTERACTIVE is true.
44388 All callers are changed.
44389
44390 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44391 before reading a config file.
44392 * normal/main.c (read_config_file): Even if a command is not
44393 found, register it if it is within an entry.
44394
44395 * util/grub-emu.c: Include sys/types.h and unistd.h.
44396 (options): Added --hold.
44397 (struct arguments): Added a new member "hold".
44398 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44399 missing.
44400 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44401 cleared by a debugger, if it is not zero.
44402
44403 * include/grub/normal.h (grub_command_execute): Add an argument
44404 INTERACTIVE.
44405
44406 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44407
44408 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44409
44410 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44411
44412 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44413 program with another one, because the old one didn't detect a bug
44414 in gcc-3.4. Always use regparm 2, because the new test is still
44415 not enough for gcc-4.0. Someone must investigate a simple test
44416 case which detects a bug in gcc-4.0.
44417
44418 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44419
44420 * DISTLIST: Added normal/completion.c.
44421
44422 * normal/completion.c: New file.
44423
44424 * term/i386/pc/console.c (grub_console_getwh): New function.
44425 (grub_console_term): Assign grub_console_getwh to getwh.
44426
44427 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44428 function is defined in normal/completion.c as
44429 grub_normal_do_completion.
44430 (grub_cmdline_get): Use grub_normal_do_completion instead of
44431 grub_tab_complete.
44432
44433 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44434 returns non-zero, otherwise return 0.
44435 (grub_partition_iterate): First, probe the partition map. Then,
44436 call ITERATE only for this partition map.
44437
44438 * kern/misc.c (grub_strncmp): Rewritten.
44439
44440 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44441 returns non-zero. Otherwise return 0.
44442
44443 * include/grub/partition.h (grub_partition_map_iterate): Return
44444 int instead of void.
44445
44446 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44447
44448 * include/grub/misc.h (grub_strncmp): Change the type of N to
44449 grub_size_t.
44450
44451 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44452 of void.
44453
44454 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44455 unsigned explicitly before comparing it with I.
44456
44457 * kern/main.c (grub_env_write_root): Add the attribute unused into
44458 VAR.
44459
44460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44461 normal/completion.c.
44462 (normal_mod_SOURCES): Likewise.
44463 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44464 (normal_mod_SOURCES): Likewise.
44465
44466 * normal/command.c (grub_iterate_commands): If ITERATE returns
44467 non-zero, return one immediately.
44468
44469 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44470
44471 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44472 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44473 descriptions.
44474 (grub_vbe_get_controller_info): New function.
44475 (grub_vbe_get_mode_info): Likewise.
44476 (grub_vbe_set_mode): Likewise.
44477 (grub_vbe_get_mode): Likewise.
44478 (grub_vbe_set_memory_window): Likewise.
44479 (grub_vbe_get_memory_window): Likewise.
44480 (grub_vbe_set_scanline_length): Likewise.
44481 (grub_vbe_get_scanline_length): Likewise.
44482 (grub_vbe_set_display_start): Likewise.
44483 (grub_vbe_get_display_start): Likewise.
44484 (grub_vbe_set_palette_data): Likewise.
44485 * include/grub/i386/pc/vbe.h: New file.
44486
44487 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44488
44489 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44490 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44491 * DISTLIST: Likewise.
44492 * kern/ieee1275/of.c: Moved to ...
44493 * kern/ieee1275/ieee1275.c: ... here.
44494
44495 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44496
44497 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44498 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44499 Pass 0 as `end' parameter to grub_strtoul().
44500
44501 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44502
44503 * include/grub/powerpc/ieee1275/console.h: Do not include
44504 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44505 ifdef.
44506 (grub_console_cur_color): Remove i386-specific prototype.
44507 (grub_console_real_putchar): Likewise.
44508 (grub_console_checkkey): Likewise.
44509 (grub_console_getkey): Likewise.
44510 (grub_console_getxy): Likewise.
44511 (grub_console_gotoxy): Likewise.
44512 (grub_console_cls): Likewise.
44513 (grub_console_setcursor): Likewise.
44514 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44515 Include <grub/machine/console.h>.
44516 * term/ieee1275/ofconsole.c: Likewise.
44517
44518 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44519
44520 * Makefile.in (LIBLZO): New variable.
44521
44522 * configure.ac: Check for LZO version 2.
44523
44524 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44525 lzo/lzo1x.h instead of lzo1x.h.
44526
44527 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44528 of -llzo.
44529
44530 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44531 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44532
44533 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44534 copying the data from PARTITION to P.
44535
44536 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44537
44538 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44539 negative, unload the module.
44540
44541 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44542 map is "pc_partition_map" but not "pc".
44543 (usage): Fix the description. The options are --boot-image and
44544 --core-image but not --boot-file or --core-file.
44545 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44546 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44547 DEFAULT_DIRECTORY.
44548
44549 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44550 --core-file. Specify INSTALL_DEVICE as an argument.
44551
44552 * util/console.c: Include config.h.
44553 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44554 [HAVE_NCURSES_H]: Include ncurses.h.
44555 [HAVE_CURSES_H]: Include curses.h.
44556 [!A_NORMAL] (A_NORMAL): Defined as zero.
44557 [!A_STANDOUT] (A_STANDOUT): Likewise.
44558
44559 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44560 -lncurses.
44561 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44562
44563 * configure.ac: Check for curses libraries and headers.
44564
44565 * Makefile.in (LIBCURSES): New variable.
44566
44567 * genmk.rb (Script::rule): Set the executable bits.
44568
44569 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44570 name of the PC partition map is "pc_partition_map" but not "pc".
44571
44572 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44573
44574 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44575 (modules): Likewise.
44576 (usage): Added descriptions for --modules and --grub-probefs.
44577 Handle --modules and --grub-probefs. Save the arguments in MODULES
44578 and GRUB_PROBEFS, respectively.
44579 Auto-detect a filesystem module against GRUBDIR. If the result is
44580 empty and modules are not specified explicitly, abort the
44581 installation. Add the result to MODULES.
44582
44583 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44584 disk/powerpc/ieee1275/ofdisk.c,
44585 include/grub/powerpc/ieee1275/init.h and
44586 term/powerpc/ieee1275/ofconsole.c.
44587 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44588 term/ieee1275/ofconsole.c.
44589
44590 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44591
44592 * COPYING: Upgraded to the latest version. Only the address of the
44593 FSF office has changed.
44594
44595 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44596
44597 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44598 kern/ieee1275.c with kern/ieee1275/of.c.
44599
44600 * kern/ieee1275.c: Moved to ...
44601 * kern/ieee1275/of.c: ... here.
44602
44603 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44604
44605 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44606 readability.
44607
44608 * config.guess: Updated to the latest version from gnulib.
44609 * config.sub: Likewise.
44610 * install.sh: Likewise.
44611 * mkinstalldirs: Likewise.
44612
44613 * include/grub/console.h: Removed. This file is arch-specific. Do
44614 not put this in include/grub.
44615
44616 * include/grub/i386/pc/console.h: Resurrected.
44617
44618 * util/console.c: Include grub/machine/console.h instead of
44619 grub/console.h.
44620 * util/grub-emu.c: Likewise.
44621
44622 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44623
44624 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44625 hardcoded value.
44626
44627 From Vincent Pelletier <subdino2004@yahoo.fr>
44628 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
44629 Redefined to use grub_getwh.
44630 (grub_term): New member named getwh.
44631 (grub_getwh): New prototype.
44632 * kern/term.c (grub_getwh): New function.
44633 * term/i386/pc/console.c (grub_console_getwh): New function.
44634 (grub_console_term): New member `getwh'.
44635 * term/i386/pc/vga.c (grub_vga_getwh): New function.
44636 (grub_vga_term): New member `getwh'.
44637 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
44638 grub_ssize_t.
44639 (grub_ofconsole_getw): New function.
44640 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
44641 (grub_ofconsole_term): New field named getwh and new initial
44642 value.
44643
44644 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
44645
44646 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
44647 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
44648 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
44649 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
44650 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
44651 of <grub/machine/ieee1275.h>.
44652 * commands/ieee1275/reboot.c: Likewise.
44653 * boot/powerpc/ieee1275/ieee1275.c: Move ...
44654 * kern/ieee1275.c: ... to here. All users updated. Change all
44655 parameter structs to use new type `grub_ieee1275_cell_t'.
44656 * term/powerpc/ieee1275/ofconsole.c: Move ...
44657 * term/ieee1275/ofconsole.c: ... to here. All users updated.
44658 * disk/powerpc/ieee1275/ofdisk.c: Move ...
44659 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
44660 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
44661 to return int.
44662 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
44663 Remove unused prototypes. All users updated.
44664 * include/grub/powerpc/ieee1275/console.h: Removed.
44665 * include/grub/powerpc/ieee1275/ieee1275.h: Define
44666 `grub_ieee1275_cell_t'.
44667 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
44668 Cast comparisons with -1 to the correct type.
44669 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
44670 type to match `grub_ieee1275_entry_fn'.
44671
44672 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
44673
44674 * DISTLIST: Added util/i386/pc/grub-probefs.c.
44675
44676 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
44677 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
44678 partmap/sun.c.
44679 (grub_probefs_SOURCES): New variable.
44680
44681 * util/i386/pc/grub-probefs.c: New file.
44682
44683 * util/i386/pc/grub-setup.c (main): Call
44684 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
44685 grub_hfs_init and grub_jfs_init to initialize the system. Call
44686 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
44687 grub_pc_partition_map_fini to finish the system.
44688
44689 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
44690
44691 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
44692 function.
44693 (grub_multiboot_load_elf32): Likewise.
44694 (grub_multiboot_is_elf64): Likewise.
44695 (grub_multiboot_load_elf64): Likewise.
44696 (grub_multiboot_load_elf): Likewise.
44697 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
44698 an ELF32 or ELF64 file.
44699 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
44700
44701 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
44702 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
44703 NULL before calling FS->LABEL.
44704 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
44705 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
44706 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
44707 before calling FS->LABEL.
44708
44709 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
44710
44711 * util/i386/pc/grub-install.in (datadir): New variable.
44712 (libdir): Removed.
44713 (pkgdatadir): New variable.
44714 (pkglibdir): Removed.
44715
44716 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
44717
44718 * DISTLIST: Added util/i386/pc/grub-install.in.
44719
44720 * util/i386/pc/grub-install.in: New file.
44721
44722 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
44723 (grub_install_SOURCES): Likewise.
44724
44725 * genmk.rb: Added support for scripts.
44726 (Script): New class.
44727 (scripts): New variable.
44728
44729 * Makefile.in (install-local): Install sbin_SCRIPTS by
44730 INSTALL_SCRIPT.
44731 (uninstall): Remove sbin_SCRIPTS.
44732
44733 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
44734 device, try to get a GRUB device by
44735 grub_util_biosdisk_get_grub_dev.
44736 Free DEST_DEV.
44737
44738 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
44739 description for --device-map.
44740
44741 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44742
44743 Change the semantics of variable hooks. They now return strings
44744 instead of error values.
44745
44746 * util/i386/pc/grub-setup.c: Include grub/env.h.
44747 (setup): Use grub_device_set_root instead of grub_env_set.
44748
44749 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
44750 grub_env_get instead of grub_device_set_root and
44751 grub_device_get_root, respectively.
44752
44753 * kern/main.c (grub_env_write_root): New function.
44754 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
44755 grub_env_set instead of grub_device_set_root.
44756
44757 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
44758 many variables.
44759 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
44760 rather than calling ENV->WRITE_HOOK afterwards.
44761 (grub_env_get): Return the result of ENV->READ_HOOK rather than
44762 passing a pointer of a pointer.
44763 (grub_register_variable_hook): Change the types of "read_hook" and
44764 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
44765 respectively.
44766 Allocate the default empty string on the heap, because this string
44767 may be freed later.
44768
44769 * kern/device.c: Include grub/env.h.
44770 (grub_device_set_root): Removed.
44771 (grub_device_get_root): Likewise.
44772 (grub_device_open): Use grub_env_get instead of
44773 grub_device_get_root.
44774
44775 * include/grub/env.h (grub_env_read_hook_t): New type.
44776 (grub_env_write_hook_t): Likewise.
44777 (grub_env_var): Change the types of "read_hook" and "write_hook"
44778 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
44779 (grub_register_variable_hook): Likewise.
44780
44781 * include/grub/device.h (grub_device_set_root): Removed.
44782 (grub_device_set_root): Likewise.
44783
44784 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
44785 make sure that DIRNAME terminates with '/', so that
44786 grub_fat_find_dir will fail if PATH is not a directory.
44787
44788 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
44789 from DIRNAME.
44790 Use the qualifier auto for print_files and print_files_long.
44791 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
44792 as a regular file.
44793 Put a newline only if there is no error.
44794 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
44795 used.
44796
44797 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44798
44799 * kern/partition.c (grub_partition_probe): Initialize PART to
44800 NULL. Otherwise, when no partition map is registered, this returns
44801 a garbage.
44802
44803 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
44804
44805 * partmap/apple.c (apple_partition_map_iterate): Check if POS
44806 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
44807 valid.
44808
44809 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
44810
44811 * commands/ls.c (grub_ls_list_disks): Print the filesystem
44812 information on each device, if it does not have partitions. Print
44813 "Device" instead of "Disk", because this function is not specific
44814 to disk devices.
44815
44816 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
44817 static to ensure that it is put on the memory rather than a
44818 register.
44819
44820 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44821
44822 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
44823 (grub_cat_init): Likewise.
44824 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
44825 (options): Likewise.
44826 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
44827 (grub_configfile_init): Likewise.
44828 * font/manager.c (GRUB_MOD_INIT): Likewise.
44829 * commands/help.c (GRUB_MOD_INIT): Likewise.
44830 (grub_help_init): Likewise.
44831 * normal/command.c (grub_command_init): Likewise.
44832 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
44833 * disk/loopback.c (grub_loop_init): Likewise.
44834 (GRUB_MOD_INIT): Likewise.
44835 * commands/ls.c (grub_ls_init): Likewise.
44836 (GRUB_MOD_INIT): Likewise.
44837 (options): Likewise.
44838 * commands/boot.c (grub_boot_init): Likewise.
44839 (GRUB_MOD_INIT): Likewise.
44840 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
44841 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
44842 (GRUB_MOD_INIT): Likewise.
44843 * commands/cmp.c (grub_cmp_init): Likewise.
44844 (GRUB_MOD_INIT): Likewise.
44845
44846 * normal/arg.c: Use <> instead of "" to include header files.
44847 (SHORT_ARG_HELP): New macro.
44848 (SHORT_ARG_USAGE): Likewise.
44849 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
44850 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
44851 descriptions.
44852 (find_short): Check if C is 'h' or 'u' explicitly.
44853 (grub_arg_show_help): Use space characters instead of tabs. Treat
44854 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
44855 are shown with --help and --usage only if they are not used for
44856 the command itself.
44857 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
44858 'h' and 'u'.
44859
44860 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
44861 const into "longarg". Change the type of "shortarg" to int.
44862
44863 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44864
44865 * boot/i386/pc/boot.S (boot_drive_check): New label.
44866
44867 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
44868 macro.
44869
44870 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
44871 which do not pass a boot drive correctly. Copied from GRUB Legacy.
44872
44873 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44874
44875 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
44876 When turning off Gate A20, skip the check and return immediately,
44877 because this is not fatal usually.
44878
44879 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44880
44881 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
44882 be 0x7C00 instead of 0x8000.
44883
44884 * boot/i386/pc/pxeboot.S: Rewritten.
44885
44886 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
44887 EXT_C.
44888 (gate_a20_check_state): Read a byte from 0x108000. Invert the
44889 result.
44890
44891 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
44892
44893 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
44894 robustness. This routine now supports a BIOS call and System
44895 Control Port A to modify the gate A20.
44896
44897 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44898 Increased to 0x440.
44899
44900 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
44901
44902 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
44903 device path and resulting ihandle.
44904 (grub_ofdisk_close): dprintf the ihandle being closed.
44905 (grub_ofdisk_read): dprintf function parameters.
44906 * kern/mm.c (grub_mm_init_region): Likewise.
44907 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
44908 (grub_linux_boot): dprintf the Linux entry point, initrd address and
44909 size, and boot arguments.
44910 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
44911 before loading into memory.
44912 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
44913 before loading into memory.
44914
44915 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
44916
44917 * kern/mm.c: Added much documentation.
44918 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
44919 8, set to 5 instead of 8.
44920
44921 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44922
44923 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
44924
44925 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
44926 (grub_mkdevicemap_SOURCES): New variable.
44927
44928 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
44929 lib/device.c of GRUB Legacy.
44930
44931 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44932
44933 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
44934 instead of PATH is NULL.
44935
44936 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
44937
44938 * commands/cmp.c (BUFFER_SIZE): New macro.
44939 (grub_cmd_cmp): Close the right file at the right time. Compare
44940 only data just read. Don't report files of different size as
44941 identical. Dynamically allocate buffers. Move variable
44942 declarations at the beginning of function.
44943
44944 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
44945
44946 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
44947 reverse.
44948
44949 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
44950
44951 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
44952 when backspace is pressed at beginning of line.
44953
44954 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
44955
44956 * DISTLIST: Added genfslist.sh.
44957
44958 * normal/main.c (fs_module_list): New variable.
44959 (autoload_fs_module): New function.
44960 (read_fs_list): Likewise.
44961 (grub_normal_execute): Call read_fs_list.
44962
44963 * kern/fs.c (grub_fs_autoload_hook): New variable.
44964 (grub_fs_probe): Added support for auto-loading.
44965
44966 * include/grub/normal.h (struct grub_fs_module_list): New struct.
44967 (grub_fs_module_list_t): New type.
44968
44969 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
44970 (grub_fs_autoload_hook): New prototype.
44971
44972 * genfslist.sh: New file.
44973
44974 * genmk.rb: Added a rule to generate a filesystem list.
44975
44976 2005-06-30 Marco Gerards <metgerards@student.han.nl>
44977
44978 * configure.ac: Fix the test for cross-compiling.
44979
44980 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
44981 define GRUB_UTIL anymore.
44982
44983 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
44984 so this function works on other systems than just big endian.
44985 (load_modules): Likewise.
44986 (add_segments): Likewise.
44987
44988 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
44989
44990 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
44991 contains `l' modifier, get a long from va_arg().
44992
44993 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
44994
44995 * kern/mm.c (grub_free): If the next free block which is being
44996 merged is the first free block, set the first block to the block
44997 being freed.
44998 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
44999
45000 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45001
45002 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45003 `grub_ieee1275_chosen'.
45004
45005 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45006
45007 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45008 (grub_ieee1275_chosen): New variable.
45009 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45010 `chosen'.
45011 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45012 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45013 Rename first argument to `phandle' for consistency.
45014 (grub_ieee1275_get_property_length): Likewise.
45015 (grub_ieee1275_next_property): Likewise. Change type of first argument
45016 to grub_ieee1275_phandle_t.
45017 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45018 Move export next to declaration.
45019 (grub_ieee1275_chosen): New variable.
45020 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45021 Correct cosmetic typo.
45022 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45023 `grub_ieee1275_chosen'.
45024 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45025 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45026 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45027 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45028 `grub_ieee1275_chosen'.
45029
45030 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45031
45032 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45033 /chosen/bootargs.
45034 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45035 /chosen/bootargs as "variable=value" pairs.
45036
45037 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45038
45039 * include/grub/misc.h (grub_dprintf): New macro.
45040 (grub_real_dprintf): New prototype.
45041 (grub_strword): Likewise.
45042 (grub_iswordseparator): Likewise.
45043 * kern/misc.c (grub_real_dprintf): New function.
45044 (grub_strword): Likewise.
45045 (grub_iswordseparator): Likewise.
45046
45047 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45048
45049 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45050 (roundup): Remove macro.
45051 (grub_ieee1275_flags): Make static.
45052 (grub_ieee1275_realmode): Remove.
45053 (grub_ieee1275_test_flag): New function.
45054 (grub_ieee1275_set_flag): Likewise.
45055 (find_options): Rename to `grub_ieee1275_find_options'; update
45056 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45057 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45058 (cmain): New prototype.
45059 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45060 `grub_ieee1275_flags' directly.
45061 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45062 machine/biosdisk.h.
45063 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45064 Don't include grub/machine/init.h.
45065 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45066 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45067 Remove prototype.
45068 (grub_ieee1275_realmode): Likewise.
45069 (grub_ieee1275_flag): New enum.
45070 (grub_ieee1275_test_flag): New prototype.
45071 (grub_ieee1275_set_flag): New prototype.
45072 * include/grub/powerpc/ieee1275/init.h: Remove file.
45073 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45074 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45075 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45076 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45077 comment.
45078 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45079 `grub_ieee1275_test_flag'.
45080 (grub_ieee1275_encode_devname): Likewise.
45081
45082 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45083
45084 * include/grub/powerpc/ieee1275/ieee1275.h
45085 (grub_ieee1275_encode_devname): New prototype.
45086 (grub_ieee1275_get_filename): Likewise.
45087 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45088 function.
45089 (grub_set_prefix): Likewise.
45090 (grub_machine_init): Call grub_set_prefix.
45091 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45092 (grub_parse_type): New enum.
45093 (grub_ieee1275_get_devargs): New function.
45094 (grub_ieee1275_get_devname): Likewise.
45095 (grub_ieee1275_parse_args): Likewise.
45096 (grub_ieee1275_get_filename): Likewise.
45097 (grub_ieee1275_encode_devname): Likewise.
45098
45099 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45100
45101 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45102 `grub_loader_unset'.
45103
45104 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45105
45106 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45107 instead of grub_ieee1275_interpret.
45108 (grub_halt_init): New function.
45109 (grub_halt_fini): Likewise.
45110 (GRUB_MOD_INIT): Correct message grammar.
45111 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45112 instead of grub_ieee1275_interpret.
45113 (grub_reboot_init): New function.
45114 (grub_reboot_fini): Likewise.
45115 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45116 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45117 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45118 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45119 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45120 function.
45121 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45122 Add prototype.
45123 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45124 prototype.
45125 (grub_halt): Likewise.
45126 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45127 (cmain): Remove __attribute__((unused)).
45128 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45129 (grub_heap_len): Likewise.
45130 (grub_machine_fini): New function.
45131 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45132 (grub_halt): Likewise.
45133 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45134 function.
45135 * util/powerpc/ieee1275/misc.c: New file.
45136
45137 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45138
45139 * DISTLIST: New file.
45140 * gendistlist.sh: Likewise.
45141
45142 * Makefile.in (COMMON_DISTFILES): Removed.
45143 (BOOT_DISTFILES): Likewise.
45144 (CONF_DISTFILES): Likewise.
45145 (DISK_DISTFILES): Likewise.
45146 (FS_DISTFILES): Likewise.
45147 (INCLUDE_DISTFILES): Likewise.
45148 (KERN_DISTFILES): Likewise.
45149 (LOADER_DISTFILES): Likewise.
45150 (TERM_DISTFILES): Likewise.
45151 (UTIL_DISTFILES): Likewise.
45152 (DISTFILES): Likewise.
45153 (uninstall): Uninstall files in $(pkgdata_DATA).
45154 (DISTLIST): New target.
45155 (distdir): Use the contents of the file DISTLIST to get a list of
45156 distributed files.
45157
45158 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45159
45160 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45161 descriptor. This is ported from GRUB Legacy.
45162
45163 * gencmdlist.sh: Added an extra semicolon to make it work with
45164 old sed versions. Reported by Robert Bihlmeyer
45165 <robbe@orcus.priv.at>.
45166
45167 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45168
45169 Automatic loading of commands is supported.
45170
45171 * normal/main.c (read_command_list): New function.
45172 (grub_normal_execute): Call read_command_list.
45173
45174 * normal/command.c (grub_register_command): Return zero or CMD.
45175 Allocate CMD->NAME from the heap.
45176 Initialize CMD->MODULE_NAME to zero.
45177 Find the same name as well. If the same command is found and it is
45178 a dummy command, overwrite members. If it is not a dummy command,
45179 return zero.
45180 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45181 (grub_command_find): If a dummy command is found, load a module
45182 and retry to find a command only once.
45183
45184 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45185 make sure that each command is loaded.
45186
45187 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45188 macro.
45189 (struct grub_command): Remove const from the member `name'.
45190 Add a new member `module_name'.
45191 (grub_register_command): Return grub_command_t.
45192
45193 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45194 sure that each command is loaded.
45195
45196 * genmk.rb (PModule::rule): Specify a module name without the
45197 suffix ".mod" to gencmdlist.sh.
45198
45199 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45200
45201 * gencmdlist.sh: New file.
45202
45203 * genmk.rb (PModule::rule): Generate a rule for a command list.
45204 Clean command.lst.
45205 Generate command.lst from $(COMMANDFILES).
45206
45207 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45208 (DATA): Added $(pkgdata_DATA).
45209 (install-local): Install files in $(pkgdata_DATA).
45210
45211 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45212
45213 * term/i386/pc/vga.c (debug_command): Removed.
45214 (GRUB_MOD_INIT): Do not register the command "debug".
45215
45216 From Hollis Blanchard:
45217 * commands/configfile.c: New file.
45218 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45219 commands/configfile.c.
45220 (pkgdata_MODULES): Added configfile.mod.
45221 (configfile_mod_SOURCES): New variable.
45222 (configfile_mod_CFLAGS): Likewise.
45223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45224 commands/configfile.c.
45225 (pkgdata_MODULES): Added configfile.mod.
45226 (configfile_mod_SOURCES): New variable.
45227 (configfile_mod_CFLAGS): Likewise.
45228 * util/grub-emu.c (main): Call grub_configfile_init and
45229 grub_configfile_fini.
45230 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45231 prototype.
45232 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45233
45234 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45235
45236 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45237 address.
45238
45239 * commands/help.c (grub_cmd_help): Do not print newlines after
45240 the last command in print_command_help.
45241
45242 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45243
45244 * commands/default.h: New file.
45245 * commands/timeout.h: Likewise.
45246 * normal/context.c: Likewise.
45247
45248 * util/misc.c: Do not include sys/times.h.
45249 Include sys/time.h and grub/machine/time.h.
45250 (grub_get_rtc): Rewritten with gettimeofday.
45251
45252 * util/grub-emu.c (main): Call grub_default_init and
45253 grub_timeout_init before grub_normal_init, and call
45254 grub_timeout_fini and grub_default_fini after grub_main.
45255
45256 * util/console.c (grub_ncurses_checkkey): Return the read
45257 character or -1.
45258
45259 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45260 timeouts.
45261
45262 * normal/main.c (read_config_file): Push MENU. If this fails,
45263 print an error and wait for a user input.
45264 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45265 If a menu is empty or an error occurs, pop MENU.
45266 (grub_normal_execute): Pop and free MENU after grub_menu_run
45267 returns.
45268
45269 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45270
45271 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45272 include time.h.
45273 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45274 without GRUB_UTIL.
45275 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45276 time.h.
45277 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45278 without GRUB_UTIL.
45279
45280 * include/grub/normal.h (struct grub_menu_list): New struct.
45281 (grub_menu_list_t): New type.
45282 (struct grub_context): New struct.
45283 (grub_context_t): New type.
45284 (grub_register_command): Got rid of EXPORT_FUNC.
45285 (grub_unregister_command): Likewise.
45286 (grub_context_get): New prototype.
45287 (grub_context_get_current_menu): Likewise.
45288 (grub_context_push_menu): Likewise.
45289 (grub_context_pop_menu): Likewise.
45290 [GRUB_UTIL] (grub_default_init): Likewise.
45291 [GRUB_UTIL] (grub_default_fini): Likewise.
45292 [GRUB_UTIL] (grub_timeout_init): Likewise.
45293 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45294
45295 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45296 commands/timeout.c and normal/context.c.
45297 (pkgdata_MODULES): Added default.mod and timeout.mod.
45298 (normal_mod_SOURCES): Added normal/context.c.
45299 (default_mod_SOURCES): New variable.
45300 (default_mod_CFLAGS): Likewise.
45301 (timeout_mod_SOURCES): Likewise.
45302 (timeout_mod_CFLAGS): Likewise.
45303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45304 conf/i386-pc.rmk.
45305 (pkgdata_MODULES): Added default.mod and timeout.mod.
45306 (normal_mod_SOURCES): Added normal/context.c.
45307 (default_mod_SOURCES): New variable.
45308 (default_mod_CFLAGS): Likewise.
45309 (timeout_mod_SOURCES): Likewise.
45310 (timeout_mod_CFLAGS): Likewise.
45311
45312 * Makefile.in (all-local): Added $(MKFILES).
45313
45314 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45315
45316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45317 (grub_emu_SOURCES): Likewise.
45318 (pkgdata_MODULES): Add `sun.mod'.
45319 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45321 `partmap/sun.c'.
45322 (pkgdata_MODULES): Add `sun.mod'.
45323 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45324 * include/grub/partition.h (grub_sun_partition_map_init): New
45325 prototype.
45326 (grub_sun_partition_map_fini): Likewise.
45327 * partmap/sun.c: New file.
45328 * util/grub-emu.c (main): Initialize and de-initialize the sun
45329 partitionmap support.
45330
45331 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45332
45333 This implements an Emacs-like menu entry editor.
45334
45335 * normal/menu_entry.c: New file.
45336
45337 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45338 characters to ASCII.
45339 (saved_char): New variable.
45340 (grub_ncurses_checkkey): Rewritten completely.
45341 (grub_ncurses_getkey): Likewise.
45342 (grub_ncurses_init): Call raw instead of cbreak.
45343
45344 * normal/menu.c (print_entry): Do not put a space.
45345 (init_page): Renamed to ...
45346 (grub_menu_init_page): ... this. All callers changed.
45347 (edit_menu_entry): Removed.
45348 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45349
45350 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45351
45352 * kern/misc.c (grub_vprintf): Call grub_refresh.
45353
45354 * normal/menu.c (DISP_LEFT): Renamed to ...
45355 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45356 * normal/menu.c (DISP_UP): Renamed to ...
45357 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45358 * normal/menu.c (DISP_RIGHT): Renamed to ...
45359 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45360 * normal/menu.c (DISP_DOWN): Renamed to ...
45361 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45362 * normal/menu.c (DISP_HLINE): Renamed to ...
45363 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45364 * normal/menu.c (DISP_VLINE): Renamed to ...
45365 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45366 * normal/menu.c (DISP_UL): Renamed to ...
45367 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45368 * normal/menu.c (DISP_UR): Renamed to ...
45369 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45370 * normal/menu.c (DISP_LL): Renamed to ...
45371 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45372 * normal/menu.c (DISP_LR): Renamed to ...
45373 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45374 * normal/menu.c (TERM_WIDTH): Renamed to ...
45375 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45376 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45377 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45378 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45379 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45380 * normal/menu.c (TERM_MARGIN): Renamed to ...
45381 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45382 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45383 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45384 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45385 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45386 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45387 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45388 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45389 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45390 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45391 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45392 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45393 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45394 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45395 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45396 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45397 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45398 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45399 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45400 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45401 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45402 All callers changed.
45403
45404 * include/grub/normal.h: New prototype.
45405
45406 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45407 normal/menu_entry.c.
45408 (normal_mod_SOURCES): Likewise.
45409 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45410 (normal_mod_SOURCES): Likewise.
45411
45412 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45413
45414 * include/grub/normal.h (grub_halt_init): New prototype.
45415 (grub_halt_fini): Likewise.
45416 (grub_reboot_init): Likewise.
45417 (grub_reboot_fini): Likewise.
45418
45419 * util/grub-emu.c: Include signal.h.
45420 (main_env): New global variable.
45421 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45422 catch C-c.
45423 (grub_machine_fini): New function.
45424 (main): Call grub_halt_init and grub_reboot_init before
45425 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45426 Call setjmp with MAIN_ENV to go back afterwards.
45427 Call grub_machine_fini right before return.
45428
45429 * include/grub/util/misc.h: Include setjmp.h.
45430 (main_env): New prototype.
45431
45432 * include/grub/kernel.h (grub_machine_fini): New prototype.
45433 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45434 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45435
45436 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45437 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45438 * term/i386/pc/console.c (grub_console_fini): Likewise.
45439
45440 * util/i386/pc/misc.c: New file.
45441
45442 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45443 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45444 commands/i386/pc/reboot.c.
45445
45446 2005-02-14 Guillem Jover <guillem@hadrons.org>
45447
45448 * include/grub/dl.h (grub_dl_check_header): New prototype.
45449 (grub_arch_dl_check_header): Change return type to grub_err_t,
45450 remove size parameter and export function. Update all callers.
45451 * kern/dl.c (grub_dl_check_header): New function.
45452 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45453 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45454 are inside the core.
45455 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45456 independent ELF header checks.
45457 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45458 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45459 `grub_dl_check_header' instead of explicit checks. Check for the
45460 ELF type.
45461 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45462 `grub_dl_check_header' instead of explicit checks. Remove arch
45463 specific ELF header checks.
45464
45465 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45466 argument SIZE.
45467
45468 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45469
45470 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45471 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45472
45473 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45474
45475 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45476 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45477 (part_map_iterate): Clear `grub_errno' and return 0 if
45478 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45479 * partmap/amiga.c (amiga_partition_map_iterate): Return
45480 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45481 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45482
45483 2005-02-01 Guillem Jover <guillem@hadrons.org>
45484
45485 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45486 help info.
45487
45488 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45489
45490 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45491 Removed prototype.
45492 (grub_rescue_cmd_linux): New prototype.
45493 (grub_rescue_cmd_initrd): Likewise.
45494 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45495 `bi_rec'.
45496 (grub_linux_release_mem): Release the memory for the initrd.
45497 (grub_load_linux): Renamed from this...
45498 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45499 Changed `entry' not to be static. Loop over memory regions to
45500 find another one when the default fails.
45501 (grub_rescue_cmd_initrd): New function.
45502 (grub_linux_init): Remove function.
45503 (grub_linux_fini): Likewise.
45504 (GRUB_MOD_INIT): Register `initrd'.
45505 (GRUB_MOD_FINI): Unregister `initrd'.
45506 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45507 Function removed.
45508 (grub_linux_normal_fini): Likewise.
45509 (GRUB_MOD_INIT): Register `initrd'.
45510 (GRUB_MOD_FINI): Unregister `initrd'.
45511
45512 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45513
45514 * commands/help.c: New file.
45515 * normal/arg.c (show_help): Renamed to...
45516 (grub_arg_show_help): ... this.
45517 * commands/i386/pc/halt.c: New file.
45518 * commands/i386/pc/reboot.c: Likewise.
45519 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45520 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45521 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45522 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45523 variables.
45524 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45525 `commands/help.c'.
45526 (pkgdata_MODULES): Add `help.mod'.
45527 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45528 * grub/i386/pc/init.h (grub_reboot): New prototype.
45529 (grub_halt): Likewise.
45530 * include/grub/normal.h (grub_arg_show_help): New prototype.
45531 (grub_help_init): Likewise.
45532 (grub_help_fini): Likewise.
45533 * util/grub-emu.c (main): Initialize and deinitialize the help
45534 command.
45535
45536 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45537
45538 * normal/command.c (grub_command_init): Fixed the description of
45539 the `set' and `unset' commands.
45540
45541 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45542
45543 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45544 function.
45545 * commands/ieee1275/halt.c: New file.
45546 * commands/ieee1275/reboot.c: Likewise.
45547 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45548 `__attribute__ ((unused))'. Some GCS related fixed.
45549 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45550 (grub_suspend_fini): Likewise.
45551 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45552 and `halt.mod'.
45553 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45554 (halt_mod_CFLAGS): New variables.
45555 * include/grub/powerpc/ieee1275/ieee1275.h
45556 (grub_ieee1275_interpret): New prototype.
45557
45558 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45559
45560 * include/grub/misc.h (memmove): New prototype.
45561 (memcpy): Likewise.
45562
45563 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45564
45565 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45566 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45567
45568 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45569
45570 * kern/misc.c (grub_strndup): Function rewritten.
45571
45572 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45573
45574 * normal/menu.c (TERM_WIDTH): Macro redefined.
45575 (TERM_TOP_BORDER_Y): Likewise.
45576 (draw_border): Replaced while-loop by a for-loop. Make the number
45577 of lines consistent with the number of lines displayed in
45578 print_entries. Added a margin below the rectangle.
45579 (print_entry): Make the entry fit in the rectangle.
45580 (print_entries): Display the scroll arrows next to the right
45581 border.
45582
45583 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45584
45585 * fs/minix.c (grub_minix_find_file): Reserve more space for
45586 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45587 `grub_strncpy' to copy `path' into it.
45588
45589 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45590
45591 Add the loopback device, a device via which files can be accessed
45592 as devices.
45593
45594 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45595 (pkgdata_MODULES): Add loopback.mod.
45596 (loopback_mod_SOURCES): New variable.
45597 (loopback_mod_CFLAGS): Likewise.
45598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45599 `disk/loopback.c'.
45600 (pkgdata_MODULES): Add loopback.mod.
45601 (loopback_mod_SOURCES): New variable.
45602 (loopback_mod_CFLAGS): Likewise.
45603 * disk/loopback.c: new file.
45604 * include/grub/normal.h (grub_loop_init): New prototype.
45605 (grub_loop_fini): New prototype.
45606 * util/grub-emu.c (main): Initialize and de-initialize loopback
45607 support.
45608 * include/grub/disk.h (grub_disk_dev_id): Add
45609 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45610
45611 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45612
45613 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45614 function.
45615 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45616 (suspend_mod_SOURCES): New variable.
45617 (suspend_mod_CFLAGS): Likewise.
45618 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45619 New prototype.
45620 * commands/ieee1275/suspend.c: New file.
45621
45622 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45623
45624 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45625 ((unused))' to `__attribute__ ((used))'.
45626 (GRUB_MOD_FINI): Likewise.
45627 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
45628 * genmk.rb (PModule): Assign space to common symbols when linking
45629 modules.
45630
45631 2005-01-20 Marco Gerards <metgerards@student.han.nl>
45632
45633 * include/grub/mm.h (grub_mm_init_region): Change the type of the
45634 `unsigned' arguments to `grub_size_t'.
45635 (grub_malloc): Likewise.
45636 (grub_realloc): Likewise.
45637 (grub_memalign): Likewise.
45638 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
45639 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45640 * util/misc.c (grub_malloc): Likewise.
45641 (grub_realloc): Likewise.
45642 * kern/mm.c (get_header_from_pointer): Change the casts to
45643 `unsigned' into a cast to `grub_size_t'.
45644
45645 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
45646 point to `currnode' when `currnode' is changed.
45647
45648 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
45649 Schottelius <nico-linux@schottelius.org>.
45650
45651 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
45652
45653 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
45654 (note_path): Remove variable.
45655 (GRUB_IEEE1275_NOTE_NAME): New macro.
45656 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
45657 (grub_ieee1275_note_hdr): New structure.
45658 (grub_ieee1275_note_desc): Likewise.
45659 (grub_ieee1275_note): Likewise.
45660 (load_note): Remove `dir' argument. All callers updated. Remove
45661 `note_img' and `path'. Do not load a file from `note_path'.
45662 Initialize a struct grub_ieee1275_note and write that to `out'.
45663 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
45664
45665 2005-01-05 Marco Gerards <metgerards@student.han.nl>
45666
45667 * util/misc.c (grub_util_read_image): Revert last change. It
45668 called `grub_util_read_at', which seeks from the beginning of the
45669 file.
45670
45671 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
45672
45673 * TODO: Add note about endianness in grub-mkimage.
45674 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
45675 section.
45676 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
45677 (grub_mkimage_SOURCES): New target.
45678 * include/grub/kernel.h (grub_start_addr): Remove variable.
45679 (grub_end_addr): Likewise.
45680 (grub_total_module_size): Likewise.
45681 (grub_kernel_image_size): Likewise.
45682 (GRUB_MODULE_MAGIC): New constant.
45683 (grub_module_info): New structure.
45684 (grub_arch_modules_addr): New prototype.
45685 (grub_get_end_addr): Remove prototype.
45686 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
45687 * include/grub/powerpc/ieee1275/kernel.h: New file.
45688 * include/grub/util/misc.h (grub_util_get_fp_size): New
45689 prototype.
45690 (grub_util_read_at): Likewise.
45691 (grub_util_write_image_at): Likewise.
45692 * kern/main.c (grub_get_end_addr): Remove function.
45693 (grub_load_modules): Call grub_arch_modules_addr instead of using
45694 grub_end_addr. Look for a grub_module_info struct in memory. Use
45695 the grub_module_info fields instead of calling grub_get_end_addr
45696 as loop conditions. Move grub_add_unused_region code here.
45697 (grub_add_unused_region): Remove function.
45698 * kern/i386/pc/init.c: Include grub/cache.h.
45699 (grub_machine_init): Remove call to grub_get_end_addr. Remove
45700 one call to add_mem_region.
45701 (grub_arch_modules_addr): New function.
45702 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
45703 (grub_total_module_size): Likewise.
45704 Include grub/machine/kernel.h.
45705 (grub_arch_modules_addr): New function.
45706 * util/grub-emu.c (grub_end_addr): Remove variable.
45707 (grub_total_module_size): Likewise.
45708 (grub_arch_modules_addr): New function.
45709 * util/misc.c: Include unistd.h.
45710 (grub_util_get_fp_size): New function.
45711 (grub_util_read_at): Likewise.
45712 (grub_util_write_image_at): Likewise.
45713 (grub_util_read_image): Call grub_util_read_at.
45714 (grub_util_write_image): Call grub_util_write_image_at.
45715 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
45716 additional memory in kernel_img for a struct grub_module_info.
45717 Fill in that grub_module_info.
45718 * util/powerpc/ieee1275/grub-mkimage.c: New file.
45719
45720 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45721
45722 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
45723 New function.
45724 * include/grub/powerpc/ieee1275/ieee1275.h
45725 (grub_ieee1275_milliseconds): New prototype.
45726 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
45727 Change to 1000.
45728 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
45729 grub_ieee1275_milliseconds.
45730
45731 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45732
45733 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
45734 variable.
45735 (find_options): New function.
45736 (cmain): Call find_options.
45737 * include/grub/powerpc/ieee1275/ieee1275.h
45738 (grub_ieee1275_realmode): New extern variable.
45739 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
45740 grub_map if grub_ieee1275_realmode is false.
45741
45742 2004-12-29 Marco Gerards <metgerards@student.han.nl>
45743
45744 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
45745 lines are inserted and make it work like readline. Reported by
45746 Vincent Pelletier <subdino2004@yahoo.fr>.
45747
45748 2004-12-28 Marco Gerards <metgerards@student.han.nl>
45749
45750 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
45751
45752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
45753 `kern/powerpc/cache.S'.
45754
45755 2004-12-27 Marco Gerards <metgerards@student.han.nl>
45756
45757 * genmk.rb: Handle the `Program' class in the main loop. Written
45758 by Johan Rydberg <jrydberg@gnu.org>.
45759 (Program): New class.
45760 (programs): New variable.
45761 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
45762 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
45763 instead of "grub/kernel.h". Include <grub/machine/init.h>.
45764 (help_arch): Function removed.
45765 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
45766 `powerpc/libgcc.h' and `loader.h'.
45767 (pkgdata_PROGRAMS): New variable.
45768 (sbin_UTILITIES): Variable removed.
45769 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
45770 (grubof_SOURCES): Variable re-defined so it only includes the
45771 core functionality.
45772 (grubof_CFLAGS): Remove `-DGRUBOF'.
45773 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
45774 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
45775 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
45776 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
45777 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
45778 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
45779 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
45780 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
45781 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
45782 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
45783 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45784 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
45785 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
45786 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
45787 (pc_mod_CFLAGS): New variables.
45788 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
45789 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
45790 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
45791 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
45792 Moved from here...
45793 * include/grub/i386/pc/init.h (grub_os_area_addr)
45794 (rub_os_area_size): ... to here.
45795 * include/grub/powerpc/ieee1275/ieee1275.h
45796 (grub_ieee1275_entry_fn): Export symbol.
45797 * include/grub/powerpc/ieee1275/init.h: New file.
45798 * include/grub/powerpc/libgcc.h: Likewise.
45799 * include/grub/cache.h: Likewise.
45800 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
45801 <hollis@penguinppc.org>.
45802 * kern/dl.c: Include <grub/cache.h>.
45803 (grub_dl_flush_cache): New function.
45804 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
45805 for this module.
45806 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
45807 (grub_console_init): Removed prototypes.
45808 (grub_machine_init): Don't initialize the modules anymore.
45809 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
45810 static.
45811 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
45812 Macro undef removed.
45813 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
45814 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
45815 relocation `R_PPC_REL32'. Return an error when the relocation is
45816 unknown.
45817 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
45818 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
45819 * util/misc.c (grub_arch_sync_caches): Likewise.
45820
45821 2004-12-19 Marco Gerards <metgerards@student.han.nl>
45822
45823 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
45824 `symlist.c', add `grubof_symlist.c'.
45825 (symlist.c): Variable removed.
45826 (grubof_HEADERS): Variable added.
45827 (grubof_symlist.c): New target.
45828 (kernel_syms.lst): Use `grubof_HEADERS' instead of
45829 `kernel_img_HEADERS'.
45830 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
45831 * kern/powerpc/dl.c: New file.
45832 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
45833 Function removed.
45834 (grub_arch_dl_relocate_symbols): Likewise.
45835 (grub_register_exported_symbols): Likewise.
45836
45837 2004-12-13 Marco Gerards <metgerards@student.han.nl>
45838
45839 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
45840 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
45841 to fail instead. Reported by Vincent Pelletier
45842 <subdino2004@yahoo.fr>.
45843
45844 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
45845 it is not allocated. Reported by Vincent Pelletier
45846 <subdino2004@yahoo.fr>.
45847
45848 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
45849 output so the output looks better.
45850
45851 2004-12-04 Marco Gerards <metgerards@student.han.nl>
45852
45853 Modulize the partition map support and add support for the amiga
45854 partition map.
45855
45856 * commands/ls.c: Include <grub/partition.h> instead of
45857 <grub/machine/partition.h>.
45858 * kern/disk.c: Likewise.
45859 * kern/rescue.c: Likewise.
45860 * loader/i386/pc/chainloader.c: Likewise.
45861 * normal/cmdline.c: Likewise.
45862 * kern/powerpc/ieee1275/init.c: Likewise.
45863 (grub_machine_init): Call `grub_pc_partition_map_init',
45864 `grub_amiga_partition_map_init' and
45865 `grub_apple_partition_map_init'.
45866 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
45867 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
45868 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
45869 `partition.h' and `pc_partition.h'.
45870 (grub_setup_SOURCES): Remove
45871 `disk/i386/pc/partition.c'. Add `kern/partition.c',
45872 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45873 (grub_emu_SOURCES): Likewise.
45874 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
45875 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
45876 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
45877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45878 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
45879 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45880 (grubof_SOURCES): Likewise.
45881 * disk/i386/pc/partition.c: File removed.
45882 * disk/powerpc/ieee1275/partition.c: Likewise.
45883 * include/grub/powerpc/ieee1275/partition.h: Likewise.
45884 * include/grub/i386/pc/partition.h: Likewise.
45885 * kern/partition.c: New file.
45886 * partmap/amiga.c: Likewise.
45887 * partmap/apple.c: Likewise.
45888 * partmap/pc.c: Likewise.
45889 * include/grub/partition.h: Likewise..
45890 * include/grub/pc_partition.h: Likewise.
45891 * util/grub-emu.c: Include <grub/partition.h> instead of
45892 <grub/machine/partition.h>.
45893 (main): Call `grub_pc_partition_map_init',
45894 `grub_amiga_partition_map_init' and
45895 `grub_apple_partition_map_init' and deinitialize afterwards.
45896 * util/i386/pc/biosdisk.c: Include `#include
45897 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45898 `<grub/machine/partition.h>'.
45899 * util/i386/pc/grub-setup.c: Likewise.
45900 * util/i386/pc/biosdisk.c: Likewise.
45901 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
45902 partition information in case of a PC partition.
45903 * util/i386/pc/grub-setup.c: Include `#include
45904 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45905 `<grub/machine/partition.h>'.
45906 (setup): Only access the PC specific partition information in case
45907 of a PC partition.
45908
45909 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
45910
45911 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
45912 (grub_longjmp): Likewise.
45913 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
45914 20.
45915 * normal/powerpc/setjmp.S: New file.
45916 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45917 `normal/powerpc/setjmp.S'.
45918 (grubof_CFLAGS): Add `-DGRUBOF'.
45919 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
45920 [GRUB_UTIL && !GRUBOF].
45921
45922 2004-11-16 Marco Gerards <metgerards@student.han.nl>
45923
45924 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
45925 property named `name'. Correctly handle the error returned by
45926 `grub_ieee1275_finddevice' if a device can not be opened.
45927
45928 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
45929
45930 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
45931 `actual' for negativity.
45932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45933 kern/fshelp.c.
45934
45935 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45936
45937 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
45938 (PAGE_OFFSET): New macro.
45939 (CRTC_ADDR_PORT): Likewise.
45940 (CRTC_DATA_PORT): Likewise.
45941 (START_ADDR_HIGH_REGISTER): Likewise.
45942 (START_ADDR_LOW_REGISTER): Likewise.
45943 (GRAPHICS_ADDR_PORT): Likewise.
45944 (GRAPHICS_DATA_PORT): Likewise.
45945 (READ_MAP_REGISTER): Likewise.
45946 (INPUT_STATUS1_REGISTER): Likewise.
45947 (INPUT_STATUS1_VERTR_BIT): Likewise.
45948 (page): New variable.
45949 (wait_vretrace): New function.
45950 (set_read_map): Likewise.
45951 (set_start_address): Likewise.
45952 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
45953 the right page.
45954 (check_vga_mem): Take the page into account.
45955 (write_char): Likewise.
45956 (write_cursor): Likewise.
45957 (scroll_up): Likewise. Copy the page to the page that is not
45958 shown and switch between both pages.
45959 (grub_vga_putchar): Fix off by one error.
45960 (grub_vga_cls): Wait for the vertical retrace. Take the page into
45961 account.
45962
45963 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45964
45965 Add support for iso9660 (including rockridge).
45966
45967 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45968 (iso9660_mod_SOURCES): New variable.
45969 (iso9660_mod_CFLAGS): Likewise.
45970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45971 * include/grub/fs.h (grub_iso9660_init): New prototype.
45972 * util/grub-emu.c (main): Call `grub_iso9660_init'.
45973 * fs/iso9660.c: New file.
45974
45975 * include/grub/misc.h (grub_strncat): New prototype.
45976 * kern/misc.c (grub_strncat): New function.
45977
45978 * fs/hfs.c (grub_hfs_mount): Translate the error
45979 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
45980 * fs/jfs.c (grub_jfs_mount): Likewise.
45981 * fs/ufs.c (grub_ufs_mount): Likewise.
45982
45983 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
45984
45985 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
45986 which initialized BAT registers.
45987 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
45988 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45989 Move from here...
45990 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
45991 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45992 ... to here.
45993 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
45994 (grub_mapclaim): Likewise.
45995 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
45996 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
45997 hand.
45998
45999 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46000
46001 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46002 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46003 -ffreestanding and -msoft-float.
46004
46005 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46006
46007 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46008 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46009 set in grub_ieee1275_flags.
46010
46011 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46012
46013 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46014 prototype.
46015 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46016 grub_console_init first.
46017 Change the memory range used for grub_ieee1275_claim and
46018 grub_mm_init_region.
46019 Print an error message if the claim fails.
46020 Include <grub/misc.h>.
46021
46022 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46023
46024 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46025 Call grub_children_iterate for device nodes of type `scsi',
46026 `ide', or `ata'.
46027 (grub_ofdisk_open): Remove manual device alias resolution.
46028 Fix memory leak when device cannot be opened.
46029 * include/grub/powerpc/ieee1275/ieee1275.h
46030 (grub_children_iterate): New prototype.
46031 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46032 New function.
46033 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46034 Return -1 if args.size was -1.
46035
46036 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46037
46038 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46039 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46040 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46041 Open Firmware's memory for it; claim memory from _start to _end.
46042 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46043 (_end): New extern.
46044 (_start): Zero BSS from __bss_start to _end.
46045 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46046 New extern.
46047 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46048
46049 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46050
46051 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46052 -1 if args.base was -1.
46053
46054 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46055
46056 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46057 escape sequence instead of a literal ^L. Also call
46058 grub_ofconsole_gotoxy.
46059
46060 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46061
46062 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46063 void * arguments to grub_addr_t. All callers updated. Also make
46064 the `result' argument optional.
46065 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46066 All callers updated.
46067
46068 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46069
46070 * commands/ls.c (grub_ls_list_files): Use the string following the
46071 initial ')', if present, as the filesystem path.
46072 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46073
46074 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46075
46076 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46077
46078 Make the source code of the menu interface more readable.
46079
46080 * normal/menu.c: Include grub/mm.h.
46081 (TERM_WIDTH): New macro.
46082 (TERM_HEIGHT): Likewise.
46083 (TERM_INFO_HEIGHT): Likewise.
46084 (TERM_MARGIN): Likewise.
46085 (TERM_SCROLL_WIDTH): Likewise.
46086 (TERM_TOP_BORDER_Y): Likewise.
46087 (TERM_LEFT_BORDER_X): Likewise.
46088 (TERM_BORDER_WIDTH): Likewise.
46089 (TERM_MESSAGE_HEIGHT): Likewise.
46090 (TERM_BORDER_HEIGHT): Likewise.
46091 (TERM_NUM_ENTRIES): Likewise.
46092 (TERM_FIRST_ENTRY_Y): Likewise.
46093 (TERM_ENTRY_WIDTH): Likewise.
46094 (TERM_CURSOR_X): Likewise.
46095 (draw_border): Use macros instead of magic numbers.
46096 (print_entry): Likewise.
46097 (print_entries): Likewise.
46098 (run_menu): Likewise. Also, handle the key 'e'.
46099 (run_menu_entry): Ignore empty command lines.
46100 (print_message): Added a new argument EDIT. If EDIT is true,
46101 print a different message.
46102 (init_page): Likewise.
46103 (edit_menu_entry): New function. Not implemented yet.
46104
46105 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46106
46107 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46108 can be loaded from normal mode.
46109
46110 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46111 `multiboot.mod'.
46112 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46113 (multiboot_mod_CFLAGS): New variables.
46114 * loader/i386/pc/linux_normal.c: New file.
46115 * loader/i386/pc/multiboot_normal.c: Likewise.
46116
46117 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46118 attribute `unused'.
46119
46120 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46121 `fdiro' to read the mode information from instead of `diro'.
46122
46123 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46124 looking up a symlink.
46125
46126 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46127 macro.
46128 * normal/command.c (grub_command_execute): Don't parse the
46129 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46130 flags of the command.
46131
46132 * normal/menu.c (grub_menu_run): Fix typo.
46133
46134 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46135
46136 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46137
46138 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46139 `y + 1' instead of `y - 1'.
46140
46141 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46142
46143 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46144
46145 From Hollis Blanchard <hollis@penguinppc.org>:
46146 * kern/misc.c (memmove): New alias for grub_memmove.
46147 (memcmp): New alias for grub_memcmp.
46148 (memset): New alias for grub_memset.
46149 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46150 Change "int handle" to "grub_ieee1275_phandle_t handle".
46151 * include/grub/powerpc/ieee1275/ieee1275.h
46152 (grub_ieee1275_get_property): Likewise.
46153
46154 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46155
46156 Added normal mode command `chainloader' as module chain.mod, which
46157 depends on normal.mod and _chain.mod.
46158
46159 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46160 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46161 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46162 Deleted prototype.
46163 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46164 but arguments parsing moved to ...
46165 (grub_chainloader_cmd): ... here. New function.
46166 * include/grub/i386/pc/chainloader.h: New file.
46167 * loader/i386/pc/chainloader_normal.c: Likewise.
46168
46169 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46170
46171 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46172 (grub_mkimage_LDFLAGS): Likewise.
46173 (grub_emu_SOURCES): Likewise.
46174 (kernel_img_HEADERS): Added fshelp.h.
46175 * fs/ext2.c: Include <grub/fshelp.h>.
46176 (FILETYPE_REG): New macro.
46177 (FILETYPE_INO_REG): Likewise.
46178 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46179 Changed all users.
46180 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46181 all users.
46182 (grub_fshelp_node): New struct.
46183 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46184 to a pointer.
46185 (grub_ext2_get_file_block): Removed function.
46186 (grub_ext2_read_block): New function.
46187 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46188 This function was written.
46189 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46190 (grub_ext2_find_file): Removed function.
46191 (grub_ext2_read_symlink): New function.
46192 (grub_ext2_iterate_dir): Likewise.
46193 (grub_ext2_open): Rewritten.
46194 (grub_ext2_dir): Rewritten.
46195 * include/grub/fshelp.h: New file.
46196 * fs/fshelp.c: Likewise.
46197
46198 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46199
46200 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46201 (print_message): Add a missing newline.
46202 (run_menu): Added timeout support.
46203 (run_menu_entry): New local function.
46204 (grub_menu_run): Added support for booting.
46205
46206 * kern/loader.c (grub_loader_is_loaded): New function.
46207
46208 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46209 (grub_get_rtc): Exported.
46210
46211 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46212 (grub_get_rtc): Exported.
46213
46214 * include/grub/normal.h (struct grub_command_list): Remove
46215 constant from the member `command'.
46216
46217 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46218
46219 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46220
46221 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46222
46223 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46224
46225 Add support for the JFS filesystem.
46226
46227 * fs/jfs.c: New file.
46228 * include/grub/fs.h (grub_jfs_init): New prototype.
46229 (grub_jfs_fini): New prototype.
46230 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46231 (grub_emu_SOURCES): Likewise.
46232 (pkgdata_MODULES): Add jfs.mod.
46233 (jfs_mod_SOURCES): New variable.
46234 (jfs_mod_CFLAGS): Likewise.
46235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46236 (grubof_SOURCES): Likewise.
46237 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46238
46239 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46240 endian to the host endian.
46241 (grub_fat_utf16_to_utf8): Move function from there...
46242 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46243 the endianness of the source string anymore.
46244 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46245
46246 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46247
46248 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46249 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46250 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46251 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46252
46253 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46254 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46255 for `node_found' and `it_dir'.
46256 (grub_hfs_dir): Add prototype for `dir_hook'.
46257
46258 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46259 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46260 and `indir32' to silence a gcc warning.
46261
46262 * include/grub/fs.h (grub_hfs_init): New prototype.
46263 (grub_hfs_fini): Likewise.
46264
46265
46266 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46267
46268 Each disk device has its own id now. This is useful to make use
46269 of multiple disk devices.
46270
46271 * include/grub/disk.h (grub_disk_dev_id): New enum.
46272 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46273 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46274
46275 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46276 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46277
46278 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46279 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46280
46281 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46282 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46283
46284 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46285 "id" which is used by the cache manager.
46286
46287 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46288 of just "GRUB".
46289
46290 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46291
46292 * fs/hfs.c: New file.
46293 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46294 (grub_emu_SOURCES): Likewise.
46295 (pkgdata_MODULES): Add hfs.mod.
46296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46297 (grubof_SOURCES): Likewise.
46298 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46299
46300 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46301 * kern/misc.c (grub_strncasecmp): Add function.
46302
46303 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46304
46305 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46306 with parentheses.
46307
46308 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46309 (grub_ext2_dir): In case the directory entry type is unknown, read
46310 it from the inode.
46311
46312 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46313
46314 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46315 grub_load_linux instead of grub_rescue_cmd_linux as second
46316 argument of grub_rescue_register_command.
46317
46318 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46319
46320 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46321
46322 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46323 function.
46324 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46325 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46326 `loader/powerpc/ieee1275/linux.c',
46327 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46328 * include/grub/powerpc/ieee1275/ieee1275.h
46329 (grub_ieee1275_release): New prototype.
46330 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46331 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46332 normal, boot, linux and linux_normal.
46333 * loader/powerpc/ieee1275/linux.c: New file.
46334 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46335
46336 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46337
46338 * normal/arg.c (grub_arg_parse): Correct error handling after
46339 reallocating the argumentlist (check if `argl' is not null instead
46340 of checking if `args' is not null).
46341 * kern/mm.c (grub_realloc): Return the same pointer when using the
46342 same region, instead of returning the header address.
46343
46344 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46345
46346 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46347 one block instead of two when looking for the initial partition.
46348 (grub_partition_probe): Initialize the local variable `p' with 0.
46349 Use base 10 for the grub_strtoul call.
46350 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46351 need for one local variable.
46352 (grub_strtoul): Don't add the new value to `num', instead of that
46353 just assign it.
46354
46355 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46356
46357 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46358 (pxeboot_img_SOURCES): New variable.
46359 (pxeboot_img_ASFLAGS): Likewise.
46360 (pxeboot_img_LDFLAGS): Likewise.
46361 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46362 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46363 <lode_leroy@hotmail.com>.
46364
46365 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46366
46367 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46368 there was no input.
46369
46370 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46371
46372 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46373 the history buffer logic.
46374
46375 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46376
46377 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46378 (FILETYPE_INO_SYMLINK): New macros.
46379 (grub_ext2_find_file): Check if the node is a directory using the
46380 inode stat information instead of using the filetype in the
46381 dirent. Exclude the first character of an absolute symlink.
46382 (grub_ext2_dir): Mask out the filetype part of the mode member of
46383 the inode.
46384
46385 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46386
46387 Add support for UFS version 1 and 2. Add support for the minix
46388 filesystem version 1 and 2, both the variants with 14 and 30 long
46389 filenames.
46390
46391 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46392 fs/minix.c.
46393 (grub_emu_SOURCES): Likewise.
46394 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46395 (ufs_mod_SOURCES): New variable.
46396 (ufs_mod_CFLAGS): Likewise.
46397 (minix_mod_SOURCES): Likewise.
46398 (minix_mod_CFLAGS): Likewise.
46399 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46400 fs/minix.c.
46401 (grubof_SOURCES): Likewise.
46402 * fs/ufs.c: New file.
46403 * fs/minix.c: New file.
46404 * include/grub/fs.h (grub_ufs_init): New prototype.
46405 (grub_ufs_fini): Likewise.
46406 (grub_minix_init): Likewise.
46407 (grub_minix_fini): Likewise.
46408 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46409 minix fs.
46410
46411 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46412
46413 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46414 commands/ls.c, commands/terminal.c, commands/boot.c,
46415 commands/cmp.c and commands/cat.c.
46416 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46417
46418 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46419 "env.h"
46420
46421 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46422
46423 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46424 and grub_, respectively. Because the conversion is trivial and
46425 mechanical, I omit the details here. Please refer to the CVS
46426 if you need more information.
46427
46428 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46429
46430 * include/pupa: Renamed to ...
46431 * include/grub: ... this.
46432 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46433 * util/i386/pc/grub-mkimage.c: ... this.
46434 * util/i386/pc/pupa-setup.c: Renamed to ...
46435 * util/i386/pc/grub-setup.c: ... this.
46436 * util/pupa-emu.c: Renamed to ...
46437 * util/grub-emu.c: ... this.
46438
46439 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46440
46441 Add support for the newworld apple macintosh (PPC). This has been
46442 tested on the powerbook 2000 only. It only adds support for
46443 generic ieee1275 functions, console and disk support. This should
46444 be easy to port to other architectures with support for Open
46445 Firmware.
46446
46447 * configure.ac: Accept the powerpc as host_cpu. In the case of
46448 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46449 specific tests are only executed while building for the i386.
46450 Inverse test for crosscompile.
46451 * genmk.rb (Utility): Allow assembler files.
46452 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46453 * conf/powerpc-ieee1275.rmk: New file.
46454 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46455 * disk/powerpc/ieee1275/partition.c: Likewise.
46456 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46457 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46458 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46459 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46460 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46461 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46462 * include/pupa/powerpc/ieee1275/loader.h
46463 * include/pupa/powerpc/setjmp.h: Likewise.
46464 * include/pupa/powerpc/types.h: Likewise.
46465 * kern/powerpc/ieee1275/init.c: Likewise.
46466 * kern/powerpc/ieee1275/openfw.c: Likewise.
46467 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46468
46469 These files were written by Johan Rydberg
46470 (jrydberg@night.trouble.net) and I only modified them slightly.
46471
46472 * boot/powerpc/ieee1275/cmain.c: New file.
46473 * boot/powerpc/ieee1275/crt0.S: Likewise.
46474 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46475 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46476
46477 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46478
46479 * Makefile.in: Update copyright.
46480 * genmodsrc.sh: Likewise.
46481 * gensymlist.sh: Likewise.
46482 * term/i386/pc/vga.c: Indent correctly.
46483
46484 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46485 bugreporting address.
46486 * util/i386/pc/pupa-setup.c (usage): Likewise,
46487 (main): Call pupa_ext2_init and pupa_ext2_fini.
46488
46489 * fs/fat.c (log2): Renamed to ...
46490 (fat_log2): ... this.
46491 All callers changed.
46492 * kern/misc.c (memcpy): Alias to pupa_memmove.
46493 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46494 lvalue cast.
46495 * util/console.c (pupa_ncurses_fini): Return 0.
46496
46497 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46498 Move fail label here.
46499 [__GNU__]: Don't warn when using stat.
46500 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46501 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46502 long int. Use strtol instead of strtoul.
46503
46504 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46505
46506 * commands/boot.c: New file.
46507 * commands/cat.c: Likewise.
46508 * commands/cmp.c: Likewise.
46509 * commands/ls.c: Likewise.
46510 * commands/terminal.c: Likewise.
46511 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46512 (pupa_register_command): Changed interface to match the new
46513 argument parser.
46514 (pupa_command_execute): Changed (almost rewritten) so it uses
46515 pupa_split_command. Added support for setting variables using the
46516 syntax `foo=bar'.
46517 (rescue_command): Changed to work with the new argument parser.
46518 (terminal_command): Moved from here to commands/terminal.c.
46519 (set_command): New function.
46520 (unset_command): New function.
46521 (insmod_command): New function.
46522 (rmmod_command): New function.
46523 (lsmod_command): New function.
46524 (pupa_command_init): Don't initialize the command terminal
46525 anymore. Initialize the commands set, unset, insmod, rmmod and
46526 lsmod.
46527 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46528 (kernel_img_HEADERS): Add arg.h and env.h.
46529 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46530 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46531 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46532 normal/arg.c.
46533 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46534 terminal.mod.
46535 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46536 (boot_mod_SOURCES): New variable.
46537 (terminal_mod_SOURCES): Likewise.
46538 (ls_mod_SOURCES): Likewise.
46539 (cmp_mod_SOURCES): Likewise.
46540 (cat_mod_SOURCES): Likewise.
46541
46542 * normal/arg.c: New file.
46543 * kern/env.c: Likewise.
46544 * include/pupa/arg.h: Likewise.
46545 * include/pupa/env.h: Likewise.
46546 * font/manager.c (font_command): Changed to match argument parsing
46547 interface changes.
46548 (PUPA_MOD_INIT): Likewise.
46549 * hello/hello.c (pupa_cmd_hello): Likewise.
46550 (PUPA_MOD_INIT): Likewise.
46551 * include/pupa/disk.h: Include <pupa/device.h>.
46552 (pupa_print_partinfo): New prototype.
46553 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46554 (pupa_dl_get_prefix): Likewise.
46555 * include/pupa/misc.h: Include <pupa/err.h>.
46556 (pupa_isgraph): New prototype.
46557 (pupa_isdigit): Likewise.
46558 (pupa_split_cmdline): Likewise.
46559 * include/pupa/normal.h: Include <pupa/arg.h>.
46560 (pupa_command): Changed the prototype of the member `func' to
46561 match the argument parsing interface. Added member `options'.
46562 (pupa_register_command): Updated to match function.
46563 (pupa_arg_parse): New prototype.
46564 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46565 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46566 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46567 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46568 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46569 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46570 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46571 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46572 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46573 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46574 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46575 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46576 * kern/disk.c: Include <pupa/file.h>.
46577 (pupa_print_partinfo): New function.
46578 * kern/dl.c: Include <pupa/env.h>.
46579 (pupa_dl_dir): Variable removed.
46580 (pupa_dl_load): Use the environment variable `prefix' instead of
46581 the variable pupa_dl_dir.
46582 (pupa_dl_set_prefix): Function removed.
46583 (pupa_dl_get_prefix): Likewise.
46584 * kern/i386/pc/init.c: Include <pupa/env.h>.
46585 (pupa_machine_init): Use the environment variable `prefix' instead of
46586 using pupa_dl_set_prefix to set the prefix.
46587 * kern/main.c: Include <pupa/env.h>.
46588 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46589 using pupa_dl_get_prefix to get the prefix.
46590 * kern/misc.c: Include <pupa/env.h>.
46591 (pupa_isdigit): New function.
46592 (pupa_isgraph): Likewise.
46593 (pupa_ftoa): Likewise.
46594 (pupa_vsprintf): Added support for printing values of the type
46595 `double'. Make it possible to format variable output when using
46596 formatting like `%1.2%f'.
46597 (pupa_split_cmdline): New function.
46598 * kern/rescue.c: Include <pupa/env.h>.
46599 (next_word): Removed function.
46600 (pupa_rescue_cmd_prefix): Likewise.
46601 (pupa_rescue_cmd_set): New function.
46602 (pupa_rescue_cmd_unset): New function.
46603 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46604 split the command line instead of splitting it here. Added
46605 support for setting variables using the syntax `foo=bar'. Don't
46606 initialize the prefix command anymore. Initialized the set and
46607 unset commands.
46608 * normal/cmdline.c: Include <pupa/env.h>.
46609 (pupa_tab_complete): Added prototypes for print_simple_completion,
46610 print_partition_completion, add_completion, iterate_commands,
46611 iterate_dev, iterate_part and iterate_dir. Moved code to print
46612 partition information from here to kern/disk.c.
46613 (pupa_cmdline_run): Don't check if the function exists anymore.
46614 * normal/main.c: Include <pupa/env.h>.
46615 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46616 instead of using pupa_dl_get_prefix to get the prefix.
46617 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46618 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46619 warning.
46620 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46621 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46622 ((unused))' to silence a gcc warning.
46623 (pupa_vga_setcolor): Likewise.
46624 (debug_command): Changed to match argument parsing
46625 interface changes.
46626 * util/pupa-emu.c: Include <pupa/env.h>.
46627 (options): Added 0's for unused fields to silence a gcc warning.
46628 (argp): Likewise.
46629 (main): Use the environment variable `prefix' instead of using
46630 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
46631 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
46632 and terminal.
46633
46634 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
46635 * util/misc.c: Include <malloc.h>.
46636 (pupa_malloc): Rewritten so errors are correctly reported.
46637 (pupa_realloc): Likewise.
46638 (pupa_memalign): Likewise.
46639 (pupa_mm_init_region): Declare unused variables with
46640 `__attribute__ ((unused))' to silence a gcc warning.
46641 * normal/i386/setjmp.S: Remove tab at the end of the file to
46642 silence a gcc warning.
46643 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
46644 variables with `__attribute__ ((unused))' to silence a gcc
46645 warning.
46646 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
46647 local variable i unsigned to silence a gcc warning.
46648
46649 * kern/term.c: Include <pupa/misc.h>.
46650 (pupa_more_lines): New variable.
46651 (pupa_more): Likewise.
46652 (pupa_putcode): When the pager is active pause at the end of every
46653 screen.
46654 (pupa_set_more): New function.
46655 * include/pupa/term.h (pupa_set_more): New prototype.
46656
46657
46658 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
46659
46660 Now this project is GRUB 2 rather than PUPA. The location of
46661 the CVS repository was moved to GRUB's.
46662
46663 * configure.ac: Use bug-grub as the reporting address.
46664 Use GRUB instead of PUPA.
46665 Change the version number to 1.90.
46666
46667 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
46668
46669 * genkernsyms.sh: Updated copyright information.
46670 * genmk.rb: Likewise.
46671 * genmodsrc.sh: Likewise.
46672 * gensymlist.sh: Likewise.
46673 * boot/i386/pc/boot.S: Likewise.
46674 * boot/i386/pc/diskboot.S: Likewise.
46675 * disk/i386/pc/biosdisk.c: Likewise.
46676 * disk/i386/pc/partition.c: Likewise.
46677 * font/manager.c: Likewise.
46678 * fs/ext2.c: Likewise.
46679 * fs/fat.c: Likewise.
46680 * include/pupa/boot.h: Likewise.
46681 * include/pupa/device.h: Likewise.
46682 * include/pupa/disk.h: Likewise.
46683 * include/pupa/dl.h: Likewise.
46684 * include/pupa/elf.h: Likewise.
46685 * include/pupa/err.h: Likewise.
46686 * include/pupa/file.h: Likewise.
46687 * include/pupa/font.h: Likewise.
46688 * include/pupa/fs.h: Likewise.
46689 * include/pupa/kernel.h: Likewise.
46690 * include/pupa/loader.h: Likewise.
46691 * include/pupa/misc.h: Likewise.
46692 * include/pupa/mm.h: Likewise.
46693 * include/pupa/net.h: Likewise.
46694 * include/pupa/normal.h: Likewise.
46695 * include/pupa/rescue.h: Likewise.
46696 * include/pupa/setjmp.h: Likewise.
46697 * include/pupa/symbol.h: Likewise.
46698 * include/pupa/term.h: Likewise.
46699 * include/pupa/types.h: Likewise.
46700 * include/pupa/i386/setjmp.h: Likewise.
46701 * include/pupa/i386/types.h: Likewise.
46702 * include/pupa/i386/pc/biosdisk.h: Likewise.
46703 * include/pupa/i386/pc/boot.h: Likewise.
46704 * include/pupa/i386/pc/console.h: Likewise.
46705 * include/pupa/i386/pc/init.h: Likewise.
46706 * include/pupa/i386/pc/kernel.h: Likewise.
46707 * include/pupa/i386/pc/linux.h: Likewise.
46708 * include/pupa/i386/pc/loader.h: Likewise.
46709 * include/pupa/i386/pc/memory.h: Likewise.
46710 * include/pupa/i386/pc/multiboot.h: Likewise.
46711 * include/pupa/i386/pc/partition.h: Likewise.
46712 * include/pupa/i386/pc/time.h: Likewise.
46713 * include/pupa/i386/pc/vga.h: Likewise.
46714 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
46715 * include/pupa/util/getroot.h: Likewise.
46716 * include/pupa/util/misc.h: Likewise.
46717 * include/pupa/util/resolve.h: Likewise.
46718 * kern/device.c: Likewise.
46719 * kern/disk.c: Likewise.
46720 * kern/dl.c: Likewise.
46721 * kern/err.c: Likewise.
46722 * kern/file.c: Likewise.
46723 * kern/fs.c: Likewise.
46724 * kern/loader.c: Likewise.
46725 * kern/main.c: Likewise.
46726 * kern/misc.c: Likewise.
46727 * kern/mm.c: Likewise.
46728 * kern/rescue.c: Likewise.
46729 * kern/term.c: Likewise.
46730 * kern/i386/dl.c: Likewise.
46731 * kern/i386/pc/init.c: Likewise.
46732 * kern/i386/pc/lzo1x.S: Likewise.
46733 * kern/i386/pc/startup.S: Likewise.
46734 * loader/i386/pc/chainloader.c: Likewise.
46735 * loader/i386/pc/linux.c: Likewise.
46736 * loader/i386/pc/multiboot.c: Likewise.
46737 * normal/cmdline.c: Likewise.
46738 * normal/command.c: Likewise.
46739 * normal/main.c: Likewise.
46740 * normal/menu.c: Likewise.
46741 * normal/i386/setjmp.S: Likewise.
46742 * term/i386/pc/console.c: Likewise.
46743 * term/i386/pc/vga.c: Likewise.
46744 * util/console.c: Likewise.
46745 * util/genmoddep.c: Likewise.
46746 * util/misc.c: Likewise.
46747 * util/pupa-emu.c: Likewise.
46748 * util/resolve.c: Likewise.
46749 * util/unifont2pff.rb: Likewise.
46750 * util/i386/pc/biosdisk.c: Likewise.
46751 * util/i386/pc/getroot.c: Likewise.
46752 * util/i386/pc/pupa-mkimage.c: Likewise.
46753 * util/i386/pc/pupa-setup.c: Likewise.
46754
46755 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
46756
46757 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
46758 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
46759 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
46760 reading and reset it after reading.
46761 (pupa_ext2_close): Return PUPA_ERR_NONE.
46762
46763 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
46764 Correct value.
46765 (struct linux_kernel_header): Add kernel_version and
46766 initrd_addr_max.
46767 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
46768 pupa_file_read succeeds.
46769 (pupa_rescue_cmd_initrd): Implement.
46770
46771 2003-12-03 Marco Gerards <metgerards@student.han.nl>
46772
46773 * fs/ext2.c (pupa_ext2_label): New function.
46774 (pupa_ext2_fs): Added label.
46775 * fs/fat.c (pupa_fat_label): New function.
46776 (pupa_fat_fs): Added label.
46777 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
46778
46779 * kern/misc.c (pupa_strndup): New function.
46780 * include/pupa/misc.h (pupa_strndup): New prototype.
46781
46782 * include/pupa/normal.h: Include <pupa/err.h>.
46783 (pupa_set_history): New prototype.
46784 (pupa_iterate_commands): New prototype.
46785 * normal/cmdline.c: Include <pupa/machine/partition.h>,
46786 <pupa/disk.h>, <pupa/file.h>.
46787 (hist_size): New variable.
46788 (hist_lines): Likewise.
46789 (hist_end): Likewise.
46790 (hist_used): Likewise.
46791 (pupa_set_history): New function.
46792 (pupa_history_get): Likewise.
46793 (pupa_history_add): Likewise.
46794 (pupa_history_replace): Likewise.
46795 (pupa_tab_complete): Likewise.
46796 (pupa_cmdline_run): Added tab completion and history buffer. Tab
46797 completion shows partitionnames while completing partitions, this
46798 feature was suggested by Jeff Bailey.
46799 * normal/command.c (pupa_iterate_commands): New function.
46800 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
46801 (pupa_normal_init): Initialize history buffer.
46802 (PUPA_MOD_INIT): Likewise.
46803 (pupa_normal_fini): Free the history buffer.
46804 (PUPA_MOD_FINI): Likewise.
46805
46806 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
46807 key.
46808
46809 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
46810 * configure.ac [i386]: Check for regparam bug.
46811 (NESTED_FUNC_ATTR) [! i386]: Defined.
46812
46813 2003-11-17 Marco Gerards <metgerards@student.han.nl>
46814
46815 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
46816 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
46817 (pupa_emu_SOURCES): New variable.
46818 (pupa_emu_LDFLAGS): Likewise.
46819 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
46820 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
46821 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
46822 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46823 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
46824 (pupa_jmp_buf): New typedef.
46825 (pupa_setjmp) [PUPA_UTIL]: New macro.
46826 (pupa_longjmp) [PUPA_UTIL]: Likewise.
46827 * include/pupa/term.h (struct pupa_term): New member `refresh'.
46828 (pupa_refresh): New prototype.
46829 * include/pupa/util/getroot.h: New file.
46830 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
46831 it.
46832 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
46833 (pupa_rescue_cmd_cat): Likewise.
46834 (pupa_rescue_cmd_ls): Likewise.
46835 (pupa_rescue_cmd_testload): Likewise.
46836 (pupa_rescue_cmd_lsmod): Likewise.
46837 * normal/cmdline.c (pupa_cmdline_get): Likewise.
46838 * normal/menu.c (run_menu): Likewise.
46839 * kern/term.c (pupa_cls): Likewise.
46840 (pupa_refresh): New function.
46841 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
46842 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46843 * util/console.c: New file.
46844
46845 * util/i386/pc/getroot.c: New file.
46846 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
46847 (pupa_putchar): New function.
46848 (pupa_refresh): Likewise.
46849 (xgetcwd): Function moved to ...
46850 (strip_extra_slashes): Likewise.
46851 (get_prefix): Likewise.
46852 * util/i386/pc/getroot.c: ... here.
46853 (find_root_device): Function moved and renamed to...
46854 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
46855 Changed all callers.
46856 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
46857 and renamed to...
46858 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
46859 Changed all callers.
46860 * util/misc.c (pupa_memalign): New function.
46861 (pupa_mm_init_region): Likewise.
46862 (pupa_register_exported_symbols): Likewise.
46863 (pupa_putchar): Function removed.
46864 * util/pupa-emu.c: New file.
46865
46866 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
46867
46868 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
46869 (_multiboot_mod_SOURCES): New variable.
46870 (_multiboot_mod_CFLAGS): Likewise.
46871 * loader/i386/pc/multiboot.c: New file.
46872 * include/pupa/i386/pc/multiboot.h: Likewise.
46873 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
46874 (pupa_multiboot_real_boot): New function.
46875 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
46876 (pupa_multiboot_real_boot): New prototype.
46877 (pupa_rescue_cmd_multiboot): Likewise
46878 (pupa_rescue_cmd_module): Likewise.
46879
46880 * kern/loader.c (pupa_loader_set): Continue when
46881 pupa_loader_unload_func() fails.
46882 (pupa_loader_unset): New function.
46883 * include/pupa/loader.h (pupa_loader_unset): New prototype.
46884
46885 * kern/misc.c (pupa_stpcpy): New function.
46886 * include/pupa/misc.h (pupa_stpcpy): New prototype.
46887
46888 2003-11-12 Marco Gerards <metgerards@student.han.nl>
46889
46890 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
46891 for available extensions.
46892
46893 * include/pupa/i386/pc/time.h: New file.
46894 * kern/disk.c: Include <pupa/machine/time.h>.
46895 (PUPA_CACHE_TIMEOUT): New macro.
46896 (pupa_last_time): New variable.
46897 (pupa_disk_open): Flush the cache when there was a timeout.
46898 (pupa_disk_close): Reset the timer.
46899 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
46900 pupa_currticks.
46901 * util/misc.c: Include <sys/times.h>
46902 (pupa_get_rtc): New function.
46903
46904 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
46905
46906 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
46907 as blocks.
46908 (pupa_ext2_get_file_block): Use blocks member.
46909
46910 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
46911 first block. Return -1 instead of pupa_errno on error.
46912
46913 2003-10-27 Marco Gerards <metgerards@student.han.nl>
46914
46915 * README: In the pupa-mkimage example use _chain instead of chain
46916 and ext2 instead of fat.
46917 * TODO: Replace ext2fs with jfs as an example. Add an item for
46918 adding journal playback for ext2fs.
46919 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
46920 (pkgdata_MODULES): Added ext2.mod.
46921 (ext2_mod_SOURCES): New variable.
46922 (ext2_mod_CFLAGS): Likewise.
46923 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
46924 * include/pupa/misc.h (pupa_strncpy): New prototype.
46925 (pupa_strcat): Likewise.
46926 (pupa_strncmp): Likewise.
46927 * kern/misc.c (pupa_strcat): Enable function.
46928 (pupa_strncpy): New function.
46929 (pupa_strncmp): Likewise.
46930 * fs/ext2.c: New file.
46931
46932 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
46933 when the read failed before retrying.
46934 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
46935 (_FILE_OFFSET_BITS): Likewise.
46936 * configure.ac: Added AC_SYS_LARGEFILE.
46937
46938 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46939
46940 * genmk.rb (PModule#rule): Make sure to get only symbol names
46941 from the output of nm.
46942 Reported by Robert Millan <rmh.grub@aybabtu.com>.
46943
46944 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46945
46946 I forgot to check in these changes for a long time. This adds
46947 incomplete support for VGA console, and this is still very
46948 buggy. Also, a lot of consideration is required for I18N,
46949 UNICODE, and VGA font issues. Therefore, assume that this is
46950 such that "better than nothing".
46951
46952 * font/manager.c: New file.
46953 * include/pupa/font.h: Likewise.
46954 * include/pupa/i386/pc/vga.h: Likewise.
46955 * term/i386/pc/vga.c: Likewise.
46956 * util/unifont2pff.rb: Likewise.
46957
46958 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
46959 (pkgdata_MODULES): Added vga.mod and font.mod.
46960 (vga_mod_SOURCES): New variables.
46961 (vga_mod_CFLAGS): Likewise.
46962 (font_mod_SOURCES): Likewise.
46963 (font_mod_CFLAGS): Likewise.
46964
46965 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
46966
46967 * include/pupa/term.h: Include pupa/err.h.
46968 (struct pupa_term): Added init and fini.
46969 Changed the argument of putchar to pupa_uint32_t.
46970
46971 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
46972 (pupa_console_real_putchar): New prototype.
46973 (pupa_console_putchar): Removed.
46974 (pupa_console_checkkey): Exported.
46975 (pupa_console_getkey): Likewise.
46976
46977 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
46978 characters.
46979
46980 * kern/term.c (pupa_term_set_current): Rewritten.
46981 (pupa_putchar): Likewise.
46982 (pupa_putcode): New function.
46983
46984 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
46985 (pupa_console_real_putchar): ... this.
46986 (pupa_vga_set_mode): New function.
46987 (pupa_vga_get_font): Likewise.
46988
46989 * normal/command.c: Include pupa/term.h.
46990 (terminal_command): New function.
46991 (pupa_command_init): Register the command "terminal".
46992
46993 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
46994 (DISP_UP): Likewise.
46995 (DISP_RIGHT): Likewise.
46996 (DISP_DOWN): Likewise.
46997 (DISP_HLINE): Likewise.
46998 (DISP_VLINE): Likewise.
46999 (DISP_UL): Likewise.
47000 (DISP_UR): Likewise.
47001 (DISP_LL): Likewise.
47002 (DISP_LR): Likewise.
47003
47004 * term/i386/pc/console.c (pupa_console_putchar): New function.
47005
47006 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47007
47008 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47009 FIX. Reverse the path_list.
47010
47011 * include/pupa/normal.h: Export pupa_register_command and
47012 pupa_unregister_command.
47013
47014 * hello/hello.c (pupa_cmd_hello): New module.
47015 * conf/i386-pc.rmk: Added hello.mod.
47016
47017 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47018
47019 * kern/i386/pc/lzo1x.S: New file.
47020
47021 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47022 (compress_kernel): New variable.
47023 (generate_image): Heavily modified to support compressing a
47024 large part of the core image.
47025
47026 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47027 leak.
47028 (pupa_util_load_image): New function.
47029
47030 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47031 (pupa_compressed_size): New variable.
47032 (codestart): Enable Gate A20 here.
47033 Decompress the compressed part of the core image.
47034 Rearrange the code to put functions and variables which are
47035 required for initialization in the non-compressed part.
47036 Include lzo1x.S.
47037
47038 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47039 here.
47040
47041 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47042
47043 * include/pupa/i386/pc/kernel.h
47044 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47045 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47046 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47047 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47048 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47049
47050 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47051
47052 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47053 (Utility#rule): Likewise.
47054
47055 * configure.ac: Check if LZO is available.
47056
47057 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47058
47059 * include/pupa/normal.h: New file.
47060 * include/pupa/setjmp.h: Likewise.
47061 * include/pupa/i386/setjmp.h: Likewise.
47062 * normal/cmdline.c: Likewise.
47063 * normal/command.c: Likewise.
47064 * normal/main.c: Likewise.
47065 * normal/menu.c: Likewise.
47066 * normal/i386/setjmp.S: Likewise.
47067
47068 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47069 (pupa_rescue_cmd_initrd): Likewise.
47070
47071 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47072 Likewise.
47073
47074 * kern/i386/pc/startup.S (translation_table): New variable.
47075 (translate_keycode): New function.
47076 (pupa_console_getkey): Call translate_keycode.
47077
47078 * kern/rescue.c (attempt_normal_mode): New function.
47079 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47080 it failed, print a message.
47081
47082 * kern/mm.c (pupa_real_malloc): Print more information when a
47083 free magic is broken.
47084 (pupa_free): If the first free header is not free actually, set
47085 it to P.
47086
47087 * kern/main.c (pupa_load_normal_mode): Just load the module
47088 "normal".
47089 (pupa_main): Don't print the message
47090 "Entering into rescue mode..." here.
47091
47092 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47093 Declared.
47094 (pupa_rescue_cmd_initrd): Likewise.
47095 (pupa_rescue_cmd_initrd): Likewise.
47096
47097 * include/pupa/symbol.h (FUNCTION): Specify the type.
47098 (VARIABLE): Likewise.
47099
47100 * include/pupa/err.h (pupa_err_t): Added
47101 PUPA_ERR_UNKNOWN_COMMAND.
47102
47103 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47104 (pupa_dl_get_prefix): Likewise.
47105
47106 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47107 Added _chain.mod and _linux.mod instead of chain.mod and
47108 linux.mod.
47109 (chain_mod_SOURCES): Renamed to ...
47110 (_chain_mod_SOURCES): ... this.
47111 (chain_mod_CFLAGS): Renamed to ...
47112 (_chain_mod_CFLAGS): ... this.
47113 (linux_mod_SOURCES): Renamed to ...
47114 (_linux_mod_SOURCES): ... this.
47115 (linux_mod_CFLAGS): Renamed to ...
47116 (_linux_mod_CFLAGS): ... this.
47117 (normal_mod_SOURCES): New variable.
47118 (normal_mod_CFLAGS): Likewise.
47119 (normal_mod_ASFLAGS): Likewise.
47120
47121 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47122
47123 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47124 possible.
47125
47126 * kern/dl.c (pupa_dl_ref): Refer depending modules
47127 recursively.
47128 (pupa_dl_unref): Unrefer depending modules recursively.
47129 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47130 a module is unloaded before one depending on that module is
47131 unloaded.
47132 (pupa_dl_unload): Unload depending modules explicitly,
47133 if possible.
47134
47135 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47136
47137 * include/pupa/i386/pc/linux.h: New file.
47138 * loader/i386/pc/linux.c: Likewise.
47139
47140 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47141 Removed.
47142 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47143 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47144 of PUPA_CHAINLOADER_BOOT_SECTOR.
47145
47146 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47147 (pupa_linux_prot_size): New variable.
47148 (pupa_linux_tmp_addr): Likewise.
47149 (pupa_linux_real_addr): Likewise.
47150 (pupa_linux_boot_zimage): New function.
47151 (pupa_linux_boot_bzimage): Likewise.
47152
47153 * kern/i386/pc/init.c (struct mem_region): New structure.
47154 (MAX_REGIONS): New macro.
47155 (mem_regions): New variable.
47156 (num_regions): Likewise.
47157 (pupa_os_area_addr): Likewise.
47158 (pupa_os_area_size): Likewise.
47159 (pupa_lower_mem): Likewise.
47160 (pupa_upper_mem): Likewise.
47161 (add_mem_region): New function.
47162 (compact_mem_regions): Likewise.
47163 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47164 the size of the conventional memory and that of so-called upper
47165 memory (before the first memory hole).
47166 Instead of adding each found region to free memory, use
47167 add_mem_region and add them after removing overlaps.
47168 Also, add only 1/4 of the upper memory to free memory. The rest
47169 is used for loading OS images. Maybe this is ad hoc, but this
47170 makes it much easier to relocate OS images when booting.
47171
47172 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47173 (pupa_enter_rescue_mode): Don't register initrd and module.
47174
47175 * kern/mm.c: Include pupa/dl.h.
47176
47177 * kern/main.c: Include pupa/file.h and pupa/device.h.
47178
47179 * kern/loader.c (pupa_loader_load_module_func): Removed.
47180 (pupa_loader_load_module): Likewise.
47181
47182 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47183 ``.o''.
47184
47185 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47186 (pupa_linux_tmp_addr): Likewise.
47187 (pupa_linux_real_addr): Likewise.
47188 (pupa_linux_boot_zimage): Likewise.
47189 (pupa_linux_boot_bzimage): Likewise.
47190
47191 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47192 (pupa_upper_mem): Likewise.
47193 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47194 module is too dangerous.
47195
47196 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47197 (pupa_os_area_size): Likewise.
47198 (pupa_loader_set): Remove the first argument. Loader doesn't
47199 manage modules or initrd any longer.
47200 (pupa_loader_load_module): Removed.
47201
47202 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47203 (linux_mod_SOURCES): New variable.
47204 (linux_mod_CFLAGS): Likewise.
47205
47206 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47207
47208 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47209 the length of a blocklist correctly.
47210
47211 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47212 Use ioctl only if the OS file is a block device.
47213 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47214 not very useful for normal files.
47215
47216 * kern/main.c (pupa_set_root_dev): New function.
47217 (pupa_load_normal_mode): Likewise.
47218 (pupa_main): Call those above.
47219
47220 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47221 pupa_uint16_t.
47222
47223 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47224
47225 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47226
47227 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47228 (setup): Configure the installed partition information and the
47229 dl prefix.
47230
47231 * loader/i386/pc/chainloader.c (my_mod): New variable.
47232 (pupa_chainloader_unload): New function.
47233 (pupa_rescue_cmd_chainloader): Refer itself.
47234 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47235
47236 * kern/i386/pc/startup.S (install_partition): Removed.
47237 (version_string): Likewise.
47238 (config_file): Likewise.
47239 (pupa_install_dos_part): New variable.
47240 (pupa_install_bsd_part): Likewise.
47241 (pupa_prefix): Likewise.
47242 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47243
47244 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47245 and pupa/misc.h.
47246 (make_install_device): New function.
47247 (pupa_machine_init): Set the dl prefix.
47248
47249 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47250 (buf): Renamed to ...
47251 (linebuf): ... this.
47252 (pupa_rescue_cmd_prefix): New function.
47253 (pupa_rescue_cmd_insmod): Likewise.
47254 (pupa_rescue_cmd_rmmod): Likewise.
47255 (pupa_rescue_cmd_lsmod): Likewise.
47256 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47257 rmmod and lsmod.
47258
47259 * kern/mm.c (pupa_memalign): If failed even after invalidating
47260 disk caches, unload unneeded modules and retry.
47261
47262 * kern/misc.c (pupa_memmove): New function.
47263 (pupa_memcpy): Removed.
47264 (pupa_strcpy): New function.
47265 (pupa_itoa): Made static.
47266
47267 * kern/dl.c (pupa_dl_iterate): New function.
47268 (pupa_dl_ref): Likewise.
47269 (pupa_dl_unref): Likewise.
47270 (pupa_dl_unload): Return if succeeded or not.
47271 (pupa_dl_unload_unneeded): New function.
47272 (pupa_dl_unload_all): Likewise.
47273 (pupa_dl_init): Renamed to ...
47274 (pupa_dl_set_prefix): ... this.
47275 (pupa_dl_get_prefix): New function.
47276
47277 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47278 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47279 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47280 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47281 (pupa_install_dos_part): Declared.
47282 (pupa_install_bsd_part): Likewise.
47283 (pupa_prefix): Likewise.
47284 (pupa_boot_drive): Likewise.
47285
47286 * include/pupa/types.h: Fix a typo.
47287
47288 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47289 pupa_memmove.
47290 (pupa_memmove): Declared.
47291 (pupa_strcpy): Likewise.
47292
47293 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47294 pupa_mod_init takes one argument, its own module.
47295 (pupa_dl_unload_unneeded): Declared.
47296 (pupa_dl_unload_all): Likewise.
47297 (pupa_dl_ref): Likewise.
47298 (pupa_dl_unref): Likewise.
47299 (pupa_dl_iterate): Likewise.
47300 (pupa_dl_init): Renamed to ...
47301 (pupa_dl_set_prefix): ... this.
47302 (pupa_dl_get_prefix): Declared.
47303
47304 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47305 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47306 unloaded.
47307 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47308 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47309
47310 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47311 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47312
47313 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47314
47315 * util/i386/pc/pupa-setup.c (setup): Define the internal
47316 function find_first_partition_start at the top level, because GCC
47317 3.0.x cannot compile internal functions in deeper scopes
47318 correctly.
47319 (find_root_device): Use lstat instead of stat.
47320 Don't follow symbolic links.
47321 Fix the path-constructing code.
47322
47323 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47324 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47325 by a BLKGETSIZE ioctl first, because block devices don't fill
47326 the member st_mode of the structure stat on Linux.
47327 [__linux__] (linux_find_partition): Use a temporary buffer
47328 REAL_DEV for the working space. Copy it to DEV before returning.
47329 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47330 buffer cache consistent.
47331 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47332 strncmp. The previous value was merely wrong.
47333 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47334
47335 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47336 FAT size is 12. The previous value was merely wrong.
47337
47338 * kern/main.c (pupa_main): Don't split the starting message from
47339 newlines.
47340
47341 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47342 LF, because BIOS goes crazy about character attributes in this
47343 case.
47344
47345 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47346
47347 * include/i386/pc/util/biosdisk.h: New file.
47348 * util/i386/pc/biosdisk.c: Likewise.
47349 * util/i386/pc/pupa-setup.c: Likewise.
47350
47351 * Makefile.in (INCLUDE_DISTFILES): Added
47352 include/pupa/i386/pc/util/biosdisk.h.
47353 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47354 directory util/i386/pc.
47355 (install-local): Added a rule for sbin_UTILITIES.
47356 (uninstall): Likewise.
47357
47358 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47359
47360 * util/misc.c (xrealloc): New function.
47361 (pupa_malloc): Likewise.
47362 (pupa_free): Likewise.
47363 (pupa_realloc): Likewise.
47364 (pupa_stop): Likewise.
47365 (pupa_putchar): Likewise.
47366
47367 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47368
47369 * include/pupa/util/misc.h (xrealloc): Declared.
47370
47371 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47372 macro.
47373 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47374 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47375
47376 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47377 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47378
47379 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47380 way should be implemented.
47381 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47382
47383 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47384 the size of NAME for safety.
47385 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47386 0x88.
47387
47388 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47389 (pupa_setup_SOURCES): Likewise.
47390
47391 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47392
47393 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47394
47395 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47396 bunch of pushl's from pusha, because this destroys the return
47397 value.
47398
47399 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47400
47401 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47402 This means that any missing prototypes could be fatal. Also, you
47403 must take care when writing assembly code. See the comments at
47404 the beginning of startup.S, for more details.
47405
47406 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47407 compilation mechanism.
47408 (pupa_chainloader_real_boot): Likewise.
47409 (pupa_biosdisk_rw_int13_extensions): Likewise.
47410 (pupa_biosdisk_rw_standard): Likewise.
47411 (pupa_biosdisk_check_int13_extensions): Likewise.
47412 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47413 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47414 (pupa_get_memsize): Likewise.
47415 (pupa_get_mmap_entry): Likewise.
47416 (pupa_console_putchar): Likewise.
47417 (pupa_console_setcursor): Likewise.
47418 (pupa_getrtsecs): Use pushl instead of push.
47419
47420 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47421 memory instead of the stack for a mmap entry, because some
47422 BIOSes may ignore the maximum size and overflow.
47423
47424 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47425
47426 * genmk.rb (PModule#rule): Compile automatically generated
47427 sources with module-specific CFLAGS as well as other sources.
47428
47429 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47430
47431 * configure.ac: Check ld.
47432 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47433 respectively, before checking endianness and sizes.
47434
47435 * Makefile.in (LD): New variable.
47436
47437 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47438
47439 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47440
47441 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47442
47443 * Changelog: New file.
47444