]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Remove nested functions from videoinfo iterators.
[grub2.git] / ChangeLog
1 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Remove nested functions from videoinfo iterators.
4
5 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
8 for 64-bit platforms.
9
10 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
13 a FOR_CHILDREN macro.
14
15 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
18 platform from firmware path.
19
20 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
21
22 Enable linux16 on non-BIOS systems for i.a. memtest.
23
24 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
25 correctly.
26 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
27
28 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
31 Fix end of table condition.
32
33 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
36 out of its parent.
37
38 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/fs/jfs.c: Remove nested functions.
41
42 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/fs/minix.c: Remove nested functions.
45
46 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
47
48 * grub-core/fs/iso9660.c: Remove nested functions.
49
50 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
53 of parent function.
54
55 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * util/grub-fstest.c: Remove nested functions.
58
59 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
60
61 * grub-core/loader/machoXX.c: Remove nested functions.
62
63 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
64
65 Remove nested functions from disk and file read hooks.
66
67 * include/grub/disk.h (grub_disk_read_hook_t): New type.
68 (struct grub_disk): Add read_hook_data member.
69 * include/grub/file.h (struct grub_file): Likewise.
70 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
71 argument.
72
73 Update all callers.
74
75 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
76
77 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
78 Fix off by one error in enumerating extended partitions.
79
80 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
81
82 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
83 memory leak if device name is not found.
84
85 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
86
87 * grub-core/normal/menu_entry.c (update_screen): remove
88 unused variable `off' which caused scroll down arrow to be always shown.
89
90 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
91
92 * grub-core/normal/menu_entry.c (insert_string): fix off by one
93 access to unallocated memory.
94
95 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
96
97 * Makefile.util.def: Add partmap/msdos.c to common library.
98 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
99 * grub-core/disk/ldm.c: Check for existence of
100 GRUB_PC_PARTITION_TYPE_LDM.
101
102 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
103
104 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
105 sizes and display sector size.
106
107 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
108
109 Implement new command cmosdump.
110
111 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
112
113 Support Openfirmware disks with non-512B sectors.
114
115 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
116 size of the disk.
117 * (grub_ofdisk_get_block_size): New function.
118 * (grub_ofdisk_prepare): Use the correct block size.
119 * (grub_ofdisk_read): Likewise.
120 * (grub_ofdisk_write): Likewise.
121 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
122 New proto.
123
124 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
125
126 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
127
128 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
129
130 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
131 on first error.
132
133 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
136 freeing it.
137
138 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
139
140 Implement USBDebug (full USB stack variant).
141
142 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
143
144 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
145 unless they have unexpected values.
146
147 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
150 grub_print_error.
151
152 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
153
154 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
155 zero-out of port structure.
156
157 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
158
159 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
160 of extended attributes.
161
162 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
163
164 * util/grub-install.in: change misleading comment about
165 device.map creation
166
167 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
170 when menu highlight color isn't set.
171
172 2013-01-27 C. Masloch <pushbx@38.de>
173
174 Improve FreeDOS direct loading support compatibility.
175
176 * include/grub/i386/relocator.h (grub_relocator16_state):
177 New member ebp.
178 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
179 variable.
180 (grub_relocator16_boot): Handle %ebp.
181 * grub-core/lib/i386/relocator16.S: Likewise.
182 * grub-core/loader/i386/pc/freedos.c:
183 Load BPB to pass kernel which partition to load from.
184 Check that kernel file is not too large.
185 Set register dl to BIOS unit number as well.
186
187 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
188
189 * util/grub-reboot.in (usage): Document the need for
190 GRUB_DEFAULT=saved.
191 * util/grub-set-default.in (usage): Likewise.
192 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
193
194 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
197 than defining WORDS_BIGENDIAN manually.
198
199 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
200
201 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
202 invariants.
203
204 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
205
206 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
207 nested.
208 (blit_comb: add_device_width): Likewise.
209
210 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
211
212 Remove nested functions from USB iterators.
213
214 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
215 (grub_usb_controller_iterate_hook_t): Likewise.
216 (grub_usb_iterate): Add hook_data argument.
217 (grub_usb_controller_iterate): Likewise.
218 (struct grub_usb_controller_dev.iterate): Likewise.
219
220 Update all implementations and callers.
221
222 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
223
224 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
225 margin when not needed.
226
227 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
228
229 Make color variables global instead of it being per-terminal.
230
231 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
232
233 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
234 asterisk.
235
236 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
237
238 Fix powerpc and sparc64 build failures caused by un-nesting memory
239 map iterators.
240
241 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
242
243 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
244 parameter declarations.
245
246 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
249
250 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
251
252 Improve spkmomdem reliability by adding a separator between bytes.
253
254 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
255
256 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
257 an Acer registration utility with several sightings in the wild.
258 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
259
260 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
261
262 Remove nested functions from filesystem directory iterators.
263
264 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
265 (struct grub_fs.dir): Add hook_data argument.
266
267 Update all implementations and callers.
268
269 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
270
271 * docs/grub.texi (Multi-boot manual config): Fix typo for
272 "recommended".
273
274 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
275
276 * util/grub-mkimage.c (main): Postpone freeing arguments.output
277 until after its use in generate_image.
278
279 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
280
281 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
282 initrd size to addr_min, since the initrd will be allocated after
283 this address.
284
285 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
286
287 * conf/Makefile.common: Fix autogen rules to pass definition
288 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
289
290 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
291
292 * include/grub/elf.h: Update ARM definitions based on binutils.
293
294 2013-01-20 Aleš Nesrsta <starous@volny.cz>
295
296 Split long USB transfers into short ones.
297
298 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
299
300 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
301 is interrupted by ESC.
302
303 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
304
305 * util/grub-script-check.c (main): Uniform the error message.
306
307 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
308
309 Remove nested functions from ELF iterators.
310
311 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
312
313 Remove nested functions from device iterators.
314
315 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
316 (grub_arc_iterate_devs): Add hook_data argument.
317 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
318 (struct grub_ata_dev.iterate): Add hook_data argument.
319 * include/grub/device.h (grub_device_iterate_hook_t): New type.
320 (grub_device_iterate): Add hook_data argument.
321 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
322 (struct grub_disk_dev.iterate): Add hook_data argument.
323 (grub_disk_dev_iterate): Likewise.
324 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
325 Likewise.
326 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
327 Likewise.
328 * include/grub/partition.h (grub_partition_iterate_hook_t): New
329 type.
330 (struct grub_partition_map.iterate): Add hook_data argument.
331 (grub_partition_iterate): Likewise.
332 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
333 (struct grub_scsi_dev.iterate): Add hook_data argument.
334
335 Update all callers.
336
337 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
338
339 Fix typos for "developer" and "development".
340
341 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
342
343 Add license header to spkmodem-recv.c.
344
345 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
346
347 Rewrite spkmodem to use PIT for timing. Double the speed.
348
349 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
350
351 Add new command pcidump.
352
353 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
354
355 New terminal outputs using serial: morse and spkmodem.
356
357 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
358
359 Improve bidi handling in entry editor.
360
361 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
364 argument to prevent name collision.
365
366 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
367
368 Remove nested functions from script reading and parsing.
369
370 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
371 getline_data argument, passed to getline.
372 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
373 getline_data argument, passed to grub_parser_split_cmdline.
374 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
375 lexerstate->getline_data to lexerstate->getline.
376 (grub_script_lexer_init): Add getline_data argument, saved in
377 lexerstate->getline_data.
378 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
379 argument, passed to grub_script_parse.
380 * grub-core/script/script.c (grub_script_parse): Add getline_data
381 argument, passed to grub_script_lexer_init.
382 * include/grub/parser.h (grub_parser_split_cmdline): Update
383 prototype. Update all callers to pass appropriate getline data.
384 (struct grub_parser.parse_line): Likewise.
385 (grub_rescue_parse_line): Likewise.
386 * include/grub/reader.h (grub_reader_getline_t): Add void *
387 argument.
388 * include/grub/script_sh.h (struct grub_lexer_param): Add
389 getline_data member.
390 (grub_script_parse): Update prototype. Update all callers to pass
391 appropriate getline data.
392 (grub_script_lexer_init): Likewise.
393 (grub_normal_parse_line): Likewise.
394
395 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
396 data argument.
397 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
398 static instead of nested. Rename to ...
399 (grub_parser_execute_getline): ... this.
400 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
401 data argument.
402 * grub-core/normal/main.c (read_config_file: getline): Make static
403 instead of nested. Rename to ...
404 (read_config_file_getline): ... this.
405 (grub_normal_read_line): Add unused data argument.
406 * grub-core/script/execute.c (grub_script_execute_sourcecode:
407 getline): Make static instead of nested. Rename to ...
408 (grub_script_execute_sourcecode_getline): ... this.
409 * util/grub-script-check.c (main: get_config_line): Make static
410 instead of nested.
411
412 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
413
414 Remove nested functions from memory map iterators.
415
416 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
417 argument, passed to hook.
418 * grub-core/kern/i386/coreboot/mmap.c
419 (grub_linuxbios_table_iterate): Likewise.
420 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
421 instead of nested.
422 (grub_machine_mmap_iterate): Add hook_data argument.
423 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
424 Add hook_data argument, passed to hook.
425 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
426 Likewise.
427 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
428 Likewise.
429 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
430 Likewise.
431 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
432 Likewise.
433 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
434 Likewise.
435 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
436 Likewise.
437 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
438 (grub_machine_mmap_iterate): Likewise.
439 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
440 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
441 prototype.
442 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
443 Remove NESTED_FUNC_ATTR from here and from all users.
444 (grub_mmap_iterate): Update prototype.
445 (grub_efi_mmap_iterate): Update prototype. Update all callers to
446 pass appropriate hook data.
447 (grub_machine_mmap_iterate): Likewise.
448
449 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
450 static instead of nested.
451 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
452 Rename to ...
453 (lsmmap_hook): ... this.
454 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
455 Likewise.
456 (grub_efiemu_mmap_fill: fill_hook): Likewise.
457 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
458 heap_init): Likewise.
459 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
460 Rename to ...
461 (mmap_iterate_hook): ... this.
462 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
463 Likewise.
464 * grub-core/lib/ieee1275/relocator.c
465 (grub_relocator_firmware_get_max_events: count): Likewise.
466 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
467 to ...
468 (grub_relocator_firmware_fill_events_iter): ... this.
469 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
470 hook): Likewise. Rename to ...
471 (grub_relocator_alloc_chunk_align_iter): ... this.
472 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
473 Rename to ...
474 (generate_e820_mmap_iter): ... this.
475 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
476 Rename to ...
477 (count_hook): ... this.
478 (grub_linux_boot: hook): Likewise. Rename to ...
479 (grub_linux_boot_mmap_find): ... this.
480 (grub_linux_boot: hook_fill): Likewise. Rename to ...
481 (grub_linux_boot_mmap_fill): ... this.
482 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
483 hook): Likewise. Rename to ...
484 (grub_fill_multiboot_mmap_iter): ... this.
485 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
486 hook): Likewise. Rename to ...
487 (count_hook): ... this.
488 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
489 hook): Likewise. Rename to ...
490 (grub_fill_multiboot_mmap_iter): ... this.
491 * grub-core/loader/powerpc/ieee1275/linux.c
492 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
493 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
494 Likewise. Rename to ...
495 (alloc_phys_choose): ... this.
496 (determine_phys_base: get_physbase): Likewise.
497 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
498 find_hook): Likewise.
499 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
500 (malloc_hook: count_hook): Likewise.
501 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
502 Likewise. Rename to ...
503 (lower_hook): ... this.
504 (grub_mmap_get_upper: hook): Likewise. Rename to ...
505 (upper_hook): ... this.
506 (grub_mmap_get_post64: hook): Likewise. Rename to ...
507 (post64_hook): ... this.
508 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
509 Likewise. Rename to ...
510 (lower_hook): ... this.
511 (grub_mmap_get_upper: hook): Likewise. Rename to ...
512 (upper_hook): ... this.
513 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
514 (grub_mmap_iterate: fill_hook): Likewise.
515 (fill_mask): Pass addr and mask within a single struct.
516 (grub_cmd_badram: hook): Make static instead of nested. Rename
517 to ...
518 (badram_iter): ... this.
519 (grub_cmd_cutmem: hook): Likewise. Rename to ...
520 (cutmem_iter): ... this.
521
522 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
525 delimit path in strings using quotes.
526 * util/getroot.c (grub_guess_root_devices): Likewise.
527 (grub_make_system_path_relative_to_its_root): Likewise.
528 * util/grub-probe.c (probe): Likewise.
529 * util/ieee1275/ofpath.c (find_obppath): Likewise.
530 (xrealpath): Likewise.
531
532 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
533
534 Fix compilation with older compilers.
535
536 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
537 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
538 declarations.
539 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
540 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
541 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
542 identifier with b.
543 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
544 * include/grub/crypto.h: Add type defines.
545 * util/import_gcrypth.sed: Remove duplicate type defines.
546
547 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
548
549 New command list_trusted.
550
551 * grub-core/commands/verify.c (grub_cmd_list): New function.
552
553 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
554
555 * util/grub-mkimage.c (generate_image): Fix "size of public key"
556 info message.
557
558 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
559
560 Remove nested functions from PCI iterators.
561
562 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
563 passed to hook. Update all callers to pass appropriate hook data.
564 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
565 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
566 Remove NESTED_FUNC_ATTR from here and from all users.
567 (grub_pci_iterate): Update prototype.
568 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
569 instead of nested. Rename to ...
570 (grub_cs5536_find_iter): ... this.
571 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
572 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
573 Likewise.
574 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
575 Likewise.
576 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
577 Likewise.
578 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
579 Likewise.
580 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
581 * grub-core/video/radeon_fuloong2e.c
582 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
583 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
584 find_card): Likewise.
585 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
586 Likewise.
587
588 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
589
590 * grub-core/commands/verify.c: Mark messages for translating.
591
592 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
593
594 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
595 fatal.
596
597 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
598
599 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
600 fatal.
601
602 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * autogen.sh: Do not try to delete nonexistant files.
605 * util/import_gcrypth.sed: Add some missing header removals.
606
607 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
608
609 Clean up dangling references to grub-setup.
610 Fixes Ubuntu bug #1082045.
611
612 * docs/grub.texi (Images): Refer generally to grub-install rather
613 than directly to grub-setup.
614 (Installing GRUB using grub-install): Remove direct reference to
615 grub-setup.
616 (Device map) Likewise.
617 (Invoking grub-install): Likewise.
618 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
619 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
620 * util/grub-install.in (usage): Likewise.
621
622 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
623 Apply to grub-bios-setup and grub-sparc64-setup rather than to
624 grub-setup.
625 * configure.ac: Remove grub_setup output variable.
626
627 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
628 to grub-bios-setup.
629 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
630 grub-setup to grub-sparc64-setup.
631
632 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
633
634 Import gcrypt public-key cryptography and implement signature checking.
635
636 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/fs/ntfs.c: Ue more appropriate types.
639 * grub-core/fs/ntfscomp.c: Likewise.
640 * include/grub/ntfs.h: Likewise.
641
642 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
643
644 Support Apple FAT binaries on non-Apple platforms.
645
646 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
647 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
648 Likewise.
649 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
650 Apple FAT binaries.
651
652 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
655 sector devices.
656
657 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
658
659 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
660 explicitly zeroing elements.
661 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
662 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
663 of elements in a structure already allocated using grub_zalloc.
664 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
665
666 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
667
668 * docs/grub.texi (grub_cpu): New subsection.
669 (grub_platform): Likewise.
670
671 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
674
675 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
678 divisions.
679
680 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
683 * grub-core/fs/ntfscomp.c: Likewise.
684 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
685 (grub_ntfs_comp): Likewise.
686
687 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
688
689 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
690 Rename to ...
691 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
692 of groups_per_block. All users updated.
693
694 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
695
696 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
697 grub_error properly.
698 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
699 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
700
701 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
704 always in /boot/zfs.
705 Reported by: Yuta Satoh.
706
707 2013-01-03 Yuta Satoh <nigoro>
708
709 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
710 ${grub_probe}
711
712 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
713
714 * configure.ac: Extend -Wno-trampolines to host.
715
716 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
717
718 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
719 entry->len = 0.
720
721 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
722
723 * docs/grub.texi (Invoking grub-mkrelpath): New section.
724 (Invoking grub-script-check): Likewise.
725
726 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
727
728 * docs/grub.texi (Invoking grub-mount): New section.
729 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
730
731 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
732
733 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
734 test failures, so that a failing unit test correctly causes 'make
735 check' to fail.
736
737 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
738
739 Fix failing printf test.
740
741 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
742 '$' in the correct order when collecting type information.
743
744 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
745
746 * docs/grub.texi (configfile): Explain environment variable
747 handling.
748 (source): New section.
749 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
750
751 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
752
753 Remove several trivially-unnecessary uses of nested functions.
754
755 * grub-core/commands/i386/pc/sendkey.c
756 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
757 instead of nested.
758 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
759 Rename to ...
760 (legacy_file_getline): ... this.
761 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
762 Likewise.
763 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
764 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
765 to ...
766 (probe_dummy_iter): ... this.
767 * grub-core/kern/i386/coreboot/mmap.c
768 (grub_linuxbios_table_iterate: check_signature): Likewise.
769 * grub-core/kern/parser.c (grub_parser_split_cmdline:
770 check_varstate): Likewise. Mark inline.
771 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
772 an additional parameter.
773 (find_long: fnd_long): Likewise. Pass two additional parameters.
774 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
775 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
776 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
777 Likewise. Rename to ...
778 (grub_cmos_find_port_iter): ... this.
779 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
780 Rename to ...
781 (find_rtc_iter): ... this.
782
783 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
784 function directly into the function body, since it is only called
785 once.
786
787 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
788
789 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
790 __attribute__ ((unused)).
791 * grub-core/video/bochs.c (find_card): Likewise.
792 * grub-core/video/cirrus.c (find_card): Likewise.
793 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
794 * grub-core/video/sis315pro.c (find_card): Likewise.
795 * grub-core/video/sm712.c (find_card): Likewise.
796
797 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
798
799 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
800 Fixes Savannah bug #37821.
801
802 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
803
804 Apply program name transformations at build-time rather than at
805 run-time. Fixes Debian bug #696465.
806
807 * acinclude.m4 (grub_TRANSFORM): New macro.
808 * configure.ac: Create output variables with transformed names for
809 most programs.
810 * util/bash-completion.d/grub-completion.bash.in: Use
811 pre-transformed variables for program names.
812 * util/grub-install.in: Likewise.
813 * util/grub-kbdcomp.in: Likewise.
814 * util/grub-mkconfig.in: Likewise.
815 * util/grub-mkconfig_lib.in: Likewise.
816 * util/grub-mknetdir.in: Likewise.
817 * util/grub-mkrescue.in: Likewise.
818 * util/grub-mkstandalone.in: Likewise.
819 * util/grub-reboot.in: Likewise.
820 * util/grub-set-default.in: Likewise.
821 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
822 * tests/util/grub-shell-tester.in: Remove unused assignment.
823 * tests/util/grub-shell.in: Likewise.
824 * util/grub.d/00_header.in: Likewise.
825
826 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
827
828 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
829
830 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
831 HAVE_RAW_DECL_GETS.
832 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
833
834 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
835
836 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
837 Reported by: Eriks Latosheks <foresterlv>.
838
839 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
840
841 * docs/grub.texi (Network): Update instructions on generating netboot
842 image.
843
844 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
847 around device name if necessarry.
848
849 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
850
851 * util/grub-install.in: Follow the symbolic link parameter added
852 to the file command.
853
854 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
855
856 * util/grub-install.in: Remove stale TODO.
857
858 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
859
860 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
861 dynamic allocation for the bootpath buffer.
862
863 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
864
865 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
866 window too small.
867
868 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
869
870 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
871 argument rather than font name. All users updated.
872 (grub_gfxterm_set_window): Likewise.
873
874 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
875
876 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
877 from working.
878
879 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
880
881 * util/getroot.c (convert_system_partition_to_system_disk): Support
882 nbd disks.
883
884 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
887 infinite loop on corrupted FS.
888
889 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
890
891 Fix big-endian mtime.
892
893 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
894 together sec and usec.
895 (grub_ufs_dir): Use correct byteswapping for UFS time.
896
897 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
898
899 Support big-endian UFS1.
900
901 * Makefile.util.def (libgrubmods): Add ufs_be.c
902 * grub-core/Makefile.core.def (ufs1_be): New module.
903 * grub-core/fs/ufs_be.c: New file.
904 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
905 the file.
906
907 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
908
909 * include/grub/types.h: Fix functionality unaffecting typo in
910 GRUB_TARGET_WORDSIZE conditional macro.
911
912 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
913
914 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
915
916 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
917
918 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
919 that /netbsd appears first (when it exists).
920
921 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
922
923 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
924 Fixes Savannah bug #37558.
925
926 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
927
928 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
929 description of extract_entries_configfile.
930
931 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
932
933 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
934 preferred_address.
935 (grub_cmd_linux): Likewise.
936 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
937 preferred_lifetime. Update all users.
938
939 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
940
941 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
942 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
943
944 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
945
946 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
947 errors from grub-probe to /dev/null, not stdout.
948
949 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
952 sector 1.
953
954 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
955
956 * util/grub-install.in: Make the error message if $source_dir
957 doesn't exist more useful.
958
959 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
960
961 Fix grub-emu build on FreeBSD.
962
963 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
964 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
965 headers on Linux.
966 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
967 implementation is currently Linux-specific.
968 * util/getroot.c (exec_pipe): Define only on Linux or when either
969 libzfs or libnvpair is unavailable.
970 (find_root_devices_from_poolname): Remove unused path variable.
971
972 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
973
974 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
975 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
976 should fit before end == 63.
977
978 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
979
980 * util/grub-setup.c (write_rootdev): Remove unused core_img
981 parameter. Update all callers.
982 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
983 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
984 GRUB_SETUP_BIOS.
985
986 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * util/grub-mkconfig_lib.in (grub_tab): New variable.
989 (grub_add_tab): New function.
990 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
991 * util/grub.d/10_illumos.in: Likewise.
992 * util/grub.d/10_kfreebsd.in: Likewise.
993 * util/grub.d/10_linux.in: Likewise.
994 * util/grub.d/10_netbsd.in: Likewise.
995 * util/grub.d/10_windows.in: Likewise.
996 * util/grub.d/10_xnu.in: Likewise.
997 * util/grub.d/20_linux_xen.in: Likewise.
998 * util/grub.d/30_os-prober.in: Likewise.
999
1000 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1003 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1004 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1005 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1006 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1007 ieee1275-nocursor.
1008 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1009 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1010
1011 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1014 le-conversion.
1015 Reported by: BURETTE, Bernard.
1016
1017 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1018
1019 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1020 from comment.
1021
1022 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1023
1024 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1025 IEEE1275 machines. Fixes powerpc-emu compilation.
1026 * include/grub/terminfo.h: Likewise.
1027
1028 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1031 a const pointer.
1032 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1033 const pointer.
1034 (efiemu_set_variable): Make vendor_guid a const pointer.
1035
1036 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 Don't require grub-mkconfig_lib to generate manpages for programs.
1039
1040 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1041 dependencies, don't add grub-mkconfig_lib.
1042 (program): Pass empty adddeps.
1043 (script): Pass grub-mkconfig_lib as adddeps.
1044
1045 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1048 * util/getroot.c (grub_find_device): Likewise.
1049 (get_mdadm_uuid): Likewise.
1050 (grub_util_is_imsm): Likewise.
1051 (grub_util_pull_device): Likewise.
1052 * util/grub-probe.c (probe): Likewise.
1053
1054 2012-09-10 Benoit Gschwind <gschwind>
1055
1056 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1057 (devs): Add devpath_8.
1058
1059 2012-09-08 Peter Jones <pjones@redhat.com>
1060
1061 * grub-core/Makefile.core.def (efifwsetup): New module.
1062 * grub-core/commands/efi/efifwsetup.c: New file.
1063 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1064 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1065 New define.
1066 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1067
1068 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1069
1070 * configure.ac: Add SuSe path.
1071
1072 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1073
1074 * NEWS: Fix typo.
1075
1076 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1077
1078 * util/import_gcry.py: Sort cipher_files, to make build system
1079 generation more deterministic.
1080
1081 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1084 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1085 (grub_set_datetime): Likewise.
1086
1087 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1090 warnings.
1091
1092 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1095
1096 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1099
1100 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1101
1102 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1103 required for checkouts from bzr, but it may be useful for users or
1104 distributors wishing to update translations against a tarball
1105 distribution, and it can be helpful for the tarball to be a superset
1106 of what's in bzr.
1107
1108 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1109
1110 * Makefile.am (EXTRA_DIST): Add
1111 grub-core/tests/boot/linux.init-mips.S,
1112 grub-core/tests/boot/linux.init-ppc.S, and
1113 grub-core/tests/boot/linux-ppc.cfg.
1114
1115 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1116
1117 * grub-core/mmap/mips/loongson: Remove empty directory.
1118
1119 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1120
1121 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1122 gone.
1123
1124 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1125
1126 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1127 grub-sparc64-setup.
1128
1129 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1130
1131 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1132
1133 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1134
1135 * po/POTFILES.in: Regenerated.
1136
1137 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1138
1139 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1140 (NetBSD): New subsection.
1141
1142 2012-07-22 Ales Nesrsta <starous@volny.cz>
1143
1144 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1145 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1146
1147 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1150 * util/grub.d/10_hurd.in: Add missing quoting.
1151 * util/grub.d/10_illumos.in: Likewise.
1152 * util/grub.d/10_kfreebsd.in: Likewise.
1153 * util/grub.d/10_linux.in: Likewise.
1154 * util/grub.d/20_linux_xen.in: Likewise.
1155
1156 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 New command `lsefi'.
1159
1160 * grub-core/Makefile.core.def (lsefi): New module.
1161 * grub-core/commands/efi/lsefi.c: New file.
1162 * include/grub/efi/api.h: Add more GUIDs.
1163
1164 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1167 (grub_bsd_elf32_hook): Likewise.
1168 (grub_bsd_elf64_size_hook): Likewise.
1169 (grub_bsd_elf64_hook): Likewise.
1170 (grub_bsd_load_elf): Likewise.
1171
1172 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1175 if hash function is unavailable.
1176 (dec_stream_header): Likewise.
1177
1178 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1181 filter state.
1182
1183 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1184
1185 Fix coreboot compilation.
1186
1187 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1188 (grub_vga_text_init_real): ... this.
1189 (grub_vga_text_fini): Rename to ...
1190 (grub_vga_text_fini_real): ... this.
1191
1192 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1195
1196 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 * grub-core/lib/legacy_parse.c: Support clear and testload.
1199
1200 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1203
1204 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1205
1206 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1207
1208 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1209
1210 * grub-core/net/tftp.c (ack): Fix endianness problem.
1211 (tftp_receive): Likewise.
1212 Reported by: Michael Davidsaver.
1213
1214 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1217
1218 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1221 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1222 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1223
1224 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1227 efi_mmap_size.
1228 Reported by: Stuart Hayes.
1229
1230 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1233
1234 * grub-core/Makefile.core.def (mda_text): New module.
1235 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1236 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1237 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1238 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1239 here.
1240 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1241 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1242 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1243 here.
1244 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1245 to ..
1246 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1247 ... here
1248 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1249 here.
1250 * grub-core/term/i386/vga_common.c: Removed.
1251 * include/grub/i386/vga_common.h: Likewise.
1252 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1253 (grub_vga_cr_bw_read): Likewise.
1254 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1255 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1256 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1257 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1258 grub_vga_cr_read/grub_vga_cr_write.
1259 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1260
1261 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 * configure.ac: Bump version to 2.00.
1264 * grub-core/normal/main.c (features): Add feature_200_final.
1265
1266 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1267 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1268
1269 * NEWS: Fix unclarity and language mistakes.
1270
1271 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1274 additional size to 3 pages.
1275 Reported by: Stuart Hayes.
1276
1277 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * NEWS: Add 2.00 entry.
1280
1281 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1284 put explicit "/" for empty path.
1285 (wildcard_expand): Improve dprintf.
1286
1287 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1290 it's equal to currnode. This can happen with "" symlink.
1291
1292 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1293
1294 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1295 echo shell command by printf command.
1296
1297 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1300 the value returned by firmware is the maximal position, not diumension.
1301 (grub_terminfo_output_state): Use a more sane fallback.
1302
1303 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1306
1307 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1310 frequency to 150 MHz.
1311
1312 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 Apple fixes.
1315
1316 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1317 __APPLE_
1318 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1319 definition.
1320 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1321
1322 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 Handle slash in HFS label.
1325
1326 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1327 (grub_hfs_dir): Tanslate slash.
1328 (grub_hfs_label): Don't translate slash.
1329
1330 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1333 network protocol listing since it introduces problematic dependency on
1334 net module.
1335
1336 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1339
1340 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 Init video early on yeeloong to avoid being rebooted by watchdog.
1343
1344 * grub-core/Makefile.am (gensm712): New target.
1345 (sm712_start.S): Likewise.
1346 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1347 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1348 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1349 description.
1350 * include/grub/vga.h: Move registry definitions to...
1351 * include/grub/vgaregs.h: ... here.
1352
1353 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1356 signedness.
1357
1358 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1361 platforms with firmware disk drivers in the core.
1362
1363 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1366 informative verbose message.
1367 (read_lv): Handle 64-bit segment size.
1368
1369 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1372
1373 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1376 character but still remove trainling spaces.
1377 (grub_fat_label): Ignore archive flag.
1378
1379 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1382 cast between linux_kernel_header and linux_kernel_params.
1383
1384 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1385
1386 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1387 type for size.
1388 (grub_raid6_recover_func_t): Likewise.
1389 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1390 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1391
1392 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1395
1396 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1397
1398 Fix overflow.
1399
1400 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1401 [__NetBSD__]: Add explicit cast before bitshift.
1402
1403 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 * configure.ac: Bump to 2.00~rc1.
1406
1407 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1410 half of $a0.
1411
1412 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1413 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1414
1415 * docs/grub.texi: Fix search syntax.
1416 (Multi-boot manual config): Put msdos rather than GPT example.
1417 Grammar corrections.
1418
1419 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1422
1423 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1426
1427 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1430 message on double free. Put the value of magic in case of mismatch.
1431
1432 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 Speed-up video on yeeloong.
1435
1436 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1437 add cached_ptr.
1438 (grub_video_sm712_video_fini): Unmap cached_ptr.
1439 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1440 (grub_video_sm712_set_active_render_target): Removed.
1441 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1442 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1443 sync caches.
1444
1445 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 Avoid flushing the same line multiple times on loongson.
1448
1449 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1450 Step in 32 bytes and not 1 byte.
1451 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1452 Likewise.
1453
1454 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1457 subvolumes.
1458
1459 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 Implement flow control for http.
1462
1463 * grub-core/net/http.c (parse_line): Handle response 206.
1464 (http_receive): Stall if too many packets are in the queue.
1465 (http_establish): Fix range header.
1466 (http_seek): Fix double free.
1467 (http_close): Likewise.
1468 (http_packets_pulled): New function.
1469 (grub_http_protocol): Set http_seek
1470 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1471 (ack_real): Set window depending on i_stall.
1472 (grub_net_send_tcp_packet): Likewise.
1473 (grub_net_tcp_stall): New function.
1474 (grub_net_tcp_unstall): Likewise.
1475 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1476 (grub_net_tcp_unstall): Likewise.
1477
1478 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1481
1482 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1485
1486 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * tests/util/grub-shell.in: Fix a typo.
1489
1490 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 Implement flow control for tftp.
1493
1494 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1495 packets but stop only if stop condition is satisfied.
1496 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1497 `stall' instead of `eof' as stop condition.
1498 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1499 (http_err): Likewise.
1500 * grub-core/net/tftp.c (ack): Replace the first argument with data
1501 instead of socket.
1502 (tftp_receive): Stall if too many packets are in wait queue.
1503 (tftp_packets_pulled): New function.
1504 (grub_tftp_protocol): Set packets_pulled.
1505 * include/grub/net.h (grub_net_packets): New field count.
1506 (grub_net_put_packet): Increment count.
1507 (grub_net_remove_packet): Likewise.
1508 (grub_net_app_protocol): New field `packets_pulled'.
1509 (grub_net): New field `stall'.
1510
1511 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1512
1513 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1514 sync part to handle them.
1515
1516 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1519 * grub-core/net/drivers/ieee1275/ofnet.c
1520 (grub_ieee1275_net_config_real): Likewise.
1521
1522 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1525 the direct route for server/gateway.
1526
1527 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1530 IP address to server name since we may not hame the DNS.
1531
1532 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1535 freeing random buffer on failure.
1536 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1537
1538 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1541
1542 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1545 reserved bytes.
1546 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1547 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1548 Handle malloc error correctly.
1549
1550 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1553 blocks.
1554
1555 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1558 increment.
1559
1560 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1563 none is explicitly specified.
1564
1565 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1568 while reallocating.
1569
1570 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 Respect netmask from bootp/dhcp.
1573
1574 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1575 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1576 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1577 into ...
1578 (grub_net_add_ipv4_local): ... this.
1579 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1580 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1581 (grub_net_add_ipv4_local): New proto.
1582
1583 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1586 determining EFI memory map size.
1587
1588 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1591
1592 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1595 when looking for partition separator.
1596
1597 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1600 Escape commas.
1601
1602 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 Restructure FAT driver to avoid hook in label reading as it hits a
1605 GCC bug.
1606
1607 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1608 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1609 (grub_fat_iterate_dir): Split into ...
1610 (grub_fat_iterate_init): ... this, ...
1611 (grub_fat_iterate_fini): ... this, ...
1612 (grub_fat_iterate_dir_next): ... and this. All users updated.
1613
1614 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1617 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1618 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1619 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1620 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1621 New fields last_key and last_key_time.
1622 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1623 extended key-esc into extended key-extended key.
1624
1625 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 Avoid unnecessary memcpy of whole video buffer.
1628
1629 * grub-core/video/fb/video_fb.c (dirty): New struct.
1630 (framebuffer): Add members current_dirty and previous_dirty.
1631 (dirty): New function.
1632 (grub_video_fb_fill_rect): Update dirty.
1633 (common_blitter): Likewise.
1634 (grub_video_fb_scroll): Likewise.
1635 (doublebuf_blit_update_screen): Copy only dirty part.
1636 (doublebuf_pageflipping_update_screen): Likewise.
1637 (grub_video_fb_doublebuf_blit_init): Init dirty.
1638 (doublebuf_pageflipping_init): Likewise.
1639 (grub_video_fb_setup): Likewise.
1640
1641 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1644 poll rate.
1645
1646 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 Fix wildcard regexp dot and other special characters handling.
1649 Reported by: Robert Mabee.
1650
1651 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1652 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1653 (split_path): Trigger expansion on '?'.
1654 (unescape): New function.
1655 (wildcard_expand): Unescape parts copied without globbing.
1656 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1657 (grub_script_arglist_to_argv): Don't unescape expansions.
1658
1659 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * include/grub/net.h (grub_net_card): New member txbufsize.
1662 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1663 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1664 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1665 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1666 txbufsize.
1667 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1668 compatible property to check for macs. Set
1669 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1670 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1671 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1672 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1673 (send_card_buffer): Use txbuf.
1674 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1675 nested function out of the parent while on it.
1676
1677 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1680 presence check.
1681 (grub_ieee1275_net_config_real): Fix config pointer.
1682
1683 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1686 filename parsing to non-block devices.
1687
1688 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1691
1692 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1695 All users updated.
1696
1697 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1700 UUID search command even if hints probing failed.
1701
1702 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1703
1704 * po/POTFILES.in: Regenerated.
1705
1706 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 Speed-up video on fuloong.
1709
1710 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1711 New function.
1712 (grub_pci_device_unmap_range): Handle non-cached address.
1713 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1714 add direct_ptr.
1715 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1716 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1717 (grub_video_sis315pro_set_active_render_target): Removed.
1718 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1719 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1720 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1721 sync caches.
1722 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1723 New proto.
1724
1725 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * docs/grub.texi (Multi-boot manual config): New section.
1728
1729 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 Avoid slow read-back from VRAM.
1732
1733 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1734 Move from here ...
1735 * grub-core/video/fb/video_fb.c
1736 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1737 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1738 (front_target): Remove front_target. Add pages.
1739 (grub_video_fb_init): Skip setting front_pages.
1740 (grub_video_fb_fini): Likewise.
1741 (doublebuf_blit_update_screen): Use pages.
1742 (grub_video_fb_doublebuf_blit_init): Likewise.
1743 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1744 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1745 (grub_video_fb_setup): Prefer doublebuffing.
1746
1747 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1750 gzio.
1751
1752 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 Add loongson tests.
1755
1756 * tests/util/grub-shell.in: Handle loongson.
1757 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1758 drivers.
1759 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1760 Reboot instead of shutdown if REBOOT is defined.
1761
1762 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1765 sized ports since unlike on real hardware qemu supports only 32-bit
1766 regs.
1767
1768 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1769
1770 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1771 * util/grub-mkrescue.in: Handle loongson.
1772
1773 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1776 Set is_part appropriately.
1777 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1778 names. Canonicalize partition without full disk.
1779
1780 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 Revert usb-quiesce since it's wrong.
1783
1784 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1785 (grub_ofdisk_init): Don't do quiesce.
1786
1787 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1790 PowerMac workaround to Xserves as well.
1791 Information supplied by: Benjamin Herrenschmidt.
1792
1793 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1794
1795 Don't assume that beginning address is also the entry point on ppc.
1796
1797 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1798 (grub_linux_boot): Use linux_entry.
1799 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1800 (grub_linux_load64): Likewise.
1801
1802 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1805
1806 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1809 needlessly lose the console.
1810
1811 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1814 space.
1815
1816 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1819 than current grub_get_rtc() not implemented when booted with
1820 coreboot without TSC.
1821
1822 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1823 Add machine/time.h to kernel headers on loongson.
1824 * grub-core/Makefile.core.def (kernel): Remove
1825 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1826 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1827 (grub_get_rtc): Likewise.
1828 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1829 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1830 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1831 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1832 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1833 rather than installing known non-working time source.
1834 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1835 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1836 * include/grub/time.h: Don't include machine/time.h.
1837 * include/grub/efi/time.h: Removed.
1838 * include/grub/i386/efi/time.h: Likewise.
1839 * include/grub/i386/ieee1275/time.h: Likewise.
1840 * include/grub/powerpc/ieee1275/time.h: Likewise.
1841 * include/grub/sparc64/ieee1275/time.h: Likewise.
1842 * include/grub/x86_64/efi/time.h: Likewise.
1843
1844 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 Remove dot on i and j when combining with above diacritics.
1847
1848 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1849 value.
1850 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1851 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1852 with dotless variants when any combining above is present.
1853
1854 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1857 text and not binary.
1858
1859 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1860
1861 Stop polling as soon as we have the packet we were waiting for.
1862
1863 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1864 All users updated.
1865 * grub-core/net/arp.c (have_pending): New var.
1866 (pending_req): Likewise.
1867 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1868 stop indicator.
1869 (grub_net_arp_receive): Set have_pending.
1870 * grub-core/net/dns.c (recv_data): New field stop.
1871 (recv_hook): Set stop.
1872 (grub_net_dns_lookup): Init stop and use as stop condition.
1873 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1874 condition.
1875 * grub-core/net/net.c (grub_net_poll_cards): New argument
1876 stop_condition. Stop when it goes true.
1877 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1878 indicator.
1879 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1880
1881 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 Keep TX and RX buffers on EFI rather than always allocate new ones.
1884
1885 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1886 card. All users updated.
1887 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1888 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1889 (get_card_packet): Likewise.
1890 (grub_efinet_findcards): Init new fields.
1891
1892 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1895 compilation error on sparc64.
1896
1897 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 Use ITC on IA64 rather than broken routine based on daytime.
1900
1901 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1902 ia64.
1903 (grub_get_rtc) [__ia64__]: Likewise.
1904 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1905 (get_itc): New function.
1906 (grub_rtc_get_time_ms): Likewise.
1907 (grub_machine_init): Calibrate ITC.
1908 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1909 Keep only on non-ia64. Don't export since it's broken and used only
1910 if TSC is unavailable.
1911
1912 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1915 even if it's used.
1916 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1917 Skip if parent is unused.
1918
1919 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1922
1923 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 Fix wildcard escaping.
1926
1927 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1928 * grub-core/script/execute.c (wildcard_escape): .. to here.
1929 Don't escape dot.
1930 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1931 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1932 Don't escape dot.
1933 * grub-core/script/execute.c (gettext_append): Always escape.
1934 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1935 * grub-core/script/yylex.l: Don't cut away the escaping.
1936 * tests/grub_script_echo1.in: Add tests with wildcard.
1937
1938 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
1941 (ftdi_hw_configure): Likewise.
1942 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
1943 define.
1944 (real_config): Handle 1.5 stop bits.
1945 (pl2303_hw_configure): Likewise.
1946
1947 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * Makefile.am: Add ppc linux bootcheck.
1950 * grub-core/tests/boot/linux-ppc.cfg: New file.
1951 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
1952
1953 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 * tests/grub_script_expansion.in: Skip network protocols.
1956
1957 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1958
1959 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
1960
1961 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
1964 --rom-directory.
1965 Add -graft-points.
1966
1967 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 ESCC serial driver for conducting sautomated tests in qemu.
1970 Not tested on real hardware.
1971
1972 * include/grub/serial.h (grub_serial_port): New field escc_desc.
1973 * grub-core/term/ieee1275/escc.c: New file.
1974 * grub-core/Makefile.core.def (escc): New module.
1975
1976 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
1979 invalid on error.
1980 (serial_hw_fetch): Don't read invalid handle.
1981 (serial_hw_put): Don't write into invalid handle.
1982
1983 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 Add a 1.5 stop bits value.
1986
1987 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
1988 * include/grub/serial.h (grub_serial_stop_bits_t): Add
1989 GRUB_SERIAL_STOP_BITS_1_5.
1990
1991 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1992
1993 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
1994 value rather than let it uninited.
1995
1996 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * grub-core/commands/wildcard.c (+check_file): New function.
1999 (wildcard_expand): Don't expand to non-existing files, expand with
2000 suffix and not attempt to expand if not needed.
2001
2002 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2003
2004 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2005 out of partitions containing other partitions.
2006
2007 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2010 on some qemu versions with GRUB.
2011
2012 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2013 define.
2014 (grub_openbsd_bootarg_pcibios): New struct.
2015 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2016 Add PCIINFO.
2017
2018 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * tests/util/grub-shell.in: Trim firmware output on EFI.
2021
2022 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2023
2024 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2025 and coreboot since it's already in kernel.
2026
2027 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2028
2029 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2030 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2031 to here. New return value start. All users updated.
2032 Recursively scan linear mappings.
2033 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2034 proto.
2035 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2036 Use grub_util_get_dm_node_linear_info.
2037 * util/getroot.c (convert_system_partition_to_system_disk): Use
2038 grub_util_info rather than grub_dprintf.
2039 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2040
2041 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2044
2045 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2046 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2047
2048 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * include/grub/types.h (grub_set_unaligned64): New function.
2051 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2052 (setup): Likewise.
2053
2054 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2057 (grub_ofdisk_fini): Quiesce USB devices.
2058
2059 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2062 caches.
2063
2064 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2067
2068 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 * grub-core/disk/pata.c (grub_pata_pio_read)
2071 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2072 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2073
2074 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2075
2076 Extend automated tests to qemu-mips.
2077
2078 * Makefile.am: reorganise tests and enable qemu-mips.
2079 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2080 * grub-core/tests/boot/linux.init-mips.S: New file.
2081 * tests/partmap_test.in: Handle ata0 disks.
2082 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2083 non-pc i386.
2084
2085 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2088 ia64.
2089 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2090 quotes while on it.
2091
2092 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2095 (grub_halt): Likewise.
2096 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2097
2098 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * grub-core/term/serial.c (grub_serial_register)
2101 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2102 the behaviour in line with x86 platforms.
2103
2104 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2105
2106 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2107 (grub_ata_strncpy): Likewise.
2108 (grub_ata_identify): Add missing byteswaps.
2109
2110 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2113 byte-swap.
2114 (screen_read_char): Likewise.
2115 (grub_vga_text_cls): Likewise.
2116
2117 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2120 filenames.
2121 (make_file_path): Likewise.
2122
2123 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2126 machines.
2127 Tested by: Paulo Flabiano Smorigo.
2128 Crucial information about API supplied by: Coleen <Last name unknown>.
2129 Reviewed by: Coleen <Last name unknown>.
2130
2131 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 * util/grub-mkimage.c: Disable -Wcast-align.
2134
2135 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2138 as they are fatal.
2139
2140 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2143
2144 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * util/grub-probe.c (escape_of_path): Fix double free.
2147
2148 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * grub-core/commands/videoinfo.c (hook): Show pitch.
2151
2152 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2155
2156 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2159 (probe): Add ieee1275 to OFW devices.
2160
2161 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2164
2165 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2166
2167 Handle IBM OFW path.
2168
2169 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2170 available.
2171 (of_path_of_scsi): Handle vdevice.
2172
2173 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2176 Allocate in multiples of 16 to avoid adding a few bytes free region the
2177 windows bugs upon.
2178
2179 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2182 Allocate in multiples of 16 to avoid adding a few bytes free region the
2183 windows bugs upon.
2184 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2185
2186 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2189 resolutions.
2190 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2191 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2192
2193 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2194
2195 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2196
2197 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2200 resulted in \\ at the end of the line.
2201
2202 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2205 (grub_parser_cmdline_state): Likewise.
2206 (grub_parser_split_cmdline): Likewise.
2207
2208 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2211 /dev/root and /dev/dm-*.
2212
2213 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2216 fix partially stale display.
2217
2218 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2221 substraction.
2222
2223 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2226 Fix MBR remapping workaround.
2227 (grub_util_biosdisk_read) [__linux__]: Likewise.
2228
2229 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2232
2233 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 * configure.ac: Bump to beta6.
2236
2237 2012-05-31 Christer Weinigel <christer@weinigel.se>
2238
2239 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2240
2241 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2244 (grub_cmd_linux): Likewise.
2245
2246 2012-05-31 Christer Weinigel <christer@weinigel.se>
2247
2248 Fix EHCI low-speed.
2249
2250 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2251 (GRUB_EHCI_MULT_TWO): Likewise.
2252 (GRUB_EHCI_MULT_THREE): Likewise.
2253 (GRUB_EHCI_CMASK_MASK): New enum value.
2254 (GRUB_EHCI_SMASK_MASK): Likewise.
2255 (GRUB_EHCI_CMASK_OFF): Likewise.
2256 (GRUB_EHCI_SMASK_OFF): Likewise.
2257 (grub_ehci_pci_iter): Enable periodic schedule.
2258 (grub_ehci_parse_notrun): Likewise.
2259 (grub_ehci_restore_hw): Likewise.
2260 (grub_ehci_setup_qh): Set flags for low speed transfers.
2261 (grub_ehci_find_qh): Use periodic list for low speed.
2262 (grub_ehci_setup_transfer): Check periodic queue as well.
2263 (grub_ehci_check_transfer): Likewise.
2264 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2265
2266 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2267
2268 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2269 parameter is used.
2270
2271 2012-05-31 Peter Jones <pjones@redhat.com>
2272
2273 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2274 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2275 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2276
2277 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2280 uninited variable. Allocate at least setup_sects.
2281
2282 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 Fix handling of EFI with big memory maps.
2285
2286 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2287 (real_mode_mem): Likewise.
2288 (real_mode_target): Likewise.
2289 (real_mode_pages): Likewise.
2290 (prot_mode_pages): Likewise.
2291 (linux_params): New var.
2292 (linux_cmdline): Likewise.
2293 (free_pages): Don't set real mode variables.
2294 (allocate_pages): Don't allocate real mode memory.
2295 (grub_e820_add_region): Remove the limit.
2296 (grub_linux_boot): Allocate and copy real mode memory.
2297 (grub_linux_unload): Free linux_cmdline.
2298 (grub_cmd_linux): Use temporary storage for parameters.
2299 (grub_cmd_initrd): Likewise.
2300 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2301 (linux_kernel_params): Make it 1K big.
2302
2303 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * Makefile.util.def: Remove -Wno-format.
2306 * grub-core/Makefile.core.def: Likewise.
2307
2308 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * tests/cmp_unit_test.c: Add missing failure message.
2311 * tests/example_unit_test.c: Likewise.
2312 * tests/printf_unit_test.c: Likewise.
2313
2314 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2317 relaxation of protective MBR requirements.
2318
2319 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * configure.ac: Add condition for COND_HOST_XNU.
2322 * Makefile.util.def (10_xnu): New script.
2323 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2324
2325 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2326
2327 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2328 objconv bug.
2329
2330 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2333 Binary on other platforms stays identical.
2334
2335 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2338 Apple.
2339
2340 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2343
2344 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2347 rather than defining size_t ourselves to avoid conflict.
2348
2349 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2352 initialisation to avoid __bzero reference.
2353
2354 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2357 version.
2358 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2359 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2360 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2361 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2362 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2363
2364 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2367 * grub-core/kern/misc.c: Likewise.
2368 * grub-core/loader/i386/xnu.c: Likewise.
2369 * include/grub/i386/tsc.h: Likewise.
2370 * include/grub/symbol.h: Likewise.
2371
2372 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2375 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2376 on older compiler.
2377
2378 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2381 Implement Apple flavour.
2382 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2383
2384 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2385
2386 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2387 (memmove) [__APPLE__]: Likewise.
2388 (memcpy) [__APPLE__]: Likewise.
2389 (memset) [__APPLE__]: Likewise.
2390 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2391 (memmove) [__APPLE__]: Likewise.
2392 (memcpy) [__APPLE__]: Likewise.
2393 (memset) [__APPLE__]: Likewise.
2394
2395 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2398 dependency discard.
2399
2400 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * grub-core/normal/main.c (read_config_file): Provide config_file and
2403 config_directory.
2404 * util/grub.d/41_custom.in: Use config_directoy when available.
2405
2406 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2409 (grub_bfs_dir): Likewise.
2410
2411 2012-05-27 Peter Jones <pjones@redhat.com>
2412
2413 The old code gives arguments to a printf function which can't work
2414 correctly, and the compiler complains.
2415
2416 * grub-core/tests/example_functional_test.c (example_test): Add
2417 missing text.
2418 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2419 * include/grub/test.h (grub_test_assert_helper): New declaration.
2420 (grub_test_assert): Use grub_test_assert_helper.
2421
2422 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2425 (exfctest): ... this to avoid overlong filenames.
2426 All users updated.
2427
2428 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 Handle "." and ".." on squashfs.
2431
2432 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2433 Make inode numbers into stack.
2434 (grub_squash_read_symlink): Use stack.
2435 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2436 (make_root_node): Fill stack.
2437 (grub_squash_open): Use stack.
2438
2439 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2442 freeing.
2443
2444 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2447 stderr on test calls.
2448
2449 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2452
2453 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2456
2457 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2460 "..".
2461
2462 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2465 (grub_hfsplus_iterate_dir): Add "." and "..".
2466
2467 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2470 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2471
2472 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2475 (find_path): Handle "." and "..".
2476
2477 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2480 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2481 (grub_affs_iterate_dir): Handle hardlinks.
2482
2483 2012-05-26 Matthew Garrett <mjg@redhat.com>
2484
2485 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2486 (grub_efi_console_fini): Likewise.
2487 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2488 (grub_video_gop_fill_mode_info): Rename to ...
2489 (grub_video_gop_fill_real_mode_info): ... this.
2490 (grub_video_gop_fill_mode_info): New function.
2491 (grub_video_gop_setup): Setup double framebuffer.
2492 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2493 Free offscreen.
2494 (grub_video_gop_swap_buffers): Copy framebuffer.
2495 (grub_video_gop_fini): Free offscreen buffer.
2496 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2497 New enum.
2498 (grub_efi_gop_blt_pixel): New struct.
2499
2500 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * gentpl.py: Remove error disabling for objconv.
2503
2504 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2505
2506 * configure.ac: Remove -Wunitialized as it's not available on older
2507 compilers.
2508
2509 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 Fix extent overflow comparator.
2512
2513 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2514 (grub_hfsplus_read_block): Set type.
2515 (grub_hfsplus_cmp_extkey): Compare type.
2516
2517 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2520
2521 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2524 than 0.
2525
2526 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2529 (dejavu_bold_14.pf2): New target.
2530
2531 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * configure.ac: Fix djvu font detection.
2534
2535 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2538 ext* instead of ext2.
2539
2540 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2543 name with \0.
2544
2545 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2546
2547 * docs/grub-dev.texi: Remove dot from .png.
2548
2549 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2552 protective entry in any slot.
2553 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2554 if protective entry is found in any slot.
2555
2556 Protective entry in non-first slot make no sense but is a widespread
2557 brain damage.
2558
2559 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2560
2561 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2562
2563 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2566 with old reiserfs.
2567 (grub_reiserfs_open): Don't free root.
2568
2569 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2572 after freeing for safety.
2573
2574 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2577 Reported by: Jordan Uggla.
2578
2579 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2580
2581 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2582 actual implementation. Specifically, clarify that the grub menu will
2583 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2584 passed.
2585
2586 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2587
2588 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2589 of r0.
2590
2591 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 Remove unjustified hard dependency of normal.mod on gfxterm.
2594
2595 * include/grub/term.h (grub_term_output): New member fullscreen.
2596 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2597 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2598 (grub_gfxterm): Set .fullscreen.
2599 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2600 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2601
2602 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2605 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2606 Mention case-insensitive AFFS, SFS and JFS.
2607
2608 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2611
2612 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2615 a bad FS.
2616
2617 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2620 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2621
2622 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2625 (grub_jfs_mount): Fill caseins.
2626 (grub_jfs_find_file): Respect caseins.
2627
2628 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2631 through UTF-16.
2632
2633 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2636 New argument origpath. All users updated.
2637
2638 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2641 (read_attr): Ensure that we read start of possibly compressed block.
2642
2643 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2646 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2647 All users updated.
2648
2649 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2652 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2653 (dejavu.pf2): Replace with ...
2654 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2655 this.
2656
2657 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * util/grub.d/20_linux_xen.in: Add missing line.
2660
2661 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2664 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2665 (grub_utf16_to_utf8): Likewise.
2666
2667 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2670 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2671 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2672 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2673 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2674 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2675
2676 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2679 a bad FS.
2680
2681 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2684 (grub_udf_read_symlink): Handle read_string failure.
2685
2686 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2689 comment.
2690
2691 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 Fix handling of UDF symlinks.
2694
2695 * grub-core/fs/udf.c (read_string): New argument outbuf.
2696 All users updated.
2697 (grub_ufs_read_symlink): Rename to ...
2698 (grub_udf_read_symlink): ... this. All users updated.
2699 Handle symlinks with more than one component.
2700
2701 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2704 symlinks. Replace leading colon with a slash.
2705
2706 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2707
2708 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2709 filename.
2710
2711 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2714 match in inner node.
2715
2716 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2719 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2720 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2721 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2722 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2723 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2724 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2725 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2726 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2727
2728 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 Use grub-probe and not cmp to check that disk is empty.
2731
2732 * util/grub-install.in: Use grub-probe for zero-check.
2733 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2734 (probe): Handle PRINT_ZERO_CHECK.
2735 (argp_parser): Handle -t zero_check.
2736
2737 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 Flush block cache on adding disk to device map.
2740
2741 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2742 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2743 adding.
2744 (read_device_map): Likewise.
2745 (open_device): Flush on opening.
2746
2747 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2750 (handle_symlink): Fix off-by-one error.
2751 Canonicalize the target.
2752 (grub_cpio_dir): Canonicalize the name.
2753 Fix memory leak.
2754 Set directory.
2755 (grub_cpio_open): Canonicalize the name.
2756
2757 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2760 handling.
2761
2762 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2765 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2766
2767 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2770 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2771 All users updated.
2772
2773 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2774
2775 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2776 counterpart.
2777
2778 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 Fix UFS1 big file support.
2781
2782 * grub-core/fs/ufs.c (INODE): Removed.
2783 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2784 64-bit.
2785 (INODE_MODE): Simplify.
2786 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2787 (grub_ufs_lookup_symlink): Don't use INODE.
2788
2789 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2792
2793 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2794 (grub_minix_data): Replace log_block_size with block_size.
2795 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2796 (grub_minix_mount): Fill block_size.
2797
2798 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 * configure.ac: Bump to beta5.
2801
2802 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 Fix wrapped HFS+ handling.
2805
2806 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2807 blocks_start. All users updated.
2808 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2809 wrapping offset.
2810 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2811
2812 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 Fix long symlinks on reiserfs.
2815
2816 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2817 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2818 (grub_reiserfs_iterate_dir): Save size for non-directories.
2819 (grub_reiserfs_open): Don't reread stat block as we already know the
2820 size.
2821 (grub_reiserfs_read): Split into...
2822 (grub_reiserfs_read_real): ... and ...
2823 (grub_reiserfs_read): ...this.
2824
2825 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 Fix non-indexed JFS.
2828
2829 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2830 (grub_jfs_data): New field namecomponentlen.
2831 (grub_jfs_mount): Fill namecomponentlen.
2832 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2833
2834 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2837 * tests/grub_script_echo1.in: Add tests.
2838
2839 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 * util/grub-install.in: Ignore empty devicetree directory.
2842
2843 2012-05-08 Bean <bean123ch@gmail.com>
2844
2845 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2846 All users updated.
2847 (free_rsm): Free header as well.
2848 (free_old_fragments): Fix memory leak.
2849 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2850 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2851 (destroy_pq): Likewise.
2852 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2853
2854 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2857 resulting hash as a precaution.
2858
2859 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2860
2861 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2862 '_' in variable names.
2863 * grub-core/net/net.c (grub_net_network_level_interface_register):
2864 Likewise.
2865
2866 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 Fix AFFS with non-512B blocks.
2869
2870 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2871 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2872 (grub_affs_data): Replace blocksize with log_blocksize.
2873 (grub_affs_read_block): Fix non-512B blocks.
2874 (grub_affs_read_symlink): Likewise.
2875 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2876 (grub_affs_read): Fix non-512B blocks.
2877 (grub_affs_label): Likewise.
2878 (grub_affs_mtime): Likewise.
2879 (grub_affs_mount): Fix block detection routine.
2880
2881 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 Add filesystem mtime to AFFS.
2884
2885 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2886 (aftime2ctime): New function.
2887 (grub_affs_dir): Use aftime2ctime.
2888 (grub_affs_label): Fix return value.
2889 (grub_affs_mtime): New function.
2890 (grub_affs_fs): Add mtime.
2891
2892 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2895 UTF-8.
2896
2897 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2898
2899 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2900 UTF-8.
2901
2902 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2905
2906 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2909 flags.
2910 (FLAGS_CASE_SENSITIVE): New enum value.
2911 (cache_entry): New struct.
2912 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2913 cache_size and cache.
2914 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2915 Add log_blocksize and fshelp_flags.
2916 (grub_sfs_read_extent): Handle non-512 blocks.
2917 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2918 (grub_sfs_read_file): Handle non-512 blocks.
2919 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2920 fshelp_flags.
2921 (grub_sfs_read_symlink): Handle non-512 blocks.
2922 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2923 (grub_sfs_dir): Free cache.
2924 (grub_sfs_close): Likewise.
2925
2926 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2929 filesystems.
2930
2931 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2934
2935 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2938
2939 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
2942 (grub_sfs_read_extent): Likewise.
2943 (grub_sfs_read_block): Likewise.
2944 (grub_sfs_mount): Likewise.
2945 (grub_sfs_iterate_dir): Likewise.
2946 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
2947 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2948
2949 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 Fix errors on compressed NTFS with 512B clusters.
2952
2953 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
2954 types.
2955 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
2956 not 0.
2957 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
2958 Relax check for inline extents.
2959 (ntfscomp): Return correct -1 on error and not 0.
2960
2961 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * util/grub-install.in: Fix handling of prefix containing spaces.
2964
2965 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
2968 (grub_squash_read_data): Fix offset byte-swapping.
2969
2970 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
2973 per common usage and preffered in several parts of code.
2974 (grub_memcmp): Likewise.
2975 (grub_strncmp): Likewise.
2976 * include/grub/misc.h (grub_strcasecmp): Likewise.
2977 (grub_strncasecmp): Likewise.
2978 * Makefile.util.def (cmp_test): New test.
2979 (grub_script_strcmp): Likewise.
2980 * tests/cmp_unit_test.c: New file.
2981 * tests/grub_script_strcmp.in: Likewise.
2982 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2983
2984 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * include/grub/pci.h: Move enums into no-asm part.
2987
2988 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2991
2992 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2993
2994 * util/getroot.c (find_hurd_root_device): Try to make error message
2995 and comments to translators clearer.
2996
2997 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2998
2999 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3000
3001 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3004 btrfs.
3005
3006 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * docs/grub.cfg: Update.
3009
3010 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 * docs/grub.texi (PXE): Remove not present variables.
3013
3014 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * grub-core/net/net.c (defserver_set_env): New function.
3017 (defserver_get_env): Likewise.
3018 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3019
3020 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3023 entries.
3024
3025 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3028 * grub-core/kern/emu/hostdisk.c: Likewise.
3029
3030 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3031
3032 Handle hurd userspace partitions.
3033
3034 * util/getroot.c (find_hurd_root_device): New function.
3035 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3036
3037 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3040 names.
3041 Reported by: Bastian Blank.
3042
3043 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3046 crossing page boundary.
3047
3048 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 Fix B-tree search in BFS, especially in presence of non-ASCII
3051 characters.
3052
3053 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3054 (find_in_b_tree): Use standard bsearch + btree algorithm.
3055
3056 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3059 and so on.
3060
3061 2012-05-03 Matthew Garrett <mjg@redhat.com>
3062 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 Suspend broadcom cards in order to stop their DMA.
3065
3066 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3067 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3068 (pci): Don't build on x86 EFI.
3069 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3070 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3071 New function.
3072 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3073 stop_broadcom if running on EFI.
3074 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3075 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3076 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3077 (grub_pci_find_capability): New proto.
3078
3079 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * docs/grub.texi: Remove dot from the extension as it apparently
3082 doesn't work with some makeinfo versions.
3083
3084 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3087 with GRUB expectance.
3088
3089 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3092
3093 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3096 zero after directory block since last entry may be not 0-terminated if
3097 it ends on block boundary. Use continue instead of if spanning whole
3098 loop.
3099
3100 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 Support 4K sectors UDF inline files.
3103
3104 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3105 (grub_udf_extended_file_entry): Likewise.
3106 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3107 All users updated.
3108 (get_fshelp_size): New function.
3109 (grub_udf_read_icb): Read whole block.
3110 (grub_udf_iterate_dir): Likewise.
3111 (grub_udf_dir): Likewise.
3112 (grub_udf_open): Likewise.
3113
3114 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3117
3118 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3121 inline symlinks in addition to workaround.
3122
3123 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3126
3127 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3130
3131 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3134
3135 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 Fix reiserfs big seek times.
3138
3139 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3140 exact. All users updated.
3141 (grub_reiserfs_read): Use nearest btree search for seeking.
3142 Fix return value on error.
3143
3144 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3147 entries.
3148 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3149 * docs/grub.texi: Update menuentry description.
3150
3151 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3154 crash when embedding onto filesystem.
3155
3156 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3159 name.
3160
3161 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3162
3163 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3164
3165 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3168 commit.
3169
3170 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3171 2012-05-01 Bean <bean123ch@gmail.com>
3172
3173 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3174
3175 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3178 Special behaviour for len = 0 to read whole file isn't used anywhere and
3179 can cause buffer ovewrflows in several places.
3180
3181 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3184
3185 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3186
3187 Handle RAIDZ on non-512B sectors.
3188
3189 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3190 max_children_ashift.
3191 (fill_vdev_info_real): Fill max_children_ashift.
3192 (read_device): Use max_children_ashift.
3193
3194 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3197
3198 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3201 disk names.
3202 * docs/grub.texi: Update device.map parts.
3203
3204 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 Don't scan into non-diskfilter devices having diskfilter names.
3207
3208 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3209 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3210 handling.
3211 (scan_disk_hook): New function.
3212
3213 2012-04-29 Bean <bean123ch@gmail.com>
3214
3215 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3216 allocation.
3217
3218 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3219
3220 * configure.ac: Detect starfield theme font path
3221 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3222
3223 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3226 geometry on serial consoles.
3227
3228 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3231 because of network consoles.
3232
3233 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3236 handling.
3237
3238 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3241 falls on Q syndrom.
3242
3243 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3246 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3247
3248 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3251 Allocate at lest 8192 for temporary buffer as required for lzo.
3252
3253 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3256 to cluster_bits, since it's already added in.
3257 (grub_fat_read_data): Likewise.
3258
3259 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3262 as long as cluster size is multiple of 512 bytes.
3263
3264 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * util/grub-mkrescue.in: Fix locale directory.
3267
3268 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/kern/emu/hostdisk.c (map): Make static.
3271
3272 2012-04-23 Bean <bean123ch@gmail.com>
3273
3274 * util/grub-fstest.c (fstest): Add missing break.
3275
3276 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3277
3278 Fix hurd build.
3279
3280 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3281 not define nr variable.
3282 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3283 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3284 grub_find_device): Do not define.
3285
3286 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 Fix kfreebsd compile and behaviour.
3289
3290 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3291 format-security.
3292 * util/getroot.c: Fix wait.h include.
3293 (grub_guess_root_devices): Error if grub_find_device fails.
3294 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3295 (grub_util_get_dev_abstraction): Likewise.
3296 (grub_util_pull_device): Likewise.
3297 (grub_util_get_grub_dev): Likewise.
3298 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3299
3300 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 Fix and unify wholedisk detection.
3303
3304 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3305 is_part. All users updated.
3306 (device_is_wholedisk): Removed.
3307 (grub_util_biosdisk_get_grub_dev): Use is_part.
3308
3309 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3312 mode.
3313
3314 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 * configure.ac: Bump to beta4.
3317
3318 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3321 --fs-uuid --set UUID syntax.
3322
3323 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3326 disunification.
3327
3328 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3331
3332 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3333
3334 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3335
3336 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3337
3338 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3339
3340 2012-04-18 Bean <bean123ch@gmail.com>
3341
3342 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3343 place.
3344
3345 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3348 users updated.
3349 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3350 corresponding to GRUB partitions.
3351 (grub_util_biosdisk_write): Likewise.
3352
3353 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 Scan mdraid before LVM.
3356
3357 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3358 (grub_diskfilter_register_front): ... this.
3359 (grub_diskfilter_register_back): New function.
3360 All users of grub_diskfilter_register updated.
3361
3362 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 * util/grub-install.in: Fix an automatic target detection bug.
3365
3366 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 * util/grub-install.in: New option --efi-directory.
3369
3370 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3373 boot services if we have no other choice.
3374
3375 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3378 document it.
3379 * tests/util/grub-shell.in: Update to --directory.
3380
3381 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3384
3385 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3388 (grub_minix_read_file): Likewise.
3389 (grub_minix_read_inode): Likewise.
3390 (grub_minix_find_file): Likewise.
3391 (grub_minix_dir): Likewise.
3392
3393 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * util/grub-setup.c (setup): Fix partition handling and blocklist
3396 check.
3397
3398 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3401 redundant buggy overlap check.
3402
3403 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3406 and grub-mknetdir.
3407
3408 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3411 kh.loadflags on pre-2.00 kernels.
3412
3413 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 Terminate UNDI and PXE before launching the payload to avoid problems
3416 with DMA.
3417
3418 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3419 (grub_loader_flags): ... this. All users updated.
3420 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3421 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3422 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3423 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3424 function.
3425 (grub_pxe_restore): Likewise.
3426 (fini_hnd): New var.
3427 (GRUB_MOD_INIT): Register shutdown hook.
3428 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3429 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3430 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3431 (grub_loader_set): Rename second argument to flags.
3432
3433 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3436 written bytes.
3437 (grub_get_num_of_utf8_bytes): New function.
3438 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3439 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3440 executing it.
3441 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3442 (grub_ucs4_to_utf8): Change return type.
3443
3444 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3447 warning.
3448 * grub-core/fs/bfs.c (hop_level): Likewise.
3449 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3450
3451 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 * grub-core/lib/adler32.c: Recode due to license unclearness.
3454
3455 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3458 (test_header): Likewise.
3459
3460 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 Fix --help formatting.
3463
3464 * util/grub-mkconfig_lib.in (print_option_help): New function.
3465 (grub_fmt): Likewise.
3466 * util/grub-install.in: Use print_option_help and grub_fmt.
3467 * util/grub-kbdcomp.in: Likewise.
3468 * util/grub-mkconfig.in: Likewise.
3469 * util/grub-mknetdir.in: Likewise.
3470 * util/grub-mkrescue.in: Likewise.
3471 * util/grub-mkstandalone.in: Likewise.
3472 * util/grub-reboot.in: Likewise.
3473 * util/grub-set-default.in: Likewise.
3474 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3475
3476 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * linguas.sh: Remove autogenerated *.po.
3479
3480 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 * po/README: Move language fetcing to ...
3483 * linguas.sh: ... here.
3484 * po/README: Point to linguas.sh.
3485
3486 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * po/README: Exclude ko.po due to disclaimer problems.
3489
3490 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3493 len = 0.
3494 (grub_gettext_translate_real): Handle 0th string.
3495 (grub_gettext_translate): Ensure that "" isn't translated.
3496
3497 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3500 TRANSLATORS comment.
3501 (grub_diskfilter_print_partmap): Propagate changing of error into
3502 warning.
3503
3504 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3507 to uint64_t to prevent overflow.
3508 (grub_diskfilter_lv): Increase start_extent and extent_count
3509 to uint64_t to prevent overflow.
3510
3511 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * configure.ac: Increase version.
3514
3515 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3518
3519 * po/Rules-translit: New file.
3520 * po/arabic.sed: Likewise.
3521 * po/cyrillic.sed: Likewise.
3522 * po/greek.sed: Likewise.
3523 * po/hebrew.sed: Likewise.
3524 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3525 * po/Makefile.in.in: Add extra_dist4.
3526
3527 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3530
3531 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3532 modify names. Introduce MODE_BIGENDIAN.
3533 * grub-core/fs/minix_be.c: New file.
3534 * grub-core/fs/minix2_be.c: Likewise
3535 * grub-core/fs/minix3_be.c: Likewise.
3536 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3537 minix3_be.
3538 * grub-core/Makefile.core.def (minix_be): New module.
3539 (minix2_be): Likewise.
3540 (minix3_be): Likewise.
3541
3542 2012-04-01 Felix <email@hamburg.de>
3543
3544 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3545 (devs): Add MBP 2011.
3546
3547 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3550
3551 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/normal/cmdline.c (print_completion): New field
3554 prompt_len.
3555 (grub_cmdline_get): Handle width properly.
3556
3557 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3560
3561 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3564 after 29th of February.
3565
3566 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 Fix exfat endianness handling.
3569
3570 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3571 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3572 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3573 Byte-swap utf16 when necessary.
3574 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3575
3576 2012-03-31 Anton Blanchard <anton@samba.org>
3577 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 Fix btrfs endianness handling.
3580
3581 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3582 (lower_bound): Make root uint64_t. Use root in le.
3583 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3584 (find_path): Fix template key init.
3585 (grub_btrfs_dir): Fix mtime byteswap.
3586 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3587
3588 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3591 recursion_depth. Break infinite resursions. All users updated.
3592
3593 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3596 after free.
3597 Reported by: Peter Jones.
3598
3599 2012-03-31 Anton Blanchard <anton@samba.org>
3600
3601 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3602 8 bit values.
3603
3604 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * util/grub-install.in: Fix nvram call for PreP.
3607
3608 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3611 the error when some elements are missing into a warning.
3612
3613 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3616
3617 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3618
3619 * docs/grub.texi (Invoking grub-probe): New section.
3620 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3621
3622 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3623
3624 Fix tab and wide character handling in editor and menu.
3625
3626 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3627 agglomerate control characters with combining marks.
3628 (bidi_line_wrap): Allow break on tab.
3629 (grub_unicode_get_comb_start): New function.
3630 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3631 and tab correctly.
3632 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3633 with a space.
3634 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3635 fixed_tab_size. All users updated.
3636 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3637 (grub_term_getcharwidth): Handle \t.
3638 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3639 and copy.
3640
3641 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 Handle big-endian mdraid.
3644
3645 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3646 * grub-core/Makefile.core.def (mdraid09_be): New module.
3647 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3648 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3649 * grub-core/disk/mdraid_linux_be.c: New file.
3650
3651 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3654
3655 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3658 missing quotes which caused confusion among translators.
3659
3660 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * util/grub-mkconfig_lib.in: Fix typo.
3663
3664 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3667 spaces.
3668 * tests/grub_script_leading_whitespace.in: New file.
3669 * Makefile.util.def (grub_script_leading_whitespace): New test.
3670
3671 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3674 to work.
3675
3676 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3679 starts with control character.
3680
3681 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3684 overflow.
3685 (grub_gdb_outbuf): Likewise.
3686
3687 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3690 zero terminator. Fixes a crash.
3691
3692 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3695 beyond 4 GiB.
3696 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3697 images independently of preffered adderss field.
3698
3699 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3702 * grub-core/commands/regexp.c: Likewise.
3703 * grub-core/loader/i386/linux.c: Likewise.
3704 * grub-core/partmap/msdos.c: Likewise.
3705 * grub-core/script/execute.c: Likewise.
3706 * grub-core/term/gfxterm.c: Likewise.
3707
3708 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 Add variable parsing in $"..." and fix several mismatches with bash.
3711
3712 * Makefile.util.def (grub_script_gettext): New test.
3713 * grub-core/script/execute.c (parse_string): New function.
3714 (gettext_append): Likewise.
3715 (grub_script_arglist_to_argv): Use gettext_append.
3716 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3717 * tests/grub_script_gettext.in: New file.
3718
3719 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 Fix handling of leading spaces in scripts.
3722
3723 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3724 spaces.
3725 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3726 other than skipping \r. All users updated.
3727 * tests/grub_script_echo1.in: Add space-related tests.
3728 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3729
3730 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3733
3734 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * configure.ac: Bump up the version to beta2.
3737
3738 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 Fix gettext reload bugs (e.g. inability to disable gettext
3741 once enabled).
3742
3743 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3744 main_context and secondary_context. All functions updated.
3745 (grub_gettext_translate): Rename to ...
3746 (grub_gettext_translate_real): ... this. Return NULL on failed
3747 translate.
3748 (grub_gettext_translate): Handle secondary context.
3749 (grub_gettext_delete_list): Close file and zero-out the context.
3750 (grub_mofile_open): Don't call grub_gettext_delete_list.
3751 Don't close file.
3752 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3753 if locale="" to avoid pointless error message.
3754 (grub_gettext_env_write_lang): Update lang even if load fails.
3755 Handle secondary context.
3756 (grub_gettext_reread_prefix): New function.
3757 (read_main): Likewise.
3758 (read_secondary): Likewise.
3759 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3760 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3761 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3762 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3763
3764 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * configure.ac: Decrease warning level to avoid spurious warnings and
3767 to be able to compile with GCC 4.2.
3768 * Makefile.util.def: Remove -Wno-error=logical-op.
3769
3770 2012-03-10 William Bittner <william.bittner@gmail.com>
3771
3772 * util/import_unicode.py: Add missing brackets around string for
3773 python 3 support.
3774
3775 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3776
3777 Fix efi chainloader on network root.
3778
3779 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3780 network devices.
3781 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3782 New function.
3783
3784 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3787 unused show_text member.
3788 * docs/grub.texi: Document "text" property.
3789
3790 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3793 in dprintf.
3794
3795 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 Fix IMSM handling on Fedora.
3798
3799 * util/getroot.c (grub_util_is_imsm): New function.
3800 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3801
3802 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 * Makefile.am: Strip gold section.
3805 * conf/Makefile.common: Likewise.
3806 * gentpl.py: Likewise.
3807 * grub-core/Makefile.core.def: Likewise.
3808 * grub-core/genmod.sh.in: Likewise.
3809
3810 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3813 * util/grub.d/20_linux_xen.in: Likewise.
3814 Based on Debian patch.
3815
3816 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 * util/grub.d/10_linux.in: Fix syntax error resulting in
3819 Richard Laager's patch.
3820 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3821
3822 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3825 dependencies.
3826
3827 2012-03-10 Richard Laager <rlaager@wiktel.com>
3828
3829 * util/grub.d/10_linux.in: Fix ZFS root passing.
3830
3831 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3834 * grub-core/commands/xnu_uuid.c: Likewise.
3835 * grub-core/loader/efi/appleloader.c: Likewise.
3836 * grub-core/script/execute.c: Likewise.
3837 * grub-core/script/main.c: Likewise.
3838 * util/grub-mkfont.c: Likewise.
3839
3840 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * util/grub-mkfont.c (options): Use more appropriate "select" that
3843 "set" for face index.
3844
3845 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * util/grub-editenv.c (options): Gettextize command summaries.
3848
3849 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3852 "out of memory" error messagge.
3853
3854 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3857 of diskfilter for diskfilter on diskfilter support.
3858
3859 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3862
3863 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3866 themes/starfield.
3867
3868 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3871
3872 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3875
3876 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3879 of error message.
3880
3881 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3884
3885 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3886
3887 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3888 message.
3889 * util/grub-install.in: Fix and gettextize error message.
3890
3891 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3894 Gettextize.
3895 * util/grub-mount.c (options): Likewise.
3896
3897 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3900 gettextize.
3901 * grub-core/commands/search_wrap.c (options): Likewise.
3902
3903 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3906
3907 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3910 size calculation.
3911 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3912 none is known.
3913
3914 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3917 "temporary" since it's used in identifier and is limited in space.
3918
3919 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * po/POTFILES.in: Regenerate. Include *.h since they contain
3922 translatable strings as well.
3923
3924 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3927 byte-swap on big-endian.
3928 Reported by: Lennart Sorensen
3929
3930 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3933 (allocate_pages): Improve dprintf.
3934 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3935 code32_start. Fill code32_start and kernel_alignment in params.
3936 (grub_cmd_initrd): Use prot_init_space.
3937
3938 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
3941
3942 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3943
3944 * util/grub-install.in: Add missing dot at the end of sentence.
3945
3946 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3949 * grub-core/commands/videotest.c: Likewise.
3950 * grub-core/loader/i386/linux.c: Likewise.
3951
3952 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
3955 sentence.
3956 Reported by: Milo Casagrande.
3957
3958 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
3961 * grub-core/commands/gptsync.c: Likewise.
3962 * grub-core/commands/hashsum.c: Likewise.
3963 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3964 * grub-core/commands/legacycfg.c: Likewise.
3965 * grub-core/io/gzio.c: Likewise.
3966 * grub-core/net/net.c: Likewise.
3967 * grub-core/term/gfxterm.c: Likewise.
3968 * grub-core/term/terminfo.c: Likewise.
3969 * grub-core/tests/test_blockarg.c: Likewise.
3970 * grub-core/video/video.c: Likewise.
3971 * util/grub-install.in: Likewise.
3972 * util/grub-mkfont.c: Likewise.
3973
3974 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
3977
3978 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 * grub-core/commands/search_wrap.c (options): Fix a typo.
3981 Reported by: David Prévot.
3982
3983 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
3986 description.
3987
3988 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * util/grub-script-check.c (main): Fix a syntax error message which was
3991 unclear.
3992
3993 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
3996
3997 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4000 messages.
4001
4002 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4005 without argument.
4006 * util/grub-mount.c (options): Likewise.
4007
4008 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4011
4012 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * grub-core/net/http.c: Add TRANSLATORS comments.
4015 * grub-core/normal/cmdline.c: Likewise.
4016 * grub-core/normal/misc.c: Likewise.
4017 * grub-core/partmap/msdos.c: Likewise.
4018 * grub-core/parttool/msdospart.c: Likewise.
4019 * grub-core/script/execute.c: Likewise.
4020 * grub-core/script/main.c: Likewise.
4021 * grub-core/term/terminfo.c: Likewise.
4022 * grub-core/video/bitmap.c: Likewise.
4023 * util/grub-install.in: Likewise.
4024 * util/grub-mkimage.c: Likewise.
4025 * util/grub-mklayout.c: Likewise.
4026 * util/grub-setup.c: Likewise.
4027
4028 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4031 with similar messages in grub-fstest.
4032
4033 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * util/grub-install.in: Unify "option requires an argument" message
4036 with similar messages in other files.
4037 * util/grub-mkconfig.in: Likewise.
4038
4039 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4040
4041 * util/grub-set-default.in: Replace printf with gettext_printf (the
4042 string in in question is already translated from grub-reboot)
4043
4044 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4045
4046 * configure.ac: Bump up the version to beta1.
4047
4048 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4051 case when min_align = 0.
4052
4053 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4054
4055 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4056 and fix a case when line_start overflows.
4057
4058 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * util/grub-reboot.in (usage): Mention id posibility.
4061 * util/grub-set-default.in (usage): Likewise.
4062
4063 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4064
4065 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4066 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4067 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4068 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4069 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4070 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4071 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4072
4073 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4074
4075 * grub-core/commands/menuentry.c (options): Remove
4076 GRUB_ARG_OPTION_REPEATABLE.
4077 Reported by: Andreas Vogel
4078
4079 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4080
4081 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4082
4083 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4084
4085 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4086 error.
4087
4088 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 Use sort -V by the idea of Georgi Georgiev.
4091
4092 * util/grub-mkconfig_lib.in (version_sort): New function.
4093 (version_test_numeric): Use version_sort.
4094
4095 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4096
4097 Use submenus in grub-mkconfig.
4098
4099 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4100 * util/grub-mkconfig_lib.in (grub_quote): New function.
4101 (gettext_printf): Use gettext and not gettext_quoted to fix several
4102 messages.
4103 * util/grub.d/10_hurd.in: Use submenus.
4104 * util/grub.d/10_kfreebsd.in: Likewise.
4105 * util/grub.d/10_linux.in: Likewise.
4106 * util/grub.d/10_netbsd.in: Likewise.
4107 * util/grub.d/20_linux_xen.in: Likewise.
4108 * util/grub.d/30_os-prober.in: Likewise.
4109 * util/grub.d/10_illumos.in: Add missing quoting.
4110 * util/grub.d/10_windows.in: Likewise.
4111
4112 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 Fix menu title instability bug.
4115
4116 * grub-core/commands/menuentry.c (options): New option --id.
4117 (grub_normal_add_menu_entry): New argument id. All users updated.
4118 (grub_cmd_menuentry): Handle --id.
4119 (grub_menu_init): Accept unknown arguments.
4120 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4121 feature_menuentry_options.
4122 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4123 saved_entry.
4124 (get_entry_number): Match with id as well.
4125 * include/grub/menu.h (grub_menu_entry): New member id.
4126 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4127 * util/grub.d/00_header.in: Define menuentry_id_option.
4128 * util/grub.d/10_hurd.in: Define id.
4129 * util/grub.d/10_illumos.in: Likewise.
4130 * util/grub.d/10_kfreebsd.in: Likewise.
4131 * util/grub.d/10_linux.in: Likewise.
4132 * util/grub.d/10_netbsd.in: Likewise.
4133 * util/grub.d/10_windows.in: Likewise.
4134 * util/grub.d/20_linux_xen.in: Likewise.
4135 * util/grub.d/30_os-prober.in: Likewise.
4136
4137 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4140 "scope" with "body".
4141
4142 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4145 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4146 prot_size and prot_file_size.
4147
4148 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4151 All users updated. If easily=1 require raid-5/-6 to be full.
4152 (is_node_readable): Likewise.
4153 (scan_devices): Scan incomplete but readable LVs at the end.
4154 (grub_diskfilter_memberlist): Pull missing devices.
4155 (insert_array): Skip scanning until device is complete or scan is
4156 done otherwise.
4157 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4158 check.
4159 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4160 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4161
4162 2012-03-03 Matthew Garrett <mjg@redhat.com>
4163 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 Avoid EFI boot services when loading Linux.
4166
4167 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4168 avoid_efi_bootservices. All users updated.
4169 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4170 argument avoid_efi_bootservices. All users updated.
4171 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4172 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4173 align, min_align, relocatable, prefered_address. All users updated.
4174 Allocate avoiding boot services if kernel is relocatable.
4175 (grub_cmd_linux): Check if kernel is relocatable.
4176 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4177 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4178 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4179 avoid_efi_boot_services.
4180 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4181 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4182 (linux_kernel_params): Likewise.
4183
4184 2012-03-03 Matthew Garrett <mjg@redhat.com>
4185 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 Use EDID on EFI.
4188
4189 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4190 datasize_out.
4191 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4192 modes. Set gop_handle.
4193 (grub_video_gop_get_edid): New function.
4194 (grub_gop_get_preferred_mode): Likewise.
4195 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4196 (grub_video_efi_gop_adapter): Set .get_edid.
4197 * include/grub/efi/edid.h: New file.
4198 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4199
4200 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * util/grub-install.in: Load efivars unconditionally.
4203
4204 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 * po/Rules-piglatin: Change suffix from .po-update-en to
4207 .po-update-en-piglatin.
4208
4209 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 Add a pig farm.
4212
4213 * po/piglatin.sed: New file.
4214 * po/en@piglatin.header: Likewise.
4215 * po/Rules-piglatin: Likewise.
4216 * po/README: Add en@piglatin to autogenerated languages.
4217
4218 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4221 "Command for ...".
4222 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4223 "Check" since we don't check anything.
4224 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4225 is 64-bit one.
4226 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4227 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4228 (grub_md_sha512_real): Likewise.
4229
4230 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4231
4232 * grub-core/commands/gptsync.c: Fix typographic quoting.
4233 * grub-core/commands/ieee1275/suspend.c: Likewise.
4234 * grub-core/commands/parttool.c: Likewise.
4235 * grub-core/commands/search_wrap.c: Likewise.
4236 * grub-core/commands/videoinfo.c: Likewise.
4237 * grub-core/gfxmenu/gui_label.c: Likewise.
4238 * grub-core/hello/hello.c: Likewise.
4239 * grub-core/kern/emu/main.c: Likewise.
4240 * grub-core/net/net.c: Likewise.
4241 * grub-core/normal/menu.c: Likewise.
4242 * grub-core/normal/menu_text.c: Likewise.
4243 * grub-core/normal/misc.c: Likewise.
4244 * util/grub-editenv.c: Likewise.
4245 * util/grub-install.in: Likewise.
4246 * util/grub-kbdcomp.in: Likewise.
4247 * util/grub-mkconfig.in: Likewise.
4248 * util/grub-mknetdir.in: Likewise.
4249 * util/grub-mkrescue.in: Likewise.
4250 * util/grub-mkstandalone.in: Likewise.
4251 * util/grub-reboot.in: Likewise.
4252 * util/grub-set-default.in: Likewise.
4253 * util/grub-setup.c: Likewise.
4254 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4255
4256 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4259 * grub-core/commands/keystatus.c: Likewise.
4260 * grub-core/commands/loadenv.c: Likewise.
4261 * grub-core/commands/probe.c: Likewise.
4262 * grub-core/commands/regexp.c: Likewise.
4263 * grub-core/commands/true.c: Likewise.
4264 * grub-core/commands/videoinfo.c: Likewise.
4265 * grub-core/disk/cryptodisk.c: Likewise.
4266 * grub-core/disk/ldm.c: Likewise.
4267 * grub-core/disk/loopback.c: Likewise.
4268 * grub-core/disk/luks.c: Likewise.
4269 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4270 * grub-core/kern/disk.c: Likewise.
4271 * grub-core/kern/emu/hostdisk.c: Likewise.
4272
4273 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4276 * util/grub-install.in: Add missing quote in the comment.
4277
4278 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4279
4280 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4281 * grub-core/commands/lsmmap.c: Likewise.
4282 * grub-core/commands/minicmd.c: Likewise.
4283 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4284 * grub-core/commands/regexp.c: Likewise.
4285 * grub-core/gdb/gdb.c: Likewise.
4286 * grub-core/term/gfxterm.c: Likewise.
4287 * util/grub-mkconfig.in: Likewise.
4288 * util/grub-mkfont.c: Likewise.
4289 * util/grub-mklayout.c: Likewise.
4290 * util/grub-mknetdir.in: Likewise.
4291 * util/grub-mkrescue.in: Likewise.
4292 * util/grub.d/30_os-prober.in: Likewise.
4293
4294 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4297 with "Direct color" and "Packed" with "Packed pixel".
4298 (grub_cmd_videoinfo): Simplify legend.
4299
4300 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4303 absolutely unclear error message.
4304
4305 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * util/grub-mkstandalone.in: Remove confusing leftover print.
4308
4309 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4312 comments.
4313 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4314 (GRUB_MOD_INIT): Likewise.
4315 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4316 VGA mode.
4317 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4318 comments.
4319 * util/grub-install.in (usage): Likewise.
4320 Spell ID in whole letters.
4321 Add missing ending dot.
4322 Quote variables.
4323 * util/grub-reboot.in: Fix capitalisation.
4324 * util/grub-set-default.in: Likewise.
4325
4326 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4327
4328 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4329 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4330 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4331 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4332 Disable -Werror for -Wdeprecated-declarations.
4333 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4334 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4335 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4336 (grub_util_get_grub_dev): Make luks handling dependent on
4337 HAVE_DEVICE_MAPPER and not __linux__.
4338 (get_win32_path): Fix format security.
4339 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4340 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4341 Don't try grub_find_zpool_from_dir.
4342 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4343 #ifdef-out paresdir.
4344
4345 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * util/grub-pe2elf.c (usage): Add missing noreturn.
4348 (write_section_data): Rename name to shname to avoid shadowing.
4349 (write_symbol_table): Rename name to symname to avoid shadowing.
4350 Fix write_reloc_section call.
4351
4352 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4353
4354 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4355 to ensure that it's after the last byte of .text.
4356
4357 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4358
4359 * util/ieee1275/ofpath.c (my_isdigit): New function.
4360 (trailing_digits): Use my_isdigit.
4361 (strip_trailing_digits): Likewise.
4362
4363 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4366 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4367
4368 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * grub-core/kern/i386/pc/startup.S: Define __start.
4371
4372 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4375 strip already transforms he format.
4376
4377 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4380
4381 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * util/grub-install.in: Add missing gettext init.
4384 * util/grub-kbdcomp.in: Likewise.
4385 * util/grub-mkconfig.in: Likewise.
4386 * util/grub-mknetdir.in: Likewise.
4387 * util/grub-mkrescue.in: Likewise.
4388 * util/grub-mkstandalone.in: Likewise.
4389 * util/grub-reboot.in: Likewise.
4390 * util/grub-set-default.in: Likewise.
4391 * util/grub.d/00_header.in: Likewise.
4392 * util/grub.d/10_hurd.in: Likewise.
4393 * util/grub.d/10_windows.in: Likewise.
4394 * util/grub.d/30_os-prober.in: Likewise.
4395 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4396
4397 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4398
4399 * po/Rules-swiss: Fix header comment.
4400
4401 2012-02-29 Andreas Vogel <anvoit>
4402
4403 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4404 resulted in leak of arguments.
4405
4406 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4409 reed_solomon_size const definition instead of computing it since
4410 Apple assembler doesn't support the later.
4411
4412 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 * gentpl.py (kernel): Rewrite Apple part.
4415
4416 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4419
4420 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4423 ELF section gap.
4424 (load_image): Likewise.
4425
4426 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * configure.ac: Fix a typo in previous commit.
4429
4430 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 Don't add -Wl,-N on Apple platform.
4433
4434 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4435 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4436
4437 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/Makefile.core.def (lzma_decompress): Use
4440 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4441
4442 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * grub-core/genmod.sh.in: Rewrite the Apple part.
4445
4446 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4449 comparison.
4450
4451 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * acinclude.m4 (grub_CHECK_PIC): New test.
4454 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4455
4456 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4459 to avoid the warning.
4460
4461 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4464 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4465 after. All users updated.
4466
4467 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 Use the common size routine in hostfs so we can read disks as well.
4470
4471 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4472 (grub_util_get_fd_size): ... this. Return size in bytes.
4473 All users updated.
4474 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4475 grub_util_get_fd_size.
4476
4477 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4480 Add blocksize retrieval.
4481
4482 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * configure.ac: Restore CFLAGS after efiemu check.
4485
4486 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4489 Apple bug.
4490
4491 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4494
4495 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4496
4497 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4498 (grub_cmd_halt): Likewise.
4499
4500 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4501
4502 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4503 for local arithmetics.
4504 Break %sp init into 2 instructions.
4505 Add 0 byte at the end.
4506
4507 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4510 before loops.
4511
4512 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4515 for context.
4516
4517 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 * grub-core/disk/ldm.c (make_vg): Init part.name.
4520 (grub_ldm_detect): Silence spurious warning.
4521 (grub_util_is_ldm): Likewise.
4522
4523 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4524
4525 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4526 sane value to avoid a spurious warning.
4527
4528 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4531 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4532
4533 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4536 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4537
4538 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4541 hardcoding the relevant info.
4542
4543 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4546 missing const qualifiers.
4547 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4548
4549 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * util/getroot.c [__APPLE__]: Add missing includes.
4552 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4553
4554 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4555
4556 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4557
4558 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4561 avoid conflicts.
4562
4563 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4566
4567 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4570 and grub_file_close call.
4571
4572 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 Add LZSS Mach-O support (needed for new xnu kernelcache).
4575
4576 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4577 * grub-core/loader/lzss.c: New file.
4578 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4579 on Mach-O open failure.
4580 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4581 Don't free cmdsXX in uncompressedXX is set.
4582 (grub_macho_file): Init new fields.
4583 New argument is_64bit. All users updated.
4584 Handle compressed. Error out if no suitable architecture is found.
4585 Don't close file.
4586 (grub_macho_open): New argument is_64bit. All users updated.
4587 * grub-core/loader/macho32.c: Add defines for new fields.
4588 * grub-core/loader/macho64.c: Likewise.
4589 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4590 (grub_macho_parse): Handle compressed.
4591 Defer actual processing if compressed.
4592 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4593 "filename". All users updated.
4594 (grub_macho_size): New argument "filename". All users updated.
4595 (grub_macho_get_entry_point): Likewise.
4596 (grub_macho_load): Handle compressed.
4597 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4598 (GRUB_MACHO_LZSS_OFFSET): New define.
4599 (grub_decompress_lzss): New proto.
4600 * include/grub/machoload.h (grub_macho_file): New fields to handle
4601 compressed.
4602 (grub_macho_contains_macho64): Remove proto.
4603 (grub_macho_contains_macho32): Likewise.
4604 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4605
4606 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4609
4610 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 Fix make dist.
4613
4614 * Makefile.am (starfield_theme_files): New var.
4615 (starfield_DATA): Use starfield_theme_files.
4616 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4617 Add bootcheck-related files.
4618 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4619 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4620 and font_char_metrics.txt.
4621 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4622 (setjmp): Add lib/ia64/longjmp.S.
4623 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4624 * po/POTFILES.in: Regenerate.
4625 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4626 DISTFILES.common.extra1.
4627 * util/devicemap.c: Removed.
4628 * grub-core/lib/i386/relocator_backward.S: Likewise.
4629 * util/import_gcry.py: Remove unused files. Add extra_dist for
4630 ChangeLog.
4631
4632 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4633
4634 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4635 grub_gettext_delete_list before changing grub_gettext_max to avoid
4636 running out of array bounds.
4637
4638 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4641 grub_vga_text_init/grub_vga_text_fini.
4642
4643 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4644
4645 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4646
4647 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * configure.ac: Bump to 2.00~beta0.
4650
4651 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4652
4653 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4654 missing initialisation.
4655
4656 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4659
4660 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 Support v2 xnu boot arguments.
4663
4664 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4665 New argument fsbfreq_out.
4666 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4667 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4668 be used.
4669 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4670 darwin_version.
4671 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4672 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4673 (grub_xnu_boot_params): Rename to ...
4674 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4675 (grub_xnu_boot_params_v2): New struct.
4676
4677 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4680 zeroing of CRC field before computing CRC.
4681
4682 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4683
4684 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4685 Change order of allocations to decrease fragmentation.
4686
4687 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4690
4691 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4692
4693 Use write-combining MTRR to speed up video with buggy BIOSes.
4694
4695 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4696 (cpuid): New define.
4697 (rdmsr): Likewise.
4698 (wrmsr): Likewise.
4699 (mtrr_base): Likewise.
4700 (mtrr_mask): Likewise.
4701 (grub_vbe_enable_mtrr_entry): New function.
4702 (grub_vbe_enable_mtrr): Likewise.
4703 (grub_vbe_disable_mtrr): Likewise.
4704 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4705 control off to BIOS.
4706 (grub_video_vbe_init): Fill mtrr.
4707 (grub_video_vbe_fini): Disable mtrr.
4708 (grub_video_vbe_get_info_and_fini): Likewise.
4709 (grub_video_vbe_setup): Enable mtrr.
4710
4711 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4712
4713 * include/grub/partition.h (grub_partition_map): Change prototype of
4714 embed to take a maximum value for nsectors.
4715 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4716 * include/grub/fs.h (grub_fs): Likewise.
4717 * grub-core/partmap/msdos.c (embed_signatures): New array.
4718 (pc_partition_map_embed): Check for and avoid sectors matching any
4719 of the signatures in embed_signatures, up to max_nsectors.
4720 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4721 returned sector map to max_nsectors.
4722 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4723 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4724 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4725 * util/grub-setup.c (setup): Allow for the embedding area being
4726 split into multiple blocklists. Tell dest_partmap->embed the
4727 maximum number of sectors we care about.
4728
4729 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4730
4731 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4732 Specify blocklist_install and reserver_first_sector for all fs.
4733 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4734 blocklists.
4735
4736 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * util/grub-install.in: Clarify strings.
4739 Fix source dir check.
4740
4741 2012-02-27 Richard Laager <rlaager@wiktel.com>
4742
4743 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4744 "zfs" and "fuse.zfs" as synonyms.
4745
4746 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * configure.ac: Put platform and target_cpu substitutions back since
4749 they are used for directories.
4750
4751 2012-02-27 Richard Laager <rlaager@wiktel.com>
4752 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4755 * util/grub.d/20_linux_xen.in: Likewise.
4756
4757 2012-02-27 Richard Laager <rlaager@wiktel.com>
4758
4759 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4760 with full paths.
4761
4762 2012-02-27 Richard Laager <rlaager@wiktel.com>
4763
4764 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4765 unescape.
4766
4767 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 Don't use insecure popen in getroot.
4770
4771 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4772 (exec_pipe): ... here.
4773 (find_root_devices_from_poolname): Use exec_pipe.
4774
4775 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 Remove platform and target_cpu replacement.
4778
4779 * configure.ac: Remove platform and target_cpu substitutions.
4780 * tests/util/grub-shell.in: Use modinfo.
4781 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4782 explicitly.
4783
4784 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 Autodetect platform in grub-install but allow override.
4787
4788 * util/grub-install.in: Autodetect platform. Support --target and
4789 --directory. Read platform from modinfo.sh.
4790
4791 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 Support btrfs multi-volume probe.
4794
4795 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4796 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4797 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4798 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4799 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4800 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4801 grub_find_root_devices_from_btrfs if on btrfs.
4802
4803 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 Remove any awareness of *.c util files about target.
4806
4807 * Makefile.util.def (grub-setup): Split to ...
4808 (grub-bios-setup): ... and this.
4809 (grub-sparc64-setup): ... and this.
4810 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4811 * docs/man/grub-setup.h2m: Split into ...
4812 * docs/man/grub-sparc64-setup.h2m: ... this.
4813 * docs/man/grub-bios-setup.h2m: ... and this.
4814 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4815 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4816 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4817 (grub_target_addr_t): Remove.
4818 (grub_target_size_t): Remove.
4819 (grub_target_ssize_t): Remove.
4820 * util/grub-install.in: Use new grub-*-setup.
4821 * util/grub-mkimagexx.c (Elf_Word): New define.
4822 (Elf_Half): Likewise.
4823 (Elf_Section): Likewise.
4824 (ELF_ST_TYPE): Likewise.
4825 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4826 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4827
4828 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4829
4830 Replace grub_target_addr with more appropriate types.
4831
4832 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4833 grub_target_addr with grub_addr.
4834 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4835 grub_target_addr with grub_port.
4836 (grub_cmd_write): Likewise.
4837 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4838 grub_target_addr with grub_addr.
4839 (grub_cmd_write): Likewise.
4840 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4841
4842 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4845 const qualifier for vendor_guid.
4846
4847 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4850 const qualifier.
4851 (efiemu_memequal): Likewise.
4852 (find_variable): Likewise.
4853
4854 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 Fix missing console prototype on qemu-mips.
4857
4858 * include/grub/mips/qemu_mips/console.h: New file.
4859
4860 2012-02-27 Matthew Garrett <mjg@redhat.com>
4861 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4864 * include/grub/efi/efi.h: Likewise.
4865 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4866 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4867 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4868 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4869 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4870 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4871
4872 2012-02-27 Matthew Garrett <mjg@redhat.com>
4873
4874 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4875
4876 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4879 error.
4880
4881 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 * configure.ac: Remove inappropriate use of program_transform_name
4884 on grubdir and bootdir but allow explicit specification of those
4885 variables.
4886
4887 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * util/grub-mknetdir.in (grub_prefix): Removed.
4890 (subdir): Use @bootdirname@ and @grubdirname@.
4891
4892 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4895
4896 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * po/POTFILES.in: Regenerated.
4899
4900 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 Remove improper use of program_transform_name on pkglibrootdir.
4903
4904 * configure.ac (pkglibrootdir): Removed.
4905 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4906 * util/grub-mkimage.c: Likewise.
4907
4908 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4911 warning.
4912
4913 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * util/grub-install.in: Use file identifier if no UUID is available
4916 or user explicitly prompted for it.
4917
4918 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4919
4920 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4921 (freebsd_get_zfs): New function.
4922 (grub_freebsd_boot): Pass zfs UUID.
4923 (grub_cmd_freebsd): Set zfs UUID.
4924
4925 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4928 pkglibrootdir.
4929
4930 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4931
4932 Add configure flag to control libzfs integration.
4933
4934 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4935
4936 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
4939 device.
4940 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
4941 small devices.
4942
4943 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4946 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
4947 be used on non-modules.
4948
4949 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
4950 Rename to grub_boot_init.
4951 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
4952 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
4953 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
4954 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
4955 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
4956 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
4957 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
4958 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
4959 includes.
4960 (grub_machine_init): Remove empty inits.
4961 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
4962 includes.
4963 (grub_machine_init): Remove empty inits.
4964 * grub-core/term/arc/console.c: Remove explicit proto.
4965 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
4966 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
4967 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4968 grub_at_keyboard_fini.
4969 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
4970 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
4971 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4972 grub_gfxterm_fini.
4973 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
4974 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
4975 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4976 grub_vgatext_fini.
4977 * grub-core/term/ieee1275/console.c: Remove explicit proto.
4978 * grub-core/term/serial.c (GRUB_MOD_INIT)
4979 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
4980 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4981 grub_serial_fini.
4982 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
4983 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
4984 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4985 grub_terminfo_fini.
4986 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
4987 (GRUB_MOD_FINI): Likewise.
4988 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
4989 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
4990 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4991 grub_video_radeon_fuloong2e_fini.
4992 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
4993 [LOONGSON]: Rename to grub_video_sis315pro_init.
4994 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4995 grub_video_sis315pro_fini.
4996 * grub-core/video/sm712.c (GRUB_MOD_INIT)
4997 [LOONGSON]: Rename to grub_video_sm712_init.
4998 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4999 grub_video_sm712_fini.
5000 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5001 (grub_at_keyboard_fini): Likewise.
5002 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5003 Don't declare grub_{modname}_init.
5004 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5005 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5006 New proto.
5007 (grub_keylayouts_fini) [!EMU]: Likewise.
5008 * include/grub/serial.h (grub_serial_init) [!EMU]:
5009 New proto.
5010 (grub_serial_fini) [!EMU]: Likewise.
5011 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5012 New proto.
5013 (grub_terminfo_fini) [!EMU]: Likewise.
5014 * include/grub/video.h (grub_font_init) [!EMU]:
5015 New proto.
5016 (grub_font_fini) [!EMU]: Likewise.
5017 (grub_gfxterm_init) [!EMU]: Likewise.
5018 (grub_gfxterm_fini) [!EMU]: Likewise.
5019 (grub_video_sm712_init) [!EMU]: Likewise.
5020 (grub_video_sm712_fini) [!EMU]: Likewise.
5021 (grub_video_sis315pro_init) [!EMU]: Likewise.
5022 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5023 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5024 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5025
5026 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 Make nand a prefix for nand devices.
5029
5030 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5031
5032 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5033
5034 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5035 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5036
5037 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * include/grub/env.h (grub_env_find): Remove prototype.
5040 * grub-core/kern/env.c (grub_env_find): Make static.
5041 (grub_env_set): Remove useless set.
5042
5043 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * grub-core/kern/i386/realmode.S: Remove useless align.
5046
5047 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * include/grub/dl.h (grub_dl_load_file): Don't export.
5050
5051 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5054 grub_dprintf.
5055
5056 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5059 grub_errors.
5060 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5061 not reloading whole superblock but only the part which is really needed.
5062 Remove useless grub_errors.
5063 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5064 grub_errors.
5065
5066 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5067
5068 Don't export grub_get_rtc.
5069
5070 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5071 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5072
5073 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5076
5077 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5080 argument since it can be deduced from diskfilter. All users updated.
5081
5082 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5083
5084 Remove prio_list.
5085
5086 * include/grub/list.h (grub_prio_list): Removed.
5087 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5088 GRUB_COMMAND_PRIO_MASK.
5089 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5090 GRUB_COMMAND_FLAG_ACTIVE.
5091 (grub_prio_list_insert): Removed.
5092 (grub_prio_list_remove): Likewise.
5093 (GRUB_AS_PRIO_LIST): Likewise.
5094 (GRUB_AS_PRIO_LIST_P): Likewise.
5095 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5096 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5097 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5098 * grub-core/kern/command.c (grub_register_command_prio): Inline
5099 the prio_list code.
5100 (grub_unregister_command): Likewise.
5101
5102 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 Fix interrupt mixup from previous commit.
5105
5106 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5107 (grub_realidt): New var.
5108 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5109 Load idt.
5110 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5111 New declaration.
5112 (grub_relocator16_boot): Set grub_relocator16_idt.
5113 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5114 (LOCAL(realidt)): ... this.
5115 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5116 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5117 (grub_realidt): New variable.
5118
5119 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5122 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5123 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5124 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5125 Gettextize.
5126 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5127 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5128 * po/POTFILES.in: Regenerate.
5129
5130 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5133 errors.
5134
5135 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5138 \0.
5139 (add_length): Likewise.
5140
5141 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5142 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5143
5144 GDB serial and backtrace support.
5145
5146 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5147 (prot_to_real): Likewise.
5148 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5149 * grub-core/Makefile.core.def (backtrace): New module.
5150 (gdb): Likewise.
5151 * grub-core/gdb/cstub.c: New file.
5152 * grub-core/gdb/gdb.c: Likewise.
5153 * grub-core/gdb/i386/idt.c: Likewise.
5154 * grub-core/gdb/i386/machdep.S: Likewise.
5155 * grub-core/gdb/i386/signal.c: Likewise.
5156 * grub-core/lib/i386/backtrace.c: Likewise.
5157 * grub-core/lib/backtrace.c: Likewise.
5158 * include/grub/backtrace.h: Likewise.
5159 * include/grub/gdb.h: Likewise.
5160 * include/grub/i386/gdb.h: Likewise.
5161
5162 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5163
5164 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5165 New function.
5166 (add_length): Likewise.
5167 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5168 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5169 proto.
5170 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5171 __argp_get_display_len.
5172
5173 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 $"..." support in scripts.
5176
5177 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5178 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5179 * grub-core/script/yylex.l: Likewise.
5180 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5181 value.
5182
5183 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5184
5185 * gentpl.py: Remove obsolete pkglib_DATA handling.
5186
5187 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5190 mailing list.
5191
5192 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5193 * util/grub-kbdcomp.in: Likewise.
5194 * util/grub-mkconfig.in: Likewise.
5195 * util/grub-mkconfig_lib.in: Likewise.
5196 * util/grub-mknetdir.in: Likewise.
5197 * util/grub-mkrescue.in: Likewise.
5198 * util/grub-mkstandalone.in: Likewise.
5199 * util/grub-reboot.in: Likewise.
5200 * util/grub-set-default.in: Likewise.
5201 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5202
5203 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 Remove GRUB_PREFIX.
5206
5207 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5208 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5209 used for backward compatibility.
5210
5211 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5212
5213 Add new all_video module.
5214
5215 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5216 * grub-core/Makefile.core.def (all_video): New module.
5217 * grub-core/genmoddep.awk: Generate dependency of all_video from
5218 video.lst.
5219 * grub-core/lib/fake_module.c: New file.
5220 * grub-core/normal/main.c (features): Add feature_all_video_module.
5221 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5222 don't do explicit search again.
5223 insmod all_video in load_video if available.
5224
5225 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 Another round of string clarification and adding TRANSLATORS comments.
5228
5229 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5232
5233 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5234
5235 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5236 to grub_ssize_t.
5237 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5238 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5239
5240 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5243 trailing newline implicitly. All users updated.
5244
5245 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 Implement serial on IEEE1275 and EFI.
5248
5249 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5250 on emu. Mention arc and emu as the only platforms without serial
5251 support.
5252 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5253 ieee1275 platforms.
5254 * grub-core/term/efi/serial.c: New file.
5255 * grub-core/term/ieee1275/serial.c: Likewise.
5256 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5257 specification if no ns8250 driver is available.
5258 (grub_cmd_serial): Likewise.
5259 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5260 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5261 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5262 (grub_efi_parity_type_t): New type.
5263 (grub_efi_stop_bits_t): Likewise.
5264 (grub_efi_serial_io_interface): New struct.
5265 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5266 available for all interfaces.
5267 Add EFI and IEEE1275 fields.
5268 (grub_ofserial_init): New proto.
5269 (grub_efiserial_init): Likeiwse.
5270 * util/grub.d/00_header.in: Don't check for the presence of serial
5271 module.
5272
5273 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5274
5275 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5276 name as if it was an alias.
5277
5278 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5279
5280 * grub-core/commands/lsacpi.c (options): Fix typo.
5281
5282 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 Convert grub-emu to argp.
5285
5286 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5287 emu.
5288 * util/argp_common.c: Rename to ...
5289 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5290 Add missing includes.
5291 * grub-core/kern/emu/main.c: Convert to argp.
5292 * po/POTFILES.in: Regenerate.
5293 * util/grub-install.in (usage): Make first letter lowcase in messages
5294 for uniformity.
5295 * util/grub-setup.c (options): Likewise.
5296
5297 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5298
5299 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5300 Put back accidently commented-out code.
5301
5302 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5305 loop check using Brent algorithm.
5306 (grub_hfsplus_btree_search): Likewise.
5307
5308 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * util/grub-install.in: Fix usage of wrong device for PreP install.
5311
5312 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5313
5314 * conf/Makefile.common (CFLAGS_GNULIB): Add
5315 -Wno-unsafe-loop-optimizations.
5316 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5317 on tools.
5318 * grub-core/commands/legacycfg.c: Add pragma to skip
5319 -Wunsafe-loop-optimizations.
5320 (check_password_md5_real): Fix loop counter type.
5321 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5322 reading.
5323 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5324 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5325 loop condition.
5326 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5327 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5328 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5329 condition.
5330 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5331 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5332 avoid possible infinite loops.
5333 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5334 and -Wunsafe-loop-optimizations.
5335 * grub-core/script/yylex.l: Likewise.
5336 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5337 (print_glyphs): Avoid infinite loops.
5338 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5339
5340 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5341
5342 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5343 to avoid infinite loop.
5344 (disp_acpi_rsdt_table): Likewise.
5345
5346 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 * grub-core/font/font.c (grub_font_load): Add support for default
5349 path for fonts ($prefix/fonts).
5350 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5351 for checking if string is a path.
5352 * grub-core/normal/main.c (features): Add feature_default_font_path.
5353 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5354 * util/grub.d/00_header.in: Use default directory if possible.
5355 * util/grub-install.in: Install unicode.pf2.
5356
5357 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5360 * po/Rules-swiss: New file.
5361 * po/swiss.sed: Likewise.
5362
5363 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * grub-core/fs/btrfs.c (find_device): Fix typos.
5366 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5367 * util/grub-mkrelpath.c (argp_parser): Likewise.
5368 Reported by: Yuri Chornoivan.
5369
5370 2012-02-23 Dalet Omega <daletomega@gmail.com>
5371
5372 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5373 for usual informative messages.
5374
5375 2012-02-23 Dalet Omega <daletomega@gmail.com>
5376
5377 Starfield theme.
5378
5379 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5380 * conf/Makefile.common: Define starfielddir.
5381 * configure.ac: Configure starfield.
5382 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5383 * themes/starfield/README: Likewise.
5384 * themes/starfield/blob_w.png: Likewise.
5385 * themes/starfield/boot_menu_c.png: Likewise.
5386 * themes/starfield/boot_menu_e.png: Likewise.
5387 * themes/starfield/boot_menu_n.png: Likewise.
5388 * themes/starfield/boot_menu_ne.png: Likewise.
5389 * themes/starfield/boot_menu_nw.png: Likewise.
5390 * themes/starfield/boot_menu_s.png: Likewise.
5391 * themes/starfield/boot_menu_se.png: Likewise.
5392 * themes/starfield/boot_menu_sw.png: Likewise.
5393 * themes/starfield/boot_menu_w.png: Likewise.
5394 * themes/starfield/slider_c.png: Likewise.
5395 * themes/starfield/slider_n.png: Likewise.
5396 * themes/starfield/slider_s.png: Likewise.
5397 * themes/starfield/src/blob_nw.xcf: Likewise.
5398 * themes/starfield/src/bootmenu/: Likewise.
5399 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5400 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5401 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5402 * themes/starfield/src/slider_c.xcf: Likewise.
5403 * themes/starfield/src/slider_n.xcf: Likewise.
5404 * themes/starfield/src/slider_s.xcf: Likewise.
5405 * themes/starfield/src/terminalbox/: Likewise.
5406 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5407 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5408 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5409 * themes/starfield/starfield.png: Likewise.
5410 * themes/starfield/terminal_box_c.png: Likewise.
5411 * themes/starfield/terminal_box_e.png: Likewise.
5412 * themes/starfield/terminal_box_n.png: Likewise.
5413 * themes/starfield/terminal_box_ne.png: Likewise.
5414 * themes/starfield/terminal_box_nw.png: Likewise.
5415 * themes/starfield/terminal_box_s.png: Likewise.
5416 * themes/starfield/terminal_box_se.png: Likewise.
5417 * themes/starfield/terminal_box_sw.png: Likewise.
5418 * themes/starfield/terminal_box_w.png: Likewise.
5419 * themes/starfield/theme.txt: Likewise.
5420
5421 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5422
5423 * util/grub.d/00_header.in: Add missing export theme.
5424
5425 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5426
5427 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5428 already included.
5429 Reported by: Eren D.
5430
5431 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5432
5433 * conf/Makefile.common (grubdatadir): Removed.
5434 (Makefile.am): Move eveything grubdata to pkgdata.
5435
5436 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 * grub-core/commands/acpihalt.c (get_sleep_type):
5439 Remove unused variable.
5440
5441 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5444 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5445 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5446 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5447 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5448 i18n with gettext no-op.
5449 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5450 GRUB_ACPI_OPCODE_STRING_CONST.
5451 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5452 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5453
5454 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * po/POTFILES.in: Regenerate.
5457
5458 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5461 -Wno-error=missing-noreturn.
5462
5463 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5466 condition to avoid possibly infinite loops.
5467 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5468 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5469
5470 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5473 condition to avoid possibly infinite loops.
5474
5475 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5478 on show_error.
5479
5480 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5483
5484 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5485
5486 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5487
5488 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5489
5490 * util/bin2h.c (usage): Add missing attribute noreturn.
5491
5492 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5495 if the size isn't divisible by 512.
5496
5497 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 Make list_push and list_remove functions rather than inline functions
5500 to decrease size and avoid aliasing violations.
5501
5502 * include/grub/list.h (grub_list_push): Move to ...
5503 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5504 * include/grub/list.h (grub_list_remove): Move to ...
5505 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5506
5507 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5510 and -Wunused-result.
5511
5512 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5515 Reported by: Seth Goldberg
5516
5517 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5518
5519 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5520
5521 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5522
5523 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5524 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5525 command line.
5526 * docs/grub.texi (Simple configuration): Document
5527 GRUB_CMDLINE_GNUMACH.
5528
5529 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 * conf/Makefile.common (platform_SCRIPTS): New variable.
5532 (platform_PROGRAMS): Likewise.
5533 * gentpl.py: Mark *,module and *.image for install.
5534 * grub-core/gdb_grub.in: Add a notice of expected environment.
5535 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5536 (gmodule.pl): Likewise.
5537
5538 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 Replace grub_checkkey with grub_getkey_noblock.
5541
5542 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5543 (grub_getkey_noblock): ... this. All users updated.
5544
5545 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5546
5547 * grub-core/kern/emu/console.c: Move to ...
5548 * grub-core/term/emu/console.c: ...here.
5549 (grub_ncurses_getkey): Fix return value if no key is detected.
5550
5551 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5554 (grub_unit_test_fini): Likewise.
5555 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5556
5557 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5558
5559 * include/grub/test.h (GRUB_UNIT_TEST)
5560
5561 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5564 Better error handling.
5565 (grub_script_return): Likewise.
5566 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5567
5568 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5571 rimplicit redifinition.
5572
5573 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5576 GRUB.
5577
5578 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5581 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5582 prompt here.
5583
5584 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5587 as GRUB_ERR_BUG. Don't malloc if no device is available.
5588
5589 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5592 Mark calling with invalid term as GRUB_ERR_BUG.
5593
5594 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5595
5596 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5597 packets rather than raising an error.
5598
5599 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5602 in if.
5603
5604 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5607 diagnostic to dprintf.
5608 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5609
5610 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5613 device name.
5614
5615 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5618 (grub_ntfs_iterate_dir): Likewise.
5619
5620 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 Efiemu stylistic fixes and gettext.
5623
5624 * grub-core/efiemu/i386/loadcore32.c
5625 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5626 * grub-core/efiemu/i386/loadcore64.c
5627 (grub_arch_efiemu_relocate_symbols64): Likewise.
5628 * grub-core/efiemu/i386/pc/cfgtables.c
5629 (grub_machine_efiemu_init_tables): Likewise.
5630 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5631 (grub_efiemu_loadcore_initXX): Add a filename argument.
5632 All users updated.
5633 Improved error message.
5634 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5635 Add a filename argument.
5636 All users updated.
5637 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5638 Reclassify double relocation as GRUB_ERR_BUG.
5639
5640 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5641
5642 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5643 handling.
5644
5645 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5646
5647 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5648 on partition.
5649
5650 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5651
5652 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5653
5654 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 Improve string. Gettextize.
5657
5658 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5661 utils.
5662 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5663
5664 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5665
5666 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5667 [GRUB_UTIL]: New function.
5668 (insert_array) [GRUB_UTIL]: Store partmaps.
5669 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5670 partmaps.
5671 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5672 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5673 (probe_abstraction): Print diskfilter and not raid.
5674 Reported by: Lennart Sorensen
5675
5676 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5679 * util/grub-mkimagexx.c (MASK3): New define.
5680 (add_value_to_slot_20b): Use MASK3.
5681 (add_value_to_slot_21): Likewise.
5682 (relocate_addresses): Fix format specification.
5683 (load_image): Explicitly init symtab_section.
5684
5685 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5686
5687 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5688 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5689
5690 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5693 on powerpc.
5694 Reported by: Lennart Sorensen
5695
5696 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 * gentpl.py: Add missing license header.
5699 * docs/grub.texi: Update copyright year.
5700
5701 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5702
5703 Source grub-mkconfig_lib from the build directory at build time.
5704 Suggested by: Vladimir Serbinenko.
5705
5706 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5707 * util/grub-install.in: Define pkgdatadir if not already set, and source
5708 grub-mkconfig_lib from there.
5709 * util/grub-kbdcomp.in: Likewise.
5710 * util/grub-mkconfig.in: Likewise.
5711 * util/grub-mknetdir.in: Likewise.
5712 * util/grub-mkrescue.in: Likewise.
5713 * util/grub-mkstandalone.in: Likewise.
5714 * util/grub-reboot.in: Likewise.
5715 * util/grub-set-default.in: Likewise.
5716 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5717
5718 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 Increase warning level.
5721
5722 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5723 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5724 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5725 (TARGET_CFLAGS): Likewise.
5726 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5727 * grub-core/Makefile.core.def (decompressor_xz): Add
5728 -Wno-unreachable-code.
5729 (normal): Add -Wno-redundant-decls.
5730 (xzio): Add -Wno-unreachable-code.
5731 (lzopio): Add -Wno-redundant-decls -Wno-error.
5732 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5733 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5734 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5735 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5736 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5737 * grub-core/kern/i386/coreboot/init.c: Add exception to
5738 -Wsuggest-attribute=noreturn.
5739 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5740 * grub-core/kern/ia64/dl_helper.c: Likewise.
5741 * grub-core/kern/mips/dl.c: Likewise.
5742 * grub-core/kern/sparc64/dl.c: Likewise.
5743 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5744 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5745 (memcmp): Likewise.
5746 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5747 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5748 * grub-core/loader/mips/linux.c: Likewise.
5749 * grub-core/loader/multiboot_elfxx.c: Likewise.
5750 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5751 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5752 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5753 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5754 fixme.
5755 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5756 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5757 Fix prototype.
5758
5759 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5762 address.
5763
5764 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5767 Avoid improper use of strings.
5768 (grub_cmd_legacy_initrdnounzip): Likewise.
5769
5770 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5773 attribute.
5774 (grub_util_info): Likewise.
5775 (grub_util_error): Likewise.
5776
5777 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5778
5779 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5780 * util/grub-fstest.c (fstest): Likewise.
5781
5782 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5785 (grub_md_sha512_real): Likewise.
5786 (grub_util_get_geli_uuid): Likewise.
5787 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5788 (grub_util_biosdisk_open): Fix format specification.
5789 Respect format security.
5790 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5791 (xrealloc): Likewise.
5792 (xasprintf): Likewise.
5793
5794 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5795
5796 * util/import_gcry.py: Include grub/crypto.h in init.c.
5797
5798 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5799
5800 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5801 (generate_image): Make prefix a const char *.
5802 Fix format specifications. Respect format security.
5803 Avoid void * arithmetics.
5804 Avoid shadowing.
5805 (argp_parser): Remove unused variable. Respect format security.
5806 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5807 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5808 (count_funcs): Remove unused variable.
5809 (relocate_addresses): Fix format specification.
5810 Disable x86-64 with elf32. Remove unused variables.
5811 (add_fixup_entry): Avoid shadowing.
5812 (make_reloc_section): Fix format specification.
5813 Use assert.
5814 (locate_sections): Fix format specifications.
5815 (load_image): Avoid shadowing.
5816
5817 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5818
5819 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5820 Fix format specifications. Respect format security.
5821 Don't translate already translated grub_errmsg.
5822 (argp_parser): Remove unused variable
5823
5824 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5827
5828 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5831 (main): Likewise. Use xmalloc. Respect format security.
5832
5833 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5836 a const char *.
5837 (argp_parser): Remove unused variable.
5838
5839 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5840
5841 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5842 (add_pixel): Make static.
5843 (add_font): Likewise.
5844 (write_string_section): Make name and str a const char *.
5845 (write_be16_section): Make name a const char *.
5846 (print_glyphs): Make static.
5847 (write_font_ascii_bitmap): Likewise.
5848 (write_font_width_spec): Likewise.
5849 (write_font_pf2): Likewise.
5850 (argp_parser): Remove unused variable.
5851 Respect format security.
5852 (main): Avoid shadowing. Respect format security.
5853
5854 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * util/grub-editenv.c (argp_parser): Make static.
5857 (create_envblk_file): Use xmalloc.
5858 (open_envblk_file): Likewise.
5859 Resepect format security.
5860 (set_variables): Respect format security.
5861
5862 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * util/getroot.c (grub_find_device): Respect format security.
5865 (get_mdadm_uuid): Remove unused variable.
5866 (grub_util_pull_device): Dont call gettext on already translated
5867 grub_errmsg.
5868 (find_system_device): Remove unused variable.
5869 (grub_util_get_grub_dev): Likewise.
5870 (grub_make_system_path_relative_to_its_root): Respect format security.
5871
5872 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * util/grub-fstest.c (execute_command): Make first argument
5875 a const char *.
5876 (read_file): Avoid shadowing.
5877 Reuse underlying error message if device open fails.
5878 (cmd_cmp): Respect format security.
5879 (root): Make const char *.
5880 (fstest): Remove args argument and use global copy.
5881 Respect format security.
5882 (argp_parser): Make static.
5883 (main): Make default_root const char *.
5884
5885 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5886
5887 * util/grub-mount.c (root): Make const char *.
5888 (execute_command): Make first argument a const char *.
5889 (fuse_init): Respect format security.
5890 (argp_parser): Make static. Remove unused variable.
5891 (main): Make default_root a const char *.
5892 Respect format security.
5893
5894 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5895
5896 * util/grub-probe.c (probe): Don't call gettext on already translated
5897 grub_errmsg.
5898 Remove unused variables.
5899 (argp_parser): Remove unused variable.
5900
5901 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * util/grub-script-check.c (argp_parser): Remove unused variable.
5904 (main): Rename read to curread to avoid shadowing.
5905
5906 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * util/misc.c (grub_util_write_image_at): Fix format specification.
5909 (grub_util_write_image): Likewise.
5910 (grub_script_execute_argument_to_string): Removed (unused).
5911 (grub_script_execute_menuentry): Likewise.
5912 (grub_putchar): Likewise.
5913
5914 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5915
5916 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5917 (FUNCTION) [GRUB_UTIL]: Likewise.
5918 (VARIABLE) [GRUB_UTIL]: Likewise.
5919
5920 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5923 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5924
5925 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5926
5927 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5928 buffer.
5929
5930 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5931
5932 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5933 (LzmaEnc_SaveState): Removed (unused).
5934 (LzmaEnc_RestoreState): Likewise.
5935 (LzmaEnc_InitPriceTables): Made static.
5936 (LzmaEnc_Construct): Likewise.
5937 (LzmaEnc_FreeLits): Likewise.
5938 (LzmaEnc_Destruct): Likewise.
5939 (LzmaEnc_Init): Likewise.
5940 (LzmaEnc_InitPrices): Likewise.
5941 (LzmaEnc_Finish): Likewise.
5942 (LzmaEnc_PrepareForLzma2): Removed (unused).
5943 (LzmaEnc_MemPrepare): Likewise.
5944 (LzmaEnc_GetNumAvailableBytes): Likewise.
5945 (LzmaEnc_GetCurBuf): Likewise.
5946 (LzmaEnc_CodeOneMemBlock): Likewise.
5947
5948 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
5951 (grub_util_ldm_embed): Likewise.
5952
5953 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * util/grub-editenv.c (print_var): Rename name to varname to
5956 avoid shadowing.
5957 (main): Rename index to curindex to avoid shadowing.
5958 Make filename a const char *.
5959
5960 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5963 to arg_getline to avoid shadowing.
5964
5965 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
5968 disk_ to avoid shadowing.
5969
5970 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
5973 curindex to avoid shadowing.
5974 Make static.
5975 (MatchFinder_GetNumAvailableBytes): Make static.
5976
5977 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
5980 avoid shadowing.
5981
5982 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
5985 argument from encrypt to do_encrypt to avoid shadowing.
5986
5987 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
5990 incorrect nesting of #if's.
5991
5992 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
5995 checks which are always false on some platforms.
5996 (grub_cmd_lsacpi): Likewise.
5997 * grub-core/kern/misc.c (grub_strtoul): Likewise.
5998 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
5999 Likewise.
6000
6001 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6004 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6005
6006 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6009 re_dfa_t to avoid breaking alignment invariants.
6010 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6011 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6012
6013 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6014
6015 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6016 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6017
6018 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6019
6020 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6021 Fix declaration.
6022
6023 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6026 conserve alignment invariants.
6027 (grub_ehci_ehcc_read16): Likewise.
6028 (grub_ehci_oper_read32): Likewise.
6029 (grub_ehci_oper_write32): Likewise.
6030 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6031 Conserve alignment invariants.
6032
6033 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6036 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6037 declarations.
6038
6039 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6042 Remove unused variable.
6043
6044 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6047 Remove set in if.
6048
6049 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6050
6051 * include/grub/net.h: Remove double declarations.
6052
6053 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 Remove "payload" command in ia64 Linux loader since I couldn't
6056 find any evidence of it being used for anything.
6057 Replace "relocate" command with an environment variable
6058
6059 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6060 fields.
6061 (ia64_boot_payload): Removed.
6062 (last_payload): Likewise.
6063 (RELOCATE_OFF): Likewise.
6064 (RELOCATE_ON): Likewise.
6065 (RELOCATE_FORCE): Likewise.
6066 (relocate): Likewise.
6067 (free_pages): Don't free payloads.
6068 (grub_load_elf64): Use common error messages.
6069 Use "linux_relocate" variable.
6070 Increase the space after boot_params.
6071 (grub_cmd_payload): Removed.
6072 (grub_cmd_relocate): Likewise.
6073 (grub_cmd_fpswa): Improve messages.
6074 (cmd_payload): Removed.
6075 (cmd_relocate): Likewise.
6076 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6077 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6078
6079 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6080
6081 Convert UHCI to DMA framework.
6082
6083 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6084 (grub_uhci_pci_iter): Fill new members
6085 (grub_alloc_td): Use P2V and V2P functions.
6086 (grub_free_queue): Likewise.
6087 (grub_alloc_qh): Likewise.
6088 (grub_uhci_setup_transfer): Likewise.
6089 (grub_uhci_check_transfer): Likewise.
6090
6091 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6094 Remove assignment in if while on it.
6095
6096 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * util/grub-mkstandalone.in: Fix modules directory.
6099
6100 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6101
6102 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6103 on i386-pc target.
6104 (argp_parser): Accept "auto" as compression specification.
6105
6106 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 Fix `help' with unloaded modules.
6109
6110 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6111 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6112 (grub_dyncmd_dispatcher): Small stylistic fix.
6113 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6114 explicit help is requested.
6115
6116 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6119 Explicitly init restart while on it.
6120
6121 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6124 uninited variable.
6125
6126 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6127
6128 * util/grub-mknetdir.in: Use . rather than source for POSIX
6129 compatibility.
6130
6131 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6134
6135 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6138 variable.
6139
6140 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6141
6142 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6143 without quotes.
6144
6145 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6148
6149 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6152 iteration of partitions.
6153
6154 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 Improve gettext support. Stylistic fixes and error handling fixes while
6157 on it.
6158
6159 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6162 part. Instead setup the correct stack in RM.
6163 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6164 for stack.
6165 * include/grub/i386/relocator_private.h: New file.
6166
6167 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6168
6169 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6170 argument.
6171 * util/grub-fstest.c (options): Add missing DEVICE part.
6172
6173 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 Clarify and unify messages.
6176
6177 * grub-core/commands/hashsum.c (options): Unify messages.
6178 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6179 literal-only message as translatable.
6180 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6181 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6182 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6183 commands.
6184 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6185 key, not the key used to unlock. Clarify what it's used for.
6186 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6187 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6188 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6189 * util/grub-editenv.c (options): Unify "verbose" message.
6190 * util/grub-fstest.c (read_file): Unify error message.
6191 (fstest): Add quotes around commands.
6192 (options): Unify "verbose" message.
6193 * util/grub-install.in: Add quotes around variable name.
6194 * util/grub-kbdcomp.in: Unify error message.
6195 * util/grub-mkfont.c (main): Likewise.
6196 * util/grub-mkrescue.in: Likewise.
6197 * util/grub-mklayout.c (options): Unify "verbose" message.
6198 * util/grub-mkstandalone.in: Unify help and verbose messages.
6199 * util/grub-mount.c (options): Unify "verbose" message.
6200 * util/grub-probe.c (options): Likewise.
6201 * util/grub-script-check.c (options): Likewise.
6202 * util/grub-setup.c (setup): Unify no-terminator message.
6203 (options): Use DEVICE and not DEV.
6204 Unify "verbose" message.
6205 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6206
6207 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 Improve and unify messages.
6210
6211 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6212 name. All users updated.
6213 Print filename in error.
6214 (read_device_map): Print filename in error.
6215 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6216 (grub_util_get_os_disk): Likewise.
6217 (grub_util_biosdisk_get_grub_dev): Likewise.
6218 (grub_util_check_block_device): Likewise.
6219 (grub_util_check_char_device): Likewise.
6220 (grub_make_system_path_relative_to_its_root): Likewise.
6221 * util/grub-editenv.c (create_envblk_file): Likewise.
6222 (open_envblk_file): Likewise.
6223 (write_envblk): Likewise.
6224 * util/grub-fstest.c (cmd_cp): Likewise.
6225 (cmd_cat): Likewise.
6226 (cmd_cmp): Likewise.
6227 * util/grub-menulst2cfg.c (main): Likewise.
6228 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6229 (write_font_width_spec): Likewise.
6230 (write_font_pf2): Likewise.
6231 * util/grub-mkimage.c (generate_image): New argument outname.
6232 All users updated.
6233 Remove unreacheable message.
6234 (options): Unify messages.
6235 (help_filter): Likewise.
6236 * util/grub-mklayout.c (usage): Removed (unused).
6237 (main): Print filename in error.
6238 * util/grub-mkrescue.in: Fix wrong quoting.
6239 * util/grub-setup.c (setup): Print filename in error.
6240 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6241 (check_sas): Likewise.
6242 * util/misc.c (grub_util_get_fp_size): Removed.
6243 (grub_util_get_image_size): Print filename in error.
6244 (grub_util_read_at): Removed.
6245 (grub_util_read_image): Print filename in error.
6246 (grub_util_load_image): Likewise.
6247 (grub_util_write_image_at): New argument filename. All users updated.
6248 Print filename in error.
6249 (grub_util_write_image): New argument filename. All users updated.
6250 Print filename in error.
6251 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6252 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6253
6254 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/Makefile.core.def (pxechain): New module.
6257 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6258 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6259 function.
6260 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6261 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6262
6263 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6266 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6267 * include/grub/err.h (grub_error_saved): New struct.
6268 (grub_errmsg): Make array size explicit.
6269 * include/grub/misc.h (grub_error_save): New function.
6270 (grub_error_load): Likewise.
6271 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6272 (grub_error_push): Update `errno' member name.
6273 (grub_error_pop): Likewise
6274 * grub-core/net/tftp.c (tftp_data): New member save_err.
6275 (tftp_receive): Save error.
6276 (tftp_open): Restore error.
6277
6278 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6281 to real mode down to execute A20-related code in protected mode as
6282 intended.
6283
6284 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6285
6286 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6287 NULL when the argument `level' has an unexpected value.
6288
6289 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6290
6291 Move platform-dependent files from $prefix to $prefix/$platform.
6292
6293 * config.h.in (GRUB_TARGET_CPU): New definition.
6294 (GRUB_PLATFORM): Likewise.
6295 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6296 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6297 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6298 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6299 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6300 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6301 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6302 * grub-core/normal/term.c (read_terminal_list): Likewise.
6303 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6304 $prefix/locale.
6305 (grub_gettext_init_ext): Likewise.
6306 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6307 grub_platform.
6308 * util/grub-install.in: Update directories.
6309 * util/grub-mknetdir.in: Likewise.
6310 * util/grub-mkrescue.in: Likewise.
6311
6312 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6315 grub_error framework. All users updated.
6316
6317 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6320 lists (by always binsearching), improve caching (cache strings
6321 used for binsearch, not only results), improve
6322 maintainability (by using more structured binary search) and correct
6323 error handling.
6324
6325 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/script/execute.c (grub_script_return): Fix warning.
6328
6329 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * grub-core/script/execute.c (grub_script_return): Fix potential
6332 NULL-dereference.
6333 Reported by: Jim Meyering.
6334
6335 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * po/POTFILES.in: Regenerate.
6338 * util/grub-install.in: Gettextize the strings missed in first pass.
6339
6340 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * Makefile.util.def (grub-mkdevicemap): Removed.
6343 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6344 * include/grub/util/deviceiter.h: Removed.
6345 * util/deviceiter.c: Likewise.
6346 * util/getroot.c (grub_util_get_os_disk): New function.
6347 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6348 replacement for EFI.
6349 * util/grub-mkdevicemap.c: Removed.
6350 * util/grub-probe.c (probe): Handle PRINT_DISK.
6351 (argp_parser): Handle -t disk.
6352
6353 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * util/grub-mkfont.c: Migrate to argp.
6356 * util/grub-mklayout.c: Likewise.
6357 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6358 * util/grub-mkrelpath.c: Likewise.
6359 * util/grub-probe.c: Likewise.
6360 * util/grub-script-check.c: Likewise.
6361
6362 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 * util/grub-reboot.in: Add missing datarootdir.
6365 Add missing newline.
6366 * util/grub-set-default.in: Add missing datarootdir.
6367 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6368 * util/grub-mkrescue.in: Likewise.
6369
6370 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6373
6374 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * util/grub-kbdcomp.in: Add decent help and gettextize.
6377 * docs/man/grub-kbdcomp.h2m: New file.
6378
6379 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 Migrate grub-mkimage.c to argp.
6382
6383 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6384 (grub-setup): Likewise.
6385 * util/grub-setup.c (print_version): Move to ...
6386 * util/argp_common.c (print_version): ... here.
6387 * util/grub-setup.c (argp_program_version_hook): Move to ...
6388 * util/argp_common.c (argp_program_version_hook): ... here.
6389 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6390 safety.
6391 * util/grub-mkimage.c (main): Migrate to argp.
6392
6393 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 * util/grub-mkrescue.in: Use same message as
6396 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6397 for better translations.
6398
6399 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6402 options with generic grub-mkrescue.in with the goal of future
6403 merge.
6404
6405 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 * grub-core/kern/mm.c: Add missing include of i18n.h
6408 * grub-core/lib/relocator.c: Likewise.
6409
6410 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6413 error.
6414 (allocate_pages): Check return value.
6415 Replace fatal with error.
6416 (grub_linux_boot): Replace printf with dprintf.
6417 Check find_mmap_size return value.
6418 Replace fatal with error.
6419 Don't call grub_machine_fini.
6420 (grub_load_elf64): Replace printf with dprintf.
6421 (grub_cmd_linux): Likewise.
6422 (grub_cmd_initrd): Likewise.
6423 (grub_cmd_payload): Likewise.
6424
6425 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6428 message.
6429 * grub-core/video/radeon_fuloong2e.c
6430 (grub_video_radeon_fuloong2e_setup): Likewise.
6431 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6432 * grub-core/video/video.c (grub_video_set_mode): Don't override
6433 standard out of memory message.
6434
6435 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6436
6437 NetBSD disk wedge support.
6438
6439 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6440 [__NetBSD__]: Handle NetBSD disk wedges.
6441 * util/getroot.c (convert_system_partition_to_system_disk)
6442 [__NetBSD__]: Likewise.
6443
6444 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6445
6446 * util/grub-mkconfig.in: Use umask rather than chmod to create
6447 grub.cfg.new to avoid insecure grub.cfg.
6448
6449 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/commands/ls.c: Gettextize.
6452 * grub-core/commands/setpci.c: Likewise.
6453 * grub-core/commands/videotest.c: Likewise.
6454 * grub-core/disk/geli.c: Likewise.
6455 * grub-core/kern/mm.c: Likewise.
6456 * grub-core/lib/relocator.c: Likewise.
6457 * grub-core/loader/efi/appleloader.c: Likewise.
6458 * grub-core/loader/i386/xnu.c: Likewise.
6459 * grub-core/loader/ia64/efi/linux.c: Likewise.
6460 * grub-core/loader/xnu.c: Likewise.
6461 * grub-core/net/dns.c: Likewise.
6462 * grub-core/net/net.c: Likewise.
6463 * grub-core/script/lexer.c: Likewise.
6464 * grub-core/script/parser.y: Likewise.
6465 * grub-core/script/yylex.l: Likewise.
6466 * util/getroot.c: Likewise.
6467 * util/grub-setup.c: Likewise.
6468
6469 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6472 number.
6473
6474 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6477
6478 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6481 macro.
6482 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6483 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6484
6485 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6488 * util/grub-install.in: Gettextize.
6489 * util/grub-mkconfig.in: Likewise.
6490 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6491 if not available.
6492 (grub_warn): Gettextize.
6493 * util/grub-mknetdir.in: Gettextize.
6494 * util/grub-mkrescue.in: Likewise.
6495 * util/grub-mkstandalone.in: Likewise.
6496 * util/grub-reboot.in: Likewise.
6497 * util/grub-set-default.in: Likewise.
6498 * util/grub.d/00_header.in: Likewise.
6499 * util/grub.d/10_hurd.in: Likewise.
6500 * util/grub.d/10_kfreebsd.in: Likewise.
6501 * util/grub.d/10_linux.in: Likewise.
6502 * util/grub.d/10_netbsd.in: Likewise.
6503 * util/grub.d/10_windows.in: Likewise.
6504 * util/grub.d/20_linux_xen.in: Likewise.
6505 * util/grub.d/30_os-prober.in: Likewise.
6506 * po/POTFILES-shell.in: Regenerate.
6507
6508 2012-02-03 Richard Laager <rlaager@wiktel.com>
6509
6510 * util/grub-mkimage.c (main): Fix format-security warning.
6511 * util/grub-mkrelpath.c (main): Likewise.
6512 * util/grub-probe.c (main): Likewise.
6513
6514 2012-02-03 Richard Laager <rlaager@wiktel.com>
6515
6516 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6517 failure.
6518 Put back lost PRINT_DRIVE.
6519
6520 2012-02-03 Richard Laager <rlaager@wiktel.com>
6521
6522 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6523 (grub_guess_root_devices): Replace strlen with sizeof.
6524 Avoid crash.
6525 (find_root_devices_from_poolname): Remove unused variable.
6526 Handle raidzN.
6527
6528 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 Support install on multi-device filesystems.
6531
6532 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6533 (grub_guess_root_devices): ...this. Return char **. All users updated.
6534 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6535 Removed.
6536 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6537 (find_root_devices_from_poolname): ... here.
6538 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6539 Support zfs-fuse.
6540 (grub_guess_root_device): Rename to ...
6541 (grub_guess_root_devices): ... this. Return char **. All users updated.
6542 * util/grub-install.in: Handle multi-device filesystems.
6543 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6544 argument. All users updated.
6545 Handle multi-device filesystems.
6546 Use 'delim' as separator.
6547 Remove device check to allow filesystems on file.
6548 (main): Support -0 argument. Handle multi-device.
6549 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6550 Fix a cross-device check while on it.
6551 (arguments): Remove root_dev.
6552 (argp_parser): Remove -r.
6553 (main): Remove root_dev.
6554
6555 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6558
6559 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6562 symbol.
6563 Reported by: NODA, Kai <nodakai>.
6564
6565 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 Fix ehci on amd64.
6568
6569 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6570 pointers.
6571 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6572 (grub_ehci_setup_qh): Likewise.
6573 (grub_ehci_find_qh): Likewise.
6574 (grub_ehci_transaction): Likewise.
6575 (grub_ehci_setup_transfer): Likewise.
6576 (grub_ehci_check_transfer): Likewise.
6577 (grub_ehci_portstatus): Likewise.
6578 (grub_ehci_detect_dev): Likewise.
6579 (grub_ehci_transfer_controller_data): New field td_last_phys.
6580 (grub_ehci_setup_transfer): Fill td_last_phys.
6581 (grub_ehci_check_transfer): Use td_last_phys.
6582
6583 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6584
6585 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6586 if no submenu is present.
6587
6588 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6589
6590 CBI support.
6591
6592 * include/grub/usb.h (grub_usbms_protocol_t): New values
6593 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6594 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6595 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6596 (grub_usbms_dev): Add subclass, protocol and intrpt.
6597 Remove in_maxsz and out_maxsz.
6598 (grub_usbms_reset): Rename to ...
6599 (grub_usbms_bo_reset): .. this.
6600 (grub_usbms_cbi_cmd): New function.
6601 (grub_usbms_cbi_reset): Likewise.
6602 (grub_usbms_reset): Likewise.
6603 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6604 (grub_usbms_transfer): Rename to ...
6605 (grub_usbms_transfer_bo): ... this.
6606 (grub_usbms_transfer_cbi): Likewise.
6607 (grub_usbms_transfer): Likewise.
6608
6609 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6610 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6613 the support for the CS5536 modification thereos and few bugfixes.
6614
6615 * grub-core/Makefile.core.def (ehci): New module.
6616 * grub-core/bus/usb/ehci.c: New file.
6617 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6618 port and hubaddr. All users updated.
6619 Save port and hubaddr into dev structure.
6620 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6621 define.
6622 * include/grub/pci.h (grub_dma_phys2virt): New function.
6623 (grub_dma_virt2phys): Likewise.
6624 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6625
6626 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6629 check as some mkfs implementations omit it.
6630
6631 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6634
6635 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6636
6637 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6638 Add new member volname2.
6639 (grub_jfs_label): Use volname2 if available.
6640
6641 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6644 over last_mounted as seen in image generated by mkfs.nilfs2.
6645 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6646
6647 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6650 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6651 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6652
6653 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6656 over the sector.
6657
6658 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6661 subvolume name (by removing a bogus and useless check).
6662
6663 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6666 sizeof while on it.
6667
6668 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6671 (grub_scsi_read_capacity10): ... this.
6672 (grub_scsi_read_capacity16): New function.
6673 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6674 0xffffffff.
6675 Fix off-by-one error.
6676 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6677 64-bit unsigned.
6678 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6679 (grub_scsi_read_capacity10): ... this.
6680 (grub_scsi_read_capacity_data): Rename to ...
6681 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6682 (grub_scsi_read_capacity16): New struct.
6683 (grub_scsi_read_capacity16_data): Likewise.
6684 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6685 grub_scsi_cmd_read_capacity10.
6686 New command grub_scsi_cmd_read_capacity16.
6687
6688 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 SCSI >2TiB support.
6691
6692 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6693 (grub_scsi_write16): Likewise.
6694 (grub_scsi_read): Use read16 when necessary.
6695 (grub_scsi_write): Likewise.
6696 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6697 (grub_scsi_write16): Likewise.
6698 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6699
6700 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6701
6702 SCSI write support (for usbms mainly).
6703
6704 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6705 a const pointer.
6706 (grub_scsi_write): Implement.
6707 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6708
6709 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6710
6711 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6712 variable.
6713
6714 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6717
6718 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * po/POTFILES.in: Regenerate.
6721
6722 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6725 with grub_printf to avoid unnecessary fatal failure.
6726
6727 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6730 (INT_MAX): Likewise.
6731 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6732 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6733 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6734 (strcpy): Likewise.
6735 (strstr): Likewise.
6736 (strchr): Likewise.
6737 (strncpy): Likewise.
6738 (strcat): Likewise.
6739 (strncat): Likewise.
6740 (strcoll): Likewise.
6741 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6742 (GRUB_INT_MAX): Likewise.
6743
6744 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6747 unexpected error.
6748 (optimize_utf8): Likewise.
6749 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6750
6751 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * grub-core/boot/i386/pc/lnxboot.S: Use
6754 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6755 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6756 location.
6757 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6758 definition.
6759 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6760
6761 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6764 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6765 now to avoid double free.
6766 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6767 hostdisk.
6768 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6769 * util/grub-probe.c (escape_of_path): Always return a new copy.
6770 (print_full_name): Escape path.
6771 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6772 Fix hints on abstractions.
6773
6774 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6777 Don't add "root" line if no compatibility hont is available.
6778 Suggested by: Seth Goldberg.
6779
6780 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6783 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6784 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6785 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6786
6787 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6788
6789 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6790
6791 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6792
6793 * util/grub-pe2elf.c (ehdr): Make static.
6794 (shdr): Likewise.
6795 (num_sections): Likewise.
6796 (offset): Likewise.
6797
6798 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 Eliminate ofpath limits and possible overflows.
6801
6802 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6803 (OF_PATH_MAX): Removed.
6804 (MAX_DISK_CAT): New const.
6805 (find_obppath): Use allocated rather than preallocated buffer.
6806 Return result. Argument of_path removed. All users updated.
6807 Add missing fdstat.
6808 (xrealpath): New function.
6809 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6810 Allocate rather than use preallocated buffer. All users updated.
6811 (__of_path_common): Use allocated rather than preallocatecd buffer.
6812 Return result. Argument of_path removed. All users updated.
6813 (vendor_is_ATA): Read only needed part form the file.
6814 (check_sas): Allocate depending on contents rather than fixed.
6815 (main) [STANDALONE]: Handle NULL result.
6816
6817 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6820
6821 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 Cryptodisk write support.
6824
6825 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6826 (grub_cryptodisk_decrypt): Moved logic to ...
6827 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6828 (grub_cryptodisk_write): Implement.
6829 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6830 (grub_util_fd_write): ... this. Make global.
6831 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6832
6833 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 * include/grub/list.h (grub_list_remove): Don't crash if element is
6836 removed twice.
6837
6838 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 Rename ofconsole to console.
6841
6842 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6843 as sysnonym to console.
6844 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6845 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6846 Rename grub_ofconsole_ to grub_console_. All users updated
6847 (grub_console_term_output): Rename "ofconsole" to "console".
6848 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6849 as "console".
6850
6851 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6854 handling.
6855 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6856 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6857 GRUB_DISK_DEVICE_FILE_ID.
6858
6859 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6862 and improve performance.
6863
6864 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6865
6866 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6867 missing ieee1275/ prefix on whole disk.
6868
6869 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6870
6871 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6872 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6873
6874 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6875
6876 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6877
6878 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 Merge common RAID and LVM logic to an abstract diskfilter.
6881 Add LDM support using the same framework.
6882
6883 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6884 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6885 (libgrubmods): Remove grub-core/disk/raid.c and
6886 grub-core/partmap/gpt.c.
6887 * grub-core/Makefile.core.def (ldm): New module.
6888 (raid): Renamed to diskfilter. All users updated.
6889 * grub-core/disk/raid.c: Moved to ...
6890 * grub-core/disk/diskfilter.c: ... here.
6891 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6892 (lv_num): New var.
6893 (find_array): Renamed to ...
6894 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6895 (grub_is_array_readable): Renamed to ...
6896 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6897 (insert_array): New argument id.
6898 (is_node_readable): New function.
6899 (scan_device): Rename to ...
6900 (scan_disk): .. this. Restrict to one disk.
6901 (scan_devices): New function.
6902 (grub_diskfilter_iterate): Support multi-LV.
6903 Skip invisible and nameless LVs.
6904 (grub_diskfilter_memberlist): Support multi-LV.
6905 (grub_diskfilter_read_node): New function.
6906 (grub_raid_read): Most of logic moved to ...
6907 (read_segment): ... here
6908 (read_lv): New function.
6909 (grub_diskfilter_get_vg_by_uuid): New function.
6910 (grub_diskfilter_make_raid): Likewise.
6911 * grub-core/disk/ldm.c: New file.
6912 * grub-core/disk/lvm.c (vg_list): Removed.
6913 (lv_count): Likewise.
6914 (scan_depth): Likewise.
6915 (is_lv_readable): Likewise.
6916 (grub_lvm_getvalue): Advance pointer past the number.
6917 (find_lv): Removed.
6918 (do_lvm_scan): Refactored into ...
6919 (grub_lvm_detect): ... this. Support raid.
6920 (grub_lvm_iterate): Removed.
6921 (grub_lvm_memberlist): Likewise.
6922 (grub_lvm_open): Likewise.
6923 (grub_lvm_close): Likewise.
6924 (read_lv): Likewise.
6925 (read_node): Likewise.
6926 (is_node_readable): Likewise.
6927 (is_lv_readable): Likewise.
6928 (grub_lvm_read): Likewise.
6929 (grub_lvm_write): Likewise.
6930 (grub_lvm_dev): Use diskfilter
6931 (GRUB_MOD_INIT): Likewise.
6932 (GRUB_MOD_FINI): Likewise.
6933 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6934 new interface.
6935 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
6936 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6937 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
6938 grub_diskfilter_read_node.
6939 Fix a bug with xor.
6940 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
6941 grub_diskfilter_read_node.
6942 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
6943 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
6944 (grub_disk_dev_iterate): Move from here...
6945 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
6946 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6947 Make global.
6948 (grub_hostdisk_find_partition_start): Likewise.
6949 (grub_hostdisk_os_dev_to_grub_drive): New function.
6950 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
6951 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
6952 * util/getroot.c (make_device_name): ... here.
6953 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6954 Move to ...
6955 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
6956 * grub-core/kern/emu/hostdisk.c
6957 (convert_system_partition_to_system_disk): Move to ...
6958 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
6959 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
6960 * util/getroot.c (device_is_wholedisk): ... here.
6961 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
6962 * util/getroot.c (find_system_device): ... here.
6963 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
6964 Move to ...
6965 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
6966 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
6967 Move to ...
6968 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
6969 Handle LDM.
6970 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6971 Move to ...
6972 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
6973 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
6974 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
6975 DISKFILTER.
6976 * include/grub/raid.h: Renamed to ...
6977 * include/grub/diskfilter.h: ... this.
6978 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
6979 (GRUB_RAID_LAYOUT_*): Make into array.
6980 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
6981 (grub_diskfilter_vg): New struct.
6982 (grub_diskfilter_pv_id): Likewise.
6983 (grub_raid_member): Removed.
6984 (grub_raid_array): Likewise.
6985 (grub_diskfilter_pv): New struct.
6986 (grub_diskfilter_lv): Likewise.
6987 (grub_diskfilter_segment): Likewise.
6988 (grub_diskfilter_node): Likewise.
6989 (grub_diskfilter_get_vg_by_uuid): New proto.
6990 (grub_raid_register): Inline.
6991 (grub_diskfilter_unregister): Likewise.
6992 (grub_diskfilter_make_raid): New proto.
6993 (grub_diskfilter_vg_register): Likewise.
6994 (grub_diskfilter_read_node): Likewise.
6995 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
6996 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
6997 (grub_util_is_ldm): Likewise.
6998 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
6999 (grub_hostdisk_find_partition_start): Likewise.
7000 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7001 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7002 New definition.
7003 (grub_gpt_partition_map_iterate): New proto.
7004 * include/grub/lvm.h (grub_lvm_vg): Removed.
7005 (grub_lvm_pv): Likewise.
7006 (grub_lvm_lv): Likewise.
7007 (grub_lvm_segment): Likewise.
7008 (grub_lvm_node): Likewise.
7009 * util/getroot.c [...]
7010 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7011 (probe_abstraction): Likewise.
7012 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7013 (main): Remove dead logic.
7014
7015 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 Simplify root device discover and don't fail when trying to open
7018 incorrect devices.
7019
7020 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7021 function.
7022 (get_diskname_from_path): Likewise.
7023 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7024 of iterating.
7025
7026 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7027
7028 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7029
7030 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7031
7032 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7033 pastthe end.
7034
7035 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 * util/grub-install.in: Add missing \.
7038 Reported by: gentoofan
7039
7040 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7041
7042 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7043 (direct_read): Use correct compressed size.
7044 (grub_squash_read_data): Likewise.
7045
7046 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * docs/grub.texi (Platform limitations): New section.
7049 (Platform-specific operations): Likewise.
7050 * docs/grub-dev.texi (Porting): Likewise.
7051
7052 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 IEEE1275 disk write support.
7055
7056 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7057 const void *.
7058 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7059 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7060 and seek loginc to ...
7061 (grub_ofdisk_prepare): ... here.
7062 (grub_ofdisk_write): Implement.
7063
7064 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 ARC disk write support.
7067
7068 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7069 (reopen): New argument writable. All users updated.
7070 Handle required access mode.
7071 (grub_arcdisk_write): Implement.
7072 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7073 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7074
7075 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7076
7077 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7078 (read_sblock): Don't attempt to read superblocks outside the disk size.
7079
7080 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7081
7082 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7083 first superblock to find the second one when possible.
7084
7085 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7086
7087 * util/grub-install.in: Fix an ARC bug.
7088 Print a warning if no platform-specific setup is available.
7089
7090 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7091
7092 Use static allocation rather than scratch pointer in reed_solomon.
7093 It decreases its size significantly and avoids a variable in .text.
7094
7095 * grub-core/lib/reed_solomon.c (scratch): Removed.
7096 (chosenstat): New const or static array.
7097 (sigma): Likewise.
7098 (errpot): Likewise.
7099 (errpos): Likewise.
7100 (sy): Likewise.
7101 (mstat): Likewise.
7102 (errvals): Likewise.
7103 (eqstat): Likewise.
7104 (pol_evaluate): Replace x with log_x argument. All users updated.
7105 (syndroms): Removed.
7106 (gauss_solve): Use statically allocated arrays.
7107 (rs_recover): Likewise.
7108 Calculate syndroms directly.
7109 (decode_block): Use statically allocated arrays.
7110 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7111 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7112
7113 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7114
7115 Eliminate fixed limit on reed solomon decoder length.
7116
7117 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7118 rather than hardcoding the address.
7119 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7120 no_reed_solomon_length.
7121 Move gate_a20 to no-reed-solomon part.
7122 Don't force a particular size of no reed-solomon part.
7123 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7124 Removed.
7125 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7126 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7127
7128 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 * grub-core/commands/wildcard.c (match_files): Handle filenames
7131 without explicit device.
7132 (wildcard_expand): Don't add explicit device if not already present.
7133 * tests/grub_script_echo1.in: Add a new expansion test.
7134
7135 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 Replace single-linked with double-linked lists. It results in more
7138 compact and more efficient code.
7139
7140 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7141 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7142 (grub_list_remove): Moved from here ...
7143 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7144 (grub_prio_list_insert): Set prev.
7145 * include/grub/list.h (grub_list): Add prev. All users updated.
7146
7147 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7148
7149 Handle newer autotools. Add some missing quotes while on it.
7150
7151 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7152 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7153 (pkgdata_DATA): ... here.
7154 * Makefile.util.def (update-grub_lib): Removed.
7155 * conf/Makefile.common (pkglib_DATA): Removed.
7156 (pkglib_SCRIPTS): Likewise.
7157 (pkgdata_DATA): New variable.
7158 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7159 needed.
7160 Add missing quotes.
7161 Remove unused variable while on it.
7162 * tests/util/grub-shell.in: Likewise.
7163 * util/grub-install.in: Likewise.
7164 * util/grub-mkconfig.in: Likewise.
7165 * util/grub-mknetdir.in: Likewise.
7166 * util/grub-mkrescue.in: Likewise.
7167 * util/grub-mkstandalone.in: Likewise.
7168 * util/grub.d/00_header.in: Likewise.
7169 * util/grub.d/10_hurd.in: Likewise.
7170 * util/grub.d/10_illumos.in: Likewise.
7171 * util/grub.d/10_kfreebsd.in: Likewise.
7172 * util/grub.d/10_linux.in: Likewise.
7173 * util/grub.d/10_netbsd.in: Likewise.
7174 * util/grub.d/10_windows.in: Likewise.
7175 * util/grub.d/20_linux_xen.in: Likewise.
7176 * util/grub.d/30_os-prober.in: Likewise.
7177 * util/update-grub_lib.in: Removed.
7178
7179 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7180
7181 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7182 a workaround for intel problem.
7183
7184 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7185 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7186 2012-01-23 pfsmorigo
7187
7188 * util/grub-install.in: Support dd'in into PreP partition.
7189 * util/grub-probe.c (probe): Support discovering partition type.
7190 (main): Support -t msdos_parttype.
7191
7192 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7195 infinite recursion using counter.
7196 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7197 init to skip it if the magic check fails.
7198 (dec_stream_header): Init s->crc32.
7199
7200 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7201 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7202 2012-01-22 Richard Laager <rlaager@wiktel.com>
7203
7204 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7205 All users updated.
7206 (find_bestub): Determine correct size.
7207 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7208 (scan_disk): Align the size down.
7209 Call check pool before find_bestub to have ashift.
7210
7211 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7214 dprintf in no-malloc zone.
7215
7216 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7217
7218 * configure.ac: Add back in test for limits.h.
7219
7220 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7221
7222 Support 4K-sector NTFS.
7223
7224 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7225 (grub_ntfs_data): Remove blocksize.
7226 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7227 Remove data argument. All users updated.
7228
7229 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7232 being in .text to avoid dprel references.
7233 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7234 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7235 (grub_arch_highmemsize): Likewise.
7236 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7237 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7238 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7239
7240 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7243
7244 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7245 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7246
7247 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7250 GRUB_UTIL.
7251 (grub_set_datetime_cmos): Likewise.
7252
7253 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7254
7255 Make XZ compression parameters dependent on target and not host CPU.
7256
7257 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7258 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7259
7260 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7263 set but not used variable.
7264
7265 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7268 created when no uuid support is compiled into mkfs.reiser.
7269
7270 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7273 (utf8_to_macroman): Do the opposite.
7274 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7275
7276 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * configure.ac: Refise build qemu_mips w/o unifont.
7279
7280 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7281
7282 Eliminate grub_min/grub_max prone to overflow usage.
7283
7284 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7285 (poll_nonroot_hub): Likewise.
7286 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7287 (grub_affs_label): Likewise.
7288 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7289 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7290 (grub_hfs_label): Likewise.
7291 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7292 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7293 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7294 (zap_leaf_array_get): Likewise.
7295 (dnode_get_path): Likewise.
7296 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7297 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7298 * grub-core/script/execute.c (grub_script_break): Likewise.
7299 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7300 grub_max.
7301 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7302 * include/grub/misc.h (grub_min): Removed.
7303 (grub_max): Likewise.
7304
7305 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7306
7307 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7308 direct.inode = 0.
7309
7310 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7311
7312 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7313
7314 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7315
7316 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7317
7318 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7321 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7322
7323 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7326 rather than a hack for grub_strncasemap.
7327
7328 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 Support multiple initrds
7331 Note: part of this was accidently committed in r3739.
7332
7333 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7334 initrd.
7335 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7336 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7337 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7338 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7339 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7340
7341 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7344 disks with unknown size.
7345 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7346
7347 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7348
7349 Remove defines pertaining to arbitrary limits not affecting GRUB
7350 anymore.
7351
7352 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7353 (EXT2_MAX_SYMLINKCNT): Likewise.
7354 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7355 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7356 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7357 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7358 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7359 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7360 (DN_MAX_OBJECT_SHIFT): Likewise.
7361 (DN_MAX_OFFSET_SHIFT): Likewise.
7362 (DN_MAX_OBJECT): Likewise.
7363 (DNODES_PER_LEVEL_SHIFT): Likewise.
7364 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7365 (SPA_MAXBLOCKSIZE): Likewise.
7366 (SPA_BLOCKSIZES): Likewise.
7367 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7368 (MZAP_MAX_BLKSZ): Likewise.
7369
7370 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7373 handle NULL appropriately.
7374 Remove MIN.
7375
7376 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 Fix efiemu.
7379
7380 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7381 cpu/types.h.
7382 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7383 * configure.ac: Fix efiemu check.
7384
7385 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7388 grub_probe.
7389 Reported by: adamwill
7390
7391 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7392
7393 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7394
7395 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 Fix handling of wide characters in gfxterm.
7398
7399 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7400 (clear_char): Likewise.
7401 (paint_char): Skip code == NULL chars.
7402 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7403
7404 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * grub-core/normal/charset.c: Move comment to right place.
7407
7408 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7411 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7412 (grub_affs_mount): Revert the correct version checking.
7413
7414 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7415
7416 * docs/grub.texi (Unicode): Mention several other unsupported features.
7417
7418 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7421 case statements as compile-time one.
7422 (direct_read): Prevent spurious warnings.
7423 (grub_squash_read_data): Likewise.
7424
7425 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 Various squash4 fixes and LZO and XZ support.
7428
7429 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7430 Add xzembed source files.
7431 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7432 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7433 (grub_squash_inode): New subtype long_dir.
7434 (SQUASH_TYPE_LONG_DIR): New inode type.
7435 (COMPRESSION): New enum.
7436 (XZBUFSIZ): New const.
7437 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7438 (read_chunk): Use data->decompress.
7439 (zlib_decompress): New function.
7440 (lzo_decompress): Likewise.
7441 (xz_decompress): Likewise.
7442 (squash_mount): Set new data fields.
7443 (grub_squash_iterate_dir): Handle long dir.
7444 (squash_unmount): Free xzdec and xzbuf.
7445 (grub_squash_open): Check ino type.
7446 (direct_read): Stylistic fixes. Use data->decompress.
7447 (grub_squash_read_data): Likewise.
7448 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7449 (get_byte): Likewise.
7450 (grub_zlib_disk_read): Removed.
7451 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7452 (GRUB_POSIX_BOOL_DEFINED): New define.
7453 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7454 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7455 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7456 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7457
7458 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7459
7460 Don't override more informative errors.
7461
7462 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7463 * grub-core/font/font.c (open_section): Likewise.
7464 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7465 filename. Don't override errors.
7466 (grub_cmd_openbsd_ramdisk): Don't override errors.
7467 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7468 (grub_cmd_initrd): Likewise.
7469 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7470 (grub_cmd_initrd): Likewise.
7471 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7472 (grub_cmd_linux): Likewise.
7473 (grub_cmd_initrd): Likewise.
7474 (grub_cmd_payload): Likewise.
7475 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7476 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7477 (grub_cmd_module): Likewise.
7478 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7479 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7480 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7481 (grub_cmd_xnu_mkext): Likewise.
7482 (grub_cmd_xnu_ramdisk): Likewise.
7483 (grub_xnu_check_os_bundle_required): Likewise.
7484 (grub_xnu_load_kext_from_dir): Likewise.
7485 (grub_cmd_xnu_kextdir): Likewise.
7486 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7487
7488 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7491 as 1024 in block size field. Found on one of my test images.
7492 Small optimisation while on it.
7493
7494 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7497 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7498 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7499 performance fixes while on it.
7500 (grub_sfs_close): Fix memory leak while on it.
7501 (grub_sfs_label): Convert Latin1 to UTF-8.
7502
7503 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7504
7505 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7506 space to avoid overflows.
7507 (grub_hfs_label): Convert from macroman to UTF-8.
7508
7509 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7512
7513 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7516
7517 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 * unicode: Import Unicode 6.0 data.
7520
7521 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7524 outside of range.
7525
7526 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7527
7528 Avoid cutting in the middle of UTF-8 character.
7529
7530 * include/grub/charset.h (grub_getend): New function.
7531 * grub-core/script/function.c (grub_script_function_find): Use
7532 grub_getend.
7533 * grub-core/normal/completion.c (add_completion): Likewise.
7534
7535 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7538 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7539 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7540 (GRUB_UNICODE_TAG_END): Likewise.
7541 (GRUB_UNICODE_LAST_VALID): Likewise.
7542
7543 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7544
7545 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7546 len and make it smaller. All users updated.
7547 * util/import_unicode.py: Put length and not end character.
7548 Check length.
7549
7550 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7551
7552 Make better Unicode-compliant and unify some UTF-8 code pathes.
7553
7554 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7555 valid character.
7556 (grub_is_valid_utf8): Use grub_utf8_process.
7557 Check resulting code range.
7558 (grub_utf8_to_ucs4): Use grub_utf8_process.
7559 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7560 valid character.
7561
7562 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7565
7566 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 * docs/grub.texi (Filesystems): Mention AFS.
7569
7570 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 * docs/grub.texi (Filesystems): Clarify restrictions.
7573 (Regexp): Mention non-Unicode regexp behaviour.
7574 (Other): Mention non-Unicode matching behaviour.
7575
7576 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 Make HFS implementation use MacRoman.
7579
7580 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7581 (macroman): New const array.
7582 (macroman_to_utf8): New function.
7583 (utf8_to_macroman): Likewise.
7584 (grub_hfs_find_dir): Use utf8_to_macroman.
7585 (grub_hfs_dir): Use macroman_to_utf8.
7586 Set case_insensitive.
7587
7588 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7591
7592 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7593
7594 Integrate hints into autogeneration scripts.
7595
7596 * docs/grub.texi (Filesystems): Add a hostdisk example.
7597 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7598 (grub-probe): Add ofpath.
7599 * gentpl.py: Remove group nosparc64.
7600 * grub-core/commands/search.c (cache_entry): New struct.
7601 (cache): New var.
7602 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7603 * grub-core/commands/search_wrap.c (options): Add platform-specific
7604 hint options.
7605 (grub_cmd_search): Handle platform-specific hints.
7606 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7607 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7608 (grub_util_biosdisk_data): Likewise.
7609 (grub_util_biosdisk_open): Set device_map.
7610 (read_device_map): Handle "" as indication of no map.
7611 Set device_map.
7612 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7613 (grub_util_biosdisk_get_compatibility_hint): New function.
7614 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7615 * include/grub/emu/hostdisk.h
7616 (grub_util_biosdisk_get_compatibility_hint): New proto.
7617 * util/grub-install.in: Don't call grub-mkdevicemap.
7618 Add platform-specific hint to load.cfg.
7619 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7620 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7621 hints. Set root preliminary to compatibility hint, not to OS name.
7622 * util/grub-probe.c (PRINT_*): Add hints.
7623 (print): Make static.
7624 (escape_of_path): New function.
7625 (guess_bios_drive): Likewise.
7626 (guess_efi_drive): Likewise.
7627 (guess_baremetal_drive): Likewise.
7628 (print_full_name): Likewise.
7629 (probe): Handle hints.
7630 (main): Likewise.
7631 * util/ieee1275/devicemap.c: Removed.
7632 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7633 updated.
7634 (grub_util_devname_to_ofpath): Return NULL on failure.
7635
7636 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7637 resource leak.
7638 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7639
7640 * po/POTFILES.in: Regenerated.
7641
7642 Allow purely long options
7643
7644 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7645 (SHORT_ARG_USAGE): Likewise.
7646 (grub_arg_show_help): Compare opt with help_options.
7647 (parse_option): Receive opt as argument. If makes big simplificatons.
7648 All users updated
7649
7650 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7653 Restructure to avoid warning.
7654
7655 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 * util/grub-install.in: Account for possible escaped comma in device
7658 name.
7659
7660 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7663 channel.
7664
7665 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7668 allocation and zero-setting.
7669 (grub_ieee1275_get_devname): Check that alias is complete.
7670
7671 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7672
7673 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7674 unaligned segments.
7675
7676 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7677
7678 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7679 prefix.
7680 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7681 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7682 Add ieee1275 prefix.
7683
7684 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7685
7686 * docs/grub.texi (Filesystems): Update.
7687
7688 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 Support odc, newc and bigendian cpio formats.
7691
7692 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7693 * grub-core/Makefile.core.def (newc): New module.
7694 (odc): Likewise.
7695 (cpio_be): Likewise.
7696 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7697 (MAGIC): Likewise.
7698 (MAGIC2): Likewise.
7699 (head) [MODE_ODC]: Adapt for the format.
7700 (head) [MODE_NEWC]: Likewise.
7701 (head) [!MODE_*]: Write fields of interest as arrays.
7702 (MAGIC_USTAR): Removed.
7703 (read_number) [MODE_NEWC]: Change to hex.
7704 (read_number) [!MODE_*]: Parse binary arrays.
7705 (grub_cpio_find_file): Factor out the code for better structure and
7706 always use read_number.
7707 (grub_cpio_mount): Use MAGIC and MAGIC2.
7708 (grub_cpio_dir): Exit on first hook non-0 return.
7709 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7710 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7711 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7712 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7713 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7714 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7715 * grub-core/fs/newc.c: New file.
7716 * grub-core/fs/odc.c: Likewise.
7717 * grub-core/fs/cpio_be.c: Likewise.
7718
7719 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 Fix handling of tar numbers occupying the whole field.
7722
7723 * grub-core/fs/cpio.c (read_number): New function.
7724 (grub_cpio_find_file): Use read_number instead of strtoull.
7725
7726 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7729 occupying the whole field size.
7730
7731 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7732
7733 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7734
7735 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7738
7739 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7740
7741 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7742 TARGET_IMG_LDFLAGS.
7743
7744 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7745
7746 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7747 (mountinfo_entry): Increase the field size to take escaping into
7748 account.
7749 (find_root_device_from_libzfs): Add one byte to size of strings for
7750 security.
7751
7752 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7755 an assert.
7756 * util/grub-setup.c (setup): Likewise.
7757
7758 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7761 _LzmaDecodeA.
7762
7763 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 * docs/grub.texi (Internationalisation): New section.
7766
7767 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 * docs/grub.texi (Loopback booting): New section.
7770
7771 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7772
7773 * util/grub-mkstandalone.in: Fix minor typo errors.
7774
7775 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7778
7779 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7780 net/icmp.c and net/icmp6.c.
7781 (http): New module.
7782 (priority_queue): Likewise.
7783 * grub-core/io/bufio.c: Rewritten.
7784 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7785 TYPE_WITH_CONFIGFILE_OPTION.
7786 (legacy_commands): Add bootp and dhcp.
7787 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7788 (grub_legacy_parse): Likewise.
7789 * grub-core/lib/priority_queue.c: New file.
7790 * grub-core/net/arp.c: Add missing license header.
7791 (arp_find_entry): Removed.
7792 (arp_find_entry): Likewise.
7793 (grub_net_arp_resolve): Rename to ...
7794 (grub_net_arp_send_request): ...this.
7795 (grub_net_arp_receive): New card argument.
7796 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7797 Set router and DNS server.
7798 (grub_net_configure_by_dhcp_ack): Handle routing information.
7799 (grub_cmd_bootp): Set checksum.
7800 (grub_bootp_init): Remove net_dhcp.
7801 * grub-core/net/dns.c: New file.
7802 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7803 completion.
7804 (get_card_packet): Handle allocation.
7805 (grub_efinet_findcards): Set mtu.
7806 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7807 (get_card_packet): Handle allocation.
7808 (emucard): Set mtu.
7809 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7810 (GRUB_MOD_INIT): Set mtu.
7811 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7812 mtu.
7813 (get_card_packet): Handle allocation.
7814 (grub_ofnet_findcards): Set mtu.
7815 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7816 assert.
7817 (grub_net_recv_ethernet_packet): Handle IPv6.
7818 * grub-core/net/http.c: New file.
7819 * grub-core/net/icmp.c: Likewise.
7820 * grub-core/net/icmp6.c: Likewise.
7821 * grub-core/net/ip.c (ip6addr): New type.
7822 (ip6hdr): Likewise.
7823 (reassemble): Likewise.
7824 (cmp): New function.
7825 (reassembles): New variable.
7826 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7827 (id): New variable.
7828 (send_fragmented): New function.
7829 (grub_net_send_ip_packet): Rename to ...
7830 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7831 Handle non-UDP.
7832 (grub_net_recv_ip_packets): Rename to ...
7833 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7834 (free_rsm): New function.
7835 (free_old_fragments): Likewise.
7836 (grub_net_recv_ip4_packets): New function.
7837 (grub_net_send_ip6_packet): Likewise.
7838 (grub_net_send_ip_packet): Likewise.
7839 (grub_net_recv_ip6_packets): Likewise.
7840 (grub_net_recv_ip_packets): Likewise.
7841 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7842 (LINK_LAYER_CACHE_SIZE): New const.
7843 (link_layer_find_entry): New function.
7844 (grub_net_link_layer_add_address): Likewise.
7845 (grub_net_link_layer_resolve_check): Likewise.
7846 (grub_net_link_layer_resolve): Likewise.
7847 (grub_net_ipv6_get_slaac): Likewise.
7848 (grub_net_ipv6_get_link_local): Likewise.
7849 (grub_cmd_ipv6_autoconf): Likewise.
7850 (parse_ip): Handle one number representation.
7851 (parse_ip6): New functoion.
7852 (match_net): Handle IPv6.
7853 (grub_net_resolve_address): Handle IPv6 and DNS.
7854 (grub_net_resolve_net_address): Handle IPv6.
7855 (route_cmp): New function.
7856 (grub_net_route_address): Find best route.
7857 (grub_net_addr_to_str): Handle IPv6.
7858 (grub_net_addr_cmp): New function.
7859 (grub_net_add_addr): Register local route.
7860 (print_net_address): Handle net address.
7861 (grub_net_poll_cards): Retransmit TCP.
7862 (grub_net_poll_cards_idle_real): Likewise.
7863 (have_ahead): New function.
7864 (grub_net_seek_real): Use underlying seek.
7865 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7866 * grub-core/net/tcp.c: New file.
7867 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7868 (cmp): New function.
7869 (ack): Likewise.
7870 (tftp_receive): Handle unordered input.
7871 (destroy_pq): New function.
7872 (tftp_close): Close pq.
7873 * grub-core/net/udp.c: Put missing license header.
7874 (grub_net_udp_socket): New function.
7875 (udp_socket_register): Likewise.
7876 (grub_net_udp_close): Likewise.
7877 (grub_net_recv_udp_packet): Check checksum.
7878 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7879 * include/grub/misc.h (grub_memchr): New function.
7880 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7881 (grub_net_card_driver): Return buf in recv.
7882 (grub_net_slaac_mac_list): New struct.
7883 (grub_network_level_protocol_id): Add ipv6.
7884 (grub_net_network_level_addr): Likewise.
7885 (grub_net_network_level_net_addr): Likewise.
7886 (grub_net_app_protocol): Add seek.
7887 (grub_net_socket): Removed.
7888 (grub_net_sockets): Likewise.
7889 (grub_net_socket_register): Likewise.
7890 (grub_net_socket_unregister): Likewise.
7891 (FOR_NET_SOCKETS): Likewise.
7892 (grub_net_add_addr): Add const.
7893 (GRUB_NET_BOOTP_*): New enum.
7894 (grub_net_addr_cmp): New proto.
7895 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7896 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7897 (grub_net_hwaddr_to_str): NEw proto.
7898 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7899 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7900 (grub_dns_init): New proto.
7901 (grub_dns_fini): Likewise.
7902 (grub_net_tcp_retransmit): Likewise.
7903 (grub_net_link_layer_add_address): Likewise.
7904 (grub_net_link_layer_resolve_check): Likewise.
7905 (grub_net_link_layer_resolve): Likewise.
7906 (grub_net_dns_lookup): Likewise.
7907 (grub_net_add_dns_server): Likewise.
7908 (grub_net_remove_dns_server): Likewise.
7909 (GRUB_NET_TRIES): New const.
7910 (GRUB_NET_INTERVAL): Likewise.
7911 * include/grub/net/arp.h: Mostly rewritten.
7912 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7913 * include/grub/net/ip.h: Mostly rewritten.
7914 * include/grub/net/netbuff.h: Indent.
7915 * include/grub/net/tcp.h: New file.
7916 * include/grub/net/udp.h: Mostly rewritten.
7917 * include/grub/priority_queue.h: New file.
7918 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7919 (grub_swap_bytes64_compile_time): Likewise.
7920 (grub_cpu_to_be16_compile_time): Likewise.
7921 (grub_cpu_to_be32_compile_time): Likewise.
7922 (grub_cpu_to_be64_compile_time): Likewise.
7923 (grub_be_to_cpu64_compile_time): Likewise.
7924
7925 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7926
7927 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7928 UINT_TO_PTR with cast.
7929
7930 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7931
7932 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7933 don't use them.
7934
7935 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7936
7937 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
7938 already there.
7939
7940 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7941
7942 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
7943 confusing ipxe.
7944
7945 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7946
7947 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
7948 Add missing const attribute.
7949 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
7950 Likewise.
7951 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
7952 Likewise.
7953
7954 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7955
7956 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
7957 misaligned access.
7958 (serpent_setkey): Likewise.
7959 (serpent_encrypt_internal): Likewise.
7960 (serpent_decrypt_internal): Likewise.
7961 (serpent_encrypt): Don't put an alignment-increasing cast.
7962 (serpent_decrypt): Likewise.
7963 (serpent_test): Likewise.
7964
7965 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7966
7967 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
7968
7969 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7970
7971 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
7972
7973 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
7974 grub_addr_t casts.
7975 (PTR_TO_UINT64): Likewise.
7976 (PTR_TO_UINT32): Likewise.
7977
7978 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7979
7980 * util/grub-mkimage.c (generate_image): Decrease the higher limit
7981 because of stack.
7982 * util/grub-setup.c (setup): Don't add redundancy past the higher load
7983 limit.
7984
7985 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
7988 text_width > available width a bit more gracefully.
7989
7990 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7991
7992 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
7993 current address calculation.
7994
7995 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
7998 stack.
7999 (encode_block): Likewise.
8000
8001 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8002
8003 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8004 certainety.
8005
8006 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8007
8008 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8009 non-RS part to avoid RS messing with GDT.
8010 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8011 Increase to suit in realmode routines.
8012
8013 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8014
8015 * grub-core/kern/i386/realmode.S: Increase alignment.
8016 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8017
8018 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8021 be deterministic.
8022 (syndroms): Compute 0 syndrom.
8023 (rs_recover): Use 0 syndrom.
8024
8025 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8028
8029 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8032 brackets.
8033
8034 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8035
8036 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8037 account.
8038 (get_top_pad): Likewise.
8039 (get_right_pad): Likewise.
8040 (get_bottom_pad): Likewise.
8041
8042 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8045
8046 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8047
8048 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8049 attribute as the structure isn't guaranteed to be properly aligned.
8050 (grub_efi_pci_device_path): Likewise.
8051 (grub_efi_pccard_device_path): Likewise.
8052 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8053 specify the size of `memory_type'.
8054 (grub_efi_vendor_device_path): Likewise.
8055 (grub_efi_controller_device_path): Likewise.
8056 (grub_efi_acpi_device_path): Likewise.
8057 (grub_efi_expanded_acpi_device_path): Likewise.
8058 (grub_efi_atapi_device_path): Likewise.
8059 (grub_efi_scsi_device_path): Likewise.
8060 (grub_efi_fibre_channel_device_path): Likewise.
8061 (grub_efi_1394_device_path): Likewise.
8062 (grub_efi_usb_device_path): Likewise.
8063 (grub_efi_usb_class_device_path): Likewise.
8064 (grub_efi_i2o_device_path): Likewise.
8065 (grub_efi_mac_address_device_path): Likewise.
8066 (grub_efi_ipv4_device_path): Likewise.
8067 (grub_efi_ipv6_device_path): Likewise.
8068 (grub_efi_infiniband_device_path): Likewise.
8069 (grub_efi_uart_device_path): Likewise.
8070 (grub_efi_vendor_messaging_device_path): Likewise.
8071 (grub_efi_hard_drive_device_path): Likewise.
8072 (grub_efi_cdrom_device_path): Likewise.
8073 (grub_efi_vendor_media_device_path): Likewise.
8074 (grub_efi_file_path_device_path): Likewise.
8075 (grub_efi_protocol_device_path): Likewise.
8076 (grub_efi_piwg_device_path): Likewise.
8077 (grub_efi_bios_device_path): Likewise.
8078
8079 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8080
8081 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8082 (grub_ucs4_to_utf8_alloc): Likewise.
8083 (grub_ucs4_to_utf8): Likewise.
8084 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8085 (grub_ucs4_to_utf8_alloc): Likewise.
8086
8087 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 AFFS never uses unicode.
8090
8091 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8092 (grub_latin1_to_utf8): New inline function.
8093 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8094
8095 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8096
8097 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8098 overflow.
8099
8100 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8101
8102 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8103 (grub_squash_dirent_header): Likewise.
8104 (read_chunk): Don't double swap.
8105 (grub_squash_iterate_dir): Fix swap sizes.
8106
8107 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8110
8111 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8112
8113 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8114 (grub_hfs_iterate_dir): Likewise.
8115
8116 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8117
8118 Fix video on platforms where unaligned access is forbidden.
8119 Make several optimisations while on it.
8120
8121 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8122 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8123 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8124 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8125 Disable.
8126 (grub_video_fbblit_replace_16bit_1bit):
8127 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8128 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8129 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8130 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8131 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8132 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8133 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8134 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8135 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8136 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8137 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8138 (grub_video_fbblit_replace_index_RGB888): Likewise.
8139 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8140 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8141 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8142 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8143 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8144 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8145 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8146 Disable.
8147 (grub_video_fbblit_blend_XXX565_1bit):
8148 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8149 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8150 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8151 void *.
8152 * grub-core/video/fb/video_fb.c (common_blitter)
8153 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8154 (grub_video_fb_create_render_target_from_pointer)
8155 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8156 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8157 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8158 definition.
8159 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8160
8161 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8162
8163 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8164 HH22 and HM10 relocations.
8165
8166 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8167
8168 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8169
8170 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8171
8172 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8173 allocation succeeded.
8174
8175 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8178 argument a u8 pointer. All users updated.
8179 Handle unaligned buffers.
8180
8181 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8182
8183 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8184 add_part to workaround compiler bug.
8185
8186 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8187
8188 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8189
8190 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8193 Reserve alignment invariants.
8194 (grub_multiboot_load): Likewise.
8195 (retrieve_video_parameters): Likewise.
8196 (grub_multiboot_make_mbi): Likewise.
8197
8198 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8199
8200 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8201 incorrect pointer.
8202
8203 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8204
8205 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8206 (grub_pata_pio_write): Likewise.
8207
8208 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8209
8210 Add noreturn attributes and remove unreachable code.
8211
8212 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8213 code.
8214 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8215 code. Mark as noreturn.
8216 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8217 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8218 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8219 unreachable code.
8220 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8221 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8222 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8223 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8224 * include/grub/kernel.h (grub_main): Mark as noreturn.
8225 * include/grub/reader.h (grub_rescue_run): Likewise.
8226
8227 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8228
8229 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8230 redundant declaration.
8231
8232 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8233
8234 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8235 redundant declaration.
8236 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8237
8238 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8241 to ensure alignment.
8242 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8243 alignment. Ensure tmp alignment.
8244 (grub_cmd_hdparm): Ensure buf alignment.
8245 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8246 to ensure alignment.
8247 (grub_ata_dumpinfo): Ensure text alignment.
8248 (grub_atapi_identify): Preserve alignment invariant.
8249 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8250
8251 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8252
8253 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8254 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8255 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8256 * include/grub/misc.h (grub_reboot)
8257 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8258 (grub_halt) [__mips__]: Likewise.
8259
8260 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8263 Remove redundant declaration.
8264 (grub_mmap_get_post64): Likewise.
8265 (grub_mmap_get_upper): Likewise.
8266 (grub_mmap_get_lower): Likewise.
8267
8268 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8271 uint32_t * to ensure alignment.
8272 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8273
8274 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8277 uint16_t * to ensure alignment.
8278 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8279 alignment.
8280
8281 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8284 to ensure alignment.
8285 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8286
8287 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8290 Handle unaligned pointers.
8291 (u32at): Likewise.
8292 (u64at): Likewise.
8293 (fixup): Use byte access instead of v16at.
8294 (find_attr): Fix imporper usage of v32at.
8295 (read_data): Likewise.
8296 (list_file): Handle byte-swapping and unaligned strings.
8297 (grub_ntfs_label): Likewise.
8298
8299 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8302 as it's not necessarily aligned.
8303
8304 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8305
8306 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8307 redundant declaration.
8308 (grub_serial_init): Likewise.
8309 (grub_terminfo_init): Likewise.
8310
8311 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8312
8313 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8314 function.
8315 (ZAP_HASH_IDX): Likewise.
8316 (ZAP_LEAF_HASH_SHIFT): Likewise.
8317 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8318 (LEAF_HASH): Likewise.
8319 (ZAP_LEAF_NUMCHUNKS): Likewise.
8320 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8321 alignment invariants. Return pointer. All users updated.
8322 (ZAP_LEAF_ENTRY): Make into inline function.
8323 (NBBY): Removed.
8324 (xor): LIkewise.
8325 (xor_out): Use grub_crypto_xor.
8326 (dnode_get_path): Use grub_get_unaligned.
8327 (nvlist_find_value): Likewise.
8328 (grub_zfs_nvlist_lookup_uint64): Likewise.
8329 (grub_zfs_nvlist_lookup_string): Likewise.
8330 (get_nvlist_size): Likewise.
8331 (grub_zfs_open): Likewise.
8332 (fill_fs_info): Likewise.
8333 (grub_zfs_dir): Likewise.
8334 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8335 alignment invariants.
8336 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8337 necessarily aligned.
8338
8339 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8340
8341 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8342
8343 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8346 arithmetic to conserve alignment invariants.
8347
8348 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8349
8350 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8351 redundant declaration.
8352 (grub_efiemu_mm_obtain_request): Likewise.
8353 (grub_efiemu_prepare): Likewise.
8354
8355 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8358 to match types.
8359
8360 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8361
8362 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8363 case of aunaligned recptr.
8364 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8365 alignment.
8366 (grub_hfsplus_btree_search): Handle unaligned index.
8367
8368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8371 to get freetag and skip.
8372
8373 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8376 array.
8377 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8378 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8379
8380 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8381
8382 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8383 name for checksum and fix allocation algorithm.
8384
8385 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8386
8387 * include/grub/types.h (grub_properly_aligned_t): New type.
8388 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8389 (grub_get_unaligned16): Add explicit casts.
8390 (grub_get_unaligned32): Likewise.
8391 (grub_get_unaligned64): Likewise.
8392 (grub_set_unaligned16): New function.
8393 (grub_set_unaligned32): Likewise.
8394
8395 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8396
8397 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8398
8399 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8402 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8403 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8404
8405 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8408 conditionals.
8409
8410 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8411
8412 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8413 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8414
8415 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8416
8417 Unify and improve RAID and crypto xor.
8418
8419 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8420 changed to grub_crypto_xor
8421 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8422 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8423 Use bigger types when possible.
8424
8425 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 * grub-core/disk/raid.c (scan_devices): Fix condition.
8428
8429 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8432 Make name a const ptr.
8433
8434 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8435
8436 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8437 first argument a const pointer.
8438 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8439 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8440 proto.
8441 (grub_children_iterate): Likewise.
8442 (grub_machine_mmap_iterate): Remove redundant declaration.
8443
8444 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8447 (grub_cmd_acpi) [!x86]: Disable EBDA.
8448
8449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 Enable UTF8 in gnulib regexp.
8452
8453 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8454 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8455 (isupper): Use grub_isupper.
8456 (isascii): New inline function.
8457 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8458 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8459 * grub-core/normal/charset.c (grub_utf8_process): New function.
8460 (grub_utf8_to_utf16): Use grub_utf8_process.
8461 (grub_encode_utf8_character): New function.
8462 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8463 * include/grub/charset.h (grub_utf8_process): New declaration.
8464 (grub_encode_utf8_character): Likewise.
8465 * include/grub/misc.h (grub_islower): New inline function.
8466 (grub_isupper): Likewise.
8467 (grub_strchrsub): Moved down to fix the definitions.
8468
8469 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8470
8471 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8472 specification.
8473
8474 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 * include/grub/loader.h (grub_loader_register_preboot_hook):
8477 Use struct preboot * and not void * for handle. All users updated.
8478 (grub_loader_unregister_preboot_hook): Likewise.
8479
8480 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8483 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8484 UTF-16-BE. All users updated.
8485 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8486 (grub_hfsplus_iterate_dir): Likewise.
8487 (grub_hfsplus_label): Likewise.
8488
8489 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8492
8493 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 Add missing const qualifiers.
8496
8497 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8498 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8499 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8500 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8501 (grub_lvm_check_flag): Likewise.
8502 * grub-core/efiemu/i386/coredetect.c
8503 (grub_efiemu_get_default_core_name): Likewise
8504 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8505 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8506 * grub-core/fs/ntfs.c (fixup): Likewise.
8507 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8508 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8509 (fzap_lookup): Likewise.
8510 (zap_lookup): Likewise.
8511 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8512 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8513 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8514 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8515 (grub_freebsd_add_meta_module): Likewise.
8516 (grub_cmd_freebsd_module): Likewise.
8517 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8518 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8519 (grub_xnu_writetree_get_size): Likewise.
8520 (grub_xnu_writetree_toheap_real): Likewise.
8521 (grub_xnu_find_key): Likewise.
8522 (grub_xnu_create_key): Likewise.
8523 (grub_xnu_create_value): Likewise.
8524 (grub_xnu_register_memory): Likewise.
8525 (grub_xnu_check_os_bundle_required): Likewise.
8526 (grub_xnu_scan_dir_for_kexts): Likewise.
8527 (grub_xnu_load_kext_from_dir): Likewise.
8528 * grub-core/normal/color.c (color_list): Likewise.
8529 * grub-core/normal/completion.c (current_word): Likewise.
8530 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8531 * grub-core/term/serial.c (grub_serial_find): Likewise.
8532 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8533 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8534 Likewise.
8535 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8536 (grub_freebsd_add_meta_module): Likewise.
8537 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8538 * include/grub/net.h (grub_net_card_driver): Likewise.
8539 (grub_net_card): Likewise.
8540 (grub_net_app_protocol): Likewise.
8541 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8542 * include/grub/serial.h (grub_serial_find): Likewise.
8543 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8544 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8545 (grub_xnu_create_value): Likewise.
8546 (grub_xnu_find_key): Likewise.
8547 (grub_xnu_scan_dir_for_kexts): Likewise.
8548 (grub_xnu_load_kext_from_dir): Likewise.
8549
8550 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8551 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8552 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8553 Moved from here ...
8554 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8555
8556 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8557
8558 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8559
8560 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8561
8562 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8563 (read_device): Fix size calculation.
8564
8565 2011-11-25 Robert Millan <rmh@gnu.org>
8566
8567 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8568 (find_root_device_from_libzfs): Add zpool output parser to be used
8569 as fallback when libzfs isn't available.
8570
8571 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8572
8573 * po/Makefile.in.in: Add missing escape-continuation.
8574
8575 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8578
8579 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8582
8583 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8586
8587 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8588
8589 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8590
8591 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8592
8593 * grub-core/lib/adler32.c: Add missing license specification.
8594 * grub-core/lib/crc64.c: Likewise.
8595 * grub-core/loader/i386/pc/plan9.c: Likewise.
8596 * grub-core/partmap/plan.c: Likewise.
8597
8598 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8599
8600 Add facility to debug GRUB with gdb under qemu.
8601
8602 * grub-core/gdb_grub.in: New file.
8603 * grub-core/gmodule.pl.in: Likewise.
8604 * grub-core/Makefile.core.def (gmodule.pl): New script.
8605 (gdb_grub): Likewise.
8606
8607 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * util/grub-mount.c (argp_parser): Accept relative pathes.
8610 * util/grub-fstest.c (argp_parser): Likewise.
8611
8612 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 Plan9 support.
8615
8616 * Makefile.util.def (libgrubmods): Add
8617 grub-core/partmap/plan.c.
8618 * docs/grub.texi: Notice Plan9 support.
8619 * grub-core/Makefile.core.def (plan9): New module.
8620 (part_plan): Likewise.
8621 * grub-core/loader/i386/pc/plan9.c: New file.
8622 * grub-core/partmap/plan.c: Likewise.
8623 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8624 define.
8625 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8626 * include/grub/mm.h (grub_extend_alloc): New inline function.
8627
8628 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8629
8630 Make Reed-Solomon faster by using power of generator representation of
8631 GF(256)*.
8632
8633 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8634 (gf_double_t): Likewise.
8635 (gf_invert): Removed.
8636 (gf_powx): New array.
8637 (gf_powx_inv): Likewise.
8638 (scratch): Move higher.
8639 (gf_reduce): Removed.
8640 (gf_mul): Use powx.
8641 (gf_invert): Likewise.
8642 (init_inverts): Replaced with ...
8643 (init_powx): ...this. All users updated.
8644 (pol_evaluate): Replace multiplications with additions.
8645 (rs_encode): Likewise.
8646 (gauss_eliminate): Call gf_invert.
8647 (grub_reed_solomon_add_redundancy): Call init_powx.
8648 (grub_reed_solomon_recover): Call init_powx unconditionally.
8649
8650 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8651
8652 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8653
8654 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8657 disk->partiton for safety.
8658
8659 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8660
8661 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8662 Fix a memory leak.
8663 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8664
8665 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8666
8667 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8668
8669 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8670
8671 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8672
8673 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 Fix spaces handling in proc/self/mountinfo.
8676
8677 * util/getroot.c (unescape): New function.
8678 (grub_find_root_device_from_mountinfo): Use unescape.
8679
8680 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 Support ZFS embedding.
8683
8684 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8685 (grub_zfs_fs): Register grub_zfs_embed.
8686
8687 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8688
8689 Fix MIPS compilation.
8690
8691 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8692 * include/grub/offsets.h: Rename decompressor fields from
8693 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8694 * util/grub-mkimage.c (image_targets): Use new names.
8695
8696 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8697
8698 Defer multiboot device parsing until we're in compressed part.
8699
8700 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8701 bsd_part. setdevice has fallen into disuse.
8702 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8703 (bsd_part): Likewise.
8704 (boot_dev): New variable.
8705 (multiboot_trampoline): Don't parse multiboot device.
8706 Pass multiboot device in %edx.
8707 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8708 grub_boot_device.
8709 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8710 Likewise.
8711 * grub-core/kern/i386/pc/startup.S: Save edx.
8712 (grub_boot_drive): Removed.
8713 (grub_install_dos_part): Likewise.
8714 (grub_install_bsd_part): Likewise.
8715 (grub_boot_device): New variable.
8716 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8717 (grub_install_bsd_part): Likewise.
8718 (grub_boot_drive): Likewise.
8719 (grub_boot_device): New variable.
8720 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8721 Removed.
8722 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8723 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8724 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8725 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8726 * util/grub-install.in: Remove redundant condition.
8727
8728 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 Fix bug introduced by previous commit.
8731
8732 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8733
8734 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8735
8736 Use decompressors framework on i386-pc. It increases core size
8737 by 46 bytes but improves compatibility and maintainability.
8738
8739 * grub-core/Makefile.core.def (lzma_decompress): New image.
8740 (kernel): Add i386_pc_ldflags.
8741 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8742 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8743 to real_to_prot, prot_to_real and device info.
8744 * include/grub/offsets.h: Renamed decompressor offsets.
8745 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8746 (image_target_desc): Remove raw_size and rename decompressor fields.
8747 (compress_kernel): Handle lzma.
8748 (generate_image): Handle decompressors on i386-pc.
8749
8750 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * configure.ac: Add -fno-asynchronous-unwind-tables.
8753
8754 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8755
8756 Move assembly code to C by using intwrap. It increases core size
8757 by 88 bytes but improves compatibility and maintainability.
8758
8759 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8760 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8761 ... here. Translated to C.
8762 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8763 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8764 ... here. Translated to C.
8765 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8766 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8767 ... here. Translated to C.
8768 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8769 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8770 ... here. Translated to C.
8771 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8772 * grub-core/term/i386/pc/console.c (grub_console_cls):
8773 ... here. Translated to C.
8774 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8775 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8776 ... here. Translated to C.
8777 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8778 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8779 Translated to C.
8780 * grub-core/term/i386/pc/console.c (int10_9): New function.
8781 (grub_console_putchar): Likewise.
8782 * include/grub/i386/pc/console.h: Removed the not anymore shared
8783 functions.
8784
8785 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 Move grub_chainloader_real_boot out of the kernel.
8788
8789 * grub-core/Makefile.am: Remove machine/loader.h.
8790 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8791 Removed.
8792 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8793 variable.
8794 (grub_relocator16_keep_a20_enabled): Likewise.
8795 (grub_relocator16_boot): Fill new variables.
8796 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8797 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8798 relocator.
8799 (grub_chainloader_unload): Likewise.
8800 (grub_chainloader_cmd): Likewise.
8801 * include/grub/i386/pc/loader.h: Removed.
8802 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8803 and esi. All initialisers updated.
8804
8805 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8806 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8807
8808 * Makefile.util.def (grub-mount): New util.
8809 * .bzrignore: Add grub-mount.
8810 * configure.ac: Check for fuse and enable grub-mount if available.
8811 * docs/man/grub-mount.h2m: New file.
8812 * util/grub-mount.c: Likewise.
8813
8814 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8815
8816 * grub-core/commands/efi/fixvideo.c: Gettextize.
8817 * grub-core/commands/hashsum.c: Likewise.
8818 * grub-core/commands/i386/cmostest.c: Likewise.
8819 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8820 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8821 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8822 * grub-core/commands/lsmmap.c: Likewise.
8823 * grub-core/commands/menuentry.c: Likewise.
8824 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8825 * grub-core/commands/setpci.c: Likewise.
8826 * grub-core/loader/i386/bsd.c: Likewise.
8827 * grub-core/loader/i386/linux.c: Likewise.
8828 * util/getroot.c: Likewise.
8829 * util/grub-editenv.c: Likewise.
8830 * util/grub-fstest.c: Likewise.
8831 * util/grub-mkfont.c: Likewise.
8832 * util/grub-mkimage.c: Likewise.
8833 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8834 * util/grub-pe2elf.c: Likewise.
8835 * util/grub-probe.c: Likewise.
8836 * util/grub-setup.c: Likewise.
8837 * util/ieee1275/ofpath.c: Likewise.
8838 * util/misc.c: Likewise.
8839 * util/raid.c: Likewise.
8840
8841 2011-11-11 Robert Millan <rmh@gnu.org>
8842
8843 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8844 __attribute__((unused)) from `os_dev', which *is* being used.
8845
8846 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8849 forgotten define.
8850 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8851 GRUB_IA64_DL_GOT_ALIGN.
8852 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8853 GRUB_IA64_DL_TRAMP_ALIGN.
8854
8855 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 Replace grub_fatal with normal errors in i386 linux loader.
8858
8859 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8860 (allocate_pages): Check find_efi_mmap_size return value.
8861 (grub_e820_add_region): Return error.
8862 (grub_linux_boot): Check mmap return value.
8863
8864 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * grub-core/commands/acpihalt.c: Gettextized.
8867 * grub-core/commands/cacheinfo.c: Likewise.
8868 * grub-core/commands/cmp.c: Likewise.
8869 * grub-core/commands/efi/loadbios.c: Likewise.
8870 * grub-core/commands/gptsync.c: Likewise.
8871 * grub-core/commands/ieee1275/suspend.c: Likewise.
8872 * grub-core/commands/legacycfg.c: Likewise.
8873 * grub-core/commands/memrw.c: Likewise.
8874 * grub-core/commands/minicmd.c: Likewise.
8875 * grub-core/commands/parttool.c: Likewise.
8876 * grub-core/commands/time.c: Likewise.
8877 * grub-core/commands/videoinfo.c: Likewise.
8878 * grub-core/disk/geli.c: Likewise.
8879 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8880 * grub-core/disk/luks.c: Likewise.
8881 * grub-core/disk/lvm.c: Likewise.
8882 * grub-core/font/font_cmd.c: Likewise.
8883 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8884 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8885 * grub-core/gfxmenu/view.c: Likewise.
8886 * grub-core/kern/emu/hostdisk.c: Likewise.
8887 * grub-core/kern/emu/main.c: Likewise.
8888 * grub-core/kern/emu/misc.c: Likewise.
8889 * grub-core/kern/emu/mm.c: Likewise.
8890 * grub-core/kern/mips/arc/init.c: Likewise.
8891 * grub-core/kern/mips/loongson/init.c: Likewise.
8892 * grub-core/kern/partition.c: Likewise.
8893 * grub-core/lib/i386/halt.c: Likewise.
8894 * grub-core/lib/mips/arc/reboot.c: Likewise.
8895 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8896 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8897 * grub-core/loader/i386/xnu.c: Likewise.
8898 * grub-core/loader/multiboot.c: Likewise.
8899 * grub-core/net/bootp.c: Likewise.
8900 * grub-core/net/net.c: Likewise.
8901 * grub-core/normal/term.c: Likewise.
8902 * grub-core/partmap/bsdlabel.c: Likewise.
8903 * grub-core/parttool/msdospart.c: Likewise.
8904 * grub-core/term/gfxterm.c: Likewise.
8905 * grub-core/term/terminfo.c: Likewise.
8906 * grub-core/video/i386/pc/vbe.c: Likewise.
8907 * util/grub-menulst2cfg.c: Likewise.
8908 * util/grub-mkdevicemap.c: Likewise.
8909 * util/grub-mklayout.c: Likewise.
8910 * util/grub-mkrelpath.c: Likewise.
8911 * util/grub-script-check.c: Likewise.
8912 * util/ieee1275/grub-ofpathname.c: Likewise.
8913 * util/resolve.c: Likewise.
8914
8915 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 Support %1$d syntax.
8918
8919 * tests/printf_unit_test.c: New file.
8920 * Makefile.util.def (printf_test): New test.
8921 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8922
8923 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8924
8925 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8926 fix.
8927
8928 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8931 dprintf.
8932 * grub-core/font/font.c (grub_font_load): Likewise.
8933
8934 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * util/grub-macho2img.c: Add comment concerning gettext.
8937 * grub-core/lib/legacy_parse.c: Likewise.
8938
8939 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
8942 (grub_xvasprintf): Likewise.
8943
8944 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 Add const keyword to grub_env_get and gettextize week days.
8947
8948 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
8949 (grub_read_hook_datetime): Return const char *.
8950 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
8951 updated.
8952 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8953 Mark for gettext.
8954 (grub_get_weekday_name): Return const char *. Call gettext.
8955 * grub-core/script/argv.c (grub_script_argv_append): Receive const
8956 char * and len as the argument. All users updated.
8957 (grub_script_argv_split_append): Receive const char *.
8958 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
8959 * include/grub/env.h (grub_env_get): Likewise.
8960 (grub_env_read_hook_t): Return const char *.
8961 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
8962 (grub_script_argv_split_append): Likewise.
8963
8964 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8965
8966 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
8967
8968 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
8971 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
8972
8973 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
8976 Fix prototype.
8977
8978 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8979
8980 Fix mips compilation.
8981
8982 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
8983 normal decoder.
8984 (hashes): Use in embed decoder as well (for sizes).
8985 (dec_stream_header): Fix embed decompressor logic.
8986 (dec_stream_footer): Likewise.
8987
8988 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
8991 an error and not a fatal on unrecognised relocation types.
8992
8993 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
8996 Issue error rather than printf on unknown arguments.
8997
8998 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9001 Make buf a const.
9002
9003 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9006 Fix module name.
9007
9008 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9011 leftover debug printf.
9012
9013 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9016
9017 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9018
9019 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9020 A stylistic fix.
9021
9022 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9025
9026 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9027
9028 Allow all modules to perform serial IO
9029
9030 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9031 * include/grub/serial.h (grub_serial_port_configure): New inline
9032 function.
9033 (grub_serial_port_fetch): Likewise.
9034 (grub_serial_port_put): Likewise.
9035 (grub_serial_port_fini): Likewise.
9036 (grub_serial_find): New proto.
9037
9038 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9039
9040 Put symlink at the end of the node and fix a potential
9041 memory corruption.
9042
9043 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9044 Make symlink into an array.
9045 (set_rockridge): Set have_symlink and alloc_dirents.
9046 (grub_iso9660_read_symlink): Use new layout.
9047 (grub_iso9660_iterate_dir): Fix memory corruption.
9048 Use new layout.
9049 (grub_iso9660_dir): Set have_symlink.
9050 (grub_iso9660_open): Likewise.
9051
9052 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9053
9054 Remove local keyword.
9055
9056 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9057 (version_test_gt): Likewise.
9058 (version_find_latest): Likewise.
9059 (gettext_printf): Likewise.
9060 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9061
9062 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9065
9066 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 Fix ZFS memory and resource leaks.
9069
9070 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9071 All users updated.
9072 Free type on exit.
9073 (fill_vdev_info): New parameter inserted. All users updated.
9074 (check_pool_label): Likewise.
9075 (scan_disk): Likewise.
9076 (scan_devices): Close non-inserted disks.
9077 (fzap_iterate): Free l.
9078 (unmount_device): Free children descripto memory.
9079
9080 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9083 argument (access out of bounds).
9084
9085 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9088 >= 6 drives.
9089
9090 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9093 Fix declaration.
9094
9095 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9096
9097 Fix several memory leaks.
9098
9099 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9100 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9101 (grub_cpio_dir): Likewise.
9102 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9103 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9104 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9105 (grub_romfs_label): Likewise.
9106 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9107 (squash_unmount): New function.
9108 (grub_squash_dir): Fix memory leak.
9109 (grub_squash_open): Likewise.
9110 (grub_squash_read): Likewise.
9111 (grub_squash_mtime): Likewise.
9112 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9113 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9114 * util/grub-fstest.c (fstest): Likewise.
9115
9116 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9119 avoid accessing beyond the array.
9120
9121 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9124
9125 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9126
9127 Several AFFS fixes.
9128
9129 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9130 (GRUB_AFFS_FLAG_FFS): Removed.
9131 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9132 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9133 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9134 (grub_fshelp_node): Make block 32-bit.
9135 Add block_cache and last_block_cache.
9136 (grub_affs_read_block): Fill and use block cache.
9137 (grub_affs_read_file): Removed.
9138 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9139 boot block.
9140 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9141 safety.
9142 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9143 space.
9144 (grub_affs_close): Free block cache.
9145 (grub_affs_read): Use grub_fshelp_read_file directly.
9146
9147 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9150 with no error set.
9151
9152 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9155 used variable.
9156 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9157 Likewise.
9158
9159 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9162
9163 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9164 byteswap when needed.
9165
9166 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 Fix FreeBSD compilation.
9169
9170 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9171 to avoid circular dependency.
9172 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9173 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9174 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9175
9176 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9177
9178 Fix ZFS crypto error types.
9179
9180 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9181 (grub_gcm_decrypt): Likewise.
9182 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9183 from PBKDF2.
9184
9185 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 Illumos support.
9188
9189 * Makefile.util.def (10_illumos): New script.
9190 * configure.ac: Set COND_HOST_ILLUMOS.
9191 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9192 Support Illumos calls.
9193 (find_partition_start) [__sun__]: Likewise.
9194 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9195 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9196 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9197 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9198 device.
9199 * util/grub-probe.c (probe) [__sun__]: Do character check.
9200 * util/grub.d/10_illumos.in: New file.
9201
9202 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9203
9204 Support escaped commas in hostdisk.
9205
9206 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9207 (find_grub_drive): Use unescape_cmp.
9208 (make_device_name): Escape commas.
9209
9210 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9211
9212 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9213
9214 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9217 variable.
9218
9219 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 Support trampoline jumps on powerpc.
9222
9223 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9224 __ia64__ path.
9225 (grub_dl_load_segments): Set mod->sz.
9226 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9227 segments.
9228 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9229 (jump): Likewise.
9230 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9231 function.
9232 (trampoline): New struct.
9233 (trampoline_template): New const.
9234 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9235 * include/grub/dl.h (grub_dl): Add sz element.
9236 [__powerpc__]: Follow __ia64__.
9237 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9238 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9239 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9240 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9241
9242 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 ZFS crypto support.
9245
9246 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9247 * grub-core/Makefile.core.def (zfscrypt): New module.
9248 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9249 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9250 it. All users updated.
9251 (grub_zfs_decrypt): New var.
9252 (grub_zfs_load_key): Likewise.
9253 (zio_checksum_functions): Add SHA256+MAC.
9254 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9255 (zio_read): Handle encrypted blocks.
9256 (zap_verify): Remove incorrect check.
9257 (fzap_iterate): Handle non-standard fzap.
9258 (zap_iterate): Likewise.
9259 (zap_iterate_u64): New function.
9260 (dnode_get_fullpath): Load keys.
9261 * grub-core/fs/zfs/zfscrypt.c: New file.
9262 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9263 (grub_crypto_ecb_encrypt): Make input const.
9264 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9265 (grub_crypto_ecb_encrypt): Make input const.
9266 (GRUB_CIPHER_AES): New macro.
9267 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9268 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9269 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9270 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9271 prefix. All users updated.
9272 (grub_zfs_add_key): New proto.
9273 (grub_zfs_decrypt): Likewise.
9274 (grub_zfs_load_key): Likewise.
9275 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9276 * util/grub-fstest.c (options): Add -K option.
9277 (argp_parser): Likewise.
9278
9279 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9280
9281 Support zle compression on ZFS.
9282
9283 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9284 (decomp_table): Add zle.
9285 * include/grub/zfs/zio.h (zio_compress): Add zle.
9286
9287 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9288
9289 Support BtrFS embedding.
9290
9291 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9292 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9293 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9294 * util/grub-setup.c (setup): Use fs embedding if available.
9295 Add additional sanity check.
9296
9297 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 * util/grub-install.in: Fix condition for config_opt.
9300
9301 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9302
9303 Support third redundancy strip on raidz3.
9304
9305 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9306 Return error on singularity. All users updated.
9307 (read_device): Don't stop on 3rd failure on raidz3.
9308
9309 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 Support case-insensitive ZFS subvolumes.
9312
9313 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9314 All users updated.
9315 (zap_hash): Likewise.
9316 (name_cmp): New function.
9317 (zap_leaf_array_equal): New parameter case_insensitive.
9318 All users updated.
9319 (zap_leaf_lookup): Likewise.
9320 (fzap_lookup): Likewise.
9321 (zap_lookup): Likewise.
9322 (dnode_get_path): New parameter case_insensitive. Retrieve case
9323 sensitiviness of a volume. All users updated.
9324 (dnode_get_fullpath): New parameter case_insensitive.
9325 All users updated.
9326 (grub_zfs_dir): Set info.case_insensitiveness.
9327
9328 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 Support second redundancy strip on raidz(2,3).
9331
9332 * grub-core/fs/zfs/zfs.c (powx): New array.
9333 (powx_inv): Likewise.
9334 (poly): New const.
9335 (xor_out): New function.
9336 (gf_mul): Likewise.
9337 (recovery): Likewise.
9338 (read_device): Use second redundancy strip.
9339
9340 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9341
9342 Use a power of generator representation of GF(256) multiplication group
9343 to save space time and complexity.
9344
9345 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9346 (raid6_table2): Likewise.
9347 (powx): New array.
9348 (powx_inv): Likewise.
9349 (poly): New const.
9350 (grub_raid_block_mul): Replace with ...
9351 (grub_raid_block_mulx): ...this.
9352 (grub_raid6_init_table): Rewritten.
9353 (grub_raid6_recover): Use power of generator representation.
9354
9355 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9358 for the right device.
9359
9360 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9363 expected by grub-mkimage and it's more clear since there is no implicit
9364 padding.
9365
9366 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9369 disk.
9370 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9371
9372 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9373
9374 * util/grub-mkrescue.in: Fix handling xorriso option.
9375
9376 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9379 NULL.
9380
9381 2011-11-03 crocket <crockabiscuit@gmail.com>
9382
9383 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9384
9385 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 XZ CRC64 and SHA256 support.
9388
9389 * Makefile.util.def (libgrubmods): Add crc64.c.
9390 * grub-core/Makefile.core.def (crc64): New module.
9391 * grub-core/lib/crc64.c: New file.
9392 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9393 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9394 Fix the type.
9395 (MAX_HASH_SIZE): New define.
9396 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9397 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9398 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9399 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9400 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9401 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9402 Handle non-crc32 hashes.
9403 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9404 (dec_stream_header): Handle non-crc32 hashes.
9405 (dec_stream_footer): Likewise.
9406 (dec_block_header): Likewise.
9407 (dec_main): Likewise.
9408 (xz_dec_init): Likewise.
9409 (xz_dec_reset): Likewise.
9410 (xz_dec_end): Likewise.
9411 * util/import_gcry.py: Add CRC64 line.
9412
9413 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9416 as well.
9417
9418 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 Make reiserfs label retrieval similar to other *_label functions.
9421
9422 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9423 (REISERFS_MAX_LABEL_LENGTH): Removed.
9424 (REISERFS_LABEL_OFFSET): Likewise.
9425 (grub_reiserfs_label): Rewritten.
9426
9427 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9430 field.
9431
9432 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9433
9434 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9435
9436 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9437
9438 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9439 drive failure on both raidz and raidz2.
9440
9441 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 Fix RAIDZ(2) for >= 5 devices.
9444
9445 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9446 asize argument. All users updated.
9447
9448 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 Fix RAIDZ(2).
9451
9452 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9453 (fill_vdev_info_real): Set ashift.
9454 (read_device): Rewrite RAIDZ part based on reverse engineering.
9455
9456 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9459 don't report potentially unavialiable fields in debug output.
9460 (find_path): Fix double-free and memory leak.
9461
9462 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9463
9464 Read label on UFS1.
9465
9466 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9467 (grub_ufs_fs): Always set .label.
9468
9469 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 Use shifts in UFS.
9472
9473 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9474 (grub_ufs_data): New field log2_blksz.
9475 (grub_ufs_read_file): Use shifts.
9476 (grub_ufs_mount): Check block size and logarithm it.
9477
9478 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9481 long symlinks.
9482
9483 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 Handle symlinks and long names on tar and cpio.
9486
9487 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9488 (ATTR_FILE): Likewise.
9489 (ATTR_DIR): Likewise.
9490 (ATTR_LNK): Likewise.
9491 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9492 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9493 L and K entries.
9494 (grub_cpio_mount): Zero-fill data.
9495 (handle_symlink): New function.
9496 (grub_cpio_dir): Handle symlinks.
9497 (grub_cpio_open): Likewise.
9498 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9499
9500 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9501
9502 Fix iso9660 filename limitations and fix memory leaks.
9503
9504 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9505 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9506
9507 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 Fix JFS file name length limitations.
9510
9511 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9512 (grub_jfs_diropen): Fix maximum filename length.
9513 (grub_jfs_getent): Fix filename length.
9514 (grub_jfs_lookup_symlink): Fix size checks.
9515
9516 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9519 string.
9520
9521 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9522
9523 Leverage BFS implementation to read AFS.
9524
9525 * Makefile.util.def (libgrubmods): Add afs.c.
9526 * grub-core/Makefile.core.def (afs): New module
9527 * grub-core/fs/afs.c: New file.
9528 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9529
9530 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9533
9534 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9535
9536 * grub-core/fs/bfs.c: Run indent.
9537
9538 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 BFS implementation based on the specification.
9541
9542 * grub-core/fs/bfs.c: New file.
9543 * Makefile.util.def (libgrubmods): Add bfs.c.
9544 * grub-core/Makefile.core.def (bfs): New module.
9545
9546 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 * util/grub-fstest.c (cmd_cp): Clarify error message.
9549 (cmd_cmp): Likewise.
9550
9551 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9552
9553 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9554 and befs_be.
9555
9556 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 Remove afs and befs because of copyright problem.
9559
9560 * grub-core/fs/afs.c: Removed.
9561 * grub-core/fs/afs_be.c: Removed.
9562 * grub-core/fs/befs.c: Removed.
9563 * grub-core/fs/befs_be.c: Removed.
9564 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9565 * grub-core/Makefile.core.def (afs): Removed.
9566 (afs_be): Likewise.
9567 (befs): Likewise.
9568 (befs_be): Likewise.
9569
9570 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 Prefer rockridge over Joliet.
9573
9574 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9575 to ...
9576 (set_rockridge): ... here.
9577 (grub_iso9660_mount): Check rockridge on the primary label when
9578 discovering. Ignore Joliet if Rockridge is present.
9579
9580 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 Use shifts in nilfs2.
9583
9584 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9585 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9586 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9587 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9588 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9589 (grub_nilfs2_entries_per_block): Replaced with ...
9590 (grub_nilfs2_log_entries_per_block_log): ... this.
9591 (grub_nilfs2_blocks_per_group): Replaced with ...
9592 (grub_nilfs2_blocks_per_group_log): ... this.
9593 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9594 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9595 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9596 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9597 (grub_nilfs2_palloc_entry_offset): Replaced ...
9598 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9599 (grub_nilfs2_dat_translate): Use shifts.
9600 (grub_nilfs2_read_inode): Likewise.
9601 (GRUB_MOD_INIT): Ensure that logs are correct.
9602
9603 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 Use shifts in minix filesystem.
9606
9607 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9608 (GRUB_MINIX_ZONE2SECT): Likewise.
9609 (grub_minix_data): Replace block_size with log_block_size.
9610 (grub_minix_read_file): Use shifts.
9611 (grub_minix_mount): Check block size and take a logarithm.
9612
9613 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 Use shifts in squash4.
9616
9617 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9618 (squash_mount): Check block size and take logarithm.
9619 (direct_read): Use shifts.
9620
9621 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 Correct befs block counting logic.
9624
9625 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9626 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9627 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9628 (grub_afs_read_inode): Use block_shift.
9629 (RANGE_SHIFT): New definition.
9630 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9631 unexpected conditions, use shifts and appropriate types.
9632 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9633
9634 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 * grub-core/disk/raid.c (scan_devices): Check partition.
9637 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9638
9639 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 Support BFS (befs) UUID.
9642
9643 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9644 (grub_afs_small_data_element_header): New struct.
9645 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9646 (grub_afs_read_attribute) [MODE_BFS]: New function.
9647 (grub_afs_iterate_dir): Allocate for complete inode.
9648 (grub_afs_mount): Likewise.
9649 (grub_afs_uuid) [MODE_BFS]: New function.
9650 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9651
9652 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9653
9654 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9655 (zfs_unmount): Fix memory leak.
9656
9657 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 Support NTFS reparse points.
9660
9661 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9662 (symlink_descriptor): New struct.
9663 (grub_ntfs_read_symlink): New function.
9664 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9665 (grub_ntfs_open): Likewise.
9666
9667 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9670
9671 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 fstest xnu_uuid subcommand.
9674
9675 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9676 grub-core/commands/xnu_uuid.c.
9677 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9678 (fstest): Handle xnu_uuid.
9679 (options): Document xnu_uuid.
9680 (argp_parser): Parse xnu_uuid.
9681
9682 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9685 -l argument. Add newline at the end if printing.
9686 (GRUB_MOD_INIT): Document -l.
9687
9688 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9689
9690 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9691
9692 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 ZFS multi-device and version 33 support.
9695
9696 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9697 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9698 (grub_zfs_data): Add multidev-ice-related fields.
9699 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9700 (dva_get_offset): Make dva const.
9701 (zfs_fetch_nvlist): New function.
9702 (fill_vdev_info_real): Likewise.
9703 (fill_vdev_info): Likewise.
9704 (check_pool_label): Likewise.
9705 (scan_disk): Likewise.
9706 (scan_devices): Likewise.
9707 (read_device): Likewise.
9708 (read_dva): Likewise.
9709 (zio_read_gang): Use read_dva.
9710 (zio_read_data): Likewise.
9711 (zap_leaf_lookup): Add missing endian conversion.
9712 (zap_verify): Add missing endian conversion. All users updated.
9713 (fzap_lookup): Likewise.
9714 (fzap_iterate): Likewise.
9715 (dnode_get_path): Handle SA bonus.
9716 (nvlist_find_value): Make input const. All users updated.
9717 (unmount_device): New function.
9718 (zfs_unmount): Use unmount_device.
9719 (zfs_mount): Use scan_disk.
9720 (zfs_mtime): New function.
9721 (grub_zfs_open): Handle system attributes.
9722 (fill_fs_info): Likewise.
9723 (grub_zfs_dir): Likewise.
9724 (grub_zfs_fs): Add mtime.
9725 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9726 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9727 (SA_MTIME_OFFSET): Likewise.
9728 (SA_SYMLINK_OFFSET): Likewise.
9729 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9730 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9731 (fstest): Support zfsinfo.
9732 (argp_parser): Likewise.
9733
9734 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9737 error.
9738
9739 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 ZFS fixes.
9742
9743 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9744 sharing the same block. Iterate over correct number of indices.
9745 (dnode_get_path): Handle symlinks correctly.
9746
9747 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9750
9751 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 Read label on HFS+.
9754
9755 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9756 (grub_hfsplus_btree_search): Fix types.
9757 (grub_hfsplus_label): Implement.
9758
9759 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9762
9763 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9766
9767 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 Fix symlink handling on iso9660.
9770
9771 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9772 All users updated.
9773 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9774 (grub_iso9660_read_symlink): Moved most of code ...
9775 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9776
9777 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9778
9779 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9780 Use union to avoid breaking strict-aliasing rules.
9781
9782 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 Support multi-extent iso files.
9785
9786 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9787 Add node.
9788 (grub_fshelp_node): Revamp. All users updated.
9789 (FLAG_*): New enum.
9790 (read_node): New function.
9791 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9792 All users updated.
9793 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9794 (get_node_size): New function.
9795 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9796 entries.
9797 Fix memory leak on . and ..
9798 (grub_iso9660_read): Use read_node.
9799 (grub_iso9660_close): Free node.
9800
9801 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9802
9803 Fix tar 4G limit and handle paths containing dot.
9804
9805 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9806 (canonicalize): New function.
9807 (grub_cpio_find_file): Use canonicalize. Store offs in
9808 grub_disk_addr_t.
9809 (grub_cpio_dir): Use grub_disk_addr_t.
9810 (grub_cpio_open): Likewise.
9811
9812 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9813
9814 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9815
9816 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9817 unused flags.
9818 (grub_squash_inode): Add long_file and block_size.
9819 (grub_squash_cache_inode): New struct.
9820 (grub_squash_dirent): Make types into enum.
9821 (SQUASH_TYPE_LONG_REGULAR): New type.
9822 (grub_squash_frag_desc): Add field size.
9823 (SQUASH_BLOCK_FLAGS): New enum.
9824 (grub_squash_data): Use grub_squash_cache_inode.
9825 (grub_fshelp_node): Make ino_chunk 64-bit.
9826 (read_chunk): Minor argument change. All users updated.
9827 (squash_mount): Use correct le_to_cpu.
9828 (grub_squash_open): Handle LONG_REGULAR.
9829 (direct_read): New function.
9830 (grub_squash_read_data): Handle blocks correctly.
9831
9832 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9835
9836 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9839
9840 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 Fix 2G limit on ZFS.
9843
9844 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9845 types.
9846 (uberblock_verify): Likewise.
9847 (dmu_read): Likewise.
9848 (grub_zfs_read): Likewise. Remove invalid cast.
9849
9850 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9851
9852 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9853 (grub_jfs_blkno): Fix incorrect shift.
9854 (grub_jfs_read_file): Use more appropriate types.
9855
9856 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 Support triple indirect on minix2 and minix3.
9859
9860 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9861 Declare triple_indir_zone.
9862 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9863 indirect.
9864
9865 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 Minix FS fixes.
9868
9869 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9870 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9871 Rename ctime to mtime. All users updated.
9872 (grub_minix_get_file_block): Fix types and double indirect computations.
9873
9874 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9877 if no label is found.
9878 (grub_fat_iterate_dir): Fix file size type.
9879 (grub_fat_iterate_dir): Likewise.
9880
9881 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9882
9883 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9884 save some space.
9885 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9886 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9887
9888 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9891
9892 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 * util/import_gcry.py: Accept space between # and include.
9895
9896 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9899
9900 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9903
9904 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9905 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9906 yylex_strncpy.
9907 * grub-core/script/yylex.l: Add fine-grained #pragma.
9908
9909 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9910
9911 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9912 New inline function.
9913 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9914 Likewise.
9915 (memset) [GRUB_UTIL]: Likewise.
9916 (memcmp) [GRUB_UTIL]: Likewise.
9917
9918 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9919
9920 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9921 inline function rather than a define.
9922
9923 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9924
9925 * util/grub-setup.c: Add missing include.
9926
9927 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9928
9929 * util/ieee1275/grub-ofpathname.c: Add missing include.
9930
9931 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9934 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9935 Likewise.
9936
9937 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9938
9939 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
9940 grub_memcmp usage.
9941
9942 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9943
9944 * util/grub-install.in: Add datarootdir as per automake manual
9945 suggestion.
9946 * util/grub-mknetdir.in: Likewise.
9947
9948 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
9951 suggestion.
9952 * util/grub.d/10_kfreebsd.in: Likewise.
9953 * util/grub.d/10_linux.in: Likewise.
9954 * util/grub.d/10_netbsd.in: Likewise.
9955 * util/grub.d/10_windows.in: Likewise.
9956 * util/grub.d/20_linux_xen.in: Likewise.
9957
9958 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 Remove redundant grub_kernel_image_size.
9961
9962 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
9963 _edata and _start.
9964 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
9965 the small code. It moves it only by few bytes but simplifies the code.
9966 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
9967 _start.
9968 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
9969 (grub_kernel_image_size): Removed.
9970 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
9971 (grub_kernel_image_size): Removed.
9972 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
9973 compiled with Apple toolchain.
9974 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
9975 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
9976 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
9977 (grub_total_module_size): Likewise.
9978 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
9979 Removed.
9980 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
9981 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
9982 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9983 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
9984 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
9985 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
9986 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
9987 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
9988 Removed.
9989 (grub_total_module_size): Removed.
9990 * util/grub-mkimage.c (image_target_desc): Remove image_size.
9991 (image_targets): Likewise.
9992 Set .compressed_size to no field on sparc.
9993 (generate_image): Remove kernel_image_size handling.
9994
9995 2011-10-19 Szymon Janc <szymon@janc.net.pl>
9996
9997 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
9998 NULL pointer dereference.
9999
10000 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10001
10002 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10003 done with a dedicated section.
10004
10005 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10006 Ensure the correct position of boot_path.
10007 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10008 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10009 other fields.
10010 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10011 * include/grub/boot.h: Removed. All references removed.
10012 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10013 Removed.
10014 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10015
10016 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10017
10018 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10019 name.
10020
10021 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10024
10025 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10028 Don't add the bogus brackets.
10029
10030 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10031
10032 ExFAT support.
10033
10034 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10035 * grub-core/Makefile.core.def (exfat): New module.
10036 * grub-core/fs/exfat.c: New file.
10037 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10038 (GRUB_FAT_ATTR_*): Make into an enum.
10039 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10040 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10041 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10042 (GRUB_FAT_MAXFILE): Removed.
10043 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10044 (grub_current_fat_bpb_t): New type.
10045 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10046 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10047 (grub_fat_dir_node_t): New type.
10048 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10049 (fat_log2) [MODE_EXFAT]: Removed.
10050 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10051 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10052 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10053 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10054 (grub_fat_label) [MODE_EXFAT]: New function.
10055 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10056 reserved_first_sector to 0.
10057
10058 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 Move grub_reboot out of the kernel.
10061
10062 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10063 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10064 * grub-core/lib/efi/reboot.c: ... here.
10065 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10066 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10067 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10068 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10069 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10070 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10071 * grub-core/lib/ieee1275/reboot.c: ... here.
10072 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10073 * grub-core/lib/mips/arc/reboot.c: ... here.
10074 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10075 * grub-core/lib/mips/loongson/reboot.c: ...here.
10076 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10077 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10078 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10079 * include/grub/i386/reboot.h: New file.
10080 * include/grub/mips/loongson/ec.h: Fix includes.
10081 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10082 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10083 * grub-core/lib/i386/reboot.c: New file.
10084
10085 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 Make grub_prefix into module to fix the arbitrary limit and save
10088 some space.
10089
10090 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10091 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10092 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10093 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10094 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10095 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10096 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10097 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10098 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10099 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10100 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10101 * include/grub/ia64/efi/kernel.h: Removed.
10102 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10103 (grub_prefix): Removed.
10104 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10105 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10106 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10107 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10108 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10109 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10110 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10111 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10112 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10113 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10114 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10115 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10116 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10117 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10118 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10119 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10120 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10121 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10122 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10123 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10124 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10125 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10126 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10127 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10128 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10129 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10130 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10131 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10132 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10133 from module.
10134 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10135 prefix_end.
10136 (image_targets): Likewise.
10137 (generate_image): Put prefix as a module.
10138
10139 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10140
10141 Replace grub_module_iterate with FOR_MODULES.
10142
10143 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10144 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10145 (grub_efi_modules_addr): ...this.
10146 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10147 (grub_efi_init): Set grub_modbase.
10148 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10149 (grub_modbase): New variable.
10150 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10151 (grub_modbase): New variable.
10152 (grub_machine_init): Set grub_modbase.
10153 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10154 (grub_modbase): New variable.
10155 (grub_machine_init): Set grub_modbase.
10156 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10157 (grub_modbase): New variable.
10158 (grub_machine_init): Set grub_modbase.
10159 * grub-core/kern/main.c (grub_module_iterate): Remove.
10160 (grub_modules_get_end): Use grub_modbase.
10161 (grub_load_modules): Use FOR_MODULES.
10162 (grub_load_config): Likewise.
10163 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10164 (grub_modbase): New variable.
10165 (grub_machine_init): Set grub_modbase.
10166 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10167 (grub_modbase): New variable.
10168 (grub_machine_init): Set grub_modbase.
10169 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10170 Removed.
10171 (grub_modbase): New variable.
10172 (grub_machine_init): Set grub_modbase.
10173 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10174 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10175 (grub_module_iterate): Likewise.
10176 (grub_modbase): New variable declaration.
10177 (FOR_MODULES): New macro.
10178
10179 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10180
10181 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10182 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10183
10184 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10185
10186 Fix few obvious type discrepancies.
10187
10188 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10189 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10190 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10191 variable.
10192 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10193 and connected types.
10194 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10195 offset.
10196 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10197 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10198 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10199 and connected types.
10200
10201 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 Fix python 3.x incompatibilities.
10204
10205 * gentpl.py: Put brackets around print strings.
10206 * util/import_gcry.py: Open explicitly as utf-8.
10207 Use in instead of has_key.
10208
10209 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10212 (GRUB_XFS_INO_AGBITS): Make into inline function.
10213 (GRUB_XFS_INO_INOINAG): Likewise.
10214 (GRUB_XFS_INO_AG): Likewise.
10215 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10216 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10217 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10218 (GRUB_XFS_EXTENT_SIZE): Likewise.
10219 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10220 (GRUB_XFS_NEXT_DIRENT): Likewise.
10221 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10222 (grub_xfs_read_file): Fix offset type.
10223
10224 2011-10-15 Robert Millan <rmh@gnu.org>
10225
10226 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10227
10228 2011-10-15 Robert Millan <rmh@gnu.org>
10229
10230 Fix build problem on FreeBSD and GNU/kFreeBSD.
10231
10232 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10233
10234 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10235
10236 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10237
10238 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10239 types.
10240 (grub_hfsplus_btree_recoffset): Likewise.
10241 (grub_hfsplus_btree_recptr): Likewise.
10242 (grub_hfsplus_find_block): Likewise.
10243 (grub_hfsplus_btree_search): Likewise.
10244 (grub_hfsplus_read_block): Likewise.
10245 (grub_hfsplus_read_file): Likewise.
10246 (grub_hfsplus_mount): Likewise.
10247 (grub_hfsplus_btree_iterate_node): Likewise.
10248 (grub_hfsplus_btree_search): Likewise.
10249 (grub_hfsplus_iterate_dir): Likewise.
10250 (grub_hfsplus_read): A small code simplification.
10251
10252 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 * grub-core/kern/emu/hostdisk.c
10255 (convert_system_partition_to_system_disk): Don't assume that children
10256 of mapper nodes are mapper nodes.
10257
10258 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10261 * include/grub/misc.h (grub_isxdigit): New function.
10262 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10263 switched to grub_isxdigit.
10264 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10265 number starting with a letter.
10266
10267 2011-10-09 Robert Millan <rmh@gnu.org>
10268
10269 LVM support for FreeBSD and GNU/kFreeBSD.
10270
10271 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10272 GNU/kFreeBSD.
10273 (LVM_DEV_MAPPER_STRING): Move from here ...
10274 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10275 * util/getroot.c: Include `<grub/util/lvm.h>'.
10276 (grub_util_get_dev_abstraction): Enable
10277 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10278 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10279 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10280 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10281 support it.
10282 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10283 GNU/kFreeBSD.
10284 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10285 when LVM abstraction is required for ${GRUB_DEVICE}.
10286
10287 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10288
10289 Add support for LZO compression in GRUB:
10290 - import of minilzo library,
10291 - LZO decompression for btrfs,
10292 - lzop files decompression.
10293
10294 * grub-core/io/lzopio.c: New file.
10295 * grub-core/lib/adler32.c: Likewise.
10296 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10297 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10298 * grub-core/lib/minilzo/minilzo.c: Likewise.
10299 * grub-core/lib/minilzo/minilzo.h: Likewise.
10300 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10301 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10302 grub-core/lib/minilzo/minilzo.c to common.
10303 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10304 cflags in cppflags.
10305 * grub-core/Makefile.core.def (btrfs): Likewise.
10306 * grub-core/Makefile.core.def (lzopio): New module.
10307 (adler32): Likewise.
10308 * grub-core/fs/btrfs.c: Include minilzo.h.
10309 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10310 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10311 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10312 (grub_btrfs_lzo_decompress): New function.
10313 (grub_btrfs_extent_read): Add support for LZO compression type.
10314 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10315 (GRUB_USHRT_MAX): Likewise.
10316 (GRUB_UINT_MAX): Likewise.
10317 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10318 (UINT_MAX): Likewise.
10319 (CHAR_BIT): Likewise.
10320 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10321 grub-core/lib/posix_wrap/limits.h
10322 (UCHAR_MAX): Likewise.
10323 * include/grub/file.h (grub_file_filter_id): New compression filter
10324 GRUB_FILE_FILTER_LZOPIO.
10325 * include/grub/file.h (grub_file_filter_id): Set
10326 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10327 * include/grub/types.h (grub_get_unaligned16): New function.
10328 (grub_get_unaligned32): Likewise.
10329 (grub_get_unaligned64): Likewise.
10330 * util/import_gcry.py (cryptolist): Add adler32.
10331
10332 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10335 in perspective decreases the complexity of build system and fixes
10336 compilation right now.
10337
10338 2011-10-01 Ales Nesrsta <starous@volny.cz>
10339
10340 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10341 (fixed problem related to using UHCI with coreboot).
10342
10343 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10344
10345 * gentpl.py: Use Autogen macros so that the output template file
10346 (Makefile.tpl) size is reduced.
10347
10348 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10349
10350 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10351 extra_dist.
10352
10353 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10354
10355 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10356 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10357
10358 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10359
10360 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10361 _fullpath.
10362
10363 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10364
10365 Remove extra declaration of sleep for mingw32.
10366
10367 * util/misc.c (sleep) [__MINGW32__]: Removed.
10368 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10369
10370 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10371
10372 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10373 type and packname.
10374 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10375 Resurrected.
10376 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10377 (grub_netbsd_btinfo_bootwedge): New struct.
10378 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10379 New function.
10380 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10381
10382 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10383
10384 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10385 loader.
10386
10387 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10388
10389 Fix incorrect identifiers in bash-completion.
10390
10391 * util/bash-completion.d/grub-completion.bash.in
10392 (_grub_mkpasswd-pbkdf2): Rename to ...
10393 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10394 (_grub_script-check): Rename to ...
10395 (_grub_script_check): ... this. All users updated.
10396
10397 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10398
10399 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10400 Return 0 if disk isn't biosdisk.
10401
10402 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10403
10404 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10405 on NetBSD.
10406 * Makefile.util.def (grub-fstest): Likewise.
10407
10408 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10409
10410 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10411 Get sector size from disk label.
10412
10413 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10414
10415 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10416 */README* as well as README*.
10417 Reported by: Axel Beckert.
10418
10419 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10422 case of less than 256 MiB of RAM.
10423
10424 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10425
10426 * grub-core/commands/wildcard.c (make_regex): Handle @.
10427
10428 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10429
10430 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10431
10432 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10433
10434 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10435 AC_LANG_CONFTEST macros.
10436
10437 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10438
10439 Add grub-fstest option to uncompress data for commands.
10440
10441 * util/grub-fstest.c (uncompress): New var.
10442 (options): New option -u.
10443
10444 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10445
10446 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10447 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10448
10449 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10450
10451 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10452 file type was not recognized correctly (not gzip or corrupted).
10453
10454 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10455
10456 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10457 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10458
10459 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10460
10461 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10462 loongson.
10463 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10464 video_radeon_fuloong2e.
10465 * grub-core/video/radeon_fuloong2e.c: New file.
10466 * include/grub/video.h (grub_video_id_t): Add new ID
10467 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10468
10469 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10472 define.
10473 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10474 that PRID matches the detected subplatform and reset the subplatform
10475 if it doesn't.
10476
10477 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10480
10481 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10482
10483 Fix PCI iterating on functions >= 4.
10484
10485 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10486 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10487 Removed.
10488 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10489 (grub_pci_read): Fix bitmask.
10490 (grub_pci_read_word): Likewise.
10491 (grub_pci_read_byte): Likewise.
10492 (grub_pci_write): Likewise.
10493 (grub_pci_write_word): Likewise.
10494 (grub_pci_write_byte): Likewise.
10495
10496 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10499 can still be specified in TARGET_CFLAGS)
10500
10501 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10502
10503 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10504
10505 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10506 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10507 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10508 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10509 (FULOONG): Rename to ...
10510 (FULOONG2F): ... this. All users updated.
10511 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10512 (machtype_fuloong2f_str): ... this.
10513 (machtype_fuloong2e_str): New string.
10514 Check for machtype_fuloong2e_str.
10515 * grub-core/loader/mips/linux.c (loongson_machtypes)
10516 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10517 * grub-core/term/serial.c (loongson_defserial)
10518 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10519 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10520 loongson_defserial.
10521 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10522 Rename to ...
10523 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10524 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10525 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10526 to IMAGE_FULOONG2F_FLASH. All users updated.
10527 (image_targets): Rename images.
10528 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10529
10530 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10531
10532 Make enable of disk cache statistics code configurable.
10533
10534 * configure.ac: --enable-cache-stats added.
10535 * config.h.in (DISK_CACHE_STATS): New define.
10536 * grub-core/Makefile.core.def (cacheinfo): New command.
10537 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10538 * grub-core/commands/cacheinfo.c: New file.
10539 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10540 moved to cacheinfo.c.
10541 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10542 debug code.
10543 * include/grub/disk.h: Likewise.
10544
10545 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10546
10547 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10548 * grub-core/Makefile.am: Likewise.
10549
10550 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10553 non-zero pull.
10554
10555 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10556
10557 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10558 All users updated.
10559 (grub_jfs_lookup_symlink): Use correct starting inode.
10560
10561 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10562
10563 * util/grub-setup.c (main): Add missing gcry initialisation.
10564
10565 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10566
10567 Don't accept text modes on EFI when booting Linux.
10568
10569 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10570 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10571
10572 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10573 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10574
10575 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10576 use of "/path/.." as in grub-install for EFI as well as handling
10577 symlinks correctly.
10578 Fixes Debian bug #637768.
10579
10580 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10581
10582 * util/grub-probe.c: Remove duplicate #include.
10583
10584 2011-08-10 Robert Millan <rmh@gnu.org>
10585
10586 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10587
10588 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10589 function.
10590 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10591 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10592
10593 2011-08-03 Robert Millan <rmh@gnu.org>
10594
10595 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10596 la_array as packed.
10597 Reported by: Zachary Bedell
10598
10599 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10600
10601 * configure.ac: The Loongson port requires grub-mkfont due to its
10602 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10603 be built.
10604
10605 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10606
10607 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10608 processing arguments (otherwise help2man fails when GRUB has not yet
10609 been installed).
10610
10611 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 New script grub-mkstandalone.
10614
10615 * Makefile.util.def (grub-mkstandalone): New script.
10616 * docs/man/grub-mkstandalone.h2m: New file.
10617 * util/grub-mkstandalone.in: Likewise.
10618
10619 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 Support ATA disks with 4K sectors.
10622
10623 * include/grub/ata.h (grub_ata): New member log_sector_size.
10624 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10625 (grub_ata_identify): Read sector size.
10626 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10627
10628 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 * util/grub-install.in: Don't use uhci outside of x86.
10631
10632 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10633
10634 * util/grub-mkrescue.in: Add missing quotes.
10635
10636 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10637
10638 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10639 dereference.
10640
10641 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10642
10643 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10644
10645 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * include/grub/video.h: add missing EXPORT_FUND on
10648 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10649
10650 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10651
10652 * include/grub/mips/kernel.h: Fix define conflict.
10653
10654 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10657 all four ways.
10658
10659 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10660
10661 Preferred resolution detection for VBE.
10662
10663 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10664 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10665 the Flat Panel extension, in line with the X.org VESA driver.
10666 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10667 New function.
10668 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10669 (grub_vbe_bios_read_edid): Likewise.
10670 (grub_vbe_get_preferred_mode): Likewise.
10671 (grub_video_vbe_setup): When the mode is "auto", try to get the
10672 preferred mode from VBE, and use the largest mode that is no larger
10673 than the preferred mode (some BIOSes expose a preferred mode that is
10674 not in their mode list!). If this fails, fall back to 640x480 as a
10675 safe conservative choice.
10676 (grub_video_vbe_get_edid): New function.
10677 (grub_video_vbe_adapter): Add get_edid.
10678 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10679 (struct grub_video_adapter): Add get_edid.
10680 (grub_video_edid_checksum): Add prototype.
10681 (grub_video_edid_preferred_mode): Likewise.
10682 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10683 structure.
10684
10685 * grub-core/commands/videoinfo.c (print_edid): New function.
10686 (grub_cmd_videoinfo): Print EDID if available.
10687
10688 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10689 is more appropriate on a wider range of platforms than 640x480.
10690 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10691 documentation.
10692
10693 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10696
10697 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10698
10699 * po/POTFILES.in: Regenerate.
10700
10701 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10704 incorrect memory usage.
10705
10706 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 * util/grub-install.in: Source grub-mkconfig_lib.
10709
10710 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10711
10712 Remove getroot.c from core on emu platform.
10713
10714 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10715 kern/emu/raid.c.
10716 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10717 useless.
10718 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10719 * util/getroot.c (get_win32_path): ... here.
10720 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10721 * util/getroot.c (fini_libzfs): ... here.
10722 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10723 * util/getroot.c (grub_get_libzfs_handle): ... here.
10724 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10725 Moved from here...
10726 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10727 * grub-core/kern/emu/misc.c
10728 (grub_make_system_path_relative_to_its_root): Moved from here...
10729 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10730 * grub-core/kern/emu/getroot.c: Moved from here ...
10731 * util/getroot.c: ... here. All users updated.
10732 * grub-core/kern/emu/raid.c: Moved from here ...
10733 * util/raid.c: ... here. All users updated.
10734
10735 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10736
10737 * po/POTFILES.in: Regenerate.
10738
10739 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10740
10741 Fix compilation on GNU/Linux.
10742
10743 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10744 Disable geli.
10745 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10746 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10747 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10748
10749 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10750 2011-07-07 Michael Gorven <michael@gorven.za.net>
10751 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10752
10753 LUKS and GELI support.
10754
10755 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10756 grub-core/disk/luks.c, grub-core/disk/geli.c,
10757 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10758 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10759 grub-core/lib/arg.c.
10760 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10761 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10762 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10763 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10764 (grub-bin2h): Add libgcry.a.
10765 (grub-mkimage): Likewise.
10766 (grub-mkrelpath): Likewise.
10767 (grub-script-check): Likewise.
10768 (grub-editenv): Likewise.
10769 (grub-mkpasswd-pbkdf2): Likewise.
10770 (grub-pe2elf): Likewise.
10771 (grub-fstest): Likewise.
10772 (grub-mkfont): Likewise.
10773 (grub-mkdevicemap): Likewise.
10774 (grub-probe): Likewise.
10775 (grub-ofpath): Likewise.
10776 (grub-mklayout): Likewise.
10777 (example_unit_test): Likewise.
10778 (grub-menulst2cfg): Likewise.
10779 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10780 * grub-core/Makefile.core.def (cryptodisk): New module.
10781 (luks): Likewise.
10782 (geli): Likewise.
10783 * grub-core/disk/AFSplitter.c: New file.
10784 * grub-core/disk/cryptodisk.c: Likewise.
10785 * grub-core/disk/geli.c: Likewise.
10786 * grub-core/disk/luks.c: Likewise.
10787 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10788 grub_util_is_lvm.
10789 (grub_util_get_dm_abstraction): New function.
10790 (grub_util_follow_gpart_up): Likewise.
10791 (grub_util_get_geom_abstraction): Likewise.
10792 (grub_util_get_dev_abstraction): Use new functions.
10793 (grub_util_pull_device): Pull GELI and LUKS.
10794 (grub_util_get_grub_dev): Handle LUKS and GELI.
10795 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10796 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10797 (follow_geom_up): Removed.
10798 (grub_util_fd_seek): New function.
10799 (open_device): Use grub_util_fd_seek.
10800 (nread): Rename to ..
10801 (grub_util_fd_read): ... this. All users updated.
10802 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10803 (grub_crypto_cbc_decrypt): Likewise.
10804 (grub_crypto_hmac_write): Likewise.
10805 (grub_crypto_hmac_buffer): Likewise.
10806 (grub_password_get): Extend to util.
10807 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10808 New member modname.
10809 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10810 * include/grub/cryptodisk.h: New file.
10811 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10812 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10813 LUKS and GELI.
10814 (grub_util_follow_gpart_up): New proto.
10815 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10816 (grub_util_fd_read): Likewise.
10817 (grub_cryptodisk_cheat_mount): Likewise.
10818 (grub_util_cryptodisk_print_uuid): Likewise.
10819 (grub_util_get_fd_sectors): Likewise.
10820 * util/grub-fstest.c (mount_crypt): New var.
10821 (fstest): Mount crypto if requested.
10822 (options): New option -C.
10823 (argp_parser): Parse -C.
10824 (main): Init and fini gcry.
10825 * util/grub-install.in: Support cryptodisk install.
10826 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10827 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10828 cryptodisk.
10829 (prepare_grub_to_access_device): Likewise.
10830 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10831 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10832 (probe_cryptodisk_uuid): New function.
10833 (probe_abstraction): Likewise.
10834 (probe): Use new functions.
10835 * util/import_gcry.py: Create Makefile.utilgcry.def.
10836 Add modname member.
10837
10838 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 Lazy device scanning.
10841
10842 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10843 (grub-setup): Remove util/raid.c.
10844 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10845 * grub-core/disk/lvm.c (scan_depth): New variable.
10846 (grub_lvm_iterate): Rescan if necessary.
10847 (find_lv): New function based on grub_lvm_open.
10848 (grub_lvm_open): Use find_lv. Rescan on error.
10849 (is_node_readable): New function.
10850 (is_lv_readable): Likewise.
10851 (grub_lvm_scan_device): Skip already found disks.
10852 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10853 Stop if searched device is found and readable.
10854 * grub-core/disk/raid.c (inscnt): New variable.
10855 (scan_depth): Likewise.
10856 (scan_devices): New function based on grub_raid_register. Abort if
10857 looked for device is found.
10858 (grub_raid_iterate): Rescan if needed.
10859 (find_array): NEw function based on -grub_raid_open.
10860 (grub_raid_open): Use find_array and rescan.
10861 (insert_array): Set became_readable_at.
10862 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10863 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10864 New function.
10865 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10866 (grub_util_pull_device): New function.
10867 (grub_util_get_grub_dev): Call grub_util_pull_device.
10868 * util/raid.c: Moved to ..
10869 * grub-core/kern/emu/raid.c: ... here.
10870 (grub_util_raid_getmembers): New parameter "bootable".
10871 All users updated. Support 1.x.
10872 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10873 All users updated.
10874 * include/grub/disk.h (grub_disk_pull_t): New enum.
10875 (grub_disk_dev): Change iterate prototype.
10876 All users updated.
10877 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10878 New proto.
10879 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10880 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10881 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10882 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10883 All users updated.
10884 * include/grub/util/raid.h: Removed.
10885
10886 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 * po/POTFILES.in: Regenerate.
10889
10890 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10891
10892 Unify sparc init with other ieee1275.
10893
10894 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10895 instead of kern/sparc64/ieee1275/init.c.
10896 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10897 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10898 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10899 grub/machine/kernel.h.
10900 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10901 (grub_claim_heap) [__sparc__]: Use sparc version.
10902 (grub_machine_init): Moved args parsing to
10903 (grub_parse_cmdline): ...this.
10904 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10905 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10906 New definition.
10907 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10908
10909 Move BOOTP to separate file.
10910
10911 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10912 * grub-core/net/net.c: Move all BOOTP functions to
10913 * grub-core/net/bootp.c: ... here.
10914
10915 Use frame interface on PXE.
10916
10917 * grub-core/Makefile.core.def (pxecmd): Removed.
10918 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10919 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10920 * grub-core/i386/pc/pxe.c: Moved from here ...
10921 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10922 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10923 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10924
10925 EFI network support.
10926
10927 * grub-core/Makefile.core.def (efinet): New module.
10928 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10929 here...
10930 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10931 All users updated.
10932 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10933 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10934 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10935 * grub-core/net/drivers/efi/efinet.c: New file.
10936 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
10937 (grub_efi_net_config): New extern var.
10938
10939 Various cleanups and bugfixes.
10940
10941 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
10942 error.
10943 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
10944 disk declared as partition.
10945 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
10946 leak on failure.
10947 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
10948 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
10949 (grub_debug_zalloc): Likewise.
10950 (grub_debug_realloc): Likewise.
10951 (grub_debug_memalign): Likewise.
10952 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
10953 Check that target is IPv4.
10954 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
10955 local-mac-address as fallback.
10956 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
10957 memory leak.
10958 * grub-core/net/ip.c (ipchksum): Rename to ...
10959 (grub_net_ip_chksum): ... this. All users updated.
10960 (grub_net_recv_ip_packets): Special handling for DHCP.
10961 * util/grub-mkimage.c (generate_image): Zero-out aout header.
10962
10963 Unify prefix handling
10964
10965 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
10966 (grub_machine_get_bootlocation): ... this.
10967 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
10968 (grub_machine_get_bootlocation): ... this.
10969 (grub_prefix): New variable.
10970 (prefix): Removed.
10971 (root_dev): New variable.
10972 (dir): Likewise.
10973 (main): Use new variables.
10974 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
10975 Revamped into ...
10976 (grub_machine_get_bootlocation): ... this.
10977 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
10978 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
10979 (grub_machine_get_bootlocation): ... this.
10980 (grub_machine_set_prefix): Removed.
10981 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
10982 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
10983 Revamped into ...
10984 (grub_machine_get_bootlocation): ... this.
10985 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
10986 (grub_set_prefix_and_root): ... this. All users updated.
10987 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
10988 Revamped into ...
10989 (grub_machine_get_bootlocation): ... this.
10990 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
10991 (grub_machine_get_bootlocation): New proto.
10992 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
10993
10994 Less intrusive and more reliable seek on network implementation.
10995
10996 * grub-core/kern/file.c (grub_file_net_seek): Removed.
10997 (grub_file_seek): Don't call grub_file_net_seek.
10998 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
10999 (grub_net_fs_read_real): .. this.
11000 (grub_net_seek_real): Use net->offset.
11001 (grub_net_fs_read): Seek if necessary.
11002
11003 Unify IEEE1275 netwotk config with the other platforms.
11004
11005 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11006 New variable.
11007 (grub_machine_get_bootlocation): Support network.
11008 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11009 Support type and device parsing.
11010 (grub_ieee1275_get_device_type): New function.
11011 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11012 into ...
11013 (grub_ieee1275_net_config_real): ... this.
11014 (grub_ofnet_probecards): Removed.
11015 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11016 * include/grub/ieee1275/ofnet.h: Removed.
11017 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11018 extern var.
11019 (grub_ieee1275_get_device_type): New function.
11020
11021 Unify network device closing across platforms and make more robust.
11022
11023 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11024 grub_grubnet_fini.
11025 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11026 already.
11027 * grub-core/net/net.c (grub_net_network_level_interface_register):
11028 Update num_ifaces.
11029 (grub_net_card_unregister): Close all interfaces.
11030 (receive_packets): Don't poll if no iterfaces are registered.
11031 Open if necessary.
11032 (grub_net_fini_hw): New function.
11033 (grub_net_restore_hw): Likewise.
11034 (fini_hnd): New variable.
11035 (GRUB_MOD_INIT): Register preboot hook.
11036 (GRUB_MOD_FINI): Run and unregister preboot hook.
11037
11038 Poll network cards when idle.
11039
11040 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11041 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11042 * grub-core/net/net.c (receive_packets): Save last poll time.
11043 (grub_net_poll_cards_idle_real): New function.
11044 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11045 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11046 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11047
11048 Rename ofnet interfaces.
11049
11050 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11051 (grub_ofnet_findcards): Use ofnet_%s names.
11052
11053 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11054
11055 Cleanup socket opening.
11056
11057 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11058 (grub_net_fs_close): Likewise.
11059 (grub_net_fs_read_real): Use eof member.
11060 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11061 (+grub_net_udp_close): New inline function.
11062
11063 * include/grub/net/tftp.h: Moved to the top of ...
11064 * grub-core/net/tftp.c: ... here.
11065 * include/grub/net/ip.h: Moved mostly to the top of ...
11066 * grub-core/net/ip.c: ... here.
11067 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11068 * grub-core/net/ethernet.c: ... here.
11069
11070 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11071
11072 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11073 FS name.
11074
11075 * include/grub/net/ip.h (ipv4_ini): Removed.
11076 (ipv4_fini): Likewise.
11077
11078 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11079 (grub_net_send_ip_packets): Likewise.
11080
11081 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11082
11083 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11084 grub_read_cmos prototype.
11085
11086 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11087
11088 VGA text support in qemu-mips
11089
11090 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11091 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11092 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11093 text.
11094 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11095 * grub-core/kern/vga_init.c: ... this.
11096 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11097 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11098 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11099 Adjust.
11100 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11101 GRUB_MACHINE_PCI_IO_BASE.
11102
11103 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 MIPS qemu flash support.
11106
11107 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11108 magic.
11109 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11110 (grub_machine_init): Probe memory if its size isn't known.
11111 * util/grub-mkimage.c (image_targets): Add flash targets.
11112 (generate_image): Handle flash targets.
11113
11114 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11115
11116 MIPS qemu at_keyboard support.
11117
11118 * gentpl.py (videoinkernel): Add qemu-mips.
11119 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11120 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11121 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11122 modules.
11123 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11124 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11125 * grub-core/term/serial.c (grub_serial_register)
11126 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11127
11128 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11129
11130 CMOS support on sparc.
11131
11132 * gentpl.py (cmos): Add powerpc and sparc.
11133 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11134 powerpc and sparc.
11135 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11136 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11137 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11138 grub_set_datetime_cmos.
11139 * grub-core/lib/ieee1275/cmos.c: New file.
11140 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11141 (find_rtc): Set no_ieee1275_rtc on error.
11142 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11143 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11144 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11145 fail. Move value to argument. All users updated
11146 (grub_cmos_write): Likewise.
11147 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11148 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11149 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11150 grub_get_datetime_cmos and grub_set_datetime_cmos.
11151
11152 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11153
11154 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11155 sourcing grub-mkconfig_lib.
11156 * util/update-grub_lib.in: Likewise.
11157 * util/grub.d/00_header.in: Likewise.
11158 * util/grub.d/10_hurd.in: Likewise.
11159 * util/grub.d/10_kfreebsd.in: Likewise.
11160 * util/grub.d/10_linux.in: Likewise.
11161 * util/grub.d/10_netbsd.in: Likewise.
11162 * util/grub.d/10_windows.in: Likewise.
11163 * util/grub.d/20_linux_xen.in: Likewise.
11164 * util/grub.d/30_os-prober.in: Likewise.
11165
11166 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11167
11168 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11169 default_bg_color rather than black.
11170 (grub_gfxterm_fullscreen): Likewise.
11171 (grub_gfxterm_background_color_cmd): Save new background color in
11172 default_bg_color.
11173
11174 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11177
11178 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11179
11180 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11181 mismerge.
11182
11183 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 Chainloading on coreboot support.
11186
11187 * grub-core/Makefile.core.def (chain): Add coreboot.
11188 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11189
11190 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11191
11192 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11193 if it happens.
11194
11195 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 Implement time command.
11198
11199 * grub-core/Makefile.core.def (time): New module.
11200 * grub-core/commands/time.c: New file.
11201 * grub-core/script/parser.y: Remove "time" keyword.
11202 * grub-core/script/yylex.l: Likewise.
11203
11204 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11205
11206 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11207
11208 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11211 when handling leftovers.
11212
11213 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11214
11215 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11216 so that help2man doesn't fail.
11217
11218 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11219
11220 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11221 type in pointers on sparc64.
11222 (get_card_packet): Likewise.
11223
11224 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11225
11226 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11227 with `*'.
11228 (grub_cmd_videoinfo): Fetch current video mode.
11229
11230 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11231
11232 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11233 because of underlying system restrictions.
11234
11235 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11236
11237 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11238 necessary.
11239
11240 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11241
11242 Coreboot video support.
11243
11244 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11245 (vbe): Likewise.
11246 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11247 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11248 here ...
11249 * grub-core/kern/i386/int.S: ... here.
11250 * grub-core/video/i386/pc/vbe.c: Updated includes.
11251 * grub-core/video/i386/pc/vga.c: Likewise.
11252 * include/grub/i386/coreboot/memory.h
11253 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11254 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11255 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11256 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11257 Disable interrupts.
11258 * include/grub/i386/pc/vga.h: Removed. All users updated.
11259
11260 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11261
11262 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11263 definitions for dprintf.
11264 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11265
11266 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11269 prototype.
11270 (get_card_packet): Likewise.
11271
11272 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11273
11274 Display the path of the file when file is not found
11275
11276 * grub-core/fs/fat.c: Display the filename when file is not found.
11277 * grub-core/fs/fshelp.c: Likewise.
11278 * grub-core/fs/hfs.c: Likewise.
11279 * grub-core/fs/jfs.c: Likewise.
11280 * grub-core/fs/minix.c: Likewise.
11281 * grub-core/fs/ufs.c: Likewise.
11282 * grub-core/fs/btrfs.c: Likewise.
11283 * grub-core/commands/i386/pc/play.c: Likewise.
11284
11285 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11286
11287 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11288 pointer checks before calling grub_free().
11289 * grub-core/commands/wildcard.c (match_devices): Likewise.
11290 * grub-core/commands/wildcard.c (match_files): Likewise.
11291 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11292 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11293 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11294 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11295 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11296 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11297 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11298 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11299 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11300
11301 2011-06-25 Patrick <p55@mailinator.com>
11302
11303 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11304
11305 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11308 (grub_pxe_send): Likewise.
11309 (GRUB_MOD_INIT): Fix types.
11310
11311 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11312
11313 * grub-core/io/xzio.c: Fix code style issues
11314
11315 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11316 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11317
11318 Network infrastructure.
11319 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11320
11321 * include/grub/net/arp.h: New file.
11322 * include/grub/net/device.h: Likewise.
11323 * include/grub/net/ethernet.h: Likewise.
11324 * include/grub/net/ip.h: Likewise.
11325 * include/grub/net/netbuff.h: Likewise.
11326 * include/grub/net/tftp.h: Likewise.
11327 * include/grub/net/udp.h: Likewise.
11328 * include/grub/ieee1275/ofnet.h: Likewise.
11329 * include/grub/emu/export.h: Likewise.
11330 * include/grub/net.h: Likewise.
11331 * grub-core/net/arp.c: Likewise.
11332 * grub-core/net/ethernet.c: Likewise.
11333 * grub-core/net/ip.c: Likewise.
11334 * grub-core/net/udp.c: Likewise.
11335 * grub-core/net/tftp.c: Likewise.
11336 * grub-core/net/netbuff.c: Likewise.
11337 * grub-core/net/net.c: Likewise.
11338 * grub-core/net/drivers/emu/emunet.c: Likewise.
11339 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11340 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11341 export.h.
11342 * grub-core/Makefile.core.def (net): New module.
11343 (tftp): Likewise.
11344 (ofnet): Likewise.
11345 (emunet): Likewise.
11346 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11347 network protocols.
11348 * grub-core/kern/device.c (grub_net_open) : New variable.
11349 (grub_device_open): Handle network device.
11350 (grub_device_close): Likewise.
11351 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11352 (grub_grubnet_fini): Likewise.
11353 (grub_file_seek): Seek in network device.
11354 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11355 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11356 network root.
11357 (grub_machine_fini): Call grub_grubnet_fini.
11358 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11359 network.
11360 (grub_ieee1275_get_aliasdevname): New function.
11361 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11362 Add unofficial Solaris network info.
11363 (grub_multiboot_make_mbi): Likewise.
11364 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11365 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11366 * include/grub/device.h (grub_fs): Removed.
11367 * include/grub/err.h (grub_err_t): Add network-related values.
11368 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11369 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11370 (grub_ieee1275_get_aliasdevname): New proto.
11371 * include/grub/net.h: Rewritten.
11372
11373 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11374
11375 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11376 names.
11377
11378 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11379
11380 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11381 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11382 it truncates the output.
11383 Reported by: Ximin Luo.
11384
11385 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11388
11389 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11392 partmap before abstraction.
11393
11394 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11395
11396 * util/grub-mkconfig_lib.in: Add missing quotes.
11397
11398 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11399
11400 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11401 old method if mountinfo would return /dev/root and /dev/root doesn't
11402 exist.
11403
11404 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 ZFS zlib support
11407
11408 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11409 (decomp_table): Add zlib entries.
11410 (zio_read): USe 8 bits for compression function rather than 3.
11411 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11412
11413 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11414
11415 * grub-core/disk/ahci.c: Add missing license statements.
11416 * grub-core/fs/romfs.c: Likewise.
11417 * grub-core/lib/ia64/setjmp.S: Likewise.
11418 * grub-core/loader/i386/pc/freedos.c: Likewise.
11419 * grub-core/loader/ia64/efi/linux.c: Likewise.
11420 * grub-core/video/colors.c: Likewise.
11421 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11422
11423 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 AHCI support.
11426
11427 * grub-core/Makefile.core.def (ata_pthru): Removed.
11428 (ahci): New module.
11429 (pata): Likewise.
11430 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11431 on unload.
11432 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11433 readwrite.
11434 (grub_hdparm_do_check_powermode_cmd): Likewise.
11435 (grub_hdparm_do_smart_cmd): Likewise.
11436 (grub_hdparm_set_val_cmd): Likewise.
11437 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11438 * grub-core/disk/ahci.c: New file.
11439 * grub-core/disk/ata.c: Factor out the low-level part into ...
11440 * grub-core/disk/pata.c: ... here.
11441 * grub-core/disk/ata_pthru.c: Contents moved to ...
11442 * grub-core/disk/pata.c: ... here.
11443 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11444 (grub_scsi_iterate): Use grub_scsi_names.
11445 (grub_scsi_open): Likewise.
11446 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11447 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11448 (grub_ata_regs_t): New struct.
11449 (grub_disk_ata_pass_through_parms): Likewise.
11450 (grub_ata_device): Renamed to ...
11451 (grub_ata): ... this.
11452 (grub_ata_dev): New struct.
11453 Removed all low-level inline functions.
11454 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11455 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11456 iterate hooks and open. All users updated.
11457 * util/grub-install.in: Handle AHCI disk module.
11458
11459 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11460
11461 Add support for DRI and RSTn markers in JPEG files.
11462
11463 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11464 (JPEG_MARKER_RST0): Likewise.
11465 (JPEG_MARKER_RST1): Likewise.
11466 (JPEG_MARKER_RST2): Likewise.
11467 (JPEG_MARKER_RST3): Likewise.
11468 (JPEG_MARKER_RST4): Likewise.
11469 (JPEG_MARKER_RST5): Likewise.
11470 (JPEG_MARKER_RST6): Likewise.
11471 (JPEG_MARKER_RST7): Likewise.
11472 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11473 (grub_jpeg_decode_dri): New function.
11474 (grub_jpeg_decode_sos): Move image data related part into
11475 grub_jpeg_decode_data function.
11476 (grub_jpeg_decode_data): New function.
11477 (grub_jpeg_reset): New function.
11478 (grub_jpeg_decode_jpeg): Handle new markers.
11479
11480 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * util/ieee1275/ofpath.c (check_sas): Close fd.
11483 (main): Free of_path.
11484 Reported by: David Volgyes <dvolgyes>.
11485
11486 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11487
11488 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11489 Reported by: David Volgyes <dvolgyes>.
11490
11491 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11492
11493 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11494 file after stat.
11495 Reported by: David Volgyes <dvolgyes>.
11496
11497 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11498
11499 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11500
11501 Reported by: David Volgyes <dvolgyes>.
11502
11503 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11506 Prevent memory leak.
11507
11508 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11509
11510 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11511 (main): Close file.
11512 Reported by: David Volgyes <dvolgyes>.
11513
11514 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11515
11516 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11517 to continue if allocation is failed.
11518
11519 Reported by: David Volgyes <dvolgyes>.
11520
11521 2011-06-23 David Volgyes <dvolgyes>
11522
11523 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11524 dereference.
11525
11526 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 Fix spurious warning.
11529
11530 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11531 (acorn_partition_map_find): Use .bin member.
11532
11533 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11534
11535 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11536 /dev/root as a valid device.
11537
11538 2011-06-23 Jim Meyering <meyering@redhat.com>
11539
11540 Avoid NULL deref in grub_device_open.
11541
11542 * grub-core/kern/device.c (grub_device_open): Don't dereference
11543 a NULL pointer upon failed grub_env_get.
11544
11545 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11546
11547 Support non-512B sectors and agglomerate reads.
11548
11549 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11550 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11551 (disk_io_guid): Removed.
11552 (make_devices): Locate solely by BlockIO.
11553 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11554 (grub_efidisk_read): Use read_blocks.
11555 (grub_efidisk_write): Use write_blocks.
11556 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11557 log_sector_size.
11558 (get_safe_sectors): Handle non-512B sectors.
11559 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11560 sectors.
11561 (grub_biosdisk_write): Handle non-512B sectors.
11562 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11563 (grub_scsi_read): Remove special non-512B block handling (now handled
11564 one level up).
11565 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11566 and do sanity checks.
11567 (grub_disk_adjust_range): Handle non-512B sectors.
11568 (transform_sector): New function.
11569 (grub_disk_read_small): Likewise.
11570 (grub_disk_read): Rewritten.
11571 (grub_disk_write): Handle non-512B sectors.
11572 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11573 log_sector_size.
11574 (open_device): Use log_sector_size.
11575 (grub_util_biosdisk_read): Likewise.
11576 (grub_util_biosdisk_write): Likewise.
11577 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11578 non-512B sectors.
11579 (pc_partition_map_embed): Likewise.
11580 * include/grub/disk.h (grub_disk): New field log_sector_size.
11581 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11582 (GRUB_DISK_CACHE_BITS): Increased to 6.
11583 * util/grub-fstest.c (fstest): New command testload.
11584 (argp_parser): Likewise.
11585
11586 2011-06-16 Robert Millan <rmh@gnu.org>
11587
11588 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11589 `ata' driver on kernel of FreeBSD 9.
11590
11591 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11592 (get_ataraid_disk_name): New functions.
11593 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11594 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11595 get_ataraid_disk_name() and get_ada_disk_name().
11596
11597 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11598
11599 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11600 input format.
11601
11602 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11603
11604 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11605 `ftp.gnu.org' for `alpha.gnu.org'.
11606
11607 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11608
11609 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11610 partitions under /dev/disk/by-id/.
11611
11612 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11613
11614 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11615 after ten consecutive open failures. Scanning all the way up to
11616 10000 is excessive and can cause serious performance problems in
11617 some configurations.
11618 Fixes Ubuntu bug #787461.
11619
11620 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11621
11622 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11623 opening new one.
11624
11625 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11626 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11627
11628 Don't stat devices unless we have to.
11629
11630 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11631 dir == /dev/mapper.
11632 (grub_guess_root_device): Use already known os_dev if possible.
11633 * grub-core/kern/emu/hostdisk.c
11634 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11635 if device is known to be a dm one.
11636
11637 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11638
11639 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11640 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11641 Reported by: Pawel Tecza.
11642
11643 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11644
11645 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11646 (lsefisystab): Likewise.
11647 (lssal): Likewise.
11648 (lsefimmap): Likewise.
11649 (hdparm): Enable on qemu-mips.
11650 (setjmp): Add ia64 nodist.
11651 (serial): Simplify tags.
11652
11653 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11654
11655 * Makefile.util.def (grub-ofpathname): Install manual page.
11656
11657 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11658
11659 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11660
11661 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11662
11663 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11664
11665 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11668 into dprintf.
11669
11670 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 Use full 64-bit division.
11673
11674 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11675 (grub_divmod64): ... this.
11676 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11677 version.
11678
11679 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11680
11681 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11682 `source'.
11683
11684 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11685
11686 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11687 to avoid accidents when debugging with 'sh -x'.
11688 * grub-core/gensyminfo.sh.in: Likewise.
11689 * tests/example_scripted_test.in: Likewise.
11690 * tests/grub_cmd_regexp.in: Likewise.
11691 * tests/grub_script_blanklines.in: Likewise.
11692 * tests/grub_script_dollar.in: Likewise.
11693 * tests/grub_script_expansion.in: Likewise.
11694 * tests/grub_script_final_semicolon.in: Likewise.
11695 * tests/partmap_test.in: Likewise.
11696 * tests/util/grub-shell-tester.in: Likewise.
11697 * tests/util/grub-shell.in: Likewise.
11698
11699 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11700
11701 Move gfxmenu color handling to video, so that gfxterm can use it
11702 too.
11703
11704 * grub-core/gfxmenu/named_colors.c: Move to ...
11705 * grub-core/video/colors.c: ... here. Rename
11706 grub_gui_get_named_color to grub_video_get_named_color.
11707 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11708 * grub-core/video/colors.c (my_isxdigit): ... here.
11709 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11710 Move to ...
11711 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11712 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11713 to ...
11714 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11715
11716 * include/grub/gui.h (grub_gui_color_t): Move to ...
11717 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11718 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11719 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11720 * include/grub/gui.h (grub_gui_map_color): Move to ...
11721 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11722 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11723 to ...
11724 * include/grub/video.h (grub_video_get_named_color): ... here.
11725 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11726 * include/grub/video.h (grub_video_parse_color): ... here.
11727
11728 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11729 video/colors.c.
11730 (gfxmenu): Remove gfxmenu/named_colors.c.
11731 (video) [videomodules]: Add video/colors.c.
11732
11733 Add a background_color command.
11734
11735 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11736 function.
11737 (GRUB_MOD_INIT): Register background_color command.
11738 (GRUB_MOD_FINI): Unregister background_color command.
11739 (redraw_screen_rect): Allow blend/replace of text layer to be
11740 controlled independently from whether there is a background bitmap.
11741 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11742 changing bitmap.
11743
11744 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 Patch BPB in ntldr and chainloader --bpb.
11747
11748 * grub-core/fs/fat.c: Include grub/fat.h.
11749 (grub_fat_bpb): Moved to ...
11750 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11751 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11752 grub/ntfs.h.
11753 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11754 Moved from here...
11755 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11756 here.
11757 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11758 New function.
11759 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11760 (GRUB_MOD_INIT): Show --bpb.
11761 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11762 * grub-core/normal/main.c (features): New variable.
11763 (GRUB_MOD_INIT): Set feature_* variables.
11764 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11765 proto.
11766 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11767
11768 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11769
11770 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11771 for cleanness.
11772
11773 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11774
11775 FreeDOS direct loading support.
11776
11777 * docs/grub.texi (Supported OS): Add FreeDOS.
11778 * grub-core/Makefile.core.def (freedos): New module.
11779 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11780 variable.
11781 (grub_relocator16_boot): Handle %ebx.
11782 * grub-core/lib/i386/relocator16.S: Likewise.
11783 * grub-core/loader/i386/pc/freedos.c: New file.
11784
11785 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11786
11787 Long Linux command line support.
11788
11789 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11790 (maximal_cmdline_size): New variable.
11791 (allocate_pages): Use maximal_cmdline_size.
11792 (grub_cmd_linux): Set and use maximal_cmdline_size.
11793 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11794 (allocate_pages): Use maximal_cmdline_size.
11795 (grub_cmd_linux): Set and use maximal_cmdline_size.
11796 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11797 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11798 and cmdline_size.
11799
11800 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11801 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11802
11803 Improve devmapper support
11804
11805 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11806 (grub_util_is_lvm): New function.
11807 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11808 than lvm if not dmraid.
11809 Handle mapped md nodes.
11810 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11811 (grub_util_device_is_mapped): ... this. Make always available. All users
11812 updated.
11813 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11814 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11815 dmraid nodes.
11816 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11817
11818 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11819
11820 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11821
11822 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11823 * grub-core/modinfo.sh.in: New file.
11824 * grub-core/Makefile.core.def (modinfo.sh): New script.
11825 * util/grub-mknetdir.in: Use modinfo.sh.
11826 * util/grub-mkrescue.in: Likewise.
11827
11828 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11829
11830 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11831 Fix potential usage of Elf32 instead of Elf64 when compiling on
11832 32-bit architecture. Add endianness macros while on it.
11833
11834 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11835
11836 Use mipsel- rather than mips- in directories involving mipsel ports to
11837 allow both endiannesses coexist.
11838
11839 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11840 mips. All conditions adjusted.
11841 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11842 variable.
11843 * util/grub-install.in: Adjust conditions to take renaming into account.
11844 * util/grub-mkimage.c (image_targets): Likewise. New target
11845 mips-qemu_mips-elf for bigendian mips.
11846
11847 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 Avoid unnecessary copying on MIPS.
11850
11851 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11852 early if src == dest.
11853 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11854 compression is none.
11855
11856 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11857
11858 Reduce memory footprint on SGI by putting modules before the kernel
11859 as opposed to after.
11860
11861 * grub-core/Makefile.core.def (kernel): Increase linking address.
11862 (none_decompress): Likewise.
11863 (xz_decompress): Likewise.
11864 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11865 address.
11866 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11867 layout change.
11868 (grub_arch_modules_addr): New function.
11869 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11870 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11871 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11872 here.
11873 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11874 (grub_total_modules_size): ... this. Make global.
11875 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11876 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11877 New definition.
11878 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11879 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11880 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11881 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11882 * util/grub-mkimage.c (image_target_desc): New flag
11883 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11884 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11885 (generate_image): Handle images with modules before kernel.
11886
11887 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 Prevent potential loss of memory map by overwrite on qemu-mips.
11890
11891 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11892 Save ram size in $s4.
11893 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11894 All users changed to grub_arch_memsize.
11895 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11896 Loongson.
11897 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11898 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11899 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11900 external variable.
11901
11902 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11903
11904 * .bzrignore: Remove grub-dumpbios.
11905
11906 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11907
11908 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11909 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11910 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11911 existing options which append).
11912 * docs/grub.texi (Simple configuration): Document new options.
11913 Reported by: Ian Jackson. Fixes Debian bug #617538.
11914
11915 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11916
11917 * util/grub-fstest.c (cmd_cat): New function.
11918 (fstest): Handle CMD_CAT.
11919 (options): Add cat.
11920 (argp_parser): Handle cat.
11921
11922 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11923
11924 * Makefile.util.def (grub-bin2h): Don't install.
11925 * docs/man/grub-bin2h.h2m: Remove.
11926
11927 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11928
11929 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11930 place.
11931
11932 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11933
11934 Reenable qemu-mips port.
11935
11936 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
11937 Fix small arc bug while on it.
11938 * gentpl.py: Handle qemu_mips.
11939 * grub-core/Makefile.am: Likewise.
11940 * grub-core/Makefile.core.def: Likewise.
11941 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
11942 inappropriate includes.
11943 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
11944 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
11945 * grub-core/kern/main.c (grub_modules_get_end)
11946 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
11947 * grub-core/kern/mips/qemu-mips: Moved to ..
11948 * grub-core/kern/mips/qemu_mips: ... this.
11949 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
11950 (grub_machine_init): Call terminfo_init and serial_init.
11951 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
11952 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11953 New variable.
11954 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
11955 parameter passing.
11956 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
11957 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
11958 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
11959 * include/grub/mips/qemu_mips/cmos.h: New file.
11960 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
11961 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
11962 Removed.
11963 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
11964 Use correct mips-style address.
11965 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
11966 (GRUB_TICKS_PER_SECOND): Removed.
11967 (grub_get_rtc): Likewise.
11968 (grub_cpu_idle): Likewise.
11969 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
11970 New definition.
11971 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
11972 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
11973 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
11974 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
11975 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11976 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11977 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
11978 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
11979
11980 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11981
11982 SGI ARCS port.
11983
11984 * Makefile.util.def (libgrubmods.a): Add dvh.c.
11985 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
11986 platforms.
11987 * configure.ac: New target mips-arc.
11988 * gentpl.py: Likewise.
11989 * grub-core/Makefile.am: Likewise.
11990 * grub-core/Makefile.core.def: Likewise.
11991 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
11992 (none_decompress): Likewise.
11993 (lsdev): New module.
11994 (datetime): Use lib/arc/datetime.c on ARC.
11995 (part_dvh): New module.
11996 * grub-core/commands/arc/lsdev.c: New file.
11997 * grub-core/disk/arc/arcdisk.c: Likewise.
11998 * grub-core/kern/mips/arc/init.c: Likewise.
11999 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12000 aligned addresses.
12001 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12002 support.
12003 (grub_arch_dl_relocate_symbols): Likewise.
12004 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12005 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12006 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12007 platforms.
12008 * grub-core/lib/arc/datetime.c: New file.
12009 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12010 pci.h on non-loongson.
12011 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12012 (grub_linux_boot): Set unused registers to 0.
12013 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12014 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12015 * grub-core/mmap/mips/uppermem.c: ...here.
12016 * grub-core/partmap/dvh.c: New file.
12017 * grub-core/term/arc/console.c: Likewise.
12018 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12019 (grub_terminfo_set_current): Add terminal "arc".
12020 (grub_terminfo_readkey): Support ARC sequences.
12021 * include/grub/arc/arc.h: New file.
12022 * include/grub/arc/console.h: Likewise.
12023 * include/grub/disk.h (grub_disk_dev_id): Add
12024 GRUB_DISK_DEVICE_ARCDISK_ID.
12025 * include/grub/mips/arc/kernel.h: New file.
12026 * include/grub/mips/arc/memory.h: Likewise.
12027 * include/grub/mips/arc/time.h: Likewise.
12028 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12029 * include/grub/mips/kernel.h (grub_halt): ... here.
12030 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12031 here...
12032 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12033 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12034 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12035 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12036 proto.
12037 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12038 from here ...
12039 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12040 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12041 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12042 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12043 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12044 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12045 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12046 (grub_phys_addr_t): Moved from here ...
12047 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12048 (grub_vtop): Moved from here ...
12049 * include/grub/mips/memory.h (grub_vtop): ... here.
12050 (grub_map_memory): Moved from here ...
12051 * include/grub/mips/memory.h (grub_map_memory): ... here.
12052 (grub_unmap_memory): Moved from here ...
12053 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12054 (grub_machine_mmap_iterate): Moved from here ...
12055 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12056 (grub_mmap_get_lower): Moved from here ...
12057 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12058 (grub_mmap_get_upper): Moved from here ...
12059 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12060 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12061 here ...
12062 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12063 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12064 here ...
12065 * include/grub/mips/time.h (grub_get_rtc): ... here.
12066 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12067 here ...
12068 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12069 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12070 here ...
12071 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12072 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12073 definition.
12074 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12075 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12076 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12077 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12078 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12079 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12080 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12081 (GRUB_MACHINE_LINK_ADDR): Likewise.
12082 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12083 to 6.
12084 * util/grub-install.in: Run dvhtool on ARC.
12085 * util/grub-mkimage.c (image_targets): Add mips-arc.
12086 (generate_image): Handle ECOFF output for mips-arc.
12087
12088 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12091 blocks.
12092
12093 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12096 after enabling port.
12097
12098 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 Skip incorrect USB devices.
12101
12102 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12103 configcnt == 0.
12104 * include/grub/usb.h (grub_usb_err_t): New enum value
12105 GRUB_USB_ERR_BADDEVICE.
12106
12107 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12108
12109 Fuloong video init support.
12110
12111 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12112 well.
12113 (grub_vga_read_arx): New function.
12114 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12115 definition.
12116 (framebuffer): New members io, mmioptr and mmiobase.
12117 (read_sis_cmd): New function.
12118 (write_sis_cmd): Likewise.
12119 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12120 rather than 640x400.
12121 * grub-core/video/sis315_init.c: New file.
12122
12123 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12124
12125 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12126 non-loongson.
12127 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12128 to grub_dl_register_symbol.
12129
12130 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12131
12132 Fix compilation errors.
12133
12134 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12135 potentially unused.
12136 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12137 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12138 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12139 to loongson machines.
12140
12141 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12142
12143 Several FS mtime support.
12144
12145 * grub-core/fs/affs.c (grub_affs_time): New struct.
12146 (grub_affs_file): New field mtime.
12147 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12148 type. Removed 'size'. New field 'di'. All users updated.
12149 (grub_affs_mount): Simplify checsum checking.
12150 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12151 (grub_affs_dir): Handle mtime.
12152 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12153 (grub_cpio_dir): Likewise.
12154 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12155 (grub_hfs_filerec): New field mtime.
12156 (grub_hfs_dir): Handle mtime.
12157 (grub_hfs_mtime): New function.
12158 (grub_hfs_fs): Register grub_hfs_mtime.
12159 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12160 (grub_iso9660_dir): New field mtime.
12161 (grub_fshelp_node): New field dirent.
12162 (iso9660_to_unixtime): New function.
12163 (iso9660_to_unixtime2): Likewise.
12164 (grub_iso9660_read_symlink): Use node->dirent.
12165 (grub_iso9660_iterate_dir): Likewise.
12166 (grub_iso9660_dir): Set mtime.
12167 (grub_iso9660_mtime): New function.
12168 (grub_iso9660_fs): Register grub_iso9660_mtime.
12169 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12170 (grub_jfs_inode): New fields atime, ctime and mtime.
12171 (grub_jfs_dir): Set mtime.
12172 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12173 * grub-core/fs/ntfs.c (list_file): Set mtime.
12174 (grub_ntfs_dir): Likewise.
12175 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12176 (grub_reiserfs_iterate_dir): Set mtime.
12177 (grub_reiserfs_dir): Likewise.
12178 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12179 (grub_fshelp_node): Likewise.
12180 (grub_sfs_iterate_dir): Set mtime.
12181 (grub_sfs_dir): Likewise.
12182 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12183 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12184 (grub_xfs_inode): New fields atime, mtime, ctime.
12185 (grub_xfs_dir): Set mtime.
12186 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12187 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12188 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12189
12190 Support UDF symlinks.
12191
12192 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12193 (grub_ufs_read_symlink): New function. All users updated.
12194
12195 Check amiga partmap checksum.
12196
12197 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12198 (grub_amiga_partition): Likewise.
12199 (amiga_partition_map_checksum): New function.
12200 (amiga_partition_map_iterate): Check checksum.
12201
12202 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12203
12204 ROMFS support.
12205
12206 * Makefile.util.def (libgrubmods.a): Add romfs.
12207 * grub-core/Makefile.core.def (romfs): New module.
12208 * grub-core/fs/romfs.c: New file.
12209
12210 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12211
12212 Squashfs v4 support.
12213
12214 * Makefile.util.def (libgrubmods.a): Add squash4.
12215 * grub-core/Makefile.core.def (squash4): New module.
12216 * grub-core/fs/squash4.c: New file.
12217 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12218 disk_input_start, disk_input.
12219 (get_byte): Handle disk_input.
12220 (grub_zlib_disk_read): New function.
12221 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12222
12223 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12224 2011-05-15 Feiran Zheng <famcool@gmail.com>
12225
12226 * Makefile.util.def (libgrubmods.a): Add minix3.
12227 * grub-core/Makefile.core.def (minix3): New module.
12228 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12229 (GRUB_MINIX_BSIZE): Removed.
12230 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12231 (grub_minix_ino_t): New type.
12232 (grub_minix_le_to_cpu_ino): New macro.
12233 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12234 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12235 (grub_minix_data): New field block_size.
12236 (grub_minix_read_file): Handle 64-bit correctly.
12237 * grub-core/fs/minix3.c: New file.
12238
12239 2011-05-15 Tristan Gingold <gingold@free.fr>
12240 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12241 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12242
12243 IA64 support.
12244
12245 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12246 * configure.ac: Add ia64-efi target.
12247 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12248 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12249 * gentpl.py: Add ia64_efi platform.
12250 Rename x86_efi to efi and Add ia64-efi. All users updated.
12251 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12252 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12253 Remove kern/generic/rtc_get_time_ms.c on EFI.
12254 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12255 kern/ia64/dl_helper.c on ia64-efi.
12256 Add kern/emu/cache.c on emu.
12257 (linux): Use on loader/ia64/efi/linux.c on ia64.
12258 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12259 whether symbol is a function.
12260 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12261 (grub_symbol): New field 'isfunc'.
12262 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12263 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12264 (grub_dl_load_segments): Place all sections into the same region.
12265 [__ia64__]: Create trampolines and got.
12266 [GRUB_MACHINE_EMU]: Call mprotect.
12267 (grub_dl_resolve_symbols): Resolve symbol type as well.
12268 [__ia64__]: Create function descriptors.
12269 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12270 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12271 (grub_get_rtc): New function.
12272 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12273 * grub-core/kern/emu/cache.S: Renamed to ...
12274 * grub-core/kern/emu/cache_s.S: ... this.
12275 [__ia64__]: Add a nop.
12276 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12277 [__ia64__]: New function.
12278 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12279 * grub-core/kern/ia64/dl.c: New file.
12280 * grub-core/kern/ia64/dl_helper.c: Likewise.
12281 * grub-core/kern/ia64/efi/init.c: New file.
12282 * grub-core/kern/ia64/efi/startup.S: Likewise.
12283 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12284 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12285 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12286 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12287 * grub-core/loader/ia64/efi/linux.c: New file.
12288 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12289 (GRUB_MOD_DEP): Likewise.
12290 (grub_dl) [__ia64__]: New fields got and tramp.
12291 (grub_dl): New field 'base'.
12292 (grub_dl_register_symbol): New argument isfunc. All users updated.
12293 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12294 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12295 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12296 (grub_ia64_dl_get_tramp_got_size): New proto.
12297 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12298 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12299 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12300 * include/grub/efi/api.h: Skip call wrappers on ia64.
12301 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12302 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12303 * include/grub/elf.h (ELF_ST_INFO): New definition.
12304 * include/grub/ia64/efi/kernel.h: New file.
12305 * include/grub/ia64/efi/memory.h: Likewise.
12306 * include/grub/ia64/efi/time.h: Likewise.
12307 * include/grub/ia64/kernel.h: Likewise.
12308 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12309 * include/grub/ia64/time.h: New file.
12310 * include/grub/ia64/types.h: Likewise.
12311 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12312 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12313 New protos.
12314 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12315 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12316 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12317 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12318 All users updated.
12319 (EFI64_HEADER_SIZE): New definition. All users updated.
12320 (image_targets): Add ia64-efi.
12321 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12322 jumpers_addr. All users updated.
12323 Create function descriptors.
12324 (count_funcs): New function.
12325 (unaligned_uint32): New struct.
12326 (MASK20): New definition.
12327 (MASK19): Likewise.
12328 (MASKF21): Likewise.
12329 (add_value_to_slot_20b): New function.
12330 (add_value_to_slot_21_real): Likewise.
12331 (add_value_to_slot_21): Likewise.
12332 (ia64_kernel_trampoline): New struct.
12333 (nopm): New variable.
12334 (jump): Likewise.
12335 (make_trampoline): New function.
12336 (relocate_addresses): Handle ia64.
12337 (make_reloc_section): Likewise.
12338 (load_image): Likewise.
12339
12340 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12343 warning. Move variables before code while on it.
12344
12345 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12346
12347 Fuloong support.
12348
12349 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12350 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12351 * grub-core/boot/mips/loongson/fuloong.S: New file.
12352 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12353 Explicitly init CS5536.
12354 [FULOONG]: Don't use serial until CS5536 is available.
12355 Set GPIO based on dumps.
12356 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12357 [FULOONG]: Handle GPIO and memory controller differences.
12358 Parse machine type in $a2.
12359 * grub-core/boot/mips/startup_raw.S: Determine and save the
12360 architecture.
12361 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12362 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12363 init on architecture type.
12364 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12365 SIS315E. Don't init at_keyboard on fuloong.
12366 (grub_halt): Support Fuloong.
12367 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12368 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12369 (loongson_machtypes): New array.
12370 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12371 type.
12372 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12373 config. All users updated. Handle CS5536 serial.
12374 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12375 default port on machine type. Register serial as inactive.
12376 * grub-core/video/sis315pro.c: New file.
12377 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12378 definition.
12379 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12380 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12381 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12382 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12383 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12384 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12385 to ...
12386 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12387 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12388 definition.
12389 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12390 (grub_arch_machine): New extern var.
12391 * include/grub/mips/loongson/serial.h
12392 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12393 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12394 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12395 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12396 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12397 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12398 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12399 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12400 * include/grub/term.h (grub_term_register_input_inactive): New inline
12401 function.
12402 (grub_term_register_output_inactive): Likewise.
12403 * include/grub/video.h (grub_video_driver_id): New value
12404 GRUB_VIDEO_DRIVER_SIS315PRO.
12405 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12406 New field "names". All users updated.
12407 New field value IMAGE_FULOONG_FLASH.
12408 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12409
12410 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12411
12412 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12413 and add some clarification.
12414
12415 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12418 platforms if kernel is compressed.
12419
12420 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12423 unused modules since currently referrence counter isn't reliable and
12424 there isn't much memory to recover there anyway.
12425
12426 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12427
12428 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12429 rather than resetting it to allow modules to reference themselves
12430 in init.
12431
12432 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12433
12434 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12435 counter on dependencies since grub_dl_unref already handles this.
12436
12437 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12438
12439 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12440 on error if not already done.
12441
12442 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12443
12444 Fix few potential memory misusage.
12445
12446 * grub-core/font/font.c (load_font_index): Don't free char_index to
12447 avoid double free.
12448 (grub_font_load): Zero-fill font at alloc for safety.
12449 Close file on error.
12450 (free_font): Free bmp_idx.
12451
12452 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12453
12454 * docs/grub.texi (Installation): Fix several outdated claims.
12455
12456 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12457
12458 Handle module_license on windows.
12459
12460 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12461 sections shifted.
12462 (insert_string): Make argument const char * instead of char *.
12463 (write_section_data): Handle long section names.
12464 Handle module_license.
12465
12466 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12467
12468 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12469 handle class-free menuentries.
12470 (grub_normal_add_menu_entry): Add a check to be sure.
12471
12472 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12473
12474 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12475 PgUp and PgDown.
12476
12477 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12478
12479 * configure.ac: Bump version to 1.99.
12480
12481 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 Give ATA device a bit more time on first try in order to allow disks
12484 to spin up.
12485
12486 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12487 if dev->present is 1. Reset dev->present on failure.
12488 (grub_ata_device_initialize): Set dev->present to 1.
12489 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12490 (grub_ata_device): New member 'present'.
12491
12492 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12493
12494 * util/grub-mkimage.c (generate_image): Update hash.
12495
12496 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12497
12498 Flush caches on DMA memory.
12499
12500 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12501 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12502 (grub_dma_free): Likewise.
12503 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12504
12505 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12508 to avoid asm treating ld and sd as macros.
12509
12510 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12513 decompressor.
12514
12515 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12516
12517 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12518 grub_decompress_core since later would fail if grub_decompress_core
12519 is too far.
12520
12521 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12522
12523 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12524 R_MIPS_JALR since it's used by newer compiler.
12525
12526 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12527
12528 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12529
12530 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12531
12532 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12533 file_path to 0 for surety.
12534 (grub_chainloader_boot): Set exit_data to NULL.
12535 Unset the loader once done.
12536 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12537
12538 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12539
12540 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12541 unknown key into a dprintf.
12542
12543 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12544
12545 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12546 on first non-existant partition.
12547
12548 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12549
12550 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12551 openning fails.
12552 Reported by: Mark Korenberg.
12553
12554 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12555
12556 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12557 overflow.
12558
12559 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12560
12561 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12562 before closing to ensure that it will be readable by grub-setup.
12563
12564 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12565
12566 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12567 (devpath_1): Use MAKE_PIWG_PATH.
12568 (devpath_2): Likewise.
12569 (devpath_3): Likewise.
12570 (devpath_4): Likewise.
12571 (devpath_5): Likewise.
12572 (devpath_6): Likewise.
12573
12574 The appleldr.mod was checked that to be binary identical to previous
12575 version.
12576
12577 2011-05-05 Zach <mikezackles>
12578
12579 Support 2010 Macbooks.
12580
12581 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12582 (devs): Add devpath_6.
12583
12584 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12585
12586 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12587 /dev/random. /dev/urandom is good enough for our purposes (salting).
12588
12589 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12590
12591 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12592
12593 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12594
12595 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12596 hexadecimal.
12597
12598 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12599
12600 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12601 and not 0 on failure.
12602
12603 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12604
12605 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12606 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12607 disk; otherwise grub_fs_probe will not fall back to the next
12608 filesystem.
12609 (grub_pxefs_open): Likewise, for consistency.
12610 Reported and tested by: Ezekiel Grave.
12611
12612 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12613
12614 * tests/partmap_test.in: Don't hardcode path to parted.
12615 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12616
12617 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12618
12619 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12620 of `ls' to find out which devices are available.
12621
12622 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12623
12624 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12625 than source address for efi mmap buffer.
12626
12627 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12628
12629 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12630 wrong action on non-detecting the magic.
12631
12632 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12635 already supplied by another part of the module (fixes compilation on
12636 FreeBSD).
12637
12638 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12639
12640 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12641 match the one used by mdadm.
12642
12643 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12644
12645 * po/README: Add instructions for creating po/LINGUAS.
12646
12647 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12648
12649 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12650 #551428.
12651
12652 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12653 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12654 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12655 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12656 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12657 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12658 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12659 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12660 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12661 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12662 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12663 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12664 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12665 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12666 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12667 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12668 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12669 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12670 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12671 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12672 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12673 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12674
12675 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12676
12677 * grub-core/kern/emu/getroot.c
12678 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12679 test that was incorrectly reintroduced in r3214.
12680 Reported by: Ian Dall. Fixes Savannah bug #33133.
12681
12682 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12683
12684 Fix stack pointer handling in 16-bit relocator.
12685
12686 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12687 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12688 Fixes Ubuntu bug #683904.
12689
12690 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12691
12692 * configure.ac: Bump version to 1.99~rc2.
12693
12694 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12695
12696 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12697 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12698 * grub-core/lib/x86_64/setjmp.S: Likewise.
12699 * grub-core/lib/mips/setjmp.S: Likewise.
12700 * grub-core/lib/powerpc/setjmp.S: Likewise.
12701 * grub-core/lib/sparc64/setjmp.S: Likewise.
12702
12703 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12706 * grub-core/lib/efi/datetime.c: Likewise.
12707
12708 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12709
12710 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12711 New function.
12712 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12713 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12714 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12715
12716 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12717
12718 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12719 bitmap.
12720 (grub_gfxterm_term_init): Likewise.
12721
12722 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 Take into account the decorations the computing menu entry width.
12725
12726 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12727 (grub_gfxmenu_create_box): Register get_border_width.
12728 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12729 if available.
12730 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12731 get_border_width.
12732
12733 2011-04-18 Endres Puschner <code@e7p.de>
12734
12735 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12736 Don't skip first class.
12737
12738 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12741 chunks.
12742 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12743
12744 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12745
12746 Complete 64-bit division support.
12747
12748 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12749 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12750 * include/grub/misc.h (grub_divmod64): Rename to ...
12751 (grub_divmod64_full): ... this.
12752 (grub_divmod64): New inline function.
12753
12754 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12755
12756 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12757
12758 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12761 performing the necessary test.
12762
12763 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12764
12765 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12766 (kfreebsd.elf): Likewise.
12767 (pc-chainloader.elf): Likewise.
12768 (ntldr.elf): Likewise.
12769
12770 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 Identify RAID by its UUID rather than (guessed) name.
12773
12774 * grub-core/disk/raid.c (ascii2hex): New function.
12775 (grub_raid_open): Accept mduuid/%s specification.
12776 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12777 (get_mdadm_uuid): ... this.
12778 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12779
12780 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12781
12782 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12783 to negative size.
12784
12785 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12786
12787 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12788 btrfs subvolume.
12789 * util/grub.d/20_linux_xen.in: Likewise.
12790
12791 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12792
12793 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12794 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12795
12796 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12797 Build a list of relevant visible mounts using the mnt_id and
12798 parent_mnt_id fields, and then scan that list at the end.
12799
12800 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12801
12802 * docs/grub.texi (normal): New section.
12803 (normal_exit): New section.
12804 (Embedded configuration): Add reference to normal.
12805 (GRUB only offers a rescue shell): Likewise.
12806 * docs/grub-dev.texi (Error Handling): Fix typo.
12807
12808 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12809
12810 * NEWS: Drop obsolete entry about probe-only btrfs support.
12811
12812 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12813
12814 * util/import_gcry.py: Fix typo.
12815
12816 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12817
12818 * NEWS: Add btrfs support.
12819
12820 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12821 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12822
12823 BtrFS support. Written by me (Vladimir) with important bugfixes and
12824 even more important testing by Colin.
12825
12826 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12827 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12828 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12829 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12830 mem_input_off and mem_input. All users updated to accept in-RAM input.
12831 (gzio_seek): New function.
12832 (test_zlib_header): Likewise.
12833 (grub_gzio_read): Likewise.
12834 (grub_zlib_decompress): Likewise.
12835 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12836 Accept partial and non-virtual mounts.
12837 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12838 avoid receiving /dev/dm-X as device.
12839 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12840 Handle bind and partial mounts.
12841 * grub-core/lib/crc.c: New file.
12842 * include/grub/deflate.h: Likewise.
12843 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12844 proto.
12845 * include/grub/lib/crc.h: New file.
12846
12847 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12848
12849 Implement automatic module license checking according to new GNU
12850 guidelines.
12851
12852 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12853 (grub_dl_load_core): Use grub_dl_check_license.
12854 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12855 (GRUB_MOD_LICENSE): Likewise.
12856 (GRUB_MOD_DUAL_LICENSE): Likewise.
12857 All modules updated.
12858
12859 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12860
12861 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12862 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12863 loaders.
12864 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12865
12866 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12867
12868 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12869
12870 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12873 failed.
12874
12875 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12876
12877 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12878 parenthesis in the middle of the filename.
12879
12880 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12883 rather than trying to put initrd way too high.
12884 Reported by: Ryan Lortie <desrt@desrt.ca>
12885
12886 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12887
12888 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12889 improperly removed string.
12890
12891 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12892
12893 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12894 is_disk.
12895 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12896 (open_device) Likewise.
12897 (grub_util_biosdisk_close): Likewise.
12898 Reported by: Mark Korenberg.
12899
12900 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12901
12902 * util/grub-mkconfig_lib.in: Add missing quotes.
12903
12904 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12905
12906 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12907 is NULL.
12908
12909 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12910
12911 Dynamically count the number of lines for the lower banner.
12912
12913 * grub-core/normal/menu_entry.c (per_term_screen): New member
12914 num_entries.
12915 (print_down): Use num_entries.
12916 (update_screen): Likewise.
12917 (grub_menu_entry_run): Set num_entries.
12918 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12919 num_entries.
12920 (grub_print_message_indented): Move real part to ...
12921 (grub_print_message_indented_real): ... here. Additional argument
12922 dry_run.
12923 (draw_border): Additional argument num_entries.
12924 (print_message): Additional argument dry_run.
12925 (print_entries): Receive menu viewer data.
12926 (grub_menu_init_page): New argment num_entries.
12927 (menu_text_set_chosen_entry): Use num_entries.
12928 (grub_menu_try_text): Likewise.
12929 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12930 All users updated.
12931 (grub_ucs4_count_lines): New function.
12932 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12933 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12934 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12935 (grub_term_border_height): Likewise.
12936 (grub_term_num_entries): Likewise.
12937
12938 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12939
12940 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
12941 Remove now unused string.
12942
12943 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12944
12945 * docs/grub-dev.texi (Finding your way around): Update for 1.99
12946 build system.
12947 (Getting started): GRUB is developed in Bazaar now, not Subversion.
12948
12949 (Comment): Fix typo.
12950 (Getting started): General copy-editing.
12951 (Typical Development Experience): Likewise.
12952 (Error Handling): Likewise.
12953 (Video API): Likewise.
12954
12955 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12956
12957 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
12958 throughout.
12959
12960 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * util/grub-mkimage.c (main): Handle special naming of yeeloong
12963 directory.
12964
12965 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12966
12967 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
12968 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
12969 "development".
12970
12971 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12972
12973 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
12974 grub_strcpy since the lines aren't necessarily 0-terminated.
12975
12976 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12977
12978 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
12979 root on legacy.
12980
12981 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12982
12983 * grub-core/commands/probe.c (options): Argument to set isn't optional.
12984 (GRUB_MOD_INIT): DEVICE isn't optional.
12985
12986 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
12989 word on new line if it's too long anyway. Fixes a hang.
12990
12991 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
12994 const.
12995 * util/grub-setup.c (main): Reuse md device name if available.
12996 * util/raid.c (grub_util_raid_getmembers): Receive device name and
12997 not GRUB name as argument.
12998 Based on patch by: Florian Wagner <fwagner>.
12999
13000 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13001
13002 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13003 Place mbi on low memory for better compatibility.
13004
13005 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13006
13007 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13008
13009 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13010 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13011
13012 * autogen.sh: Ensure that collate and ctype locale is C.
13013 * conf/Makefile.common: Likewise.
13014
13015 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13016
13017 * grub-core/normal/menu.c: Add missing include.
13018
13019 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13022
13023 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13024
13025 * util/grub-mkconfig.in: Ignore emacsen backup.
13026
13027 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13028
13029 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13030 on open.
13031 (grub_util_biosdisk_close): Likewise.
13032
13033 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13036 const attribute and use grub_isdigit.
13037
13038 2011-04-06 Andrey <dev_null@ukr.net>
13039
13040 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13041 gcc warning.
13042
13043 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13044
13045 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13046 useful grub_dprintf's.
13047
13048 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13049
13050 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13051
13052 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13053
13054 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13055
13056 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13057
13058 Output errors if theme loading failed.
13059
13060 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13061 grub_gfxterm_fullscreen on error paths to ...
13062 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13063 theme loading error.
13064
13065 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13068 space for older compilers.
13069 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13070
13071 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13074 and report them as not RAID members since they are useless for GRUB.
13075 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13076
13077 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 Increase LVM implementation robustness in order not to crash on
13080 configurations like pvmove. Previously code assumed that in some places
13081 only lvs or only pvs are used whereas it seems that they are used
13082 interchangeably.
13083
13084 * grub-core/disk/lvm.c (read_node): New function.
13085 (read_lv): Use read_node.
13086 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13087 Match volumes only at the end when all lvs are found. Take both
13088 pvs (first) and lvs (second) into account.
13089 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13090 mirror_* into node_*. All users updated.
13091 (grub_lvm_stripe): Merge this ...
13092 (grub_lvm_mirror): ... and this ...
13093 (grub_lvm_node): ... into this. All users updated.
13094
13095 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13098 of function to allow further scanning for LVMs.
13099
13100 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13101
13102 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13103 on failed seek as it breaks open fd reusage.
13104
13105 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13106
13107 * util/grub-install.in: Add a recommendation to use --recheck before
13108 reporting bugs.
13109
13110 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13111
13112 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13113 are obtained.
13114
13115 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13116
13117 GRUB developper manual based on existing Internals section and
13118 contributions by the various authors with active copyright assignment.
13119
13120 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13121 * docs/font_char_metrics.png: New file.
13122 * docs/font_char_metrics.txt: Likewise.
13123 * docs/grub-dev.texi: Likewise.
13124 * docs/grub.texi (Internals): Move from here ...
13125 * docs/grub-dev.texi: ... here.
13126
13127 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13128
13129 Store the loopback device as data on loopback grub_disk structures,
13130 rather than the file it points to. This fixes use of freed memory
13131 if an existing loopback device is replaced.
13132
13133 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13134 disk->data, not dev->file.
13135 (grub_loopback_read): Adjust file assignment to match.
13136 Fixes Ubuntu bug #742967.
13137
13138 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13139
13140 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13141 when replacing an existing device.
13142
13143 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13144
13145 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13146 memory corruptions.
13147
13148 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13149 unsigned.
13150 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13151 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13152 (grub_jfs_read_inode): Likewise.
13153 (grub_jfs_opendir): Likewise. Remove now useless casts.
13154 (grub_jfs_getent): Likewise.
13155 Make ino a grub_uint32_t rather than int.
13156 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13157 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13158 division and module with bit operations.
13159 (grub_jfs_find_file): Make ino a grub_uint32_t.
13160 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13161
13162 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13163
13164 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13165 warning. (This was in fact always initialised before use, but GCC
13166 wasn't smart enough to prove that.)
13167 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13168
13169 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13170
13171 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13172 stack alignment.
13173 (efi_wrap_1): Likewise.
13174 (efi_wrap_2): Likewise.
13175 (efi_wrap_3): Likewise.
13176 (efi_wrap_4): Likewise.
13177 (efi_wrap_5): Likewise.
13178 (efi_wrap_6): Likewise.
13179 (efi_wrap_10): Likewise.
13180 Based on information by: Red Hat/Peter Jones.
13181
13182 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13183
13184 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13185 set-but-not-used variable.
13186
13187 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13188
13189 * docs/grub.texi (Simple configuration): Be more explicit about
13190 GRUB_DEFAULT, and add an example.
13191 Reported by: Leslie Rhorer.
13192
13193 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13194
13195 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13196 shell".
13197
13198 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13199
13200 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13201 * util/grub.d/20_linux_xen.in: Likewise.
13202
13203 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * util/grub.d/10_linux.in: Try alternative config filenames where
13206 we parse config file.
13207 * util/grub.d/20_linux_xen.in: Likewise.
13208
13209 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13210
13211 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13212 * util/grub.d/20_linux_xen.in: Likewise.
13213
13214 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * grub-core/disk/raid.c (insert_array): Add few potentially
13217 useful grub_util_info.
13218 (grub_raid_register): Likewise.
13219
13220 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13221
13222 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13223 Preserve partition number in mdadm code path.
13224
13225 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13228 few potentially useful grub_util_info.
13229
13230 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13231
13232 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13233
13234 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13235
13236 * docs/grub.texi (default): Use @example rather than nested
13237 itemized lists to avoid breaking gendocs.
13238
13239 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13240
13241 * docs/grub.texi (Future): Update.
13242
13243 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13244
13245 * docs/grub.texi (Environment): New chapter.
13246 (Changes from GRUB Legacy): Link to "Environment block" section for
13247 details of limitations.
13248 (Simple configuration): Likewise. Link to documentation of gfxmode
13249 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13250 respectively.
13251 (Shell-like scripting): Note that normal variables are stored in the
13252 environment.
13253 (gettext): Link to documentation of lang and locale_dir.
13254 (list_env): New section.
13255 (load_env): New section.
13256 (save_env): New section.
13257
13258 (Reporting bugs): Fix typo.
13259
13260 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13261
13262 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13263 the example.
13264
13265 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13266
13267 * grub-core/term/at_keyboard.c (set_scancodes)
13268 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13269
13270 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13271
13272 * docs/grub.texi (Menu-specific commands): Remove some semantics
13273 that were true in GRUB Legacy but not in GRUB 2.
13274 (submenu): New section.
13275 (false): New section.
13276 (read): New section.
13277 (true): New section.
13278
13279 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13280
13281 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13282
13283 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13284
13285 * docs/grub.texi (Simple configuration): Explain some of the
13286 current limitations of grub-mkconfig.
13287 Reported by: Leslie Rhorer.
13288
13289 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13290
13291 Old macs search for boot.efi rather than for bootia32.efi.
13292
13293 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13294 * util/grub-mkrescue.in: Likewise.
13295 Suggested by: Peter Jones.
13296
13297 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13298
13299 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13300
13301 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13304 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13305 (grub_lvm_mirror): New struct.
13306 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13307 (grub_lvm_iterate): Iterate only visible volumes.
13308 (grub_lvm_read): Factor out to ..
13309 (read_lv): ... this. Support mirrors.
13310 (grub_lvm_read): New wrapper function.
13311 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13312 stripped or mirrored.
13313
13314 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13317
13318 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13319
13320 * docs/grub.texi (loopback): New section.
13321
13322 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13323
13324 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13325 removed -p option.
13326
13327 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13328
13329 * docs/grub.texi (BIOS installation): New section, partly based on
13330 previous text in other sections.
13331 (Installing GRUB using grub-install): Replace BIOS discussion with a
13332 cross-reference.
13333 (Images): Likewise.
13334
13335 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13336
13337 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13338 [HAVE_DIOCGDINFO]: Add safety checks.
13339
13340 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13341
13342 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13343 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13344
13345 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13346
13347 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13348 real_sb->size is zero (e.g. RAID-0), get the disk size from
13349 real_sb->data_size instead.
13350 Fixes Ubuntu bug #743136.
13351
13352 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13353
13354 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13355 printf clauses for printing size and start.
13356
13357 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13358
13359 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13360 Reported and tested by: Timothy Nikkel.
13361
13362 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13363
13364 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13365 (dirty_region_add_real): ... this.
13366 (dirty_region_add): Don't discard margin refresh when performing
13367 scheduled repaint.
13368
13369 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 * grub-core/lib/relocator.c (allocate_regstart)
13372 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13373 terminals are capabple of malloc-free operation.
13374 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13375 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13376
13377 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13378
13379 * util/grub-setup.c: Copy the partition table zone if floppy support
13380 is disabled, even if no partition table is found.
13381
13382 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13383 during POST if an invalid partition table is contained in the PBR
13384 of the active partition when GRUB is installed to a partition.
13385
13386 2011-03-28 Colin Watson <cjwatson@debian.org>
13387
13388 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13389 comment.
13390
13391 2011-03-28 Colin Watson <cjwatson@debian.org>
13392
13393 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13394 to be specific about what kind of RAID device we're scanning for.
13395
13396 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13397
13398 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13399 return freed string.
13400
13401 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13404
13405 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 Use libgeom on FreeBSD to detect partitions.
13408
13409 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13410 (grub-mkrelpath): Likewise.
13411 (grub-script-check): Likewise.
13412 (grub-editenv): Likewise.
13413 (grub-mkpasswd-pbkdf2): Likewise.
13414 (grub-fstest): Likewise.
13415 (grub-mkfont): Likewise.
13416 (grub-mkdevicemap): Likewise.
13417 (grub-probe): Likewise.
13418 (grub-setup): Likewise.
13419 (grub-ofpathname): Likewise.
13420 (grub-mklayout): Likewise.
13421 (example_unit_test): Likewise.
13422 (grub-menulst2cfg): Likewise.
13423 * grub-core/Makefile.core.def (grub-emu): Likewise.
13424 (grub-emu-lite): Likewise.
13425 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13426 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13427 define HAVE_DIOCGDINFO.
13428 (follow_geom_up) [FreeBSD]: New function.
13429 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13430 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13431 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13432 unconditionally of HAVE_DIOCGDINFO.
13433
13434 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 Fix FreeBSD compilation problem.
13437
13438 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13439 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13440
13441 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13442
13443 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13444 Switch back to page zero before loading a kernel, since some kernel
13445 drivers expect that.
13446 Thanks to: Felix Kuehling.
13447
13448 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13451 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13452 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13453
13454 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13457 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13458
13459 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13460
13461 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13462 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13463 malloc is disabled.
13464
13465 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13466
13467 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13468 for modules headers when counting the needed allocation size.
13469
13470 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13473 if no ASCII character is found to prevent crash.
13474
13475 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13476
13477 * grub-core/video/bitmap.c (match_extension): Ignore case.
13478
13479 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13480
13481 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13482
13483 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13484
13485 * grub-core/script/parser.y: Declare "time" as valid argument.
13486
13487 2011-03-23 Peter Jones <pjones@redhat.com>
13488
13489 Fix incorrect assert failure reporting.
13490
13491 * grub-core/tests/example_functional_test.c (example_test): Add
13492 a failure comment.
13493 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13494 (failure_start): ...this. Check that malloc succeeded.
13495 Don't call xvasprintf. Return failure struct.
13496 (failure_append_vtext): New function.
13497 (failure_append_text): Likewise.
13498 (add_failure): Likewise.
13499 (grub_test_assert_helper): Likewise.
13500 * include/grub/test.h (grub_test_assert_helper): New declaration.
13501 (grub_test_assert): Macro rewritten.
13502
13503 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13506
13507 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13510
13511 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13514 into GRUB-style one.
13515
13516 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13517
13518 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13519 error and not grub_errno.
13520 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13521
13522 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13523
13524 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13525 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13526
13527 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 * grub-core/efiemu/i386/pc/cfgtables.c
13530 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13531 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13532 (grub_xnu_unlock): Likewise.
13533 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13534
13535 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13536
13537 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13538 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13539 * grub-core/commands/hashsum.c (aliases): Likewise.
13540 * grub-core/commands/setpci.c (pci_registers): Likewise.
13541 * grub-core/disk/usbms.c (attach_hook): Likewise.
13542 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13543 (zio_checksum_table): Likewise.
13544 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13545 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13546 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13547 * grub-core/lib/relocator.c (leftovers): Likewise.
13548 (extra_blocks): Likewise.
13549 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13550 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13551 (modules_last): Likewise.
13552 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13553 (devices): Likewise.
13554 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13555 (modules_last): Likewise.
13556 * grub-core/normal/auth.c (users): Likewise.
13557 * grub-core/normal/context.c (initial_menu): Likewise.
13558 (current_menu): Likewise.
13559 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13560 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13561 (grub_serial_terminfo_input_template): Likewise.
13562 (grub_serial_terminfo_output_template): Likewise.
13563 (grub_serial_terminfo_input): Likewise.
13564 (grub_serial_terminfo_output): Likewise.
13565 (registered): Likewise.
13566 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13567
13568 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13569
13570 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13571 grub_video_mode_type_t.
13572 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13573 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13574 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13575
13576 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13577
13578 * util/grub-install.in: Correct the x86-64 name as x86_64.
13579
13580 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13581
13582 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13583 initial chunk read from the kernel always includes GRUB's multiboot
13584 header, which is now outside the first sector.
13585
13586 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13587
13588 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13589 cached mmap_size, so that this works correctly when called multiple
13590 times.
13591 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13592
13593 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13594
13595 * docs/grub.texi (Simple configuration): Tidy up formatting.
13596
13597 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13598
13599 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13600 Set-but-not-used variable removed.
13601
13602 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 Workaround yet another IEEE1275 bug.
13605
13606 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13607 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13608 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13609 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13610 is set.
13611 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13612 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13613
13614 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13617 error.
13618
13619 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13620
13621 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13622 empty, since in that case we can only generate either nothing or a
13623 syntactically invalid configuration file.
13624 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13625
13626 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13627
13628 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13629 (Making a GRUB bootable CD-ROM): Likewise.
13630 (Invoking grub-mkrescue): New section.
13631 Reported by: Yann Dirson. Fixes Debian bug #612585.
13632
13633 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13634
13635 * util/grub-install.in: Remove unnecessary brackets from tr
13636 arguments.
13637 * util/grub.d/10_hurd.in: Likewise.
13638 * util/grub.d/10_kfreebsd.in: Likewise.
13639 * util/grub.d/10_linux.in: Likewise.
13640 * util/grub.d/20_linux_xen.in: Likewise.
13641 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13642
13643 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13644
13645 * include/grub/file.h (not_easly_seekable): Rename to ...
13646 (not_easily_seekable): ... this. Update all users.
13647
13648 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13649
13650 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13651 grub-mkrescue.
13652
13653 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13654
13655 * util/grub-mkimage.c (generate_image): Refuse to create the images
13656 bigger than the actual flash (512K) in Loongson machines. 512K is also
13657 the biggest chip supported by them.
13658
13659 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13660
13661 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13662
13663 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13664
13665 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13666 super_offset field.
13667
13668 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * util/grub-install.in: Ignore install device on platforms
13671 where it doesn't make sense. Always use UUIDs except on pc, efi and
13672 sparc64.
13673 Reported by: Daniel Kahn Gillmor.
13674
13675 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13676
13677 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13678
13679 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13680
13681 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13682 (iterate_real): Don't rely on partition being non-NULL.
13683
13684 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13685
13686 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13687 supported platforms. Put a compile time assert for this rather than
13688 generate a warning with 32-bit shift.
13689
13690 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13691
13692 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13693 logical expression more readable.
13694
13695 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13696
13697 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13698 even if some elements have a name.
13699 Reported by: Alexander GQ Gerasiov.
13700
13701 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13702
13703 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13704 path unreadable if `grub-probe -t abstraction' fails, for example if
13705 memberlist fails on an LVM volume group.
13706 Reported by: Darius Jahandarie.
13707
13708 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13709
13710 * docs/grub.texi (Simple configuration): Document
13711 GRUB_PRELOAD_MODULES.
13712
13713 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13714
13715 * .bzrignore: Remove nonexistent grub-pbkdf2.
13716
13717 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13718
13719 * configure.ac: Bump version to 1.99~rc1.
13720
13721 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13724 for safety.
13725
13726 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13729 module.
13730
13731 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13732
13733 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13734
13735 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13736
13737 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13738 diskdevid.
13739
13740 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13741
13742 Fix compilation on cygwin.
13743
13744 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13745 -R .drectve on cygwin.
13746 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13747 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13748 (COND_CYGWIN): New condition.
13749 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13750 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13751 not @TARGET_OBJ2ELF@.
13752 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13753 type to determine whether aux is to be used.
13754
13755 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13756
13757 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13758 realpath'ed device string.
13759 Handle floppy (somewhat).
13760 Issue error in unknown case rather than garbage.
13761 Reported by: Axel Beckert.
13762
13763 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13764
13765 * util/grub.d/00_header.in (load_video): Handle the case when no video
13766 drivers available.
13767 Thanks to: Axel Beckert.
13768
13769 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13770
13771 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13772 variable. Fixes problem on big endian platforms.
13773
13774 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13777 It doesn't work well there.
13778
13779 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13782 warning.
13783 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13784 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13785 counter.
13786
13787 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13788
13789 Use alias->path rather than buggy "canon".
13790
13791 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13792 (ofdisk_hash_add): New argument curcan. All users updated.
13793
13794 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13795
13796 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13797
13798 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13799
13800 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13801 loadmask before doing any calculations. Use correct type for offset.
13802 (grub_linux_load64): Likewise.
13803
13804 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13805
13806 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13807 with NULL.
13808 (console_grub_equivalences_unshift): Likewise.
13809 Reported by: Daniel Dehennin.
13810
13811 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13812
13813 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13814 (set_env_limn_ro): Likewise.
13815 (GRUB_MOD_INIT): Likewise.
13816 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13817 ARRAY_SIZE while on it.
13818 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13819 * grub-core/normal/context.c (grub_env_export): Move from here ...
13820 * grub-core/kern/env.c (grub_env_export): ... here.
13821 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13822 prefix.
13823 * grub-core/kern/main.c (grub_main): Export root and prefix.
13824 * include/grub/env.h (grub_env_export): Export.
13825 Reported by: Seth Goldberg.
13826
13827 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13830 Take into account space used by ELF sections and multiboot palette.
13831 Reported by: Grégoire Sutre.
13832
13833 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13834
13835 * BUGS: New file.
13836
13837 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13838
13839 Pass more appropriate video id to Linux.
13840
13841 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13842 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13843 fill have_vga.
13844 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13845 shift params->lfb_size.
13846 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13847
13848 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13849
13850 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13851
13852 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13853
13854 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13855 separator and pass bootpath/devid even if only one of them is available.
13856 Reported by: Seth Goldberg.
13857
13858 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13859
13860 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13861 implementations bug on them.
13862
13863 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13864 memory.
13865 (filter_memory_map): Likewise.
13866
13867 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13870 Reported by: nebuchadnezzar.
13871
13872 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13875 Reported by: nebuchadnezzar.
13876
13877 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 Submenu default support.
13880
13881 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13882 auto_boot. All users updated.
13883 Declared static.
13884 Handle chosen and default with submenus.
13885 (grub_menu_execute_with_fallback): Declared static.
13886 Don't notify failure if autobooted. Upper level does it.
13887 (menuentry_eq): New function.
13888 (get_entry_number): Use menuentry_eq.
13889 (show_menu): New parameter "autobooted". All users updated.
13890 (grub_show_menu): Likewise.
13891 * include/grub/normal.h (grub_show_menu): Likewise.
13892 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13893 (grub_menu_execute_with_fallback): Likewise.
13894
13895 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 * util/grub-mklayout.c (usage): Update help text.
13898
13899 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13900
13901 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13902
13903 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 * util/grub-menulst2cfg.c (main): Trim the line.
13906
13907 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13908
13909 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13910 (grub_machine_init): Don't check amount of low memory as reportedly
13911 INT 12h can be broken and if low memory is too low we wouldn't have
13912 gotten into grub_machine_init anyway.
13913
13914 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13915
13916 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13917 (grub_machine_mmap_iterate): Take low memory into account
13918
13919 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13920
13921 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13922 badfs.
13923 Reported by: TiCPU.
13924
13925 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13926
13927 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13928 members errors.
13929
13930 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13931
13932 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13933 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13934
13935 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13936
13937 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
13938 openbsd and netbsd types being in part_bsd module.
13939
13940 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
13943 (_FILE_OFFSET_BITS): Likewise.
13944 Reported by: Seth Goldberg.
13945
13946 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13947
13948 * configure.ac: Check for libdevmapper header.
13949
13950 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
13953 avoid aliasing.
13954 (fzap_lookup): Likewise.
13955 (dnode_get): Likewise.
13956 (make_mdn): Likewise.
13957 (zfs_mount): Likewise.
13958 (fzap_iterate): Use temporary pointer to avoid aliasing.
13959 (grub_zfs_read): Likewise.
13960 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
13961 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
13962 pointers to avoid aliasing.
13963 (grub_cmd_xnu_kernel64): Likewise.
13964 (grub_xnu_load_driver): Likewise.
13965
13966 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
13969 aliasing warning.
13970 (grub_cmd_terminal_output): Likewise.
13971 Reported and tested by: Grégoire Sutre.
13972
13973 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13974
13975 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
13976 warning.
13977 Reported and tested by: Grégoire Sutre.
13978
13979 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13980
13981 * configure.ac: Do CPU substitution even if it's specified explicitly.
13982 Reported and tested by: Alain Greppin.
13983
13984 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13985
13986 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
13987 Reported and tested by: Alain Greppin.
13988
13989 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13990
13991 Satisfy some bison versions need for inttypes.h.
13992
13993 * grub-core/lib/posix_wrap/inttypes.h: New file.
13994 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
13995 (int16_t): Likewise.
13996 (int32_t): Likewise.
13997 (int64_t): Likewise.
13998 Reported and tested by: Alain Greppin.
13999
14000 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14003 Silence spurious warning.
14004 Reported and tested by: Alain Greppin.
14005
14006 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14007
14008 * docs/grub.texi (Support automatic decompression): Update with xz
14009 decompression support.
14010
14011 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14012
14013 Improve loaders' kernel command line handling.
14014
14015 * grub-core/lib/cmdline.c: New file.
14016 * include/grub/lib/cmdline.h: Likewise.
14017 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14018 grub_create_loader_cmdline to create kernel command line.
14019 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14020 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14021 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14022 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14023 (linux): Add lib/cmdline.c on common.
14024
14025 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14026
14027 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14028 inopos might be unaligned.
14029
14030 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14033 endian transformations.
14034 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14035 Based on report by: Doug Nazar.
14036
14037 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14038
14039 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14040 array->members[i].start_sector.
14041 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14042
14043 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14044
14045 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14046 Reported and tested by: Grégoire Sutre.
14047
14048 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14049
14050 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14051 avoid causing test failures by clearing the screen.
14052
14053 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14054
14055 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14056 Fix prefix check to handle the case where dir ends with a slash
14057 (most significantly, "/" itself).
14058 Reported by: Michael Vogt.
14059
14060 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14061
14062 Run terminfo_cls on initing terminfo output to clear the screen and
14063 move the cursor to (0,0).
14064
14065 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14066 Call grub_terminfo_output_init.
14067 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14068 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14069 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14070
14071 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14072
14073 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14074 only when needed.
14075
14076 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14077
14078 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14079 CTRL.
14080
14081 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14082
14083 The E820 type 5 is BADRAM, not EXEC_CODE.
14084
14085 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14086 (GRUB_E820_BADRAM): New define.
14087 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14088 into reserved. Propagate BADRAM.
14089 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14090 (GRUB_E820_BADRAM): New define.
14091
14092 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14093
14094 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14095 Ignore the memory post-4G.
14096 (grub_relocator_firmware_alloc_region): Additional debug statement.
14097
14098 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14099
14100 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14101 names.
14102 Reported by: David Pravec.
14103
14104 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14105
14106 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14107 BIOSes.
14108
14109 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14110
14111 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14112 Prevent overflow.
14113 (grub_reed_solomon_recover): Likewise.
14114
14115 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14116
14117 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14118
14119 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14122 variable.
14123
14124 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14125
14126 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14127 descriptions of extract_legacy_entries_source and
14128 extract_legacy_entries_configfile.
14129 Reported by: Seung Soo, Ha.
14130
14131 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14132
14133 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14134 on devices that do not implement function 0.
14135
14136 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14137
14138 * grub-core/fs/hfsplus.c: Make parent unsigned.
14139 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14140 overflows.
14141 (grub_hfsplus_cmp_extkey): Likewise
14142
14143 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14144
14145 * util/grub-install.in: Correctly use bootloader_id and not
14146 GRUB_DISTRIBUTOR on efibootmgr line.
14147
14148 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14151
14152 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14153
14154 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14155 Xen and reorder menu item wording to make it clearer that this entry
14156 will launch Xen. Print separate messages when loading Xen and
14157 Linux.
14158
14159 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14160
14161 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14162 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14163 loop in case of incorrect amiga partmap.
14164
14165 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14166
14167 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14168 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14169 Reported by:EHeM.
14170
14171 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14174 spurious warning.
14175 Reported by: crocket
14176
14177 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14178
14179 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14180 Preload EFIemu.
14181 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14182
14183 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14184
14185 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14186 is loaded
14187 (grub_cmd_xnu_kextdir): Likewise.
14188 (grub_cmd_xnu_splash): Likewise.
14189
14190 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 Avoid using Reed-Solomon with 0 redundancy.
14193
14194 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14195 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14196 or 0 redundancy.
14197 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14198 (grub_reed_solomon_recover): Likewise.
14199
14200 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 Don't use disk subsystem in freebsd_boot.
14203
14204 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14205 (freebsd_biosdev): Likewise.
14206 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14207 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14208
14209 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14210
14211 Handling of files of unknown size is currently limited. They can't be
14212 used e.g. for initrd or modules. Moreover gzip handling of not
14213 easily seekable files is buggy. Disable unknown file size for now. May
14214 be inefficient but works.
14215
14216 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14217 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14218
14219 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14220
14221 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14222 floppy probe.
14223
14224 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14225
14226 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14227
14228 2010-12-25 Shea Levy <shlevy>
14229
14230 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14231
14232 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14233
14234 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14235 Windows Server 2008.
14236 Reported by: Devin Giddings.
14237
14238 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14239
14240 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14241 writing an error message because of async power management.
14242 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14243 (grub_reboot): Likewise.
14244
14245 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14246
14247 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14248 keep unit tests from failing when they shouldn't.
14249
14250 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14251
14252 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14253 previous patch increased the size of the RS code by 20 bytes (at
14254 least with gcc-4.4), so increase this by 20 bytes to match.
14255 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14256
14257 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14258
14259 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14260 scratch area. Make sure to initialise chosen in standalone mode as
14261 well as non-standalone.
14262 Reported by: Robert Hooker and Andy Whitcroft.
14263 Tested by: Andy Whitcroft.
14264
14265 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14266
14267 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14268 constructing a new unescaped string and passing it to grub_xputs in
14269 one go, rather than passing characters to grub_printf one at a time.
14270
14271 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14272
14273 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14274 initialising utf16.
14275
14276 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14277
14278 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14279 comment. Add an extra layer of quotation, requiring the output of
14280 this function to be used in a printf format string.
14281 (gettext_printf): New function.
14282 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14283 Extract translatable strings from here-documents and use a temporary
14284 variable instead, so that xgettext can find them.
14285 * util/grub.d/10_kfreebsd.in: Likewise.
14286 * util/grub.d/10_linux.in: Likewise.
14287 * util/grub.d/20_linux_xen.in: Likewise.
14288
14289 * po/grub.d.sed: New file.
14290 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14291 arguments. Set c-format flags on all strings extracted from
14292 util/grub.d/ (xgettext refuses to include these itself for strings
14293 it extracted from a shell file, but these really are c-format).
14294
14295 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14298 Avoid next pointing to nowhere.
14299
14300 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14303 rather than assuming than rootblock is exactly in the middle.
14304 (grub_affs_label): Likewise.
14305
14306 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14309 reserved_first_sector to 0.
14310 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14311 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14312 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14313
14314 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14315
14316 Fix handling of UTF-16 UDF labels.
14317
14318 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14319 (read_string): .. here.
14320 (grub_udf_label): Use read_string.
14321
14322 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14323
14324 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14325 editor under argument scope.
14326 Reported by: Jordan Uggla
14327
14328 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14329
14330 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14331
14332 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14333
14334 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14335 line, and other keys scroll an entire page (previous handling was
14336 for \r and \n to scroll a page and other keys to scroll two lines).
14337
14338 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14339
14340 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14341 Set ptrdest to correct get_physical_target_address rather than
14342 incorrect get_virtual_current_address.
14343
14344 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14345
14346 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14347 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14348
14349 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14350
14351 * .bzrignore: Ignore grub-core/rs_decoder.S.
14352
14353 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14354
14355 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14356 .mo/.mo.gz opening sequence to ...
14357 (grub_mofile_open_lang): ... here.
14358 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14359 * util/grub.d/00_header.in (grub_lang): Include country part of
14360 locale.
14361 Reported by: Mario Limonciello.
14362
14363 2010-12-09 Robert Millan <rmh@gnu.org>
14364
14365 * NEWS: Document addition of ZFS support.
14366
14367 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14368
14369 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14370 rather than `/ 2', as the latter requires -Wa,--divide which would
14371 require bumping our minimum binutils version.
14372
14373 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14374
14375 * util/grub-script-check.c (main): Print script line number on
14376 error.
14377
14378 2010-12-01 Robert Millan <rmh@gnu.org>
14379
14380 * grub-core/fs/zfs/zfs.c: New file.
14381 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14382 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14383 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14384 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14385
14386 * include/grub/zfs/dmu.h: Likewise.
14387 * include/grub/zfs/dmu_objset.h: Likewise.
14388 * include/grub/zfs/dnode.h: Likewise.
14389 * include/grub/zfs/dsl_dataset.h: Likewise.
14390 * include/grub/zfs/dsl_dir.h: Likewise.
14391 * include/grub/zfs/sa_impl.h: Likewise.
14392 * include/grub/zfs/spa.h: Likewise.
14393 * include/grub/zfs/uberblock_impl.h: Likewise.
14394 * include/grub/zfs/vdev_impl.h: Likewise.
14395 * include/grub/zfs/zap_impl.h: Likewise.
14396 * include/grub/zfs/zap_leaf.h: Likewise.
14397 * include/grub/zfs/zfs.h: Likewise.
14398 * include/grub/zfs/zfs_acl.h: Likewise.
14399 * include/grub/zfs/zfs_znode.h: Likewise.
14400 * include/grub/zfs/zil.h: Likewise.
14401 * include/grub/zfs/zio.h: Likewise.
14402 * include/grub/zfs/zio_checksum.h: Likewise.
14403
14404 * Makefile.util.def: Build ZFS into libgrubmods.
14405 * grub-core/Makefile.core.def: Build zfs.mod.
14406
14407 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14408
14409 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14410 variable.
14411 * grub-core/commands/wildcard.c (match_files): Likewise.
14412
14413 2010-11-30 Robert Millan <rmh@gnu.org>
14414
14415 * grub-core/loader/i386/bsd.c
14416 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14417 whether kernel is loaded using grub_loader_is_loaded(), rather
14418 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14419 certain error conditions.
14420
14421 2010-11-30 Robert Millan <rmh@gnu.org>
14422
14423 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14424 (grub_cmd_echo): Call grub_refresh() after printing a message.
14425
14426 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14427
14428 Avoid using tricks for initialising endian variables.
14429
14430 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14431 Make const.
14432 (GRUB_MOD_INIT): Don't byte-swap.
14433 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14434 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14435 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14436 (grub_swap_bytes32_compile_time): Likewise.
14437 (grub_cpu_to_le32_compile_time): Likewise.
14438 (grub_cpu_to_le16_compile_time): Likewise.
14439
14440 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * util/grub-setup.c (setup): Stop recommending --force. People who
14443 understand the dangers of blocklists are able to find this option
14444 anyway and the ones who don't shouldn't use it anyway.
14445
14446 2010-11-26 Robert Millan <rmh@gnu.org>
14447
14448 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14449 Update all users.
14450
14451 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14452
14453 Fix LVM-on-RAID probing.
14454
14455 * util/grub-probe.c (probe): Remember which disk was detected as
14456 RAID (perhaps an LVM physical volume). Use that disk's raidname
14457 rather than that of the top-level disk.
14458
14459 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14460
14461 Fix cmdline argument quotes for setparams command of menuentry
14462 definitions.
14463
14464 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14465 quotes for arguments.
14466 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14467 grub_strchrsub function instead.
14468
14469 * include/grub/misc.h (grub_strchrsub): New function.
14470
14471 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14472
14473 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14474 effort by skipping "." and ".." entries up-front.
14475 Suggested by: Michael Lazarev.
14476
14477 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14478
14479 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14480 ldflags to ldadd, to fix link line ordering.
14481 (none_decompress): Likewise.
14482
14483 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14484
14485 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14486 platforms.
14487 (grub-emu-lite): Remove kern/emu/cache.S.
14488
14489 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14490
14491 * util/deviceiter.c (compare_devices): If the by-id link for a
14492 device couldn't be resolved, fall back to sorting by the by-id link
14493 rather than segfaulting.
14494 Reported and tested by: Daniel Mierswa.
14495
14496 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14497
14498 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14499 ldflags, to fix link line ordering.
14500
14501 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14502
14503 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14504 linkers are picky about this.
14505
14506 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14507
14508 * grub-core/Makefile.am (command.lst): Adjust sed expression
14509 ordering so that extended and priority commands aren't treated as
14510 ordinary commands.
14511
14512 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14513
14514 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14515 Remove byte-swapping function calls, which are not valid in
14516 structure initialisers.
14517 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14518 non-const.
14519 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14520 grub_gpt_partition_type_bios_boot.
14521
14522 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14523
14524 Fix test program build on GNU/kFreeBSD.
14525
14526 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14527 $(LIBNVPAIR)' library dependencies.
14528
14529 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14530
14531 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14532
14533 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14534
14535 * util/grub-install.in: Remove excessive quoting that broke
14536 installations to RAID devices.
14537
14538 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14539
14540 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14541 bootloader version instead of 0.
14542
14543 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14544
14545 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14546 warning.
14547
14548 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14549
14550 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14551 retrieve the metadat sector if size isn't known.
14552 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14553
14554 2010-11-18 Robert Millan <rmh@gnu.org>
14555
14556 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14557 with grub_memcmp().
14558
14559 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14560
14561 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14562 arrow.
14563 Reported by: Jordan Uggla.
14564
14565 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 Make better UTF compliant.
14568
14569 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14570 sequences as incorrect.
14571 (grub_is_valid_utf8): Likewise.
14572 (grub_utf8_to_ucs4): Likewise.
14573 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14574 (grub_ucs4_to_utf8_alloc): Likewise.
14575 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14576
14577 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14578
14579 Make legacy_source behave like source.
14580
14581 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14582 grub_show_menu.
14583 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14584
14585 2010-11-16 Colin Watson <cjwatson@debian.org>
14586
14587 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14588 (-Wunused implies -Wunused-parameter, but not vice versa).
14589
14590 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14591
14592 * configure.ac: Make error messages less confusing by testing for
14593 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14594 accepted, but produces a diagnostic if something else is wrong).
14595
14596 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14597
14598 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14599 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14600 (now unused).
14601 (grub_keyboard_controller_init)
14602 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14603 read the initial state since controller isn't inited yet.
14604
14605 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14606
14607 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14608 allocate_regbeg may need to create new chunk header.
14609
14610 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14611
14612 Fix quoting in legacy parser.
14613
14614 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14615 single quotes.
14616 (grub_legacy_parse): Likewise.
14617 Reported by: Jordan Uggla.
14618 Tested by: Jordan Uggla.
14619
14620 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14621
14622 Don't add -lgcc on i386 and x86_64.
14623
14624 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14625 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14626 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14627
14628 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14629
14630 * configure.ac: Add -Wno-trampolines when supported.
14631
14632 2010-11-14 Modestas Vainius <modax@debian.org>
14633
14634 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14635 fakeraid.
14636
14637 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14638
14639 Add generic logical block size support for UDF.
14640
14641 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14642 (GRUB_UDF_BLKSZ): Removed.
14643 (struct grub_udf_data): New field "lbshift" to hold the logical block
14644 size of the file system in log2 format. All users updated.
14645 (sblocklist): Change type to unsigned.
14646 (grub_udf_mount): Change type of "sblklist" to unsigned.
14647 Move AVDP search before VRS recognition, because the latter requires
14648 knowledge of the logical block size, which is detected during the
14649 former.
14650 Detect and validate logical block size during AVDP search, adding
14651 support for block sizes 512, 1024 and 4096.
14652 Make VRS recognition independent of block size.
14653
14654 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14655
14656 Properly handle deleted files on UDF.
14657
14658 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14659 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14660 set.
14661
14662 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14663
14664 Support reading files larger than 2 GiB.
14665
14666 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14667 "offset" to grub_off_t.
14668 (grub_udf_read_file): Likewise for parameter "pos".
14669
14670 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14671
14672 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14673 unavailable.
14674 (Simple configuration): Refer to Changes from GRUB Legacy about
14675 save_env availability.
14676
14677 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14678
14679 * util/grub-install.in: Ignore empty partition table detection
14680 instead of trying to include part_ module.
14681
14682 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14683
14684 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14685 LVM on RAID support.
14686
14687 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14688
14689 Properly define WORDS_BIGENDIAN in wrapped environments.
14690
14691 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14692 definition.
14693 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14694
14695 Reported by: Manoel Rebelo Abranches.
14696 Tested by: Manoel Rebelo Abranches.
14697
14698 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14699
14700 * util/grub-mkconfig.in: Fix quoting.
14701
14702 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14703
14704 Support big ext2 files.
14705
14706 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14707 (grub_ext2_read_block): Support triple indirect blocks.
14708 (grub_ext2_read_file): Use 64-bit types and read size_high.
14709 (grub_ext2_open): Read size_high.
14710 Reported by: Ximin Luo.
14711 Tested by: Manoel Rebelo Abranches.
14712
14713 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * util/grub-install.in: Handle filenames containing spaces.
14716 Reported by: Jordan Uggla.
14717 Tested by: Jordan Uggla.
14718
14719 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14720
14721 * util/grub-mkconfig.in (grub_script_check): New variable.
14722 Use grub_script_check instead of grub-script-check.
14723 Reported by: Barry Jackson.
14724
14725 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 * docs/grub.texi (menu): Correct the order.
14728 Reported by: D. Hugh Redelmeier.
14729
14730 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14731
14732 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14733 jump.
14734
14735 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14736
14737 * include/grub/elfload.h (grub_elf32_size): New parameter.
14738 All users updated.
14739 Return maximum segments alignment.
14740 (grub_elf64_size): Likewise.
14741 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14742 Return maximum segments alignment.
14743 (grub_elf64_size): Likewise.
14744 * grub-core/loader/powerpc/ieee1275/linux.c:
14745 (grub_linux_claimmap_iterate): New function. Uses the
14746 "available" property in the "memory" node for memory allocation
14747 for kernel in the PowerPC loader.
14748 (grub_linux_load32): Correctly find linux entry point offset.
14749 (grub_linux_load64): Likewise.
14750
14751 2010-11-07 Robert Millan <rmh@gnu.org>
14752
14753 On mips-yeeloong, build with -march=loongson2f when this flag is
14754 available (GCC >= 4.4).
14755 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14756 `-march=mips3'.
14757 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14758 or otherwise add -march=mips3.
14759
14760 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14761
14762 Suppress shell expansion on echo '*' and echo "*" like cases.
14763 Reported by: Jordan Uggla.
14764
14765 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14766 string arguments before shell expansion.
14767 * tests/grub_cmd_echo.in: New testcases.
14768
14769 2010-11-07 Robert Millan <rmh@gnu.org>
14770
14771 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14772 transition.
14773
14774 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14775
14776 * grub-core/kern/emu/hostdisk.c
14777 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14778
14779 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14782 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14783 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14784
14785 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14788
14789 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * util/grub-install.in: Replace useless recomendation to pass
14792 --modules with a recomendation to report a bug.
14793
14794 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14795
14796 Properly register serial terminfo.
14797 Reported by: Jordan Uggla
14798
14799 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14800 const.
14801 (grub_serial_terminfo_output_template): Likewise.
14802 (grub_cmd_serial): Register "serial" with terminfo.
14803 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14804 grub_serial_terminfo_output.
14805
14806 2010-11-05 Robert Millan <rmh@gnu.org>
14807
14808 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14809 needed).
14810
14811 2010-11-05 Robert Millan <rmh@gnu.org>
14812
14813 On Yeeloong, pass machine type information to Linux.
14814
14815 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14816 (LOONGSON_MACHTYPE): New macro, set to
14817 "machtype=lemote-yeeloong-2f-8.9inches".
14818 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14819 additional argument to Linux.
14820
14821 2010-11-04 Robert Millan <rmh@gnu.org>
14822
14823 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14824 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14825 (its SATA disks are detected as slaveless IDE master drives on
14826 kFreeBSD).
14827 Reported by Carsten Aulbert.
14828
14829 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14830
14831 * util/bin2h.c (main): Fix spelling error in generated output.
14832
14833 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14834
14835 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14836
14837 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14840 vga= option is supplied.
14841
14842 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14843
14844 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14845 * util/grub.d/10_kfreebsd.in: Likewise.
14846 * util/grub.d/10_linux.in: Likewise.
14847 * util/grub.d/20_linux_xen.in: Likewise.
14848
14849 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14850
14851 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14852 argument as an argument to no-argument option.
14853
14854 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 * util/grub.d/10_linux.in: Add missing load_video with explicit
14857 GRUB_GFXPAYLOAD_LINUX.
14858
14859 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14860
14861 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14862
14863 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14864
14865 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14866 elements with invlid index.
14867 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14868 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14869 members.
14870 * include/grub/raid.h (grub_raid_member): New struct.
14871 (grub_raid_array): Transform devices and start_sector into usage of
14872 grub_raid_member. All users updated
14873 (allocated_devs): New member.
14874
14875 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14876
14877 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14878 is modified
14879
14880 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14881
14882 NetBSD build fix for getline function conflict from gnulib.
14883
14884 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14885 components that depend on gnulib headers.
14886 (libgrubmods.a): Renamed from earlier libgrub.a.
14887 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14888
14889 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14892 install rather than creating a broken install.
14893
14894 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14895
14896 * util/grub-setup.c (argp): Remove misleading example of installing to
14897 a partition.
14898
14899 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14900
14901 * util/grub-setup.c (setup): Clarify the error message.
14902
14903 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14904
14905 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14906
14907 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14908
14909 * grub-core/kern/emu/misc.c
14910 (grub_make_system_path_relative_to_its_root)
14911 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14912
14913 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14914
14915 * grub-core/kern/emu/misc.c
14916 (grub_make_system_path_relative_to_its_root): Revert r2882.
14917
14918 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14921 useless field head. All users updated.
14922 (free_subchunk): Correct handling of IN_REGION subchunk.
14923
14924 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14925
14926 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14927 (Supported kernels): Likewise.
14928
14929 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14930
14931 Make mktemp invocations portable.
14932
14933 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14934 exit if mktemp fails.
14935 * tests/grub_script_blockarg.in: Likewise.
14936 * tests/partmap_test.in: Likewise.
14937 * tests/util/grub-shell-tester.in: Likewise.
14938 * tests/util/grub-shell.in: Likewise.
14939 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14940 * Makefile.am: Likewise, and chain shell commands with `&&'
14941 instead of ';'.
14942 * util/grub-mkrescue.in: Use the same explicit template as above, and
14943 exit if mktemp fails.
14944
14945 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
14946
14947 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
14948 Linux kernel, reported by Dennis Schridde.
14949
14950 2010-10-17 Szymon Janc <szymon@janc.net.pl>
14951
14952 * grub-core/normal/auth.c (grub_auth_check_authentication):
14953 Set-but-not-used variable removed.
14954
14955 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14956
14957 * docs/grub.texi (GNU/Linux): Document APM unavailability with
14958 32-bit linux protocol.
14959
14960 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14961
14962 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
14963 cursor shape for sanity.
14964
14965 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14966
14967 * docs/grub.texi (Installation): Document buggy BIOS install.
14968
14969 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14970
14971 * docs/grub.texi (Installation): Indent.
14972
14973 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14974
14975 * util/grub-setup.c (setup): New parameter allow_floppy.
14976 (arguments): New member allow_floppy.
14977 (argp_parser): Handle --allow-floppy.
14978 (main): Pass allow_floppy.
14979 * util/grub-install.in: New option --allow-floppy passed though to
14980 grub-setup.
14981
14982 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14983
14984 * util/grub-install.in: Handle partitionless disks.
14985
14986 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 * util/grub-setup.c (setup): Don't clean blocklists before readability
14989 verfification.
14990
14991 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14992
14993 * docs/grub.texi (Installation): Document embedding zone. Remove
14994 obsolete grub-install example.
14995
14996 2010-10-16 Szymon Janc <szymon@janc.net.pl>
14997
14998 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
14999 Set-but-not-used variable ifdef'ed.
15000 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15001 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15002 variable removed.
15003 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15004 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15005 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15006 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15007 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15008 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15009 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15010 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15011 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15012 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15013 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15014 Likewise.
15015
15016 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15019 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15020 enum value.
15021
15022 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15023
15024 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15025 synonym to _S5_. Needed for some DSDTs.
15026
15027 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15028
15029 Userspace ACPI parser debugging.
15030
15031 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15032 headers and add relevant defines. Don't include standard headers.
15033 (main) [GRUB_DSDT_TEST]: New function.
15034 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15035 Don't declare functions.
15036
15037 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15038
15039 Remove dead grub_efi_mm_fini.
15040
15041 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15042 (ALLOCATED_PAGES_SIZE): Likewise.
15043 (MAX_ALLOCATED_PAGES): Likewise.
15044 (allocated_pages): Likewise.
15045 (grub_efi_allocate_pages): Don't record allocated pages.
15046 (grub_efi_free_pages): Likewise.
15047 (grub_efi_mm_init): Likewise.
15048 (grub_efi_mm_fini): Removed.
15049
15050 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15053 (grub_efi_mm_init): Take into account the memory map size increase.
15054
15055 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15056
15057 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15058 (serial_hw_put): Wait based on real time rather than port reads. Don't
15059 roken ports.
15060 * include/grub/serial.h (grub_serial_port): New field broken.
15061
15062 2010-10-16 Robert Millan <rmh@gnu.org>
15063
15064 * grub-core/kern/emu/misc.c
15065 (grub_make_system_path_relative_to_its_root): Fix premature return
15066 when processing non-root ZFS filesystems.
15067 Reported by Sergio Talens-Oliag.
15068
15069 2010-10-15 Robert Millan <rmh@gnu.org>
15070
15071 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15072 guarantee compressed ones are processed first.
15073
15074 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15075
15076 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15077 grub_efiemu_autocore.
15078
15079 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15080
15081 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15082 rather than 0x1b.
15083 (grub_console_getkey): Use correct jae opcode rather than ja.
15084
15085 2010-10-12 Robert Millan <rmh@gnu.org>
15086
15087 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15088 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15089 variable. All references updated.
15090
15091 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15092
15093 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15094
15095 Correctly distinguish mdraid flavours.
15096
15097 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15098 (insert_array): New argument raid.
15099 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15100 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15101 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15102
15103 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15104
15105 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15106 handling of special keys.
15107
15108 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15109
15110 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15111 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15112
15113 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15114
15115 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15116 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15117 users updated.
15118 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15119 Use right endpoint when querying descriptor.
15120
15121 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15122
15123 Clear out 0x80 color bit on EFI.
15124 Tested by: decoder
15125 Reported by: decoder and meta tech.
15126
15127 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15128 (grub_console_setcolorstate): Clear out 0x80 bit.
15129 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15130 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15131 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15132
15133 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15136 Set to "auto".
15137
15138 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15139
15140 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15141 mo_file after freeing.
15142
15143 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15146
15147 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15148
15149 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15150 flags.
15151
15152 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15153
15154 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15155 usage.
15156
15157 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15160
15161 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15163 and terminfo.h when needed.
15164 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15165 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15166 (terminfo): Enable only on terminfokernel.
15167 (extcmd): Likewise.
15168 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15169 * include/grub/lib/arg.h: Likewise.
15170 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15171 incorrect usage of ->.
15172
15173 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15174
15175 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15176 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15177
15178 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 Fix coreboot compilation.
15181
15182 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15183 Take VBE info into account even if only text is supported.
15184 (fill_vbe_info): Take into account the case when only VGA text
15185 is supported.
15186 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15187 on coreboot, multiboot and qemu.
15188
15189 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15190
15191 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15192 debug messages.
15193 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15194
15195 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15198 parameters.
15199
15200 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15201
15202 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15203 if they were BSD-style.
15204
15205 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15206
15207 * grub-core/boot/i386/pc/lnxboot.S: Replace
15208 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15209 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15210
15211 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 Write embedding zone using Reed-Solomon.
15214
15215 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15216 * grub-core/Makefile.am (rs_decoder.S): New target.
15217 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15218 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15219 (multiboot): Move to RS part.
15220 (post_reed_solomon): New label.
15221 (grub_boot_drive): Move to non-RS part since it's modified in memory
15222 on boot.
15223 Include rs_decoder.S.
15224 * grub-core/lib/reed_solomon.c: New file.
15225 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15226 New definition.
15227 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15228 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15229 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15230 * include/grub/partition.h (grub_partition_map): Change prototype of
15231 embed to allow returning additional sectors.
15232 * include/grub/reed_solomon.h: New file.
15233 * util/grub-setup.c (setup): Handle Reed-Solomon.
15234
15235 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15236
15237 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15238 i386 and x86-64 definedness tests.
15239
15240 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15241
15242 Fix generation of kernel_syms.lst
15243
15244 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15245 ASM_PREFIX
15246
15247 2010-09-26 Robert Millan <rmh@gnu.org>
15248
15249 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15250
15251 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15252 the pool is an array of devices, iterate through it and return the
15253 first device that passes a stat() test (instead of blindly returning
15254 the first one).
15255
15256 2010-09-26 Robert Millan <rmh@gnu.org>
15257
15258 Build fixes for GNU/kFreeBSD.
15259
15260 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15261 to programs that require ZFS conversion.
15262 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15263 kernels that don't have FLOPPY_MAJOR.
15264
15265 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15266
15267 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15268
15269 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15270
15271 Fix grub-emu build.
15272
15273 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15274 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15275 mdraid09 and mdraid1x.
15276
15277 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15278
15279 Re-enable grub-extras.
15280
15281 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15282 avoid confusing Automake. Run autogen only twice, once for the top
15283 level and once for grub-core. Add Makefile.util.def and
15284 Makefile.core.def from extra modules to the appropriate autogen
15285 invocations. If Makefile.common exists in an extra module, include
15286 it in both Makefile.util.am and grub-core/Makefile.core.am;
15287 similarly, include any Makefile.util.common file in Makefile.util.am
15288 and any Makefile.core.common file in grub-core/Makefile.core.am.
15289 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15290 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15291 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15292 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15293
15294 * gentpl.py (gvar_add): Turn GVARS into a set.
15295 (global_variable_initializers): Sort global variables on output.
15296 (vars_init): New function.
15297 (first_time): Likewise.
15298 (library): Ensure that non-global variable initialisations are
15299 emitted before the first time we emit code for a library block.
15300 Append to variables rather than setting them. Only emit
15301 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15302 each conditional path.
15303 (program): installdir() emits an Autogen macro, so must be passed to
15304 var_add rather than gvar_add.
15305 (data): Likewise.
15306 (script): Likewise.
15307 (rules): New function, centralising handling for different target
15308 types. Set up Guile association lists for first_time and vars_init,
15309 and send most output to a diversion so that variable initialisations
15310 can be emitted first.
15311 (module_rules): Use new rules function.
15312 (kernel_rules): Likewise.
15313 (image_rules): Likewise.
15314 (library_rules): Likewise.
15315 (program_rules): Likewise.
15316 (script_rules): Likewise.
15317 (data_rules): Likewise.
15318
15319 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15320
15321 * .bzrignore: Add contrib and grub-core/contrib. Remove
15322 grub-core/Makefile.gcry.am.
15323
15324 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15325
15326 * grub-core/lib/LzFind.c: Add missing include.
15327 * grub-core/lib/LzmaEnc.c: Likewise.
15328 * grub-core/script/lexer.c: Likewise.
15329 * grub-core/script/yylex.l: Likewise.
15330 * util/grub-macho2img.c: Likewise.
15331 * util/grub-menulst2cfg.c: Likewise.
15332 * util/grub-mklayout.c: Likewise.
15333 * util/grub-mkpasswd-pbkdf2.c
15334 * util/grub-mkrelpath.c: Likewise.
15335 * util/resolve.c: Likewise.
15336
15337 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15338
15339 * Makefile.util.def (example_unit_test): Add
15340 grub-core/gnulib/libgnu.a.
15341
15342 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15343
15344 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15345
15346 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15347
15348 Support xz compression on yeeloong.
15349
15350 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15351 * configure.ac: Check for LZMA.
15352 * grub-core/Makefile.core.def (xz_decompress): New target.
15353 (none_decompress): Likewise.
15354 * grub-core/boot/decompressor/minilib.c: New file.
15355 * grub-core/boot/decompressor/none.c: Likewise.
15356 * grub-core/boot/decompressor/xz.c: Likewise.
15357 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15358 * grub-core/kern/mips/cache_flush.S: Likewise.
15359 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15360 * grub-core/kern/mips/startup.S: Move first stage to ...
15361 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15362 nomacro.
15363 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15364 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15365 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15366 Allocate statically.
15367 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15368 Allocate statically or use scratch. Don't check CRC32.
15369 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15370 Allocate statically. Don't check CRC32.
15371 * include/grub/decompressor.h: New file.
15372 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15373 Removed.
15374 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15375 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15376 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15377 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15378 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15379 * util/grub-mkimage.c (grub_compression_t): New type.
15380 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15381 (image_target_desc): New field default_compression.
15382 (image_targets): Adjust yeeloong targets.
15383 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15384 (compress_kernel): New parameter comp.
15385 (generate_image): Likewise. Handle new compression case.
15386 (options): New option --compression
15387 (help): Likewise.
15388 (main): Handle new option.
15389
15390 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15391
15392 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15393
15394 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15395
15396 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15397 typo in __i386__ conditional.
15398
15399 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15400
15401 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15402 include.
15403
15404 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15405
15406 Implement EFI and ACPI multiboot2 extensions.
15407
15408 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15409 new tags as supported.
15410 (acpiv2_size): New function.
15411 (grub_multiboot_get_mbi_size): Take new tags into account.
15412 (grub_multiboot_make_mbi): Add new tags.
15413 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15414
15415 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15416
15417 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15418 Added missing configuration of USB device.
15419
15420 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15421
15422 * grub-core/normal/menu_entry.c (run): Make sure we always return
15423 a value.
15424
15425 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15426
15427 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15428 NumberOfPages is UINT64 according to the UEFI specification, not
15429 UINTN. Fix printf format.
15430
15431 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15432
15433 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15434 `err' to grub_usb_err_t.
15435 Reported and tested by: KESHAV P.R.
15436
15437 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15438
15439 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15440 tpart non-const, so that we can assign to it. (Since this is a
15441 typedef, the constness refers to the pointer rather than what it
15442 points to.)
15443
15444 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15445
15446 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15447 $(top_srcdir)/grub-core/gnulib as well as
15448 $(top_builddir)/grub-core/gnulib.
15449 Reported by: KESHAV P.R.
15450
15451 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15452
15453 * util/grub-install.in: Fix the bootloader ID option to be
15454 consistently --bootloader-id, not --bootloader_id.
15455 Reported by: KESHAV P.R.
15456
15457 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15458
15459 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15460 check hash checksum." consistently translatable.
15461
15462 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15463
15464 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15465 $(top_builddir).
15466
15467 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15468
15469 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15470 (GRUB_MOD_INIT): Register sha1sum command.
15471 (GRUB_MOD_FINI): Unregister sha1sum command.
15472
15473 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15474
15475 Keep boot and grub directory names in sync with utils scripts
15476
15477 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15478 * config.h.in: Add previous macros.
15479 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15480 * util/grub-install.in: Use $bootdir and $grubdir variables.
15481
15482 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15483
15484 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15485 convert partition names to disk names if the new `convert' parameter
15486 is set.
15487 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15488 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15489 disk in its own right. This can happen with Xen disk images.
15490
15491 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15492
15493 * util/grub-editenv.c: Update strings to avoid warnings when generating
15494 grub.pot file.
15495 * util/grub-setup.c: Likewise.
15496
15497 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15498
15499 * configure.ac: Change version to 1.99~beta0.
15500
15501 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15502
15503 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15504 Add BADRAM.
15505 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15506 Likewise.
15507 * include/multiboot.h: Resynced with specification.
15508 * include/multiboot2.h: Likewise.
15509
15510 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15511
15512 Fix po directory handling.
15513
15514 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15515 * grub-core/gnulib/Makefile.am: Import gettext module.
15516 * m4/gnulib-cache.m4: Likewise.
15517 * m4/gnulib-comp.m4: Likewise.
15518 * m4/gettext.m4: New file, from gnulib.
15519 * m4/glibc2.m4: Likewise.
15520 * m4/iconv.m4: Likewise.
15521 * m4/intdiv0.m4: Likewise.
15522 * m4/intl.m4: Likewise.
15523 * m4/intldir.m4: Likewise.
15524 * m4/intlmacosx.m4: Likewise.
15525 * m4/intmax.m4: Likewise.
15526 * m4/inttypes-pri.m4: Likewise.
15527 * m4/lcmessage.m4: Likewise.
15528 * m4/lib-ld.m4: Likewise.
15529 * m4/lib-link.m4: Likewise.
15530 * m4/lib-prefix.m4: Likewise.
15531 * m4/lock.m4: Likewise.
15532 * m4/nls.m4: Likewise.
15533 * m4/po.m4: Likewise.
15534 * m4/printf-posix.m4: Likewise.
15535 * m4/progtest.m4: Likewise.
15536 * m4/threadlib.m4: Likewise.
15537 * m4/uintmax_t.m4: Likewise.
15538 * m4/visibility.m4: Likewise.
15539 * po/Makefile.am: Remove.
15540 * po/Makefile.in.in: New file, from gettext.
15541 ($(DOMAIN).pot-update): Support POTFILES-shell.
15542 * po/Makevars: New file.
15543 * po/POTFILES-shell: Rename to ...
15544 * po/POTFILES-shell.in: ... this. Update.
15545 * po/POTFILES: Rename to ...
15546 * po/POTFILES.in: ... this. Update.
15547 * po/Rules-quot: New file, from gettext.
15548 * po/boldquot.sed: Likewise.
15549 * po/en@boldquot.header: Likewise.
15550 * po/en@quot.header: Likewise.
15551 * po/insert-header.sin: Likewise.
15552 * po/quot.sed: Likewise.
15553 * po/remove-potcdate.sin: Likewise.
15554
15555 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15556
15557 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15558
15559 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15560
15561 * util/grub.d/20_linux_xen.in: Use submenus.
15562
15563 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15564
15565 Support submenus.
15566
15567 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15568 parameter submenu. All users updated.
15569 * grub-core/normal/main.c (free_menu): Rename to ...
15570 (grub_normal_free_menu): ... this. Made global.
15571 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15572 if requested.
15573 * grub-core/normal/menu_entry.c (screen): New field submenu.
15574 (make_screen): Set submenu.
15575 (run): Open new context if requested.
15576 * include/grub/menu.h (grub_menu_entry): New field submenu.
15577 * include/grub/normal.h (grub_normal_free_menu): New proto.
15578
15579 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15580
15581 Menu entries extractor.
15582
15583 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15584 variants.
15585 (GRUB_MOD_INIT): Register new variants.
15586 (GRUB_MOD_FINI): Unregister new variants.
15587 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15588 into grub_cmd_legacy_source.
15589 (grub_cmd_legacy_source): Implement extractor variants.
15590 (GRUB_MOD_INIT): Register new variants.
15591 (GRUB_MOD_FINI): Unregister new variants.
15592 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15593 as an extractor.
15594 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15595 search as an extractor.
15596 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15597 test as an extractor.
15598 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15599 as an extractor.
15600 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15601 (grub_env_new_context): New function.
15602 (grub_env_context_open): Likewise.
15603 (grub_env_extractor_open): Likewise.
15604 (grub_env_extractor_close): Likewise.
15605 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15606 grub_extractor_level.
15607 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15608 * include/grub/env.h (grub_env_extractor_open): New proto.
15609 (grub_env_extractor_close): Likewise.
15610 * include/grub/normal.h (grub_extractor_level): New external variable.
15611
15612 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15613
15614 Make cutmem accept a region specification.
15615 Suggested by: Samuel Thibault
15616
15617 * grub-core/mmap/mmap.c (parsemem): New function.
15618 (grub_cmd_cutmem): Handle new arguments.
15619
15620 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 New command cutmem.
15623
15624 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15625 (GRUB_MOD_INIT): Register new command.
15626 (GRUB_MOD_FINI): Unregister new command.
15627
15628 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15629
15630 Support some annoying BSD and Minix subpartitions.
15631
15632 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15633 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15634 Properly handle concatenation.
15635 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15636 * grub-core/normal/completion.c (iterate_partition): Likewise.
15637 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15638 contain partition. All users updated.
15639 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15640 struct.
15641 (grub_openbsdlabel_partition_map): Likewise.
15642 (bsdlabel_partition_map_iterate): Rename to ..
15643 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15644 (bsdlabel_partition_map_iterate): New function.
15645 (netopenbsdlabel_partition_map_iterate): Likewise.
15646 (netbsdlabel_partition_map_iterate): Likewise.
15647 (openbsdlabel_partition_map_iterate): Likewise.
15648 (GRUB_MOD_INIT): Register new partmaps.
15649 (GRUB_MOD_FINI): Unregister new partmaps.
15650 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15651 (grub_partition_msdos_iterate): ... this. All users updated.
15652 Don't support embedding other than in a minix partition.
15653 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15654 proto.
15655 * include/grub/partition.h (grub_partition): New field msdostype.
15656 * util/grub-install.in: Handle openbsd and netbsd types being in
15657 part_bsd module.
15658
15659 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15660
15661 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15662
15663 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15664 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15665 (mdraid09): ... this.
15666 (mdraid1x): New module.
15667 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15668 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15669
15670 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15671
15672 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15673 vsprintf.
15674
15675 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15676
15677 * grub-core/commands/efi/lsefimmap.c: Correct header.
15678 * NEWS: Update.
15679
15680 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15681
15682 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15683 as printf format strings; the translations might contain '%' which
15684 could cause a crash.
15685 (main): Likewise.
15686 * util/grub-fstest.c (argp_parser): Likewise.
15687 * util/grub-setup.c (argp_parser): Likewise.
15688 (main): Likewise.
15689
15690 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15691
15692 Use argp in grub-fstest.
15693
15694 * util/grub-fstest.c: Don't include getopt.h.
15695 Include argp.h.
15696 (root): New variable.
15697 (args_count): Likewise.
15698 (nparm): Likewise.
15699 (num_disks): Likewise.
15700 (images): Likewise.
15701 (cmd): Likewise.
15702 (debug_str): Likewise.
15703 (args): Likewise.
15704 (options): Transformed to argp.
15705 (usage): Removed.
15706 (main): Split argument parsing into ...
15707 (argp_parser): ... this. Changed to argp format.
15708 (argp): New variable.
15709 (main): Use argp_parse.
15710
15711 2010-09-20 Tristan Gingold <gingold@free.fr>
15712 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15713 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15714
15715 * grub-core/commands/efi/lsefimmap.c: New file.
15716 * grub-core/Makefile.core.def (lsefimmap): New module.
15717 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15718
15719 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15720
15721 Pause the execution (10s max) if any errors are displayed so the user
15722 has a chance to see them.
15723
15724 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15725 (grub_print_error): Increment grub_err_printed_errors.
15726 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15727 execution if any errors were displayed.
15728 (show_menu): Remove old code for pause.
15729 * grub-core/normal/menu_entry.c (run): Likewise.
15730 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15731 users updated.
15732 (grub_normal_get_char_counter): Likewise.
15733 * include/grub/err.h (grub_err_printed_errors): New external variable.
15734 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15735
15736 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15737
15738 Support multiboot VBE info.
15739
15740 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15741 Take VBE info into account.
15742 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15743 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15744 Call fill_vbe_info when appropriate.
15745 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15746 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15747 as supported.
15748 (grub_multiboot_get_mbi_size): Take new tags into account.
15749 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15750 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15751 Call fill_vbe_tag when appropriate.
15752 (grub_multiboot_make_mbi): Properly align tags.
15753 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15754 function.
15755 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15756 proto.
15757 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15758
15759 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15760
15761 Suport manual terminal geometry specification.
15762
15763 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15764 Save state in grub_ofconsole_terminfo_output.
15765 (grub_ofconsole_term): Use grub_terminfo_getwh.
15766 (grub_ofconsole_getwh): Removed.
15767 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15768 (grub_serial_term): Use grub_terminfo_getwh.
15769 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15770 (options): New struct.
15771 (OPTION_*): New enum.
15772 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15773 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15774 width and height.
15775 (grub_terminfo_getwh): New proto.
15776 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15777
15778 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15779
15780 Handle legacy "terminal" command.
15781
15782 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15783 and FLAG_TERMINAL.
15784 (legacy_commands): Add terminal and title.
15785 (grub_legacy_parse): Handle terminal. Simplify title handling.
15786
15787 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15788
15789 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15790 parameters overflow.
15791
15792 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15793
15794 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15795 widthspec.h.
15796
15797 * docs/grub.texi (Shell-like scripting): Document `!'.
15798 (Network): Simplify using new i386-pc-pxe format. Mention
15799 grub-mknetdir.
15800
15801 * NEWS: Update.
15802
15803 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15804
15805 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15806 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15807 when needed.
15808
15809 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15810
15811 * grub-core/commands/efi/lsefisystab.c: Correct header.
15812 * grub-core/commands/efi/lssal.c: Likewise.
15813 * grub-core/commands/testload.c: Likewise.
15814
15815 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15816
15817 * util/grub-mkrescue.in: Add explicit root argument to --set to
15818 prevent the UUID being interpreted as an argument to --set (matches
15819 previous change to prepare_grub_to_access_device).
15820
15821 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15822
15823 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15824 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15825 the verbosity of later #ifs.
15826 (find_partition_start): Define this function on FreeBSD too.
15827 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15828 function.
15829 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15830 on FreeBSD.
15831
15832 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15833
15834 * util/grub-editenv.c: Use argp instead of getopt.
15835
15836 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15837
15838 * util/grub-setup.c: Use argp instead of getopt.
15839
15840 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15841
15842 Use gnulib-tool to create gnulib source files.
15843
15844 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15845 grub-core/gnulib directories
15846 * .bzignore: Add **/.deps and autogenerated gnulib files
15847 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15848 of gnulib macros, add grub-core/gnulib/Makefile
15849 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15850 include m4 directory to aclocal.
15851 * Makefile.util.def: Remove direct compilation of gnulib source files
15852 and use the new grub-core/gnulib/libgnu.a.
15853 * build-aux/config.rpath: move config.rpath from top directory to
15854 build-aux
15855 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15856 in gnulib headers
15857 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15858 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15859 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15860 header.
15861 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15862 string.
15863
15864 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15865
15866 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15867 grub-core/genmod.sh and grub-core/gensyminfo.sh
15868
15869 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15870
15871 Add a test for echo command options.
15872
15873 * tests/grub_cmd_echo.in: New test.
15874 * Makefile.util.def: Rules for new test.
15875
15876 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15877
15878 Remove crc.mod and move crc command to hashsum.mod.
15879 Remove lib/crc.c - users updated to use gcrypt implementation.
15880
15881 * grub-core/commands/crc.c: Removed.
15882 * grub-core/Makefile.core.def (crc): Module removed.
15883 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15884 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15885 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15886 * grub-core/lib/crc.c: Removed.
15887 * include/grub/lib/crc.h: Removed.
15888 * Makefile.util.def (crc): Remove lib/crc.c
15889 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15890 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15891 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15892 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15893 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15894 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15895
15896 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15899
15900 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15901
15902 Split config.h for util and core.
15903
15904 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15905 (ADDR32): Likewise.
15906 (DATA32): Likewise.
15907 (BSS_START_SYMBOL): Likewise.
15908 (END_SYMBOL): Likewise.
15909 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15910 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15911 * config.h.in: New file.
15912 * configure.ac: Use config-util.h as config define file.
15913 Rename MACHINE into GRUB_MACHINE. All users updated.
15914 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15915 updated.
15916 (NESTED_FUNC_ATTR): Likewise.
15917 Substitue new variables.
15918 (COND_HAVE_ASM_USCORE): New conditional.
15919 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15920 (kernel_syms.lst): Use ASM_PREFIX.
15921 * grub-core/kern/emu/console.c: Include config-util.h.
15922 * grub-core/kern/emu/misc.c: Likewise.
15923 * grub-core/kern/emu/mm.c: Likewise.
15924 * include/grub/emu/misc.h: Likewise.
15925 * include/grub/libgcc.h: Likewise.
15926
15927 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15928
15929 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15930 constants usage.
15931 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15932 Fix GRUB_TERM_KEY_* constants usage.
15933 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15934
15935 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15936
15937 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
15938 print pointer.
15939 * grub-core/bus/usb/uhci.c: Remove empty define.
15940 (grub_uhci_check_transfer): Add missing cast.
15941 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
15942 print pointer.
15943 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
15944 PRIuGRUB_SIZE.
15945 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
15946
15947 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15948
15949 * grub-core/Makefile.core.def (legacycfg): Add
15950 lib/i386/pc/vesa_modes_table.c on emu.
15951
15952 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15953
15954 Reduce number of temporary files generated by build system.
15955
15956 * grub-core/gencmdlist.sh: Removed.
15957 * grub-core/genfslist.sh: Removed.
15958 * grub-core/genhandlerlist.sh: Removed.
15959 * grub-core/genmodsrc.sh: Removed.
15960 * grub-core/genpartmaplist.sh: Removed.
15961 * grub-core/genparttoollist.sh: Removed.
15962 * grub-core/gentermiinallist.sh: Removed.
15963 * grub-core/genvideolist.sh: Removed.
15964
15965 * grub-core/genmod.sh.in: New file.
15966 * grub-core/gensyminfo.sh.in: New file.
15967
15968 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
15969 * conf/Makefile.extra-dist: Update with new files.
15970 * gentpl.py: Remove rules related to unnecessary temporary files.
15971 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
15972 and und-* files.
15973 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
15974 genmod.sh scripts.
15975 * grub-core/bus/usb/uhci.c: Remove empty #define.
15976 * grub-core/genmoddep.awk: Updated with new syminfo format.
15977 * util/bash-completion.d/Makefile.am: Add config.log to
15978 CLEANFILES.
15979
15980 2010-09-19 Yves Blusseau <blusseau@zetam.org>
15981
15982 * Makefile.util.def: Add forgotten $(LIBINTL) library.
15983
15984 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15985
15986 * util/grub-mkconfig.in: Check the config script for syntax errors
15987 before saving.
15988
15989 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
15990 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15991
15992 * Makefile.util.def (grub-install): Use util/grub-install.in on all
15993 platforms.
15994 * util/grub-install.in: Add EFI and IEEE1275 support.
15995 * util/i386/efi/grub-install.in: Removed.
15996 * util/ieee1275/grub-install.in: Likewise.
15997
15998 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15999
16000 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16001 (grub_cmd_cmosclean): Likewise.
16002 (GRUB_MOD_INIT): Register command cmosclean.
16003 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16004 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16005
16006 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16007 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16008 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16009
16010 Add keyboard layouts support.
16011
16012 * Makefile.util.def (grub-mklayout): New file.
16013 (grub-kbdcomp): New script.
16014 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16015 Add keyboard_layouts.h.
16016 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16017 commands/boot.c on yeeloong.
16018 (keylayouts): New module.
16019 * grub-core/bus/usb/ohci.c
16020 * grub-core/bus/usb/uhci.c
16021 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16022 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16023 (attach_root_port): Likewise.
16024 (poll_nonroot_hub): Likewise.
16025 (grub_usb_poll_devices): Likewise.
16026 (detach_device): Close transfer.
16027 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16028 function.
16029 (grub_usb_bulk_setup_readwrite): Likewise.
16030 (grub_usb_bulk_finish_readwrite): Likewise.
16031 * grub-core/commands/keylayouts.c: New file.
16032 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16033 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16034 aliases.
16035 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16036 support scancode 2.
16037 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16038 * include/grub/keyboard_layouts.h: New file.
16039 * util/grub-mklayout.c: New file.
16040 * util/grub-kbdcomp.in: Likewise.
16041
16042 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16043
16044 Unify memory types.
16045
16046 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16047 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16048 types.
16049 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16050 (grub_upper_mem): Likewise.
16051 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16052 * include/grub/memory.h (grub_memory_type_t): New enum.
16053 All users updated.
16054
16055 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 * grub-core/Makefile.core.def (lsapm): New module.
16058 * grub-core/commands/i386/pc/lsapm.c: New file.
16059 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16060 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16061 Likewise.
16062 * include/grub/i386/pc/apm.h: New file.
16063 * include/multiboot.h (multiboot_apm_info): New struct.
16064
16065 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16066
16067 GRUB-legacy configuration file support.
16068
16069 * Makefile.util.def (grub-menulst2cfg): New util.
16070 * docs/man/grub-menulst2cfg.h2m: New file.
16071 * grub-core/Makefile.core.def (legacycfg): New module.
16072 * grub-core/commands/legacycfg.c: New file.
16073 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16074 (grub_normal_add_menu_entry): ... this.
16075 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16076 (grub_normal_set_password): ...this.
16077 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16078 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16079 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16080 * grub-core/lib/legacy_parse.c: New file.
16081 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16082 * include/grub/i386/pc/vesa_modes_table.h: New file.
16083 * include/grub/legacy_parse.h: Likewise.
16084 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16085 * util/grub-menulst2cfg.c: New file.
16086
16087 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16088
16089 * grub-core/kern/emu/hostdisk.c
16090 (convert_system_partition_to_system_disk): Initialise node.
16091
16092 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16093
16094 * grub-core/kern/emu/hostdisk.c
16095 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16096 leak.
16097 Reported and based on patch by: Modestas Vainius.
16098
16099 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16100
16101 Fix DM-RAID probing with recent versions of device-mapper udev
16102 rules.
16103
16104 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16105 canonicalise device paths under /dev/mapper/.
16106 (convert_system_partition_to_system_disk): Compare the
16107 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16108 path, since device nodes under /dev/mapper/ are often symlinks.
16109
16110 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16111
16112 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16113
16114 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16115
16116 * configure.ac: Avoid some annoying error messages if freetype-config
16117 program is not found.
16118
16119 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16120
16121 Support RAID on virtio devices, and others.
16122
16123 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16124 Rename to ...
16125 [__MINGW32__] (grub_find_device): ... this.
16126 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16127 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16128 reasonable default if dir is NULL.
16129 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16130 ...
16131 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16132 (grub_guess_root_device): Update callers.
16133 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16134
16135 * util/raid.c (grub_util_getdiskname): Remove.
16136 (grub_util_raid_getmembers): Use grub_find_device rather than
16137 grub_util_getdiskname.
16138
16139 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16140
16141 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16142 needing to be compiled with serial support.
16143 (ls): Indicate that multiple files are accepted.
16144 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16145 indicate that multiple files are accepted.
16146
16147 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16148
16149 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16150 libgrub_a_init.c, and util/bash-completion.d/grub.
16151
16152 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 * util/grub-setup.c (setup): Fix incorrect container semantics.
16155
16156 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16159 misusage.
16160 Reported by: J. Nick Terry
16161
16162 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16163
16164 Move embedding routines to partmap sources files.
16165
16166 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16167 [GRUB_UTIL]: New variable.
16168 (gpt_partition_map_iterate): Set part.parent.
16169 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16170 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16171 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16172 New function.
16173 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16174 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16175 (grub_partition_map) [GRUB_UTIL]: New field embed.
16176 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16177 (setup): Use ->embed.
16178
16179 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16180
16181 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16182 function.
16183 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16184 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16185
16186 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16187
16188 Add function to get completions from usage.
16189
16190 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16191 completions from usage. Use LC_ALL=C to get options properly.
16192
16193 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16194
16195 * grub-core/gnulib/basename-lgpl.c: Imported.
16196 * grub-core/gnulib/basename.c: Likewise.
16197 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16198 * grub-core/gnulib/dirname.c: Likewise.
16199 * grub-core/gnulib/dirname.h: Likewise.
16200 * grub-core/gnulib/stripslash.c: Likewise.
16201
16202 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16203
16204 * grub-core/gnulib/error.c: Resynced.
16205 * grub-core/gnulib/getopt.c: Likewise.
16206 * grub-core/gnulib/getopt_int.h: Likewise.
16207 * grub-core/gnulib/regex.h: Likewise.
16208 * grub-core/gnulib/regex_internal.c: Likewise.
16209 * grub-core/gnulib/regex_internal.h: Likewise.
16210
16211 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16212
16213 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16214 CRC calculations and validity checks.
16215 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16216 calculations.
16217
16218 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16219
16220 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16221
16222 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16223
16224 Fix incorrect echo options handling.
16225 Reported by: Yves Blusseau.
16226
16227 * include/grub/command.h (grub_command_flags_t): New flags
16228 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16229 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16230 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16231
16232 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16233
16234 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16235 users updated.
16236 (GRUB_COMMAND_FLAG_MENU): Likewise.
16237 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16238 (GRUB_COMMAND_FLAG_TITLE): Removed.
16239 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16240 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16241 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16242 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16243 (grub_command_flags_t): New enum. All users updated.
16244
16245 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16246
16247 Fix solaris compilation.
16248
16249 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16250 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16251 (grub-emu-list): Likewise.
16252
16253 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16254
16255 Remove deprecated root command.
16256
16257 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16258 updated.
16259
16260 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16261
16262 * util/i386/pc/grub-setup.c: Merge this ...
16263 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16264 * util/grub-setup.c: ... into this.
16265 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16266 New struct.
16267
16268 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16269
16270 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16271 possible.
16272
16273 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16276 allocate p.
16277
16278 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16279
16280 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16281 explicit root argument to set to prevent UUID to be interpreted as
16282 argument to set.
16283
16284 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16285
16286 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16287
16288 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16289
16290 Don't export grub_gate_a20.
16291
16292 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16293 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16294 to ...
16295 (grub_gate_a20): ... this. All users updated.
16296 * include/grub/i386/pc/init.h: Removed. All users updated.
16297
16298 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16299
16300 Create euro.pf2 which supports most European languages.
16301
16302 * Makefile.am (grubdata_DATA): Add euro.pf2.
16303 (euro.pf2): New target.
16304 (CLEANFILES): Add euro.pf2.
16305
16306 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16307
16308 * configure.ac: Disable emu-usb by default to prevent inadvertent
16309 device takeover.
16310
16311 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16312
16313 Disable usbserial on grub-emu since our libusb code isn't good enough
16314 yet.
16315
16316 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16317 (usbserial_pl2303): Likewise.
16318 (usbserial_ftdi): Likewise.
16319
16320 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16321
16322 * include/grub/disk.h (grub_disk): Remove has_partitions.
16323 All users updated.
16324 * disk/loopback.c (grub_loopback): Remove has_partitions.
16325 All users updated.
16326 (options): Remove partitions. All users updated.
16327 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16328 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16329 actual partition table is found.
16330
16331 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16332
16333 Remove readability checks (too many false negatives).
16334
16335 * util/grub-install.in: Remove readability checks.
16336 * util/grub-mkconfig.in: Likewise.
16337 * util/grub.d/10_hurd.in: Likewise.
16338 * util/grub.d/10_kfreebsd.in: Likewise.
16339 * util/grub.d/10_linux.in: Likewise.
16340 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16341 way.
16342
16343 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 Enable acpi shutdown on all ACPI platforms.
16346
16347 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16348 on coreboo, multiboot and EFI.
16349 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16350 (grub_acpi_halt): Likewise.
16351 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16352 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16353 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16354 * grub-core/lib/i386/halt.c (grub_halt)
16355 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16356
16357 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16358
16359 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16360 context.
16361
16362 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16363
16364 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16365 * grub-core/video/efi_uga.c: Likewise.
16366
16367 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16368
16369 Filter devaliases and never open same device twice.
16370
16371 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16372 (last_ihandle): Likewise.
16373 (ofdisk_hash_ent): New member shortest.
16374 (ofdisk_hash_add): Add canonical path too.
16375 (scan): New function.
16376 (grub_ofdisk_iterate): Iterate over hashed entries.
16377 (compute_dev_path): Don't add :0.
16378 (grub_ofdisk_open): Don't really open the disk.
16379 (grub_ofdisk_close): Avoid closing unrelated disk.
16380 (grub_ofdisk_read): Implement reopen logic.
16381 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16382 New function.
16383 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16384 New proto.
16385
16386 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16387
16388 Fix sparc64.
16389
16390 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16391 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16392 right address. Add sparc64_ieee1275_ldflags.
16393 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16394 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16395 to grub_host_to_target_addr
16396 (load_image): Likewise.
16397
16398 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 * grub-core/normal/completion.c (complete_file): Handle device
16401 containing slash.
16402 Fix based on patch by Doug Nazar.
16403
16404 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 grub-mknetdir script.
16407
16408 * Makefile.util.def (grub-mknetdir): New module.
16409 * tests/util/grub-shell.in: Support boot=net
16410 * util/grub-mknetdir.in: New file.
16411
16412 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16413
16414 videoinfo on non-vbe.
16415
16416 * grub-core/Makefile.core.def (vbeinfo): Removed.
16417 (vbetest): Removed.
16418 (videoinfo): New module.
16419 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16420 * grub-core/commands/i386/pc/vbetest.c: Removed.
16421 * grub-core/commands/videoinfo.c: New file.
16422 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16423 specification.
16424 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16425 as vbetest.
16426 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16427 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16428 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16429 mode_number. New parameter mode. All users updated.
16430 (grub_video_gop_iterate): New function.
16431 (grub_video_efi_gop): New member iterate.
16432 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16433 (grub_vbe_set_video_mode): Remove setting useless fields.
16434 (vbe2videoinfo): New function.
16435 (grub_video_vbe_iterate): Likewise.
16436 (grub_video_vbe_setup): Use vbe2videoinfo.
16437 (grub_video_vbe_print_adapter_specific_info): New function.
16438 (grub_video_vbe_adapter): New fields iterate and
16439 print_adapter_specific_info.
16440 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16441 All users updated.
16442 (grub_video_mode_info): New field mode_number.
16443 (grub_video_adapter): New fields iterate and
16444 print_adapter_specific_info.
16445
16446 2010-09-13 Tristan Gingold <gingold@free.fr>
16447 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16448 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 * grub-core/commands/efi/lsefisystab.c: New file.
16451 * grub-core/commands/efi/lssal.c: Likewise.
16452 * grub-core/Makefile.core.def (lsacpi): New module.
16453 (lsefisystab): Likewise.
16454 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16455 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16456 (grub_efi_sal_system_table): New struct.
16457 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16458 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16459 (grub_efi_sal_system_table_platform_features): Likewise.
16460 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16461 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16462 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16463 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16464
16465 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 Support explicit user claim that a device is BIOS-visible.
16468
16469 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16470 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16471 * grub-core/kern/emu/hostdisk.c
16472 (convert_system_partition_to_system_disk): Support mdX.
16473 (find_system_device): New parameter add. All users updated.
16474 (grub_util_biosdisk_is_present): New function.
16475 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16476 proto.
16477
16478 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16479
16480 Search hints support.
16481
16482 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16483 All users updated.
16484
16485 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16486
16487 Bash completion script for util commands
16488
16489 * Makefile.am: Add util/bash-completion.d directory
16490 * configure.ac: Likewise.
16491 * util/bash-completion.d/Makefile.am: New file.
16492 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16493
16494 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16495
16496 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16497 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16498 Reported by: Yves Blusseau.
16499
16500 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16503 partition size and offset.
16504
16505 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16508
16509 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16510
16511 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16512
16513 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16514
16515 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16516 (grub_xvasprintf): Likewise.
16517
16518 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16519
16520 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16521
16522 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16523
16524 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16525 args ending with NULL.
16526
16527 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16528
16529 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16530 pointer.
16531
16532 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16533
16534 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16535
16536 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16537
16538 Shutdown using ACPI.
16539
16540 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16541 * grub-core/commands/acpihalt.c: New file.
16542 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16543 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16544 (grub_acpi_halt): New proto.
16545 (GRUB_ACPI_SLP_EN): New const.
16546 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16547 (GRUB_ACPI_OPCODE_*): New enum.
16548 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16549
16550 2010-09-11 Tristan Gingold <gingold@free.fr>
16551 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16552 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16553
16554 * commands/lsacpi.c: New file.
16555 * grub-core/Makefile.core.def (lsacpi): New module.
16556 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16557 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16558 (grub_acpi_madt_entry_header): New struct.
16559 (grub_acpi_madt): Likewise.
16560 (grub_acpi_madt_entry_interrupt_override): Likewise.
16561 (grub_acpi_madt_entry_sapic): Likewise.
16562 (grub_acpi_madt_entry_lsapic): Likewise.
16563 (grub_acpi_madt_entry_platform_int_source): Likewise.
16564 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16565 (PRIuGRUB_UINT32_T): Likewise.
16566 (PRIxGRUB_UINT64_T): Likewise.
16567
16568 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 Implement loading palette on ieee1275_fb.
16571
16572 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16573 (have_setcolors): Likewise.
16574 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16575 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16576 (grub_video_ieee1275_set_palette): Implement.
16577
16578 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16579 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16580
16581 * util/grub-install.in (grub_partition): New variable.
16582 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16583 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16584 Fixes a bug reported by Yves Blusseau.
16585
16586 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 Fix emu on mipsel.
16589
16590 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16591 =grub_cpu_flush_cache on all mips and not only yeeloong.
16592 * configure.ac (COND_mips): New conditional.
16593 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16594 platforms.
16595 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16596 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16597 [GRUB_LINKER_HAVE_INIT]: New function.
16598 (grub_emu_post_init): Likewise.
16599 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16600 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16601 * include/grub/cache.h (_mips): Include mips/cache.h.
16602 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16603 LVM and RAID prototypes.
16604 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16605 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16606 function.
16607
16608 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16609
16610 * util/grub-install.in: Don't try to verify core.img until after
16611 running grub-mkimage to create it.
16612
16613 2010-09-10 Robert Millan <rmh@gnu.org>
16614
16615 * util/grub.d/10_hurd.in: Add misc readability checks.
16616 * util/grub.d/10_kfreebsd.in: Likewise.
16617 * util/grub.d/10_linux.in: Likewise.
16618
16619 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16620
16621 * util/grub-install.in: ${imgext} won't be defined here until the
16622 install branch is merged. For the meantime, only verify core.img on
16623 i386-pc and sparc64-ieee1275 platforms.
16624
16625 2010-09-10 Robert Millan <rmh@gnu.org>
16626
16627 Solaris support in grub_find_zpool_from_dir(). Thanks
16628 Seth Goldberg for referring to getextmntent() facility.
16629
16630 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16631 `sys/mkdev.h'.
16632 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16633 `<sys/mnttab.h>'.
16634 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16635 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16636 method for finding zpool name.
16637
16638 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16639
16640 grub-fstest needs the host and hostfs modules while other utilities
16641 actively require those modules to be absent, so grub-fstest needs
16642 its own initialisation and finalisation code.
16643
16644 * Makefile.am (grub_fstest.pp): New target.
16645 (grub_fstest_init.lst): Likewise.
16646 (grub_fstest_init.c): Likewise.
16647 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16648
16649 2010-09-10 Robert Millan <rmh@gnu.org>
16650
16651 * configure.ac: Check for `struct statfs.f_fstypename' and
16652 `struct statfs.f_mntfromname'.
16653
16654 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16655 kFreeBSD-specific code.
16656
16657 2010-09-10 Robert Millan <rmh@gnu.org>
16658
16659 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16660 on ZFS. Now non-main filesystems are supported as / too.
16661
16662 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16663
16664 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16665 and grub-core/disk/host.c to ...
16666 (grub-fstest): ... here. Having the host disk implementation
16667 present confuses grub-probe and other utility programs.
16668
16669 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16670 when writing to a file, not when writing to stdout.
16671
16672 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16673
16674 * tests/partmap_test.in: New test for partitions.
16675 * Makefile.util.def: Rules for new test.
16676
16677 2010-09-09 Robert Millan <rmh@gnu.org>
16678
16679 * util/grub-probe.c (probe): Fix a pair of unhandled error
16680 conditions.
16681
16682 2010-09-09 Robert Millan <rmh@gnu.org>
16683
16684 Basic Btrfs support (detection and UUID).
16685
16686 * grub-core/fs/btrfs.c: New file.
16687 * Makefile.util.def (library): Register btrfs.c.
16688 * grub-core/Makefile.core.def: Likewise.
16689
16690 2010-09-08 Robert Millan <rmh@gnu.org>
16691
16692 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16693 with (optional) parameters to specify device and relative path.
16694 * util/grub-install.in: Use is_path_readable_by_grub() to
16695 verify readability of a few critical files.
16696 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16697 verify readability of grub.cfg.new.
16698
16699 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16700
16701 Split minix.mod into minix.mod and minix2.mod.
16702
16703 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16704 * grub-core/Makefile.core.def (minix2): New module.
16705 * grub-core/fs/minix.c: Use definitions instead of runtime version
16706 checking.
16707 * grub-core/fs/minix2.c: New file.
16708
16709 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16710
16711 Add new --boot-directory option to replace --root-directory
16712
16713 * util/grub-install.in: Add new --boot-directory option
16714 * util/grub-reboot.in: Likewise.
16715 * util/grub-set-default.in: Likewise.
16716
16717 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16718
16719 * util/grub-mkconfig.in: Use new variable.
16720
16721 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16722
16723 * configure.ac: Define some useful variables.
16724
16725 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16726
16727 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16728 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16729 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16730 Use terminfo and don't use cursor-on/cursor-off unless it's known
16731 to work.
16732 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16733 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16734
16735 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16736
16737 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16738 starts with "(,", fill the drive containing the loaded image in
16739 between those two characters, but expect that a full partition
16740 specification including partition map names will follow.
16741
16742 2010-09-08 Robert Millan <rmh@gnu.org>
16743
16744 * configure.ac: Remove `--enable-grub-fstest' option.
16745 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16746
16747 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16748 `grub-fstest' instead of `grub-probe' for readability verification.
16749 * util/grub-probe.c (probe): Remove readability verification kludge.
16750
16751 2010-09-08 Robert Millan <rmh@gnu.org>
16752
16753 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16754 initializing `GRUB_FS'.
16755
16756 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16757
16758 Not command (!) support to GRUB script.
16759
16760 * tests/grub_script_not.in: New test.
16761 * Makefile.util.def: Rules for new test.
16762
16763 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16764 ! command as a special case.
16765 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16766
16767 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16768
16769 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16770 grub_free.
16771
16772 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16773
16774 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16775
16776 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16777
16778 * docs/grub.texi (Shell-like scripting): Documentation for break,
16779 continue, shift and return commands.
16780
16781 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16782
16783 Rename CD-ROM to cd on BIOS.
16784
16785 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16786 "cd".
16787 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16788
16789 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16790
16791 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16792 * util/grub-probe.c (main): Likewise.
16793 * util/i386/pc/grub-setup.c (main): Likewise.
16794 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16795 Reported and debugged by: alexxy
16796
16797 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16798
16799 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16800 diagnostic info.
16801
16802 2010-09-05 Jo Shields <directhex@apebox.org>
16803
16804 * util/grub.d/30_os-prober.in: Add missing classes.
16805
16806 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16807
16808 * docs/grub.texi (Theme file format): Document new position format.
16809
16810 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16813 a table. Use @code instead of @verbatim.
16814
16815 2010-09-05 Colin D Bennett <colin@gibibit.com>
16816
16817 Gfxmenu documentation.
16818
16819 * docs/grub.texi (Theme file format): New chapter.
16820
16821 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16822
16823 * grub-core/Makefile.core.def (xzio): New module.
16824 * grub-core/io/xzio.c: New file.
16825 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16826 * grub-core/lib/xzembed/xz_config.h: Likewise.
16827 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16828 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16829 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16830 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16831 * grub-core/lib/xzembed/xz_private.h: Likewise.
16832 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16833 * include/grub/file.h (grub_file_filter_id): New compression filter
16834 GRUB_FILE_FILTER_XZIO.
16835
16836 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16837
16838 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16839 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16840 size.
16841
16842 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16843
16844 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16845 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16846
16847 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 Uncompressed checksum support.
16850
16851 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16852 (check_list): New parameter uncompress.
16853 (grub_cmd_hashsum): Handle --uncompress.
16854
16855 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 Reintroduce testload.
16858
16859 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16860 from here ...
16861 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16862 (GRUB_MOD_INIT): New function.
16863 (GRUB_MOD_FINI): Likewise.
16864 * grub-core/Makefile.core.def (testload): New module.
16865
16866 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16867
16868 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16869 (uint8_t): New type.
16870 (uint16_t): Likewise.
16871 (uint32_t): Likewise.
16872 (uint64_t): Likewise.
16873
16874 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16875
16876 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16877
16878 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16879
16880 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16881 Made static.
16882 (grub_gzfile_open): Removed. All users updated.
16883 (GRUB_MOD_INIT): New function.
16884 (GRUB_MOD_FINI): Likewise.
16885 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16886 (grub_file_filters_enabled): Likewise.
16887 (grub_file_open): Handle filters.
16888 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16889 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16890 * include/grub/file.h (grub_file_filter_id_t): New type.
16891 (grub_file_filter_t): Likewise.
16892 (grub_file_filters_all): New extern variable.
16893 (grub_file_filters_enabled): Likewise.
16894 (grub_file_filter_register): New inline function.
16895 (grub_file_filter_unregister): Likewise.
16896 (grub_file_filter_disable): Likewise.
16897 (grub_file_filter_disable_compression): Likewise.
16898 * include/grub/gzio.h: Removed.
16899
16900 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16901
16902 Filename expansion support for wildcards in GRUB script.
16903
16904 * tests/grub_script_expansion.in: New test.
16905 * Makefile.util.def: Rule for new test.
16906
16907 * grub-core/commands/wildcard.c: New file, implements filename
16908 expansion support for GRUB script.
16909 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16910 * grub-core/script/argv.c: Cosmetic changes.
16911 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16912 Refactored to perform wildcard expansion on arguments.
16913 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16914 struct.
16915
16916 * tests/util/grub-shell.in: Fix quoting for read input.
16917
16918 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16919
16920 Support for updating environment variables with matched substrings
16921 of regexp.
16922
16923 * tests/grub_cmd_regexp.in: New test.
16924 * Makefile.util.def: Rule for new test.
16925
16926 * grub-core/commands/regexp.c: New option -s to update environment
16927 variables with regexp matches.
16928
16929 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16930
16931 * include/grub/file.h (grub_file): New member not_easly_seekable.
16932 (grub_file_seekable): New inline function.
16933 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16934 easily seekable.
16935 (grub_gzio_open): Set not_easly_seekable.
16936 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
16937 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
16938
16939 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16940
16941 Support for options to appear multiple times on cmdline.
16942
16943 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
16944 * grub-core/commands/extcmd.c: Support for repeatable option.
16945 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
16946 repeatable option support.
16947
16948 Refactor menuentry into a regular command.
16949
16950 * grub-core/commands/menuentry.c: New file, menuentry command
16951 implementation.
16952 * grub-core/Makefile.core.def: Rule update for normal.mod.
16953 * grub-core/normal/main.c: Moved menuentry creation to
16954 grub-core/commands/menuentry.c.
16955 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
16956 (grub_menu_execute_entry_real): Removed.
16957 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
16958 function.
16959 (grub_script_execute_menuentry): Removed.
16960 * grub-core/script/parser.y (menuentry): Removed.
16961 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
16962 * grub-core/script/yylex.l (menuentry): Removed.
16963 * include/grub/menu.h (grub_menu_init): New prototype.
16964 (grub_menu_fini): New prototype.
16965 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
16966 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
16967 (grub_script_execute_sourcecode): New prototype.
16968
16969 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16970
16971 "return" command for GRUB script functions.
16972
16973 * tests/grub_script_return.in: New test.
16974 * Makefile.util.def: Rules for new test.
16975
16976 * grub-core/script/execute.c (grub_script_return): New function.
16977 * grub-core/script/main.c: Register/unregister return commaond.
16978 * include/grub/script_sh.h (grub_script_return): New prototype.
16979
16980 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16981
16982 "setparams" command to update positional parameters.
16983
16984 * tests/grub_script_setparams.in: New test.
16985 * Makefile.util.def: Rules for new test.
16986
16987 * grub-core/script/argv.c (grub_script_argv_make): New function.
16988 * grub-core/script/execute.c (replace_scope): New function.
16989 (grub_script_setparams): New function.
16990 * grub-core/script/lexer.c: Remove unused variables.
16991 * grub-core/script/main.c: Register/unregister setparams command.
16992 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
16993 (grub_script_setparams): New prototype.
16994
16995 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16996
16997 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
16998 grub_free order.
16999
17000 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17001
17002 Support for passing block of commands as an argument to extcmds.
17003
17004 * Makefile.util.def: Rules for new test.
17005 * tests/grub_script_blockarg.in: New test.
17006 * grub-core/tests/test_blockarg.c: New file, block argument
17007 command used in the test.
17008
17009 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17010 (grub_register_extcmd_prio): New function prototype.
17011 (grub_extcmd_dispatcher): New function prototype.
17012 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17013 type.
17014 * include/grub/script_sh.h (struct grub_script): New members
17015 `children', `next_siblings' and `refcnt' for block arguments and
17016 reference counting.
17017 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17018 (grub_script_arg): New member `script' for block argument.
17019 (grub_script_argv): New member `script' for block argument.
17020 (grub_parser_param): New member `scripts' for block argument.
17021 (grub_script_mem_free): New extern function prototype.
17022 (grub_script_ref): New function prototype.
17023 (grub_script_unref): New function prototype.
17024
17025 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17026 extcmd form to support block arguments.
17027 * grub-core/script/argv.c: Block arguments support.
17028 * grub-core/script/execute.c: Likewise.
17029 * grub-core/script/lexer.c: Likewise.
17030 * grub-core/script/main.c: Likewise.
17031 * grub-core/script/script.c: Likewise.
17032 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17033 non-terminals.
17034
17035 * grub-core/commands/acpi.c: Update extcmd implementations with
17036 grub_extcmd_context_t.
17037 * grub-core/commands/cat.c: Likewise.
17038 * grub-core/commands/echo.c: Likewise.
17039 * grub-core/commands/extcmd.c: Likewise.
17040 * grub-core/commands/hashsum.c: Likewise.
17041 * grub-core/commands/hdparm.c: Likewise.
17042 * grub-core/commands/help.c: Likewise.
17043 * grub-core/commands/hexdump.c: Likewise.
17044 * grub-core/commands/i386/cpuid.c: Likewise.
17045 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17046 * grub-core/commands/i386/pc/halt.c: Likewise.
17047 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17048 * grub-core/commands/iorw.c: Likewise.
17049 * grub-core/commands/keystatus.c: Likewise.
17050 * grub-core/commands/loadenv.c: Likewise.
17051 * grub-core/commands/ls.c: Likewise.
17052 * grub-core/commands/lspci.c: Likewise.
17053 * grub-core/commands/memrw.c: Likewise.
17054 * grub-core/commands/probe.c: Likewise.
17055 * grub-core/commands/search_wrap.c: Likewise.
17056 * grub-core/commands/setpci.c: Likewise.
17057 * grub-core/commands/sleep.c: Likewise.
17058 * grub-core/disk/loopback.c: Likewise.
17059 * grub-core/hello/hello.c: Likewise.
17060 * grub-core/loader/i386/bsd.c: Likewise.
17061 * grub-core/loader/xnu.c: Likewise.
17062 * grub-core/term/gfxterm.c: Likewise.
17063 * grub-core/term/serial.c: Likewise.
17064 * grub-core/tests/lib/functional_test.c: Likewise.
17065
17066 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17067
17068 Multi-line quoted strings support.
17069
17070 * grub-core/script/lexer.c (append_newline): Removed.
17071 (grub_script_lexer_yywrap): Refactored.
17072 (grub_script_lexer_init): Refactored.
17073 * grub-core/script/yylex.l (yywrap): New function.
17074 (grub_lexer_resplit): New function.
17075 (grub_lexer_unput): New function.
17076 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17077 and resplit.
17078 * tests/grub_script_echo1.in: Added few more testcases.
17079
17080 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17081
17082 * grub-core/kern/misc.c: Don't add abort alias in utils.
17083 Reported by: echoline.
17084
17085 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17086
17087 Add missing files into "make dist" tarball for other platforms.
17088
17089 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17090 * conf/Makefile.common (dist_noinst_DATA): New variable.
17091 * conf/Makefile.extra-dist: Added missing make dist files.
17092 * grub-core/Makefile.core.def: Likewise.
17093
17094 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17095
17096 Compress grub_prefix.
17097
17098 * grub-core/boot/i386/pc/lnxboot.S: Use
17099 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17100 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17101 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17102 GRUB_MACHINE_PREFIX_END. All users updated.
17103 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17104 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17105 + 0x40.
17106 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17107 * util/grub-mkimage.c (image_target_desc): Change data_end to
17108 prefix_end. All users updated.
17109
17110 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17111
17112 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17113 value.
17114 (grub_openbsd_boot): Likewise.
17115 (grub_netbsd_boot): Likewise.
17116 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17117 (grub_xnu_boot): Likewise.
17118
17119 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17120
17121 * configure.ac: Clean LIBS variable after tests.
17122
17123 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17124
17125 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17126
17127 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17128
17129 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17130 echo if libdevmapper will be used.
17131
17132 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17133
17134 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17135 constant for the same file.
17136
17137 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17138
17139 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17140
17141 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17142
17143 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17144 grub-core/*.pp.
17145
17146 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17147
17148 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17149 required by the boot protocol.
17150
17151 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17152 ebp and edi members.
17153 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17154 state.ebp and state.edi.
17155 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17156 %ebp and %edi according to grub_relocator32_ebp and
17157 grub_relocator32_edi respectively.
17158 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17159 and state.edi.
17160
17161 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17162
17163 Add i386-pc-pxe image target.
17164
17165 * util/grub-mkimage.c (image_target_desc): New enum value
17166 IMAGE_I386_PC_PXE.
17167 (image_targets): New target i386-pc-pxe.
17168 (generate_image): Handle i386-pc-pxe image.
17169
17170 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 Fix grub_pxe_scan.
17173
17174 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17175 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17176 All users updated.
17177 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17178 (grub_pxe_pxenv): Correct type.
17179
17180 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17181
17182 * NEWS: Document most of the important changes since 1.98.
17183
17184 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17185
17186 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17187 generated manual page) a little.
17188
17189 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17190
17191 * docs/grub.texi: Add myself as an author.
17192
17193 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 * Makefile.util.def (libgrub.a): Add missing sunpc.
17196 Reported by: Seth Goldberg.
17197
17198 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17199
17200 Interrupt wrapping and code simplifications.
17201
17202 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17203 x86_noieee1275 which are functionaly equivalent in this case.
17204 (grub-install): Make source on each platform explicit. Enable on
17205 all noemu.
17206 * gentpl.py (x86_efi_pc): Removed group.
17207 (x86_noefi): Likewise.
17208 (i386_noefi): Likewise.
17209 (x86_noieee1275): Likewise.
17210 (i386_noieee1275): Likewise.
17211 (i386_noefi_noieee1275): Likewise.
17212 (i386_pc_qemu_coreboot): Likewise.
17213 (i386_coreboot_multiboot): Likewise.
17214 (i386_pc_coreboot_multiboot_qemu): Likewise.
17215 (x86_noefi_mips): Likewise.
17216 (noieee1275): Likewise.
17217 (ieee1275_mips): Likewise.
17218 (noemu_noieee1275): Likewise.
17219 (cmos): New group.
17220 (usb): Likewise.
17221 (videoinkernel): Likewise.
17222 (videomodules): Likewise.
17223 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17224 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17225 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17226 include/grub/loader.h, include/grub/msdos_partition.h,
17227 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17228 include/grub/machine/console.h, include/grub/machine/vga.h,
17229 include/grub/machine/vbe.h, include/grub/machine/init.h,
17230 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17231 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17232 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17233 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17234 * grub-core/Makefile.core.def (kernel): Explicit the source for
17235 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17236 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17237 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17238 Use videoinkernel tag.
17239 (usb): Enable on all usb.
17240 (usbserial_common): Likewise.
17241 (usbserial_pl2303): Likewise.
17242 (usbserial_ftdi): Likewise.
17243 (uhci): Enable on all x86.
17244 (ohci): Enable on all pci.
17245 (cmostest): Enable on all CMOS.
17246 (acpi): Include commands/acpi.c on all platforms.
17247 (halt): Add relevant lib/*/halt.c.
17248 (hdparm): Enable on all pci.
17249 (lspci): Likewise.
17250 (usbtest): Enable on all usb.
17251 (ata): Enable on all pci.
17252 (ata_pthru): Likewise.
17253 (usbms): Enable on all usb.
17254 (usb_keyboard): Likewise.
17255 (font): Use tag videomodules.
17256 (bufio): Likewise.
17257 (datetime): Use tag cmos. Enable on all noemu.
17258 (mmap): Use tags common and x86.
17259 (gfxterm): Use tag videomodules.
17260 (bitmap): Likewise.
17261 (bitmap_scale): Likewise.
17262 (video_fb): Likewise.
17263 (video): Likewise.
17264 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17265 adjust padding accordingly. All users updated.
17266 (grub_ohci_transaction): Fix bad format specification.
17267 (GRUB_MOD_INIT): Add asserts for struct size.
17268 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17269 (grub_alloc_td): Likewise.
17270 (grub_free_queue): Likewise.
17271 (grub_uhci_transfer): Likewise.
17272 (grub_uhci_transaction): Fix bad format specification.
17273 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17274 (grub_usb_bulk_readwrite): Likewise.
17275 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17276 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17277 Made static.
17278 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17279 Made static.
17280 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17281 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17282 Transformed into C.
17283 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17284 Moved from here ...
17285 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17286 ... here. Transformed into C. Made static.
17287 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17288 Moved from here ...
17289 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17290 ... here. Transformed into C. Made static.
17291 * grub-core/kern/i386/pc/startup.S
17292 (grub_biosdisk_check_int13_extensions): Moved from here ...
17293 * grub-core/disk/i386/pc/biosdisk.c
17294 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17295 Made static.
17296 * grub-core/kern/i386/pc/startup.S
17297 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17298 * grub-core/disk/i386/pc/biosdisk.c
17299 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17300 Transformed into C. Made static.
17301 * grub-core/kern/i386/pc/startup.S
17302 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17303 * grub-core/disk/i386/pc/biosdisk.c
17304 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17305 Transformed into C. Made static.
17306 * grub-core/kern/i386/pc/startup.S
17307 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17308 * grub-core/disk/i386/pc/biosdisk.c
17309 (grub_biosdisk_get_diskinfo_standard): ... here.
17310 Transformed into C. Made static.
17311 * grub-core/kern/i386/pc/startup.S
17312 (grub_biosdisk_get_num_floppies): Moved from here ...
17313 * grub-core/disk/i386/pc/biosdisk.c
17314 (grub_biosdisk_get_num_floppies): ... here.
17315 Transformed into C. Made static.
17316 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17317 New function.
17318 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17319 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17320 Transformed into C. Made static.
17321 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17322 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17323 Transformed into C. Made static.
17324 * grub-core/kern/i386/ieee1275/init.c: Removed.
17325 * grub-core/kern/i386/misc.S: Likewise.
17326 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17327 Splitted from here ...
17328 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17329 Transformed into C. Made static. All users updated.
17330 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17331 Transformed into C. Made static. All users updated.
17332 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17333 Moved from here...
17334 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17335 Transformed into C. Made static. All users updated.
17336 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17337 Moved from here...
17338 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17339 Transformed into C. Made static. All users updated.
17340 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17341 Removed (replaced by C version).
17342 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17343 Moved from here...
17344 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17345 Transformed into C. Made static.
17346 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17347 Moved from here...
17348 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17349 ... here. Transformed into C.
17350 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17351 Moved from here...
17352 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17353 ... here. Transformed into C.
17354 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17355 Moved from here...
17356 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17357 ... here. Transformed into C. Made static.
17358 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17359 Moved from here...
17360 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17361 ... here. Transformed into C.
17362 * grub-core/kern/i386/pc/startup.S
17363 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17364 * grub-core/video/i386/pc/vbe.c
17365 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17366 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17367 Moved from here...
17368 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17369 ... here. Transformed into C.
17370 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17371 Moved from here...
17372 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17373 ... here. Transformed into C.
17374 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17375 Moved from here...
17376 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17377 ... here. Transformed into C.
17378 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17379 Moved from here...
17380 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17381 ... here. Transformed into C.
17382 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17383 Moved from here...
17384 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17385 ... here. Transformed into C. Made static.
17386 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17387 Moved from here...
17388 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17389 ... here. Transformed into C. Made static.
17390 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17391 Moved from here...
17392 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17393 ... here. Transformed into C. Made static.
17394 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17395 pxe_rm_entry as third argument.
17396 (grub_bios_interrupt): New function.
17397 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17398 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17399 of calling grub_stop.
17400 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17401 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17402 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17403 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17404 * grub-core/lib/i386/halt.c: Moved from here ...
17405 * grub-core/lib/i386/halt.c: ... here.
17406 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17407 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17408 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17409 grub_stop_floppy.
17410 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17411 * include/grub/i386/coreboot/init.h: Removed.
17412 * include/grub/i386/multiboot/init.h: Likewise.
17413 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17414 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17415 * include/grub/i386/pc/int.h: New file.
17416 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17417 (grub_pxe_scan): Removed.
17418 (grub_pxe_call): Update prototype.
17419 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17420 prototypes.
17421 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17422 * include/grub/i386/qemu/init.h: Removed.
17423 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17424 noreturn.
17425 (grub_halt): Likewise.
17426 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17427 (grub_reboot): Likewise.
17428 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17429 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17430 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17431
17432 2010-08-30 Robert Millan <rmh@gnu.org>
17433
17434 * NEWS: Document addition of ZFS support in `grub-install' and
17435 `grub-mkconfig'.
17436
17437 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17438
17439 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17440 dprintf output.
17441
17442 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17443
17444 Remove leftover embedding of font objects.
17445
17446 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17447 * util/grub-install.in (font): Removed.
17448 * util/grub-mkimage.c (generate_image): Remove font support. All users
17449 updated.
17450
17451 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17452
17453 Remove leftover embedding of font objects.
17454
17455 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17456 * util/grub-install.in (font): Removed.
17457 * util/grub-mkimage.c (generate_image): Remove font support. All users
17458 updated.
17459
17460 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17461
17462 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17463 Reported by: Ian Turner
17464
17465 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17466
17467 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17468 timeout to avoid indefinite boot stalling.
17469
17470 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17473 (grub_env_write_color_highlight): Likewise.
17474
17475 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17476
17477 * grub-core/normal/term.c (print_more): Return to normal and not
17478 to standard state after printing "---MORE---".
17479
17480 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17481
17482 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17483 Mask out the bit 0x80 since it has other meaning that specifiing color.
17484
17485 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17486
17487 New relocator. Allows for more kernel support and more straightforward
17488 loader writing.
17489
17490 * Makefile.am (BOOTTARGET): New variable.
17491 (QEMU32): Likewise.
17492 (linux.init.x86_64): New target.
17493 (linux.init.i386): Likewise.
17494 (multiboot.elf): Likewise.
17495 (kfreebsd.elf): Likewise.
17496 (kfreebsd.aout): Likewise.
17497 (pc-chainloader.elf): Likewise.
17498 (pc-chainloader.bin): Likewise.
17499 (ntldr.elf): Likewise.
17500 (ntldr.bin): Likewise.
17501 (multiboot2.elf): Likewise.
17502 (kfreebsd.init.x86_64): Likewise.
17503 (kfreebsd.init.i386): Likewise.
17504 (knetbsd.init.i386): Likewise.
17505 (kopenbsd.init.i386): Likewise.
17506 (knetbsd.init.x86_64): Likewise.
17507 (kopenbsd.init.x86_64): Likewise.
17508 (linux-initramfs.i386): Likewise.
17509 (linux-initramfs.x86_64): Likewise.
17510 (kfreebsd-mfsroot.i386.img): Likewise.
17511 (knetbsd.image.i386): Likewise.
17512 (kopenbsd.image.i386): Likewise.
17513 (kopenbsd.image.x86_64): Likewise.
17514 (knetbsd.miniroot-image.i386.img): Likewise.
17515 (kfreebsd-mfsroot.x86_64.img): Likewise.
17516 (knetbsd.image.x86_64): Likewise.
17517 (knetbsd.miniroot-image.x86_64.img): Likewise.
17518 (kfreebsd-mfsroot.i386.gz): Likewise.
17519 (bootcheck-kfreebsd-i386): Likewise.
17520 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17521 (bootcheck-kfreebsd-x86_64): Likewise.
17522 (knetbsd.miniroot-image.i386.gz): Likewise.
17523 (bootcheck-knetbsd-i386): Likewise.
17524 (bootcheck-kopenbsd-i386): Likewise.
17525 (bootcheck-kopenbsd-x86_64): Likewise.
17526 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17527 (bootcheck-knetbsd-x86_64): Likewise.
17528 (bootcheck-linux-i386): Likewise.
17529 (bootcheck-linux-x86_64): Likewise.
17530 (bootcheck-linux16-i386): Likewise.
17531 (bootcheck-linux16-x86_64): Likewise.
17532 (bootcheck-multiboot): Likewise.
17533 (bootcheck-multiboot2): Likewise.
17534 (bootcheck-kfreebsd-aout): Likewise.
17535 (bootcheck-pc-chainloader): Likewise.
17536 (bootcheck-ntldr): Likewise.
17537 (CLEANFILES): Add new targets.
17538 (BOOTCHECKS): New variable.
17539 (.PHONY): Add bootchecks.
17540 (SUCCESSFUL_BOOT_STRING): New variable.
17541 (BOOTCHECK_TIMEOUT): Likewise.
17542 (bootcheck): New target
17543 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17544 * configure.ac: Correct efiemu excuse.
17545 * docs/grub.texi (Supported kernels): New chapter.
17546 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17547 include/grub/mm_private.h. Simplify inclusion of
17548 include/grub/boot.h, include/grub/loader.h
17549 and include/grub/msdos_partition.h
17550 (KERNEL_HEADER_FILES) [i386_coreboot]:
17551 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17552 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17553 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17554 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17555 include/grub/machine/loader.h.
17556 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17557 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17558 extra_dist.
17559 (pci.mod): Enable on i386-multiboot.
17560 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17561 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17562 i386-qemu.
17563 (relocator.mod): Rewritten.
17564 (aout.mod): Enable on all x86.
17565 (bsd.mod): Likewise.
17566 (ntldr.mod): New module.
17567 (linux.mod): Use loader/i386/linux.c on all x86.
17568 (xnu.mod): Enable on all x86.
17569 (vga_text.mod): disable on EFI and QEMU.
17570 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17571 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17572 * grub-core/efiemu/loadcore.c: Likewise.
17573 * grub-core/efiemu/main.c: Likewise.
17574 (grub_efiemu_exit_boot_services): Removed.
17575 (grub_efiemu_finish_boot_services): Likewise.
17576 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17577 function.
17578 * grub-core/efiemu/i386/nocfgtables.c: New file.
17579 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17580 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17581 (grub_efi_finish_boot_services): Moved from here ...
17582 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17583 Fille finish memory map and related data.
17584 (finish_mmap_buf): New variable.
17585 (grub_efi_uintn_t finish_mmap_size): Likewise.
17586 (grub_efi_uintn_t finish_key): Likewise.
17587 (grub_efi_uintn_t finish_desc_size): Likewise.
17588 (grub_efi_uint32_t finish_desc_version): Likewise.
17589 (grub_efi_is_finished): Likewise.
17590 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17591 finished.
17592 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17593 (grub_elf64_phdr_iterate): Likewise.
17594 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17595 (grub_os_area_size): Likewise.
17596 (grub_machine_init): Don't reserve os area.
17597 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17598 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17599 * grub-core/kern/i386/loader.S: Removed.
17600 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17601 (grub_os_area_size): Likewise.
17602 (grub_machine_init): Don't reserve os area.
17603 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17604 Don't call grub_dl_unload_all.
17605 Don't include loader.S.
17606 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17607 Declare the memory after _end as available.
17608 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17609 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17610 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17611 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17612 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17613 * include/grub/mm_private.h (grub_mm_header): ... here.
17614 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17615 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17616 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17617 (grub_mm_region): ..here. Removed addr. Added pre_size.
17618 All users updated.
17619 * grub-core/kern/mm.c (base): Renamed to ...
17620 (grub_mm_base): ... this. Made global.
17621 (grub_real_malloc): Alloc from end of region.
17622 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17623 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17624 * grub-core/kern/powerpc/cache_flush.S: ... here.
17625 * grub-core/lib/efi/relocator.c: New file.
17626 * grub-core/lib/i386/relocator.c: Rewritten.
17627 * grub-core/lib/i386/relocator16.S: New file.
17628 * grub-core/lib/i386/relocator32.S: Likewise.
17629 * grub-core/lib/i386/relocator64.S: Likewise.
17630 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17631 * grub-core/lib/i386/relocator_common.S: New file.
17632 * grub-core/lib/ieee1275/relocator.c: Likewise.
17633 * grub-core/lib/mips/relocator.c: Rewritten.
17634 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17635 stylistic adjustments.
17636 * grub-core/lib/powerpc/relocator.c: New file.
17637 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17638 * grub-core/lib/relocator.c: Rewritten.
17639 * grub-core/lib/x86_64/relocator_asm.S: New file.
17640 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17641 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17642 (bsd_tag): New struct.
17643 (tags): New variable.
17644 (tags_last): Likewise.
17645 (netbsd_module): New struct.
17646 (netbsd_mods): New variable.
17647 (netbsd_mods_last): Likewise.
17648 (openbsd_opts): New parameter "serial".
17649 (OPENBSD_SERIAL_ARG): New definition.
17650 (netbsd_opts): New parameter "serial".
17651 (NETBSD_SERIAL_ARG): New definition.
17652 (grub_freebsd_add_meta): Reorganised into ...
17653 (grub_bsd_add_meta): ...this. All users updated.
17654 (grub_freebsd_add_mmap): Reorganised into ...
17655 (generate_e820_mmap): ...this...
17656 (grub_bsd_add_mmap): ...and this. All users updated.
17657 (grub_freebsd_list_modules): Use tags.
17658 (grub_netbsd_add_meta_module): New function.
17659 (grub_netbsd_list_modules): Likewise.
17660 (grub_freebsd_boot): Use relocator and finish EFI.
17661 (grub_openbsd_boot): Likewise.
17662 (grub_netbsd_setup_video): New function.
17663 (grub_netbsd_add_modules): Likewise.
17664 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17665 and finish EFI.
17666 (grub_bsd_unload): Unload tags.
17667 (grub_bsd_load_aout): Use relocator.
17668 (grub_bsd_elf32_size_hook): New function.
17669 (grub_bsd_elf32_hook): Use relocator.
17670 (grub_bsd_elf64_size_hook): New function.
17671 (grub_bsd_elf64_hook): Use relocator.
17672 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17673 (grub_bsd_load): Zero-out openbsd_ramdisk.
17674 (grub_bsd_load): Use relocator.
17675 (grub_cmd_openbsd): Support serial.
17676 (grub_cmd_netbsd): Support modules.
17677 (grub_cmd_freebsd_module): Use relocator.
17678 (grub_netbsd_module_load): New function.
17679 (grub_cmd_netbsd_module): Likewise.
17680 (grub_cmd_openbsd_ramdisk): Likewise.
17681 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17682 kopenbsd_ramdisk.
17683 (GRUB_MOD_FINI): Unregister new commands.
17684 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17685 (grub_freebsd_load_elfmodule_obj): Use relocator.
17686 (grub_freebsd_load_elfmodule): Likewise.
17687 (grub_freebsd_load_elf_meta): Likewise.
17688 (grub_netbsd_load_elf_meta): New function.
17689 (grub_openbsd_find_ramdisk): Likewise.
17690 * grub-core/loader/i386/bsd_helper.S: Removed.
17691 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17692 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17693 * grub-core/loader/i386/efi/linux.c: Likewise.
17694 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17695 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17696 (DEFAULT_VIDEO_MODE): Likewise.
17697 (real_mode_target): New variable.
17698 (prot_mode_target): Likewise.
17699 (initrd_mem_target): Likewise.
17700 (relocator): Likewise.
17701 (efi_mmap_buf): Likewise.
17702 (efi_mmap_size): Likewise.
17703 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17704 (free_pages): Use relocator.
17705 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17706 (grub_linux_setup_video): Return error.
17707 (grub_linux_trampoline_start): Removed.
17708 (grub_linux_trampoline_end): Likewise.
17709 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17710 andd video parameters depending on firmware.
17711 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17712 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17713 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17714 (grub_cmd_initrd): Use relocator.
17715 * grub-core/loader/i386/linux_trampoline.S: Removed.
17716 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17717 (elf_sec_entsize): Likewise.
17718 (elf_sec_shstrndx): Likewise.
17719 (elf_sections): Likewise.
17720 (grub_multiboot_load): Use relocator.
17721 (grub_multiboot_get_mbi_size): Account for sections.
17722 (grub_multiboot_make_mbi): Use relocator and support sections.
17723 (grub_multiboot_add_elfsyms): New function.
17724 (grub_multiboot_free_mbi): Free sections.
17725 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17726 (grub_linux_real_target): Likewise.
17727 (grub_linux_real_chunk): Likewise.
17728 (grub_linux16_prot_size): Likewise.
17729 (grub_linux16_boot): Use relocator.
17730 (grub_linux_unload): Unload relocator.
17731 (grub_cmd_linux): Use relocator.
17732 (grub_cmd_initrd): Likewise.
17733 * grub-core/loader/i386/pc/ntldr.c: New file.
17734 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17735 Don't try to guess CPU frequency.
17736 (grub_xnu_set_video): Stretch bitmap.
17737 (grub_xnu_boot): Use relocator.
17738 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17739 (grub_linux_unload): Free relocator.
17740 (grub_linux_load32): Use relocator.
17741 (grub_linux_load64): Likewise.
17742 (grub_cmd_initrd): Likewise.
17743 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17744 (grub_multiboot_unload): Unload relocator.
17745 (grub_cmd_multiboot): Use relocator.
17746 (grub_cmd_module): Likewise.
17747 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17748 Use relocator and support sections.
17749 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17750 (elf_sec_entsize): Likewise.
17751 (elf_sec_shstrndx): Likewise.
17752 (elf_sections): Likewise.
17753 (grub_multiboot_load): Use relocator.
17754 (grub_multiboot_get_mbi_size): Account for sections.
17755 (grub_multiboot_make_mbi): Use relocator and support sections.
17756 (grub_multiboot_add_elfsyms): New function.
17757 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17758 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17759 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17760 Prototype changed. All users updated.
17761 (grub_xnu_align_heap): Simplified.
17762 (grub_xnu_writetree_toheap): Likewise.
17763 (grub_xnu_unload): Unload relocator.
17764 (grub_cmd_xnu_kernel): Use relocator.
17765 (grub_cmd_xnu_kernel64): Likewise.
17766 (grub_xnu_register_memory): Simplified.
17767 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17768 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17769 EFI is finished.
17770 (grub_console_checkkey): Likewise.
17771 (grub_console_getkey): Likewise.
17772 (grub_console_getwh): Likewise.
17773 (grub_console_getxy): Likewise.
17774 (grub_console_gotoxy): Likewise.
17775 (grub_console_cls): Likewise.
17776 (grub_console_setcolorstate): Likewise.
17777 (grub_console_setcursor): Likewise.
17778 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17779 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17780 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17781 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17782 * grub-core/tests/boot/kernel-8086.S: Likewise.
17783 * grub-core/tests/boot/kernel-i386.S: Likewise.
17784 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17785 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17786 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17787 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17788 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17789 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17790 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17791 * grub-core/tests/boot/linux.cfg: Likewise.
17792 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17793 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17794 * grub-core/tests/boot/linux16.cfg: Likewise.
17795 * grub-core/tests/boot/multiboot.cfg: Likewise.
17796 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17797 * grub-core/tests/boot/ntldr.cfg: Likewise.
17798 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17799 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17800 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17801 New definition.
17802 * include/grub/dl.h (grub_dl_unload_all): Removed.
17803 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17804 (grub_efi_finish_boot_services): Change prototype.
17805 (grub_efi_is_finished): New variable.
17806 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17807 Changed prototype.
17808 (grub_efiemu_finish_boot_services): Removed.
17809 (grub_machine_efiemu_init_tables): New prototype.
17810 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17811 (grub_elf64_phdr_iterate): Likewise.
17812 * include/grub/i386/bsd.h: Include relocator.h.
17813 (freebsd_tag_header): New struct.
17814 (grub_openbsd_bios_mmap): Removed.
17815 (grub_unix_real_boot): Removed.
17816 (grub_freebsd_load_elfmodule32): Changed prototype.
17817 (grub_freebsd_load_elfmodule_obj64): Likewise.
17818 (grub_freebsd_load_elf_meta32): Likewise.
17819 (grub_freebsd_load_elf_meta64): Likewise.
17820 (grub_freebsd_add_meta): Removed.
17821 (grub_netbsd_load_elf_meta32): New prototype.
17822 (grub_netbsd_load_elf_meta64): Likewise.
17823 (grub_bsd_add_meta): Likewise.
17824 (grub_openbsd_ramdisk_descriptor): New struct.
17825 (grub_openbsd_find_ramdisk32): New prototype.
17826 (grub_openbsd_find_ramdisk64): Likewise.
17827 * include/grub/i386/coreboot/loader.h: Removed.
17828 * include/grub/i386/efi/loader.h: Likewise.
17829 * include/grub/i386/ieee1275/loader.h: Likewise.
17830 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17831 to grub_uint32_t.
17832 * include/grub/i386/loader.h: Removed.
17833 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17834 value.
17835 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17836 (grub_phys_addr_t): New type.
17837 (grub_vtop): New inline function.
17838 (grub_map_memory): Likewise.
17839 (grub_unmap_memory): Likewise.
17840 * include/grub/i386/multiboot/loader.h: Removed.
17841 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17842 (NETBSD_BTINFO_CONSOLE): New definition.
17843 (NETBSD_BTINFO_SYMTAB): Likewise.
17844 (NETBSD_BTINFO_MODULES): Likewise.
17845 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17846 (grub_netbsd_bootinfo): New struct.
17847 (grub_netbsd_btinfo_common): Use explicit bitsize.
17848 (grub_netbsd_btinfo_mmap_entry): Removed.
17849 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17850 (grub_netbsd_btinfo_bootdisk): New struct.
17851 (grub_netbsd_btinfo_symtab): Likewise.
17852 (grub_netbsd_btinfo_serial): Likewise.
17853 (grub_netbsd_btinfo_modules): Likewise.
17854 (grub_netbsd_btinfo_framebuf): Likewise.
17855 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17856 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17857 Likewise.
17858 (grub_openbsd_bootargs): Use explicit bitsize.
17859 (grub_openbsd_bootarg_console): New struct.
17860 (GRUB_OPENBSD_COM_MAJOR): New definition.
17861 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17862 * include/grub/i386/pc/efiemu.h: Removed.
17863 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17864 * include/grub/i386/qemu/loader.h: Removed.
17865 * include/grub/i386/relocator.h: Rewritten.
17866 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17867 * include/grub/mips/memory.h: New file.
17868 * include/grub/mips/multiboot.h: Rewritten.
17869 * include/grub/mips/relocator.h: Rewritten.
17870 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17871 (grub_vtop): New function.
17872 (grub_map_memory): Likewise.
17873 (grub_unmap_memory): Likewise.
17874 * include/grub/misc.h (ALIGN_DOWN): New definition.
17875 * include/grub/mm.h (grub_mm_check_real): New proto.
17876 (GRUB_MM_CHECK): New definition.
17877 * include/grub/mm_private.h: New file.
17878 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17879 (grub_multiboot_get_mbi_size): Removed.
17880 (grub_multiboot_make_mbi): Change prottype.
17881 (grub_multiboot_set_accepts_video): New proto.
17882 (grub_multiboot_add_elfsyms): Likewise.
17883 (grub_multiboot_payload_eip): New variable.
17884 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17885 New prototype.
17886 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17887 New definition.
17888 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17889 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17890 * include/grub/powerpc/ieee1275/loader.h: Removed.
17891 * include/grub/powerpc/memory.h: New file.
17892 * include/grub/powerpc/relocator.h: Likewise.
17893 * include/grub/relocator.h: Likewise.
17894 * include/grub/relocator_private.h: Likewise.
17895 * include/grub/sparc64/ieee1275/loader.h: Removed.
17896 * include/grub/x86_64/memory.h: New file.
17897 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17898 (grub_xnu_heap_malloc): Likewise.
17899 (grub_xnu_heap_real_start): Removed.
17900 (grub_xnu_heap_start): Likewise.
17901 (grub_xnu_relocator): New variable.
17902 (grub_xnu_heap_target_start): Likewise.
17903 * tests/util/grub-shell.in: Support non-pc.
17904 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17905
17906 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17907
17908 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17909 on malloc error.
17910 (grub_bidi_logical_to_visual): Check that malloc succeded.
17911 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17912 puts.
17913 (grub_xputs_normal): Likewise.
17914
17915 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17918 extra_dist.
17919
17920 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17921
17922 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17923
17924 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17925
17926 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17927
17928 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17929
17930 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17931 dprintf.
17932
17933 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17934
17935 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
17936
17937 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17938
17939 * grub-core/normal/term.c (print_more): Fix a memory leak.
17940 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
17941 (grub_xputs_normal): Likewise.
17942
17943 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17944
17945 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
17946 the begining of the string
17947
17948 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17949
17950 * grub-core/script/script.c (grub_script_parse): Free parsed on
17951 failure.
17952
17953 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17954
17955 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
17956 on failure.
17957
17958 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17959
17960 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
17961 return.
17962
17963 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17964
17965 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
17966 (scroll_up): Fix a memory leak.
17967
17968 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17969
17970 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
17971 errors.
17972
17973 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
17974
17975 Handle USB pendrives exposed as floppies.
17976
17977 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
17978 floppy.
17979 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17980 Check for partitions on all devices.
17981
17982 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17983
17984 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
17985 (readkey): Likewise.
17986
17987 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17988
17989 Multiple variable names support to "export" command.
17990
17991 * normal/context.c (grub_cmd_export): "export" command supports
17992 multiple variable names.
17993
17994 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
17995
17996 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
17997 --target=drive output to Mach device name.
17998
17999 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18000
18001 New Automake based build system for GRUB.
18002
18003 * ABOUT-NLS: New file.
18004 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18005 in Makefile.util.def file.
18006 * Makefile.util.def: New file. Autogen build definitions file for
18007 GRUB host utils.
18008 * conf/Makefile.common: New file. Common variables for GRUB host
18009 utils and target modules.
18010 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18011 * docs/Makefile.am: New file. Automake file for docs.
18012 * gentpl.py: New file. Python script to generate Autogen
18013 template.
18014 * grub-core/Makefile.am: New file. GRUB target modules' rules
18015 that doesn't fit in Makefile.core.def file.
18016 * grub-core/Makefile.core.def: New file. Autogen build
18017 definitions file for GRUB target modules.
18018 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18019 specific setjmp.S file.
18020 * po/Makefile.am: New file.
18021
18022 * .bzrignore: New ignores.
18023 * INSTALL: New requirements, without Ruby.
18024 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18025 * autogen.sh: Updated to invoke autogen as necessary.
18026 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18027 and defines for Automake conditionals.
18028 * geninit.sh: Refactoring.
18029
18030 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18031 necessary.
18032 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18033 New prototype.
18034
18035 * include/grub/test.h: Fix functional test modules' naming.
18036 * grub-core/tests/example_functional_test.c: Fix test module name.
18037
18038 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18039 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18040 * util/grub-editenv.c: Likewise.
18041 * util/grub-fstest.c: Likewise.
18042 * util/grub-mkdevicemap.c: Likewise.
18043 * util/grub-mkfont.c: Likewise.
18044 * util/grub-mkimage.c: Likewise.
18045 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18046 * util/grub-probe.c: Likewise.
18047 * util/grub-script-check.c: Likewise.
18048 * util/i386/pc/grub-setup.c: Likewise.
18049 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18050
18051 * tests/util/grub-shell.in: Fix override directory path.
18052 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18053 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18054
18055 * util/lvm.c: Update #includes.
18056 * util/raid.c: Likewise.
18057 * util/resolve.c: Likewise.
18058 * grub-core/bus/emu/pci.c: Likewise.
18059 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18060 * grub-core/lib/posix_wrap/string.h: Likewise.
18061 * grub-core/kern/emu/main.c: Likewise.
18062
18063 * grub-core/gensymlist.sh: New file. Script for generating kernel
18064 symbols file.
18065 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18066
18067 * grub-core/gentrigtables.c: Fix unused variable warnings.
18068
18069 * Makefile.in: Removed.
18070 * conf/any-emu.rmk: Removed.
18071 * conf/common.rmk: Removed.
18072 * conf/i386-coreboot.rmk: Removed.
18073 * conf/i386-efi.rmk: Removed.
18074 * conf/i386-ieee1275.rmk: Removed.
18075 * conf/i386-multiboot.rmk: Removed.
18076 * conf/i386-pc.rmk: Removed.
18077 * conf/i386-qemu.rmk: Removed.
18078 * conf/i386.rmk: Removed.
18079 * conf/mips-yeeloong.rmk: Removed.
18080 * conf/mips.rmk: Removed.
18081 * conf/powerpc-ieee1275.rmk: Removed.
18082 * conf/sparc64-ieee1275.rmk: Removed.
18083 * conf/tests.rmk: Removed.
18084 * conf/x86-efi.rmk: Removed.
18085 * conf/x86_64-efi.rmk: Removed.
18086 * gendistlist.sh: Removed.
18087 * geninitheader.sh: Removed.
18088 * genkernsyms.sh.in: Removed.
18089 * genmk.rb: Removed.
18090 * gensymlist.sh.in: Removed.
18091 * mkinstalldirs: Removed.
18092 * boot: Moved ...
18093 * grub-core/boot: ... to here.
18094 * bus: Moved ...
18095 * grub-core/bus: ... to here.
18096 * commands: Moved ...
18097 * grub-core/commands: ... to here.
18098 * disk: Moved ...
18099 * grub-core/disk: ... to here.
18100 * efiemu: Moved ...
18101 * grub-core/efiemu: ... to here.
18102 * font: Moved ...
18103 * grub-core/font: ... to here.
18104 * fs: Moved ...
18105 * grub-core/fs: ... to here.
18106 * gencmdlist.sh: Moved ...
18107 * grub-core/gencmdlist.sh: ... to here.
18108 * genemuinit.sh: Moved ...
18109 * grub-core/genemuinit.sh: ... to here.
18110 * genemuinitheader.sh: Moved ...
18111 * grub-core/genemuinitheader.sh: ... to here.
18112 * genfslist.sh: Moved ...
18113 * grub-core/genfslist.sh: ... to here.
18114 * genhandlerlist.sh: Moved ...
18115 * grub-core/genhandlerlist.sh: ... to here.
18116 * genmoddep.awk: Moved ...
18117 * grub-core/genmoddep.awk: ... to here.
18118 * genmodsrc.sh: Moved ...
18119 * grub-core/genmodsrc.sh: ... to here.
18120 * genpartmaplist.sh: Moved ...
18121 * grub-core/genpartmaplist.sh: ... to here.
18122 * genparttoollist.sh: Moved ...
18123 * grub-core/genparttoollist.sh: ... to here.
18124 * genterminallist.sh: Moved ...
18125 * grub-core/genterminallist.sh: ... to here.
18126 * gentrigtables.c: Moved ...
18127 * grub-core/gentrigtables.c: ... to here.
18128 * genvideolist.sh: Moved ...
18129 * grub-core/genvideolist.sh: ... to here.
18130 * gettext: Moved ...
18131 * grub-core/gettext: ... to here.
18132 * gfxmenu: Moved ...
18133 * grub-core/gfxmenu: ... to here.
18134 * gnulib: Moved ...
18135 * grub-core/gnulib: ... to here.
18136 * hello: Moved ...
18137 * grub-core/hello: ... to here.
18138 * hook: Moved ...
18139 * grub-core/hook: ... to here.
18140 * io: Moved ...
18141 * grub-core/io: ... to here.
18142 * kern: Moved ...
18143 * grub-core/kern: ... to here.
18144 * lib: Moved ...
18145 * grub-core/lib: ... to here.
18146 * loader: Moved ...
18147 * grub-core/loader: ... to here.
18148 * mmap: Moved ...
18149 * grub-core/mmap: ... to here.
18150 * normal: Moved ...
18151 * grub-core/normal: ... to here.
18152 * partmap: Moved ...
18153 * grub-core/partmap: ... to here.
18154 * parttool: Moved ...
18155 * grub-core/parttool: ... to here.
18156 * script: Moved ...
18157 * grub-core/script: ... to here.
18158 * term: Moved ...
18159 * grub-core/term: ... to here
18160 * tests/example_functional_test.c: Moved ...
18161 * grub-core/tests/example_functional_test.c: ... to here.
18162 * tests/lib/functional_test.c: Moved ...
18163 * grub-core/tests/lib/functional_test.c: ... to here.
18164 * tests/lib/test.c: Moved ...
18165 * grub-core/tests/lib/test.c: ... to here.
18166 * video: Moved ...
18167 * grub-core/video: ... to here.
18168
18169 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18170
18171 Replace --enable-grub-emu-modules with grub-emu-lite.
18172
18173 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18174 cache.S.
18175
18176 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18177 * kern/emu/full.c: New file. For grub-emu specific initialization.
18178 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18179 * kern/emu/main.c: Call initialization function grub_emu_init.
18180
18181 * Makefile.in: Include grub-emu-lite in install.
18182 * commands/parttool.c: Use grub_no_autoload to differentiate
18183 between grub-emu and grub-emu-lite.
18184 * include/grub/misc.h: New variable grub_no_autoload.
18185
18186 * conf/any-emu.rmk: New rules for grub-emu-lite.
18187 * configure.ac: Remove --enable-grub-emu-modules.
18188 * genmk.rb: Cleanup unnecessary rules.
18189 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18190
18191 * normal/main.c: Don't load list files on grub-emu-lite.
18192 * util/misc.c (grub_arch_sync_caches): Removed.
18193
18194 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18195
18196 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18197 grub-mkimage rather than grub-mkelfimage.
18198 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18199
18200 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18201
18202 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18203 a key after CapsLock or NumLock. It's just a qemu bug.
18204
18205 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18206
18207 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18208 needed by libusb wrapper.
18209
18210 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18211
18212 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18213
18214 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18215
18216 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18217 --nounzip is passed.
18218
18219 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18220
18221 USB hotunplugging and USB serial support.
18222
18223 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18224 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18225 (grub_uhci_transfer): Respect timeout and set *actual.
18226 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18227 non-standard length.
18228 (grub_usb_device_attach): Autoload modules.
18229 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18230 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18231 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18232 users updated.
18233 (grub_usb_add_hub): Fill nports and children.
18234 (attach_root_port): Receive hub instead of controller.
18235 All users updated. Fill hub->devices.
18236 (grub_usb_root_hub): Allocate hub->devices.
18237 (detach_device): New function.
18238 (poll_nonroot_hub): Fill children and detach devices.
18239 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18240 actual arguments. All users updated.
18241 (grub_usb_bulk_read_extended): New function.
18242 * bus/usb/serial/common.c: New file.
18243 * bus/usb/serial/ftdi.c: Likewise.
18244 * bus/usb/serial/pl2303.c: Likewise.
18245 * commands/terminal.c (handle_command): Support wildcard.
18246 * commands/usbtest.c: Output "Unknown" instead of empty string.
18247 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18248 (usbserial_common_mod_SOURCES): New variable.
18249 (usbserial_common_mod_CFLAGS): Likewise.
18250 (usbserial_common_mod_LDFLAGS): Likewise.
18251 (pkglib_MODULES): Add usbserial_pl2303.mod.
18252 (usbserial_pl2303_mod_SOURCES): New variable.
18253 (usbserial_pl2303_mod_CFLAGS): Likewise.
18254 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18255 (pkglib_MODULES): Add usbserial_ftdi.mod.
18256 (usbserial_ftdi_mod_SOURCES): New variable.
18257 (usbserial_ftdi_mod_CFLAGS): Likewise.
18258 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18259 (pkglib_MODULES): Add serial.mod.
18260 (serial_mod_SOURCES): New variable.
18261 (serial_mod_CFLAGS): Likewise.
18262 (serial_mod_LDFLAGS): Likewise.
18263 * conf/i386-pc.rmk: Likewise.
18264 * conf/mips-yeeloong.rmk: Likewise.
18265 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18266 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18267 * disk/usbms.c (first_available_slot): New variable.
18268 (grub_usbms_attach): Don't reuse free slots due to potential cache
18269 problems.
18270 * include/grub/serial.h: Moved to ..
18271 * include/grub/ns8250.h: ...this.
18272 * include/grub/serial.h: New file.
18273 * include/grub/term.h (grub_term_poll_usb): New variable.
18274 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18275 readkey. All users updated.
18276 (grub_terminfo_output_state): Pass term to put.
18277 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18278 (grub_usb_controller_dev): Add timeout and actual arguments to
18279 transfer. All users updated.
18280 (grub_usb_interface): New field detach_data.
18281 (grub_usb_device): New fields children and nports.
18282 (grub_usb_ep_type_t): New type.
18283 (grub_usb_get_ep_type): New function.
18284 (grub_usb_bulk_read_extended): Likewise.
18285 * include/grub/usbdesc.h (grub_usb_desc): New type.
18286 * include/grub/usbserial.h: New file.
18287 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18288 * kern/term.c (grub_term_poll_usb): New variable.
18289 (grub_getkey): Call grub_term_poll_usb if set.
18290 (grub_checkkey): Likewise.
18291 (grub_getkeystatus): Likewise.
18292 * term/serial.c: Moved controller-specific parts to ...
18293 * term/ns8250.c: ... here.
18294 * term/serial.c: Mostly rewritten.
18295 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18296 according to spec.
18297
18298 2010-08-20 Robert Millan <rmh@gnu.org>
18299
18300 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18301 a separate module and maybe other interesting combinations.
18302
18303 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18304 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18305 (kfreebsd_entry): Add generic filesystem module load routine.
18306 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18307
18308 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18309
18310 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18311 "numcenter" (I misunderstood the purpose of this entry).
18312 * docs/grub.texi (sendkey): Likewise.
18313
18314 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18315
18316 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18317 status flag options; simply omitting the option is equivalent and
18318 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18319 (keysym_table): Rename "num5numlock" to "numlock".
18320 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18321 can uniformly say that only the last of multiple `sendkey'
18322 invocations has any effect.
18323 * docs/grub.texi (sendkey): New section.
18324
18325 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18326
18327 * commands/i386/pc/sendkey.c (options): Fix three typos.
18328
18329 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18330
18331 Implement sendkey support.
18332
18333 * commands/i386/pc/sendkey.c: New file.
18334 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18335 (sendkey_mod_SOURCES): New variable.
18336 (sendkey_mod_CFLAGS): Likewise.
18337 (sendkey_mod_LDFLAGS): Likewise.
18338
18339 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18340
18341 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18342 fix warnings from Autoconf.
18343
18344 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18345
18346 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18347 to avoid false positives with some assemblers that output things
18348 like "someprefix_func" as part of their output.
18349
18350 2010-08-15 Robert Millan <rmh@gnu.org>
18351
18352 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18353 errors.
18354 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18355 grub_get_libzfs_handle() errors.
18356
18357 2010-08-14 Robert Millan <rmh@gnu.org>
18358
18359 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18360 filesystem is not ZFS.
18361
18362 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18363
18364 Fix for misspelled color names defaulting to black/black (bug
18365 reported by Doug Nazar)
18366
18367 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18368 status to prototype.
18369 * normal/color.c (grub_parse_color_name_pair): Return failure
18370 status.
18371 (grub_env_write_color_normal): Ignore bad color names.
18372 (grub_env_write_color_highlight): Likewise.
18373 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18374
18375 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18376
18377 "shift" command support to GRUB script.
18378
18379 * include/grub/script_sh.h (grub_script_shift): New prototype.
18380 * script/execute.c (grub_script_shift): New function.
18381 * script/main.c (grub_script_init): Register shift command.
18382 (grub_script_fini): Unregister shift command.
18383 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18384
18385 * tests/grub_script_shift.in: New testcase.
18386 * conf/tests.rmk: Rules for new testcase.
18387
18388 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18389
18390 "continue" command support to GRUB script.
18391
18392 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18393 (grub_script_break): Continue support.
18394 * script/main.c (grub_script_init): Register continue command.
18395 (grub_script_fini): Unregister continue command.
18396
18397 * tests/grub_script_continue.in: New testcase.
18398 * conf/tests.rmk: Rules for new testcase.
18399
18400 2010-08-12 BVK Chaitanya <bvk@dbook>
18401
18402 "break" command support to GRUB script.
18403
18404 * conf/common.rmk: Rule updates to grub-script-check.
18405 * include/grub/misc.h (grub_min): New function.
18406 * include/grub/script_sh.h (grub_script_init): New prototype.
18407 (grub_script_fini): New prototype.
18408 (grub_script_break): New prototype.
18409 * script/main.c (grub_script_init): New function.
18410 (grub_script_fini): New function.
18411 * script/execute.c (grub_script_break): New function.
18412 * normal/main.c: Calls to grub_script_{init,fini}.
18413 * util/grub-script-check.c (grub_script_break): New function.
18414
18415 * tests/grub_script_break.in: New testcase.
18416 * conf/tests.rmk: Rules for new test case.
18417
18418 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18419
18420 Function parameters support to GRUB script.
18421
18422 * script/yylex.l (VARIABLE): Regular expression update.
18423 * script/function.c (grub_script_function_call): Moved ...
18424 * script/execute.c (grub_script_function_call): ... to here.
18425 (grub_script_execute_arglist_to_argv): Removed.
18426 (grub_script_arglist_to_argv): New function.
18427 * script/argv.c: New file.
18428 (grub_script_argv_free): New function.
18429 (grub_script_argv_next): Likewise.
18430 (grub_script_argv_append): Likewise.
18431 (grub_script_argv_split_append): Likewise.
18432 * include/grub/script_sh.h (grub_script_argv): New struct.
18433 (grub_script_argv_free): New function.
18434 (grub_script_argv_next): Likewise.
18435 (grub_script_argv_append): Likewise.
18436 (grub_script_argv_split_append): Likewise.
18437
18438 * conf/common.rmk (normal.mod): New source script/argv.c.
18439
18440 * tests/grub_script_echo1.in: More tests.
18441 * tests/grub_script_vars1.in: Likewise.
18442 * tests/grub_script_functions.in: New test case.
18443 * conf/tests.rmk: Rules for new testcase.
18444
18445 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18446
18447 Remove grub_script_cmdblock struct.
18448
18449 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18450 * script/parser.y: Likewise.
18451 * script/execute.c: Rename cmdblock suffix to cmdlist.
18452 * script/script.c: Likewise.
18453 * util/grub-script-check.c: Likewise.
18454
18455 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18456
18457 * .bzrignore: add grub-macho2img
18458
18459 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18460
18461 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18462
18463 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18464
18465 Remove the dump of sm712 initialisation sequence.
18466
18467 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18468 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18469 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18470 (GRUB_VGA_CR_*): Added many registers.
18471 (GRUB_VGA_SR_*): Likewise.
18472 (GRUB_VGA_GR_*): Likewise.
18473 (grub_vga_write_arx): New function.
18474 (grub_video_hw_config): New struct.
18475 (grub_vga_set_geometry): New function.
18476 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18477 GRUB_PCI_CLASS_SUBCLASS_VGA.
18478 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18479 * video/sm712.c (grub_sm712_write_reg): New function
18480 (grub_sm712_read_reg): Likewise.
18481 (grub_sm712_sr_write): Likewise.
18482 (grub_sm712_gr_write): Likewise.
18483 (grub_sm712_cr_write): Likewise.
18484 (grub_sm712_write_arx): Likewise.
18485 (grub_sm712_cr_shadow_write): Likewise.
18486 (grub_sm712_write_dda_lookup): Likewise.
18487 (grub_video_sm712_setup): Initialise the video rather then
18488 blindly replay the dump.
18489 (main) [TEST]: Add a routine to be able to compile as standalone for
18490 tests.
18491 * video/sm712_init.c (sm712_init): Removed.
18492 (sm712_sr_seq1): New array.
18493 (sm712_sr_seq2): Likewise.
18494
18495 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18496
18497 * include/grub/vga.h: Add missing grub/pci.h include.
18498
18499 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18500
18501 * util/grub-macho2img.c (main): fix typo
18502
18503 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18504
18505 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18506 (grub_vga_gr_read): Likewise.
18507 (grub_vga_cr_write): Likewise.
18508 (grub_vga_cr_read): Likewise.
18509 (grub_vga_sr_write): Likewise.
18510 (grub_vga_sr_read): Likewise.
18511 (grub_vga_palette_read): Likewise.
18512 (grub_vga_palette_write): Likewise.
18513 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18514 (grub_sm712_sr_read): New function.
18515 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18516 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18517
18518 2010-08-09 Robert Millan <rmh@gnu.org>
18519
18520 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18521 out unused variables on non-ZFS build.
18522
18523 2010-08-08 Robert Millan <rmh@gnu.org>
18524
18525 Fix path generation for sub-filesystems in ZFS.
18526
18527 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18528 missing slash.
18529
18530 2010-08-08 Robert Millan <rmh@gnu.org>
18531
18532 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18533
18534 2010-08-08 Robert Millan <rmh@gnu.org>
18535
18536 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18537 exist, issue a proper error message (rely on `ls' for translated
18538 strings).
18539
18540 2010-08-08 Robert Millan <rmh@gnu.org>
18541
18542 Fix grub-probe invocation.
18543
18544 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18545
18546 2010-08-04 Robert Millan <rmh@gnu.org>
18547
18548 * configure.ac: Remove checks for getfsstat() and getmntany().
18549 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18550 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18551 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18552 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18553 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18554 function.
18555 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18556 via find_mount_point_from_dir() and getfsstat() / getmntany().
18557
18558 2010-08-04 Robert Millan <rmh@gnu.org>
18559
18560 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18561 (grub_find_zpool_from_mount_point): Merge into ...
18562 (grub_find_zpool_from_dir): ... this.
18563 * kern/emu/misc.c: Likewise.
18564
18565 * kern/emu/misc.c
18566 (grub_make_system_path_relative_to_its_root): Replace
18567 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18568 with grub_find_zpool_from_dir().
18569 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18570
18571 2010-08-04 Robert Millan <rmh@gnu.org>
18572
18573 Support OpenSolaris in ZFS device resolution.
18574
18575 * configure.ac: Check for getmntany().
18576 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18577 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18578 support.
18579
18580 2010-08-03 Robert Millan <rmh@gnu.org>
18581
18582 Fix grub-emu build.
18583
18584 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18585 * include/grub/emu/misc.h: ... here.
18586
18587 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18588 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18589
18590 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18591 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18592 (grub_get_libzfs_handle): Move to ...
18593 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18594 (grub_get_libzfs_handle): ... here.
18595
18596 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18597
18598 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18599 as command name case.
18600
18601 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18602
18603 * disk/raid.c (insert_array): Select unique numbers for named arrays
18604 as well, for use as keys in the disk cache.
18605
18606 2010-08-01 Robert Millan <rmh@gnu.org>
18607
18608 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18609 kFreeBSD device name, except on ZFS where the filesystem label is
18610 used.
18611 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18612 `/boot/zfs/zpool.cache'.
18613 Set mountfrom kernel variable using ${kfreebsd_device}.
18614
18615 2010-08-01 Robert Millan <rmh@gnu.org>
18616
18617 Make it even harder to use uninitialized `libzfs_handle' (and
18618 make the interface a bit simpler).
18619
18620 * include/grub/util/misc.h (grub_util_init_libzfs)
18621 (libzfs_handle): Remove.
18622 (grub_get_libzfs_handle): New prototype.
18623
18624 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18625 attribute.
18626 (grub_util_init_libzfs): Remove.
18627 (grub_get_libzfs_handle): New function.
18628
18629 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18630 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18631 accessing `libzfs_handle' directly.
18632
18633 2010-08-01 Robert Millan <rmh@gnu.org>
18634
18635 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18636 (grub_find_zpool_from_mount_point): New function prototypes.
18637
18638 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18639 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18640
18641 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18642 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18643 `static' attribute.
18644
18645 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18646 finding zpool from mount point into ...
18647 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18648
18649 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18650 requested path is part of a ZFS pool, use
18651 grub_find_zpool_from_mount_point() to detect its filesystem name,
18652 and generate a path with `/fsname@path' syntax.
18653
18654 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18655
18656 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18657 (void) rather than () so that this is a proper prototype.
18658
18659 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18660
18661 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18662
18663 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18664
18665 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18666 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18667
18668 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18669
18670 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18671
18672 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18673
18674 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18675
18676 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18677
18678 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18679 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18680 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18681 disable gfxpayload.
18682 (Shell-like scripting): Add real content.
18683 (Serial terminal): Suggest `terminal_input serial; terminal_output
18684 serial' rather than putting the two commands on separate lines,
18685 since console input will be inoperative after the first command.
18686 (menuentry): Document --class, --users, and --hotkey options.
18687 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18688 Vladimir Serbinenko).
18689
18690 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18691 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18692
18693 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18694
18695 2010-08-01 Robert Millan <rmh@gnu.org>
18696
18697 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18698 (grub_find_zpool_from_mount_point): New function prototypes.
18699
18700 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18701 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18702
18703 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18704 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18705 `static' attribute.
18706
18707 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18708 finding zpool from mount point into ...
18709 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18710
18711 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18712 requested path is part of a ZFS pool, use
18713 grub_find_zpool_from_mount_point() to detect its filesystem name,
18714 and generate a path with `/fsname@path' syntax.
18715
18716 2010-08-01 Robert Millan <rmh@gnu.org>
18717
18718 Prevent accidental use of uninitialized libzfs_handle.
18719
18720 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18721 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18722 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18723
18724 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18725
18726 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18727 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18728
18729 2010-08-01 Robert Millan <rmh@gnu.org>
18730
18731 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18732
18733 2010-07-31 Robert Millan <rmh@gnu.org>
18734
18735 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18736
18737 2010-07-31 Robert Millan <rmh@gnu.org>
18738
18739 * kern/emu/misc.c: Add missing license header.
18740
18741 2010-07-31 Robert Millan <rmh@gnu.org>
18742
18743 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18744
18745 * include/grub/util/libnvpair.h: Include `<config.h>'.
18746 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18747 declaring libnvpair prototypes ourselves.
18748 * include/grub/util/libzfs.h: Include `<config.h>'.
18749 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18750 declaring libzfs prototypes ourselves.
18751
18752 (libzfs_handle): Moved to ...
18753 * include/grub/util/misc.h (libzfs_handle): ... here.
18754 Include `<grub/util/libzfs.h>'.
18755
18756 2010-07-30 Robert Millan <rmh@gnu.org>
18757
18758 * include/grub/emu/misc.h: Add missing license header.
18759
18760 2010-07-30 Robert Millan <rmh@gnu.org>
18761
18762 Enable `grub-probe -t device' resolution on ZFS.
18763
18764 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18765 * include/grub/util/libnvpair.h: New file.
18766 * include/grub/util/libzfs.h: New file.
18767
18768 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18769 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18770 `<grub/util/libnvpair.h>'.
18771 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18772
18773 (find_mount_point_from_dir): New static function.
18774 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18775 function.
18776 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18777 find_root_device_from_libzfs() before ressorting to find_root_device().
18778
18779 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18780 prototype.
18781 * util/misc.c: Include `<grub/util/libzfs.h>'.
18782 (grub_util_init_libzfs): New function.
18783 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18784 [HAVE_LIBZFS] (fini_libzfs): New static function.
18785 (grub_util_init_libzfs): New function.
18786 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18787
18788 2010-07-30 Robert Millan <rmh@gnu.org>
18789
18790 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18791 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18792 `warn_unused_result' attribute.
18793 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18794 (grub_xasprintf, grub_xvasprintf): Likewise.
18795 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18796
18797 2010-07-29 Robert Millan <rmh@gnu.org>
18798
18799 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18800 (probe): Handle `PRINT_FS_LABEL'.
18801 (main): Handle `-t fs_label'.
18802
18803 2010-07-29 Robert Millan <rmh@gnu.org>
18804
18805 * configure.ac: Remove grub-mkisofs checks.
18806
18807 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18808
18809 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18810 Reported by: Lennart Sorensen.
18811
18812 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18813
18814 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18815 prior to terminal_input/terminal_output separation. It's been over 1.5
18816 years and those versions weren't widely deployed.
18817
18818 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18819
18820 * disk/raid.c (insert_array): Don't count named arrays when looking
18821 for unused array numbers.
18822 Reported and tested by: Michael Guntsche.
18823
18824 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18825
18826 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18827 implementation of this so that grub-emu links again, with a note
18828 that this should support hotplugging in the future.
18829
18830 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18831
18832 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18833
18834 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18835
18836 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18837 handle on failure.
18838 (grub_loopback_close): Remove empty function.
18839 (grub_loopback_dev): Remove close method.
18840
18841 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18842
18843 Disable EFI cursor when the EFI console becomes inactive.
18844
18845 * term/efi/console.c (grub_efi_console_init): New function.
18846 (grub_efi_console_fini): New function.
18847 (grub_console_term_output): Register init and fini methods.
18848
18849 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18850
18851 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18852 sh script.
18853
18854 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18855
18856 * disk/loopback.c (grub_loopback): Replace filename with file.
18857 (delete_loopback): Handle new semantics.
18858 (grub_cmd_loopback): Likewise.
18859 (grub_loopback_iterate): Likewise.
18860 (grub_loopback_close): Likewise.
18861
18862 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18863
18864 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18865 with -p "".
18866 Reported by: Tito Keitel.
18867
18868 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18869
18870 * docs/grub.texi (Naming convention): Document new naming convention.
18871
18872 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18873 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18874
18875 Generate device.map in something closer to the old ordering.
18876
18877 * util/deviceiter.c (struct device): New declaration.
18878 (compare_file_names): Rename to ...
18879 (compare_devices): ... this. Sort by kernel name in preference to
18880 the stable by-id name, but keep the latter as a fallback comparison.
18881 Update header comment.
18882 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18883 of `struct device' rather than of plain file names.
18884
18885 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18886
18887 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18888 on i386.
18889
18890 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18891
18892 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18893 hardcoding size.
18894 (setv1table): Likewise.
18895
18896 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18897
18898 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18899 removing the homehost if present.
18900 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18901 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18902 removing the homehost if present.
18903 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18904 if possible.
18905 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18906
18907 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18908 parameter. Set its pointer target to 0.
18909 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18910 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18911 `data_offset' value from the superblock for 1.x metadata.
18912 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18913 data on the device.
18914 (insert_array): Record the start sector of data on the device.
18915 (grub_raid_register): Pass start_sector parameters to
18916 grub_raid_list->detect and insert_array.
18917 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18918 member.
18919 (struct grub_raid): Add start_sector parameter to `detect'.
18920
18921 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18922 __attribute__ ((packed)), leaving a comment.
18923 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18924 (grub_mdraid_detect_09): ... here and ...
18925 (grub_mdraid_detect_1x): ... here.
18926
18927 2010-07-20 Peter Henn <peter.henn@web.de>
18928
18929 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18930 chunk size and disk size, which are already given as sector counts
18931 as distinct from the 0.90 units. Fetch the correct device number
18932 from the role table instead of using the table index.
18933
18934 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18935
18936 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
18937 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
18938 (WriteMostly1): New macro.
18939 Set array->name to NULL for metadata format 0.90. Add support for
18940 metadata 1.x. Fix some comments.
18941 * disk/raid.c (): Add support for name based RAID arrays. Fix a
18942 few comments.
18943 * util/getroot.c (grub_util_get_grub_dev): Add support for
18944 /dev/md/name style devices.
18945
18946 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18947
18948 * .bzrignore: Ignore 20_linux_xen.
18949
18950 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
18951
18952 * util/import_unicode.py: Remove unnecessary imports.
18953
18954 2010-07-17 Aleš Nesrsta <starous@volny.cz>
18955
18956 Hotplugging and USB hub support.
18957
18958 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
18959 (grub_ohci): Likewise.
18960 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
18961 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
18962 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
18963 (GRUB_OHCI_CTRL_EDS): Likewise.
18964 (GRUB_OHCI_BULK_EDS): Likewise.
18965 (GRUB_OHCI_TDS): Likewise.
18966 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
18967 (grub_ohci_ed_phys2virt): New function.
18968 (grub_ohci_virt_to_phys): Likewise.
18969 (grub_ohci_td_phys2virt): Likewise.
18970 (grub_ohci_td_virt2phys): Likewise.
18971 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
18972 attachment.
18973 (grub_ohci_find_ed): New function.
18974 (grub_ohci_alloc_td): Likewise.
18975 (grub_ohci_free_td): Likewise.
18976 (grub_ohci_free_tds): Likewise.
18977 (grub_ohci_transfer): Use previously allocated memory.
18978 (grub_ohci_portstatus): Reset status changed bit.
18979 (grub_ohci_detect_dev): Supply status changed.
18980 (grub_ohci_fini_hw): Free memory.
18981 (grub_ohci_restore_hw): Reallocate memory.
18982 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
18983 Reset status change.
18984 (grub_uhci_detect_dev): Supply status_change.
18985 * bus/usb/usb.c (attach_hooks): New var.
18986 (grub_usb_device_attach): New function.
18987 (grub_usb_register_attach_hook_class): Likewise.
18988 (grub_usb_unregister_attach_hook_class): Likewise.
18989 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
18990 (grub_usb_add_hub): Reset connection changed bit.
18991 (attach_root_port): New function.
18992 (grub_usb_root_hub): Likewise.
18993 (poll_nonroot_hub): Likewise.
18994 (grub_usb_poll_devices): Likewise.
18995 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
18996 * disk/usbms.c (grub_usbms_open): Use device hooks.
18997 (grub_usbms_iterate) :Poll devices.
18998 (grub_usbms_finddevs): Split into ...
18999 (grub_usbms_attach): ... this ...
19000 (grub_usbms_attach): ... and this.
19001 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19002 in detect_dev.
19003 (grub_usb_interface): New fields attached and detach_hook.
19004 (grub_usb_attach_hook_class): New type.
19005 (grub_usb_attach_desc): New struct.
19006 (grub_usb_register_attach_hook_class): New function.
19007 (grub_usb_unregister_attach_hook_class): Likewise.
19008 (grub_usb_poll_devices): Likewise.
19009 (grub_usb_device_attach): Likewise.
19010 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19011 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19012
19013 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19014
19015 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19016 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19017 delta determination style. Works with most NetBSD partitions too.
19018
19019 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19020
19021 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19022 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19023
19024 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19025
19026 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19027
19028 2010-07-14 Anton Blanchard <anton@samba.org>
19029
19030 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19031 ET_DYN files.
19032
19033 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19034
19035 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19036
19037 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19038
19039 * kern/partition.c (grub_partition_check_containment): New function to
19040 check that a partition is physically contained in a parent. Since
19041 offsets are relative (and non-negative), this reduces to checking that
19042 the partition ends before its parent.
19043 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19044 (grub_partition_iterate): Likewise.
19045 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19046 comments.
19047 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19048 partitions that start before their parent, and add debug printfs.
19049
19050 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19051
19052 * Makefile.in (.SUFFIX): Spell correctly, as ...
19053 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19054 bare module name without `.mod', e.g. `test') tried to invoke a
19055 Modula-2 compiler.
19056
19057 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19058
19059 * README: Point to the Info manual.
19060
19061 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19062
19063 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19064 2nd superblock position from partition size.
19065
19066 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19067
19068 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19069 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19070 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19071 outputs.
19072
19073 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19074
19075 Restructure SCSI .id handling.
19076 Reported and tested by: Aleš Nesrsta.
19077
19078 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19079 (grub_atapi_dev): Changed .name to "ata". New field .id.
19080 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19081 (grub_usbms_dev): New field .id.
19082 * disk/scsi.c (grub_scsi_iterate): Generate name.
19083 (grub_scsi_open): Parse name.
19084 * include/grub/scsi.h (grub_make_scsi_id): New function.
19085 (grub_scsi_dev): Change iterate and open to number instead of naming
19086 busses. All users updated.
19087 (grub_scsi): Remove name. Add .bus.
19088
19089 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19090
19091 * commands/help.c (grub_cmd_help): Fix a typo.
19092
19093 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19094
19095 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19096 Reported and tested by: Colin Watson.
19097
19098 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19099
19100 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19101 in this context.
19102
19103 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19104
19105 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19106
19107 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19108
19109 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19110 indentation.
19111
19112 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19113
19114 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19115 and disk/raid6_recover.c.
19116 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19117 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19118
19119 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19120
19121 * term/gfxterm.c (repaint_schedulded): Rename to ...
19122 (repaint_scheduled): ... this. Update all callers.
19123 (repaint_was_schedulded): Rename to ...
19124 (repaint_was_scheduled): ... this. Update all callers.
19125
19126 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19127
19128 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19129 which we expect to be handled by upper layers.
19130
19131 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19132
19133 * bus/usb/usbhub.c: #include time.h header.
19134
19135 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19136
19137 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19138 entry_name also for entries without stat blocks (e.g. ".."); fixes
19139 corruption of the first entry in a directory.
19140
19141 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19142
19143 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19144 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19145 doesn't work otherwise.
19146
19147 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19148
19149 * docs/grub.texi (Features): Update list of supported file systems.
19150 (GNU/Linux): Update for GRUB 2.
19151 (Serial terminal): Remove mention of --disable-serial, which was a
19152 GRUB Legacy configure option. Update instructions to use
19153 `terminal_input' and `terminal_output' rather than `terminal'.
19154 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19155 configuration' and `Installing GRUB using grub-install'.
19156 (Menu entry editor): Update for GRUB 2.
19157 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19158 Document new -a, -u, and -v options.
19159 (initrd): New section.
19160 (initrd16): New section.
19161 (linux): New section.
19162 (linux16): New section.
19163 (search): The `var' argument to `--set' is optional.
19164 (GRUB only offers a rescue shell): Go into a little more detail on
19165 drive ordering.
19166
19167 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19168
19169 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19170
19171 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19172
19173 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19174 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19175
19176 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19177
19178 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19179 install_prefix, in line with install_dos_part and install_bsd_part.
19180 Add new prefix variable, which is copied to install_prefix after
19181 comparing core.img in memory with the one read from disk in the
19182 no-embedding case, and use that rather than overwriting
19183 install_prefix immediately when installing to a partition.
19184 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19185 Bicakci.
19186
19187 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19188
19189 * configure.ac: Avoid == in test command, it's not portable.
19190 * util/grub.d/30_os-prober.in: Likewise.
19191
19192 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19193
19194 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19195
19196 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19197
19198 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19199 multiple (top-level) partmaps.
19200
19201 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19202
19203 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19204 Reported by: Tino Keitel.
19205
19206 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19207
19208 Bidi and diacritics support.
19209
19210 * Makefile.in (widthspec.bin): New target.
19211 (widthspec.h): Likewise.
19212 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19213 * autogen.sh: Generate unidata.c.
19214 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19215 * commands/ls.c (grub_ls_list_devices): Likewise.
19216 (grub_ls_list_files): Likewise.
19217 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19218 (grub_mini_cmd_lsmod): Likewise.
19219 * commands/read.c: Likewise.
19220 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19221 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19222 * lib/arg.c (grub_arg_show_help): Likewise.
19223 * lib/crypto.c (grub_password_get): Likewise.
19224 * normal/auth.c (grub_username_get): Likewise.
19225 * normal/misc.c (grub_normal_print_device_info): Likewise.
19226 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19227 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19228 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19229 (normal/charset.c_DEPENDENCIES): New variable.
19230 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19231 (pkglib_MODULES): Remove charset.mod.
19232 (charset_mod_SOURCES): Removed.
19233 (charset_mod_CFLAGS): Likewise.
19234 (charset_mod_LDFLAGS): Likewise.
19235 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19236 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19237 and term/tparm.c.
19238 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19239 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19240 (kernel_img_HEADERS): Add terminfo.h.
19241 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19242 Fill ->font. Reverse ascii bitmaps.
19243 (grub_font_get_xheight): New function.
19244 * font/font.c (grub_font_get_string_width): Moved from here ...
19245 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19246 * font/font.c (grub_font_draw_string): Moved from here ...
19247 * gfxmenu/font.c (grub_font_draw_string): ... here.
19248 * font/font.c (grub_font_dup_glyph): New function.
19249 (grub_font_blit_glyph): Likewise.
19250 (grub_font_blit_glyph_mirror): Likewise.
19251 (blit_comb): Likewise.
19252 (grub_font_construct_dry_run): Likewise.
19253 (grub_font_get_constructed_device_width): Likewise.
19254 (grub_font_construct_glyph): Likewise.
19255 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19256 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19257 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19258 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19259 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19260 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19261 (grub_font_get_xheight): New proto.
19262 (grub_font_get_constructed_device_width): Likewise.
19263 (grub_font_construct_glyph): Likewise.
19264 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19265 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19266 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19267 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19268 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19269 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19270 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19271 (grub_console_getcharwidth): Likewise.
19272 * include/grub/misc.h (grub_xputs): New proto.
19273 (grub_puts): Inlined.
19274 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19275 (grub_normal_get_line_counter): Removed.
19276 (grub_install_newline_hook): Likewise.
19277 (grub_normal_get_char_counter): New proto.
19278 (grub_normal_reset_more): Likewise.
19279 (grub_xputs_normal): Likewise.
19280 * include/grub/powerpc/ieee1275/console.h: Removed.
19281 * include/grub/sparc64/ieee1275/console.h: Likewise.
19282 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19283 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19284 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19285 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19286 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19287 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19288 (grub_term_input): Pass reference to self. All users updated.
19289 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19290 Pass reference to self. New fields normal_color, highlight_color and
19291 data. All users updated.
19292 (grub_putchar): Removed.
19293 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19294 (grub_unicode_estimate_width): New function.
19295 (grub_term_getcharwidth): Add defaults.
19296 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19297 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19298 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19299 (grub_cls): Remove EXPORT_FUNC.
19300 (grub_setcolorstate): Inline.
19301 (grub_newline_hook): Removed.
19302 * include/grub/terminfo.h: Rewritten. All users updated.
19303 * include/grub/unicode.h: New file.
19304 * include/grub/video.h (grub_video_signed_rect): New type.
19305 * kern/emu/console.c (grub_console_highlight_color): Removed.
19306 (grub_console_normal_color): Likewise.
19307 (grub_console_standard_color): Made static.
19308 (grub_ncurses_putchar): Remove mapping.
19309 (grub_ncurses_getcharwidth): Removed.
19310 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19311 (grub_ncurses_setcolor): Removed.
19312 (grub_ncurses_getcolor): Likewise.
19313 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19314 (grub_console_putchar): ... this.
19315 (grub_console_putchar): Handle argument difference.
19316 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19317 console_init_early and console_init_lately.
19318 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19319 * kern/misc.c (grub_puts): Removed.
19320 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19321 (grub_vsnprintf_real): Remove str = NULL support.
19322 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19323 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19324 * kern/term.c (grub_putcode): Renamed to ...
19325 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19326 (grub_putchar): Removed.
19327 (grub_xputs_dumb): New function.
19328 (grub_xputs): New variable.
19329 * lib/charset.c: Move from here ...
19330 * normal/charset.c: ... to here.
19331 (grub_ucs4_to_utf8): New function.
19332 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19333 (join_types): New variable.
19334 (unpack_join): New function.
19335 (bidi_types): New variable.
19336 (unpack_bidi): New function.
19337 (get_bidi_type): Likewise.
19338 (get_join_type): Likewise.
19339 (is_mirrored): Likewise.
19340 (grub_unicode_get_comb_type): Likewise.
19341 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19342 (is_type_after): Likewise.
19343 (grub_unicode_aglomerate_comb): Likewise.
19344 (bidi_line_wrap): Likewise.
19345 (grub_bidi_line_logical_to_visual): Likewise.
19346 (grub_bidi_logical_to_visual): Likewise.
19347 (grub_unicode_mirror_code): Likewise.
19348 (grub_unicode_shape_code): Likewise.
19349 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19350 Don't use grub_putchar.
19351 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19352 (grub_normal_reader_init): Likewise.
19353 (grub_xputs_saved): New variable.
19354 (GRUB_MOD_INIT): Set grub_xputs.
19355 (GRUB_MOD_FINI): Restore grub_xputs.
19356 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19357 (menu_init): Avoid printing gfxmenu error.
19358 (show_menu): Use grub_normal_get_char_counter.
19359 * normal/menu_entry.c (update_screen): Fix out-of-array.
19360 (complete): Avoid NULL dereferencing.
19361 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19362 * normal/menu_text.c (print_spaces): Removed.
19363 (grub_print_ucs4): Likewise.
19364 (grub_print_message_indented): Use grub_print_ucs4.
19365 (print_message): Use grub_putcode.
19366 (print_entry): Hanlde diacritics.
19367 * normal/term.c (term_state): New type.
19368 (grub_more_lines): Removed.
19369 (term_states): New variable.
19370 (grub_normal_line_counter): Renamed to ..
19371 (grub_normal_char_counter): ...this. All users updated.
19372 (grub_normal_get_line_counter): Renamed to ...
19373 (grub_normal_get_char_counter): ... this.
19374 (grub_normal_reset_more): New function.
19375 (process_newline): Removed.
19376 (print_more): New function.
19377 (grub_install_newline_hook): Removed.
19378 (map_code): New function.
19379 (grub_puts_terminal): Use grub_print_ucs4.
19380 (putglyph): New function.
19381 (putcode_real): Likewise.
19382 (grub_putcode): Use putcode_real.
19383 (get_maxwidth): New function.
19384 (get_startwidth): Likewise.
19385 (print_ucs4_terminal): Likewise.
19386 (find_term_state): Likewise.
19387 (put_glyphs_terminal): Likewise.
19388 (print_backlog): Likewise.
19389 (print_ucs4_real): Likewise.
19390 (grub_print_ucs4): Likewise.
19391 (grub_xputs_normal): Likewise.
19392 * term/efi/console.c (grub_console_putchar): Output diacritics.
19393 (grub_console_getcharwidth): Removed.
19394 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19395 * term/gfxterm.c (clear_char): Free chars.
19396 (scroll_up): Avoid leaking memory.
19397 (grub_gfxterm_putchar): Support diacritics.
19398 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19399 * term/i386/pc/console.c (grub_console_term_output): Declare as
19400 GRUB_TERM_CODE_TYPE_VGA.
19401 * term/i386/pc/vga.c (grub_vga_term): Declare as
19402 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19403 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19404 GRUB_TERM_CODE_TYPE_VGA.
19405 * term/i386/vga_common.c (map_char): Removed.
19406 (grub_console_putchar): Likewise.
19407 (grub_console_getcharwidth): Likewise.
19408 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19409 (colors): Reordered to match terminfo.
19410 (grub_ofconsole_normal_color): Removed.
19411 (grub_ofconsole_writeesc): Likewise.
19412 (grub_ofconsole_highlight_color): Likewise.
19413 (grub_ofconsole_getcharwidth): Likewise.
19414 (grub_ofconsole_setcolorstate): Likewise.
19415 (grub_ofconsole_setcolor): Likewise.
19416 (grub_ofconsole_getcolor): Likewise.
19417 (grub_ofconsole_readkey): Renamed to ...
19418 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19419 key.
19420 (grub_ofconsole_checkkey): Removed.
19421 (grub_ofconsole_getkey): Likewise.
19422 (grub_ofconsole_getxy): Likewise.
19423 (grub_ofconsole_gotoxy): Likewise.
19424 (grub_ofconsole_cls): Likewise.
19425 (grub_ofconsole_refresh): Likewise.
19426 (grub_ofconsole_terminfo_input): New struct.
19427 (grub_ofconsole_terminfo_output): Likewise.
19428 (grub_ofconsole_term_input): Use terminfo.
19429 (grub_ofconsole_term_output): Likewise.
19430 (grub_console_init): Split into ...
19431 (grub_console_init_early): ...this and ...
19432 (grub_console_init_lately): ...this. Use terminfo.
19433 (grub_ofconsole_putchar): Renamed to ...
19434 (put): ... this. Remove mapping.
19435 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19436 * term/serial.c: Simplify using terminfo.
19437 (xpos): Removed.
19438 (ypos): Likewise.
19439 (keep_track): Likewise.
19440 (registered): Likewise.
19441 (input_buf): Likewise.
19442 (npending): Likewise.
19443 (serial_translate_key_sequence): Likewise.
19444 (fill_input_buf): Likewise.
19445 (grub_serial_checkkey): Likewise.
19446 (grub_serial_getkey): Likewise.
19447 (grub_serial_getxy): Likewise.
19448 (grub_serial_gotoxy): Likewise.
19449 (grub_serial_putchar): Likewise.
19450 (grub_serial_cls): Likewise.
19451 (grub_serial_setcolorstate): Likewise.
19452 (grub_serial_setcursor): Likewise.
19453 (serial_hw_init): Use serial_hw_fetch.
19454 (grub_serial_terminfo_input): New variable.
19455 (grub_serial_terminfo_output): Likewise.
19456 (grub_serial_term_input): Use terminfo.
19457 (grub_serial_term_output): Likewise.
19458 * term/terminfo.c (putstr): Use put.
19459 (grub_terminfo_all_free): New function
19460 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19461 (grub_terminfo_output_register): New function.
19462 (grub_terminfo_output_unregister): Likewise.
19463 (grub_terminfo_getxy): Likewise.
19464 (grub_terminfo_readkey): Likewise.
19465 (grub_terminfo_checkkey): Likewise.
19466 (grub_terminfo_getkey): Likewise.
19467 (grub_terminfo_input_init): Likewise.
19468 (print_terminfo): Likewise.
19469 (grub_cmd_terminfo): Handle encoding.
19470 (grub_terminfo_gotoxy): Track position.
19471 (grub_terminfo_cls): Likewise.
19472 (grub_terminfo_putchar): Likewise.
19473 (grub_terminfo_setcolorstate): Handle colors
19474 (grub_terminfo_cursor_on): This ...
19475 (grub_terminfo_cursor_off): ... and this merged into ...
19476 (grub_terminfo_setcursor): ... this.
19477 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19478 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19479 * unicode/BidiMirroring.txt: Likewise.
19480 * unicode/UnicodeData.txt: Likewise.
19481 * unicode/COPYING: Likewise.
19482 * util/grub-editenv.c (grub_putchar): Removed.
19483 (grub_xputs_real): New function.
19484 (grub_xputs): New variable.
19485 * util/grub-fstest.c (grub_putchar): Removed.
19486 (grub_xputs_real): New function.
19487 (grub_xputs): New variable.
19488 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19489 (grub_xputs_real): New function.
19490 (grub_xputs): New variable.
19491 * util/grub-probe.c (grub_putchar): Removed.
19492 (grub_xputs_real): New function.
19493 (grub_xputs): New variable.
19494 * util/grub-script-check.c (grub_putchar): Removed.
19495 (grub_xputs_real): New function.
19496 (grub_xputs): New variable.
19497 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19498 (grub_xputs_real): New function.
19499 (grub_xputs): New variable.
19500 * util/import_unicode.py: New file.
19501 * util/grub-mkfont.c (ft_errmsgs): New array.
19502 (grub_glyph_info): Make bitmap a pointer.
19503 (file_formats): New type WIDTH_SPEC.
19504 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19505 (options): Add width-spec.
19506 (help): Likewise.
19507 (add_char): Renamed to ...
19508 (add_glyph): ... this.
19509 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19510 (glyph_replace): New type.
19511 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19512 (add_char): New function.
19513 (add_subst): Likewise.
19514 (process_cursive): Likewise.
19515 (add_font): Handle GSUB.
19516 (write_font_width_spec): New function.
19517 (main): Sort glyphs.
19518 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19519 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19520 * kern/term.c (grub_cls): Moved from here...
19521 * normal/term.c (grub_cls): ... here.
19522
19523 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19524
19525 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19526 suitable for using within the format argument of printf when
19527 converting grub_size_t.
19528 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19529 "x" to convert grub_size_t arguments.
19530
19531 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19532
19533 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19534 too long captions.
19535 (list_get_minimal_size): Take selection box into account.
19536
19537 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19538
19539 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19540 NULL font.
19541
19542 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19543
19544 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19545 devices when iterating over /dev/disk/by-id; they will be handled
19546 later if appropriate, which they aren't always (e.g. LVM).
19547
19548 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19549
19550 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19551 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19552 fails.
19553 (grub_halt): Likewise.
19554 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19555 reset-all fails.
19556 (grub_halt): Don't return, even if all of shut-down, power-off, and
19557 poweroff fail.
19558
19559 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19560
19561 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19562 arguments, not three.
19563
19564 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19565
19566 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19567 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19568 LVM-on-RAID is handled correctly.
19569
19570 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19571
19572 * docs/grub.texi (Changes from GRUB Legacy): New section.
19573 (Future): Fix typo.
19574
19575 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19576
19577 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19578 grub.d/README accidentally ends up executable for one reason or
19579 another. Ignore it.
19580
19581 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19582
19583 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19584 (gpt_partition_map_iterate): Support non-512B sectors.
19585
19586 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19587
19588 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19589 Tested by: Seth Goldberg.
19590
19591 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19592
19593 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19594 Properly align mbi.
19595 Reported by: Seth Goldberg.
19596
19597 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19598
19599 * util/grub-mkrescue.in: Avoid module duplication.
19600
19601 2010-07-01 Sean Finney <seanius@seanius.net>
19602
19603 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19604
19605 2010-07-01 Sean Finney <seanius@seanius.net>
19606
19607 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19608
19609 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19610
19611 * disk/lvm.c (grub_lvm_checkvalue): New function.
19612 (grub_lvm_check_flag): Likewise.
19613
19614 2010-07-01 Robert Millan <rmh@gnu.org>
19615
19616 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19617 Support 'p' as partition separator on kernel of FreeBSD (used
19618 with GPT labels).
19619 (grub_util_biosdisk_get_grub_dev): Likewise.
19620
19621 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19622
19623 Yeeloong firmware port.
19624
19625 * boot/mips/yeeloong/fwstart.S: New file.
19626 * bus/cs5536.c (gpiodump): New const.
19627 (set_io_space): New function.
19628 (set_iod): Likewise.
19629 (set_p2d): Likewise.
19630 (grub_cs5536_init_geode): Likewise.
19631 * commands/mips/yeeloong/lsspd.c: New file.
19632 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19633 (serial_mod_SOURCES): New variable.
19634 (serial_mod_CFLAGS): Likewise.
19635 (serial_mod_LDFLAGS): Likewise.
19636 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19637 term/terminfo.c and term/tparm.c.
19638 (pkglib_IMAGES): Add fwstart.img.
19639 (fwstart_img_SOURCES): New variable.
19640 (fwstart_img_CFLAGS): Likewise.
19641 (fwstart_img_ASFLAGS): Likewise.
19642 (fwstart_img_LDFLAGS): Likewise.
19643 (fwstart_img_FORMAT): Likewise.
19644 (pkglib_MODULES): Add lsspd.mod.
19645 (lsspd_mod_SOURCES): New variable.
19646 (lsspd_mod_CFLAGS): Likewise.
19647 (lsspd_mod_LDFLAGS): Likewise.
19648 (pkglib_MODULES): Add halt.mod.
19649 (halt_mod_SOURCES): New variable.
19650 (halt_mod_CFLAGS): Likewise.
19651 (halt_mod_LDFLAGS): Likewise.
19652 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19653 (serial_mod_SOURCES): Removed.
19654 (serial_mod_CFLAGS): Likewise.
19655 (serial_mod_LDFLAGS): Likewise.
19656 * disk/ata.c (check_device): New function.
19657 (grub_ata_device_initialize): Use check_device.
19658 (grub_ata_iterate): Recheck devices.
19659 (grub_ata_open): Likewise.
19660 (grub_atapi_iterate): Likewise.
19661 (grub_atapi_open): Likewise.
19662 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19663 (GRUB_ATA_CH1_PORT1): Likewise.
19664 (GRUB_ATA_CH0_PORT2): Likewise.
19665 (GRUB_ATA_CH1_PORT2): Likewise.
19666 * include/grub/mips/loongson.h: New file.
19667 * include/grub/mips/yeeloong/ec.h: Likewise.
19668 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19669 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19670 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19671 * include/grub/misc.h (grub_halt): Declare as noreturn.
19672 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19673 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19674 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19675 (UART_ENABLE_DTRRTS): Likewise.
19676 (UART_ENABLE_MODEM): Removed.
19677 (UART_ENABLE_OUT2): New const.
19678 * include/grub/term.h (grub_term_register_input_active): New function.
19679 (grub_term_register_output_active): Likewise.
19680 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19681 argument.
19682 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19683 (init_pci): New function.
19684 (grub_machine_init): Execute platform init when firmware. Init serial.
19685 (grub_halt): Implement.
19686 (grub_exit): Likewise.
19687 (grub_reboot): Likewise.
19688 * term/serial.c (serial_hw_init): Update macros.
19689 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19690 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19691 (image_targets): New target mipsel-yeeloong-flash.
19692 (generate_image): Support IMAGE_YEELOONG_FLASH.
19693 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19694 (grub_video_sm712_setup): Init card.
19695 (grub_video_sm712_set_palette): Removed.
19696 * video/sm712_init.c: New file.
19697
19698 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19699
19700 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19701 PATH when running help2man and then run it on the unadorned
19702 executable names, rather than passing $(builddir)/* paths to
19703 help2man. This avoids the build directory ending up in generated
19704 manual pages.
19705
19706 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19707
19708 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19709 to avoid accidents when debugging with 'sh -x'.
19710 * util/grub-mkrescue.in: Likewise.
19711 * util/grub.d/00_header.in: Likewise.
19712 * util/grub.d/10_hurd.in: Likewise.
19713 * util/grub.d/10_kfreebsd.in: Likewise.
19714 * util/grub.d/10_linux.in: Likewise.
19715 * util/grub.d/10_netbsd.in: Likewise.
19716 * util/grub.d/10_windows.in: Likewise.
19717 * util/grub.d/20_linux_xen.in: Likewise.
19718 * util/grub.d/30_os-prober.in: Likewise.
19719 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19720
19721 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19722
19723 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19724 last character in the buffer.
19725 Reported by: Vladimir Serbinenko.
19726
19727 2010-06-29 Robert Millan <rmh@gnu.org>
19728
19729 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19730 (Command-line and menu entry commands): Document `badram' command.
19731
19732 2010-06-28 Robert Millan <rmh@gnu.org>
19733
19734 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19735 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19736 command using ${GRUB_BADRAM} as parameter.
19737
19738 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19739
19740 * docs/grub.texi (Device map): New section.
19741 (Themes): New section (stub).
19742 * Makefile.in (docs/grub.info): The info documentation now builds
19743 without errors. Make sure it stays that way.
19744
19745 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19746
19747 Use normal parser for menu entries.
19748 Reported by: Thomas Frauendorfer
19749
19750 * include/grub/parser.h (grub_parser_execute): Don't export.
19751 * normal/menu.c (grub_menu_execute_entry_real): New function.
19752 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19753
19754 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19755
19756 * docs/grub.texi (Embedded configuration): New section (replacing
19757 old "Preset Menu" stub).
19758 (Images): New section.
19759 (configfile): Note that any menu entries defined in `file' are shown
19760 immediately.
19761
19762 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19763
19764 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19765
19766 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19767
19768 * util/grub-install.in: Add --debug-image= option.
19769
19770 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19771
19772 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19773 possible on Linux.
19774
19775 * util/deviceiter.c (check_device): Rename to ...
19776 (check_device_readable_unique): ... this. Update all callers.
19777 Maintain and check a list of which devices (by canonicalized name)
19778 have already been seen.
19779 (clear_seen_devices): New function.
19780 (compare_file_names) [__linux__]: New function.
19781 (grub_util_iterate_devices): Clear the list of seen devices on exit
19782 and (just in case) on entry.
19783 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19784 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19785 seen-devices list, superseded by general code in check_device.
19786
19787 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19788
19789 * commands/cat.c (options): New variable.
19790 (grub_cmd_cat): Parse options. If the --dos option is given, print
19791 DOS-style "\r\n" line endings as simple newlines (Debian bug
19792 #586358).
19793 (GRUB_MOD_INIT): Use extcmd.
19794 (GRUB_MOD_FINI): Likewise.
19795 * docs/grub.texi (cat): Document --dos.
19796
19797 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19798
19799 XEN with Linux grub-mkconfig support.
19800
19801 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19802 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19803 GRUB_CMDLINE_XEN_DEFAULT.
19804 * util/grub.d/20_linux_xen.in: New file.
19805
19806 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19807
19808 Initialise VGA video on qemu ourselves.
19809
19810 * boot/i386/qemu/boot.S: Don't call 0xc000.
19811 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19812 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19813 (kernel_img_HEADERS): Add pci.h.
19814 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19815 * configure.ac: Force unifont on qemu and yeeloong.
19816 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19817 (grub_vga_palette_write): Use correct register.
19818 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19819 Call grub_qemu_init_cirrus.
19820 * kern/i386/qemu/init.c: New file.
19821 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19822
19823 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19824
19825 2010-06-26 Pavel Roskin <proski@gnu.org>
19826
19827 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19828 13.
19829
19830 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19831
19832 * docs/grub.texi (Simple configuration): Explain that
19833 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19834 set to `true' to disable their respective recovery entries, not
19835 merely set.
19836
19837 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19838
19839 Make the `source' command slightly faster.
19840
19841 * normal/main.c (grub_normal_execute): Don't re-read list files when
19842 nested.
19843
19844 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19845
19846 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19847 field position and mask size to red fields from mode_info, not
19848 green.
19849 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19850 Remove redundant tag->common.framebuffer_type assignment.
19851 Reported by: Seth Goldberg.
19852
19853 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19854
19855 Sync up other versions of the Linux loader with Robert Millan's
19856 change of 2010-01-09, "Make loader output a bit more user-friendly".
19857
19858 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19859 grub_dprintf().
19860 (grub_cmd_linux): Likewise.
19861 (grub_cmd_initrd): Likewise.
19862 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19863 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19864
19865 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19866
19867 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19868 larger than MEMORY_MAP_SIZE.
19869
19870 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19871
19872 Fix parallel build.
19873
19874 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19875 dependency.
19876 * script/parser.y: #include grub_script.tab.h header.
19877
19878 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19879
19880 Support >3GiB and <16MiB RAM in i386-qemu.
19881
19882 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19883 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19884 (grub_lower_mem): Removed.
19885 (grub_upper_mem): Likewise.
19886 (mem_size): Made static.
19887 (above_4g): New variable.
19888 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19889 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19890 support.
19891
19892 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19893
19894 Cirrus 5446 and Bochs video cards support.
19895
19896 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19897 video_bochs.mod
19898 (video_cirrus_mod_SOURCES): New variable.
19899 (video_cirrus_mod_CFLAGS): Likewise.
19900 (video_cirrus_mod_LDFLAGS): Likewise.
19901 (video_bochs_mod_SOURCES): Likewise.
19902 (video_bochs_mod_CFLAGS): Likewise.
19903 (video_bochs_mod_LDFLAGS): Likewise.
19904 * include/grub/vga.h: New file.
19905 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19906 (grub_video_fb_set_page_t): New type.
19907 (grub_video_fb_setup): New prototype.
19908 (grub_video_fb_swap_buffers): Likewise.
19909 (grub_video_fb_get_info_and_fini): Likewise.
19910 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19911 (CRTC_DATA_PORT): Likewise.
19912 (CRTC_CURSOR): Likewise.
19913 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19914 (CRTC_CURSOR_ADDR_LOW): Likewise.
19915 (CRTC_CURSOR_DISABLE): Likewise.
19916 (update_cursor): Use grub_vga_cr_write.
19917 (grub_vga_text_setcursor): Likewise.
19918 * video/bochs.c: New file.
19919 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19920 (palette): Likewise.
19921 (palette_size): Likewise.
19922 (framebuffer): New variable.
19923 (grub_video_fb_init): Use 'framebuffer'.
19924 (grub_video_fb_fini): Likewise.
19925 (grub_video_fb_get_info): Likewise.
19926 (grub_video_fb_get_palette): Likewise.
19927 (grub_video_fb_set_palette): Likewise.
19928 (grub_video_fb_set_viewport): Likewise.
19929 (grub_video_fb_get_viewport): Likewise.
19930 (grub_video_fb_map_color): Likewise.
19931 (grub_video_fb_map_rgb): Likewise.
19932 (grub_video_fb_map_rgba): Likewise.
19933 (grub_video_fb_unmap_color): Likewise.
19934 (grub_video_fb_unmap_color_int): Likewise.
19935 (grub_video_fb_fill_rect): Likewise.
19936 (grub_video_fb_blit_bitmap): Likewise.
19937 (grub_video_fb_blit_render_target): Likewise.
19938 (grub_video_fb_scroll): Likewise.
19939 (grub_video_fb_create_render_target): Likewise.
19940 (grub_video_fb_doublebuf_blit_init): Likewise.
19941 (grub_video_fb_set_active_render_target): Handle doublebuffering.
19942 (doublebuf_pageflipping_update_screen): New function.
19943 (doublebuf_pageflipping_init): Likewise.
19944 (grub_video_fb_setup): Likewise.
19945 (grub_video_fb_swap_buffers): Likewise.
19946 (grub_video_fb_get_info_and_fini): Likewise.
19947 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
19948 All users updated.
19949 (doublebuf_pageflipping_commit): Restructured into ...
19950 (doublebuf_pageflipping_set_page): ... this.
19951 (doublebuf_pageflipping_update_screen): Removed.
19952 (doublebuf_pageflipping_init): Likewise.
19953 (double_buffering_init): Likewise.
19954 (grub_video_vbe_setup): Use grub_video_fb_setup.
19955 (grub_video_vbe_swap_buffers): Removed.
19956 (grub_video_vbe_set_active_render_target): Likewise.
19957 (grub_video_vbe_get_active_render_target): Likewise.
19958 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
19959 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
19960 grub_video_fb_set_active_render_target and
19961 grub_video_fb_get_active_render_target.
19962 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
19963 (SEQUENCER_DATA_PORT): Likewise.
19964 (MAP_MASK_REGISTER): Likewise.
19965 (CRTC_ADDR_PORT): Likewise.
19966 (CRTC_DATA_PORT): Likewise.
19967 (START_ADDR_HIGH_REGISTER): Likewise.
19968 (START_ADDR_LOW_REGISTER): Likewise.
19969 (GRAPHICS_ADDR_PORT): Likewise.
19970 (GRAPHICS_DATA_PORT): Likewise.
19971 (READ_MAP_REGISTER): Likewise.
19972 (INPUT_STATUS1_REGISTER): Likewise.
19973 (INPUT_STATUS1_VERTR_BIT): Likewise.
19974 (get_map_mask): Use grub_vga_sr_read.
19975 (set_map_mask): Use grub_vga_sr_write.
19976 (set_read_map): Use grub_vga_gr_write.
19977 (set_start_address): Use grub_vga_cr_write.
19978 * video/sm712.c (framebuffer): Remove leftover fields.
19979
19980 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
19981
19982 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
19983 setting GRUB_VIDEO_BACKEND. Make it available as a user override
19984 instead. Replace the gfxterm backend check with a check that
19985 ${GRUB_PREFIX}/video.lst is non-empty.
19986 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
19987 again.
19988 (load_video): New generated function. Call it before loading
19989 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
19990 * util/grub.d/10_linux.in (linux_entry): Call load_video.
19991 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
19992 * docs/grub.texi (Simple configuration): Document
19993 GRUB_VIDEO_BACKEND.
19994
19995 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19996
19997 Use video functions in linux and xnu loaders.
19998
19999 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20000 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20001 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20002 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20003 loader/i386/pc/linux.c.
20004 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20005 (find_line_len): Removed.
20006 (find_framebuf): Likewise.
20007 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20008 * loader/i386/efi/xnu.c: Removed.
20009 * loader/i386/pc/xnu.c: Moved from here...
20010 * loader/i386/xnu.c: ...here.
20011
20012 Enable priorities in video drivers.
20013
20014 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20015 (grub_video_adapter): New field prio.
20016 (grub_video_register): Respect prio when inserting.
20017 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20018 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20019 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20020 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20021 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20022 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20023 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20024
20025 Fix SDL driver ID.
20026
20027 * include/grub/video.h (grub_video_driver_id_t): New value
20028 GRUB_VIDEO_DRIVER_SDL.
20029 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20030
20031 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20032
20033 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20034 argument to printf.
20035 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20036
20037 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20038
20039 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20040 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20041
20042 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20043
20044 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20045 directly, and recommend grub-install instead.
20046 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20047
20048 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20049
20050 Fix i386-pc prefix handling with nested partitions (Debian bug
20051 #585068). Note that the case where the core image is booted using
20052 multiboot and relocated from its original location still requires
20053 more work.
20054
20055 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20056 with "(,", fill the boot drive in between those two characters, but
20057 expect that a full partition specification including partition map
20058 names will follow.
20059 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20060 specified, write a prefix without the drive name but including a
20061 full partition specification.
20062
20063 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20064
20065 * util/grub-mkconfig.in: Ignore non-option arguments, for
20066 compatibility with older versions (before 2010-06-12) which did the
20067 same. In particular, this makes it easier to ship an update-grub
20068 wrapper which is compatible with that used with GRUB Legacy (Debian
20069 bug #586056).
20070
20071 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20072
20073 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20074 for manual page generation.
20075
20076 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20077
20078 * po/POTFILES: Remove leftover commands/handler.c.
20079
20080 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20081
20082 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20083 left this script non-functional.
20084
20085 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20086
20087 * docs/man/grub-emu.h2m: New file.
20088
20089 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20090
20091 * docs/grub.texi (Commands): Document reduced command set in rescue
20092 mode.
20093 (cpuid): New section.
20094
20095 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20096
20097 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20098 new partition naming style.
20099 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20100
20101 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20102
20103 Add "-o grub.iso" like cmdline options support.
20104
20105 * util/grub-install.in: Improve cmdline option parsing.
20106 * util/grub-mkconfig.in: Likewise.
20107 * util/grub-mkrescue.in: Likewise.
20108 * util/grub-reboot.in: Likewise.
20109 * util/grub-set-default.in: Likewise.
20110 * util/i386/efi/grub-install.in: Likewise.
20111 * util/ieee1275/grub-install.in: Likewise.
20112 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20113
20114 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20115
20116 * .bzrignore: Ignore 41_custom.
20117
20118 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20119
20120 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20121
20122 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20123
20124 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20125 prototype declarations.
20126
20127 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20128 generating fs, partmap, and video lists.
20129 * include/grub/fs.h (grub_fs_register): Omit prototype if
20130 GRUB_LST_GENERATOR is defined.
20131 * include/grub/partition.h (grub_partition_map_register): Likewise.
20132 * include/grub/video.h (grub_video_register): Likewise.
20133
20134 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20135
20136 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20137
20138 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20139
20140 * util/grub-mkrescue.in: Support --xorriso argument.
20141
20142 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20143
20144 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20145 Suggested by: Thomas Schmitt.
20146
20147 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20148
20149 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20150 Suggested by: Thomas Schmitt.
20151
20152 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20153
20154 custom.cfg support.
20155
20156 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20157 * util/grub.d/41_custom.in: New file.
20158
20159 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20160
20161 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20162 been merged back into normal.
20163
20164 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20165
20166 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20167 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20168
20169 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20170
20171 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20172 when generating manual pages.
20173 * docs/man/grub-bin2h.h2m: New file.
20174 * docs/man/grub-editenv.h2m: New file.
20175 * docs/man/grub-fstest.h2m: New file.
20176 * docs/man/grub-install.h2m: New file.
20177 * docs/man/grub-macho2img.h2m: New file.
20178 * docs/man/grub-mkconfig.h2m: New file.
20179 * docs/man/grub-mkdevicemap.h2m: New file.
20180 * docs/man/grub-mkfont.h2m: New file.
20181 * docs/man/grub-mkimage.h2m: New file.
20182 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20183 * docs/man/grub-mkrelpath.h2m: New file.
20184 * docs/man/grub-mkrescue.h2m: New file.
20185 * docs/man/grub-ofpathname.h2m: New file.
20186 * docs/man/grub-pe2elf.h2m: New file.
20187 * docs/man/grub-probe.h2m: New file.
20188 * docs/man/grub-reboot.h2m: New file.
20189 * docs/man/grub-script-check.h2m: New file.
20190 * docs/man/grub-set-default.h2m: New file.
20191 * docs/man/grub-setup.h2m: New file.
20192
20193 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 Use FOR_* macros instead of *_iterate whenever possible.
20196
20197 * commands/handler.c: Removed.
20198 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20199 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20200 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20201 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20202 (grub_probe_SOURCES): Remove kern/parser.c.
20203 (util/grub-script-check.c_DEPENDENCIES): Removed.
20204 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20205 and grub_script_check_init.c.
20206 (grub_script_check_init.lst): Removed.
20207 (grub_script_check_init.h): Likewise.
20208 (grub_script_check_init.c): Likewise.
20209 (pkglib_MODULES): Remove handler.mod and sh.mod.
20210 (handler_mod_SOURCES): Removed.
20211 (handler_mod_CFLAGS): Likewise.
20212 (handler_mod_LDFLAGS): Likewise.
20213 (normal_mod_SOURCES): Remove normal/handler.c.
20214 Add script/main.c, script/script.c, script/execute.c,
20215 script/function.c, script/lexer.c, grub_script.tab.c
20216 and grub_script.yy.c.
20217 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20218 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20219 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20220 (grub_setup_SOURCES): Remove kern/parser.c.
20221 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20222 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20223 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20224 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20225 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20226 (grub_setup_SOURCES): Remove kern/parser.c.
20227 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20228 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20229 * include/grub/command.h (grub_command_iterate): Removed.
20230 (FOR_COMMANDS): New macro.
20231 * include/grub/dl.h (grub_dl): New member next.
20232 (grub_dl_iterate): Removed.
20233 (grub_dl_head): New variable declaration.
20234 (FOR_DL_MODULES): New macro.
20235 * include/grub/fs.h: Include list.h.
20236 (grub_fs): Make next first element.
20237 (grub_fs_list): New variable declaration.
20238 (grub_fs_register): Make inline.
20239 (grub_fs_unregister): Likewise.
20240 (grub_fs_iterate): Removed.
20241 (FOR_FILESYSTEMS): New macro.
20242 * include/grub/handler.h: Removed.
20243 * include/grub/list.h (grub_list_hook_t): Removed.
20244 (grub_list_test_t): Likewise.
20245 (grub_list_pop): Likewise.
20246 (grub_list_iterate): Likewise.
20247 (grub_list_insert): Likewise.
20248 (FOR_LIST_ELEMENTS): New macro.
20249 * include/grub/parser.h (grub_parser_class): Removed.
20250 (grub_parser_register): Likewise.
20251 (grub_parser_unregister): Likewise.
20252 (grub_parser_get_current): Likewise.
20253 (grub_parser_set_current): Likewise.
20254 (grub_register_rescue_parser): Likewise.
20255 (grub_rescue_parse_line): New function.
20256 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20257 * include/grub/script_sh.h (grub_script_function_list): New variable
20258 declaration.
20259 (FOR_SCRIPT_FUNCTIONS): New macro.
20260 (grub_script_function_iterate): Removed.
20261 (grub_normal_parse_line): New prototype.
20262 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20263 (FOR_DISABLED_TERM_INPUTS): Likewise.
20264 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20265 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20266 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20267 element.
20268 (grub_video_register): Inline.
20269 (grub_video_unregister): Likewise.
20270 (grub_video_adapter_list): New variable declaration.
20271 (grub_video_iterate): Removed.
20272 (FOR_VIDEO_ADAPTERS): New macro.
20273 * kern/dl.c (grub_dl_list): Removed. All users updated.
20274 (grub_dl_iterate): Removed.
20275 * kern/fs.c (grub_fs_list): Make global.
20276 (grub_fs_register): Removed.
20277 (grub_fs_unregister): Likewise.
20278 (grub_fs_iterate): Likewise.
20279 * kern/handler.c: Removed.
20280 * kern/list.c (grub_list_pop): Removed.
20281 (grub_list_iterate): Likewise.
20282 (grub_list_insert): Likewise.
20283 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20284 (grub_prio_list_insert): Don't use grub_list_insert.
20285 * kern/main.c (grub_register_rescue_parser): Don't call
20286 grub_register_rescue_parser.
20287 * kern/parser.c (grub_parser_class): Removed.
20288 (grub_parser_execute): Use grub_rescue_parse_line.
20289 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20290 (grub_rescue_parser): Removed.
20291 (grub_register_rescue_parser): Likewise.
20292 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20293 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20294 (grub_auth_check_authentication): Likewise.
20295 * normal/completion.c (iterate_command): Removed.
20296 (grub_normal_do_completion): Use FOR_COMMANDS.
20297 * normal/handler.c: Removed.
20298 * normal/main.c (read_config_file): Remove parser changing.
20299 (grub_normal_execute): Don't call read_handler_list.
20300 (grub_normal_read_line_real): Statically allocate prompt.
20301 (grub_cmdline_run): Use grub_normal_parse_line.
20302 (GRUB_MOD_FINI): Don't call free_handler_list.
20303 * normal/menu_entry.c (run): Likewise.
20304 * script/function.c (grub_script_function_list): Make global.
20305 (grub_script_function_iterate): Removed.
20306 * script/main.c (grub_normal_parse_line): Make global.
20307 (grub_sh_parser): Removed.
20308 (GRUB_MOD_INIT): Likewise.
20309 (GRUB_MOD_FINI): Likewise.
20310 * tests/lib/functional_test.c (grub_functional_test): Use
20311 FOR_LIST_ELEMENTS.
20312 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20313 (grub_test_run): Use FOR_LIST_ELEMENTS.
20314 * tests/lib/unit_test.c (main): Likewise.
20315 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20316 grub_list_pop.
20317 * util/grub-fstest.c (grub_term_input_class): Removed.
20318 (grub_term_output_class): Likewise.
20319 * util/grub-probe.c: Likewise.
20320 * util/i386/pc/grub-setup.c: Likewise.
20321 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20322 * util/grub-script-check.c (main): Don't call grub_init_all and
20323 grub_fini_all.
20324 * video/video.c (grub_video_adapter_list): Make global.
20325 (grub_video_register): Removed.
20326 (grub_video_unregister): Likewise.
20327 (grub_video_iterate): Likewise.
20328
20329 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20330
20331 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20332 reported by Henrique Ferreiro.
20333
20334 2010-06-09 Robert Millan <rmh@gnu.org>
20335
20336 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20337 ones, when both are available.
20338
20339 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20340
20341 Make --version uniform and avoid hard-coded program name.
20342
20343 * util/grub-mkimage.c (main): Use `program_name' instead of
20344 hard-coded string.
20345 * util/i386/pc/grub-setup.c (main): Likewise.
20346 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20347 * util/grub-install.in: Save the basename of $0 in $self, and use the
20348 latter in informational messages. Use the same format for --version
20349 as the binary programs.
20350 * util/grub-mkconfig.in: Likewise.
20351 * util/grub-mkrescue.in: Likewise.
20352 * util/grub-reboot.in: Likewise.
20353 * util/grub-set-default.in: Likewise.
20354 * util/i386/efi/grub-install.in: Likewise.
20355 * util/ieee1275/grub-install.in: Likewise.
20356 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20357
20358 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20359
20360 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20361 embedding area. Use <= instead of == when checking for non-emptiness.
20362
20363 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20364
20365 * configure.ac: Add `.' to the directories searched for unifont.
20366
20367 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20368
20369 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20370 grub_script.yy.h.
20371
20372 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20373
20374 * docs/grub.texi (History): Expand to cover GRUB 2.
20375 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20376 commands, not `terminal'.
20377 (serial): Likewise.
20378 (terminal_input): New section.
20379 (terminal_output): New section.
20380 (uppermem): New section (stub).
20381 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20382
20383 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20384
20385 * docs/grub.texi (Security): Menu entries are unrestricted by
20386 default, not restricted to superusers as I had previously thought.
20387 Reword to account for this.
20388
20389 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20390
20391 * kern/emu/misc.c (device_mapper_null_log): New function.
20392 (grub_device_mapper_supported): New function.
20393 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20394 prototype.
20395 * kern/emu/hostdisk.c (find_partition_start): Check whether
20396 device-mapper is supported before trying to use it.
20397 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20398
20399 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20400
20401 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20402 (File name syntax): Likewise.
20403 (help): --all is no longer supported in GRUB 2. Be more precise
20404 about pattern matching.
20405
20406 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20407
20408 * normal/completion.c (grub_normal_do_completion): When completing
20409 arguments to "set" and the current word contains an equals sign,
20410 skip to after the equals sign before starting completion.
20411
20412 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20413
20414 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20415
20416 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20417
20418 * docs/grub.texi (Network): New section.
20419 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20420 `(nd)' as in GRUB Legacy.
20421 (pxe_unload): New section.
20422
20423 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20424
20425 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20426 in the rescue shell, so recommend using `set' instead. Thanks,
20427 Jordan Uggla.
20428
20429 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20430
20431 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20432 (password): New section.
20433 (password_pbkdf2): New section.
20434 (search): New section.
20435 (Security): New section.
20436 (Troubleshooting): New section, currently very incomplete.
20437 (Invoking grub-mkpasswd-pbkdf2): New section.
20438 (Internals): New section, currently very incomplete.
20439
20440 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20441
20442 * util/grub.d/00_header.in: Add some more quoting (of
20443 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20444 work again.
20445 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20446
20447 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20448
20449 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20450 to `count', fixing variable shadowing that broke the -c option.
20451
20452 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20453
20454 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20455 in case they contain spaces.
20456
20457 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20458
20459 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20460 "part_" to partmap module names, in line with grub-install.
20461 Reported by: Jindřich Makovička (Debian bug #584426).
20462
20463 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20464
20465 * util/grub-mkimage.c: Make target-related error messages slightly
20466 more helpful; -O talks about "format". Explicitly point to the use
20467 of -O if no target is specified.
20468 Reported by: Didier Raboud (Debian bug #584415).
20469
20470 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20471
20472 * INSTALL: Document several build requirements for optional features
20473 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20474
20475 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20476
20477 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20478 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20479 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20480
20481 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20482
20483 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20484 Thanks to Jordan Uggla for spotting this.
20485
20486 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20487
20488 Finally make USB usable.
20489
20490 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20491 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20492 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20493 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20494 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20495 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20496 (GRUB_OHCI_FSMPS): Likewise.
20497 (GRUB_OHCI_PERIODIC_START): Likewise.
20498 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20499 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20500 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20501 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20502 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20503 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20504 (grub_ohci_transaction): Likewise.
20505 (grub_ohci_transfer): Improve condition detection algorithms.
20506 Handle toggle property. Program the transactions correctly.
20507 Improve error handling. Various important fixups.
20508 (grub_ohci_portstatus): Put register writes in right order.
20509 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20510 (grub_uhci_transfer): Don't show "failed" message on success.
20511 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20512 array.
20513 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20514 determine its size.
20515 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20516 before initialization is completed. Use IN direction for empty
20517 transfers. Use last_trans and compute toggle.
20518 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20519 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20520 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20521 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20522 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20523 (grub_usb_device): Increase toggle to 256.
20524 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20525 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20526 GRUB_USBMS_SUBCLASS_SFF8070.
20527 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20528 (grub_scsi_inquiry): New member page and alloc_length.
20529 (grub_scsi_request_sense): New structure.
20530 (grub_scsi_request_sense_data): Likewise.
20531 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20532 control.
20533 * disk/scsi.c (grub_scsi_request_sense): New function.
20534 (grub_scsi_test_unit_ready): Likewise.
20535 (grub_scsi_inquiry): Fill new fields.
20536 (grub_scsi_read_capacity): Likewise.
20537 (grub_scsi_read10): Add request sense at the end.
20538 (grub_scsi_read12): Likewise.
20539 (grub_scsi_write10): Likewise.
20540 (grub_scsi_write12): Likewise.
20541 (grub_scsi_open): Add Test Unit Ready.
20542 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20543 Support additional subclasses. Con't clear halt yet. Activate the
20544 proper config. Calculate LUNs correctly.
20545 (grub_usbms_transfer): Various important fixups.
20546
20547 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20548
20549 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20550 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20551 (grub_ohci_fini_hw): New function.
20552 (grub_ohci_restore_hw): Likewise.
20553 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20554 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20555 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20556
20557 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20558
20559 Dedicated DMA allocations.
20560
20561 * bus/pci.c (grub_memalign_dma32): New function
20562 (grub_dma_free): Likewise.
20563 (grub_dma_get_virt): Likewise.
20564 (grub_dma_get_phys): Likewise.
20565 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20566 (grub_ohci_pci_iter): Use dma32_alloc.
20567 (grub_ohci_transfer): Likewise.
20568 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20569 (grub_usb_bulk_readwrite): Likewise.
20570 * include/grub/pci.h: Add declarations.
20571
20572 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 CS5536 support.
20575
20576 * bus/cs5536.c: New file.
20577 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20578 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20579 (cs5536_mod_SOURCES): New variable.
20580 (cs5536_mod_CFLAGS): Likewise.
20581 (cs5536_mod_LDFLAGS): Likewise.
20582 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20583 machine/pci.h.
20584 (kernel_img_SOURCES): Add bus/cs5536.c.
20585 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20586 usb_keyboard.mod.
20587 (usb_mod_SOURCES): New variable.
20588 (usb_mod_CFLAGS): New variable.
20589 (usb_mod_LDFLAGS): New variable.
20590 (usbtest_mod_SOURCES): New variable.
20591 (usbtest_mod_CFLAGS): New variable.
20592 (usbtest_mod_LDFLAGS): New variable.
20593 (ohci_mod_SOURCES): New variable.
20594 (ohci_mod_CFLAGS): New variable.
20595 (ohci_mod_LDFLAGS): New variable.
20596 (usbms_mod_SOURCES): New variable.
20597 (usbms_mod_CFLAGS): New variable.
20598 (usbms_mod_LDFLAGS): New variable.
20599 (usb_keyboard_mod_SOURCES): New variable.
20600 (usb_keyboard_mod_CFLAGS): New variable.
20601 (usb_keyboard_mod_LDFLAGS): New variable.
20602 * include/grub/smbus.h: New file.
20603 * include/grub/cs5536.h: New file.
20604
20605 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20606
20607 * util/grub.d/00_header.in: Add safety check to make sure that
20608 ${locale_dir} exists before trying to probe it.
20609
20610 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20611
20612 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20613 per the GNU Coding Standards; this is now too obscure to be worth
20614 documenting.
20615 (QNX): Likewise.
20616 (chainloader): Remove cross-reference to `SCO UnixWare'.
20617
20618 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20619
20620 * docs/grub.texi (Chain-loading): New section.
20621 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20622 adjusted for GRUB 2.
20623 (SCO UnixWare): Likewise.
20624 (QNX): Likewise.
20625 (chainloader): Add reference to `Block list syntax'.
20626 (drivemap): New section.
20627 (parttool): New section.
20628
20629 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20630
20631 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20632 the grub shell'.
20633 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20634 (Installing GRUB using grub-install): Remove reference to the grub
20635 shell; mention `grub-mkimage' and `grub-setup' instead.
20636 (Invoking grub-install): Likewise.
20637 (Interface): Add reference to `Menu entry editor'.
20638 (serial): Remove `--device' option.
20639
20640 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20641
20642 * docs/grub.texi (Configuration): New section, documenting
20643 configuration file generation using grub-mkconfig. I've left a slot
20644 for documenting the full shell scripting format but have not yet
20645 started on writing that up.
20646 (Invoking grub-mkconfig): New section.
20647
20648 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20649
20650 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20651 (GNU GRUB manual): Likewise.
20652 (General commands): Update description of `terminfo' for GRUB 2.
20653
20654 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20655
20656 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20657 (GRUB_MOD_INIT): Fix capitalisation.
20658 * docs/grub.texi (Command-line and menu entry commands): Document
20659 gettext and gptsync commands.
20660
20661 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20662
20663 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20664 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20665
20666 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20667
20668 Add btrfs probing support, currently only in the single-device case.
20669
20670 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20671 function.
20672 (grub_guess_root_device): Call find_root_device_from_mountinfo
20673 before looking in /dev.
20674
20675 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20676
20677 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20678 GRUB_DISK_SIZE_UNKNOWN.
20679 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20680
20681 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20682
20683 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20684 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20685 corrupted or not synced properly.
20686
20687 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20688
20689 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20690 Reported by: Seth Goldberg.
20691
20692 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20693
20694 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20695 addition of dest.
20696 Reported by: Seth Goldberg.
20697
20698 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20699
20700 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20701 Reported by: Seth Goldberg.
20702
20703 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20704
20705 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20706 64-bit address as signed on MIPS.
20707
20708 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20709
20710 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20711 to the empty string.
20712
20713 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20714
20715 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20716
20717 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20718 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20719 * kern/misc.c (__enable_execute_stack): Disable on
20720 GRUB_MACHINE_EMU.
20721
20722 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20723
20724 Make grub-probe work with symbolic links under /dev/mapper as well
20725 as with real block devices. The Linux world seems to be (at best)
20726 in transition here, and GRUB shouldn't get caught in the middle.
20727
20728 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20729 /dev/mapper.
20730
20731 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20732
20733 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20734 input files (in which case exit zero).
20735
20736 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20737
20738 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20739 return NULL for various reasons even if it has a maximum-length
20740 buffer: for example, there might be a symlink loop, or the path
20741 might exceed PATH_MAX. If this happens, return NULL.
20742
20743 2010-05-27 Robert Millan <rmh@gnu.org>
20744
20745 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20746 partmap module to handle cross-partmap setups.
20747 Reported by Orestes Mas. Gràcies!
20748
20749 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20750
20751 * util/grub-mkrescue.in: Initialise override_dir rather than
20752 assuming that it's unset or empty in the environment.
20753
20754 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20755
20756 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20757 variable index into p_index to suppress a warning with -Wshadow.
20758
20759 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20760
20761 * INSTALL: Added flex >= 2.5.35 requirement.
20762
20763 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20764
20765 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20766
20767 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20768
20769 cmostest support.
20770
20771 * commands/i386/cmostest.c: New file.
20772 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20773 (cmostest_mod_SOURCES): New variable.
20774 (cmostest_mod_CFLAGS): Likewise.
20775 (cmostest_mod_LDFLAGS): Likewise.
20776 * conf/i386-pc.rmk: Likewise.
20777 * docs/grub.texi (Vendor power-on keys): New section.
20778 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20779 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20780 and GRUB_BUTTON_CMOS_ADDRESS.
20781 * util/grub.d/00_header.in: Handle powering-on by separate button.
20782
20783 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20784
20785 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20786 Removed drawing_scrollbar argument. All users updated
20787 Fixes #29792.
20788 Reported by Jo Shields
20789
20790 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20791
20792 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20793 buffer since gfxterm handles double repaint.
20794
20795 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20796
20797 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20798 * term/gfxterm.c (real_scroll): Likewise.
20799
20800 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20801
20802 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20803 before calling BIOS.
20804
20805 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20806
20807 * include/grub/i18n.h: Always enable grub_gettext.
20808
20809 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20810
20811 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20812 partition naming style.
20813
20814 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20815
20816 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20817 not the first option.
20818
20819 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20820
20821 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20822
20823 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20824
20825 * util/misc.c: Move inclusion of <limits.h> to ...
20826 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20827
20828 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20829
20830 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20831 Fix merge error in NetBSD code.
20832 (find_partition_start) [__NetBSD__]: Likewise.
20833
20834 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20835
20836 Fix grub-mkrescue usage unit testing.
20837
20838 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20839
20840 2010-05-18 Christian Franke <franke@computer.org>
20841
20842 * util/grub.d/10_windows.in: Use path names instead of
20843 drive letters to prevent warning from Cygwin 1.7.
20844 Add drivemap command to menuentry if needed.
20845
20846 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20847
20848 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20849 gnumach and gnumach.gz.
20850
20851 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20852
20853 * include/grub/i18n.h (gettext): Inline instead of using #define.
20854 (grub_gettext): Likewise.
20855 (_): Likewise.
20856
20857 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20858
20859 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20860 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20861 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20862 (main): Add a slash after pkglibdirroot.
20863
20864 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20865
20866 * util/grub-install.in: Add missing "in" keyword.
20867
20868 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20869
20870 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20871 Reported by: Seth Goldberg.
20872
20873 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20874
20875 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20876
20877 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20878
20879 * configure.ac: Check for Linux device-mapper support.
20880
20881 * util/hostdisk.c (device_is_mapped): New function.
20882 (find_partition_start): New function, partly broken out from
20883 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20884 device-mapper support added.
20885 (linux_find_partition): Use find_partition_start.
20886 (convert_system_partition_to_system_disk): Add `st' argument.
20887 Support Linux /dev/mapper/* devices if device-mapper support is
20888 available; only DM-RAID devices are understood at present.
20889 (find_system_device): Add `st' argument. Pass it to
20890 convert_system_partition_to_system_disk.
20891 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20892 find_system_device and convert_system_partition_to_system_disk. Use
20893 find_partition_start.
20894
20895 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20896 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20897 * util/deviceiter.c [__linux__]: Define MINOR.
20898 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20899 * util/mkdevicemap.c (grub_putchar): New function.
20900 (grub_getkey): New function.
20901 (grub_refresh): New function.
20902 (main): Set debug=all if -v -v is used.
20903
20904 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20905
20906 Fix build with non-GNU libcs.
20907
20908 * util/misc.c (canonicalize_file_name): Move to ...
20909 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20910 grub_make_system_path_relative_to_its_root.
20911
20912 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20913
20914 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20915 we handle finding grub-mkimage. Default to finding grub-mkimage in
20916 ${bindir} with program_transform_name applied, and provide a
20917 --grub-mkimage option to override this.
20918
20919 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20920
20921 Remove grub-mkisofs.
20922
20923 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20924 (grub_mkisofs_SOURCES): Removed.
20925 (grub_mkisofs_CFLAGS): Removed.
20926 * util/mkisofs/defaults.h: Removed.
20927 * util/mkisofs/eltorito.c: Likewise.
20928 * util/mkisofs/exclude.h: Likewise.
20929 * util/mkisofs/hash.c: Likewise.
20930 * util/mkisofs/include/: Likewise.
20931 * util/mkisofs/include/fctldefs.h: Likewise.
20932 * util/mkisofs/include/mconfig.h: Likewise.
20933 * util/mkisofs/include/prototyp.h: Likewise.
20934 * util/mkisofs/include/statdefs.h: Likewise.
20935 * util/mkisofs/iso9660.h: Likewise.
20936 * util/mkisofs/joliet.c: Likewise.
20937 * util/mkisofs/match.c: Likewise.
20938 * util/mkisofs/match.h: Likewise.
20939 * util/mkisofs/mkisofs.c: Likewise.
20940 * util/mkisofs/mkisofs.h: Likewise.
20941 * util/mkisofs/msdos_partition.h: Likewise.
20942 * util/mkisofs/multi.c: Likewise.
20943 * util/mkisofs/name.c: Likewise.
20944 * util/mkisofs/rock.c: Likewise.
20945 * util/mkisofs/tree.c: Likewise.
20946 * util/mkisofs/write.c: Likewise.
20947
20948 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20949
20950 Unify grub-mkimage accross platforms.
20951
20952 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
20953 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
20954 (grub_mkelfimage_SOURCES): Removed.
20955 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
20956 (util/grub-mkimage.c_DEPENDENCIES): .. this.
20957 (bin_UTILITIES): Add grub-mkimage.
20958 (grub_mkimage_SOURCES): New variable.
20959 (kernel_img_HEADERS): Remove machine/kernel.h.
20960 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
20961 (pkglib_PROGRAMS): Add kernel.img.
20962 (kernel_img_HEADERS): Add machine/kernel.h.
20963 (kernel_img_FORMAT): Removed.
20964 (bin_UTILITIES): Remove grub-mkimage.
20965 (grub_mkimage_SOURCES): Removed.
20966 (grub_mkimage_CFLAGS): Likewise.
20967 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20968 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
20969 (pkglib_PROGRAMS): Add kernel.img.
20970 (bin_UTILITIES): Remove grub-mkimage.
20971 (grub_mkimage_SOURCES): Removed.
20972 (grub_mkimage_CFLAGS): Likewise.
20973 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20974 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
20975 (pkglib_PROGRAMS): Add kernel.img.
20976 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
20977 (pkglib_PROGRAMS): Add kernel.img.
20978 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
20979 (grub_mkimage_SOURCES): Removed.
20980 (grub_mkimage_CFLAGS): Likewise.
20981 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20982 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
20983 (pkglib_PROGRAMS): Add kernel.img.
20984 (bin_UTILITIES): Remove grub-mkimage.
20985 (grub_mkimage_SOURCES): Removed.
20986 (grub_mkimage_CFLAGS): Likewise.
20987 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20988 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
20989 (grub_mkimage_SOURCES): Removed.
20990 (grub_mkimage_CFLAGS): Likewise.
20991 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20992 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
20993 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
20994 (grub_pe32_optional_header): ... this.
20995 (grub_pe64_optional_header): ... and this. All users updated.
20996 (GRUB_PE32_PE32_MAGIC): Split into ..
20997 (GRUB_PE32_PE32_MAGIC): .. this.
20998 (GRUB_PE32_PE64_MAGIC): .. and this.
20999 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21000 * include/grub/elf.h (PT_GNU_STACK): New definition.
21001 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21002 * include/grub/i386/efi/kernel.h: Likewise.
21003 * include/grub/i386/kernel.h: Likewise.
21004 * include/grub/i386/pc/kernel.h: Likewise.
21005 * include/grub/i386/qemu/boot.h: Likewise.
21006 * include/grub/mips/kernel.h: Likewise.
21007 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21008 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21009 * include/grub/powerpc/kernel.h: Likewise.
21010 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21011 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21012 * include/grub/sparc64/kernel.h: Likewise.
21013 * include/grub/x86_64/efi/kernel.h: Likewise.
21014 * include/grub/x86_64/kernel.h: Likewise.
21015 * include/grub/offsets.h: New file.
21016 * include/grub/kernel.h (grub_module_info): Split into ...
21017 (grub_module_info32): ... this.
21018 (grub_module_info64): ... and this.
21019 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21020 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21021 (grub_boot_blocklist): Moved from here ...
21022 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21023 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21024 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21025 * include/grub/types.h (grub_target_to_host16): Removed.
21026 (grub_target_to_host32): Likewise.
21027 (grub_target_to_host64): Likewise.
21028 (grub_host_to_target16): Likewise.
21029 (grub_host_to_target32): Likewise.
21030 (grub_host_to_target64): Likewise.
21031 (grub_host_to_target_addr): Likewise.
21032
21033 Support grub-mkrescue for efi, coreboot and qemu.
21034
21035 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21036 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21037 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21038 * util/grub-mkrawimage.c: Moved from here ...
21039 * util/grub-mkimage.c: ... here. All users updated.
21040 (ALIGN_ADDR): Use image_target.
21041 (TARGET_NO_FIELD): New const.
21042 (image_target_desc): New type.
21043 (image_targets): New array.
21044 (grub_target_to_host64): Use image_target.
21045 (grub_target_to_host32): Likewise.
21046 (grub_target_to_host16): Likewise.
21047 (grub_host_to_target64): Likewise.
21048 (grub_host_to_target32): Likewise.
21049 (grub_host_to_target16): Likewise.
21050 (grub_host_to_target_addr): Likewise.
21051 (generate_image): Handle multiimage.
21052 (main): Require -O parameter. All users updated.
21053 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21054 util/efi/grub-mkimage.c
21055 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21056 New option --rom-directory.
21057 Use xorriso.
21058 * util/i386/efi/grub-mkimage.c: Removed.
21059 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21060 (grub_target_to_host32): Likewise.
21061 (grub_target_to_host64): Likewise.
21062 (grub_host_to_target16): Likewise.
21063 (grub_host_to_target32): Likewise.
21064 (grub_host_to_target64): Likewise.
21065 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21066 (grub_target_to_host32): Likewise.
21067 (grub_target_to_host64): Likewise.
21068 (grub_host_to_target16): Likewise.
21069 (grub_host_to_target32): Likewise.
21070 (grub_host_to_target64): Likewise.
21071
21072 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21073
21074 Source tree is reorganized for emu build.
21075
21076 * include/grub/util/console.h: Move from here...
21077 * include/grub/emu/console.h: ...to here.
21078 * include/grub/util/getroot.h: Move from here...
21079 * include/grub/emu/getroot.h: ...to here.
21080 * include/grub/util/hostdisk.h: Move from here...
21081 * include/grub/emu/hostdisk.h: ...to here.
21082 * util/console.c: Move from here...
21083 * kern/emu/console.c: ...to here.
21084 * util/getroot.c: Move from here...
21085 * kern/emu/getroot.c: ...to here.
21086 * util/grub-emu.c: Move from here...
21087 * kern/emu/main.c: ...to here.
21088 * util/hostdisk.c: Move from here...
21089 * kern/emu/hostdisk.c: ...to here.
21090 * util/hostfs.c: Move from here...
21091 * kern/emu/hostfs.c: ...to here.
21092 * util/mm.c: Move from here...
21093 * kern/emu/mm.c: ...to here.
21094 * util/pci.c: Move from here...
21095 * bus/emu/pci.c: ...to here.
21096 * util/sdl.c: Move from here...
21097 * video/emu/sdl.c: ...to here.
21098 * util/time.c: Move from here...
21099 * kern/emu/time.c: ...to here.
21100 * util/usb.c: Move from here...
21101 * bus/usb/emu/usb.c: ...to here.
21102
21103 * include/grub/emu/misc.h: New header for grub-emu functions.
21104 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21105
21106 * conf/any-emu.rmk: Rule updates for above renames.
21107 * conf/common.rmk: Likewise.
21108 * conf/i386-pc.rmk: Likewise.
21109 * conf/i386-qemu.rmk: Likewise.
21110 * conf/mips.rmk: Likewise.
21111 * conf/sparc64-ieee1275.rmk: Likewise.
21112 * conf/x86-efi.rmk: Likewise.
21113
21114 * disk/lvm.h: #include updates for above renames.
21115 * util/grub-mkrelpath.c: Likewise.
21116 * util/grub-probe.c: Likewise.
21117 * util/i386/pc/grub-setup.c: Likewise.
21118 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21119 * kern/emu/console.c: Likewise.
21120 * kern/emu/getroot.c: Likewise.
21121 * kern/emu/hostdisk.c: Likewise.
21122 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21123
21124 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21125 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21126 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21127 * util/misc.c: Remove grub-emu functions.
21128
21129 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21130
21131 Fix gfxmenu crash.
21132 Reported by: Thorsten Grützmacher.
21133
21134 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21135 timeout hook.
21136 (circprog_set_property): Register and unregister timeout hook.
21137 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21138 (label_destroy): Free template. and unregister hook.
21139 (label_set_state): New function.
21140 (label_set_property): Handle templates and hooks.
21141 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21142 timeout hook.
21143 (progress_bar_set_property): Register and unregister timeout hook.
21144 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21145 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21146 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21147 (update_timeout_visit): Removed.
21148 (update_timeouts): New function.
21149 (redraw_timeouts): Likewise.
21150 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21151 (grub_gfxmenu_clear_timeout): Likewise.
21152 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21153 (grub_gfxmenu_timeout_notify): Likewise.
21154 (grub_gfxmenu_timeout_notifications): New external variable.
21155 (grub_gfxmenu_timeout_register): New function.
21156 (grub_gfxmenu_timeout_unregister): Likewise.
21157
21158 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21159
21160 Transform (broken) vga terminal into (working) vga video driver.
21161
21162 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21163 video/i386/pc/vga.c.
21164 * include/grub/video.h (grub_video_driver_id):
21165 Add GRUB_VIDEO_DRIVER_VGA.
21166 * term/i386/pc/vga.c: Renamed to ...
21167 * video/i386/pc/vga.c: ...this
21168 (DEBUG_VGA): Removed.
21169 (CHAR_WIDTH): Likewise.
21170 (CHAR_HEIGHT): Likewise.
21171 (TEXT_WIDTH): Likewise.
21172 (TEXT_HEIGHT): Likewise.
21173 (DEFAULT_FG_COLOR): Likewise.
21174 (DEFAULT_BG_COLOR): Likewise.
21175 (colored_char): Likewise.
21176 (xpos): Likewise.
21177 (ypos): Likewise.
21178 (cursor_state): Likewise.
21179 (fg_color): Likewise.
21180 (bg_color): Likewise.
21181 (text_buf): Likewise.
21182 (page): Likewise.
21183 (font): Likewise.
21184 (framebuffer): New variable.
21185 (set_read_map): Disabled.
21186 (setup): New variable.
21187 (is_target): Likewise.
21188 (grub_vga_mod_init): Likewise.
21189 (grub_vga_mod_fini): Likewise.
21190 (check_vga_mem): Likewise.
21191 (write_char): Likewise.
21192 (write_cursor): Likewise.
21193 (scroll_up): Likewise.
21194 (grub_vga_putchar): Likewise.
21195 (grub_vga_getcharwidth): Likewise.
21196 (grub_vga_getwh): Likewise.
21197 (grub_vga_getxy): Likewise.
21198 (grub_vga_gotoxy): Likewise.
21199 (grub_vga_cls): Likewise.
21200 (grub_vga_setcolorstate): Likewise.
21201 (grub_vga_setcursor): Likewise.
21202 (grub_video_vga_init): New function.
21203 (grub_video_vga_setup): Likewise.
21204 (grub_video_vga_fini): Likewise.
21205 (update_target): Likewise.
21206 (grub_video_vga_blit_bitmap): Likewise.
21207 (grub_video_vga_blit_render_target): Likewise.
21208 (grub_video_vga_set_active_render_target): Likewise.
21209 (grub_video_vga_get_active_render_target): Likewise.
21210 (grub_video_vga_swap_buffers): Likewise.
21211 (grub_video_vga_set_palette): Likewise.
21212 (grub_video_vga_get_info_and_fini): Likewise.
21213 (grub_vga_term): Removed.
21214 (grub_video_vga_adapter): New variable.
21215 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21216 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21217
21218 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21219
21220 * video/readers/jpeg.c: Indented.
21221
21222 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21223
21224 Various jpeg cleanups.
21225
21226 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21227 (grub_jpeg_decode_quan_table): Use sizeof.
21228 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21229
21230 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21231
21232 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21233 tables. Ignore non-last ac bit.
21234 (grub_jpeg_decode_quan_table): Likewise.
21235
21236 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21237
21238 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21239 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21240 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21241 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21242 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21243 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21244
21245 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21246
21247 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21248 error.
21249
21250 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21251
21252 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21253
21254 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21255
21256 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21257 condition.
21258
21259 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21260
21261 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21262 part.
21263
21264 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21265
21266 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21267 pointers.
21268
21269 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21270
21271 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21272
21273 2010-05-01 Christian Franke <franke@computer.org>
21274
21275 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21276 Remove broken Cygwin path conversion.
21277 * util/misc.c: [__CYGWIN__] Add include and define.
21278 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21279 for Cygwin 1.7.
21280 (make_system_path_relative_to_its_root): Simplify loop, replace early
21281 return by break.
21282 [__CYGWIN__] Add conversion to win32 path.
21283 Include "/" case in trailing slash removal.
21284
21285 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21286
21287 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21288 Reported by: Seth Goldberg
21289
21290 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21291
21292 * commands/help.c (grub_cmd_help): Fix a typo.
21293 Reported by: Seth Goldberg
21294
21295 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21296
21297 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21298 name and add N_.
21299 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21300 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21301 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21302 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21303 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21304 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21305 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21306 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21307 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21308 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21309 * normal/context.c (GRUB_MOD_INIT): Likewise.
21310 * normal/main.c (GRUB_MOD_INIT): Likewise.
21311 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21312 * term/serial.c (GRUB_MOD_INIT): Likewise.
21313 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21314
21315 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21316
21317 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21318 extra == 0.
21319
21320 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21321
21322 * commands/iorw.c: New file.
21323 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21324 (iorw_mod_SOURCES): New variable.
21325 (iorw_mod_CFLAGS): Likewise.
21326 (iorw_mod_LDFLAGS): Likewise.
21327
21328 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21329
21330 Hotkey support
21331
21332 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21333 * normal/main.c (hotkey_aliases): New variable.
21334 (grub_normal_add_menu_entry): Parse "--hotkey".
21335 * normal/menu_text.c (run_menu): Handle hotkeys.
21336
21337 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21338
21339 * kern/i386/coreboot/init.c (grub_machine_init): Call
21340 grub_machine_mmap_init on qemu.
21341
21342 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21343
21344 * boot/i386/qemu/boot.S: Add a missing .code16.
21345
21346 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21347
21348 Use LBIO on coreboot.
21349
21350 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21351 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21352 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21353 New declaration.
21354 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21355 grub_machine_mmap_init on coreboot.
21356 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21357 GRUB_LINUXBIOS_MEMBER_LINK.
21358 (grub_machine_mmap_iterate): Fix declaration.
21359 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21360
21361 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21362
21363 Split coreboot and multiboot ports.
21364
21365 * conf/i386-multiboot.rmk: New file.
21366 * configure.ac: Add multiboot port.
21367 * include/grub/i386/multiboot/boot.h: New file.
21368 * include/grub/i386/multiboot/console.h: Likewise.
21369 * include/grub/i386/multiboot/init.h: Likewise.
21370 * include/grub/i386/multiboot/kernel.h: Likewise.
21371 * include/grub/i386/multiboot/loader.h: Likewise.
21372 * include/grub/i386/multiboot/memory.h: Likewise.
21373 * include/grub/i386/multiboot/serial.h: Likewise.
21374 * include/grub/i386/multiboot/time.h: Likewise.
21375 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21376 * loader/multiboot.c: Likewise.
21377 * loader/multiboot_mbi2.c: Likewise.
21378 * util/grub-mkrescue.in: Generate multiboot rescue.
21379
21380 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21381
21382 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21383
21384 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21385
21386 Merge handling of input and output terminals. Fix a hang.
21387
21388 * commands/terminal.c (abstract_terminal): New struct.
21389 (handle_command): New function. Based on grub_cmd_terminal_input.
21390 (grub_cmd_terminal_input): Use handle_command.
21391 (grub_cmd_terminal_output): Use handle_command.
21392
21393 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21394
21395 Fix comment handling.
21396
21397 * tests/grub_script_comments.in: New testcase.
21398 * conf/tests.rmk: Rules for new testcase.
21399 * script/yylex.l: Updated flex rules.
21400
21401 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21402
21403 * docs/grub.texi (play): Document that zero pitches produce rests.
21404 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21405 if argc is 1.
21406
21407 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21408
21409 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21410 autogen issues.
21411
21412 2010-04-26 Christian Franke <franke@computer.org>
21413
21414 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21415 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21416 (grub_get_prefix): Remove function.
21417 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21418 make_system_path_relative_to_its_root ().
21419 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21420
21421 2010-04-24 Christian Franke <franke@computer.org>
21422
21423 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21424 (kernel_img_LDFLAGS): Remove -static-libgcc.
21425
21426 2010-04-24 Christian Franke <franke@computer.org>
21427
21428 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21429 and CHECK_END_SYMBOL if grub-emu is built.
21430 Unset TARGET_OBJ2ELF if grub-emu is built
21431 without module support.
21432
21433 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21434
21435 Nilfs2 support.
21436
21437 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21438 (grub_fstest_SOURCES): Likewise.
21439 (pkglib_MODULES): Add nilfs2.mod.
21440 (nilfs2_mod_SOURCES): New variable.
21441 (nilfs2_mod_CFLAGS): Likewise.
21442 (nilfs2_mod_LDFLAGS): Likewise.
21443 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21444 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21445 * fs/nilfs2.c: New file.
21446
21447 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21448
21449 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21450 is not supported.
21451
21452 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21453
21454 Add grub-mkconfig support for NetBSD.
21455
21456 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21457 * util/grub-mkconfig.in: export new NetBSD specific variables.
21458 * po/POTFILES-shell: added 10_netbsd.in.
21459 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21460
21461 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21462
21463 Fix emu build with grub-emu-pci and grub-emu-modules.
21464
21465 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21466 functions.
21467 * include/grub/libpciaccess.h: New file.
21468 * conf/any-emu.rmk: Update kernel headers for emu build.
21469
21470 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21471
21472 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21473
21474 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21475
21476 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21477
21478 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21479
21480 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21481 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21482 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21483 util/ieee1275/ofpath.c.
21484 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21485 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21486 * include/grub/sparc64/ieee1275/boot.h
21487 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21488 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21489 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21490 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21491 const char *.
21492 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21493 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21494 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21495 install.
21496
21497 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21498
21499 * util/grub-mkconfig.in: Corrected two == equality tests.
21500 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21501 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21502 expect a number appended to it.
21503 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21504 expects a number appended to it.
21505
21506 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21507
21508 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21509
21510 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 * util/hostdisk.c (make_device_name): Change to new partition naming.
21513
21514 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21515
21516 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21517
21518 2010-04-17 Christian Franke <franke@computer.org>
21519
21520 * Makefile.in: Add missing localedir setting.
21521
21522 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21523
21524 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21525 mistake in r2156. Noticed by Anthony Fok.
21526
21527 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21528 @localedir@.
21529 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21530
21531 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21532
21533 Fix a spurious, uninitialized variable warning.
21534
21535 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21536 Initialize variable, shdr.
21537 (grub_freebsd_load_elfmodule): Likewise.
21538 (grub_freebsd_load_elf_meta): Likewise.
21539
21540 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21541
21542 Fix for escaped dollar in double quoted strings.
21543
21544 * script/yylex.l: Updated flex rules.
21545 * conf/tests.rmk: Rule for new testcase.
21546 * tests/grub_script_dollar.in: New testcase.
21547
21548 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21549 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21550
21551 Enclose all translated strings in grub.cfg in single quotes, and
21552 escape them appropriately (Ubuntu bug #552921).
21553
21554 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21555 * util/grub.d/10_hurd.in: Use it.
21556 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21557 * util/grub.d/10_linux.in (linux_entry): Likewise.
21558
21559 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21560
21561 Fix cygwin compilation.
21562
21563 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21564 * include/grub/misc.h (__register_frame_info)
21565 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21566 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21567 * kern/misc.c (__register_frame_info)
21568 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21569 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21570
21571 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21572
21573 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21574
21575 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21576
21577 Unify libgcc processing.
21578
21579 * Makefile.in (kernel_img_LDFLAGS): New variable.
21580 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21581 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21582 overwriting.
21583 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21584 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21585 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21586 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21587 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21588 overwriting. Remove -lgcc and -static-libgcc
21589 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21590 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21591 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21592 (kernel_img_LDFLAGS): Append instead of overwriting.
21593 Remove -lgcc and -static-libgcc
21594 * conf/sparc64-ieee1275.rmk: Likewise.
21595 * include/grub/powerpc/libgcc.h: Move to ...
21596 * include/grub/libgcc.h: .. this.
21597 * include/grub/libgcc.h: Don't export most of the function on x86.
21598 (__bswapsi2): New export.
21599 (__bswapdi2): Likewise.
21600 * include/grub/mips/libgcc.h: Removed.
21601 * include/grub/sparc64/libgcc.h: Likewise.
21602
21603 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21604
21605 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21606 disk_info_msg (conflicts with gettexting into languages with cases).
21607
21608 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21609
21610 Add grub-probe support for NetBSD.
21611
21612 * util/getroot.c (find_root_device): Convert block device to
21613 character device on NetBSD.
21614 * util/probe.c (probe): Require character device on NetBSD.
21615 * util/hostdisk.c: NetBSD specific headers.
21616 (configure_device_driver): new function to tune device driver
21617 parameters (currently only for NetBSD floppy driver).
21618 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21619 via disklabel ioctl).
21620 (open_device): call configure_device_driver on NetBSD.
21621 (convert_system_partition_to_system_disk): NetBSD specific code.
21622 (device_is_wholedisk): Likewise.
21623 (grub_util_biosdisk_get_grub_dev): Likewise.
21624 (make_device_name): Fixed a typo in bsd_part_str.
21625 * configure.ac: check for opendisk() and getrawpartition() on
21626 NetBSD and set LIBUTIL.
21627 * Makefile.in: add LIBUTIL to LIBS.
21628
21629 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21630
21631 Documentation fix.
21632
21633 * util/grub-script-check.c: Better help message.
21634
21635 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21636
21637 Fix FreeBSD build.
21638
21639 * configure.ac: Flex version check.
21640 * conf/common.rmk: Add -Wno-error to sh.mod.
21641 * script/yylex.l: Remove all #pragma.
21642
21643 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21644
21645 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21646 prototype.
21647 Reported by: Seth Goldberg.
21648
21649 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21650
21651 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21652 Rename "module" to "module2".
21653 Reported by: Seth Goldberg.
21654
21655 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21656
21657 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21658 EXPORT_FUNC.
21659 Reported by: Seth Goldberg.
21660
21661 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21662
21663 * lib/posix_wrap/locale.h: Add missing file.
21664 Reported by: Seth Goldberg.
21665
21666 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21667
21668 grub-emu module load support.
21669
21670 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21671 NO_DYNAMIC_MODULES switched to this.
21672 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21673 (CFLAGS): Likewise.
21674 * conf/any-emu.rmk: Generate symlist.
21675 (kernel_img_HEADERS): Add util/datetime.h.
21676 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21677 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21678 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21679 kern/$(target_cpu)/cache.S.
21680 * configure.ac (grub-emu-modules): New option.
21681 * genmk.rb: Handle multiple source lists.
21682 * include/grub/sdl.h: New file.
21683 * include/grub/libusb.h: Likewise.
21684 * util/grub-emu.c (main): Hanle (host) root.
21685 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21686 GRUB_ERR_UNKNOWN_DEVICE.
21687 * util/misc.c: Move mm functions to ...
21688 * util/mm.c: ... here. All users updated.
21689
21690 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21693 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21694 missing files.
21695 (maintainer-clean): Remove libgcrypt-grub.
21696
21697 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21698
21699 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21700
21701 2010-04-09 EFI Coder <eficoder@hotmail.com>
21702
21703 * normal/menu_text.c (print_message): Clean up the message and show
21704 the Fn information when on EFI
21705 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21706
21707 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21710 All users updated.
21711 * normal/crypto.c (read_crypto_list): Likewise.
21712 * normal/dyncmd.c (read_command_list): Likewise.
21713 * normal/term.c (read_terminal_list): Likewise.
21714 * normal/main.c (read_lists): Use explicit prefix.
21715 (read_lists_hook): Use read_lists.
21716 (grub_normal_execute): Likewise.
21717
21718 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21719
21720 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21721 Reported by: Thomas Schmitt.
21722 Add -no-emul-boot to grub-mkisofs parameters.
21723
21724 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21725
21726 * font/font.c: Indented.
21727
21728 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21729
21730 Elif support to GRUB script (by Deepak Vankadaru).
21731
21732 * tests/grub_script_if.in: New testcase.
21733 * conf/tests.rmk: Rule for new testcase.
21734 * script/parser.y: Grammar rules for elif.
21735
21736 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21737
21738 While and until loops support to GRUB script.
21739
21740 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21741 (grub_script_create_cmdwhile): New function prototype.
21742 (grub_script_execute_cmdwhile): New function prototype.
21743 * script/execute.c (grub_script_execute_cmdwhile): New function.
21744 * script/parser.y (command): New commands.
21745 (whilecmd): New grammar rule.
21746 (untilcmd): New grammar rule.
21747 * script/script.c (grub_script_create_cmdwhile): New function.
21748 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21749 function.
21750
21751 * tests/grub_script_while1.in: New testcase.
21752 * conf/tests.rmk: Rule for new testcase.
21753
21754 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21755
21756 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21757 as *.jpg.
21758
21759 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21760
21761 GRUB_BACKGROUND support.
21762
21763 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21764 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21765
21766 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21767
21768 Load fonts and modules for gfxmenu in grub-mkconfig.
21769 Idea by: Mario Vazquez
21770
21771 * util/grub.d/00_header.in: Load pf2 and image modules.
21772
21773 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21774
21775 grub-mkconfig multiple terminal support.
21776
21777 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21778 * util/grub.d/00_header.in: Likewise.
21779
21780 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21783 we use cd $(srcdir).
21784
21785 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21786
21787 * util/grub.d/10_linux.in: Only use the first word of
21788 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21789 spaces in GRUB_DISTRIBUTOR.
21790 * util/grub.d/10_kfreebsd.in: Likewise.
21791 * util/grub.d/10_hurd.in: Likewise.
21792
21793 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21794
21795 Fix unit testing framework for Qemu 0.12.
21796
21797 * tests/util/grub-shell.in: Remove -serial stdio option.
21798
21799 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21800
21801 POSIX header file wrappers.
21802
21803 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21804 equivalents.
21805 * lib/posix_wrap/ctype.h: Likewise.
21806 * lib/posix_wrap/errno.h: Likewise.
21807 * lib/posix_wrap/langinfo.h: Likewise.
21808 * lib/posix_wrap/limits.h: Likewise.
21809 * lib/posix_wrap/localcharset.h: Likewise.
21810 * lib/posix_wrap/stdint.h: Likewise.
21811 * lib/posix_wrap/stdio.h: Likewise.
21812 * lib/posix_wrap/stdlib.h: Likewise.
21813 * lib/posix_wrap/string.h: Likewise.
21814 * lib/posix_wrap/sys/types.h: Likewise.
21815 * lib/posix_wrap/unistd.h: Likewise.
21816 * lib/posix_wrap/wchar.h: Likewise.
21817 * lib/posix_wrap/wctype.h: Likewise.
21818 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21819 (grub_script.yy.h): Likewise.
21820 * script/yylex.l: Remove POSIX emulation #defines.
21821 * Makefile.in (POSIX_CFLAGS): New variable.
21822 (GNULIB_UTIL_CFLAGS): Likewise.
21823
21824 Regexp support.
21825
21826 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21827 (regexp_mod_SOURCES): New variable.
21828 (regexp_mod_CFLAGS): Likewise.
21829 (regexp_mod_LDFLAGS): Likewise.
21830 * commands/regexp.c: New file.
21831 * gnulib/regcomp.c: New file. Imported from gnulib.
21832 * gnulib/regex.c: Likewise.
21833 * gnulib/regex_internal.c: Likewise.
21834 * gnulib/regex_internal.h: Likewise.
21835 * gnulib/regexec.c: Likewise.
21836 * gnulib/regex.h: Likewise.
21837
21838 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21839
21840 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21841 unsupported video mode types.
21842
21843 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21844
21845 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21846
21847 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21848
21849 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21850 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21851
21852 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21853
21854 Remove unused grub_vga_get_font.
21855
21856 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21857 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21858
21859 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21860
21861 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21862 * include/grub/misc.h: Likewise.
21863
21864 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21865
21866 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21867 for which failure is fatal.
21868
21869 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21870
21871 * util/grub-install.in: Use mkdir -p to create grub directory.
21872 * util/i386/efi/grub-install.in: Likewise.
21873 * util/ieee1275/grub-install.in: Likewise.
21874
21875 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21876
21877 * Makefile.in (LEX): new variable.
21878
21879 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21880
21881 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21882 `=' and added double quotes on operands of this equality test.
21883
21884 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21885
21886 * Makefile.in (uninstall): Remove a leftover debug echo.
21887 Reported by: Grégoire Sutre
21888
21889 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21890
21891 MIPS multiboot2 support.
21892
21893 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21894 (multiboot2_mod_SOURCES): New variable.
21895 (multiboot2_mod_CFLAGS): Likewise.
21896 (multiboot2_mod_LDFLAGS): Likewise.
21897 (multiboot2_mod_ASFLAGS): Likewise.
21898 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21899 definition.
21900 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21901 (MULTIBOOT_MBI_REGISTER): Likewise.
21902 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21903 (MULTIBOOT_ELF32_MACHINE): Likewise.
21904 (MULTIBOOT_ELF64_MACHINE): Likewise.
21905 * include/grub/mips/multiboot.h: New file.
21906 * include/grub/video.h (grub_video_driver_id): New type
21907 GRUB_VIDEO_DRIVER_SM712.
21908 (grub_video_get_info_and_fini): Export.
21909 (grub_video_get_palette): Likewise.
21910 (grub_video_get_driver_id): Likewise.
21911 * include/multiboot2.h: Resynced with spec.
21912 * loader/i386/multiboot.c: Moved from here ...
21913 * loader/multiboot.c: ... here. All users updated.
21914 (grub_multiboot_boot): Use platform-specific macros.
21915 * loader/i386/multiboot_elfxx.c: Moved from here ...
21916 * loader/multiboot_elfxx.c: ... here. All users updated.
21917 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21918 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21919 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21920
21921 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21922
21923 Import gnulib argp module.
21924
21925 * gnulib/argp-ba.c: New file.
21926 * gnulib/argp-eexst.c: Likewise.
21927 * gnulib/argp-fmtstream.c: Likewise.
21928 * gnulib/argp-fmtstream.h: Likewise.
21929 * gnulib/argp-fs-xinl.c: Likewise.
21930 * gnulib/argp-help.c: Likewise.
21931 * gnulib/argp-namefrob.h: Likewise.
21932 * gnulib/argp-parse.c: Likewise.
21933 * gnulib/argp-pin.c: Likewise.
21934 * gnulib/argp-pv.c: Likewise.
21935 * gnulib/argp-pvh.c: Likewise.
21936 * gnulib/argp-version-etc.c: Likewise.
21937 * gnulib/argp-version-etc.h: Likewise.
21938 * gnulib/argp-xinl.c: Likewise.
21939 * gnulib/argp.h: Likewise.
21940
21941 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21942
21943 * kern/device.c (grub_device_iterate): Clear errors after failed
21944 opening device.
21945
21946 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21947
21948 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
21949 returned by firmware.
21950
21951 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
21952
21953 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
21954 compilation on coreboot and qemu
21955
21956 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21957
21958 * include/multiboot2.h: Resync with spec.
21959
21960 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21961
21962 Multiboot2 tag support
21963
21964 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
21965 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
21966 Remove loader/multiboot_loader.c.
21967 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
21968 (grub_multiboot2_real_boot): Likewise.
21969 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
21970 (grub_get_multiboot_mmap_count): New proto.
21971 (grub_fill_multiboot_mmap): Likewise.
21972 (grub_multiboot_set_video_mode): Likewise.
21973 (grub_multiboot_set_console): Likewise.
21974 (grub_multiboot_load): Likewise.
21975 (grub_multiboot_load_elf): Likewise.
21976 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
21977 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
21978 * include/multiboot.h: Resynced with specification.
21979 * include/multiboot2.h: Resynced with specification.
21980 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
21981 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
21982 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
21983 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
21984 users updated.
21985 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
21986 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
21987 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
21988 Removed.
21989 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
21990 Moved from here...
21991 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
21992 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21993 Moved from here...
21994 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
21995 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
21996 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
21997 All users updated.
21998 * loader/i386/multiboot_mbi2.c: New file.
21999
22000 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22001
22002 Resync with gnulib.
22003
22004 * Makefile.in (GNULIB_CFLAGS): New variable.
22005 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22006 (grub_script_check_CFLAGS): New variable.
22007 * gnulib/alloca.h: Resync with gnulib.
22008 * gnulib/error.c: Likewise.
22009 * gnulib/error.h: Likewise.
22010 * gnulib/fnmatch.c: Likewise.
22011 * gnulib/fnmatch_loop.c: Likewise.
22012 * gnulib/getdelim.c: Likewise.
22013 * gnulib/getline.c: Likewise.
22014 * gnulib/getopt.c: Likewise.
22015 * gnulib/getopt1.c: Likewise.
22016 * gnulib/getopt_int.h: Likewise.
22017 * gnulib/gettext.h: Likewise.
22018 * gnulib/progname.c: Likewise.
22019 * gnulib/progname.h: Likewise.
22020
22021 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22022
22023 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22024 which is the case with --disabled-nls.
22025
22026 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22027 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22028 * util/misc.c: Likewise.
22029 * util/mkisofs/mkisofs.c: Likewise.
22030 * util/mkisofs/mkisofs.h: Likewise.
22031
22032 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22033
22034 Simplify Apple CC support.
22035
22036 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22037 Add 0 byte at the end not to have a symbol with empty target.
22038 * mmap/i386/pc/mmap_helper.S: Likewise.
22039 * genmk.rb: Ignore errors 2030 and 2050.
22040 * kern/i386/pc/startup.S: Use LOCAL when possible.
22041
22042 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22043
22044 Testcase and the fix for final semicolon on cmdline.
22045
22046 * tests/grub_script_final_semicolon.in: New testcase.
22047 * conf/tests.rmk: Rules for the new testcase.
22048 * script/parser.y: Grammar fix.
22049
22050 2010-03-26 BVK Chaitanya <bvk@localhost>
22051
22052 Blank lines testcase for GRUB script.
22053
22054 * tests/grub_script_blanklines.in: New testcase.
22055 * conf/tests.rmk: Rules for the new testcase.
22056
22057 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22058
22059 Don't use __FILE__.
22060
22061 * genmk.rb: Add -DGRUB_FILE to all C targets.
22062 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22063 * include/grub/list.h: Likewise.
22064 * include/grub/misc.h: Likewise.
22065 * include/grub/mm.h: Likewise.
22066 * include/grub/test.h: Likewise.
22067 * kern/mm.c: Likewise.
22068 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22069
22070 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22071
22072 Sunpc partitions support.
22073
22074 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22075 (grub_fstest_SOURCES): Likewise.
22076 (pkglib_MODULES): Add part_sunpc.mod.
22077 (part_sunpc_mod_SOURCES): New variable.
22078 (part_sunpc_mod_CFLAGS): Likewise.
22079 (part_sunpc_mod_LDFLAGS): Likewise.
22080 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22081 * partmap/sunpc.c: New file.
22082
22083 2010-03-26 BVK Chaitanya <bvk@localhost>
22084
22085 For loop support to GRUB script.
22086
22087 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22088 (grub_script_create_cmdfor): New function prototype.
22089 (grub_script_execute_cmdfor): New function prototype.
22090 * script/execute.c (grub_script_execute_cmdfor): New function.
22091 * script/parser.y (command): New for command.
22092 (forcmd): New grammar rule.
22093 * script/script.c (grub_script_create_cmdfor): New function.
22094 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22095 function.
22096 * tests/grub_script_for1.in: New testcase.
22097 * conf/tests.rmk: Rules for new testcase.
22098
22099 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22100
22101 Nested partitions
22102
22103 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22104 'partition' is NULL, grub_partition_get_start already does that.
22105 * commands/loadenv.c (check_blocklists): Likewise.
22106 (write_blocklists): Likewise.
22107 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22108 (grub_fstest_SOURCES): Likewise.
22109 (pkglib_MODULES): Add part_bsd.mod.
22110 (part_bsd_mod_SOURCES): New variable.
22111 (part_bsd_mod_CFLAGS): Likewise.
22112 (part_bsd_mod_LDFLAGS): Likewise.
22113 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22114 (grub_emu_SOURCES): Likewise.
22115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22116 * include/grub/bsdlabel.h: New file.
22117 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22118 'get_name'.
22119 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22120 (grub_partition_map_list): New variable.
22121 (grub_partition_map_register): Inline.
22122 (grub_partition_map_unregister): Likewise.
22123 (FOR_PARTITION_MAPS): New macro.
22124 (grub_partition_map_iterate): Removed.
22125 (grub_partition_get_start): Handle nested partitions.
22126 * include/grub/msdos_partition.h: Remove bsd-related entries.
22127 (grub_pc_partition): Remove.
22128 * kern/disk.c (grub_disk_close): Free partition data.
22129 (grub_disk_adjust_range): Handle nested partitions.
22130 * kern/partition.c (grub_partition_map_probe): New function.
22131 (grub_partition_probe): Parse name to number, handle subpartitions.
22132 (get_partmap): New function.
22133 (grub_partition_iterate): Handle subpartitions.
22134 (grub_partition_get_name): Likewise.
22135 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22136 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22137 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22138 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22139 Set 'number'.
22140 (acorn_partition_map_probe): Remove.
22141 (acorn_partition_map_get_name): Likewise.
22142 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22143 Set 'number'.
22144 Set 'index' to 0 since there can be only one partition entry per sector.
22145 (amiga_partition_map_probe): Remove.
22146 (amiga_partition_map_get_name): Likewise.
22147 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22148 Set 'number'.
22149 Set 'offset' and 'index' to real positions of partitions.
22150 (apple_partition_map_probe): Remove.
22151 (apple_partition_map_get_name): Likewise.
22152 * partmap/bsdlabel.c: New file.
22153 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22154 Set 'number'.
22155 Allocate 'data' so it can be correctly freed.
22156 Set 'index' to offset inside sector.
22157 (gpt_partition_map_probe): Remove.
22158 (gpt_partition_map_get_name): Likewise.
22159 * partmap/msdos.c (grub_partition_parse): Remove.
22160 (pc_partition_map_iterate): Don't force raw access.
22161 Set 'number'.
22162 Make 'ext_offset' a local variable.
22163 (pc_partition_map_probe): Remove.
22164 (pc_partition_map_get_name): Remove.
22165 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22166 Set 'number'.
22167 (sun_partition_map_probe): Remove.
22168 (sun_partition_map_get_name): Likewise.
22169 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22170 (grub_pcpart_type): Likewise.
22171 * util/hostdisk.c (open_device): Handle new numbering scheme.
22172 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22173 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22174 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22175 * util/grub-install.in: Insert all subpartition modules.
22176 * util/ieee1275/grub-install.in: Likewise.
22177
22178 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22179
22180 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22181 grammar.
22182
22183 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22184
22185 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22186
22187 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22188
22189 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22190 match where 'make install' puts them.
22191 * util/i386/efi/grub-install.in: Likewise.
22192
22193 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22194
22195 * .bzrignore: Add gentrigtables, grub-script-check,
22196 grub_script_check_init.c, grub_script_check_init.h, and
22197 trigtables.c.
22198
22199 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22200
22201 * kern/parser.c: Indented.
22202
22203 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22206
22207 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22208
22209 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22210 alpha_mask_size == 0 case.
22211
22212 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22213
22214 GRUB shell lexer and parser improvements.
22215
22216 * conf/any-emu.rmk: Build rule updates.
22217 * conf/common.rmk: Likewise.
22218 * conf/i386-coreboot.rmk: Likewise.
22219 * conf/i386-efi.rmk: Likewise.
22220 * conf/i386-ieee1275.rmk: Likewise.
22221 * conf/i386-pc.rmk: Likewise.
22222 * conf/powerpc-ieee1275.rmk: Likewise.
22223 * conf/x86_64-efi.rmk: Likewise.
22224
22225 * configure.ac: Configure check for flex.
22226
22227 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22228 types.
22229 (grub_lexer_param): Struct member updates.
22230 (grub_parser_param): Likewise.
22231 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22232 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22233 (grub_script_lexer_init): Prototype update.
22234 (grub_script_lexer_record_start): Likewise.
22235 (grub_script_lexer_record_stop): Likewise.
22236 (grub_script_lexer_yywrap): New function prototype.
22237 (grub_script_lexer_fini): Likewise.
22238 (grub_script_execute_argument_to_string): Removed by...
22239 (grub_script_execute_argument_to_argv): ...better version.
22240
22241 * script/execute.c (ROUND_UPTO): New macro.
22242 (grub_script_execute_cmdline): Out of memory fixes.
22243 (grub_script_execute_menuentry): Likewise.
22244 (grub_script_execute_argument_to_string): Removed. Update all
22245 users by...
22246 (grub_script_execute_argument_to_argv): ...better version.
22247 * script/function.c (grub_script_function_create): Use
22248 grub_script_execute_argument_to_argv instead of
22249 grub_script_execute_argument_to_string.
22250
22251 * script/lexer.c (check_varstate): Removed.
22252 (check_textstate): Removed.
22253 (grub_script_lexer_record_start): Likewise.
22254 (grub_script_lexer_record_stop): Likewise.
22255 (recordchar): Replaced with...
22256 (grub_script_lexer_record): ...new function.
22257 (nextchar): Removed.
22258 (grub_script_lexer_init): Rewritten.
22259 (grub_script_yylex): Rewritten.
22260 (append_newline): New function.
22261 (grub_script_lexer_yywrap): New function.
22262 (grub_script_lexer_fini): New function.
22263 (grub_script_yyerror): Sets error flag.
22264
22265 * script/yylex.l: New file.
22266 (grub_lexer_yyfree): Wrapper for flex yyffre.
22267 (grub_lexer_yyalloc): Likewise.
22268 (grub_lexer_yyrealloc): Likewise.
22269 * script/parser.y: Refactored.
22270
22271 * script/script.c (grub_script_arg_add): Out of memory fixes.
22272 (grub_script_add_arglist): Likewise.
22273 (grub_script_create_cmdline): Likewise.
22274 (grub_script_create_cmdmenu): Likewise.
22275 (grub_script_add_cmd): Likewise.
22276 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22277 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22278 unnecessary code.
22279
22280 * tests/grub_script_echo1.in: New testcase.
22281 * tests/grub_script_vars1.in: New testcase.
22282 * tests/grub_script_echo_keywords.in: New testcase.
22283
22284 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22285
22286 Remove some redundancy in build system.
22287
22288 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22289 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22290 (TARGET_LDFLAGS): Add -nostdlib.
22291 (TARGET_IMG_LDFLAGS): Likewise.
22292 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22293 anything since mmap isn't available.
22294 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22295 Add util/time.c.
22296 (pkglib_MODULES): Remove reboot.mod.
22297 (reboot_mod_SOURCES): Removed.
22298 (reboot_mod_CFLAGS): Likewise.
22299 (reboot_mod_LDFLAGS): Likewise.
22300 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22301 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22302 (DEFSYMFILES): Add kernel_syms.lst.
22303 (kernel_img_HEADERS): Add common headers.
22304 (symlist.c): New target.
22305 (kernel_syms.lst): Likewise.
22306 (pkglib_MODULES): Add memdisk.mod.
22307 (memdisk_mod_SOURCES): New variable.
22308 (memdisk_mod_CFLAGS): Likewise.
22309 (memdisk_mod_LDFLAGS): Likewise.
22310 (pkglib_MODULES): Add reboot.mod.
22311 (reboot_mod_SOURCES): New variable.
22312 (reboot_mod_CFLAGS): Likewise.
22313 (reboot_mod_LDFLAGS): Likewise.
22314 (pkglib_MODULES): Add date.mod.
22315 (date_mod_SOURCES): New variable.
22316 (date_mod_CFLAGS): Likewise.
22317 (date_mod_LDFLAGS): Likewise.
22318 (pkglib_MODULES): Add datehook.mod.
22319 (datehook_mod_SOURCES): New variable.
22320 (datehook_mod_CFLAGS): Likewise.
22321 (datehook_mod_LDFLAGS): Likewise.
22322 (pkglib_MODULES): Add lsmmap.mod.
22323 (lsmmap_mod_SOURCES): New variable.
22324 (lsmmap_mod_CFLAGS): Likewise.
22325 (lsmmap_mod_LDFLAGS): Likewise.
22326 (pkglib_MODULES): Add boot.mod.
22327 (boot_mod_SOURCES): New variable.
22328 (boot_mod_CFLAGS): Likewise.
22329 (boot_mod_LDFLAGS): Likewise.
22330 * conf/i386-coreboot.rmk: Removed redundant parts.
22331 * conf/i386-ieee1275.rmk: Likewise.
22332 * conf/i386-pc.rmk: Likewise.
22333 * conf/mips-yeeloong.rmk: Likewise.
22334 * conf/mips.rmk: Likewise.
22335 * conf/powerpc-ieee1275.rmk: Likewise.
22336 * conf/sparc64-ieee1275.rmk: Likewise.
22337 * conf/x86_64-efi.rmk: Likewise.
22338 * conf/i386-coreboot.rmk: Moved qemu parts ..
22339 * conf/i386-qemu.rmk: ... here
22340 * conf/i386-efi.rmk: Moved common parts to...
22341 * conf/x86-efi.rmk: ... here.
22342 * conf/i386.rmk: Added modules common to all x86 variants.
22343 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22344 * disk/memdisk.c: Remove grub/machine/kernel.h.
22345 * gensymlist.sh.in: Include symbol.h.
22346 * hook/datehook.c: Correct module name.
22347 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22348 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22349 * include/grub/i386/efi/serial.h: New file.
22350 * include/grub/x86_64/efi/serial.h: Likewise.
22351 * util/time.c: Likewise.
22352 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22353
22354 2010-03-14 Colin King <colin.king@ubuntu.com>
22355 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22356
22357 Shrink the pre-partition-table part of boot.img by eight bytes.
22358
22359 * boot/i386/pc/boot.S (ERR): New macro.
22360 (chs_mode): Use ERR.
22361 (geometry_error): Likewise.
22362 (hd_probe_error): Remove. This is only used once, so we wrwite
22363 it inline instead.
22364 (read_error): Instead of printing read_error_string, just set up
22365 %si and fall through to ...
22366 (error_message): ... this new function, also used by ERR.
22367
22368 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22369
22370 Speed up consecutive hostdisk operations on the same device.
22371
22372 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22373 (grub_util_biosdisk_open): Initialise disk->data.
22374 (struct linux_partition_cache): New structure.
22375 (linux_find_partition): Cache partition start positions; these are
22376 expensive to compute on every read and write.
22377 (open_device): Cache open file descriptor in disk->data, so that we
22378 don't have to reopen it and flush the buffer cache for consecutive
22379 operations on the same device.
22380 (grub_util_biosdisk_close): New function.
22381 (grub_util_biosdisk_dev): Set `close' member.
22382
22383 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22384 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22385 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22386 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22387 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22388
22389 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22390
22391 Compile parts of grub-emu as modules.
22392
22393 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22394 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22395 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22396 (all-local): Add $(GRUB_EMU).
22397 (install-local): Install $(GRUB_EMU).
22398 (uninstall): Uninstall $(GRUB_EMU).
22399 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22400 * kern/dl.c: Likewise.
22401 * commands/sleep.c: Not include machine/time.h.
22402 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22403 (COMMON_CFLAGS): Likewise.
22404 (sbin_UTILITIES): Remove grub-emu.
22405 (grub_emu_SOURCES): Removed.
22406 (kernel_img_RELOCATABLE): New variable.
22407 (pkglib_PROGRAMS): Add kernel.img.
22408 (kernel_img_SOURCES): New variable
22409 (kernel_img_CFLAGS): Likewise.
22410 (kernel_img_LDFLAGS): Likewise.
22411 (TARGET_NO_STRIP): Likewise.
22412 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22413 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22414 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22415 (grub-emu): New target.
22416 (GRUB_EMU): New variable.
22417 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22418 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22419 * loader/xnu.c: Likewise.
22420 * include/grub/pci.h: Likewise.
22421 * genemuinit.sh: New file.
22422 * genemuinitheader.sh: Likewise.
22423 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22424 Support TARGET_NO_DYNAMIC_MODULES.
22425 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22426 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22427 * disk/loopback.c: Likewise.
22428 * font/font_cmd.c: Likewise.
22429 * partmap/acorn.c: Likewise.
22430 * partmap/amiga.c: Likewise.
22431 * partmap/apple.c: Likewise.
22432 * partmap/gpt.c: Likewise.
22433 * partmap/msdos.c: Likewise.
22434 * partmap/sun.c: Likewise.
22435 * parttool/msdospart.c: Likewise.
22436 * term/gfxterm.c: Likewise.
22437 * video/bitmap.c: Likewise.
22438 * video/readers/jpeg.c: Likewise.
22439 * video/readers/png.c: Likewise.
22440 * video/readers/tga.c: Likewise.
22441 * video/video.c: Likewise.
22442 * util/grub-emu.c (read_command_list): Removed.
22443 (main): Don't call util_init_nls.
22444 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22445 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22446
22447 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22448
22449 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22450 date.mod, datehook.mod.
22451 (datetime_mod_SOURCES): New variable.
22452 (datetime_mod_CFLAGS): Likewise.
22453 (datetime_mod_LDFLAGS): Likewise.
22454 (date_mod_SOURCES): Likewise.
22455 (date_mod_CFLAGS): Likewise.
22456 (date_mod_LDFLAGS): Likewise.
22457 (datehook_mod_SOURCES): Likewise.
22458 (datehook_mod_CFLAGS): Likewise.
22459 (datehook_mod_LDFLAGS): Likewise.
22460 * conf/sparc64-ieee1275.rmk: Likewise.
22461 * lib/ieee1275/datetime.c: New file.
22462
22463 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22466 (ieee1275_fb_mod_SOURCES): New variable.
22467 (ieee1275_fb_mod_CFLAGS): Likewise.
22468 (ieee1275_fb_mod_LDFLAGS): Likewise.
22469 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22470 New proto.
22471 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22472 (HEAP_MAX_ADDR): Likewise.
22473 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22474 type.
22475 Correct stop condition.
22476 (grub_ieee1275_devices_iterate): New function.
22477 * video/ieee1275.c: New file.
22478
22479 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22480
22481 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22482
22483 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22484 as scratch.
22485 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22486 SCRATCH_PAD_DISKBOOT as scratch.
22487 (bootit): Pass Openfirmware pointer in %o4.
22488 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22489 of 0x200000.
22490 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22491 with util/grub-mkrawimage.c.
22492 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22493 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22494 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22495 (grub_aout_load) [GRUB_UTIL]: Likewise.
22496 * include/grub/kernel.h (grub_modules_get_end): New proto.
22497 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22498 (SCRATCH_PAD_BOOT): New definition.
22499 (SCRATCH_PAD_DISKBOOT): Likewise.
22500 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22501 * include/grub/sparc64/ieee1275/ieee1275.h
22502 (grub_ieee1275_original_stack): New variable
22503 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22504 New definition
22505 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22506 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22507 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22508 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22509 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22510 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22511 (grub_platform_image_format_t): New type.
22512 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22513 * kern/main.c (grub_modules_get_end)
22514 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22515 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22516 (codestart): Switch stacks.
22517 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22518 variable.
22519 (grub_heap_init): Use grub_modules_get_end.
22520 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22521 stack.
22522 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22523 (main): Likewise.
22524 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22525
22526 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22527
22528 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22529
22530 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22531
22532 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22533 bug #559005).
22534
22535 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22536
22537 * genmoddep.awk: Output all missing symbols and not only first.
22538
22539 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22540
22541 * NEWS: Put the date of 1.98 release.
22542
22543 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22544
22545 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22546 ft2build.h.
22547
22548 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22549
22550 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22551 completition in the middle of string.
22552
22553 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22554
22555 * util/grub-mkrescue.in: Use mktemp with explicit template.
22556
22557 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22558
22559 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22560
22561 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22562
22563 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22564 right pointer.
22565
22566 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22567
22568 Fix FreeBSD compilation.
22569
22570 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22571 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22572
22573 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22574
22575 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22576
22577 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22578
22579 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22580
22581 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22584
22585 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22586
22587 Support relative image path in theme file.
22588
22589 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22590 (image_set_property): Handle theme_dir and relative path.
22591
22592 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22593
22594 * configure.ac: Alias amd64 to x86_64.
22595
22596 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 * NEWS: mention multiboot on EFI.
22599
22600 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 * kern/main.c (grub_load_modules): Handle errors from init functions of
22603 embeded modules.
22604
22605 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 * normal/autofs.c (autoload_fs_module): Handle errors.
22608
22609 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22610
22611 Disable linux.mod on qemu-mips since it's not functional and leads
22612 to compilation failure.
22613
22614 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22615 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22616 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22617 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22618 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22619 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22620 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22621 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22622 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22623 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22624 Reported by: BVK Chaitanya
22625
22626 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22627
22628 * INSTALL: Add gettext as a dependency and add qemu to a new section
22629 "Prerequisites for make-check".
22630
22631 2010-03-04 Christian Franke <franke@computer.org>
22632
22633 * util/grub-pe2elf.c: Add missing include "progname.h".
22634
22635 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22636
22637 * normal/crypto.c (read_crypto_list): Fix a typo.
22638 Reported by: Seth Goldberg.
22639
22640 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22641
22642 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22643 Reported by: Seth Goldberg.
22644
22645 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22646
22647 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22648 ascii.bitmaps.
22649
22650 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22651
22652 * genmk.rb: Remove terminal*.lst in make clean.
22653 Reported by: Seth Goldberg.
22654
22655 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22656
22657 * util/i386/efi/grub-install.in: Copy gettext files.
22658
22659 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22660
22661 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22662
22663 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22664
22665 Wait for user entry basing on presence of output rather than on errors.
22666
22667 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22668 (grub_install_newline_hook): Likewise.
22669 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22670 * normal/menu.c (show_menu): Check line_counter to determine presence
22671 of output.
22672 * normal/term.c (grub_normal_line_counter): New variable.
22673 (grub_normal_get_line_counter): New function.
22674 (grub_install_newline_hook): Likewise.
22675
22676 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22677
22678 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22679
22680 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22681
22682 * configure.ac: Update version to 1.98.
22683
22684 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22685
22686 * util/grub.d/10_linux.in (linux_entry): Don't default to
22687 gfxpayload=keep if Linux doesn't support video handover.
22688
22689 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22690
22691 Don't compile video modules on yeeloong since video subsystem is part
22692 of kernel.
22693
22694 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22695 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22696 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22697 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22698 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22699 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22700 * include/grub/bitmap_scale.h: Likewise.
22701 * include/grub/bufio.h: Likewise.
22702 * include/grub/font.h: Likewise.
22703 * include/grub/gfxterm.h: Likewise.
22704 * include/grub/video.h: Likewise.
22705 * include/grub/vbe.h: Don't include video_fb.h.
22706 * video/i386/pc/vbe.c: Include video_fb.h.
22707 * commands/i386/pc/vbetest.c: Include video.h.
22708
22709 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22710
22711 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22712 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22713 default entry if GRUB_SAVEDEFAULT=true. This allows using
22714 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22715 saving a new default on every boot.
22716
22717 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22718
22719 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22720 * normal/term.c (read_terminal_list): Likewise.
22721 * normal/main.c (grub_normal_init_page): Likewise.
22722 (grub_normal_read_line_real): Likewise.
22723
22724 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22725
22726 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22727 memory leak.
22728 Reported by: Seth Goldberg.
22729
22730 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22731
22732 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22733 duplicate declaration of `start'.
22734
22735 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22736
22737 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22738 filename.
22739 Reported by: Georgy Buranov
22740
22741 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22742
22743 * util/grub-mkrawimage.c (usage): Change string formatting to
22744 improve gettext.
22745
22746 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22747
22748 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22749 backspace keys.
22750
22751 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22752
22753 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22754 Reported by: Michael Suchanek.
22755
22756 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22757
22758 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22759 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22760
22761 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22762
22763 Remove any reference to non-free fonts.
22764
22765 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22766 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22767 uses non-free components.
22768 * font/font.c (grub_font_get_name): Remove example name.
22769 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22770 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22771 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22772 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22773
22774 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22775
22776 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22777
22778 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22779
22780 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22781 Double divisor.
22782 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22783 features.
22784 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22785
22786 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22787
22788 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22789
22790 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22791
22792 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22793 * docs/grub.texi (Command-line and menu entry commands): Document play
22794 command.
22795
22796 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22797
22798 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22799 parse arguments as inline tempo and notes. Move code for playing notes
22800 to...
22801 (play): ... new function.
22802
22803 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22804
22805 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22806 grub_uint16_t instead of short.
22807 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22808 disk from little endian to cpu endianness.
22809
22810 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22811
22812 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22813 GRUB_TICKS_PER_SECOND instead of 120.
22814
22815 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22816
22817 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22818 escape sequence after \e.
22819
22820 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22823 non-ASCII characters.
22824
22825 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22828 set root in single quotes to prevent \, from being unescaped.
22829
22830 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22831
22832 Prevent unknown commands from stopping menuentry execution.
22833
22834 * script/execute.c (grub_script_execute_cmdline): Print error after
22835 unknown command.
22836
22837 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22838
22839 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22840 Reported by: Pavel Pisa.
22841
22842 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22843
22844 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22845
22846 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22847
22848 Merge grub_ieee1275_map_physical into grub_map and rename to
22849 grub_ieee1275_map
22850
22851 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22852 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22853 Remove.
22854 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22855 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22856 necessary.
22857 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22858
22859 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22860
22861 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22862 opening and not after.
22863
22864 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22865
22866 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22867 constants.
22868
22869 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22870
22871 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22872 (alloc_phys): Use ALIGN_UP instead of align_addr.
22873
22874 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22875
22876 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22877
22878 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22879
22880 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22881
22882 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22883
22884 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22885 verbose dprintf.
22886
22887 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22888
22889 Fix over-4GiB seek on sparc64.
22890
22891 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22892 Replace pos_i and pos_lo with pos. All users updated.
22893 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22894 New constant.
22895 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22896 Likewise.
22897 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22898 and pos_lo.
22899
22900 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22901
22902 * util/grub-mkrawimage.c (main): Call set_program_name.
22903
22904 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22905
22906 Properly align 64-bit targets.
22907
22908 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22909 (generate_image): Use ALIGN_ADDR.
22910
22911 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22912
22913 Properly create cross-endian images.
22914
22915 * include/grub/types.h (grub_host_to_target_addr): New macro
22916 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22917
22918 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22919
22920 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22921
22922 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22923
22924 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22925
22926 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22927 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22928 (grub_linux_boot): Divide by 64K when on VESA.
22929
22930 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22931
22932 Support GRUB_GFXPAYLOAD_LINUX.
22933
22934 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22935 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
22936
22937 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22938
22939 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
22940 to show messages instead of discarding them.
22941 Process errors after executing command and not before. Keep old method
22942 too as precaution.
22943
22944 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
22945
22946 * configure.ac: Check for ft2build.h.
22947
22948 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22949
22950 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
22951
22952 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22953
22954 * genkernsyms.sh.in: Use TARGET_CC.
22955
22956 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
22957
22958 * NEWS: Update.
22959
22960 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22961
22962 * include/grub/multiboot2.h: Remove leftover file.
22963 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
22964 * include/grub/partition.h [GRUB_UTIL]: Likewise.
22965
22966 2010-02-07 Yves Blusseau <blusseau@zetam.org>
22967
22968 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
22969
22970 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22971
22972 Fix warnings in grub-emu when compiling with maximum warning options.
22973
22974 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
22975 (grub_arch_modules_addr): Return 0 and not NULL.
22976 * util/misc.c (ENABLE_RELOCATABLE): New definition.
22977 (xstrdup): Use newstr instead of dup.
22978 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
22979 of disk to dsk to avoid shadowing.
22980 (find_free_slot): Fix prototype.
22981 * util/getroot.c (grub_util_is_dmraid): Make static.
22982 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
22983 Add missing prototype.
22984 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
22985
22986 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22987
22988 * loader/i386/linux.c (grub_linux_setup_video): Handle error
22989 appropriately.
22990
22991 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22992
22993 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
22994 code out.
22995
22996 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22997
22998 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
22999 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23000 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23001 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23002 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23003 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23004
23005 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23006
23007 * include/grub/err.h (grub_err_printf): Don't export.
23008
23009 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23010
23011 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23012
23013 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23014
23015 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23016 * kern/misc.c (grub_gettext_dummy): Make static.
23017
23018 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23019
23020 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23021 by non-valid ones.
23022 * kern/term.c (grub_putchar): Likewise.
23023
23024 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23025
23026 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23027 buggy hook call and memory leak.
23028
23029 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23030
23031 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23032
23033 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23034
23035 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23036
23037 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23038
23039 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23040 modevar.
23041 Return grub_errno on allocation error.
23042
23043 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23044
23045 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23046
23047 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23048
23049 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23050 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23051
23052 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23053
23054 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23055 non-pxe disk.
23056 (grub_pxefs_open): Likewise.
23057
23058 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23059
23060 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23061 * util/grub.d/10_kfreebsd.in: Likewise.
23062 * util/grub.d/10_linux.in: Likewise.
23063
23064 2010-02-06 Colin D Bennett <colin@gibibit.com>
23065
23066 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23067 (gfxmenu_mod_SOURCES): New variable.
23068 (gfxmenu_mod_CFLAGS): Likewise.
23069 (gfxmenu_mod_LDFLAGS): Likewise.
23070 * include/grub/term.h (grub_term_set_current_output): Declare
23071 argument as const.
23072 * docs/gfxmenu-theme-example.txt: New file.
23073 * gfxmenu/gfxmenu.c: Likewise.
23074 * gfxmenu/gui_box.c: Likewise.
23075 * gfxmenu/gui_canvas.c: Likewise.
23076 * gfxmenu/gui_circular_progress.c: Likewise.
23077 * gfxmenu/gui_image.c: Likewise.
23078 * gfxmenu/gui_label.c: Likewise.
23079 * gfxmenu/gui_list.c: Likewise.
23080 * gfxmenu/gui_progress_bar.c: Likewise.
23081 * gfxmenu/gui_string_util.c: Likewise.
23082 * gfxmenu/gui_util.c: Likewise.
23083 * gfxmenu/icon_manager.c: Likewise.
23084 * gfxmenu/model.c: Likewise.
23085 * gfxmenu/named_colors.c: Likewise.
23086 * gfxmenu/theme_loader.c: Likewise.
23087 * gfxmenu/view.c: Likewise.
23088 * gfxmenu/widget-box.c: Likewise.
23089 * include/grub/gfxmenu_model.h: Likewise.
23090 * include/grub/gfxmenu_view.h: Likewise.
23091 * include/grub/gfxwidgets.h: Likewise.
23092 * include/grub/gui.h: Likewise.
23093 * include/grub/gui_string_util.h: Likewise.
23094 * include/grub/icon_manager.h: Likewise.
23095
23096 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23097
23098 Agglomerate scrolling in gfxterm.
23099
23100 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23101 (grub_virtual_screen_setup): Initialise 'total_screen'.
23102 (write_char): Split to ...
23103 (paint_char): ... this ...
23104 (write_char): ... and this.
23105 (paint_char): Handle delayed scrolling.
23106 (draw_cursor): Likewise.
23107 (scroll_up): Split to ...
23108 (real_scroll): ... this ...
23109 (scroll_up): ... and this.
23110 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23111 characters.
23112 (grub_gfxterm_refresh): Call real_scroll.
23113
23114 2010-02-06 Colin D Bennett <colin@gibibit.com>
23115
23116 * include/grub/misc.h (grub_iscntrl): New inline function.
23117 (grub_isalnum): Likewise.
23118 (grub_strtol): Likewise.
23119
23120 2010-02-06 Colin D Bennett <colin@gibibit.com>
23121
23122 * normal/menu_text.c (get_entry_number): Move from here ...
23123 * normal/menu.c (get_entry_number): ... moved here.
23124 * include/grub/menu.h (grub_menu_get_default_entry_index):
23125 New prototype.
23126 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23127 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23128 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23129 (grub_menu_viewer_should_return): Likewise.
23130 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23131 * normal/menu_text.c (run_menu): Enable menu switching.
23132 * normal/menu_viewer.c (should_return): New variable.
23133 (menu_viewer_changed): Likewise.
23134 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23135 (grub_menu_viewer_should_return): New function.
23136 (menuviewer_write_hook): Likewise.
23137 (grub_menu_viewer_init): Likewise.
23138
23139 2010-02-06 Colin D Bennet <colin@gibibit.com>
23140 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23141
23142 Support for gfxterm in a window.
23143
23144 * include/grub/gfxterm.h: New file.
23145 * include/grub/video.h (struct grub_video_rect): New declaration.
23146 (grub_video_rect_t): Likewise.
23147 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23148 (refcount): New variable.
23149 (render_target): Likewise.
23150 (window): Likewise.
23151 (repaint_callback): Likewise.
23152 (grub_virtual_screen_setup): Use 'render_target'.
23153 (init_window): New function.
23154 (grub_gfxterm_init_window): Likewise.
23155 (grub_gfxterm_init): Check reference counter.
23156 Use init_window.
23157 (destroy_window): New function.
23158 (grub_gfxterm_destroy_window): Likewise.
23159 (grub_gfxterm_fini): Check reference counter.
23160 Use destroy_window.
23161 (redraw_screen_rect): Restore viewport.
23162 Use 'render_target' and 'window'.
23163 Call 'repaint_callback'.
23164 (write_char): Use 'render_target'.
23165 (draw_cursor): Likewise.
23166 (scroll_up): Restore viewport.
23167 Use 'render_target' and 'window'.
23168 Call 'repaint_callback'.
23169 (grub_gfxterm_cls): Likewise.
23170 (grub_gfxterm_refresh): Use 'window'.
23171 (grub_gfxterm_set_repaint_callback): New function.
23172 (grub_gfxterm_background_image_cmd): Use 'window'.
23173 (grub_gfxterm_get_term): New function.
23174 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23175
23176 2010-02-06 Colin D Bennett <colin@gibibit.com>
23177
23178 Bitmap scaling support.
23179
23180 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23181 (bitmap_scale_mod_SOURCES): New variable.
23182 (bitmap_scale_mod_CFLAGS): Likewise.
23183 (bitmap_scale_mod_LDFLAGS): Likewise.
23184 * include/grub/bitmap_scale.h: New file.
23185 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23186 (background_image_cmd_options): New variable.
23187 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23188 (cmd): Rename and change type to ...
23189 (background_image_cmd_handle): ... this. All users updated.
23190 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23191 * video/bitmap_scale.c: New file.
23192
23193 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23194
23195 SDL support.
23196
23197 * Makefile.in (LIBSDL): New variable.
23198 (enable_grub_emu_sdl): Likewise.
23199 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23200 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23201 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23202 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23203 * util/sdl.c: New file.
23204
23205 2010-02-06 Colin D Bennett <colin@gibibit.com>
23206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23207
23208 Double buffering support.
23209
23210 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23211 * include/grub/video.h: Update comment.
23212 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23213 New type.
23214 (grub_video_fb_doublebuf_blit_init): New prototype.
23215 * term/gfxterm.c (scroll_up): Support double buffering.
23216 (grub_gfxterm_refresh): Likewise.
23217 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23218 (grub_video_fb_doublebuf_blit_init): Likewise.
23219 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23220 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23221 'displayed_page', 'render_page' and 'update_screen'.
23222 (grub_video_vbe_fini): Free offscreen buffer.
23223 (doublebuf_pageflipping_commit): New function.
23224 (doublebuf_pageflipping_update_screen): Likewise.
23225 (doublebuf_pageflipping_init): Likewise.
23226 (double_buffering_init): Likewise.
23227 (grub_video_vbe_setup): Enable doublebuffering.
23228 (grub_video_vbe_swap_buffers): Implement.
23229 (grub_video_vbe_set_active_render_target): Handle double buffering.
23230 (grub_video_vbe_get_active_render_target): Likewise.
23231 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23232 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23233 (grub_video_vbe_enable_double_buffering): Likewise.
23234 (grub_video_vbe_swap_buffers): Use update_screen.
23235 (grub_video_set_mode): Use double buffering.
23236
23237 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23238
23239 * maintainance/gentrigtables.py: Remove.
23240 * lib/trig.c: Likewise.
23241
23242 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23243
23244 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23245 `trigtables.c'.
23246 (trigtables.c): New rule.
23247 (gentrigtables): Likewise.
23248 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23249
23250 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23251
23252 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23253 integer constants.
23254
23255 2010-02-06 Colin D Bennet <colin@gibibit.com>
23256
23257 Trigonometry support.
23258
23259 * include/grub/trig.h: New file.
23260 * lib/trig.c: Likewise.
23261 * maintainance/gentrigtables.py: Likewise.
23262 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23263 (trig_mod_SOURCES): New variable.
23264 (trig_mod_CFLAGS): Likewise.
23265 (trig_mod_LDFLAGS): Likewise.
23266
23267 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23268
23269 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23270 disk devices.
23271
23272 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23273
23274 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23275 error.
23276
23277 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23278
23279 * util/hostdisk.c (open_device): Don't use partition device when reading
23280 before the partition.
23281 (grub_util_biosdisk_read): Don't read from partition and before the
23282 partition in single operation.
23283 (grub_util_biosdisk_write): Don't write to partition and before the
23284 partition in single operation.
23285
23286 2010-02-03 Torsten Landschoff <torsten@debian.org>
23287
23288 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23289 last sectors.
23290
23291 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23292
23293 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23294 CDROM reads.
23295 (grub_biosdisk_write): Refuse to write to CDROM.
23296
23297 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23298
23299 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23300
23301 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23302
23303 * font/font.c (find_glyph): Check that bmp_idx is available before
23304 using it.
23305 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23306 with (font == NULL).
23307
23308 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23309
23310 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23311
23312 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23313
23314 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23315 * util/grub-script-check.c (getline): Fix empty lines case.
23316
23317 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23318
23319 * Makefile.in (check): Exit with fail status when one of the tests
23320 fails.
23321 * tests/example_functional_test.c (example_test): Fix reversed assert.
23322 * tests/example_unit_test.c (example_test): Likewise.
23323
23324 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23325
23326 * util/grub.d/10_linux.in: This script does not use any of the
23327 contents of gettext.sh, only the external command `gettext', so stop
23328 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23329 the same prefix as GRUB.)
23330 * util/grub.d/10_kfreebsd.in: Likewise.
23331
23332 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23333
23334 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23335 of the line.
23336
23337 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23338
23339 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23340 last sectors.
23341
23342 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23343
23344 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23345 having a 4KiB and not 32KiB buffer size.
23346
23347 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23348
23349 * util/hostfs.c: Include `<errno.h>'.
23350 (grub_hostfs_read): Handle errors from fseeko() and fread().
23351
23352 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23353
23354 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23355 loop when using read hooks on files whose size isn't sector-aligned.
23356
23357 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23358
23359 Remove unused parameter.
23360
23361 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23362 (grub_iso9660_open): Remove initialization of `data->length'.
23363
23364 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23365
23366 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23367 memleak conditions.
23368
23369 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23370
23371 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23372 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23373
23374 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23375
23376 * util/bin2h.c (usage): Fix warning (space after backslash).
23377
23378 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23379
23380 * font/font.c: Include `grub/fontformat.h.
23381 Remove font file format constants.
23382 (grub_font_load): Use the new macros.
23383 * include/grub/fontformat.h: New file.
23384 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23385 (write_font_pf2): Use the new macros.
23386
23387 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23388
23389 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23390 does.
23391
23392 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23393
23394 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23395
23396 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23397 (_start): Macroify `0x7F'.
23398
23399 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23400 (make_install_device): Use "(pxe)" as fallback prefix when booting
23401 via PXE.
23402
23403 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23404
23405 * configure.ac: Reset LIBS after check for libgcc symbols.
23406
23407 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23408
23409 * util/hostdisk.c (open_device): Add trailing newline to debug
23410 message.
23411
23412 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23413
23414 * configure.ac: Check for `limits.h'.
23415 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23416
23417 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23418
23419 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23420 capitalize error strings.
23421
23422 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23423
23424 * util/grub.d/10_hurd.in: Add a recovery mode.
23425
23426 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23427
23428 * configure.ac: Check for libgcc symbols with -nostdlib.
23429
23430 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23431
23432 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23433
23434 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23435
23436 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23437 stack since heap may be unavailable at that point.
23438 (grub_ofconsole_gotoxy): Likewise.
23439
23440 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23441
23442 * configure.ac: Check for _restgpr_14_x.
23443 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23444 and _savegpr_* prototypes.
23445
23446 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23447
23448 Use generic grub_reboot() for i386-efi.
23449
23450 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23451 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23452 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23453
23454 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23455
23456 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23457 presence of "prefix" variable as it breaks when normal.mod is
23458 embedded.
23459
23460 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23461
23462 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23463 stack since heap is unavailable at that point.
23464
23465 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23466
23467 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23468 (grub_freebsd_bootinfo): Rewritten.
23469 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23470
23471 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23472
23473 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23474
23475 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23476
23477 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23478 domain now.
23479
23480 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23481
23482 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23483 around for handling "/" to the correct fix. Fix a memory leak. Use
23484 xstrdup instead of strdup.
23485
23486 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23487
23488 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23489
23490 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23491
23492 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23493
23494 * font/font.c (struct grub_font): New member 'bmp_idx'.
23495 (font_init): Initialise 'bmp_idx'.
23496 (load_font_index): Fill 'bmp_idx'.
23497 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23498
23499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23500
23501 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23502 unnecessary calls.
23503
23504 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23505
23506 Move context handling out of the kernel.
23507
23508 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23509 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23510 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23511 * conf/i386-efi.rmk: Likewise.
23512 * conf/i386-ieee1275.rmk: Likewise.
23513 * conf/i386-pc.rmk: Likewise.
23514 * conf/powerpc-ieee1275.rmk: Likewise.
23515 * conf/sparc64-ieee1275.rmk: Likewise.
23516 * conf/x86_64-efi.rmk: Likewise.
23517 * include/grub/env.h: Include grub/menu.h.
23518 (grub_env_var_type): Removed.
23519 (grub_env_var): Replaced field 'type' with 'global'.
23520 (grub_env_find): New prototype.
23521 (grub_env_context_open): Remove EXPORT_FUNC.
23522 (grub_env_context_close): Likewise.
23523 (grub_env_export): Likewise.
23524 (grub_env_set_data_slot): Removed.
23525 (grub_env_get_data_slot): Likewise.
23526 (grub_env_unset_data_slot): Likewise.
23527 (grub_env_unset_menu): New prototype.
23528 (grub_env_set_menu): Likewise.
23529 (grub_env_get_menu): Likewise.
23530 * include/grub/env_private.h: New file.
23531 * include/grub/normal.h (grub_context_init): New prototype.
23532 (grub_context_fini): Likewise.
23533 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23534 * normal/context.c (grub_cmd_export): ... to here.
23535 * kern/env.c: Include env_private.h.
23536 (HASHSZ): Moved to include/grub/env_private.h.
23537 (grub_env_context): Likewise.
23538 (grub_env_sorted_var): Likewise.
23539 (current_context): Renamed from this ...
23540 (grub_current_context): ...to this. 'static' removed. All users updated.
23541 (grub_env_find): Removed 'static'.
23542 (grub_env_context_open): Moved to normal/context.c.
23543 (grub_env_context_close): Likewise.
23544 (grub_env_export): Likewise.
23545 (mangle_data_slot_name): Removed.
23546 (grub_env_set_data_slot): Likewise.
23547 (grub_env_get_data_slot): Likewise.
23548 (grub_env_unset_data_slot): Likewise.
23549 * kern/main.c (grub_set_root_dev): Don't export root.
23550 It will be done later.
23551 (grub_main): Don't export prefix.
23552 It will be done later.
23553 * normal/context.c: New file.
23554 * normal/main.c (free_menu): Use grub_env_unset_menu.
23555 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23556 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23557 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23558 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23559
23560 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23561
23562 setpci support.
23563
23564 * commands/setpci.c: New file.
23565 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23566 (setpci_mod_SOURCES): New variable.
23567 (setpci_mod_CFLAGS): Likewise.
23568 (setpci_mod_LDFLAGS): Likewise.
23569
23570 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23571
23572 Byte-addressable PCI configuration space.
23573
23574 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23575 dword address.
23576 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23577 GRUB_PCI_REG_CACHELINE.
23578 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23579 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23580 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23581 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23582 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23583 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23584 grub_pci_make_address.
23585 (lock_rom_area): Likewise.
23586 * commands/lspci.c (grub_lspci_iter): Use macroses
23587 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23588 of grub_pci_make_address.
23589 * disk/ata.c (grub_ata_pciinit): Likewise.
23590 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23591 (GRUB_PCI_REG_VENDOR): Likewise.
23592 (GRUB_PCI_REG_DEVICE): Likewise.
23593 (GRUB_PCI_REG_COMMAND): Likewise.
23594 (GRUB_PCI_REG_STATUS): Likewise.
23595 (GRUB_PCI_REG_REVISION): Likewise.
23596 (GRUB_PCI_REG_CLASS): Likewise.
23597 (GRUB_PCI_REG_CACHELINE): Likewise.
23598 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23599 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23600 (GRUB_PCI_REG_BIST): Likewise.
23601 (GRUB_PCI_REG_ADDRESSES): Likewise.
23602 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23603 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23604 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23605 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23606 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23607 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23608 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23609 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23610 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23611 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23612 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23613 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23614 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23615 (GRUB_PCI_REG_MIN_GNT): Likewise.
23616 (GRUB_PCI_REG_MAX_LAT): Likewise.
23617 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23618 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23619 * video/efi_uga.c (find_framebuf): Likewise.
23620 * video/sm712.c (grub_video_sm712_setup): Likewise.
23621 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23622 space.
23623
23624 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23625
23626 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23627 can be reliably determined to be supported.
23628
23629 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23630
23631 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23632 that VESA is supported.
23633 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23634 supported.
23635
23636 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23637
23638 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23639
23640 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23641
23642 * util/misc.c (make_system_path_relative_to_its_root): Work around
23643 special-casing of "/", as previous incarnation of this routine did.
23644
23645 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23646
23647 Fix any-emu compilation.
23648
23649 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23650 * grub_bin2h_SOURCES: New variable.
23651
23652 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23653
23654 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23655
23656 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23657
23658 * util/grub.d/00_header.in: Fix handling of locale_dir.
23659
23660 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23661
23662 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23663 as possible unifont location (Gentoo).
23664 Reported by: Alexander Brüning
23665
23666 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23667
23668 Don't try to generate lists for kernel.img.
23669
23670 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23671 (pkglib_MODULES): Remove kernel.img.
23672 (kernel_img_EXPORTS): Removed.
23673 (kernel_img_RELOCATABLE): New variable.
23674 * conf/x86_64-efi.rmk: Likewise.
23675 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23676
23677 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23678
23679 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23680 grub_xasprintf or grub_snprintf.
23681 (grub_vsprintf): Likewise.
23682 (grub_snprintf): New proto.
23683 (grub_vsnprintf): Likewise.
23684 (grub_xasprintf): Likewise.
23685 (grub_xvasprintf): Likewise.
23686 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23687 (grub_sprintf): Removed.
23688 (grub_vsnprintf): New function.
23689 (grub_snprintf): Likewise.
23690 (grub_xvasprintf): Likewise.
23691 (grub_xasprintf): Likewise.
23692 (grub_vsprintf): Renamed to ...
23693 (grub_vsnprintf_real): ...this. New argument max_len.
23694
23695 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23696
23697 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23698 fix grub-script-check warning.
23699
23700 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23701
23702 * include/grub/font.h (grub_font_load): Fix prototype.
23703
23704 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23705
23706 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23707
23708 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23709
23710 * include/grub/x86_64/at_keyboard.h: New file.
23711
23712 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23713
23714 * loader/mips/linux.c: Include missing grub/i18n.h.
23715
23716 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23717
23718 * normal/menu.c (notify_execution_failure): Clarify error message.
23719
23720 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23721
23722 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23723 return value (and revert all return statements). Update users.
23724
23725 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23726
23727 * kern/device.c (grub_device_iterate): Allocate new part_ent
23728 structure based on sizeof (*p) rather than sizeof (p->next), to
23729 account for structure padding.
23730
23731 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23732 disk is NULL, which might happen for LVM physical volumes with no
23733 LVM signature.
23734
23735 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23736
23737 * loader/mips/linux.c (grub_cmd_initrd)
23738 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23739
23740 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23741
23742 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23743 (grub_video_video_init, grub_video_bitmap_init)
23744 (grub_font_manager_init, grub_term_gfxterm_init)
23745 (grub_at_keyboard_init): New extern declarations.
23746 (grub_machine_init): Initialize gfxterm and at_keyboard.
23747
23748 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23749
23750 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23751 `gfxterm.mod' into core image.
23752
23753 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23754 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23755 (kernel_img_FORMAT): Copy to ...
23756
23757 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23758 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23759 (kernel_img_FORMAT): ... here, and ...
23760
23761 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23762 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23763 (kernel_img_FORMAT): ... here.
23764
23765 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23766 and input (at_keyboard) terminals in kernel.
23767 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23768
23769 (pkglib_MODULES): Remove `pci.mod'.
23770 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23771 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23772 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23773 (at_keyboard_mod_LDFLAGS): Remove variables.
23774
23775 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23776
23777 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23778
23779 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23780
23781 * include/grub/mips/libgcc.h: Only export symbols for functions
23782 that libgcc provides.
23783
23784 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23785
23786 MIPS support.
23787
23788 * bus/bonito.c: New file.
23789 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23790 GRUB_PCI_NUM_DEVICES.
23791 * term/i386/pc/serial.c: Move to ...
23792 * term/serial.c: ... here. All users updated.
23793 * util/i386/pc/grub-mkimage.c: Move to ...
23794 * util/grub-mkrawimage.c: ... here. All users updated.
23795 * term/i386/pc/at_keyboard.c: Move to ...
23796 * term/at_keyboard.c: ... here. All users updated.
23797 * conf/mips-qemu-mips.rmk: New file.
23798 * conf/mips-yeeloong.rmk: Likewise.
23799 * conf/mips.rmk: Likewise.
23800 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23801 mipsel-qemu-mips.
23802 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23803 to port addresses.
23804 (grub_ata_pciinit): Support CS5536.
23805 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23806 * font/font_cmd.c (loadfont_command): Open file before passing it to
23807 grub_font_load.
23808 (pseudo_file_read): New function.
23809 (pseudo_file_close): Likewise.
23810 (pseudo_fs): New structure.
23811 (load_font_module): New function.
23812 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23813 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23814 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23815 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23816 * include/grub/i386/at_keyboard.h: Split into ...
23817 * include/grub/at_keyboard.h: ... this ...
23818 * include/grub/i386/at_keyboard.h: ... and this.
23819 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23820 New prototype.
23821 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23822 updated.
23823 (grub_elf64_size): Likewise.
23824 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23825 filename.
23826 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23827 * include/grub/i386/coreboot/serial.h: Rewritten.
23828 * include/grub/i386/ieee1275/serial.h: Include
23829 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23830 * include/grub/i386/pc/serial.h: Moved from here ...
23831 * include/grub/serial.h: ... to here. All users updated.
23832 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23833 (GRUB_PCI_NUM_BUS): Likewise.
23834 (GRUB_PCI_NUM_DEVICES): Likewise.
23835 (grub_pci_device_map_range): Add missing volatile keyword.
23836 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23837 * include/grub/mips/at_keyboard.h: New file.
23838 * include/grub/mips/cache.h: Likewise.
23839 * include/grub/mips/io.h: Likewise.
23840 * include/grub/mips/kernel.h: Likewise.
23841 * include/grub/mips/libgcc.h: Likewise.
23842 * include/grub/mips/pci.h: Likewise.
23843 * include/grub/mips/qemu-mips/boot.h: Likewise.
23844 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23845 * include/grub/mips/qemu-mips/loader.h: Likewise.
23846 * include/grub/mips/qemu-mips/memory.h: Likewise.
23847 * include/grub/mips/qemu-mips/serial.h: Likewise.
23848 * include/grub/mips/qemu-mips/time.h: Likewise.
23849 * include/grub/mips/relocator.h: Likewise.
23850 * include/grub/mips/time.h: Likewise.
23851 * include/grub/mips/types.h: Likewise.
23852 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23853 * include/grub/mips/yeeloong/boot.h: Likewise.
23854 * include/grub/mips/yeeloong/kernel.h: Likewise.
23855 * include/grub/mips/yeeloong/loader.h: Likewise.
23856 * include/grub/mips/yeeloong/memory.h: Likewise.
23857 * include/grub/mips/yeeloong/pci.h: Likewise.
23858 * include/grub/mips/yeeloong/serial.h: Likewise.
23859 * include/grub/mips/yeeloong/time.h: Likewise.
23860 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23861 * kern/elf.c (grub_elf32_size): New parameter. All users
23862 updated.
23863 (grub_elf64_size): Likewise.
23864 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23865 Load modules before saying "Welcome to GRUB!".
23866 Call grub_refresh after saying "Welcome to GRUB!".
23867 * kern/mips/cache.S: New file.
23868 * kern/mips/cache_flush.S: Likewise.
23869 * kern/mips/dl.c: Likewise.
23870 * kern/mips/init.c: Likewise.
23871 * kern/mips/qemu-mips/init.c: Likewise.
23872 * kern/mips/startup.S: Likewise.
23873 * kern/mips/yeeloong/init.c: Likewise.
23874 * kern/term.c (grub_putcode): Handle NULL terminal.
23875 (grub_getcharwidth): Likewise.
23876 (grub_getkey): Likewise.
23877 (grub_checkkey): Likewise.
23878 (grub_getkeystatus): Likewise.
23879 (grub_getxy): Likewise.
23880 (grub_getwh): Likewise.
23881 (grub_gotoxy): Likewise.
23882 (grub_cls): Likewise.
23883 (grub_setcolorstate): Likewise.
23884 (grub_setcolor): Likewise.
23885 (grub_getcolor): Likewise.
23886 (grub_refresh): Likewise.
23887 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23888 (write_jump): Add hatch nop.
23889 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23890 * lib/mips/setjmp.S: New file.
23891 * loader/mips/linux.c: Likewise.
23892 * term/i386/pc/at_keyboard.c: Move from here ...
23893 * term/at_keyboard.c: ... to here.
23894 * term/i386/pc/serial.c: Moved from here ...
23895 * term/serial.c: ... to here. All users updated.
23896 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23897 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23898 (serial_translate_key_sequence): Avoid deadlock.
23899 (grub_serial_getkey): Handle backspace.
23900 (grub_serial_putchar): Fix newline handling.
23901 * util/i386/pc/grub-mkimage.c: Move from here ...
23902 * util/grub-mkrawimage.c: ... to here. All users updated.
23903 (generate_image): New parameters 'font_path' and 'format'.
23904 Support embedding font.
23905 Use grub_host_to_target* instead of grub_cpu_to_le*.
23906 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23907 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23908 (options): New option "--font".
23909 (usage): Likewise.
23910 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23911 (main): Handle "--font".
23912 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23913 (grub_virtual_screen_setup): Set bg_color_display.
23914 (redraw_screen_rect): Use bg_color_display instead of incorrect
23915 bg_color.
23916 (grub_gfxterm_cls): Likewise.
23917 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23918 Support embedding config file.
23919 (add_segments): Likewise.
23920 (options): New option "--config".
23921 (main): Handle "--config".
23922 * video/sm712.c: New file.
23923
23924 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23925
23926 Fix parallel builds.
23927
23928 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23929 font.c depend on ascii.h).
23930
23931 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23932
23933 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23934
23935 2010-01-11 Carles Pina i Estany <carles@pina.cat>
23936
23937 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
23938 By default: disabled.
23939 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
23940 parameter.
23941
23942 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23943
23944 * font/font.c: Update copyright years.
23945 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
23946
23947 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23948
23949 * font/font.c: Include `ascii.h'.
23950 (ASCII_BITMAP_SIZE): New macro.
23951 (ascii_font_glyph): Define.
23952 (ascii_glyph_lookup): New function.
23953 (grub_font_get_string_width): Change comment. If glyph not found, use
23954 ascii_glyph_lookup.
23955 (grub_font_get_glyph_with_fallback): If glyph not available returns
23956 ascii_glyph_lookup.
23957 * util/grub-mkfont.c (file_formats): New enum.
23958 (options): Add `ascii-bitmaps' new option.
23959 (usage): Add `asii-bitmaps' new option.
23960 (write_font_ascii_bitmap): New function.
23961 (write_font): Rename to ...
23962 (write_font_p2): ... this. Remove print_glyphs call.
23963 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
23964 used. Call print_glyphs.
23965 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
23966
23967 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23968
23969 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
23970 (grub_bin2h_SOURCES): New variable.
23971 * util/bin2h.c: New file.
23972
23973 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23974
23975 * include/multiboot.h: Resynced with spec.
23976 * include/multiboot2.h: Likewise.
23977 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
23978 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
23979
23980 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23981
23982 * include/grub/term.h (grub_term_register_input,
23983 grub_term_register_output): Check return of terminal init()
23984 routines, and abort if errors are raised.
23985
23986 * commands/terminal.c: Update copyright year.
23987
23988 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23989
23990 * commands/terminal.c (grub_cmd_terminal_input)
23991 (grub_cmd_terminal_output): Check return of terminal init()
23992 routines, and abort if errors are raised.
23993
23994 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23995
23996 * include/grub/i386/bsd.h: Fix include pathes.
23997
23998 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23999
24000 Add missing *BSD copyright headers.
24001
24002 * include/grub/aout.h: Add BSD licence.
24003 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24004 * include/grub/i386/freebsd_linker.h: ... here,
24005 * include/grub/i386/freebsd_reboot.h: ... here,
24006 * include/grub/i386/netbsd_bootinfo.h: ... here,
24007 * include/grub/i386/netbsd_reboot.h: ... here,
24008 * include/grub/i386/openbsd_bootarg.h: ... here,
24009 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24010 licence to each file.
24011
24012 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24013
24014 * acinclude.m4: Remove `nop' assembly instruction; it's not
24015 implemented by all architectures.
24016
24017 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24018
24019 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24020 ELILO. This is no longer necessary.
24021
24022 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24023
24024 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24025
24026 * util/grub-script-check.c: grub-script-check tool.
24027 * conf/common.rmk: Make rules for grub-script-check.
24028
24029 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24030
24031 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24032 spotting it back in 2008. Shame on me for forgetting he did.
24033
24034 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24035
24036 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24037
24038 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24039 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24040 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24041 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24042 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24043 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24044
24045 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24046
24047 * include/grub/test.h: Add license header.
24048 * tests/example_functional_test.c: Likewise.
24049 * tests/example_unit_test.c: Likewise.
24050 * tests/lib/functional_test.c: Likewise.
24051 * tests/lib/test.c: Likewise.
24052 * tests/lib/unit_test.c: Likewise.
24053
24054 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24055
24056 Use flag-based instead of hook-based video mode selection and "auto"
24057 keyword.
24058
24059 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24060 (grub_video_set_mode): Changed prototype. All users updated.
24061 (grub_video_check_mode_flag): New inline function.
24062 * video/video.c (parse_modespec): New function.
24063 (grub_video_set_mode): Parse flags and keywords.
24064
24065 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24066
24067 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24068 fprintf call.
24069
24070 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24071
24072 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24073
24074 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24075
24076 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24077 string.
24078 * util/grub-emu.c (usage): Likewise.
24079 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24080 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24081 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24082 * util/i386/pc/grub-setup.c (usage): Likewise.
24083
24084 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24085
24086 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24087 the message.
24088 (grub_util_info): Likewise.
24089 (grub_util_error): Likewise.
24090 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24091 and/or new lines in `grub_util_warna', `grub_util_info',
24092 `grub_util_error' calls.
24093 * util/getroot.c: Likewise.
24094 * util/grub-editenv.c: Likewise.
24095 * util/grub-emu.c: Likewise.
24096 * util/grub-fstest.c: Likewise.
24097 * util/grub-mkdevicemap.c: Likewise.
24098 * util/grub-mkfont.c: Likewise.
24099 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24100 * util/grub-mkrelpath.c: Likewise.
24101 * util/grub-pe2elf.c: Likewise.
24102 * util/grub-probe.c: Likewise.
24103 * util/hostdisk.c: Likewise.
24104 * util/i386/efi/grub-mkimage.c: Likewise.
24105 * util/i386/pc/grub-mkimage.c: Likewise.
24106 * util/i386/pc/grub-setup.c: Likewise.
24107 * util/ieee1275/ofpath.c: Likewise.
24108 * util/mkisofs/eltorito.c: Likewise.
24109 * util/mkisofs/rock.c: Likewise.
24110 * util/mkisofs/write.c: Likewise.
24111 * util/raid.c: Likewise.
24112 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24113 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24114
24115 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24116
24117 Enable multiboot on non-pc.
24118
24119 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24120 multiboot.mod and multiboot2.mod to ...
24121 * conf/i386.rmk (pkglib_MODULES): ... here.
24122 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24123 Moved to ...
24124 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24125 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24126 Moved to ...
24127 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24128 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24129 Moved to ...
24130 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24131 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24132 Moved to ...
24133 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24134 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24135 relocator.mod.
24136 (ata_mod_SOURCES): Removed.
24137 (ata_mod_CFLAGS): Likewise.
24138 (ata_mod_LDFLAGS): Likewise.
24139 (relocator_mod_SOURCES): Removed.
24140 (relocator_mod_CFLAGS): Likewise.
24141 (relocator_mod_ASFLAGS): Likewise.
24142 (relocator_mod_LDFLAGS): Likewise.
24143 Include i386.mk.
24144 * include/grub/x86_64/multiboot.h: New file.
24145 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24146 Terminate EFI.
24147
24148 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24149
24150 Video multiboot support.
24151
24152 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24153 New prototype.
24154 * include/multiboot.h: Resynced with multiboot specification.
24155 * include/multiboot2.h: Likewise.
24156 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24157 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24158 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24159 (HAS_VGA_TEXT): Likewise.
24160 (accepts_video): New variable.
24161 (grub_multiboot_set_accepts_video): New function.
24162 (grub_multiboot_get_mbi_size): Account for video structures.
24163 (set_video_mode): New function.
24164 (retrieve_video_parameters): Likewise.
24165 (grub_multiboot_make_mbi): Fill video fields.
24166
24167 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24168
24169 Video driver ids.
24170
24171 * include/grub/video.h (grub_video_driver_id): New type.
24172 (grub_video_adapter): New member 'id'. All users updated.
24173 (grub_video_get_driver_id): New proto.
24174 * video/video.c (grub_video_get_driver_id): New function.
24175
24176 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24177
24178 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24179 `var=val'.
24180
24181 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24182
24183 * normal/cmdline.c (print_completion): Gettextizze.
24184
24185 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24186
24187 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24188
24189 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24190
24191 * gettext/gettext.c (grub_gettext_translate): Push and pop
24192 grub_errno.
24193 (grub_gettext_delete_list): Change comment style.
24194 * kern/err.c (grub_error): Gettextizze.
24195 (grub_fatal): Gettextizze.
24196
24197 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24198
24199 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24200 (grub_linux16_real_boot): ... this.
24201 * kern/i386/loader.S: Likewise.
24202 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24203 (grub_linux16_boot): New function. Switches to text mode and calls
24204 grub_linux16_real_boot().
24205
24206 * loader/i386/bsd.c: Include `<grub/video.h>'.
24207 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24208 text mode before calling grub_unix_real_boot().
24209
24210 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24211 (grub_multiboot_boot): Switch to text mode before calling
24212 grub_relocator32_boot().
24213
24214 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24215 (grub_chainloader_boot): Switch to text mode before calling
24216 grub_chainloader_real_boot().
24217
24218 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24219 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24220
24221 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24222 non-empty value.
24223
24224 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24225 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24226
24227 * util/grub.d/00_header.in: Define a "savedefault" function for use
24228 in menu entries.
24229 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24230
24231 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24232 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24233
24234 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24235 saved_entry if boot_once is unset.
24236 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24237 previous saved entry (i.e. grub-reboot).
24238
24239 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24240
24241 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24242
24243 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24244
24245 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24246 `var=val'.
24247 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24248
24249 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24250
24251 * util/grub-reboot.in: Fix --version output.
24252 * util/grub-set-default.in: Likewise.
24253
24254 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24255
24256 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24257 blocks.
24258
24259 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24260
24261 * util/grub.d/00_header.in: Quote the value assigned to `default',
24262 in case it contains spaces.
24263
24264 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24265
24266 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24267 `save_default_entry' call from the macosx case to the linux case.
24268
24269 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24270 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24271
24272 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24273 in `chosen' environment variable.
24274 * normal/menu_text.c (get_entry_number): Check if the variable
24275 matches the title of a menu entry.
24276 (run_menu): Pass menu to get_entry_number.
24277
24278 * util/grub-reboot.in: New file.
24279 * util/grub-set-default.in: New file.
24280 * conf/common.rmk (grub-reboot): New utility.
24281 (grub-set-default): New utility.
24282
24283 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24284 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24285 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24286 move it to `saved_entry' for the next boot. Load environment on
24287 initialisation.
24288 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24289 * util/grub.d/10_hurd.in: Likewise.
24290 * util/grub.d/10_linux.in (linux_entry): Likewise.
24291 * util/grub.d/10_windows.in: Likewise.
24292 * util/grub.d/30_os-prober.in: Likewise.
24293
24294 * util/grub-install.in: Create environment block.
24295 * util/i386/efi/grub-install.in: Likewise.
24296 * util/ieee1275/grub-install.in: Likewise.
24297 * util/sparc64/ieee1275/grub-install.in: Likewise.
24298
24299 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24300
24301 Unit testing framework for GRUB.
24302
24303 * Makefile.in: Test framework build rules for 'make check'.
24304 * conf/tests.rmk: Build rules for individual tests and framework.
24305
24306 * include/grub/test.h: Header file for whitebox tests.
24307 * tests/lib/functional_test.c: Framework support for whitebox
24308 functional tests.
24309 * tests/lib/test.c: Common whitebox testing code for unit and
24310 functional tests.
24311 * tests/lib/unit_test.c: Framework support for whitebox unit
24312 tests.
24313
24314 * tests/util/grub-shell-tester.in: Support utility for grub-script
24315 tests.
24316 * tests/util/grub-shell.in: Utility to execute grub-script
24317 commands in a Qemu instance.
24318
24319 * tests/example_functional_test.c: Example whitebox functional
24320 test.
24321 * tests/example_grub_script_test.in: Example grub-script test.
24322 * tests/example_scripted_test.in: Example scripted test.
24323 * tests/example_unit_test.c: Example whitebox unit test.
24324
24325 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24326
24327 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24328 Add loader/i386/multiboot_mbi.c.
24329 (multiboot2_mod_SOURCES): Likewise.
24330 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24331 (multiboot2_mod_SOURCES): Likewise.
24332 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24333 (grub_multiboot_make_mbi): Likewise.
24334 (grub_multiboot_free_mbi): Likewise.
24335 (grub_multiboot_init_mbi): Likewise.
24336 (grub_multiboot_add_module): Likewise.
24337 (grub_multiboot_set_bootdev): Likewise.
24338 * loader/i386/multiboot.c (mbi): Removed.
24339 (mbi_dest): Likewise.
24340 (alloc_mbi): New variable.
24341 (grub_multiboot_payload_size): Removed. All users updated.
24342 (grub_multiboot_pure_size): New variable.
24343 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24344 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24345 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24346 (grub_fill_multiboot_mmap): Likewise.
24347 (grub_multiboot_get_bootdev): Likewise.
24348 (grub_multiboot): Use multiboot_mbi functions.
24349 * loader/i386/multiboot_mbi.c: New file.
24350
24351 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24352
24353 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24354 it would result in module crash.
24355
24356 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24357
24358 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24359 (grub_ofconsole_getwh): Split to ...
24360 (grub_ofconsole_getwh): ... this.
24361 (grub_ofconsole_dimensions): ...and this.
24362 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24363
24364 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24365
24366 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24367
24368 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24369
24370 * loader/i386/pc/multiboot2.c: Removed stalled file.
24371
24372 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24373
24374 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24375 Reported by: Grégoire Sutre
24376
24377 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24378
24379 * util/misc.c (canonicalize_file_name): New function.
24380 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24381 instead of realpath().
24382
24383 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24384
24385 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24386 and make it clearer that it's optional. Based on confusion
24387 witnessed on IRC.
24388
24389 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24390
24391 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24392 in premature implicit newline.
24393
24394 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24395
24396 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24397 which resulted in garbled command line at the end of screen.
24398
24399 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24400
24401 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24402 initialization with similar approach as with other Linux loaders.
24403
24404 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24405
24406 Fix i386-ieee1275 build.
24407
24408 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24409 and grub_term_height() for video_{width,height} initialization.
24410
24411 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24412
24413 Fix grub-emu build.
24414
24415 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24416
24417 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24418 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24419
24420 Support for multiple terminals.
24421
24422 * Makefile.in (pkglib_DATA): terminal.lst.
24423 (terminal.lst): New target.
24424 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24425 (GRUB_MOD_INIT(handler)): Likewise.
24426 (GRUB_MOD_FINI(handler)): Likewise.
24427 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24428 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24429 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24430 (grub_cmd_sleep): Use grub_term_save_pos.
24431 * commands/terminal.c: New file.
24432 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24433 commands/terminal.c and lib/charset.c.
24434 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24435 (pkglib_MODULES): Add terminal.mod.
24436 (terminal_mod_SOURCES): New variable.
24437 (terminal_mod_CFLAGS): Likewise.
24438 (terminal_mod_LDFLAGS): Likewise.
24439 * genhandlerlist.sh: Don't handle terminals.
24440 * genmk.rb: Generate terminal-*.lst.
24441 * genterminallist.sh: New file.
24442 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24443 (grub_is_valid_utf8): Likewise.
24444 (grub_utf8_to_ucs4_alloc): Likewise.
24445 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24446 (grub_menu_register_viewer): Changed argument.
24447 (grub_menu_try_text): New proto.
24448 (grub_gfxmenu_try_hook): New declaration.
24449 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24450 (grub_menu_init_page): Additional argument term.
24451 (grub_normal_init_page): Likewise.
24452 (grub_cmdline_get): Arguments simplified.
24453 (grub_utf8_to_ucs4_alloc): Removed.
24454 (grub_print_ucs4): Additional argument term.
24455 (grub_getstringwidth): Likewise.
24456 (grub_print_message_indented): Likewise.
24457 (grub_menu_text_register_instances): New proto.
24458 (grub_show_menu): Likewise.
24459 (read_terminal_list): Likewise.
24460 (grub_set_more): Likewise.
24461 * include/grub/parser.h: Include handler.h.
24462 * include/grub/reader.h: Rewritten.
24463 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24464 (GRUB_TERM_WIDTH): Changed to function.
24465 (GRUB_TERM_HEIGHT): Likewise.
24466 (GRUB_TERM_BORDER_WIDTH): Likewise.
24467 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24468 (GRUB_TERM_NUM_ENTRIES): Likewise.
24469 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24470 (GRUB_TERM_CURSOR_X): Likewise.
24471 (grub_term_input_class): Likewise.
24472 (grub_term_output_class): Likewise.
24473 (grub_term_outputs_disabled): New declaration.
24474 (grub_term_inputs_disabled): Likewise.
24475 (grub_term_outputs): Likewise.
24476 (grub_term_inputs): Likewise.
24477 (grub_term_register_input): Rewritten.
24478 (grub_term_register_output): Likewise.
24479 (grub_term_unregister_input): Likewise.
24480 (grub_term_unregister_output): Likewise.
24481 (FOR_ACTIVE_TERM_INPUTS): New macro.
24482 (FOR_DISABLED_TERM_INPUTS): Likewise.
24483 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24484 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24485 * include/grub/terminfo.h: Add oterm argument to all protypes.
24486 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24487 Use grub_rescue_run.
24488 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24489 All users updated.
24490 * kern/reader.c: Removed. All users updated.
24491 * kern/rescue_reader.c (grub_rescue_init): Removed.
24492 (grub_rescue_reader): Likewise.
24493 (grub_register_rescue_reader): Likewise.
24494 (grub_rescue_run): New function based on kern/reader.c.
24495 * kern/term.c: Adapted for multiterm.
24496 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24497 (grub_is_valid_utf8): Likewise.
24498 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24499 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24500 right terminal.
24501 * loader/i386/linux.c (grub_linux_boot): Likewise.
24502 * normal/auth.c (grub_username_get): New function.
24503 (grub_auth_check_authentication): Use grub_username_get.
24504 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24505 * normal/color.c: Adapt for multiterm.
24506 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24507 (grub_normal_init_page): Additional argument term.
24508 (read_lists): Call read_terminal_lists.
24509 (grub_enter_normal_mode): Call grub_cmdline_run.
24510 Handle grub_normal_exit_level.
24511 (grub_cmd_normal): Make reentrant.
24512 (grub_cmd_normal_exit): New function.
24513 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24514 * normal/menu.c: Adapt for multiterm.
24515 * normal/menu_entry.c: Likewise.
24516 * normal/menu_text.c: Likewise.
24517 * normal/menu_viewer.c: Removed. All users updated.
24518 * normal/term.c: New file.
24519 * util/console.c: Change order of includes to workaround a bug in
24520 ncurses headers.
24521 * term/terminfo.c: New argument oterm on all exported functions.
24522 All users updated.
24523 * util/grub-editenv.c (grub_term_input_class): Removed.
24524 (grub_term_output_class): Likewise.
24525
24526 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24527
24528 Make loader output a bit more user-friendly.
24529
24530 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24531 is being loaded. Likewise for the Hurd.
24532
24533 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24534 that kernel of FreeBSD ${version} is being loaded.
24535
24536 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24537 grub_dprintf().
24538 (grub_cmd_initrd): Likewise.
24539 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24540 that Linux ${version} is being loaded. Likewise for initrd.
24541
24542 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24543
24544 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24545
24546 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24547
24548 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24549 (GRUB_MOD_INIT): Gettextizze.
24550 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24551 (GRUB_MOD_INIT): Gettextizze.
24552 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24553 (grub_cmd_linux): Capitalise Linux.
24554 (GRUB_MOD_INIT): Gettextizze.
24555 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24556 (grub_cmd_linux): Capitalise Linux.
24557 (GRUB_MOD_INIT): Gettextizze.
24558 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24559 (grub_cmd_linux): Capitalise Linux.
24560 (GRUB_MOD_INIT): Gettextizze.
24561 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24562 (GRUB_MOD_INIT): Gettextizze.
24563 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24564 (grub_cmd_linux): Capitalise Linux.
24565 (GRUB_MOD_INIT): Gettextizze.
24566 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24567 (grub_cpu_xnu_init): Gettextizze.
24568 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24569 (GRUB_MOD_INIT): Gettextizze.
24570 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24571 (GRUB_MOD_INIT): Gettextizze.
24572 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24573 (grub_linux_load64): Capitalise Linux.
24574 (GRUB_MOD_INIT): Gettextizze.
24575 * loader/xnu.c: Include `<grub/i18n.h>'.
24576 (GRUB_MOD_INIT): Gettextizze.
24577 * po/POTFILES: Add `loader/efi/appleloader.c',
24578 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24579 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24580 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24581 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24582 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24583 and `loader/xnu.c'.
24584
24585 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24586
24587 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24588
24589 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24590
24591 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24592 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24593 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24594
24595 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24596
24597 Reset Multiboot 2 support. New loader implements the draft in
24598 /branches/multiboot2 and shares as much code as possible with the
24599 production Multiboot 1 implementation.
24600
24601 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24602 * loader/multiboot2.c: Likewise.
24603 * loader/i386/multiboot_helper.S: Likewise.
24604 * include/multiboot2.h: Replace with latest version from the draft
24605 in /branches/multiboot2.
24606
24607 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24608 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24609 and `loader/multiboot2.c'.
24610 (pkglib_MODULES): Add `multiboot2.mod'.
24611 (multiboot2_mod_SOURCES): New variable.
24612 (multiboot2_mod_LDFLAGS): Likewise.
24613 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24614
24615 * conf/i386-pc.rmk: Likewise.
24616
24617 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24618 (multiboot_mod_SOURCES): Remove variable.
24619 (multiboot_mod_LDFLAGS): Likewise.
24620 (multiboot_mod_CFLAGS): Likewise.
24621
24622 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24623 `<multiboot2.h>' instead of `<multiboot.h>'.
24624 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24625 (MULTIBOOT_HEADER_MAGIC): New macros.
24626
24627 * loader/multiboot_loader.c (module_version_status): Remove variable.
24628 (find_multi_boot2_header): Remove function.
24629 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24630 logic. Always check for the Multiboot version we're compiling for.
24631 (grub_cmd_module_loader): Likewise.
24632 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24633 command instead of `multiboot'.
24634
24635 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24636
24637 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24638 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24639 all users.
24640
24641 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24642 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24643
24644 Fix breakage introduced with previous commit.
24645
24646 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24647 commands.
24648 * normal/handler.c (read_handler_list): Revert part of previous commit
24649 affecting this file.
24650 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24651 (grub_normal_execute): ... here.
24652
24653 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24654
24655 Merge prefix-redefinition-fix branch.
24656
24657 * normal/autofs.c (read_fs_list): Make function capable of being
24658 run multiple times, gracefuly replacing the previous data
24659 structures.
24660 * normal/dyncmd.c (read_command_list): Likewise.
24661 * normal/handler.c (read_handler_list): Likewise.
24662 * normal/main.c (read_lists): New function. Calls all the
24663 list reading functions.
24664 (grub_normal_execute): Use read_lists() instead of calling all
24665 list reading functions explicitly. Register read_lists() as a
24666 variable hook attached to ${prefix}.
24667
24668 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24669
24670 Merge crypto branch.
24671
24672 * Makefile.in (pkglib_DATA): Add crypto.lst.
24673 (crypto.lst): New target.
24674 * commands/hashsum.c: New file.
24675 * commands/password.c (check_password): Use grub_crypto_memcmp.
24676 * commands/password_pbkdf2.c: New file.
24677 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24678 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24679 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24680 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24681 -I$(srcdir)/lib/libgcrypt_wrap.
24682 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24683 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24684 password_pbkdf2.mod.
24685 (crypto_mod_SOURCES): New variable.
24686 (crypto_mod_CFLAGS): Likewise.
24687 (crypto_mod_LDFLAGS): Likewise.
24688 (hashsum_mod_SOURCES): New variable.
24689 (hashsum_mod_CFLAGS): Likewise.
24690 (hashsum_mod_LDFLAGS): Likewise.
24691 (pbkdf2_mod_SOURCES): New variable.
24692 (pbkdf2_mod_CFLAGS): Likewise.
24693 (pbkdf2_mod_LDFLAGS): Likewise.
24694 (password_pbkdf2_mod_SOURCES): New variable.
24695 (password_pbkdf2_mod_CFLAGS): Likewise.
24696 (password_pbkdf2_mod_LDFLAGS): Likewise.
24697 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24698 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24699 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24700 Include conf/gcry.rmk.
24701 * include/grub/auth.h: Rewritten.
24702 * include/grub/crypto.h: New file.
24703 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24704 * include/grub/normal.h (read_crypto_list): New prototype.
24705 * lib/crypto.c: New file.
24706 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24707 * lib/pbkdf2.c: Likewise.
24708 * normal/auth.c (grub_auth_strcmp): Removed.
24709 (grub_iswordseparator): Likewise.
24710 (grub_auth_strword): Likewise.
24711 (is_authenticated): Use grub_strword.
24712 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24713 and grub_strword. Pass entered password to authentication callback.
24714 * normal/crypto.c: New file.
24715 * normal/main.c: Call read_crypto_list.
24716 * util/grub-mkpasswd-pbkdf2.c: New file.
24717 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24718
24719 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24720
24721 Fix descent and ascent calculation.
24722
24723 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24724 (options): New option "asce".
24725 (usage): Likewise.
24726 (add_char): Ignore invalid glyphs for descent calculation.
24727 Calculate ascent from actual content.
24728 (print_glyphs): Use 'asce'.
24729 (write_font): Likewise. Allow ascent override.
24730 (main): Handle "asce" option.
24731
24732 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24733
24734 * kern/err.c: Include `<grub/i18n.h>'.
24735 (grub_print_error): Add full stop. Gettextizze.
24736 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24737 (grub_bsd_load_elf): Capitalise ELF.
24738 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24739 (grub_cmd_freebsd_module): Likewise.
24740 (grub_cmd_freebsd_module_elf): Likewise.
24741 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24742
24743 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24744
24745 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24746 * commands/search_file.c (HELP_MESSAGE): New macro.
24747 * commands/search_label.c (HELP_MESSAGE): Likewise.
24748 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24749 * po/POTFILES: Add `commands/search_file.c',
24750 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24751 `commands/search.c'.
24752
24753 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24754
24755 * config.rpath: Update from Gnulib.
24756
24757 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24758
24759 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24760
24761 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24762
24763 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24764
24765 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24766
24767 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24768 arguments to fread so that we get a return value in bytes, rather
24769 than something that will normally be rounded down to 0.
24770 Adjust error handling to avoid producing garbage when size_t is not
24771 the same size as long long.
24772
24773 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24774
24775 * util/mkisofs/write.c (padblock_write): Check return value of
24776 fread.
24777
24778 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24779
24780 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24781 floppy images now.
24782
24783 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24784
24785 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24786
24787 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24788 instead of manual alignment.
24789 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24790 verbose). Avoid attempts to read past end of the device
24791 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24792 but GRUB_DISK_CACHE_SIZE may exceed that).
24793
24794 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24795
24796 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24797 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24798 it to upper layer.
24799
24800 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24801
24802 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24803 New constant.
24804 (grub_efi_piwg_device_path): New structure
24805 (grub_efi_piwg_device_path_t): New type.
24806 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24807 (devpath_1): Transform to a structure. All users updated.
24808 (devpath_2): Likewise.
24809 (devpath_3): Likewise.
24810 (devpath_4): Likewise.
24811 (devpath_5): Likewise.
24812
24813 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24814
24815 * loader/efi/appleloader.c: Restored. Update all users.
24816
24817 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24818
24819 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24820
24821 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24822 (struct boot_blocklist): Move from here ...
24823 * include/grub/i386/pc/boot.h [ASM_FILE]
24824 (struct grub_boot_blocklist): ... to here. Update all users.
24825 (setup): Only initialize `start' member of `first_block'
24826 structure. Add assert() calls to verify the other members.
24827
24828 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24829 (generate_image): Fix broken blocklist length initialization.
24830 Add assert() call to verify blocklist `segment' field.
24831
24832 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24833
24834 * loader/efi/appleloader.c: Remove. Update all users.
24835
24836 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24837
24838 * boot/i386/pc/boot.S: Update copyright year.
24839 * boot/i386/pc/cdboot.S: Likewise.
24840 * boot/i386/pc/diskboot.S: Likewise.
24841 * boot/i386/pc/lnxboot.S: Likewise.
24842 * boot/i386/pc/pxeboot.S: Likewise.
24843 * bus/pci.c: Likewise.
24844 * commands/cmp.c: Likewise.
24845 * commands/help.c: Likewise.
24846 * commands/hexdump.c: Likewise.
24847 * commands/i386/pc/halt.c: Likewise.
24848 * commands/i386/pc/play.c: Likewise.
24849 * commands/i386/pc/vbeinfo.c: Likewise.
24850 * commands/ls.c: Likewise.
24851 * commands/test.c: Likewise.
24852 * disk/dmraid_nvidia.c: Likewise.
24853 * disk/i386/pc/biosdisk.c: Likewise.
24854 * disk/ieee1275/nand.c: Likewise.
24855 * disk/ieee1275/ofdisk.c: Likewise.
24856 * disk/lvm.c: Likewise.
24857 * disk/raid.c: Likewise.
24858 * disk/raid6_recover.c: Likewise.
24859 * disk/scsi.c: Likewise.
24860 * fs/affs.c: Likewise.
24861 * fs/cpio.c: Likewise.
24862 * fs/ext2.c: Likewise.
24863 * fs/hfs.c: Likewise.
24864 * fs/iso9660.c: Likewise.
24865 * fs/ntfs.c: Likewise.
24866 * fs/sfs.c: Likewise.
24867 * fs/udf.c: Likewise.
24868 * fs/ufs.c: Likewise.
24869 * fs/xfs.c: Likewise.
24870 * gencmdlist.sh: Likewise.
24871 * genmk.rb: Likewise.
24872 * include/grub/disk.h: Likewise.
24873 * include/grub/efi/api.h: Likewise.
24874 * include/grub/efi/efi.h: Likewise.
24875 * include/grub/efi/pe32.h: Likewise.
24876 * include/grub/elf.h: Likewise.
24877 * include/grub/fs.h: Likewise.
24878 * include/grub/i386/at_keyboard.h: Likewise.
24879 * include/grub/i386/pc/memory.h: Likewise.
24880 * include/grub/i386/pc/vbe.h: Likewise.
24881 * include/grub/i386/pci.h: Likewise.
24882 * include/grub/i386/tsc.h: Likewise.
24883 * include/grub/ieee1275/ieee1275.h: Likewise.
24884 * include/grub/ntfs.h: Likewise.
24885 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24886 * include/grub/sparc64/libgcc.h: Likewise.
24887 * include/grub/symbol.h: Likewise.
24888 * include/grub/types.h: Likewise.
24889 * include/multiboot2.h: Likewise.
24890 * io/gzio.c: Likewise.
24891 * kern/device.c: Likewise.
24892 * kern/disk.c: Likewise.
24893 * kern/efi/efi.c: Likewise.
24894 * kern/efi/mm.c: Likewise.
24895 * kern/elf.c: Likewise.
24896 * kern/file.c: Likewise.
24897 * kern/i386/dl.c: Likewise.
24898 * kern/i386/pc/init.c: Likewise.
24899 * kern/i386/pc/startup.S: Likewise.
24900 * kern/ieee1275/ieee1275.c: Likewise.
24901 * kern/ieee1275/init.c: Likewise.
24902 * kern/main.c: Likewise.
24903 * kern/mm.c: Likewise.
24904 * kern/powerpc/dl.c: Likewise.
24905 * kern/sparc64/dl.c: Likewise.
24906 * kern/x86_64/dl.c: Likewise.
24907 * lib/hexdump.c: Likewise.
24908 * loader/efi/appleloader.c: Likewise.
24909 * loader/i386/ieee1275/linux.c: Likewise.
24910 * loader/i386/pc/chainloader.c: Likewise.
24911 * loader/i386/pc/linux.c: Likewise.
24912 * loader/i386/pc/multiboot2.c: Likewise.
24913 * loader/ieee1275/multiboot2.c: Likewise.
24914 * loader/multiboot2.c: Likewise.
24915 * loader/multiboot_loader.c: Likewise.
24916 * loader/powerpc/ieee1275/linux.c: Likewise.
24917 * normal/completion.c: Likewise.
24918 * normal/menu_entry.c: Likewise.
24919 * partmap/apple.c: Likewise.
24920 * util/grub.d/10_hurd.in: Likewise.
24921 * util/hostfs.c: Likewise.
24922 * video/readers/png.c: Likewise.
24923
24924 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24925
24926 * include/grub/misc.h (GNUC_PREREQ): New macro.
24927 (ATTRIBUTE_ERROR): New macro.
24928 * include/grub/list.h (grub_bad_type_cast_real): Use
24929 ATTRIBUTE_ERROR.
24930
24931 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24932
24933 * normal/menu_text.c (print_message): Change messages.
24934
24935 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24936
24937 * normal/menu_entry.c (store_completion): Gettextizze.
24938
24939 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24940
24941 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
24942
24943 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24944
24945 * po/POTFILES: Sort correctly.
24946
24947 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24948
24949 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
24950 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
24951 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
24952 full stop.
24953 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
24954 summary. Gettextizze the strings.
24955 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
24956 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
24957 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
24958 full stop.
24959 (GRUB_MOD_INIT): Remove command name from summary.
24960 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
24961 summary.
24962 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
24963 * term/i386/pc/serial.c (options): Add full stops.
24964 (GRUB_MOD_INIT): Remove command name from the summary.
24965
24966 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24967
24968 * commands/acpi.c: Gettextizze help strings and/or options. Include
24969 `grub/i18n.h' if needed.
24970 * commands/blocklist.c: Likewise.
24971 * commands/boot.c: Likewise.
24972 * commands/cat.c: Likewise.
24973 * commands/cmp.c: Likewise.
24974 * commands/configfile.c: Likewise.
24975 * commands/crc.c: Likewise.
24976 * commands/date.c: Likewise.
24977 * commands/echo.c: Likewise.
24978 * commands/efi/fixvideo.c: Likewise.
24979 * commands/efi/loadbios.c: Likewise.
24980 * commands/gptsync.c: Likewise.
24981 * commands/halt.c: Likewise.
24982 * commands/handler.c: Likewise.
24983 * commands/hdparm.c: Likewise.
24984 * commands/hexdump.c: Likewise.
24985 * commands/i386/cpuid.c: Likewise.
24986 * commands/i386/pc/drivemap.c: Likewise.
24987 * commands/i386/pc/halt.c: Likewise.
24988 * commands/i386/pc/pxecmd.c: Likewise.
24989 * commands/i386/pc/vbeinfo.c: Likewise.
24990 * commands/i386/pc/vbetest.c: Likewise.
24991 * commands/ieee1275/suspend.c: Likewise.
24992 * commands/keystatus.c: Likewise.
24993 * commands/loadenv.c: Likewise.
24994 * commands/ls.c: Likewise.
24995 * commands/lsmmap.c: Likewise.
24996 * commands/lspci.c: Likewise.
24997 * commands/memrw.c: Likewise.
24998 * commands/minicmd.c: Likewise.
24999 * commands/parttool.c: Likewise.
25000 * commands/password.c: Likewise.
25001 * commands/probe.c: Likewise.
25002 * commands/read.c: Likewise.
25003 * commands/reboot.c: Likewise.
25004 * commands/search.c: Likewise.
25005 * commands/sleep.c: Likewise.
25006 * commands/test.c: Likewise.
25007 * commands/true.c: Likewise.
25008 * commands/usbtest.c: Likewise.
25009 * commands/videotest.c: Likewise.
25010 * commands/xnu_uuid.c: Likewise.
25011 * disk/loopback.c: Likewise.
25012 * hello/hello.c: Likewise.
25013 * loader/i386/bsd.c: Likewise.
25014 * term/i386/pc/serial.c: Likewise.
25015 * po/POTFILES: Add new files.
25016
25017 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25018
25019 * term/i386/pc/at_keyboard.c
25020 (keyboard_controller_wait_untill_ready): Rename to ...
25021 (keyboard_controller_wait_until_ready): ... this. Update all users.
25022
25023 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25024
25025 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25026 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25027 string using string width.
25028 * normal/menu_text.c (grub_print_message_indented): Use
25029 grub_print_spaces and not print_spaces.
25030 (print_timeout): Likewise.
25031 (print_spaces): Move to...
25032 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25033
25034 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25035
25036 Import from Gnulib.
25037
25038 * gnulib/getdelim.c: New file.
25039 * gnulib/getline.c: Likewise.
25040
25041 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25042
25043 * include/grub/list.h (grub_assert_fail): Removed.
25044 (grub_bad_type_cast_real): New function.
25045 (grub_bad_type_cast): New macro.
25046 (GRUB_AS_LIST): Use grub_bad_type_cast.
25047 (GRUB_AS_LIST_P): Likewise.
25048 (GRUB_AS_NAMED_LIST): Likewise.
25049 (GRUB_AS_NAMED_LIST_P): Likewise.
25050 (GRUB_AS_PRIO_LIST): Likewise.
25051 (GRUB_AS_PRIO_LIST_P): Likewise.
25052 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25053
25054 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25055
25056 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25057 Fix syntax error.
25058
25059 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25060
25061 * configure.ac: Check for TARGET_CFLAGS initialization before we
25062 initialize it ourselves (sigh).
25063 Move a few modifications to TARGET_CFLAGS to be unconditional
25064 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25065 eh_frame)
25066
25067 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25068 * term/i386/pc/at_keyboard.c
25069 (keyboard_controller_wait_untill_ready): Likewise.
25070 (keyboard_controller_led): Rename `led_status' paramter to avoid
25071 name conflict.
25072
25073 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25074
25075 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25076 quotes.
25077
25078 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25079
25080 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25081
25082 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25083
25084 * normal/menu_text.c (grub_print_message_indented): Prevent
25085 past-the-end-of-array dereference.
25086
25087 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25088
25089 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25090 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25091
25092 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25093
25094 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25095 * normal/main.c (grub_normal_read_line): Remove a space from the
25096 default prompt.
25097
25098 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25099
25100 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25101 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25102 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25103 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25104 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25105 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25106 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25107
25108 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25109
25110 * video/readers/jpeg.c (cmd): Declare.
25111 (grub_cmd_jpegtest): Use `grub_command_t' type.
25112 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25113 Assign to `cmd'.
25114 (GRUB_MOD_FINI): Use `cmd' to unregister.
25115 * video/readers/png.c (cmd): Declare.
25116 (grub_cmd_pngtest): Use `grub_command_t' type.
25117 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25118 Assign to `cmd'.
25119 (GRUB_MOD_FINI): Use `cmd' to unregister.
25120 * video/readers/tga.c (cmd): Declare.
25121 (grub_cmd_tgatest): Use `grub_command_t' type.
25122 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25123 Assign to `cmd'.
25124 (GRUB_MOD_FINI): Use `cmd' to unregister.
25125
25126 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25127
25128 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25129 stops.
25130 * kern/corecmd.c (grub_register_core_commands): Likewise.
25131 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25132 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25133 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25134 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25135 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25136 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25137 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25138 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25139 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25140 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25141 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25142 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25143 * normal/handler.c (insert_handler): Likewise.
25144 * normal/main.c (GRUB_MOD_INIT): Likewise.
25145 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25146
25147 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25148
25149 * commands/help.c (grub_cmd_help): Print the command name before the
25150 summary.
25151 (GRUB_MOD_INIT): Remove command name from the summary.
25152 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25153 string as summary.
25154 * lib/arg.c (find_long): Print the command name before the summary.
25155 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25156 summary.
25157 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25158 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25159 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25160 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25161 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25162 * commands/date.c (GRUB_MOD_INIT): Likewise.
25163 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25164 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25165 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25166 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25167 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25168 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25169 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25170 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25171 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25172 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25173 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25174 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25175 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25176 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25177 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25178 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25179 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25180 * commands/password.c (GRUB_MOD_INIT): Likewise.
25181 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25182 * commands/read.c (GRUB_MOD_INIT): Likewise.
25183 * commands/search.c (GRUB_MOD_INIT): Likewise.
25184 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25185 * commands/test.c (GRUB_MOD_INIT): Likewise.
25186 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25187 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25188 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25189 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25190 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25191 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25192 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25193 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25194 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25195 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25196 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25197 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25198 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25199 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25200
25201 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25202
25203 Use search command for preliminar UUID search.
25204
25205 * commands/search.c: Split into ...
25206 * commands/search_wrap.c: ...this
25207 * commands/search.c: ...and this.
25208 * commands/search_file.c: New file.
25209 * commands/search_label.c: New file.
25210 * commands/search_uuid.c: New file.
25211 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25212 Add commands/search_wrap.c, commands/search_file.c,
25213 commands/search_label.c and commands/search_uuid.c.
25214 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25215 (search_mod_SOURCES): Set to commands/search_wrap.c.
25216 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25217 search_label.mod.
25218 (search_fs_file_mod_SOURCES): New variable.
25219 (search_fs_file_mod_CFLAGS): Likewise.
25220 (search_fs_file_mod_LDFLAGS): Likewise.
25221 (search_label_mod_SOURCES): Likewise.
25222 (search_label_mod_CFLAGS): Likewise.
25223 (search_label_mod_LDFLAGS): Likewise.
25224 (search_fs_uuid_mod_SOURCES): New variable.
25225 (search_fs_uuid_mod_CFLAGS): Likewise.
25226 (search_fs_uuid_mod_LDFLAGS): Likewise.
25227 (fs_file_mod_SOURCES): Removed.
25228 (fs_file_mod_CFLAGS): Likewise.
25229 (fs_file_mod_LDFLAGS): Likewise.
25230 (fs_uuid_mod_SOURCES): Removed.
25231 (fs_uuid_mod_CFLAGS): Likewise.
25232 (fs_uuid_mod_LDFLAGS): Likewise.
25233 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25234 Set to util/grub-install.in.
25235 * disk/fs_file.c: Removed.
25236 * disk/fs_uuid.c: Likewise.
25237 * include/grub/search.h: New file.
25238 * util/grub-install.in: Handle sparc64.
25239 Create and use load.cfg.
25240 * util/sparc64/ieee1275/grub-install.in: Removed.
25241
25242 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25243
25244 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25245 Ignore return status if CF is cleared.
25246 (grub_biosdisk_get_diskinfo_standard): Likewise.
25247
25248 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25249
25250 * term/i386/pc/at_keyboard.c
25251 (keyboard_controller_wait_untill_ready): New function.
25252 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25253 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25254 for keyboard polling, rather than duplicate the same loop. This
25255 saves a few bytes in code size.
25256
25257 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25258
25259 Support for (pxe[:server[:gateway]]) syntax and
25260 use environment variable for PXE.
25261
25262 * commands/i386/pc/pxecmd.c (options): Removed.
25263 (print_ip): Removed.
25264 (grub_cmd_pxe): Removed
25265 (grub_cmd_pxe_unload): New function.
25266 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25267 (grub_pxe_your_ip): Made static.
25268 (grub_pxe_default_server_ip): Likewise.
25269 (grub_pxe_default_gateway_ip): Likewise.
25270 (grub_pxe_blksize): Likewise.
25271 (parse_ip): New function.
25272 (grub_pxe_open): Support server and gateway specification.
25273 (grub_pxe_close): Free disk->data.
25274 (grub_pxefs_open): Use disk->data.
25275 (grub_pxefs_read): Likewise.
25276 (grub_env_write_readonly): New function.
25277 (set_mac_env): Likewise.
25278 (set_env_limn_ro): Likewise.
25279 (parse_dhcp_vendor): Likewise.
25280 (grub_pxe_detect): Set the environment variables.
25281 (set_ip_env): New function.
25282 (write_ip_env): Likewise.
25283 (grub_env_write_pxe_default_server): Likewise.
25284 (grub_env_write_pxe_default_gateway): Likewise.
25285 (grub_env_write_pxe_blocksize): Likewise.
25286 (GRUB_MOD_INIT(pxe)): Set environment variables.
25287 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25288 (grub_pxe_mac_addr_t): ... this. All users updated.
25289 (grub_pxe_your_ip): Removed.
25290 (grub_pxe_server_ip): Likewise.
25291 (grub_pxe_gateway_ip): Likewise.
25292 (grub_pxe_blksize): Likewise.
25293
25294 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25295
25296 * commands/help.c: Include `<grub/i18n.h>'.
25297 (grub_cmd_help): Gettextizze.
25298 (GRUB_MOD_INIT): Likewise.
25299 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25300 (GRUB_MOD_INIT): Gettextizze.
25301 * commands/search.c: Include `<grub/i18n.h>'.
25302 (options): Gettextizze.
25303 (GRUB_MOD_INIT): Gettextizze.
25304 * lib/arg.c: Include `<grub/i18n.h>'.
25305 (help_options): Gettextizze.
25306 (find_long): Likewise.
25307 (grub_arg_show_help): Likewise.
25308 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25309 (read_command_list): Gettextizze.
25310 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25311 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25312
25313 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25314
25315 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25316 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25317 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25318 (led_status): New variable.
25319 (keyboard_controller_led): New function.
25320 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25321 update led status for caps lock, num lock and scroll lock.
25322
25323 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25324
25325 * util/hostdisk.c (open_device): Fix a comment.
25326
25327 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25328
25329 * util/grub-install.in (host_os): New variable.
25330 * util/i386/efi/grub-install.in (host_os): Likewise.
25331
25332 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25333
25334 * util/mkisofs/write.c (padblock_write): Abort when given an
25335 excedingly large embed image, instead of silently truncating it.
25336
25337 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25338
25339 * include/multiboot.h: Indentation fixes.
25340
25341 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25342
25343 * include/multiboot.h (struct multiboot_aout_symbol_table)
25344 (struct multiboot_elf_section_header_table): New structure
25345 declarations (stolen from GRUB Legacy).
25346 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25347 table information.
25348
25349 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25350 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25351 type aliases.
25352
25353 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25354
25355 * include/multiboot.h: Make comments src2texi-friendly.
25356
25357 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25358
25359 For consistency with [multiboot]/docs/boot.S.
25360
25361 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25362 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25363 (MULTIBOOT_MAGIC2): Rename from this ...
25364 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25365
25366 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25367
25368 * include/multiboot.h: Remove `<grub/types.h>'.
25369 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25370 types. Update all users.
25371
25372 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25373
25374 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25375 `couldn't' and `can not' by `cannot'.
25376 * commands/i386/pc/drivemap.c: Likewise.
25377 * disk/ata.c: Likewise.
25378 * disk/ieee1275/nand.c: Likewise.
25379 * fs/affs.c: Likewise.
25380 * fs/fat.c: Likewise.
25381 * fs/hfs.c: Likewise.
25382 * fs/hfsplus.c: Likewise.
25383 * fs/iso9660.c: Likewise.
25384 * fs/jfs.c: Likewise.
25385 * fs/minix.c: Likewise.
25386 * fs/reiserfs.c: Likewise.
25387 * fs/sfs.c: Likewise.
25388 * fs/udf.c: Likewise.
25389 * fs/ufs.c: Likewise.
25390 * fs/xfs.c: Likewise.
25391 * loader/powerpc/ieee1275/linux.c: Likewise.
25392 * loader/sparc64/ieee1275/linux.c: Likewise.
25393 * util/grub-probe.c: Likewise.
25394 * util/misc.c: Likewise.
25395
25396 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25397
25398 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25399 grub_errno calls.
25400 * commands/acpi.c: Likewise.
25401 * commands/blocklist.c: Likewise.
25402 * commands/efi/loadbios.c: Likewise.
25403 * commands/i386/pc/drivemap.c: Likewise.
25404 * commands/loadenv.c: Likewise.
25405 * commands/memrw.c: Likewise.
25406 * commands/password.c: Likewise.
25407 * commands/videotest.c: Likewise.
25408 * disk/ata.c: Likewise.
25409 * disk/ata_pthru.c: Likewise.
25410 * disk/dmraid_nvidia.c: Likewise.
25411 * disk/ieee1275/nand.c: Likewise.
25412 * disk/ieee1275/ofdisk.c: Likewise.
25413 * disk/loopback.c: Likewise.
25414 * disk/lvm.c: Likewise.
25415 * disk/mdraid_linux.c: Likewise.
25416 * disk/raid.c: Likewise.
25417 * disk/raid6_recover.c: Likewise.
25418 * disk/scsi.c: Likewise.
25419 * efiemu/main.c: Likewise.
25420 * efiemu/mm.c: Likewise.
25421 * efiemu/pnvram.c: Likewise.
25422 * efiemu/symbols.c: Likewise.
25423 * font/font.c: Likewise.
25424 * fs/cpio.c: Likewise.
25425 * fs/hfsplus.c: Likewise.
25426 * fs/iso9660.c: Likewise.
25427 * fs/jfs.c: Likewise.
25428 * fs/minix.c: Likewise.
25429 * fs/ntfs.c: Likewise.
25430 * fs/ntfscomp.c: Likewise.
25431 * fs/reiserfs.c: Likewise.
25432 * fs/ufs.c: Likewise.
25433 * fs/xfs.c: Likewise.
25434 * gettext/gettext.c: Likewise.
25435 * include/grub/auth.h: Likewise.
25436 * kern/elf.c: Likewise.
25437 * kern/file.c: Likewise.
25438 * kern/ieee1275/init.c: Likewise.
25439 * kern/ieee1275/mmap.c: Likewise.
25440 * kern/ieee1275/openfw.c: Likewise.
25441 * kern/powerpc/dl.c: Likewise.
25442 * kern/sparc64/dl.c: Likewise.
25443 * lib/arg.c: Likewise.
25444 * loader/i386/bsd.c: Likewise.
25445 * loader/i386/bsdXX.c: Likewise.
25446 * loader/i386/efi/linux.c: Likewise.
25447 * loader/i386/efi/xnu.c: Likewise.
25448 * loader/i386/ieee1275/linux.c: Likewise.
25449 * loader/i386/linux.c: Likewise.
25450 * loader/i386/multiboot.c: Likewise.
25451 * loader/i386/pc/linux.c: Likewise.
25452 * loader/i386/pc/multiboot2.c: Likewise.
25453 * loader/i386/xnu.c: Likewise.
25454 * loader/ieee1275/multiboot2.c: Likewise.
25455 * loader/macho.c: Likewise.
25456 * loader/machoXX.c: Likewise.
25457 * loader/multiboot2.c: Likewise.
25458 * loader/multiboot_loader.c: Likewise.
25459 * loader/powerpc/ieee1275/linux.c: Likewise.
25460 * loader/sparc64/ieee1275/linux.c: Likewise.
25461 * loader/xnu.c: Likewise.
25462 * loader/xnu_resume.c: Likewise.
25463 * mmap/i386/pc/mmap.c: Likewise.
25464 * normal/menu_viewer.c: Likewise.
25465 * partmap/acorn.c: Likewise.
25466 * partmap/amiga.c: Likewise.
25467 * partmap/apple.c: Likewise.
25468 * script/lexer.c: Likewise.
25469 * term/gfxterm.c: Likewise.
25470 * term/i386/pc/serial.c: Likewise.
25471 * term/i386/pc/vga.c: Likewise.
25472 * term/ieee1275/ofconsole.c: Likewise.
25473 * term/terminfo.c: Likewise.
25474 * video/bitmap.c: Likewise.
25475 * video/efi_gop.c: Likewise.
25476 * video/efi_uga.c: Likewise.
25477 * video/fb/video_fb.c: Likewise.
25478 * video/i386/pc/vbe.c: Likewise.
25479 * video/readers/tga.c: Likewise.
25480 * video/video.c: Likewise.
25481
25482 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25483
25484 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25485 * commands/lspci.c: Likewise.
25486 * commands/probe.c: Likewise.
25487 * commands/xnu_uuid.c: Likewise.
25488 * conf/i386-coreboot.rmk: Likewise.
25489 * conf/i386-efi.rmk: Likewise.
25490 * conf/i386-ieee1275.rmk: Likewise.
25491 * conf/i386-pc.rmk: Likewise.
25492 * conf/powerpc-ieee1275.rmk: Likewise.
25493 * conf/sparc64-ieee1275.rmk: Likewise.
25494 * conf/x86_64-efi.rmk: Likewise.
25495 * fs/i386/pc/pxe.c: Likewise.
25496 * gettext/gettext.c: Likewise.
25497 * include/grub/efi/graphics_output.h: Likewise.
25498 * include/grub/i386/pc/memory.h: Likewise.
25499 * kern/env.c: Likewise.
25500 * kern/i386/qemu/startup.S: Likewise.
25501 * lib/i386/pc/biosnum.c: Likewise.
25502 * lib/i386/relocator.c: Likewise.
25503 * lib/i386/relocator_asm.S: Likewise.
25504 * lib/relocator.c: Likewise.
25505 * loader/i386/bsd.c: Likewise.
25506 * loader/i386/multiboot.c: Likewise.
25507 * loader/i386/pc/chainloader.c: Likewise.
25508 * loader/i386/xnu.c: Likewise.
25509 * loader/xnu.c: Likewise.
25510 * normal/main.c: Likewise.
25511 * normal/menu_text.c: Likewise.
25512 * util/getroot.c: Likewise.
25513 * util/grub-mkconfig_lib.in: Likewise.
25514 * util/grub.d/00_header.in: Likewise.
25515 * util/i386/pc/grub-mkimage.c: Likewise.
25516 * util/mkisofs/eltorito.c: Likewise.
25517 * util/mkisofs/exclude.h: Likewise.
25518 * util/mkisofs/hash.c: Likewise.
25519 * util/mkisofs/iso9660.h: Likewise.
25520 * util/mkisofs/joliet.c: Likewise.
25521 * util/mkisofs/mkisofs.c: Likewise.
25522 * util/mkisofs/mkisofs.h: Likewise.
25523 * util/mkisofs/multi.c: Likewise.
25524 * util/mkisofs/name.c: Likewise.
25525 * util/mkisofs/rock.c: Likewise.
25526 * util/mkisofs/tree.c: Likewise.
25527 * util/mkisofs/write.c: Likewise.
25528 * video/efi_gop.c: Likewise.
25529
25530 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25531
25532 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25533 size counting.
25534
25535 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25536
25537 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25538 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25539
25540 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25541
25542 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25543 (GRUB_MOD_INIT(memrw)): Update help line.
25544
25545 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25546
25547 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25548 Use grub_extcmd_t. All users updated.
25549 (options): New variable.
25550 (grub_cmd_read): Restructure for readability. Support "-v" option.
25551 (grub_cmd_write): Restructure for readability.
25552
25553 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25554
25555 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25556
25557 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25558
25559 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25560 with the actual contents of the correspondending make variable.
25561 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25562 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25563 specifying `*.lst' and `efiemu??.o'
25564
25565 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25566
25567 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25568 after function name.
25569 Noticed by Rene Engelhard <rene@debian.org>.
25570
25571 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25572
25573 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25574 (options): New variable.
25575 (iospace): Likewise.
25576 (grub_lspci_iter): List IO spaces if "-i" was given.
25577 (grub_cmd_lspci): Parse options.
25578 (GRUB_MOD_INIT(lspci)): Use extcmd.
25579 (GRUB_MOD_FINI(lspci)): Likewise.
25580
25581 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25582
25583 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25584 `function' keyword.
25585 Patch by Tony Mancill <tmancill@debian.org>.
25586
25587 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25588
25589 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25590 (grub_uhci_portstatus): Likewise.
25591 (grub_uhci_portstatus): Add necessary delay.
25592 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25593
25594 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25595
25596 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25597 (GRUB_MOD_INIT): Likewise.
25598 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25599 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25600 * commands/echo.c (options): Fix capitalizations and/or full stops.
25601 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25602 (enable_rom_area): Likewise.
25603 (GRUB_MOD_INIT): Likewise.
25604 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25605 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25606 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25607 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25608 * commands/hexdump.c (options): Likewise.
25609 * commands/i386/cpuid.c (options): Likewise.
25610 (GRUB_MOD_INIT): Likewise.
25611 * commands/i386/pc/drivemap.c (options): Likewise.
25612 (GRUB_MOD_INIT): Likewise.
25613 * commands/i386/pc/halt (options): Likewise.
25614 (GRUB_MOD_INIT): Likewise.
25615 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25616 * commands/i386/pc/pxecmd.c (options): Likewise.
25617 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25618 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25619 * commands/keystatus.c (options): Likewise.
25620 (GRUB_MOD_INIT): Likewise.
25621 * commands/loadenv.c (options): Likewise.
25622 * commands/ls.c (options): Likewise.
25623 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25624 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25625 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25626 * commands/parttool.c (helpmsg): Likewise.
25627 * commands/probe.c (options): Likewise.
25628 * commands/read.c (GRUB_MOD_INIT): Likewise.
25629 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25630 * commands/search.c (options): Likewise.
25631 * commands/sleep.c (options): Likewise.
25632 * commands/test.c (GRUB_MOD_INIT): Likewise.
25633 * commands/true.c (GRUB_MOD_INIT): Likewise.
25634 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25635 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25636 * lib/arg.c (help_options): Likewise.
25637 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25638 `$(XGETTEXT)'.
25639 * po/POTFILES: Add `commands/loadenv.c'.
25640
25641 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25642
25643 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25644 instead of specifying them explicit.
25645
25646 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25647
25648 * NEWS: Add grub-probe support for GNU/Hurd.
25649
25650 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25651
25652 * NEWS: gettext was added after 1.97.
25653
25654 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25655
25656 * util/mkisofs/msdos_partition.h: New file (based on
25657 include/grub/msdos_partition.h).
25658 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25659 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25660 (ld_options, main): Recognize --protective-msdos-label.
25661 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25662 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25663 (padblock_write): If `use_protective_msdos_label' is set, patch a
25664 protective DOS-style label in the output image.
25665
25666 * util/grub-mkrescue.in: Use --protective-msdos-label.
25667
25668 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25669
25670 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25671 boot.
25672
25673 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25674
25675 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25676 variables.
25677 (ld_options, main): Recognize `--embedded-boot'.
25678 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25679 declarations.
25680 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25681 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25682 (padblock_write): Likewise. Rewrite to support embedded boot image.
25683
25684 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25685 for BIOS-based disk boot instead of only ElTorito.
25686
25687 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25688
25689 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25690 build (not needed for bootstrap).
25691
25692 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25693
25694 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25695 from i386-pc build (not needed for bootstrap).
25696 Rewrite a pair of strings.
25697
25698 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25699
25700 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25701
25702 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25703
25704 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25705
25706 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25707
25708 * kern/env.c (grub_env_context_open): Mark exported variable for
25709 reexport.
25710
25711 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25712
25713 * kern/env.c (grub_env_export): Create nonexistent variables before
25714 exporting.
25715
25716 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25717
25718 * include/grub/auth.h: Include `<grub/i18n.h>'.
25719 (GRUB_GET_PASSWORD): Gettextizze string.
25720 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25721 menu_text.c.
25722 (grub_utf8_to_ucs4_alloc): Fix indentation.
25723 (grub_print_ucs4): Likewise.
25724 (grub_getstringwidth): Likewise.
25725 (print_message_indented): New declaration.
25726 * normal/auth.c: Include `<grub/i18n.h>'.
25727 (grub_auth_check_authentication): Gettexttize string.
25728 * normal/cmdline.c: Include `<grub/i18n.h>'.
25729 (grub_cmdline_get): Gettextizze.
25730 * normal/color.c: Include `<grub/i18n.h>'.
25731 (grub_parse_color_name_pair): Gettexttize strings.
25732 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25733 string (use `print_message_indented').
25734 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25735 `include/grub/normal.h'.
25736 (print_message_indented): Renamed to ...
25737 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25738 used in normal/main.c).
25739 (print_message): Use `grub_print_message_indented' instead of
25740 `print_message_indented'.
25741 (print_timeout): Likewise.
25742 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25743 (grub_normal_print_device_info): Gettexttize strings.
25744 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25745
25746 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25747
25748 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25749 of arguments. Return number of tokens and not arguments. All users
25750 updated.
25751
25752 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25753
25754 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25755 non-MSDOS paritions.
25756
25757 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25758
25759 * include/grub/types.h (UNUSED): Removed since it conflicts with
25760 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25761 Reported by Grégoire Sutre.
25762
25763 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25764
25765 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25766 (grub_print_ucs4_alloc): Likewise.
25767 (grub_getstringwidth): Likewise.
25768 * normal/main.c (grub_normal_init_page): Gettextize version string.
25769 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25770 (getstringwidth): Renamed to ...
25771 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25772 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25773 (grub_print_ucs4): Remove `static' qualifer (now used in
25774 normal/main.c).
25775 * po/POTFILES: Add normal/main.c.
25776
25777 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25778
25779 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25780 (print_message_indented): Add `margin_left' and `margin_right'
25781 parameters.
25782 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25783 strings.
25784 (print_timeout): Use `print_message_indented' to print the message.
25785 Deletes `second_stage' parameter.
25786 (run_menu): Update `print_timeout' calls.
25787
25788 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25789
25790 Fix console palette on OpenFirmware.
25791
25792 * term/ieee1275/ofconsole.c (MAX): Removed.
25793 (colors): Redone based on VGA palette.
25794 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25795 colors are supported.
25796 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25797
25798 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25799
25800 Fix potential EfiEmu double prepare.
25801
25802 * efiemu/main.c (prepared): New variable
25803 (grub_efiemu_unload): Set prepare to '0'.
25804 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25805
25806 set_virtual_address_map support.
25807
25808 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25809 prototype.
25810 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25811 prototype.
25812 (grub_efiemu_crc32): Likewise.
25813 (grub_efiemu_crc64): Likewise.
25814 (grub_efiemu_set_virtual_address_map): Likewise.
25815 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25816 New definition.
25817 (grub_autoefi_set_virtual_address_map): Likewise.
25818 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25819 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25820 Restructure flow to accomodate it.
25821 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25822 (grub_efiemu_crc): Recompute CRC32.
25823 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25824 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25825 * efiemu/symbols.c (relocated_handle): New variable.
25826 (grub_efiemu_free_syms): Free relocated_handle.
25827 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25828 (grub_efiemu_write_sym_markers): New function.
25829 (grub_efiemu_set_virtual_address_map): Likewise.
25830
25831 Newer XNU parameters.
25832
25833 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25834 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25835 (grub_xnu_fill_devicetree): New prototype.
25836 (grub_xnu_heap_real_start): New variable.
25837 * loader/xnu.c (get_name_ptr): New function.
25838 (grub_xnu_load_driver): Fill namelen and name.
25839
25840 64-bit xnu support.
25841
25842 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25843 and 'loader/macho64.c'.
25844 * conf/i386-pc.rmk: Likewise.
25845 * conf/x86_64-efi.rmk: Likewise.
25846 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25847 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25848 * include/grub/macho.h (grub_macho_segment64): New structure.
25849 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25850 (grub_macho_size32): ... to this.
25851 (grub_macho32_get_entry_point): Renamed from ...
25852 (grub_macho_get_entry_point32): ... to this.
25853 (grub_macho_contains_macho64): New prototype.
25854 (grub_macho_size64): Likewise.
25855 (grub_macho_get_entry_point64): Likewise.
25856 (grub_macho32_load): Renamed from ...
25857 (grub_macho_load32): ... to this.
25858 (grub_macho32_filesize): Renamed from ...
25859 (grub_macho_filesize32): ... to this.
25860 (grub_macho32_readfile): Renamed from ...
25861 (grub_macho_readfile32): ... to this.
25862 (grub_macho_filesize64): New prototype.
25863 (grub_macho_readfile64): Likewise.
25864 (grub_macho_parse32): Likewise.
25865 (grub_macho_parse64): Likewise.
25866 * loader/macho.c: Split into ...
25867 * loader/machoXX.c: ... and this. Replace 32 with XX.
25868 * loader/macho32.c: New file.
25869 * loader/macho64.c: Likewise.
25870 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25871 (grub_cmd_xnu_kernel): Make 32-bit only.
25872 (grub_cmd_xnu_kernel64): New function.
25873 (grub_xnu_load_driver): Support Mach-O 64.
25874 (grub_cmd_xnu_mkext): Likewise.
25875 * util/grub.d/30_os-prober.in (osx_entry): New function.
25876 Generate entries for 64-bit boot too.
25877
25878 Eliminate ad-hoc tree format in XNU and EfiEmu.
25879
25880 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25881 * efiemu/pnvram.c: Rewritten to use environment variables.
25882 All users updated.
25883
25884 Inline utf16_to_utf8.
25885
25886 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25887 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25888 All users updated.
25889 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25890
25891 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25892 * commands/usbtest.c (grub_usb_get_string): ... move here.
25893 (usb_print_str): Fix error handling.
25894 * include/grub/usb.h (grub_usb_get_string): Remove.
25895
25896 UTF-8 to UTF-16 transformation.
25897
25898 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25899 (charset_mod_SOURCES): New variable.
25900 (charset_mod_CFLAGS): Likewise.
25901 (charset_mod_LDFLAGS): Likewise.
25902 * include/grub/utf.h: New file.
25903 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25904
25905 Support for device properties.
25906
25907 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25908 (grub_xnu_devprop_device_header): Likewise.
25909 (grub_xnu_devprop_device_descriptor): Likewise.
25910 (grub_xnu_devprop_add_device): New prototype.
25911 (grub_xnu_devprop_remove_device): Likewise.
25912 (grub_xnu_devprop_remove_property): Likewise.
25913 (grub_xnu_devprop_add_property_utf8): Likewise.
25914 (grub_xnu_devprop_add_property_utf16): Likewise.
25915 (grub_cpu_xnu_init): Likewise.
25916 (grub_cpu_xnu_fini): Likewise.
25917 (grub_cpu_xnu_unload): Likewise.
25918 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25919 (property_descriptor): Likewise.
25920 (devices): New variable.
25921 (grub_xnu_devprop_remove_property): New function.
25922 (grub_xnu_devprop_add_device): Likewise.
25923 (grub_xnu_devprop_remove_device): Likewise.
25924 (grub_xnu_devprop_add_property): Likewise.
25925 (grub_xnu_devprop_add_property_utf8): Likewise.
25926 (grub_xnu_devprop_add_property_utf16): Likewise.
25927 (hextoval): Likewise.
25928 (grub_cpu_xnu_fill_devprop): Likewise.
25929 (grub_cmd_devprop_load): Likewise.
25930 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25931 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25932 (cmd_devprop_load): New variable.
25933 (grub_cpu_xnu_init): New function.
25934 (grub_cpu_xnu_fini): Likewise.
25935 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
25936 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
25937 (grub_cmd_xnu_devtree): Likewise.
25938 (hextoval): New function.
25939 (unescape): Likewise.
25940 (grub_xnu_fill_devicetree): Likewise.
25941
25942 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
25943 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
25944
25945 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25946
25947 Workaround for broken ATI VBE.
25948
25949 * video/i386/pc/vbe.c (last_set_mode): New variable.
25950 (grub_vbe_set_video_mode): Set 'last_set_mode'.
25951 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
25952 (grub_video_vbe_setup): Don't check for reserved flag.
25953
25954 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
25955
25956 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
25957 the `find' command.
25958
25959 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
25960
25961 UUID support for HFS.
25962
25963 * fs/hfs.c (grub_hfs_uuid): New function.
25964 (grub_hfs_fs): New value .uuid.
25965 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
25966
25967 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
25968
25969 Fix a segfault with parsing unknown long options.
25970
25971 * util/grub-mkrelpath.c (options): Zero terminate it.
25972
25973 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25974
25975 * include/grub/misc.h (grub_puts): New declaration.
25976 (grub_puts_): Likewise.
25977 * kern/misc.c (grub_puts): New definition.
25978 (grub_puts_): Likewise.
25979
25980 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25981
25982 * util/grub-probe.c (probe): Improve error message.
25983
25984 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25985
25986 * loader/i386/multiboot_elfxx.c
25987 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
25988 initialization.
25989
25990 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25991
25992 Relocator framework
25993
25994 * loader/i386/xnu_helper.S: Removed. All users updated.
25995 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
25996 (relocator_mod_SOURCES): New variable.
25997 (relocator_mod_CFLAGS): Likewise.
25998 (relocator_mod_LDFLAGS): Likewise.
25999 (relocator_mod_ASFLAGS): Likewise.
26000 * conf/x86_64.rmk: Likewise.
26001 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26002 (grub_multiboot_payload_entry_offset): Likewise.
26003 (grub_multiboot_forward_relocator): Likewise.
26004 (grub_multiboot_forward_relocator_end): Likewise.
26005 (grub_multiboot_backward_relocator): Likewise.
26006 (grub_multiboot_backward_relocator_end): Likewise.
26007 (grub_multiboot_payload_eip): New variable.
26008 (grub_multiboot_payload_orig): Likewise.
26009 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26010 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26011 * include/grub/i386/memory.h
26012 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26013 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26014 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26015 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26016 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26017 * include/grub/i386/relocator.h: New file.
26018 * include/grub/x86_64/relocator.h: Likewise.
26019 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26020 (XNU_RELOCATOR): New macro.
26021 (grub_xnu_launcher_start): Remove.
26022 (grub_xnu_launcher_end): Likewise.
26023 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26024 (grub_xnu_heap_real_start): Remove.
26025 (grub_xnu_heap_start): Change to void *. All users updated.
26026 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26027 * lib/i386/relocator.c: New file.
26028 * lib/i386/relocator_asm.S: Likewise.
26029 * lib/i386/relocator_backward.S: Likewise.
26030 * lib/mips/relocator.c: Likewise.
26031 * lib/mips/relocator_asm.S: Likewise.
26032 * lib/relocator.c: Likewise.
26033 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26034 (entry): Removed.
26035 (playground): Likewise.
26036 (grub_multiboot_payload_orig): New variable.
26037 (grub_multiboot_payload_dest): Likewise.
26038 (grub_multiboot_payload_size): Likewise.
26039 (grub_multiboot_payload_eip): Likewise.
26040 (grub_multiboot_payload_esp): Likewise.
26041 (grub_multiboot_boot): Use grub_relocator32_boot.
26042 (grub_multiboot_unload): Free relocators.
26043 (grub_multiboot): Setup stack. Use relocators.
26044 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26045 (grub_multiboot_load_elfXX): Use relocators.
26046 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26047 (grub_multiboot_payload_size): Likewise.
26048 (grub_multiboot_payload_dest): Likewise.
26049 (grub_multiboot_payload_entry_offset): Likewise.
26050 (grub_multiboot_forward_relocator): Likewise.
26051 (grub_multiboot_backward_relocator): Likewise.
26052 (grub_multiboot_real_boot): Likewise.
26053 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26054 (grub_xnu_entry_point): Likewise.
26055 (grub_xnu_arg1): Likewise.
26056 (grub_xnu_stack): Likewise.
26057 (grub_xnu_launch): Removed.
26058 (grub_xnu_boot_resume): New function.
26059 (grub_xnu_boot): Use relocators.
26060 * loader/i386/xnu_helper.S: Removed.
26061 * loader/xnu.c (grub_xnu_heap_start): New variable.
26062 (grub_xnu_heap_size): Likewise.
26063 (grub_xnu_heap_malloc): Use relocators.
26064 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26065
26066 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26067
26068 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26069 anything.
26070
26071 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26072
26073 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26074 GRUB_ERR_NONE before calling grub_env_set.
26075
26076 2009-12-12 Robert Millan <rmh@aybabtu.com>
26077
26078 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26079 * genmk.rb (video): New variable.
26080 (CLEANFILES, VIDEOFILES): Add #{video}.
26081 (#{video}): New target rule.
26082 * genvideolist.sh: New file.
26083 * Makefile.in (pkglib_DATA): Add video.lst.
26084 (video.lst): New target rule.
26085 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26086 `video.lst'.
26087 * util/grub.d/30_os-prober.in: Replace `vbe' with
26088 ${GRUB_VIDEO_BACKEND}.
26089
26090 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26091
26092 * THANKS: Add David Miller.
26093
26094 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26095
26096 libpciaccess support.
26097
26098 * Makefile.in (LIBPCIACCESS): New variable.
26099 (enable_grub_emu_pci): Likewise.
26100 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26101 util/pci.c and commands/lspci.c.
26102 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26103 * configure.ac (grub-emu-pci): New option.
26104 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26105 (grub_pci_device_unmap_range): Likewise.
26106 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26107 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26108 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26109 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26110 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26111 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26112 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26113 * include/grub/pciutils.h: New file.
26114 * util/pci.c: Likewise.
26115
26116 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26117
26118 * util/misc.c: Don't include <errno.h> twice.
26119
26120 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26121
26122 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26123 name in an error message.
26124 (grub_biosdisk_rw): Likewise.
26125
26126 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26127
26128 Eliminate NTFS 4Gib barrier.
26129
26130 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26131 (read_run_data): Likewise.
26132 (grub_ntfs_read_run_list): Likewise.
26133 (grub_ntfs_read_block): Likewise.
26134 (grub_ntfs_iterate_dir): Likewise.
26135 (read_mft): Likewise.
26136 (read_data): Likewise.
26137 Use COM_LOG_LEN.
26138 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26139 to avoid 64-bit division
26140 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26141 (grub_ntfs_rlst): Use grub_disk_addr_t.
26142
26143 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26144
26145 Eliminate grub-fstest 4Gib barrier.
26146
26147 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26148 (read_file): Fix error reporting.
26149
26150 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26151
26152 Eliminate hexdump 4Gib barrier.
26153
26154 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26155 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26156
26157 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26158
26159 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26160 Fixes amarsh bug.
26161
26162 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26163
26164 Remove miscellaneous files in distclean target.
26165
26166 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26167
26168 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26169
26170 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26171 if they're already set. This resolves the conflict between my
26172 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26173 fixing the --grub-probe option again.
26174 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26175 change on 2009-10-06, so that we now once again source
26176 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26177
26178 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26179
26180 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26181 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26182 `util/devicemap.c'.
26183
26184 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26185
26186 * include/grub/misc.h (grub_printf_): New declaration.
26187 * kern/misc.c (grub_printf_): New definition.
26188 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26189 instead of `grub_printf' and `_'.
26190 * normal/menu_entry.c (store_completion): Likewise.
26191 (run): Likewise.
26192 (grub_menu_entry_run): Likewise.
26193 * normal/menu_text.c (grub_wait_after_message): Likewise.
26194 (notify_booting): Likewise.
26195 (notify_fallback): Likewise.
26196 (notify_execution_failure): Likewise.
26197
26198 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26199
26200 * configure.ac: Check for vasprintf.
26201 * util/misc.c (asprintf): Move allocation from here ...
26202 (vasprintf): ... to here. New function.
26203 (xasprintf): New function.
26204 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26205 prototypes.
26206 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26207 * util/grub-mkfont.c (write_font): Likewise.
26208 * util/grub-probe.c (probe): Likewise.
26209 * util/hostdisk.c (make_device_name): Likewise.
26210
26211 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26212
26213 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26214 anything even prefixed with 'cdrom' as a cdrom.
26215
26216 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26217
26218 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26219 mount points.
26220
26221 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26222
26223 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26224 grub_gettext_msg_list.
26225 (grub_gettext_gettranslation_from_position): Return const char *
26226 and not char *.
26227 (grub_gettext_translate): Add the translated strings into a list,
26228 returns from the list if existing there.
26229 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26230 (grub_gettext_delete_list): Delete the list.
26231 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26232 lang environment variable is changed.
26233 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26234
26235 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26236
26237 Rename kernel.mod to kernel.img.
26238
26239 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26240 (kernel_mod_EXPORTS): Rename to ...
26241 (kernel_img_EXPORTS): ... this.
26242 (kernel_mod_SOURCES): Rename to ...
26243 (kernel_img_SOURCES): ... this.
26244 (kernel_mod_HEADERS): Rename to ...
26245 (kernel_img_HEADERS): ... this. All users updated.
26246 (kernel_mod_CFLAGS): Rename to ...
26247 (kernel_img_CFLAGS): ... this.
26248 (kernel_mod_ASFLAGS): Rename to ...
26249 (kernel_img_ASFLAGS): ... this.
26250 (kernel_mod_LDFLAGS): Rename to ...
26251 (kernel_img_LDFLAGS): ... this.
26252 * conf/x86_64-efi.rmk: Likewise.
26253 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26254 (read_kernel_image): ... this. All users updated.
26255 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26256
26257 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26258
26259 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26260 (print_spaces): New function.
26261 (grub_print_ucs4): New function.
26262 (getstringwidth): New function.
26263 (print_message_indented): New function.
26264 (print_message): Gettexttize strings using print_message_indented.
26265 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26266 width.
26267 (get_entry_number): Gettextize and uses dynamic terminal width.
26268 (notify_booting, notify_fallback, notify_execution_failure):
26269 Gettextize.
26270 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26271 string.
26272 (run): Likewise.
26273 (grub_menu_entry_run): Likewise.
26274 * PO/POTFILES: Add normal/menu_entry.c.
26275
26276 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26277
26278 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26279
26280 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26281
26282 * util/grub-install.in: Install gettext .mo files.
26283 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26284
26285 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26286
26287 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26288 grub_dprintf.
26289
26290 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26291
26292 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26293 non-firmware-dependant one in realmode.S takes precedence.
26294
26295 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26296
26297 * commands/halt.c: Replace misc arch-specific headers with
26298 `<grub/misc.h>'.
26299 * commands/reboot.c: Likewise.
26300 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26301 `<grub/misc.h>'.
26302 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26303 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26304 (kernel_img_SOURCES): ... to here.
26305
26306 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26307 * include/grub/i386/pc/init.h: Likewise.
26308 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26309 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26310
26311 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26312
26313 * include/grub/i386/halt.h: Remove.
26314 * include/grub/i386/reboot.h: Likewise.
26315
26316 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26317
26318 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26319
26320 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26321 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26322 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26323 "progname.h"
26324 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26325 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26326 (usage): Add missing comma in printf.
26327
26328 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26329
26330 Use the same reboot approach on i386 coreboot and qemu as we do on
26331 BIOS.
26332
26333 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26334 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26335 * kern/i386/reboot.c: Remove.
26336 * include/grub/i386/reboot.h (grub_reboot): Export function.
26337 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26338 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26339 0xf000:0xfff0 instead of 0xffff:0x0000.
26340 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26341 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26342
26343 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26344
26345 Fix $srcdir != $objdir build.
26346
26347 * Makefile.in (po/%.po): Rewrite as ...
26348 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26349
26350 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26351
26352 Fix GNU/Hurd grub-install crash.
26353 * util/grub-probe.c (probe): Try to access `path' only when it is not
26354 NULL.
26355
26356 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26357
26358 Correct module naming.
26359
26360 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26361 (GRUB_MOD_INIT(efi_uga)): ... to this
26362 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26363 (GRUB_MOD_FINI(efi_uga)): ... to this
26364 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26365 (GRUB_MOD_INIT(efi_gop)): ... to this
26366 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26367 (GRUB_MOD_FINI(efi_gop)): ... to this
26368
26369 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26370
26371 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26372 translatable.
26373 (usage): Translate `arg' strings using gettext().
26374 Thanks to Jordi Mallach for the suggestion.
26375
26376 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26377
26378 GOP support. Based on patch from Bean
26379 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26380
26381 * video/efi_gop.c: New file.
26382 * include/grub/efi/graphics_output.h: Likewise.
26383 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26384 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26385 variables.
26386 * conf/x86_64-efi.rmk: Likewise.
26387
26388 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26389
26390 Rename efi_fb to efi_uga.
26391
26392 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26393 'efi_uga.mod'.
26394 (efi_fb_mod_SOURCES): Rename this ...
26395 (efi_uga_mod_SOURCES): ... to this.
26396 (efi_fb_mod_CFLAGS): Rename this ...
26397 (efi_uga_mod_CFLAGS): ... to this.
26398 (efi_fb_mod_LDFLAGS): Rename this ...
26399 (efi_uga_mod_LDFLAGS): ... to this.
26400 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26401 'efi_uga.mod'.
26402 (efi_fb_mod_SOURCES): Rename this ...
26403 (efi_uga_mod_SOURCES): ... to this.
26404 (efi_fb_mod_CFLAGS): Rename this ...
26405 (efi_uga_mod_CFLAGS): ... to this.
26406 (efi_fb_mod_LDFLAGS): Rename this ...
26407 (efi_uga_mod_LDFLAGS): ... to this.
26408 * video/efi_fb.c: Move this ...
26409 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26410
26411 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26412
26413 * po/README: New file. Explain our PO file workflow.
26414
26415 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26416
26417 * po/ChangeLog: Remove. Move relevant entries back to ...
26418 * ChangeLog: ... here.
26419 * po/ca.po: Remove (now handled by TLP).
26420 * po/id.po: Likewise.
26421 * po/zh_CN.po: Likewise.
26422 * Makefile.in (LINGUAS): Initialize in a way that supports
26423 empty set.
26424
26425 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26426
26427 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26428 reliing on po/LINGUAS.
26429 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26430 (po/%.po): ... this.
26431
26432 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26433
26434 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26435 (main): Use `program_name' instead of nonexistent `progname'.
26436
26437 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26438
26439 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26440 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26441
26442 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26443
26444 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26445 commit.
26446 * conf/i386-efi.rmk: Likewise.
26447 * conf/i386-ieee1275.rmk: Likewise.
26448 * conf/powerpc-ieee1275.rmk: Likewise.
26449 * conf/sparc64-ieee1275.rmk: Likewise.
26450 * conf/x86_64-efi.rmk: Likewise.
26451
26452 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26453
26454 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26455
26456 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26457
26458 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26459
26460 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26461
26462 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26463 (grub_mkdevicemap_SOURCES): New variable.
26464 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26465 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26466 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26467 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26468 (grub_mkdevicemap_SOURCES): Remove.
26469 * conf/i386-efi.rmk: Likewise.
26470 * conf/i386-ieee1275.rmk: Likewise.
26471 * conf/i386-pc.rmk: Likewise.
26472 * conf/powerpc-ieee1275.rmk: Likewise.
26473 * conf/sparc64-ieee1275.rmk: Likewise.
26474 * conf/x86_64-efi.rmk: Likewise.
26475 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26476 (usage): Fix strings to use `program_name'.
26477 (main): Initialize gettext.
26478 * util/grub-editenv.c: Likewise.
26479 * util/grub-emu.c: Likewise.
26480 * util/grub-fstest.c: Likewise.
26481 * util/grub-mkdevicemap.c: Likewise.
26482 * util/grub-mkfont.c: Likewise.
26483 * util/grub-mkrelpath.c: Likewise.
26484 * util/grub-pe2elf.c: Likewise.
26485 * util/grub-probe.c: Likewise.
26486 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26487 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26488 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26489
26490 * util/misc.c: Include `"progname.h"'.
26491 (progname): Remove variable.
26492 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26493
26494 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26495
26496 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26497 printf and print a newline after the menuentry header line.
26498 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26499
26500 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26501
26502 autoconf >= 2.60 support $(localedir).
26503
26504 * INSTALL: Note that autoconf 2.60 is required.
26505 * configure.ac (AC_PREREQ): Bump to 2.60.
26506 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26507 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26508
26509 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26510
26511 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26512 aclocal is run.
26513
26514 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26515
26516 * normal/main.c (grub_normal_read_line): Fix off-by-one
26517 buffer overflow.
26518
26519 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26520
26521 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26522 "parser.grub" in grub_command_execute() call.
26523
26524 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26525
26526 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26527 * conf/i386-efi.rmk: Likewise.
26528 * conf/i386-ieee1275.rmk: Likewise.
26529 * conf/i386-pc.rmk: Likewise.
26530 * conf/powerpc-ieee1275.rmk: Likewise.
26531 * conf/sparc64-ieee1275.rmk: Likewise.
26532 * conf/x86_64-efi.rmk: Likewise.
26533 * gettext/gettex.c: Include <grub/i18n.h>.
26534 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26535 here ...
26536 * include/grub/i18n.h: ... to here
26537 * include/grub/i18n.h: ... to here.
26538 * kern/misc.c: Include <grub/i18n.h>
26539 (grub_gettext_dummy): Move above user.
26540
26541 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26542
26543 * util/Makefile.in (install-local): Convert a `for' into a normal
26544 shell expansion.
26545
26546 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26547
26548 * autogen.sh: Add automake call.
26549 * config.guess: Remove.
26550 * config.sub: Likewise.
26551 * install-sh: Likewise.
26552
26553 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26554
26555 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26556
26557 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26558
26559 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26560 function to a normal shell `for'.
26561
26562 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26563
26564 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26565
26566 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26567
26568 * util/grub-mkrelpath.c: New file.
26569 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26570 (grub_mkrelpath_SOURCES): New variable.
26571 * include/grub/util/misc.h: New function prototype.
26572 * util/misc.c (make_system_path_relative_to_its_root): New function.
26573
26574 * util/grub-mkconfig_lib.in (bindir): New variable.
26575 (grub_mkrelpath): Likewise.
26576 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26577
26578 * util/probe.c (probe): Make the file path relative to its root.
26579 Change a info message to use the GRUB path. Enable again the
26580 check if we can read the file with GRUB facilities.
26581
26582 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26583 to its root.
26584
26585 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26586
26587 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26588 platform.
26589
26590 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26591
26592 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26593 strncmp().
26594
26595 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26596
26597 * util/getroot.c (grub_util_is_dmraid): New function.
26598 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26599 devices as normal ones, not as LVM.
26600
26601 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26602
26603 * conf/common.rmk: Add grub-gettext_lib target and updates
26604 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26605 LDFLAGS.
26606 * gettext/gettext.c: New file. (Reads mo files).
26607 * include/grub/file.h (grub_file_pread): New prototype.
26608 * include/grub/i18n.h (_): New prototype.
26609 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26610 prototypes.
26611 * kern/misc.c (grub_gettext_dummy): New function.
26612 * normal/menu_text.c: Include <grub/i18n.h>.
26613 * normal/menu_text.c (print_timeout): Gettexttize string.
26614 * normal/menu_text.c (print_message): Gettexttize string.
26615 * po/POTFILES: Add `normal/menu_text.c'.
26616 * po/ca.po: Add new translations.
26617 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26618 gettext module and defines locale_dir and lang in grub.cfg.
26619 * NEWS: Add gettext support.
26620
26621 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26622
26623 * util/hostdisk.c: Include `<grub/i18n.h>'.
26624 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26625 (make_device_name): Rewrite using asprintf.
26626 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26627 (find_system_device): If a device is not found, generate one just
26628 by reusing the OS path name.
26629 (read_device_map): Make it permissible for device.map not to exist.
26630
26631 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26632
26633 * script/sh/execute.c: Move from here ...
26634 * script/execute.c: ... to here. Update all users.
26635 * script/sh/function.c: Move from here ...
26636 * script/function.c: ... to here. Update all users.
26637 * script/sh/lexer.c: Move from here ...
26638 * script/lexer.c: ... to here. Update all users.
26639 * script/sh/main.c: Move from here ...
26640 * script/main.c: ... to here. Update all users.
26641 * script/sh/parser.y: Move from here ...
26642 * script/parser.y: ... to here. Update all users.
26643 * script/sh/script.c: Move from here ...
26644 * script/script.c: ... to here. Update all users.
26645
26646 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26647
26648 * configure.ac: Detect all `emu' platforms. Define
26649 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26650 --enable-grub-emu logic. Disable include/grub/machine
26651 symlink on `emu' platforms.
26652
26653 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26654 * gensymlist.sh.in: Likewise.
26655
26656 * include/grub/i386/coreboot/machine.h: Remove file.
26657 * include/grub/i386/efi/machine.h: Likewise.
26658 * include/grub/i386/ieee1275/machine.h: Likewise.
26659 * include/grub/i386/pc/machine.h: Likewise.
26660 * include/grub/i386/qemu/machine.h: Likewise.
26661 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26662 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26663 * include/grub/x86_64/efi/machine.h: Likewise.
26664
26665 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26666 * commands/halt.c: Likewise.
26667 * commands/reboot.c: Likewise.
26668 * include/grub/autoefi.h: Likewise.
26669 * include/grub/i386/at_keyboard.h: Likewise.
26670 * include/grub/i386/kernel.h: Likewise.
26671 * include/grub/i386/loader.h: Likewise.
26672 * include/grub/i386/pc/memory.h: Likewise.
26673 * kern/dl.c: Likewise.
26674 * kern/i386/coreboot/init.c: Likewise.
26675 * loader/i386/bsd.c: Likewise.
26676 * loader/i386/linux.c: Likewise.
26677 * loader/multiboot_loader.c: Likewise.
26678 * term/i386/pc/serial.c: Likewise.
26679 * term/usb_keyboard.c: Likewise.
26680
26681 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26682 `<grub/machine/machine.h>'
26683 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26684 * util/misc.c: Remove `<grub/machine/machine.h>' and
26685 `<grub/machine/time.h>'.
26686
26687 * Makefile.in (enable_grub_emu): Remove variable.
26688 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26689
26690 * conf/any-emu.rmk: New file.
26691 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26692 (grub_emu_init.c): Move from here ...
26693 * conf/any-emu.rmk: ... to here.
26694
26695 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26696 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26697 * conf/any-emu.rmk: ... to here.
26698
26699 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26700
26701 * include/grub/parser.h (grub_parser_register): Document need
26702 of `name' parameter.
26703 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26704 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26705 "sh" to "grub".
26706
26707 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26708
26709 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26710 `$(XGETTEXT)'.
26711 * include/grub/i18n.h (N_): New macro.
26712 * util/mkisofs/mkisofs.h: Likewise.
26713 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26714 around N_().
26715 (usage): Use gettext() to translate help strings when printing them.
26716
26717 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26718
26719 Based on patch from Bean
26720 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26721
26722 * video/efi_fb.c: New file.
26723 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26724 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26725 variables.
26726 * conf/x86_64-efi.rmk: Likewise.
26727
26728 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26729
26730 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26731 * util/i386/pc/grub-setup.c: Likewise.
26732
26733 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26734
26735 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26736 <hurd/fs.h>
26737 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26738 file_get_storage_info to implement grub_guess_root_device.
26739
26740 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26741
26742 * Makefile.in (target): Use make's builtin $(shell) function
26743 instead of calling directly $(SHELL) to create the locale directories,
26744 inside the $(foreach) function.
26745
26746 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26747
26748 * util/grub-mkrescue.in: Print an error and usage if output option
26749 has not been given.
26750
26751 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26752
26753 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26754 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26755 root and /boot are on different devices.
26756
26757 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26758
26759 Fix build for srcdir != objdir.
26760
26761 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26762 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26763 $(srcdir).
26764 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26765 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26766 reference for input.
26767
26768 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26769
26770 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26771 or hardlinking it). Remove -J option, Joliet is not compatible with
26772 multiple source directories.
26773
26774 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26775 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26776
26777 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26778 (process_input_dir): New function. Process an arbitrary input
26779 directory.
26780 Misc adjustments to support both "override mode" and system-wide mode.
26781
26782 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26783
26784 * configure.ac (UNIFONT_BDF): Rename to ...
26785 (FONT_SOURCE): ... this. Update all users.
26786
26787 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26788
26789 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26790 to the list of unifont files to look for.
26791
26792 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26793
26794 Patch from Joe Auricchio <jauricchio@gmail.com>
26795 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26796 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26797 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26798
26799 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26800
26801 * Makefile.in (install-local): Add a missing backslash.
26802
26803 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26804
26805 * include/grub/x86_64/io.h: New file.
26806
26807 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26808
26809 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26810 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26811 Include `"progname.h"'.
26812 (main): Initialize gettext.
26813 * util/i386/pc/grub-setup.c: Gettexttize.
26814 * util/i386/pc/grub-mkimage.c: Likewise.
26815
26816 * Makefile.in (po/*.po): Redefine as ...
26817 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26818
26819 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26820
26821 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26822
26823 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26824 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26825 (program_name): Remove.
26826 (main): Initialize gettext support.
26827 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26828 Include `<libintl.h>'.
26829 (_): New macro.
26830
26831 * util/mkisofs/eltorito.c: Gettexttize.
26832 * util/mkisofs/joliet.c: Likewise.
26833 * util/mkisofs/mkisofs.c: Likewise.
26834 * util/mkisofs/multi.c: Likewise.
26835 * util/mkisofs/rock.c: Likewise.
26836 * util/mkisofs/tree.c: Likewise.
26837 * util/mkisofs/write.c: Likewise.
26838
26839 * po/POTFILES: Update with new files.
26840
26841 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26842
26843 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26844 * util/mkisofs/iso9660.h: Likewise.
26845 * util/mkisofs/joliet.c: Likewise.
26846 * util/mkisofs/mkisofs.c: Likewise.
26847 * util/mkisofs/mkisofs.h: Likewise.
26848 * util/mkisofs/rock.c: Likewise.
26849 * util/mkisofs/tree.c: Likewise.
26850 * util/mkisofs/write.c: Likewise.
26851
26852 * util/mkisofs/eltorito.c (rcsid): Remove.
26853 * util/mkisofs/hash.c: Likewise.
26854 * util/mkisofs/joliet.c: Likewise.
26855 * util/mkisofs/name.c: Likewise.
26856 * util/mkisofs/rock.c: Likewise.
26857 * util/mkisofs/tree.c: Likewise.
26858 * util/mkisofs/write.c: Likewise.
26859
26860 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26861
26862 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26863 instead of static allocation.
26864 * util/mkisofs/match.h: Likewise.
26865
26866 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26867
26868 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26869 and `util/grub.d/10_linux.in'.
26870 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26871 translatable Shell files.
26872
26873 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26874
26875 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26876
26877 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26878
26879 * INSTALL: Document Automake is needed for bootstrap.
26880 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26881 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26882 Add gettext initialization.
26883 (kfreebsd_entry): Make menuentry output translatable.
26884
26885 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26886
26887 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26888 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26889 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26890 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26891 (LINGUAS): Auto-generate using `po/LINGUAS'.
26892 * po/LINGUAS: New file.
26893
26894 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26895
26896 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26897 other things).
26898 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26899 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26900 bindtextdomain() calls for gettext initialization.
26901
26902 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26903
26904 * gnulib/progname.c: New file (imported from Gnulib).
26905 * gnulib/progname.h: Likewise.
26906 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26907 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26908 (usage): Replace `progname' with `program_name'.
26909 (main): Use set_program_name() for program name initialization.
26910
26911 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26912
26913 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26914 from here ...
26915 * Makefile.in (CPPFLAGS): ... to here.
26916
26917 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26918
26919 * aclocal.m4: Move from here ...
26920 * acinclude.m4: ... to here.
26921 * autogen.sh: Add call to `aclocal'.
26922 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26923
26924 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26925
26926 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26927 (LINGUAS): New variable.
26928 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26929 (install-local): Install MO files.
26930 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26931 * include/grub/i18n.h: New file.
26932 * po/POTFILES: New file.
26933 * po/ca.po: New file.
26934 * util/grub.d/10_linux.in (bindir): New variable.
26935 Add gettext initialization.
26936 (linux_entry): Make menuentry output translatable.
26937 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
26938 (usage): Make --help output translatable.
26939 (main): Initialize gettext.
26940
26941 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26942
26943 * import_gcry.py: New file (written by Vladimir with minor
26944 adjustments).
26945 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
26946 ciphers.
26947 * INSTALL: Document that Python is required for bootstrap.
26948
26949 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26950
26951 Import ciphers from libgcrypt 1.4.4.
26952
26953 * lib/libgcrypt/cipher/ChangeLog
26954 * lib/libgcrypt/cipher/ac.c
26955 * lib/libgcrypt/cipher/arcfour.c
26956 * lib/libgcrypt/cipher/bithelp.h
26957 * lib/libgcrypt/cipher/blowfish.c
26958 * lib/libgcrypt/cipher/camellia-glue.c
26959 * lib/libgcrypt/cipher/camellia.c
26960 * lib/libgcrypt/cipher/camellia.h
26961 * lib/libgcrypt/cipher/cast5.c
26962 * lib/libgcrypt/cipher/cipher.c
26963 * lib/libgcrypt/cipher/crc.c
26964 * lib/libgcrypt/cipher/des.c
26965 * lib/libgcrypt/cipher/dsa.c
26966 * lib/libgcrypt/cipher/ecc.c
26967 * lib/libgcrypt/cipher/elgamal.c
26968 * lib/libgcrypt/cipher/hash-common.c
26969 * lib/libgcrypt/cipher/hash-common.h
26970 * lib/libgcrypt/cipher/hmac-tests.c
26971 * lib/libgcrypt/cipher/md.c
26972 * lib/libgcrypt/cipher/md4.c
26973 * lib/libgcrypt/cipher/md5.c
26974 * lib/libgcrypt/cipher/primegen.c
26975 * lib/libgcrypt/cipher/pubkey.c
26976 * lib/libgcrypt/cipher/rfc2268.c
26977 * lib/libgcrypt/cipher/rijndael-tables.h
26978 * lib/libgcrypt/cipher/rijndael.c
26979 * lib/libgcrypt/cipher/rmd.h
26980 * lib/libgcrypt/cipher/rmd160.c
26981 * lib/libgcrypt/cipher/rsa.c
26982 * lib/libgcrypt/cipher/seed.c
26983 * lib/libgcrypt/cipher/serpent.c
26984 * lib/libgcrypt/cipher/sha1.c
26985 * lib/libgcrypt/cipher/sha256.c
26986 * lib/libgcrypt/cipher/sha512.c
26987 * lib/libgcrypt/cipher/tiger.c
26988 * lib/libgcrypt/cipher/twofish.c
26989 * lib/libgcrypt/cipher/whirlpool.c
26990
26991 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26992
26993 Fix build for systems without error().
26994
26995 * gnulib/error.c: New file (imported from Gnulib).
26996 * gnulib/error.h: Likewise.
26997 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
26998 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
26999 (this variable is now used by error()).
27000
27001 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27002
27003 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27004 instead of relying that char is signed.
27005
27006 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27007
27008 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27009 blocksize different from specified.
27010 (grub_pxefs_read): Likewise.
27011
27012 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27013
27014 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27015
27016 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27017 (grub_ata_readwrite): Likewise. Update 2 format strings.
27018 (grub_atapi_read): Likewise.
27019
27020 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27021 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27022 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27023 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27024 (ata_mod_LDFLAGS): Move from here ...
27025 * conf/i386.rmk: ... to here ...
27026 * conf/x86_64-efi.rmk: ... and here.
27027 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27028 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27029
27030 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27031
27032 Relicense multiboot.h, with RMS' blessing.
27033
27034 * include/multiboot.h: Change to X11 license.
27035
27036 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27037
27038 Support --version in grub-mkisofs.
27039
27040 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27041 (OPTION_VERSION): New macro.
27042 (ld_options): Recognize --version.
27043 (usage): Move `program_name' from here ...
27044 (program_name): ... to here. Add `static' qualifier.
27045 (main): Recognize `OPTION_VERSION'.
27046
27047 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27048
27049 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27050 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27051
27052 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27053
27054 Fix help2man generation for mkisofs.
27055
27056 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27057 (usage): Send output to stdout (rather than stderr).
27058
27059 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27060
27061 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27062 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27063 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27064 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27065 (bin_SCRIPTS): Add `grub-mkfloppy'.
27066 (grub_mkfloppy_SOURCES): New variable.
27067
27068 * util/grub-mkrescue.in: New file.
27069 * util/i386/pc/grub-mkfloppy.in: New file.
27070
27071 * util/i386/coreboot/grub-mkrescue.in: Remove.
27072 * util/i386/pc/grub-mkrescue.in: Remove.
27073
27074 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27075
27076 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27077 from here ...
27078 * include/multiboot.h (struct multiboot_header): ... to here. Update
27079 all users.
27080 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27081 from here ...
27082 * include/multiboot.h (struct multiboot_info): ... to here. Update
27083 all users.
27084 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27085 from here ...
27086 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27087 Update all users.
27088 * include/grub/multiboot.h (struct grub_mod_list): Move
27089 from here ...
27090 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27091 Update all users.
27092
27093 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27094
27095 * include/multiboot2.h (multiboot_word): Rename from this ...
27096 (multiboot2_word): ... to this. Update all users.
27097 (multiboot_header): Rename from this ...
27098 (multiboot2_header): ... to this. Update all users.
27099 (multiboot_tag_header): Rename from this ...
27100 (multiboot2_tag_header): ... to this. Update all users.
27101 (multiboot_tag_start): Rename from this ...
27102 (multiboot2_tag_start): ... to this. Update all users.
27103 (multiboot_tag_name): Rename from this ...
27104 (multiboot2_tag_name): ... to this. Update all users.
27105 (multiboot_tag_module): Rename from this ...
27106 (multiboot2_tag_module): ... to this. Update all users.
27107 (multiboot_tag_memory): Rename from this ...
27108 (multiboot2_tag_memory): ... to this. Update all users.
27109 (multiboot_tag_unused): Rename from this ...
27110 (multiboot2_tag_unused): ... to this. Update all users.
27111 (multiboot_tag_end): Rename from this ...
27112 (multiboot2_tag_end): ... to this. Update all users.
27113
27114 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27115
27116 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27117 this platform we should support Multiboot1 first.
27118
27119 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27120 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27121 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27122
27123 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27124
27125 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27126 of write calls (converting them to fwrite() if they aren't already).
27127 (get_torito_desc): Likewise.
27128 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27129
27130 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27131
27132 * util/i386/pc/grub-install.in: Move from here ...
27133 * util/grub-install.in: ... to here. Update all users.
27134
27135 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27136
27137 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27138
27139 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27140
27141 Support for El Torito without floppy emulation.
27142
27143 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27144 (init_boot_catalog): Improve error handling.
27145 (get_torito_desc): Don't use floppy emulation unless requested by
27146 user. Patch boot information table when requested via
27147 `-boot-info-table'.
27148 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27149 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27150 (use_boot_info_table): New variables.
27151 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27152 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27153 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27154 `--eltorito-emul-floppy'.
27155 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27156 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27157 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27158 (use_boot_info_table, get_731): New prototypes.
27159 * util/mkisofs/write.c (get_731): New function.
27160
27161 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27162
27163 Fix the generation of the man page.
27164
27165 * util/pc/i386/grub-install.in: Source
27166 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27167
27168 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27169
27170 Large file support for grub-mkisofs.
27171
27172 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27173 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27174 (session_start): Upgrade type to `uint64_t'. Update all users.
27175 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27176 (struct directory_entry): Upgrade type of `starting_block' and
27177 `size' to `uint64_t'. Update all users.
27178 (struct deferred): Remove unused structure.
27179 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27180 Update all users.
27181 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27182 file is larger than `UINT32_MAX'.
27183 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27184 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27185 return value.
27186 (struct deferred_write): Upgrade type of `extent' and `size' to
27187 `uint64_t'. Update all users.
27188 (last_extent_written): Upgrade type to `uint64_t'. Update all
27189 users.
27190 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27191 Update all users. Upgrade type of `remain' to `int64_t' and
27192 `use' to `size_t'. Use error() to handle fread() errors.
27193 (write_files): Rely on write_one_file() rather than calling
27194 xfwrite() directly.
27195
27196 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27197
27198 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27199
27200 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27201
27202 * util/mkisofs/fnmatch.c: Remove.
27203 * util/mkisofs/getopt1.c: Likewise.
27204 * util/mkisofs/getopt.c: Likewise.
27205 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27206 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27207 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27208 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27209 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27210
27211 * configure.ac: Detect `mingw32msvc' host_os.
27212 Check for lstat(), getuid() and getgid().
27213
27214 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27215 instances of `u_char' with `uint8_t'.
27216
27217 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27218 [!HAVE_GETUID] (getuid): New function (stub).
27219 [!HAVE_GETGID] (getgid): Likewise.
27220 [!HAVE_LSTAT] (lstat): Likewise.
27221 [!S_IROTH] (S_IROTH): New macro (dummy).
27222 [!S_IRGRP] (S_IRGRP): Likewise.
27223
27224 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27225
27226 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27227 conditional expression).
27228
27229 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27230
27231 Import from Gnulib.
27232
27233 * gnulib/fnmatch.c: New file.
27234 * gnulib/fnmatch.h: Likewise.
27235 * gnulib/fnmatch_loop.c: Likewise.
27236 * gnulib/getopt.c: Likewise.
27237 * gnulib/getopt.h: Likewise.
27238 * gnulib/getopt1.c: Likewise.
27239 * gnulib/getopt_int.h: Likewise.
27240 * gnulib/gettext.h: Likewise.
27241
27242 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27243
27244 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27245 * normal/handler.c (read_handler_list): Likewise.
27246
27247 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27248
27249 Misc cleanup.
27250
27251 * kern/command.c (grub_register_command_prio): Use
27252 grub_zalloc() instead of explicitly zeroing data.
27253 * kern/list.c: Include `<grub/mm.h>'.
27254 (grub_named_list_find): Replace `0' with `NULL'.
27255 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27256 (fs_module_list): Change type to `grub_named_list_t'. Update all
27257 users.
27258 * normal/dyncmd.c (read_command_list): Add space between function
27259 call and parenthesis.
27260 * normal/handler.c (read_handler_list): Likewise.
27261
27262 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27263
27264 * normal/auth.c (punishment_delay): Moved from here ...
27265 (grub_auth_strcmp): ... to here (inside function).
27266
27267 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27268
27269 * include/grub/list.h (struct grub_named_list): Remove `const'
27270 qualifier from `name'.
27271 (struct grub_prio_list): Likewise.
27272
27273 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27274
27275 * normal/auth.c: Include `<grub/time.h>'.
27276 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27277
27278 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27279
27280 * normal/auth.c (punishment_delay): New variable.
27281 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27282 (grub_auth_check_authentication): Punish failed login attempts with
27283 an incremental (2^N) delay.
27284
27285 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27286
27287 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27288 path with $(srcdir).
27289
27290 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27291
27292 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27293
27294 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27295
27296 * util/i386/coreboot/grub-mkrescue.in: New file.
27297 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27298 variables.
27299
27300 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27301 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27302 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27303 requirements.
27304 * util/mkisofs/defaults.h: New file.
27305 * util/mkisofs/eltorito.c: Likewise.
27306 * util/mkisofs/exclude.h: Likewise.
27307 * util/mkisofs/fnmatch.c: Likewise.
27308 * util/mkisofs/getopt.c: Likewise.
27309 * util/mkisofs/getopt1.c: Likewise.
27310 * util/mkisofs/hash.c: Likewise.
27311 * util/mkisofs/include/fctldefs.h: Likewise.
27312 * util/mkisofs/include/mconfig.h: Likewise.
27313 * util/mkisofs/include/prototyp.h: Likewise.
27314 * util/mkisofs/include/statdefs.h: Likewise.
27315 * util/mkisofs/iso9660.h: Likewise.
27316 * util/mkisofs/joliet.c: Likewise.
27317 * util/mkisofs/match.c: Likewise.
27318 * util/mkisofs/match.h: Likewise.
27319 * util/mkisofs/mkisofs.c: Likewise.
27320 * util/mkisofs/mkisofs.h: Likewise.
27321 * util/mkisofs/multi.c: Likewise.
27322 * util/mkisofs/name.c: Likewise.
27323 * util/mkisofs/rock.c: Likewise.
27324 * util/mkisofs/tree.c: Likewise.
27325 * util/mkisofs/write.c: Likewise.
27326
27327 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27328
27329 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27330 being insecure.
27331
27332 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27333
27334 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27335 `grub-mkimage' (and use $0 when possible).
27336
27337 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27338
27339 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27340 error message for excessively large memory map.
27341
27342 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27343
27344 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27345 executable bit.
27346
27347 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27348
27349 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27350 message for coreboot users.
27351
27352 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27353
27354 Fix build with GNU gold.
27355
27356 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27357 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27358 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27359 link addresses.
27360 * aclocal.m4: Likewise.
27361
27362 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27363
27364 * configure.ac (AC_PREREQ): Bump to 2.59d.
27365 * INSTALL: Make it more clear when Autoconf and Ruby are
27366 needed and when to run `./autogen.sh'.
27367
27368 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27369
27370 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27371 OSes.
27372
27373 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27374
27375 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27376
27377 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27378
27379 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27380 giving it to GNU Mach.
27381
27382 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27383
27384 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27385 GNU partition number to get internal GRUB partition number.
27386
27387 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27388
27389 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27390 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27391
27392 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27393
27394 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27395 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27396 case.
27397
27398 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27399
27400 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27401
27402 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27403
27404 Fix build problem.
27405
27406 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27407 `-isystem=$(srcdir)/include'.
27408
27409 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27410
27411 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27412 checked (grub-install doesn't currently rely on it).
27413
27414 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27415
27416 Revert SVN r2660.
27417
27418 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27419 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27420 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27421 * conf/i386-ieee1275.rmk: Likewise.
27422 * conf/i386-pc.rmk: Likewise.
27423 * conf/powerpc-ieee1275.rmk: Likewise.
27424 * conf/sparc64-ieee1275.rmk: Likewise.
27425 * conf/x86_64-efi.rmk: Likewise.
27426
27427 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27428
27429 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27430
27431 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27432
27433 * include/grub/misc.h: Stop checking for APPLE_CC.
27434
27435 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27436
27437 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27438 doesn't cause an infinite call loop.
27439
27440 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27441
27442 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27443 strings.
27444
27445 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27446
27447 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27448 variable.
27449 * Makefile.in: Likewise.
27450
27451 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27452
27453 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27454
27455 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27456
27457 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27458
27459 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27460
27461 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27462
27463 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27464
27465 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27466 from here ...
27467 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27468
27469 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27470
27471 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27472 in $(MAKEINFO) invocation. This makes it clear in output that
27473 errors are being ignored.
27474
27475 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27476
27477 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27478 from here ...
27479 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27480 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27481 * conf/i386-ieee1275.rmk: Likewise.
27482 * conf/i386-pc.rmk: Likewise.
27483 * conf/powerpc-ieee1275.rmk: Likewise.
27484 * conf/sparc64-ieee1275.rmk: Likewise.
27485 * conf/x86_64-efi.rmk: Likewise.
27486
27487 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27488
27489 * util/grub-editenv.c (main): If only a command is given, use
27490 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27491 (usage): FILENAME is now optional and has a default.
27492
27493 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27494
27495 Improve grub-mkconfig performance when there are several menu
27496 entries on a single filesystem.
27497
27498 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27499 prepare_grub_to_access_device.
27500 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27501 * util/grub.d/30_os-prober.in: Likewise.
27502
27503 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27504
27505 * util/grub.d/10_freebsd.in: Remove.
27506 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27507 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27508
27509 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27510
27511 * docs/grub.cfg: Fix example usage of *BSD loaders.
27512
27513 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27514
27515 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27516 grub_util_error() call.
27517
27518 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27519
27520 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27521 `reserved_first_sector' member.
27522 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27523 `reserved_first_sector' to 1.
27524 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27525 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27526 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27527 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27528 filesystems which begin at first sector.
27529 (options): New option --skip-fs-probe.
27530 (main): Handle --skip-fs-probe and pass it to setup().
27531
27532 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27533
27534 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27535 (memset): Fix function prototype.
27536
27537 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27538 2009-10-25 Vasily Averin <vvs@parallels.com>
27539
27540 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27541 `dirent.direntlen == 0'.
27542
27543 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27544
27545 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27546 `cpio'.
27547 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27548
27549 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27550
27551 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27552 `__trampoline_setup' and `__ucmpdi2'.
27553 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27554 that libgcc provides.
27555
27556 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27557
27558 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27559 * include/grub/sparc64/libgcc.h (memset): Likewise.
27560 * include/grub/misc.h (memset, memcmp): New function prototypes.
27561
27562 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27563
27564 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27565 `cpio'.
27566 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27567
27568 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27569
27570 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27571 * docs/grub.cfg: Compensate for recent change in multiboot
27572 loader (since 2009-08-14 it won't pass filename to payload).
27573 * util/grub.d/10_hurd.in: Likewise.
27574
27575 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27576
27577 * config.guess: Update to latest version from config git
27578 repository.
27579 * config.sub: Likewise.
27580
27581 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27582
27583 Fix build on sparc64.
27584
27585 * configure.ac: Perform checks for libgcc symbols before
27586 adding `-nostdlib' to LDFLAGS.
27587
27588 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27589
27590 Let user specify OpenBSD root device.
27591
27592 * loader/i386/bsd.c (openbsd_root): New variable.
27593 (openbsd_opts): New option 'root'.
27594 (OPENBSD_ROOT_ARG): New macro.
27595 (grub_openbsd_boot): Use 'openbsd_root'.
27596 (grub_cmd_openbsd): Fill 'openbsd_root'.
27597
27598 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27599
27600 * NEWS: Misc adjustments.
27601
27602 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27603
27604 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27605
27606 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27607
27608 * configure.ac: Bump version to 1.97.
27609
27610 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27611
27612 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27613 -mno-3dnow on x86 architectures. Some toolchains enable these
27614 features by default, but they rely on registers that aren't enabled
27615 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27616
27617 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27618
27619 Make entry text a bit more readable.
27620
27621 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27622
27623 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27624
27625 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27626
27627 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27628
27629 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27630 operations.
27631
27632 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27633
27634 * configure.ac: Add missing dollar.
27635
27636 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27637
27638 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27639
27640 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27641 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27642 exports.
27643 * include/grub/sparc64/libgcc.h: Likewise. Use
27644 preprocessor conditionals.
27645
27646 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27647
27648 * conf/common.rmk (grub-dumpbios): Remove rule.
27649 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27650 * util/grub-dumpbios.in: Remove file.
27651
27652 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27653
27654 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27655 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27656
27657 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27658 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27659 users.
27660
27661 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27662 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27663 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27664 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27665 users.
27666
27667 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27668
27669 * term/tparm.c: Switch to GPLv3.
27670
27671 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27672
27673 * include/grub/i386/cpuid.h: Add header protection.
27674
27675 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27676
27677 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27678
27679 * include/grub/i386/cpuid.h: New file.
27680 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27681 (has_longmode): Rename to ...
27682 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27683 `static' attribute.
27684 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27685 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27686 on a CPU that doesn't implement AMD64 instruction set.
27687
27688 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27689
27690 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27691 that version.texi is rebuilt on version number changes.
27692
27693 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27694
27695 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27696 Fixes bug #27602.
27697
27698 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27699
27700 * util/i386/pc/grub-install.in: Source
27701 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27702 that the --grub-probe option will work.
27703 * util/sparc64/ieee1275/grub-install.in: Likewise.
27704
27705 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27706
27707 * configure.ac: Bump version to 1.97~beta4.
27708
27709 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27710
27711 Resync grub-mkdevicemap in x86_64-efi.
27712
27713 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27714 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27715 `util/devicemap.c'.
27716
27717 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27718
27719 * util/grub-editenv.c (create_envblk_file): Write new block with a
27720 .new suffix and then rename it into place, to ensure atomic
27721 creation.
27722
27723 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27724
27725 Do not automatically install headers.
27726
27727 * Makefile.in (include_DATA): Remove. Update all users.
27728
27729 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27730
27731 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27732 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27733
27734 * util/osdetect.lua: Remove.
27735 * script/lua/lauxlib.c: Likewise.
27736 * script/lua/ldebug.c: Likewise.
27737 * script/lua/grub_main.c: Likewise.
27738 * script/lua/lauxlib.h: Likewise.
27739 * script/lua/ldebug.h: Likewise.
27740 * script/lua/ltablib.c: Likewise.
27741 * script/lua/liolib.c: Likewise.
27742 * script/lua/lstrlib.c: Likewise.
27743 * script/lua/lualib.h: Likewise.
27744 * script/lua/ldo.c: Likewise.
27745 * script/lua/ldump.c: Likewise.
27746 * script/lua/ldo.h: Likewise.
27747 * script/lua/loslib.c: Likewise.
27748 * script/lua/lundump.c: Likewise.
27749 * script/lua/grub_lib.c: Likewise.
27750 * script/lua/ldblib.c: Likewise.
27751 * script/lua/lundump.h: Likewise.
27752 * script/lua/lmem.c: Likewise.
27753 * script/lua/grub_lib.h: Likewise.
27754 * script/lua/lmathlib.c: Likewise.
27755 * script/lua/lstate.c: Likewise.
27756 * script/lua/ltm.c: Likewise.
27757 * script/lua/lvm.c: Likewise.
27758 * script/lua/lmem.h: Likewise.
27759 * script/lua/lstate.h: Likewise.
27760 * script/lua/ltm.h: Likewise.
27761 * script/lua/ltable.c: Likewise.
27762 * script/lua/lvm.h: Likewise.
27763 * script/lua/llex.c: Likewise.
27764 * script/lua/lgc.c: Likewise.
27765 * script/lua/grub_lua.h: Likewise.
27766 * script/lua/loadlib.c: Likewise.
27767 * script/lua/lfunc.c: Likewise.
27768 * script/lua/lopcodes.c: Likewise.
27769 * script/lua/lparser.c: Likewise.
27770 * script/lua/ltable.h: Likewise.
27771 * script/lua/llex.h: Likewise.
27772 * script/lua/lgc.h: Likewise.
27773 * script/lua/lfunc.h: Likewise.
27774 * script/lua/lbaselib.c: Likewise.
27775 * script/lua/lopcodes.h: Likewise.
27776 * script/lua/lparser.h: Likewise.
27777 * script/lua/lzio.c: Likewise.
27778 * script/lua/linit.c: Likewise.
27779 * script/lua/lobject.c: Likewise.
27780 * script/lua/llimits.h: Likewise.
27781 * script/lua/lstring.c: Likewise.
27782 * script/lua/lzio.h: Likewise.
27783 * script/lua/lapi.c: Likewise.
27784 * script/lua/lcode.c: Likewise.
27785 * script/lua/lua.h: Likewise.
27786 * script/lua/lobject.h: Likewise.
27787 * script/lua/lstring.h: Likewise.
27788 * script/lua/lapi.h: Likewise.
27789 * script/lua/lcode.h: Likewise.
27790 * script/lua/luaconf.h: Likewise.
27791
27792 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27793
27794 * docs/grub.texi (Command-line and menu entry commands): Document
27795 date and echo commands.
27796
27797 2009-09-24 Pavel Roskin <proski@gnu.org>
27798
27799 * include/grub/kernel.h (struct grub_module_header): Remove
27800 `grub_module_header_types'. Make `type' unsigned. Make `size'
27801 32-bit on all platforms.
27802 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27803 8-bit field. Use grub_host_to_target32() for `size'.
27804 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27805 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27806 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27807
27808 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27809
27810 Fix "lost keypress" bug in at_keyboard.
27811
27812 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27813 Checks for readyness of input buffer (without flushing it).
27814 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27815 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27816
27817 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27818
27819 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27820 size check within GRUB_MACHINE_PCBIOS section.
27821
27822 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27823
27824 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27825 return value.
27826 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27827 KEYBOARD_ISREADY check.
27828 (grub_at_keyboard_checkkey): Rename to ...
27829 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27830 Remove gratuitous cast.
27831
27832 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27833
27834 * configure.ac: Call AC_PROG_MKDIR_P.
27835 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27836 version.texi in $(builddir) rather than $(srcdir).
27837 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27838 to makeinfo's @include search path.
27839
27840 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27841
27842 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27843
27844 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27845
27846 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27847 for `*.dpkg-new'.
27848
27849 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27850
27851 Build info documentation. Some code borrowed from Automake.
27852
27853 * configure.ac: Check for makeinfo.
27854 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27855 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27856 docs/version.texi.
27857 (MOSTLYCLEANFILES): Add vti.tmp.
27858 (docs/version.texi, docs/stamp-vti): Update automatically.
27859 (docs/grub.info): Build info documentation. Use --force and ignore
27860 errors for now.
27861 (all-local): Add $(INFOS).
27862 (install-local): Install info files.
27863 (uninstall): Uninstall info files.
27864 * docs/version.texi: Remove from revision control. This file is
27865 automatically generated on build now.
27866 * gendistlist.sh: Add `*.info'.
27867
27868 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27869
27870 * kern/term.c: Fix indentation.
27871
27872 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27873
27874 * util/hostdisk.c: Fix a comment.
27875
27876 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27877
27878 Fix regression introduced in r2539.
27879
27880 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27881 to 0xA1.
27882
27883 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27884
27885 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27886 os-prober. Under normal operation, it does not print anything to
27887 stderr; if it does, we need to debug it, and throwing away stderr
27888 makes that excessively difficult.
27889
27890 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27891
27892 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27893
27894 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27895
27896 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27897 AC_LANG_PROGRAM from autoconf.
27898 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27899 prototypes (fixes warning).
27900
27901 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27902 `--disable-werror' was used.
27903
27904 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27905
27906 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27907 uninitialized `lastaddr'.
27908
27909 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27910
27911 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27912
27913 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27914
27915 * commands/test.c (get_fileinfo): Return immediately if
27916 grub_fs_probe fails.
27917
27918 2009-09-14 José Martínez <xosemp@gmail.com>
27919
27920 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27921
27922 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27923
27924 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27925 output.
27926
27927 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27928
27929 * configure.ac: Remove --enable-grub-pe2elf. Only build
27930 grub-pe2elf when needed by the build system itself.
27931 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27932
27933 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27934
27935 * configure.ac: Bump version to 1.97~beta3.
27936 * docs/version.texi: Likewise.
27937
27938 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27939
27940 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
27941 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
27942 from here ...
27943 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
27944 (grub_linux_setup_video): ... to here (with some adjustments).
27945
27946 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27947
27948 Fix memory corruption issue (spotted by Colin Watson).
27949
27950 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
27951 causing returned size to be stored in an incorrect memory location.
27952 Fix use of uninitialized value when storing the returned size.
27953
27954 2009-09-12 Yves Blusseau <blusseau@zetam.org>
27955
27956 Change clean rules to properly remove files
27957
27958 * genmk.rb: add new clean rules
27959 * Makefile.in (clean): add the new targets
27960 (mostlyclean): likewise
27961
27962 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27963
27964 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
27965 to grub_uint64_t.
27966 * fs/ntfs.c (init_file): Understand 64-bit sizes for
27967 non-resident files.
27968
27969 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27970
27971 * configure.ac: Don't look for help2man when cross-compiling. Fixes
27972 part of bug #27349.
27973
27974 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27975
27976 * util/grub-mkconfig.in: Make the created config mode 400 and
27977 print a warning if it fails.
27978
27979 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
27980
27981 * util/grub.d/40_custom.in: Ask user to type custom entries below
27982 comment, rather than below 'exec tail' line.
27983
27984 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27985
27986 * util/grub.d/40_custom.in: Make sure that the explanatory text is
27987 visible in grub.cfg.
27988
27989 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27990
27991 * util/grub.d/40_custom.in: Make it a little clearer how to use this
27992 file.
27993
27994 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27995
27996 * docs/grub.cfg: Add an example menu entry for memtest86+.
27997
27998 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
27999
28000 * config.guess: Update to latest version from config git.
28001 * config.sub: Likewise.
28002
28003 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28004
28005 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28006 unknown-command case. Fixes bug #27320.
28007
28008 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28009
28010 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28011 `help' if the command exists.
28012
28013 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28014
28015 * INSTALL: Require GCC 4.1.3 or later.
28016
28017 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28018
28019 * Makefile.in (RMKFILES): add i386-qemu.rmk
28020 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28021 $(srcdir)/stamp-h.in
28022
28023 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28024
28025 * util/grub-probe.c (probe): Comment out buggy codepath, which
28026 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28027 should be re-enabled after 1.97.
28028
28029 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28030
28031 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28032 find searches for.
28033
28034 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28035
28036 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28037 unnecessary calls to grub_error.
28038
28039 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28040
28041 * NEWS: Mention `keystatus' and Unicode fonts.
28042
28043 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28044
28045 * configure.ac: Bump version to 1.97~beta2.
28046 * docs/version.texi: Likewise.
28047
28048 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28049
28050 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28051 containing unwind information in some cases where it previously did
28052 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28053 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28054 discussion.
28055
28056 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28057
28058 Embedding loadenv module into grub-emu
28059
28060 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28061 commands/loadenv.c
28062 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28063 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28064 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28066 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28068
28069 2009-09-03 Magnus Granberg <zorry@ume.nu>
28070
28071 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28072 include -fPIE in the default specs.
28073 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28074 to TARGET_CFLAGS.
28075
28076 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28077
28078 * INSTALL: Note that GNU Bison 2.3 or later is required.
28079
28080 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28081
28082 * kern/i386/pc/startup.S: Fix typo.
28083
28084 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28085
28086 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28087 according to GCS.
28088
28089 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28090
28091 * docs/grub.texi (Naming convention): Describe one-based partition
28092 numbering.
28093 (Device syntax): Likewise.
28094 (File name syntax): Likewise.
28095 (Block list syntax): Likewise.
28096 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28097 menu.lst.
28098 (File name syntax): Likewise.
28099 (Command-line and menu entry commands): Document acpi, blocklist,
28100 crc, export, insmod, keystatus, ls, set, and unset commands.
28101
28102 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28103
28104 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28105 to avoid implying that only one of --shift, --ctrl, or --alt may be
28106 used.
28107
28108 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28109
28110 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28111 rather than comparing against S_IFREG, which will almost never work.
28112
28113 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28114
28115 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28116 (write_blocklists): Likewise.
28117
28118 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28119
28120 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28121 argument to grub_printf.
28122
28123 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28124
28125 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28126 non GNU test.
28127
28128 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28129
28130 * kern/file.c (grub_file_read): Spelling fix
28131
28132 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28133
28134 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28135 loading of headers in some cases.
28136
28137 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28138
28139 * configure.ac: Bump version to 1.97~beta1.
28140 * docs/version.texi: Likewise.
28141
28142 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28143
28144 * include/grub/i386/xnu.h: Add license header.
28145 include grub/err.h explicitly.
28146
28147 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28148
28149 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28150 to `ufs' in the vfs.root.mountfrom kernel parameter.
28151
28152 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28153
28154 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28155
28156 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28157 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28158
28159 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28160 `ARRAY_SIZE' macro.
28161
28162 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28163
28164 * kern/file.c (grub_file_read): Check offset.
28165 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28166 * fs/jfs.c (grub_jfs_read_file): Likewise.
28167 * fs/ntfs.c (grub_ntfs_read): Likewise.
28168 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28169 * fs/minix.c (grub_minix_read_file): Correct offset check.
28170 * fs/ufs.c (grub_ufs_read_file): Likewise.
28171
28172 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28173
28174 * term/i386/pc/console.c (bios_data_area): Cast
28175 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28176
28177 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28178
28179 1-bit optimised blitters.
28180
28181 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28182 prototype.
28183 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28184 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28185 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28186 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28187 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28188 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28189 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28190 function.
28191 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28192 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28193 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28194 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28195 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28196 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28197 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28198 when possible.
28199 * video/video.c (grub_video_get_blit_format): Return
28200 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28201
28202 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28203
28204 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28205 the first argument to grub_printf.
28206
28207 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28208 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28209
28210 Add `getkeystatus' terminal method. Add a new `keystatus' command
28211 to query it.
28212
28213 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28214 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28215 modifier key bitmasks.
28216 (struct grub_term_input): Add `getkeystatus' member.
28217 (grub_getkeystatus): Add prototype.
28218 * kern/term.c (grub_getkeystatus): New function.
28219
28220 * include/grub/i386/pc/memory.h
28221 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28222 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28223 Data Area layout.
28224 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28225 (grub_console_term_input): Set `getkeystatus' member.
28226 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28227 constants.
28228 (grub_usb_keyboard_getreport): Likewise.
28229 (grub_usb_keyboard_checkkey): Likewise.
28230 (grub_usb_keyboard_getkeystatus): New function.
28231 (grub_usb_keyboard_term): Set `getkeystatus' member.
28232
28233 * commands/keystatus.c: New file.
28234 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28235 (keystatus_mod_SOURCES): New variable.
28236 (keystatus_mod_CFLAGS): Likewise.
28237 (keystatus_mod_LDFLAGS): Likewise.
28238 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28239 commands/keystatus.c.
28240 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28241 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28242 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28244 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28245 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28246
28247 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28248
28249 Split befs.mod and afs.mod into *_be.mod and *.mod
28250
28251 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28252 (grub_fstest_SOURCES): Likewise.
28253 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28254 (afs_be_mod_SOURCES): New variable.
28255 (afs_be_mod_CFLAGS): Likewise.
28256 (afs_be_mod_LDFLAGS): Likewise.
28257 (befs_be_mod_SOURCES): Likewise.
28258 (befs_be_mod_CFLAGS): Likewise.
28259 (befs_be_mod_LDFLAGS): Likewise.
28260 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28261 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28262 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28263 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28264 (grub_emu_SOURCES): Likewise.
28265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28266 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28267 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28268 * fs/afs_be.c: New file.
28269 * fs/befs_be.c: New file.
28270 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28271 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28272 (U16): Replaced with ...
28273 (grub_afs_to_cpu16): ...this. All users updated.
28274 (U32): Replaced with ...
28275 (grub_afs_to_cpu32): ...this. All users updated.
28276 (U64): Replaced with ...
28277 (grub_afs_to_cpu64): ...this. All users updated.
28278 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28279 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28280 (grub_afs_validate_sblock): Check only one endianness.
28281 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28282 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28283 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28284 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28285 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28286 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28287 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28288 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28289
28290 2009-08-26 Bean <bean123ch@gmail.com>
28291
28292 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28293 64-bit number.
28294 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28295 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28296 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28297
28298 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28299
28300 NetBSD memory map support.
28301
28302 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28303 (grub_netbsd_btinfo_mmap_header): New structure.
28304 (grub_netbsd_btinfo_mmap_entry): Likewise.
28305 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28306
28307 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28308
28309 Enable bsd.mod on coreboot.
28310
28311 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28312 (bsd_mod_SOURCES): New variable.
28313 (bsd_mod_CFLAGS): Likewise.
28314 (bsd_mod_LDFLAGS): Likewise.
28315 (bsd_mod_ASFLAGS): Likewise.
28316 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28317 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28318
28319 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28320
28321 Cleanup NetBSD root support.
28322
28323 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28324 grub_bsd_get_device.
28325 Fix typo.
28326
28327 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28328
28329 * util/grub.d/00_header.in: Move check for the video backend of
28330 gfxterm from here ...
28331 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28332 a suitable video backend.
28333
28334 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28335
28336 Fix breakage in grub-setup.
28337
28338 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28339 "msdos_partition_map".
28340
28341 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28342
28343 Fix breakage in normal/auth.c.
28344
28345 * normal/auth.c (grub_iswordseparator): New function.
28346
28347 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28348
28349 Authentication support.
28350
28351 * commands/password.c: New file.
28352 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28353 (password_mod_SOURCES): New variable.
28354 (password_mod_CFLAGS): Likewise.
28355 (password_mod_LDFLAGS): Likewise.
28356 (normal_mod_SOURCES): Add normal/auth.c.
28357 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28358 normal/auth.c.
28359 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28360 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28361 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28363 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28364 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28365 * include/grub/auth.h: New file.
28366 * include/grub/err.h (grub_err_t): New enum value
28367 GRUB_ERR_ACCESS_DENIED.
28368 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28369 'users'.
28370 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28371 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28372 users updated.
28373 * normal/auth.c: New file.
28374 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28375 (grub_cmdline_run): Don't allow to go to command line without
28376 authentication.
28377 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28378 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28379 menuentry without superuser rights.
28380 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28381 user isn't a superuser.
28382
28383 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28384
28385 Save space by inlining misc.c functions.
28386
28387 * kern/misc.c (grub_iswordseparator): Made static.
28388 * kern/misc.c (grub_strcat): Moved from here ...
28389 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28390 * kern/misc.c (grub_strncat): Moved from here ...
28391 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28392 * kern/misc.c (grub_strcasecmp): Moved from here ...
28393 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28394 * kern/misc.c (grub_strncasecmp): Moved from here ...
28395 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28396 * kern/misc.c (grub_isalpha): Moved from here ...
28397 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28398 * kern/misc.c (grub_isdigit): Moved from here ...
28399 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28400 * kern/misc.c (grub_isgraph): Moved from here ...
28401 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28402 * kern/misc.c (grub_tolower): Moved from here ...
28403 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28404
28405 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28406
28407 * script/sh/function.c (grub_script_function_find): Cut error message
28408 not to flood terminal.
28409 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28410 limit.
28411 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28412
28413 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28414
28415 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28416 `report' grub_uint8_t *.
28417 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28418 Use a 50-millisecond timeout rather than just repeating
28419 grub_usb_keyboard_getreport 50 times.
28420 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28421
28422 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28423
28424 Rename *_partition_map to part_*
28425
28426 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28427 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28428 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28429 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28430 All users updated.
28431 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28432 All users updated.
28433 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28434 * util/grub-probe.c (probe_partmap): Don't transform partition name
28435 to get module name.
28436
28437 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28438
28439 Fix OpenBSD and NetBSD support.
28440
28441 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28442 memory address conflict.
28443 (OPENBSD_MMAP_ACPI): New definition.
28444 (OPENBSD_MMAP_NVS): Likewise.
28445 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28446 and OPENBSD_MMAP_NVS.
28447 Add memory map terminator
28448 Explicit cast when calling grub_unix_real_boot.
28449 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28450
28451 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28452
28453 Let user specify NetBSD root device.
28454
28455 * loader/i386/bsd.c (netbsd_root): New variable.
28456 (netbsd_opts): New option 'root'.
28457 (NETBSD_ROOT_ARG): New macro.
28458 (grub_netbsd_boot): Use 'netbsd_root'.
28459 (grub_bsd_unload): Free 'netbsd_root'.
28460 (grub_cmd_netbsd): Fill 'netbsd_root'.
28461
28462 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28463
28464 Support for 64-bit NetBSD.
28465
28466 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28467 point when booting non-FreeBSD.
28468
28469 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28470
28471 Support --no-smp and --no-acpi for NetBSD.
28472
28473 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28474 (NETBSD_AB_NOACPI): Likewise.
28475 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28476 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28477
28478 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28479
28480 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28481 errors.
28482 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28483 errors. Call grub_error when needed.
28484
28485 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28486
28487 * commands/search.c (search_fs): Try searching without autoload first.
28488 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28489 filesystem module explicitly for faster booting.
28490
28491 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28492
28493 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28494
28495 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28496
28497 * util/grub.d/30_os-prober.in: Disable os-prober if
28498 `GRUB_DISABLE_OS_PROBER' was set to true.
28499
28500 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28501
28502 * partmap/pc.c: Rename to ...
28503 * partmap/msdos.c: ... this. Update all users.
28504 (grub_pc_partition_map): Rename to ...
28505 (grub_msdos_partition_map): ... this. Update all users.
28506
28507 * parttool/pcpart.c: Rename to ...
28508 * parttool/msdospart.c: ... this. Update all users.
28509
28510 * include/grub/pc_partition.h: Rename to ...
28511 * include/grub/msdos_partition.h: ... this. Update all users.
28512 (grub_pc_partition_bsd_entry): Rename to ...
28513 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28514 (grub_pc_partition_disk_label): Rename to ...
28515 (grub_msdos_partition_disk_label): ... this. Update all users.
28516 (grub_pc_partition_entry): Rename to ...
28517 (grub_msdos_partition_entry): ... this. Update all users.
28518 (grub_pc_partition_mbr): Rename to ...
28519 (grub_msdos_partition_mbr): ... this. Update all users.
28520 (grub_pc_partition): Rename to ...
28521 (grub_msdos_partition): ... this. Update all users.
28522 (grub_pc_partition_is_empty): Rename to ...
28523 (grub_msdos_partition_is_empty): ... this. Update all users.
28524 (grub_pc_partition_is_extended): Rename to ...
28525 (grub_msdos_partition_is_extended): ... this. Update all users.
28526 (grub_pc_partition_is_bsd): Rename to ...
28527 (grub_msdos_partition_is_bsd): ... this. Update all users.
28528
28529 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28530 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28531 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28532 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28533 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28534 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28535 (gpt_mod_LDFLAGS): Rename to ...
28536 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28537 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28538 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28539 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28540 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28541 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28542 (part_gpt_mod_LDFLAGS): ... this.
28543 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28544 `pcpart.mod' to `msdospart.mod'.
28545 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28546 to ...
28547 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28548 (msdospart_mod_LDFLAGS): ... this.
28549
28550 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28551
28552 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28553 (openbsd_opts): Likewise.
28554 (netbsd_opts): Likewise.
28555 (freebsd_flags): Added 0 terminator.
28556 (openbsd_flags): Likewise.
28557 (netbsd_flags): Likewise.
28558 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28559 (grub_cmd_freebsd): Transformed into extended command.
28560 (grub_cmd_openbsd): Likewise.
28561 (grub_cmd_netbsd): Likewise.
28562 (cmd_freebsd): Changed type to grub_extcmd_t.
28563 (cmd_openbsd): Likewise.
28564 (cmd_netbsd): Likewise.
28565 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28566 grub_cmd_openbsd as extended commands.
28567 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28568 cmd_netbsd and cmd_openbsd
28569
28570 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28571
28572 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28573
28574 2009-08-21 Pavel Roskin <proski@gnu.org>
28575
28576 * Makefile.in (install-local): When checking if a file is in the
28577 build directory, use "test -e" to detect symlinks.
28578
28579 * Makefile.in (install-local): Remove all files in
28580 $(DESTDIR)$(pkglibdir) before installing new files there.
28581
28582 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28583
28584 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28585 grub-mkelfimage.
28586
28587 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28588
28589 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28590 explicitly specified by the user.
28591
28592 2009-08-18 Pavel Roskin <proski@gnu.org>
28593
28594 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28595 grub_uint8_t pointer for data.
28596 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28597 Likewise.
28598 * video/fb/fbutil.c: Remove unnecessary casts.
28599
28600 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28601
28602 VBE cleanup.
28603
28604 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28605 (grub_vbe_set_video_mode): Save active mode info
28606 only after setting the mode.
28607 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28608 second argument.
28609
28610 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28611
28612 Rename variables for clarity.
28613
28614 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28615 (active_vbe_mode_info): ... this. All users updated.
28616 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28617 All users updated.
28618 (initial_mode): Rename to ...
28619 (initial_vbe_mode): ... this. All users updated.
28620 (mode_in_use): Rename to ..
28621 (vbe_mode_in_use): ... this. All users updated.
28622 (mode_list): Rename to ..
28623 (vbe_mode_list): ... this. All users updated.
28624 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28625 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28626 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28627 'mode_list_size' to 'vbe_mode_list_size'.
28628 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28629 'best_mode_info' to 'best_vbe_mode_info' and
28630 'best_mode' to 'best_vbe_mode'
28631
28632 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28633
28634 Remove duplicate grub_video_fb_get_video_ptr.
28635
28636 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28637 (grub_video_fb_get_video_ptr): ... this.
28638 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28639 * video/fb/fbutil.c: Add comment about addressing.
28640 (get_data_ptr): Rename to ...
28641 (grub_video_fb_get_video_ptr): ... this. All users updated.
28642 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28643
28644 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28645
28646 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28647 grub_dprintf() that was just added.
28648
28649 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28650
28651 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28652 (DEFAULT_VIDEO_MODE): Remove macros.
28653 (grub_linux_boot): Remove assumption that Linux has FB support,
28654 and use "text" as default video mode.
28655
28656 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28657
28658 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28659 grub_dprintf.
28660 * fs/fat.c (grub_fat_read_data): Likewise.
28661
28662 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28663
28664 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28665 payload.
28666 (grub_module): Likewise.
28667
28668 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28669
28670 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28671 mbi->cmdline but free playground.
28672
28673 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28674
28675 Handle group offset on UFS1.
28676
28677 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28678 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28679
28680 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28681
28682 Split ufs.mod into ufs1.mod and ufs2.mod.
28683
28684 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28685 (grub_fstest_SOURCES): Likewise.
28686 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28687 (ufs_mod_SOURCES): Remove.
28688 (ufs_mod_CFLAGS): Likewise.
28689 (ufs_mod_LDFLAGS): Likewise.
28690 (ufs1_mod_SOURCES): New variable.
28691 (ufs1_mod_CFLAGS): Likewise.
28692 (ufs1_mod_LDFLAGS): Likewise.
28693 (ufs2_mod_SOURCES): New variable.
28694 (ufs2_mod_CFLAGS): Likewise.
28695 (ufs2_mod_LDFLAGS): Likewise.
28696 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28697 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28698 Likewise.
28699 (grub_emu_SOURCES): Likewise.
28700 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28701 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28702 (grub_setup_SOURCES): Likewise.
28703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28704 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28705 (grub_setup_SOURCES): Likewise.
28706 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28707 Likewise.
28708 * fs/ufs2.c: New file.
28709 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28710
28711 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28712
28713 Framebuffer split.
28714
28715 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28716 subsystem at the end.
28717 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28718 (video_fb_mod_SOURCES): New variable.
28719 (video_fb_mod_CFLAGS): Likewise.
28720 (video_fb_mod_LDFLAGS): Likewise.
28721 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28722 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28723 * video/i386/pc/vbeblit.c: Moved from here ...
28724 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28725 * video/i386/pc/vbefill.c: Moved from here ...
28726 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28727 * video/i386/pc/vbeutil.c: Moved from here ...
28728 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28729 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28730 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28731 * include/grub/i386/pc/vbefill.h: Moved from here ...
28732 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28733 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28734 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28735 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28736 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28737 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28738 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28739 (grub_video_adapter): Added 'get_info_and_fini'.
28740 (grub_video_get_info_and_fini): New prototype.
28741 (grub_video_set_mode): make modestring const char *.
28742 * loader/i386/linux.c (grub_linux_setup_video): Use
28743 grub_video_get_info_and_fini.
28744 (grub_linux_boot): Move modesetting just before booting.
28745 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28746 grub_video_get_info_and_fini.
28747 * video/i386/pc/vbe.c: Moved framebuffer part ...
28748 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28749 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28750 grub_video_fbstd_colors and grub_video_fb_set_palette.
28751 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28752 grub_video_fb_init.
28753 (grub_video_vbe_fini): Use grub_video_fb_fini.
28754 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28755 render_target and use grub_video_fb_set_active_render_target and
28756 grub_video_fb_set_palette.
28757 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28758 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28759 (grub_video_vbe_adapter): Use framebuffer.
28760 * video/video.c (grub_video_get_info_and_fini): New function.
28761 (grub_video_set_mode): Make modestring const char *.
28762 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28763 values are already initialised.
28764
28765 2009-08-14 Pavel Roskin <proski@gnu.org>
28766
28767 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28768 ABS and APPLE_CC.
28769 * boot/i386/pc/diskboot.S: Likewise.
28770 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28771 sectors allow compilation on MacOSX.
28772 * conf/i386-pc.rmk: Enable unconditional compilation of
28773 lnxboot.img.
28774
28775 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28776
28777 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28778 * util/grub.d/00_header.in: Enter interruptible sleep if
28779 GRUB_HIDDEN_TIMEOUT is set.
28780
28781 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28782
28783 * include/grub/symbol.h: Add the LOCAL macro.
28784 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28785 starting with "L_".
28786
28787 2009-08-13 Pavel Roskin <proski@gnu.org>
28788
28789 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28790 any modern compilers we support.
28791
28792 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28793 Use local labels starting with "L_" so that Apple assembler
28794 knows they are local.
28795
28796 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28797
28798 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28799 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28800 (bsd_kernel_types): ... this enum.
28801
28802 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28803 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28804 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28805
28806 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28807 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28808 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28809 messages.
28810
28811 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28812
28813 * util/grub-dumpdevtree: Moved from here ...
28814 * util/i386/efi/grub-dumpdevtree: ... to here.
28815 (hexify): New function. Converts a string to its hex version.
28816 Generate hex versions of "efi" and "device-properties" by calling
28817 hexify() on the ASCII strings rather than by hardcoding numbers.
28818
28819 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28820
28821 * fs/jfs.c: Update copyright year.
28822
28823 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28824
28825 * util/grub.d/00_header.in: Fix a comment.
28826 * util/grub.d/10_linux.in: Likewise.
28827 * util/grub.d/10_windows.in: Likewise.
28828 * util/grub.d/10_hurd.in: Likewise.
28829
28830 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28831
28832 * util/grub-mkconfig.in: Allow the user to specify the used font
28833 with GRUB_FONT.
28834
28835 2009-08-08 Pavel Roskin <proski@gnu.org>
28836
28837 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28838 available, xfs.mod needs it now.
28839
28840 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28841 the "g" modifier in sed when the intention is to strip something
28842 once. This fixes comparison of kernels with multiple dashes.
28843
28844 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28845 on it. Add missing space before closing bracket. Fix
28846 misleading formatting.
28847
28848 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28849
28850 * docs/grub.texi: Major overhaul. Remove all sections that are
28851 specific to GRUB Legacy, or mostly composed of Legacy-specific
28852 information.
28853
28854 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28855
28856 * docs/version.texi: New file. Provides version information for
28857 grub.texi.
28858
28859 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28860
28861 * docs/grub.texi: Update CVS information to SVN.
28862 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28863
28864 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28865
28866 * util/grub-mkconfig.in: Remove a wrong `fi'.
28867
28868 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28869
28870 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28871 (grub_jfs_uuid): New function.
28872 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28873
28874 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28875
28876 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28877 of it to ...
28878 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28879 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28880
28881 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28882
28883 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28884 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28885 Update all users.
28886
28887 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28888 not just "vmlinu[zx]".
28889 Moved from here ...
28890 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28891 all users.
28892
28893 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28894 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28895 all users.
28896
28897 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28898
28899 * util/grub.d/10_freebsd.in: Use an absolute device path for
28900 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28901
28902 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28903
28904 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28905 handling of multiple abstraction modules.
28906
28907 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28908
28909 Fix a bug resulting in black screen when loading Linux using a
28910 packed video mode.
28911
28912 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28913 function.
28914
28915 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28916 (grub_vbe_bios_getset_dac_palette_width): New function.
28917 (grub_vbe_bios_get_dac_palette_width)
28918 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28919 grub_vbe_bios_getset_dac_palette_width()).
28920
28921 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28922 check for return status.
28923 (grub_vbe_get_video_mode_info): When getting information for a packed
28924 mode (<= 8 bpp), obtain DAC palette width using
28925 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28926 {red,green,blue}_mark_size.
28927
28928 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28929
28930 * commands/search.c (options): Fix help output to match actual code.
28931
28932 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28935 of homegrown code.
28936
28937 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28938
28939 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
28940 on XFS or ReiserFS.
28941
28942 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28943
28944 Support Apple partition map with sector size different from 512 bytes.
28945
28946 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
28947 (apple_partition_map_iterate): Respect 'aheader.blocksize'
28948 and 'apart.partmap_size'.
28949
28950 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28951 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
28952
28953 Fix cpuid command.
28954
28955 * commands/i386/cpuid.c (options): New variable.
28956 (grub_cmd_cpuid): Return real error.
28957 (GRUB_MOD_INIT(cpuid)): Declare options.
28958
28959 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
28960
28961 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
28962 valid.
28963
28964 2009-07-31 Bean <bean123ch@gmail.com>
28965
28966 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
28967 log2_inode.
28968 (grub_fshelp_node): Move inode field to the end.
28969 (grub_xfs_data): Remove inode field.
28970 (grub_xfs_inode_block): Calculate inode size using sblock.
28971 (grub_xfs_inode_offset): Likewise.
28972 (grub_xfs_read_inode): Calculate inode size using sblock.
28973 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
28974 (grub_xfs_iterate_dir): Calculate inode size using sblock.
28975 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
28976 to match inode size.
28977 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
28978 not accessible when data is null.
28979 (grub_xfs_open): Likewise.
28980
28981 2009-07-31 Bean <bean123ch@gmail.com>
28982
28983 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
28984 Don't change pv->disk if it's already set.
28985
28986 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
28987 (grub_raid_register): ... here.
28988 (grub_raid_rescan): Removed.
28989
28990 * include/grub/raid.h (grub_raid_rescan): Removed.
28991
28992 * util/grub-fstest.c: Remove include file <grub/raid.h>.
28993 (fstest): Replace grub_raid_rescan with module fini function followed
28994 by init function.
28995
28996 * util/grub-probe.c: Add include file <grub/raid.h>.
28997 (probe_raid_level): New function.
28998 (probe): Detect abstraction by walking the disk device, support two
28999 level of abstraction (LVM on RAID) when detecting partition map.
29000
29001 2009-07-31 Pavel Roskin <proski@gnu.org>
29002
29003 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29004 to grub_zalloc(), it was erroneous.
29005 Reported by Bean <bean123ch@gmail.com>
29006
29007 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29008
29009 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29010 embedding zone, not only the first one.
29011
29012 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29013
29014 * term/gfxterm.c (clear_char): New function.
29015 (grub_virtual_screen_setup): Use clear_char.
29016 (scroll_up): Likewise.
29017 (grub_virtual_screen_cls): Likewise.
29018
29019 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29020
29021 * util/deviceiter.c (get_acceleraid_disk_name): New static
29022 function.
29023 (grub_util_iterate_devices): Handle Accelraid devices.
29024 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29025
29026 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29027
29028 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29029 separator for the suggested gfxpayload string (';' collides with the
29030 parser and needs escaping).
29031
29032 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29033
29034 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29035 Clear direction flag before jumping to OS.
29036 (grub_multiboot2_real_boot): Likewise.
29037
29038 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29039
29040 * util/i386/pc/grub-install: Fix parsing of --disk-module
29041 option.
29042
29043 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29044
29045 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29046 when embedding.
29047
29048 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29049
29050 * util/grub-mkconfig.in (package_version): New variable.
29051 Use it do display the version.
29052
29053 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29054
29055 * kern/file.c (grub_file_open): Revert to previous check with
29056 grub_errno.
29057
29058 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29059
29060 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29061 from help line. It's out of sync with code.
29062
29063 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29064
29065 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29066 entries on failed boot.
29067
29068 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29069
29070 * kern/file.c (grub_file_open): Fix an error check.
29071
29072 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29073
29074 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29075 partition map couldn't be identified.
29076
29077 2009-07-23 Pavel Roskin <proski@gnu.org>
29078
29079 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29080 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29081 case of little endian words becomes just an optimization.
29082 Respect const modifier.
29083 (md5_final): Use code that doesn't depend on endianness.
29084
29085 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29086 to avoid loss of upper bits if align is unsigned and shorter
29087 than addr.
29088
29089 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29090
29091 UUID support for UFS
29092
29093 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29094 (grub_ufs_uuid): New function.
29095 (grub_ufs_fs): add .uuid
29096
29097 2009-07-21 Pavel Roskin <proski@gnu.org>
29098
29099 * kern/dl.c (grub_dl_check_header): Make static.
29100
29101 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29102
29103 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29104 add drivemap for Vista. It breaks Windows 7.
29105
29106 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29107
29108 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29109 128 bytes
29110
29111 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29112
29113 Add BFS support
29114
29115 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29116 (grub_fstest_SOURCES): Likewise.
29117 (pkglib_MODULES): Add befs.mod.
29118 (befs_mod_SOURCES): New variable.
29119 (befs_mod_CFLAGS): Likewise.
29120 (befs_mod_LDFLAGS): Likewise.
29121 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29122 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29123 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29124 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29125 (grub_setup_SOURCES): Likewise.
29126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29127 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29128 (grub_setup_SOURCES): Likewise.
29129 * fs/befs.c: New file.
29130 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29131 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29132 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29133 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29134 (B_KEY_INDEX_ALIGN): New declaration.
29135 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29136 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29137 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29138 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29139 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29140 (grub_afs_mount) [MODE_BFS]: Likewise.
29141 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29142 (grub_afs_fs): Use GRUB_AFS_FSNAME
29143 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29144 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29145 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29146 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29147
29148 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29149
29150 * util/getroot.c (find_root_device): Add support for MacOSX.
29151 * util/hostdisk.c: Likewise.
29152
29153 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29154
29155 * font/font.c (find_glyph): Check whether a font is present to avoid
29156 segmentation fault.
29157
29158 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29159
29160 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29161
29162 2009-07-20 Pavel Roskin <proski@gnu.org>
29163
29164 * configure.ac: Trim excessively wordy excuses.
29165
29166 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29167
29168 Add symlink, mtime and label support to AtheFS.
29169
29170 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29171 (grub_afs_iterate_dir): Handle symlinks.
29172 (grub_afs_open): Use grub_afs_read_symlink.
29173 (grub_afs_dir): Likewise.
29174 Pass mtime.
29175 (grub_afs_label): New function.
29176 (grub_afs_fs): Add grub_afs_label.
29177 (grub_afs_read_symlink): New function.
29178
29179 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29180
29181 Fix AtheFS support.
29182
29183 * fs/afs.c: Fix comments style.
29184 (grub_afs_blockrun): Declare as packed.
29185 (grub_afs_datastream): Likewise.
29186 (grub_afs_bnode): Likewise.
29187 (grub_afs_btree): Likewise.
29188 (grub_afs_sblock): Likewise.
29189 Declare `name' as char.
29190 (grub_afs_inode): Declare as packed.
29191 Change void *vnode to grub_uint32_t unused.
29192 (grub_afs_iterate_dir): Check that key_size is positive.
29193 (grub_afs_mount): Don't read superblock twice.
29194 (grub_afs_dir): Don't free node in case of error,
29195 grub_fshelp_find_file already handles this.
29196 (grub_afs_open): Likewise.
29197
29198 2009-07-19 Pavel Roskin <proski@gnu.org>
29199
29200 * Makefile.in: Remove LIBLZO and enable_lzo.
29201 * conf/i386-pc.rmk: Remove lzo support.
29202 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29203 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29204 support.
29205 * kern/i386/pc/lzo1x.S: Remove.
29206 * kern/i386/pc/startup.S: Remove lzo support.
29207 * util/i386/pc/grub-mkimage.c: Likewise.
29208
29209 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29210
29211 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29212 * fs/xfs.c (grub_xfs_dir): Likewise.
29213 * fs/afs.c (grub_afs_dir): Likewise.
29214 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29215 (grub_iso9660_open): Likewise.
29216 * fs/jfs.c (grub_jfs_open): Likewise.
29217 * fs/ext2.c (grub_ext2_dir): Likewise.
29218 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29219 * script/sh/lexer.c (grub_script_yylex): Likewise.
29220
29221 2009-07-16 Pavel Roskin <proski@gnu.org>
29222
29223 * configure.ac: Never add "-c" to CFLAGS.
29224
29225 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29226
29227 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29228 grub_cv_cc_efiemu should be used.
29229
29230 * configure.ac: Typo fixes.
29231
29232 * kern/mm.c (grub_zalloc): New function.
29233 (grub_debug_zalloc): Likewise.
29234 * include/grub/mm.h: Declare grub_zalloc() and
29235 grub_debug_zalloc().
29236 * util/misc.c (grub_zalloc): New function.
29237 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29238 instead of grub_malloc(), remove unneeded initializations.
29239 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29240 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29241 * commands/parttool.c (grub_cmd_parttool): Likewise.
29242 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29243 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29244 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29245 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29246 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29247 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29248 (grub_cmd_efiemu_pnvram): Likewise.
29249 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29250 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29251 (grub_iso9660_iterate_dir): Likewise.
29252 * fs/jfs.c (grub_jfs_opendir): Likewise.
29253 * fs/ntfs.c (list_file): Likewise.
29254 (grub_ntfs_mount): Likewise.
29255 * kern/disk.c (grub_disk_open): Likewise.
29256 * kern/dl.c (grub_dl_load_core): Likewise.
29257 * kern/elf.c (grub_elf_file): Likewise.
29258 * kern/env.c (grub_env_context_open): Likewise.
29259 (grub_env_set): Likewise.
29260 (grub_env_set_data_slot): Likewise.
29261 * kern/file.c (grub_file_open): Likewise.
29262 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29263 * loader/i386/multiboot.c (grub_module): Likewise.
29264 * loader/xnu.c (grub_xnu_create_key): Likewise.
29265 (grub_xnu_create_value): Likewise.
29266 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29267 (read_config_file): Likewise.
29268 * normal/menu_entry.c (make_screen): Likewise.
29269 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29270 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29271 * script/sh/script.c (grub_script_parse): Likewise.
29272 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29273 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29274 * video/readers/png.c (grub_png_output_byte): Likewise.
29275 (grub_video_reader_png): Likewise.
29276
29277 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29278
29279 Enable all targets that can be built by default
29280
29281 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29282 grub-mkfont and grub-fstest if they can be built
29283
29284 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29285
29286 Fix hang and segmentation fault in grub-emu-usb
29287
29288 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29289 * util/usb.c (grub_libusb_devices): likewise
29290 (grub_libusb_init): rename to ...
29291 (GRUB_MOD_INIT (libusb)):...this
29292 (grub_libusb_fini): rename to ..
29293 (GRUB_MOD_FINI (libusb)):...this
29294 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29295 * include/grub/disk.h (grub_raid_init): removed, it's useless
29296 (grub_raid_fini): likewise
29297 (grub_lvm_init): likewise
29298 (grub_lvm_fini): likewise
29299 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29300 by grub_init_all
29301
29302 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29303
29304 Fix libusb
29305
29306 * Makefile.in (LIBUSB): new macro
29307 * genmk.rb (Utility/print_tail): new method
29308 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29309 (top level): call util.print_tail at the end.
29310
29311 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29312
29313 Make FreeBSD accept zpool.cache
29314
29315 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29316 type is /boot/zfs/zpool.cache
29317
29318 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29319
29320 Fix 64-bit efiemu
29321
29322 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29323 correct wrong typedef
29324 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29325
29326 2009-07-15 Pavel Roskin <proski@gnu.org>
29327
29328 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29329 * kern/disk.c (struct grub_disk_cache): Likewise.
29330
29331 * commands/probe.c (options): Typo fix.
29332
29333 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29334 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29335 accordingly.
29336 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29337
29338 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29339 the end of "Error" to make the message more readable.
29340
29341 * boot/i386/pc/boot.S (kernel_segment): Remove.
29342 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29343 for destination.
29344
29345 * boot/i386/pc/boot.S (boot_version): Remove.
29346 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29347 Remove.
29348
29349 * include/grub/i386/pc/boot.h: Sort all offsets.
29350 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29351 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29352 * boot/i386/pc/boot.S: Assert location of every offset listed in
29353 include/grub/i386/pc/boot.h.
29354
29355 2009-07-13 Pavel Roskin <proski@gnu.org>
29356
29357 * include/grub/i386/coreboot/machine.h: Rename
29358 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29359 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29360 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29361
29362 * kern/dl.c: Force native word size to suppress warnings when
29363 compiling grub-emu.
29364
29365 * kern/device.c (grub_device_iterate): Change struct part_ent to
29366 hold the name, not a pointer to it. Use one grub_malloc() per
29367 partition, not two. Free partition_name if grub_malloc() fails.
29368 Set ents to NULL only before grub_partition_iterate() is called.
29369
29370 2009-07-11 Bean <bean123ch@gmail.com>
29371
29372 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29373 childname.
29374
29375 2009-07-10 Bean <bean123ch@gmail.com>
29376 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29377
29378 * kern/ieee1275/openfw.c (grub_children_iterate)
29379 (grub_devalias_iterate): Fix size evaluation for property or path
29380 strings, which was broken since r2132.
29381
29382 2009-07-07 Pavel Roskin <proski@gnu.org>
29383
29384 * commands/search.c (search_file): Merge into ...
29385 (search_fs): ... this. Accept search type as argument.
29386 (grub_cmd_search): Pass search type to search_fs().
29387
29388 * include/grub/util/console.h: New file.
29389 * util/console.c: Use it instead of grub/machine/console.h.
29390 * util/grub-emu.c: Likewise.
29391
29392 * lib/arg.c (find_long_option): Remove.
29393 (find_long): Add `len' argument, make `s' const char *.
29394 (grub_arg_parse): Parse long options in place, not in a
29395 temporary buffer.
29396
29397 2009-07-06 Pavel Roskin <proski@gnu.org>
29398
29399 * commands/search.c (search_fs): Fix potential NULL pointer
29400 dereference.
29401
29402 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29403 function pointer.
29404
29405 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29406
29407 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29408 comparison.
29409
29410 2009-07-05 Pavel Roskin <proski@gnu.org>
29411
29412 * include/grub/i386/linux.h (struct linux_kernel_params):
29413 Restore padding3, it's still needed.
29414
29415 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29416 FreeBSD.
29417 * util/osdetect.lua: Likewise.
29418
29419 2009-07-05 Bean <bean123ch@gmail.com>
29420
29421 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29422
29423 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29424 (grub_lua_getenv): Likewise.
29425 (grub_lua_setenv): Likewise.
29426 (save_errno): New function.
29427 (push_result): Likewise.
29428 (grub_lua_enum_device): Likewise.
29429 (grub_lua_enum_file): Likewise.
29430 (grub_lua_file_open): Likewise.
29431 (grub_lua_file_close): Likewise.
29432 (grub_lua_file_seek): Likewise.
29433 (grub_lua_file_read): Likewise.
29434 (grub_lua_file_getline): Likewise.
29435 (grub_lua_file_getsize): Likewise.
29436 (grub_lua_file_getpos): Likewise.
29437 (grub_lua_file_eof): Likewise.
29438 (grub_lua_file_exist): Likewise.
29439 (grub_lua_add_menu): Likewise.
29440
29441 * script/lua/grub_lua.h (isupper): New inline function.
29442 (islower): Likewise.
29443 (ispunct): Likewise.
29444 (isxdigit): Likewise.
29445 (strcspn): Change to normal function.
29446 (strpbkr): New function declaration.
29447 (memchr): Likewise.
29448
29449 * script/lua/grub_main.c (scan_str): New function.
29450 (strcspn): Likewise.
29451 (strpbrk): Likewise.
29452 (memchr): Likewise.
29453
29454 * script/lua/linit.c (lualibs): Enable the string library.
29455
29456 * util/osdetect.lua: New file.
29457
29458 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29459
29460 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29461 `capabilities' member.
29462
29463 2009-07-02 Pavel Roskin <proski@gnu.org>
29464
29465 * genparttoollist.sh: Add missing newline at the end.
29466
29467 2009-07-01 Pavel Roskin <proski@gnu.org>
29468
29469 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29470
29471 * util/hostdisk.c (open_device): Remove `const' from
29472 `sysctl_size', as sysctlbyname() can change it (in this case it
29473 doesn't actually happen).
29474
29475 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29476 using signed long int constants.
29477
29478 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29479 constant to avoid a warning on FreeBSD.
29480
29481 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29482 where it's needed.
29483
29484 * Makefile.in: Install include/grub/machine symlink.
29485
29486 * Makefile.in: When installing symlinks, use "cp -fR", which
29487 works on FreeBSD and MacOSX.
29488 From Yves Blusseau <cl7m42e02@sneakemail.com>
29489
29490 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29491 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29492
29493 * util/misc.c: Move grub_reboot() and grub_halt() ...
29494 * util/grub-emu.c: ... here. Make main_env static.
29495 * include/grub/util/misc.h: Remove main_env.
29496
29497 * kern/mm.c: Use correct format to print size_t.
29498
29499 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29500 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29501 * kern/powerpc/dl.c: Likewise.
29502 * kern/sparc64/dl.c: Likewise.
29503 * kern/x86_64/dl.c: Likewise.
29504
29505 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29506
29507 Fix grub-emu build on sparc64-ieee1275.
29508
29509 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29511
29512 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29513
29514 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29515 (grub_reboot, grub_halt): New functions.
29516
29517 * util/i386/pc/misc.c: Delete. Update all users.
29518 * util/sparc64/ieee1275/misc.c: Likewise.
29519 * util/powerpc/ieee1275/misc.c: Likewise.
29520
29521 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29522
29523 * conf/i386.rmk (setjmp_mod_SOURCES)
29524 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29525 * conf/common.rmk (setjmp_mod_SOURCES)
29526 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29527 to use $(target_cpu).
29528 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29529 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29530 * conf/powerpc-ieee1275.rmk: Likewise.
29531 * conf/sparc64-ieee1275.rmk: Likewise.
29532
29533 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29534 $(target_cpu) for kern/$(target_cpu)/dl.c.
29535 * conf/i386-efi.rmk: Likewise.
29536 * conf/i386-ieee1275.rmk: Likewise.
29537 * conf/x86_64-efi.rmk: Likewise.
29538 * conf/i386-coreboot.rmk: Likewise.
29539 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29540 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29541 kern/$(target_cpu)/cache.S.
29542 * conf/sparc64-ieee1275.rmk: Likewise.
29543
29544 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29545
29546 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29547 type to `grub_uint8_t', and adjust `padding9' accordingly.
29548
29549 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29550
29551 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29552
29553 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29554 assembly in final jump, using register constraints.
29555
29556 (grub_linux_boot): For text mode, initialize `have_vga' using
29557 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29558
29559 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29560 right before the final jump.
29561
29562 Set `video_mode' to 0x3.
29563
29564 Document initialization of `video_page', `video_mode' and
29565 `video_ega_bx'.
29566
29567 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29568
29569 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29570 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29571 and set GRUB_LINUX_FLAG_QUIET appropriately.
29572
29573 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29574
29575 Fix build on Debian / sparc.
29576
29577 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29578
29579 2009-06-28 Pavel Roskin <proski@gnu.org>
29580
29581 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29582 fix a warning.
29583
29584 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29585
29586 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29587
29588 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29589 `err'.
29590
29591 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29592
29593 Revert r2338.
29594
29595 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29596 file can't be opened. grub_file_open() is already supposed to set
29597 grub_errno / grub_errmsg appropriately.
29598 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29599
29600 2009-06-27 Pavel Roskin <proski@gnu.org>
29601 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29602
29603 * include/grub/dl.h: Include grub/elf.h.
29604 (struct grub_dl): Add symtab field.
29605 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29606 GRUB_MODULES_MACHINE_READONLY.
29607 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29608 of the header for read-only modules.
29609 (grub_dl_unload): Free mod->symtab for read-only modules.
29610 * kern/i386/dl.c: Use mod->symtab.
29611 * kern/powerpc/dl.c: Likewise.
29612 * kern/sparc64/dl.c: Likewise.
29613 * kern/x86_64/dl.c: Likewise.
29614
29615 * conf/i386-qemu.rmk: New file.
29616 * kern/i386/qemu/startup.S: Likewise.
29617 * kern/i386/qemu/mmap.c: Likewise.
29618 * boot/i386/qemu/boot.S: Likewise.
29619 * include/grub/i386/qemu/time.h: Likewise.
29620 * include/grub/i386/qemu/serial.h: Likewise.
29621 * include/grub/i386/qemu/kernel.h: Likewise.
29622 * include/grub/i386/qemu/console.h: Likewise.
29623 * include/grub/i386/qemu/boot.h: Likewise.
29624 * include/grub/i386/qemu/init.h: Likewise.
29625 * include/grub/i386/qemu/machine.h: Likewise.
29626 * include/grub/i386/qemu/loader.h: Likewise.
29627 * include/grub/i386/qemu/memory.h: Likewise.
29628
29629 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29630 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29631 [qemu] (pkglib_IMAGES): Add `boot.img'.
29632 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29633 [qemu] (boot_img_FORMAT): New variables.
29634 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29635 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29636 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29637 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29638 [qemu] (kernel_img_FORMAT): New variables.
29639
29640 * configure.ac: Recognise `i386-qemu'.
29641
29642 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29643 (for no compression).
29644 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29645 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29646 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29647 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29648 ifdefs).
29649
29650 2009-06-27 Pavel Roskin <proski@gnu.org>
29651
29652 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29653 read.
29654 * efiemu/prepare32.c: Likewise.
29655 * efiemu/prepare64.c: Likewise.
29656
29657 2009-06-26 Pavel Roskin <proski@gnu.org>
29658
29659 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29660 * include/grub/elf.h: Define symbols without "32" or "64" based
29661 on GRUB_TARGET_WORDSIZE.
29662 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29663 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29664 ELF definitions.
29665 * efiemu/loadcore64.c: Likewise.
29666 * loader/i386/bsd32.c: Likewise.
29667 * loader/i386/bsd64.c: Likewise.
29668 * kern/dl.c: Remove own ELF definitions.
29669 * util/i386/efi/grub-mkimage.c: Likewise.
29670
29671 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29672
29673 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29674 segment 0x0 unconditionally, because the reference generated by
29675 GAS is an absolute address.
29676
29677 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29678
29679 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29680 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29681
29682 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29683
29684 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29685 indexes. Check for -f explicitly.
29686 (search_file): Improve error message.
29687 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29688
29689 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29690
29691 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29692 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29693
29694 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29695
29696 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29697 * conf/i386-ieee1275.rmk: Likewise.
29698 * conf/i386-coreboot.rmk: Likewise.
29699
29700 * kern/i386/pc/startup.S (grub_stop): Remove function.
29701 * kern/i386/ieee1275/startup.S: Likewise.
29702 * kern/i386/coreboot/startup.S: Likewise.
29703 * kern/i386/misc.S (grub_stop): New function.
29704
29705 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29706
29707 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29708 * kern/i386/realmode.S (real_to_prot): ... to here.
29709
29710 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29711
29712 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29713 with `kernel.img'.
29714 (kernel_elf_SOURCES): Rename to ...
29715 (kernel_img_SOURCES): ... this.
29716 (kernel_elf_HEADERS): Rename to ...
29717 (kernel_img_HEADERS): ... this. Update all users.
29718 (kernel_elf_ASFLAGS): Rename to ...
29719 (kernel_img_ASFLAGS): ... this.
29720 (kernel_elf_CFLAGS): Rename to ...
29721 (kernel_img_CFLAGS): ... this.
29722 (kernel_elf_LDFLAGS): Rename to ...
29723 (kernel_img_LDFLAGS): ... this.
29724 * conf/i386-coreboot.rmk: Likewise.
29725 * conf/powerpc-ieee1275.rmk: Likewise.
29726
29727 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29728 with "kernel.img".
29729
29730 2009-06-21 Pavel Roskin <proski@gnu.org>
29731
29732 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29733 to match nested functions.
29734 * loader/sparc64/ieee1275/linux.c: Likewise.
29735
29736 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29737
29738 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29739
29740 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29741 all i386 platforms.
29742
29743 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29744
29745 Fix asm file handling on ELF, and remove workarounds.
29746
29747 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29748 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29749 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29750 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29751
29752 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29753
29754 Load BSD ELF modules
29755
29756 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29757 and loader/i386/bsd64.c
29758 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29759 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29760 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29761 (grub_freebsd_load_elfmodule32): New declaration
29762 (grub_freebsd_load_elfmoduleobj64): Likewise
29763 (grub_freebsd_load_elf_meta32): Likewise
29764 (grub_freebsd_load_elf_meta64): Likewise
29765 (grub_freebsd_add_meta): Likewise
29766 (grub_freebsd_add_meta_module): Likewise
29767 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29768 (grub_freebsd_add_meta_module): Likewise and move module-specific
29769 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29770 (grub_cmd_freebsd): Add elf-kernel specific parts
29771 based on grub_freebsd_add_meta_module
29772 (grub_cmd_freebsd_module): Add type parsing moved from
29773 grub_freebsd_add_meta_module
29774 (grub_cmd_freebsd_module_elf): New function
29775 (cmd_freebsd_module_elf): New variable
29776 (GRUB_MOD_INIT): Register freebsd_module_elf
29777 * loader/i386/bsd32.c: New file
29778 * loader/i386/bsd64.c: Likewise
29779 * loader/i386/bsdXX.c: Likewise
29780 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29781 (grub_elf64_load): Likewise
29782 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29783 All users updated
29784 (grub_elf64_load_hook_t): Likewise
29785
29786 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29787
29788 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29789 variable.
29790 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29791 don't write a menu entry for recovery mode.
29792
29793 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29794
29795 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29796 after it's no longer needed.
29797
29798 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29799
29800 * include/grub/i386/loader.h (grub_linux_prot_size)
29801 (grub_linux_tmp_addr, grub_linux_real_addr)
29802 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29803 GRUB_MACHINE_PCBIOS.
29804 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29805 common grub_util_info() call to ...
29806 (generate_image): ... here.
29807 Fix use of uninitialized memory, comparison of signed with
29808 unsigned integers and memory leak.
29809 Remove bogus module address message.
29810
29811 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29812
29813 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29814 grub_raid_register
29815 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29816
29817 2009-06-19 Pavel Roskin <proski@gnu.org>
29818
29819 * configure.ac: Remove stray AC_MSG_CHECKING.
29820
29821 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29822
29823 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29824
29825 2009-06-18 Pavel Roskin <proski@gnu.org>
29826
29827 * conf/common.rmk: Add fs_file.mod.
29828 * disk/fs_file.c: New file.
29829 * include/grub/disk.h (enum grub_disk_dev_id): Add
29830 GRUB_DISK_DEVICE_FILE_ID.
29831
29832 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29833
29834 Fix build with Apple's toolchain. Part 2
29835
29836 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29837 a fake start
29838
29839 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29840
29841 Fix build with Apple's toolchain. Part 1
29842
29843 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29844 for long calls
29845 * configure.ac: remove a leftover AC_MSG_RESULT
29846 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29847 Apple's toolchain
29848
29849 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29850
29851 Fix warnings
29852
29853 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29854 (decomp_block): initialize ch
29855 use grub_memcpy instead of memcpy
29856
29857 2009-06-17 Pavel Roskin <proski@gnu.org>
29858
29859 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29860 version, use declarations needed to use vga_text as the startup
29861 console.
29862
29863 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29864 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29865 the kernel.
29866 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29867 and grub_at_keyboard_fini(), it's done on module load and
29868 unload.
29869
29870 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29871
29872 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29873 file can't be found.
29874 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29875
29876 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29877
29878 Fix newline handling
29879
29880 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29881 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29882 (grub_script_yylex): don't segfault on unterminated script
29883 newline terminates command and variable
29884
29885 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29886
29887 avoid double grub_adjust_range call. Bug reported by David Simner
29888
29889 * kern/disk.c (grub_disk_write): change to raw disk access before
29890 calling disk_read
29891
29892 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29893
29894 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29895 spaces, for the benefit of help2man.
29896 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29897
29898 2009-06-16 Pavel Roskin <proski@gnu.org>
29899
29900 * kern/i386/halt.c: Include grub/machine/init.h.
29901 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29902
29903 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29904
29905 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29906 drivemap menuentry.
29907
29908 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29909
29910 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29911 `echo' command.
29912
29913 2009-06-16 Pavel Roskin <proski@gnu.org>
29914
29915 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29916 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29917 save %dx, we only need %dl and we never change it.
29918 * boot/i386/pc/cdboot.S: Don't set the root drive.
29919 * boot/i386/pc/pxeboot.S: Likewise.
29920 * include/grub/i386/pc/boot.h: Remove
29921 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29922 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29923 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29924 * kern/i386/pc/init.c (make_install_device): Remove references
29925 to grub_root_drive.
29926 * kern/i386/pc/startup.S: Likewise.
29927 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29928
29929 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29930
29931 xnu_uuid command
29932
29933 * commands/xnu_uuid.c: new file
29934 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29935 (xnu_uuid_mod_SOURCES): new variable
29936 (xnu_uuid_mod_CFLAGS): likewise
29937 (xnu_uuid_mod_LDFLAGS): likewise
29938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29939 * conf/i386-ieee1275.rmk: likewise
29940 * conf/i386-pc.rmk: likewise
29941 * conf/powerpc-ieee1275.rmk: likewise
29942 * conf/sparc64-ieee1275.rmk: likewise
29943 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
29944
29945 2009-06-16 Pavel Roskin <proski@gnu.org>
29946
29947 * configure.ac: Avoid '==' in test command, it's not portable.
29948
29949 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29950
29951 Probe command
29952
29953 * commands/probe.c: new file
29954 * conf/common.rmk (pkglib_MODULES): add probe.mod
29955 (probe_mod_SOURCES): new variable
29956 (probe_mod_CFLAGS): likewise
29957 (probe_mod_LDFLAGS): likewise
29958 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29959 * conf/i386-ieee1275.rmk: likewise
29960 * conf/i386-pc.rmk: likewise
29961 * conf/powerpc-ieee1275.rmk: likewise
29962 * conf/sparc64-ieee1275.rmk: likewise
29963
29964 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
29965
29966 Fix handling of string like \"hello\" and "a
29967 b"
29968
29969 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
29970 (grub_script_yylex): fix parsing of quoting, escaping and newline
29971
29972 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
29973
29974 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
29975 handling
29976
29977 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
29978
29979 * util/grub-mkconfig.in: Fix parsing of --output option.
29980
29981 2009-06-12 Pavel Roskin <proski@gnu.org>
29982
29983 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
29984 genmk.rb don't need to be generated or installed.
29985
29986 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
29987
29988 * commands/i386/pc/drivemap_int13h.S: add more comments
29989
29990 2009-06-11 Pavel Roskin <proski@gnu.org>
29991
29992 * Makefile.in (uninstall): Uninstall manuals.
29993
29994 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
29995 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
29996 and update-grub_lib in two places.
29997 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
29998
29999 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30000 a compiler warning.
30001
30002 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30003 `entry_lo' to fix variable shadowing.
30004
30005 2009-06-11 Christian Franke <franke@computer.org>
30006
30007 * kern/misc.c (__enable_execute_stack): Add missing return type
30008 to prevent gcc warning.
30009
30010 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30011
30012 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30013
30014 2009-06-11 Pavel Roskin <proski@gnu.org>
30015
30016 * Makefile.in: Don't rely on any scripts being executable.
30017 Always use $(SHELL) to run shell scripts.
30018
30019 * configure.ac: Always define ___main if using -nostdlib. This
30020 fixes tests on Cygwin.
30021
30022 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30023
30024 UDF fix
30025
30026 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30027 is in bytes and not in blocks
30028
30029 2009-06-11 Pavel Roskin <proski@gnu.org>
30030
30031 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30032 warning.
30033
30034 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30035
30036 * util/grub.d/30_os-prober.in: Fix a comment. Source
30037 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30038 to set the root device. Place drivemap command in the generated
30039 chain entry.
30040
30041 2009-06-11 Pavel Roskin <proski@gnu.org>
30042
30043 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30044 have long been resolved.
30045
30046 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30047
30048 * util/grub.d/10_linux.in: Capitalise "Linux".
30049
30050 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30051
30052 2009-06-11 Pavel Roskin <proski@gnu.org>
30053
30054 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30055 fix a gcc warning and ensure that the function won't ever exit.
30056
30057 * kern/i386/ieee1275/init.c: Add missing prototype for
30058 grub_stop_floppy().
30059
30060 * loader/ieee1275/multiboot2.c [__i386__]: Include
30061 grub/cpu/multiboot.h.
30062
30063 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30064 casts to short - they are not portable and cause warnings. Fix
30065 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30066
30067 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30068
30069 Drivemap fixes
30070
30071 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30072 new function
30073 (grub_get_root_biosnumber_saved): new variable
30074 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30075 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30076 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30077 %dx after the call if necessary
30078 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30079 (boot_mod_SOURCES): remove
30080 (boot_mod_CFLAGS): remove
30081 (boot_mod_LDFLAGS): remove
30082 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30083 (boot_mod_SOURCES): new variable
30084 (boot_mod_CFLAGS): likewise
30085 (boot_mod_LDFLAGS): likewise
30086 * conf/i386-efi.rmk: likewise
30087 * conf/i386-ieee1275.rmk: likewise
30088 * conf/i386-pc.rmk: likewise
30089 * conf/powerpc-ieee1275.rmk: likewise
30090 * conf/sparc64-ieee1275.rmk: likewise
30091 * conf/x86_64-efi.rmk: likewise
30092 * include/grub/i386/pc/biosnum.h: new file
30093 * lib/i386/pc/biosnum.c: likewise
30094 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30095 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30096 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30097
30098 2009-06-10 Pavel Roskin <proski@gnu.org>
30099
30100 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30101 Use separate variables. Read only the file size at the end, but
30102 not the checksum that we don't use.
30103
30104 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30105 Adjust all callers.
30106
30107 * kern/ieee1275/openfw.c: Remove libc includes.
30108 * kern/ieee1275/cmain.c: Likewise.
30109 * include/grub/ieee1275/ieee1275.h: Likewise.
30110
30111 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30112 compiler warnings.
30113
30114 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30115
30116 * Makefile.in: Remove all trailing whitespace.
30117 * conf/i386-pc.rmk: Likewise.
30118 * conf/powerpc-ieee1275.rmk: Likewise.
30119 * conf/sparc64-ieee1275.rmk: Likewise.
30120 * docs/grub.texi: Likewise.
30121 * docs/texinfo.tex: Likewise.
30122 * disk/fs_uuid.c: Likewise.
30123 * disk/lvm.c: Likewise.
30124 * disk/scsi.c: Likewise.
30125 * disk/ata.c: Likewise.
30126 * disk/ieee1275/ofdisk.c: Likewise.
30127 * disk/i386/pc/biosdisk.c: Likewise.
30128 * disk/host.c: Likewise.
30129 * disk/raid.c: Likewise.
30130 * disk/efi/efidisk.c: Likewise.
30131 * disk/usbms.c: Likewise.
30132 * disk/memdisk.c: Likewise.
30133 * disk/loopback.c: Likewise.
30134 * kern/powerpc/dl.c: Likewise.
30135 * kern/device.c: Likewise.
30136 * kern/dl.c: Likewise.
30137 * kern/sparc64/dl.c: Likewise.
30138 * kern/ieee1275/ieee1275.c: Likewise.
30139 * kern/term.c: Likewise.
30140 * kern/fs.c: Likewise.
30141 * kern/i386/dl.c: Likewise.
30142 * kern/i386/pc/startup.S: Likewise.
30143 * kern/i386/pc/init.c: Likewise.
30144 * kern/i386/pc/mmap.c: Likewise.
30145 * kern/i386/pc/lzo1x.S: Likewise.
30146 * kern/i386/ieee1275/init.c: Likewise.
30147 * kern/i386/realmode.S: Likewise.
30148 * kern/i386/tsc.c: Likewise.
30149 * kern/partition.c: Likewise.
30150 * kern/corecmd.c: Likewise.
30151 * kern/file.c: Likewise.
30152 * kern/efi/efi.c: Likewise.
30153 * kern/efi/init.c: Likewise.
30154 * kern/efi/mm.c: Likewise.
30155 * kern/main.c: Likewise.
30156 * kern/err.c: Likewise.
30157 * kern/env.c: Likewise.
30158 * kern/disk.c: Likewise.
30159 * kern/generic/millisleep.c: Likewise.
30160 * kern/generic/rtc_get_time_ms.c: Likewise.
30161 * kern/misc.c: Likewise.
30162 * kern/parser.c: Likewise.
30163 * genmk.rb: Likewise.
30164 * configure.ac: Likewise.
30165 * boot/i386/pc/diskboot.S: Likewise.
30166 * boot/i386/pc/pxeboot.S: Likewise.
30167 * boot/i386/pc/boot.S: Likewise.
30168 * boot/i386/pc/lnxboot.S: Likewise.
30169 * boot/i386/pc/cdboot.S: Likewise.
30170 * parttool/pcpart.c: Likewise.
30171 * video/readers/tga.c: Likewise.
30172 * video/video.c: Likewise.
30173 * video/bitmap.c: Likewise.
30174 * lib/envblk.c: Likewise.
30175 * lib/i386/setjmp.S: Likewise.
30176 * fs/xfs.c: Likewise.
30177 * fs/afs.c: Likewise.
30178 * fs/fat.c: Likewise.
30179 * fs/ntfs.c: Likewise.
30180 * fs/udf.c: Likewise.
30181 * fs/affs.c: Likewise.
30182 * fs/iso9660.c: Likewise.
30183 * fs/hfs.c: Likewise.
30184 * fs/fshelp.c: Likewise.
30185 * fs/ext2.c: Likewise.
30186 * fs/jfs.c: Likewise.
30187 * fs/reiserfs.c: Likewise.
30188 * fs/hfsplus.c: Likewise.
30189 * fs/minix.c: Likewise.
30190 * fs/cpio.c: Likewise.
30191 * fs/sfs.c: Likewise.
30192 * fs/ufs.c: Likewise.
30193 * efiemu/prepare.c: Likewise.
30194 * efiemu/loadcore_common.c: Likewise.
30195 * efiemu/runtime/efiemu.sh: Likewise.
30196 * efiemu/runtime/efiemu.S: Likewise.
30197 * efiemu/runtime/efiemu.c: Likewise.
30198 * efiemu/pnvram.c: Likewise.
30199 * efiemu/main.c: Likewise.
30200 * efiemu/i386/pc/cfgtables.c: Likewise.
30201 * efiemu/i386/loadcore64.c: Likewise.
30202 * efiemu/i386/loadcore32.c: Likewise.
30203 * efiemu/loadcore.c: Likewise.
30204 * efiemu/symbols.c: Likewise.
30205 * efiemu/mm.c: Likewise.
30206 * include/grub/autoefi.h: Likewise.
30207 * include/grub/datetime.h: Likewise.
30208 * include/grub/term.h: Likewise.
30209 * include/grub/hfs.h: Likewise.
30210 * include/grub/lvm.h: Likewise.
30211 * include/grub/i386/tsc.h: Likewise.
30212 * include/grub/i386/linux.h: Likewise.
30213 * include/grub/i386/xnu.h: Likewise.
30214 * include/grub/i386/efiemu.h: Likewise.
30215 * include/grub/i386/pc/biosdisk.h: Likewise.
30216 * include/grub/i386/pc/memory.h: Likewise.
30217 * include/grub/i386/pc/vbe.h: Likewise.
30218 * include/grub/parttool.h: Likewise.
30219 * include/grub/video.h: Likewise.
30220 * include/grub/memory.h: Likewise.
30221 * include/grub/fs.h: Likewise.
30222 * include/grub/partition.h: Likewise.
30223 * include/grub/xnu.h: Likewise.
30224 * include/grub/efi/api.h: Likewise.
30225 * include/grub/efi/pe32.h: Likewise.
30226 * include/grub/efi/memory.h: Likewise.
30227 * include/grub/multiboot.h: Likewise.
30228 * include/grub/usbdesc.h: Likewise.
30229 * include/grub/multiboot2.h: Likewise.
30230 * include/grub/acpi.h: Likewise.
30231 * include/grub/efiemu/efiemu.h: Likewise.
30232 * include/grub/disk.h: Likewise.
30233 * include/grub/ieee1275/ieee1275.h: Likewise.
30234 * include/grub/net.h: Likewise.
30235 * include/grub/machoload.h: Likewise.
30236 * include/grub/macho.h: Likewise.
30237 * include/multiboot.h: Likewise.
30238 * genmoddep.awk: Likewise.
30239 * normal/main.c: Likewise.
30240 * normal/menu_entry.c: Likewise.
30241 * normal/menu_viewer.c: Likewise.
30242 * normal/completion.c: Likewise.
30243 * normal/cmdline.c: Likewise.
30244 * normal/misc.c: Likewise.
30245 * normal/datetime.c: Likewise.
30246 * bus/usb/usbtrans.c: Likewise.
30247 * bus/usb/ohci.c: Likewise.
30248 * bus/usb/uhci.c: Likewise.
30249 * bus/usb/usb.c: Likewise.
30250 * mmap/efi/mmap.c: Likewise.
30251 * mmap/i386/pc/mmap_helper.S: Likewise.
30252 * mmap/i386/pc/mmap.c: Likewise.
30253 * mmap/i386/mmap.c: Likewise.
30254 * mmap/i386/uppermem.c: Likewise.
30255 * mmap/mmap.c: Likewise.
30256 * commands/acpi.c: Likewise.
30257 * commands/echo.c: Likewise.
30258 * commands/blocklist.c: Likewise.
30259 * commands/loadenv.c: Likewise.
30260 * commands/usbtest.c: Likewise.
30261 * commands/boot.c: Likewise.
30262 * commands/parttool.c: Likewise.
30263 * commands/search.c: Likewise.
30264 * commands/cat.c: Likewise.
30265 * commands/i386/pc/play.c: Likewise.
30266 * commands/i386/pc/drivemap.c: Likewise.
30267 * commands/i386/pc/vbeinfo.c: Likewise.
30268 * commands/i386/pc/acpi.c: Likewise.
30269 * commands/i386/pc/vbetest.c: Likewise.
30270 * commands/ls.c: Likewise.
30271 * commands/cmp.c: Likewise.
30272 * commands/test.c: Likewise.
30273 * commands/efi/acpi.c: Likewise.
30274 * commands/gptsync.c: Likewise.
30275 * commands/help.c: Likewise.
30276 * partmap/amiga.c: Likewise.
30277 * partmap/apple.c: Likewise.
30278 * partmap/acorn.c: Likewise.
30279 * partmap/pc.c: Likewise.
30280 * partmap/sun.c: Likewise.
30281 * partmap/gpt.c: Likewise.
30282 * script/sh/lexer.c: Likewise.
30283 * script/sh/function.c: Likewise.
30284 * font/font.c: Likewise.
30285 * font/font_cmd.c: Likewise.
30286 * loader/powerpc/ieee1275/linux.c: Likewise.
30287 * loader/efi/chainloader.c: Likewise.
30288 * loader/multiboot_loader.c: Likewise.
30289 * loader/macho.c: Likewise.
30290 * loader/i386/multiboot.c: Likewise.
30291 * loader/i386/linux.c: Likewise.
30292 * loader/i386/pc/linux.c: Likewise.
30293 * loader/i386/pc/multiboot2.c: Likewise.
30294 * loader/i386/pc/chainloader.c: Likewise.
30295 * loader/i386/pc/xnu.c: Likewise.
30296 * loader/i386/bsd_trampoline.S: Likewise.
30297 * loader/i386/efi/linux.c: Likewise.
30298 * loader/i386/multiboot_elfxx.c: Likewise.
30299 * loader/i386/bsd_helper.S: Likewise.
30300 * loader/i386/bsd.c: Likewise.
30301 * loader/i386/linux_trampoline.S: Likewise.
30302 * loader/i386/xnu_helper.S: Likewise.
30303 * loader/i386/xnu.c: Likewise.
30304 * loader/i386/bsd_pagetable.c: Likewise.
30305 * loader/i386/multiboot_helper.S: Likewise.
30306 * loader/xnu.c: Likewise.
30307 * loader/xnu_resume.c: Likewise.
30308 * io/gzio.c: Likewise.
30309 * term/efi/console.c: Likewise.
30310 * term/terminfo.c: Likewise.
30311 * term/ieee1275/ofconsole.c: Likewise.
30312 * term/i386/pc/serial.c: Likewise.
30313 * term/i386/pc/vesafb.c: Likewise.
30314 * term/i386/pc/vga.c: Likewise.
30315 * term/usb_keyboard.c: Likewise.
30316 * term/gfxterm.c: Likewise.
30317 * aclocal.m4: Likewise.
30318 * util/lvm.c: Likewise.
30319 * util/grub.d/30_os-prober.in: Likewise.
30320 * util/grub.d/10_hurd.in: Likewise.
30321 * util/console.c: Likewise.
30322 * util/grub-macho2img.c: Likewise.
30323 * util/grub-probe.c: Likewise.
30324 * util/hostfs.c: Likewise.
30325 * util/i386/pc/grub-mkimage.c: Likewise.
30326 * util/i386/pc/grub-setup.c: Likewise.
30327 * util/i386/efi/grub-mkimage.c: Likewise.
30328 * util/grub-mkconfig.in: Likewise.
30329 * util/raid.c: Likewise.
30330 * util/resolve.c: Likewise.
30331 * util/grub-mkdevicemap.c: Likewise.
30332 * util/grub-emu.c: Likewise.
30333 * util/getroot.c: Likewise.
30334 * util/hostdisk.c: Likewise.
30335 * util/usb.c: Likewise.
30336 * util/grub-editenv.c: Likewise.
30337 * util/misc.c: Likewise.
30338
30339 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30340
30341 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30342 `genparttoollist.sh'.
30343 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30344 Add `*.sh' to the list find searches for and change `mdate.sh'
30345 to `mdate-sh'.
30346
30347 2009-06-10 Pavel Roskin <proski@gnu.org>
30348
30349 * include/grub/multiboot2.h: Provide compatibility defines for
30350 multiboot2.h.
30351 * include/multiboot2.h: Include stdint.h only if needed, using
30352 angle brackets.
30353 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30354 grub/multiboot2.h.
30355 * loader/ieee1275/multiboot2.c: Likewise.
30356 * loader/multiboot2.c: Likewise.
30357 * loader/multiboot_loader.c: Likewise.
30358
30359 * configure.ac: Use -nostdlib when probing for the target. It
30360 should not be required to have libc for the target.
30361
30362 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30363 they fail without libc headers for the target.
30364 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30365 exports.
30366 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30367 preprocessor conditionals.
30368
30369 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30370 build system doesn't need to be aware of the tar.c internals.
30371
30372 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30373
30374 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30375
30376 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30377
30378 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30379 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30380
30381 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30382
30383 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30384 aren't available if ata.mod gets used.
30385
30386 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30387
30388 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30389 initialising controller.
30390 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30391
30392 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30393
30394 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30395 to choose between ata and biosdisk module on i386-pc.
30396
30397 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30398
30399 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30400 Subclass and Programming Interface fields in terms of the 3 byte
30401 Class Code register.
30402 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30403
30404 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30405 interface is OHCI. Add grub_dprintf for symmetry with
30406 bus/usb/uhci.c.
30407 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30408 interface is UHCI. Add interf variable for programming
30409 interface. Print interface with class/subclass.
30410
30411 * bus/usb/ohci.c: Set interf with correct field.
30412
30413 * bus/usb/uhci.c: Remove unneeded doubled lines.
30414 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30415 Remove whitespace inside comment.
30416
30417 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30418
30419 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30420 as fallback an equivalent option without depth.
30421
30422 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30423
30424 Not fail if unable to retrieve C/H/S on LBA disks
30425
30426 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30427 if unable to retrieve C/H/S on LBA disks
30428
30429 2009-06-08 Pavel Roskin <proski@gnu.org>
30430
30431 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30432 about aliasing.
30433
30434 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30435
30436 * Makefile.in (uninstall): Remove all $lib_DATA files.
30437
30438 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30439
30440 Bugfix: install on partitionless device
30441
30442 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30443 is a whole disk
30444
30445 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30446
30447 * Makefile.in (uninstall): Remove all $include_DATA files.
30448
30449 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30450
30451 * commands/true.c: New file. Implement the true and false commands.
30452 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30453 (true_mod_SOURCES): New variable.
30454 (true_mod_CFLAGS): Likewise.
30455 (true_mod_LDFLAGS): Likewise.
30456
30457 2009-06-05 Colin D Bennett <colin@gibibit.com>
30458
30459 Optimized font character lookup using binary search instead of linear
30460 search. Fonts now are required to have the character index ordered by
30461 code point.
30462
30463 * font/font.c (load_font_index): Verify that fonts have ordered
30464 character indices.
30465 (find_glyph): Use binary search instead of linear search to find a
30466 character in a font.
30467
30468 2009-06-05 Michael Scherer <misc@mandriva.org>
30469
30470 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30471 uses case sensitive btree.
30472 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30473 only for case insensitive filesystems.
30474
30475 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30476
30477 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30478 * conf/common.rmk (search_mod_CFLAGS): likewise
30479
30480 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30481
30482 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30483 compensate a compiler bug
30484
30485 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30486
30487 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30488 instead of '\b'
30489
30490 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30491
30492 Definitions for creating asm symbols with Apple's CC
30493
30494 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30495 [APPLE_CC] (VARIABLE): likewise
30496
30497 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30498
30499 Disable lnxboot.img when compiled
30500 with Apple's CC
30501
30502 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30503 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30504 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30505 [! APPLE_CC] (CODE_LENG): skip
30506 [! APPLE_CC] (setup_sects): likewise
30507 [! APPLE_CC]: skip filling
30508
30509 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30510
30511 Address in trampolines based on 32-bit registers when compiled
30512 with Apple's CC
30513
30514 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30515 for addresses
30516 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30517
30518 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30519
30520 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30521
30522 * kern/misc.c [APPLE_CC] (memcpy): new function
30523 [APPLE_CC] (memmove): likewise
30524 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30525 (memcpy): define alias conditionally on !APPLE_CC
30526 (memset): likewise
30527 (abort): likewise
30528 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30529 APPLE_CC are defined
30530 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30531 (grub_assert_fail): make prototype conditional
30532
30533 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30534
30535 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30536
30537 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30538 grub-macho2img
30539 (CLEANFILES): add grub-macho2img
30540 (grub_macho2img_SOURCES): new variable
30541 * kern/i386/pc/startup.S (bss_start): new variable
30542 (bss_end): likewise
30543 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30544 * util/grub-macho2img.c: new file
30545
30546 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30547
30548 Use objconv when compiling with Apple's CC
30549
30550 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30551 (efiemu64.o): likewise
30552 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30553 when compiling with Apple's CC
30554 (efiemu64_s.o): likewise
30555 * configure.ac: check for objconv when compiling with Apple's CC
30556 * genmk.rb: use objconv for modules when compiled with Apple's CC
30557
30558 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30559
30560 Define segment as well as section when compiling with
30561 Apple's CC
30562
30563 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30564 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30565 (efiemu_convert_pointer): likewise
30566 (efiemu_set_virtual_address_map): likewise
30567 (efiemu_convert_pointer): likewise
30568 (efiemu_getcrc32): likewise
30569 (init_crc32_table): likewise
30570 (reflect): likewise
30571 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30572 (GRUB_MOD_DEP): likewise
30573
30574 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30575
30576 Allow a compilation without -mcmodel=large
30577
30578 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30579 when compiled without -mcmodel=large
30580 (filter_memory_map): remove memory post 4 GiB when compiled
30581 without -mcmodel=large
30582 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30583 TARGET_CFLAGS when -mcmodel=large isn't supported
30584
30585 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30586
30587 Remove nested functions in efiemu core
30588
30589 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30590
30591 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30592
30593 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30594
30595 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30596 temporary storage
30597 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30598 using Apple's CC
30599 (grub_cpu_is_tsc_supported): likewise
30600 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30601
30602 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30603
30604 Absolute addressing through constant with Apple's cc
30605
30606 * kern/i386/pc/startup.S: Define necessary constants
30607 and address through it when using ABS with Apple's CC
30608 * boot/i386/pc/diskboot.S: likewise
30609 * boot/i386/pc/boot.S: likewise
30610 * boot/i386/pc/lnxboot.S: likewise
30611 * boot/i386/pc/cdboot.S: likewise
30612 * mmap/i386/pc/mmap_helper.S: likewise
30613 * commands/i386/pc/drivemap_int13h.S: likewise
30614
30615 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30616
30617 Check if compiler is apple cc
30618
30619 * Makefile.in (ASFLAGS): new variable
30620 (TARGET_ASFLAGS): likewise
30621 (TARGET_MODULE_FORMAT): likewise
30622 (TARGET_APPLE_CC): likewise
30623 (OBJCONV): likewise
30624 (TARGET_IMG_CFLAGS): likewise
30625 (TARGET_CPPFLAGS): add includedir
30626 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30627 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30628 Check for linker script only if compiler isn't Apple's CC
30629 (TARGET_MODULE_FORMAT): set
30630 (TARGET_APPLE_CC): likewise
30631 (TARGET_ASFLAGS): likewise
30632 (ASFLAGS): likewise
30633 Check for objcopy only if compiler isn't Apple's CC
30634 Check for BSS symbol only if compiler isn't Apple's CC
30635 * genmk.rb: adapt nm options if we use Apple's utils
30636 * aclocal.m4 (grub_apple_cc): new test
30637 (grub_apple_target_cc): likewise
30638
30639 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30640
30641 Simplify sed expressions and improve awk
30642
30643 * Makefile.in (install-local): simplify sed expression
30644 * gencmdlist.sh: likewise
30645 * genmoddep.awk: avoid adding module as a dependency of itself
30646
30647 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30648
30649 Add missing start symbols
30650
30651 * boot/i386/pc/boot.S: add start
30652 * boot/i386/pc/pxeboot.S: likewise
30653
30654 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30655
30656 Fix wrong assumptions with grub-mkimage on EFI
30657
30658 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30659 (relocate_addresses): consider both r_addend and value at offset
30660 (make_mods_section): zerofill modinfo and header
30661 (convert_elf): write prefix here
30662
30663 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30664
30665 Use .asciz instead of .string
30666
30667 * i386/pc/diskboot.S: use .asciz instead of .string
30668 * i386/pc/boot.S: likewise
30669 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30670 (GRUB_MOD_NAME): likewise
30671
30672 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30673
30674 gfxpayload support
30675
30676 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30677 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30678 (grub_video_setup): remove
30679 (grub_video_set_mode): new prototype
30680 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30681 (vid_mode): remove
30682 (linux_vesafb_res): compile only on PCBIOS
30683 (grub_linux_boot): support gfxpayload
30684 * loader/i386/pc/xnu.c (video_hook): new function
30685 (grub_xnu_set_video): support gfxpayload
30686 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30687 (DEFAULT_VIDEO_HEIGHT): likewise
30688 (DEFAULT_VIDEO_FLAGS): likewise
30689 (DEFAULT_VIDEO_MODE): new definition
30690 (video_hook): new function
30691 (grub_gfxterm_init): use grub_video_set_mode
30692 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30693 loading xnu
30694 * video/video.c (grub_video_setup): removed
30695 (grub_video_set_mode): new function based on grub_gfxterm_init and
30696 grub_video_setup
30697
30698 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30699
30700 Avoid calling biosdisk in drivemap
30701
30702 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30703 (revparse_biosdisk): likewise
30704 (list_mappings): derive name from id directly
30705 (grub_cmd_drivemap): use tryparse_diskstring
30706
30707 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30708
30709 Script fixes
30710
30711 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30712 (grub_lexer_param): add tokenonhold
30713 (grub_script_create_cmdline): remove cmdline. All callers updated
30714 (grub_script_function_create): make functionname
30715 grub_script_arg. All callers updated
30716 (grub_script_execute_argument_to_string): new prototype
30717 * kern/parser.c (state_transitions): reorder
30718 (grub_parser_cmdline_state): fix a bug and make more compact
30719 * script/sh/execute.c (grub_script_execute_argument_to_string):
30720 make global
30721 (grub_script_execute_cmdline): use new format
30722 * script/sh/function.c (grub_script_function_create): make functionname
30723 grub_script_arg. All callers updated
30724 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30725 (grub_script_yylex): remove
30726 (grub_script_yylex2): renamed to ...
30727 (grub_script_yylex): ...renamed
30728 parse the expressions like a${b}c
30729 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30730 (GRUB_PARSER_TOKEN_VAR): remove
30731 (GRUB_PARSER_TOKEN_NAME): likewise
30732 ("if"): declare as typeless
30733 ("while"): likewise
30734 ("function"): likewise
30735 ("else"): likewise
30736 ("then"): likewise
30737 ("fi"): likewise
30738 (text): remove
30739 (argument): likewise
30740 (script): accept empty scripts and make exit on error
30741 (arguments): use GRUB_PARSER_TOKEN_ARG
30742 (function): likewise
30743 (command): move error handling to script
30744 (menuentry): move grub_script_lexer_ref before
30745 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30746 argument. All callers updated
30747
30748 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30749
30750 Prevent GRUB from probing floppies during boot.
30751
30752 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30753 * commands/search.c (options): Add --no-floppy.
30754 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30755 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30756 --no-floppy when searching for UUIDs.
30757
30758 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30759
30760 Simplify the code duplication in commands/search.c.
30761
30762 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30763 (search_fs): ... this. Update all users.
30764
30765 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30766
30767 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30768
30769 2009-05-28 Pavel Roskin <proski@gnu.org>
30770
30771 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30772 Remove the original symlink explicitly.
30773
30774 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30775 just one slash. That's how grub_fshelp_find_file() does it.
30776
30777 2009-05-26 Pavel Roskin <proski@gnu.org>
30778
30779 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30780 to `str'.
30781
30782 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30783 possibly unused.
30784
30785 2009-05-25 Christian Franke <franke@computer.org>
30786
30787 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30788 register.
30789 (grub_atapi_identify): Add wait after drive select.
30790 (grub_ata_identify): Do more strict status register check before
30791 calling grub_atapi_identify (). Suppress error message if status
30792 register is 0x00 after command failure. Add status register
30793 check after PIO read to avoid bogus identify due to stuck DRQ.
30794 Thanks to Pavel Roskin for testing.
30795 (grub_device_initialize): Remove unsafe status register check.
30796 Thanks to 'phcoder' for problem report and patch.
30797 Prevent sign extension in debug message.
30798
30799 2009-05-23 Colin D Bennett <colin@gibibit.com>
30800
30801 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30802 definition file, and functions defined in `normal/menu.c' have had
30803 their prototypes moved to `include/grub/menu.h' for consistency.
30804
30805 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30806 from normal.h.
30807 (grub_menu_get_entry): Likewise.
30808 (grub_menu_get_timeout): Likewise.
30809 (grub_menu_set_timeout): Likewise.
30810 (grub_menu_execute_entry): Likewise.
30811 (grub_menu_execute_with_fallback): Likewise.
30812 (grub_menu_entry_run): Likewise.
30813
30814 * include/grub/normal.h: Re-ordered and grouped function
30815 prototypes by file that the function is defined in.
30816 (grub_menu_execute_callback): Removed; moved to menu.h.
30817 (grub_menu_get_entry): Likewise.
30818 (grub_menu_get_timeout): Likewise.
30819 (grub_menu_set_timeout): Likewise.
30820 (grub_menu_execute_entry): Likewise.
30821 (grub_menu_execute_with_fallback): Likewise.
30822 (grub_menu_entry_run): Likewise.
30823 (grub_menu_addentry): Renamed from this ...
30824 (grub_normal_add_menu_entry): ... to this.
30825
30826 * normal/main.c (grub_menu_addentry): Renamed from this ...
30827 (grub_normal_add_menu_entry): ... to this.
30828
30829 * script/sh/execute.c (grub_script_execute_menuentry): Update
30830 reference to renamed grub_menu_addentry function.
30831
30832 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30833
30834 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30835
30836 2009-05-22 Pavel Roskin <proski@gnu.org>
30837
30838 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30839 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30840 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30841 compiling for the i386 targets, but not for the utilities.
30842
30843 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30844 to grub_uint8_t.
30845 (grub_root_drive): Likewise.
30846 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30847 remove alignment.
30848 (grub_root_drive): Change size to byte.
30849 (grub_start_addr): Remove.
30850 (grub_end_addr): Likewise.
30851 (grub_apm_bios_info): Likewise.
30852
30853 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30854
30855 * normal/i386: Remove.
30856 * normal/powerpc: Likewise.
30857 * normal/sparc64: Likewise.
30858 * normal/x86_64: Likewise.
30859
30860 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30861
30862 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30863 * loader/i386/linux_trampoline.S: Fix indentation
30864 * loader/i386/xnu_helper.S: Likewise
30865
30866 2009-05-18 Colin D Bennett <colin@gibibit.com>
30867
30868 Display error messages when parsing a Lua statement fails.
30869 Previously, executing a syntactically invalid statement like
30870 ")foo" or "bar;" would silently fail.
30871
30872 * script/lua/grub_main.c (handle_lua_error): New function.
30873 (grub_lua_parse_line): Improved reporting of Lua parser and
30874 execution errors.
30875
30876 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30877
30878 Remove -Werror which causes build to fail on some systems
30879
30880 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30881 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30882 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30883
30884 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30885
30886 trampoline for linux on 64-bit platform
30887
30888 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30889 loader/i386/efi/linux_trampoline.S
30890 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30891 declaration
30892 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30893 here
30894 * loader/i386/linux_trampoline.S: moved here
30895 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30896 trampoline
30897 (jumpvector): removed
30898 (grub_linux_trampoline_start): new declaration
30899 (grub_linux_trampoline_end): likewise
30900 (grub_linux_boot): use trampoline when on 64-bit platform
30901 * loader/i386/linux.c: likewise
30902
30903 2009-05-16 Pavel Roskin <proski@gnu.org>
30904
30905 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30906 const to avoid a warning.
30907 (grub_lua_setenv): Likewise.
30908 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30909 lmsg to fix a warning.
30910
30911 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30912
30913 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30914 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30915 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30916 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30917 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30918 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30919 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30920 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30921
30922 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30923
30924 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30925
30926 2009-05-16 Bean <bean123ch@gmail.com>
30927
30928 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30929 (lua_mod_SOURCES): New variable.
30930 (lua_mod_CFLAGS): Likewise.
30931 (lua_mod_LDFLAGS): Likewise.
30932
30933 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30934 (setjmp_mod_SOURCES): New variable.
30935 (setjmp_mod_CFLAGS): Likewise.
30936 (setjmp_LDFLAGS): Likewise.
30937
30938 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
30939 (setjmp_mod_SOURCES): New variable.
30940 (setjmp_mod_CFLAGS): Likewise.
30941 (setjmp_LDFLAGS): Likewise.
30942
30943 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30944 (setjmp_mod_SOURCES): New variable.
30945 (setjmp_mod_CFLAGS): Likewise.
30946 (setjmp_LDFLAGS): Likewise.
30947
30948 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30949 (setjmp_mod_SOURCES): New variable.
30950 (setjmp_mod_CFLAGS): Likewise.
30951 (setjmp_LDFLAGS): Likewise.
30952
30953 * normal/i386/setjmp.S: Moved from here ...
30954 * lib/i386/setjmp.S: ... Moved here
30955 * normal/x86_64/setjmp.S: Moved from here ...
30956 * lib/x86_64/setjmp.S: ... Moved here
30957 * normal/powerpc/setjmp.S: Moved from here ...
30958 * lib/powerpc/setjmp.S: ... Moved here
30959 * normal/sparc64/setjmp.S: Moved from here ...
30960 * lib/sparc64/setjmp.S: ... Moved here
30961
30962 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
30963 returns_twice in mingw.
30964
30965 * script/lua/grub_lib.c: New file.
30966 * script/lua/grub_lib.h: Likewise.
30967 * script/lua/grub_lua.h: Likewise.
30968 * script/lua/grub_main.c: Likewise.
30969 * script/lua/lapi.c: Likewise.
30970 * script/lua/lapi.h: Likewise.
30971 * script/lua/lauxlib.c: Likewise.
30972 * script/lua/lauxlib.h: Likewise.
30973 * script/lua/lbaselib.c: Likewise.
30974 * script/lua/lcode.c: Likewise.
30975 * script/lua/lcode.h: Likewise.
30976 * script/lua/ldblib.c: Likewise.
30977 * script/lua/ldebug.c: Likewise.
30978 * script/lua/ldebug.h: Likewise.
30979 * script/lua/ldo.c: Likewise.
30980 * script/lua/ldo.h: Likewise.
30981 * script/lua/ldump.c: Likewise.
30982 * script/lua/lfunc.c: Likewise.
30983 * script/lua/lfunc.h: Likewise.
30984 * script/lua/lgc.c: Likewise.
30985 * script/lua/lgc.h: Likewise.
30986 * script/lua/linit.c: Likewise.
30987 * script/lua/liolib.c: Likewise.
30988 * script/lua/llex.c: Likewise.
30989 * script/lua/llex.h: Likewise.
30990 * script/lua/llimits.h: Likewise.
30991 * script/lua/lmathlib.c: Likewise.
30992 * script/lua/lmem.c: Likewise.
30993 * script/lua/lmem.h: Likewise.
30994 * script/lua/loadlib.c: Likewise.
30995 * script/lua/lobject.c: Likewise.
30996 * script/lua/lobject.h: Likewise.
30997 * script/lua/lopcodes.c: Likewise.
30998 * script/lua/lopcodes.h: Likewise.
30999 * script/lua/loslib.c: Likewise.
31000 * script/lua/lparser.c: Likewise.
31001 * script/lua/lparser.h: Likewise.
31002 * script/lua/lstate.c: Likewise.
31003 * script/lua/lstate.h: Likewise.
31004 * script/lua/lstring.c: Likewise.
31005 * script/lua/lstring.h: Likewise.
31006 * script/lua/lstrlib.c: Likewise.
31007 * script/lua/ltable.c: Likewise.
31008 * script/lua/ltable.h: Likewise.
31009 * script/lua/ltablib.c: Likewise.
31010 * script/lua/ltm.c: Likewise.
31011 * script/lua/ltm.h: Likewise.
31012 * script/lua/lua.h: Likewise.
31013 * script/lua/luaconf.h: Likewise.
31014 * script/lua/lualib.h: Likewise.
31015 * script/lua/lundump.c: Likewise.
31016 * script/lua/lundump.h: Likewise.
31017 * script/lua/lvm.c: Likewise.
31018 * script/lua/lvm.h: Likewise.
31019 * script/lua/lzio.c: Likewise.
31020 * script/lua/lzio.h: Likewise.
31021
31022 2009-05-16 Bean <bean123ch@gmail.com>
31023
31024 * include/grub/kernel.h (grub_module_header_types): Add type
31025 OBJ_TYPE_CONFIG.
31026
31027 * kern/main.c (grub_load_config): New function.
31028 (grub_main): Call grub_load_config to read boot config.
31029
31030 * grub-mkimage (generate_image): New parameter config_path.
31031 (options): New option --config.
31032 (main): Parse --config option, and pass it to generate_image.
31033
31034 2009-05-14 Christian Franke <franke@computer.org>
31035
31036 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31037 This fixes build on Cygwin.
31038
31039 2009-05-14 Pavel Roskin <proski@gnu.org>
31040
31041 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31042 jump. This saves two bytes, so the typical case of 2 swapped
31043 drives would fit 32 bytes.
31044
31045 2009-05-13 Pavel Roskin <proski@gnu.org>
31046
31047 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31048 grub_uint32_t to avoid a warning.
31049
31050 * loader/i386/linux.c (allocate_pages): When assigning
31051 real_mode_mem, cast through grub_size_t to fix a warning. The
31052 code already makes sure that the value would fit a pointer.
31053 (grub_linux_setup_video): Cast render_target->data to
31054 grub_size_t to fix a warning.
31055
31056 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31057
31058 * commands/i386/pc/drivemap.c: New file - implement drivemap
31059 command.
31060 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31061 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31062
31063 2009-05-13 Pavel Roskin <proski@gnu.org>
31064
31065 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31066 embedding_area_exists.
31067
31068 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31069
31070 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31071 it easier to understand / work with.
31072 Improve warning messages for cases where there's no embedding area,
31073 or when it is too small (or core.img too large).
31074
31075 2009-05-13 Pavel Roskin <proski@gnu.org>
31076
31077 * loader/i386/pc/multiboot2.c: Add necessary includes for
31078 grub_multiboot2_real_boot().
31079
31080 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31081 PX record is always little-endian. We only need the lower 2
31082 bytes of the mode.
31083
31084 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31085 facilitate code reuse.
31086 (grub_cpio_mount): Use "struct head", not a char buffer. This
31087 fixes a warning reported by gcc 4.4.
31088
31089 * kernel/disk.c (grub_disk_read): Use void pointer for the
31090 buffer.
31091 (grub_disk_write): Use const void pointer for the buffer.
31092 Adjust all callers. Remove unnecessary casts.
31093
31094 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31095
31096 * util/i386/pc/grub-install.in: Update copyright year.
31097
31098 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31099
31100 gptsync
31101
31102 * commands/gptsync.c: new file
31103 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31104 (gptsync_mod_SOURCES): new variable
31105 (gptsync_mod_CFLAGS): likewise
31106 (gptsync_mod_LDFLAGS): likewise
31107 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31108 new definition
31109 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31110 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31111 * conf/i386-ieee1275.rmk: likewise
31112 * conf/i386-pc.rmk: likewise
31113 * conf/powerpc-ieee1275.rmk: likewise
31114
31115 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31116
31117 Fixed grub-emu
31118
31119 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31120 (grub_dl_ref): likewise
31121
31122 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31123
31124 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31125 split in two functions (one for msdos and one for gpt).
31126
31127 2009-05-08 Pavel Roskin <proski@gnu.org>
31128
31129 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31130 not modified.
31131
31132 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31133 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31134 Initialize them with -1. Add sanity check for bad1. Eliminate
31135 nerr variable.
31136
31137 2009-05-08 David S. Miller <davem@davemloft.net>
31138
31139 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31140
31141 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31142
31143 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31144 existence.
31145
31146 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31147
31148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31149 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31150
31151 2009-05-05 David S. Miller <davem@davemloft.net>
31152
31153 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31154
31155 2009-05-05 Pavel Roskin <proski@gnu.org>
31156
31157 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31158 of grub_dl_ref() and grub_dl_unref().
31159 * commands/parttool.c: Remove preprocessor conditionals around
31160 grub_dl_ref() and grub_dl_unref().
31161 * fs/affs.c: Likewise.
31162 * fs/afs.c: Likewise.
31163 * fs/cpio.c: Likewise.
31164 * fs/ext2.c: Likewise.
31165 * fs/fat.c: Likewise.
31166 * fs/hfs.c: Likewise.
31167 * fs/hfsplus.c: Likewise.
31168 * fs/iso9660.c: Likewise.
31169 * fs/jfs.c: Likewise.
31170 * fs/minix.c: Likewise.
31171 * fs/ntfs.c: Likewise.
31172 * fs/reiserfs.c: Likewise.
31173 * fs/sfs.c: Likewise.
31174 * fs/udf.c: Likewise.
31175 * fs/ufs.c: Likewise.
31176 * fs/xfs.c: Likewise.
31177 * include/grub/dl.h: Likewise.
31178 * loader/xnu.c: Likewise.
31179
31180 2009-05-04 Pavel Roskin <proski@gnu.org>
31181
31182 * commands/acpi.c: Remove unused variable my_mod.
31183 * partmap/amiga.c: Likewise.
31184 * partmap/apple.c: Likewise.
31185 * partmap/gpt.c: Likewise.
31186 * partmap/pc.c: Likewise.
31187 * partmap/sun.c: Likewise.
31188 * term/gfxterm.c: Likewise.
31189 * term/i386/pc/vesafb.c: Likewise.
31190 * term/i386/pc/vga.c: Likewise.
31191
31192 2009-05-04 David S. Miller <davem@davemloft.net>
31193
31194 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31195 pointer args to grub_ieee1275_get_property().
31196
31197 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31198
31199 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31200 devices, and do not traverse down under controller nodes.
31201
31202 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31203 (grub_ofdisk_open): Use it to un-escape "," characters.
31204 * kern/disk.c (find_part_sep): New.
31205 (grub_disk_open): Use it to find the first non-escaped ','
31206 character in the disk name.
31207 * util/ieee1275/devicemap.c (escape_of_path): New.
31208 (grub_util_emit_devicemap_entry): Use it.
31209 * util/sparc64/ieee1275/grub-install.in: Update script to
31210 strip partition specifiers properly by not triggering on
31211 '\' escaped ',' characters.
31212
31213 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31214
31215 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31216 to 0x300.
31217 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31218 resolutions.
31219 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31220 on documentation from Wikipedia).
31221
31222 2009-05-04 Pavel Roskin <proski@gnu.org>
31223
31224 * disk/ata.c: Spelling fixes.
31225 * disk/raid.c: Likewise.
31226 * disk/usbms.c: Likewise.
31227 * disk/dmraid_nvidia.c: Likewise.
31228 * kern/ieee1275/openfw.c: Likewise.
31229 * kern/ieee1275/init.c: Likewise.
31230 * kern/ieee1275/cmain.c: Likewise.
31231 * boot/i386/pc/cdboot.S: Likewise.
31232 * video/readers/png.c: Likewise.
31233 * video/i386/pc/vbe.c: Likewise.
31234 * fs/udf.c: Likewise.
31235 * fs/hfs.c: Likewise.
31236 * fs/reiserfs.c: Likewise.
31237 * efiemu/runtime/efiemu.c: Likewise.
31238 * efiemu/main.c: Likewise.
31239 * efiemu/mm.c: Likewise.
31240 * include/grub/elf.h: Likewise.
31241 * include/grub/xnu.h: Likewise.
31242 * include/grub/usbdesc.h: Likewise.
31243 * include/grub/usb.h: Likewise.
31244 * include/grub/script_sh.h: Likewise.
31245 * include/grub/lib/LzmaEnc.h: Likewise.
31246 * include/grub/efiemu/efiemu.h: Likewise.
31247 * include/grub/command.h: Likewise.
31248 * normal/menu.c: Likewise.
31249 * normal/main.c: Likewise.
31250 * normal/datetime.c: Likewise.
31251 * bus/usb/uhci.c: Likewise.
31252 * mmap/i386/uppermem.c: Likewise.
31253 * mmap/mmap.c: Likewise.
31254 * commands/acpi.c: Likewise.
31255 * commands/test.c: Likewise.
31256 * partmap/apple.c: Likewise.
31257 * font/font.c: Likewise.
31258 * loader/sparc64/ieee1275/linux.c: Likewise.
31259 * loader/macho.c: Likewise.
31260 * loader/i386/bsd_trampoline.S: Likewise.
31261 * loader/i386/bsd.c: Likewise.
31262 * loader/xnu.c: Likewise.
31263 * term/i386/pc/vesafb.c: Likewise.
31264 * term/usb_keyboard.c: Likewise.
31265 * util/resolve.c: Likewise.
31266 * util/getroot.c: Likewise.
31267
31268 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31269
31270 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31271
31272 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31273
31274 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31275 build error.
31276
31277 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31278
31279 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31280 parameter only available on BIOS.
31281
31282 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31283
31284 Removed wrong semicolon in declaration
31285
31286 * grub/misc.h (grub_dprintf): remove semicolon
31287
31288 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31289
31290 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31291 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31292 is done by grub_cmd_linux() now).
31293 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31294 restore video to text mode.
31295 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31296 indicates lack of "vga=" parameter. "vga=0" is mapped to
31297 `GRUB_LINUX_VID_MODE_NORMAL'.
31298
31299 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31300
31301 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31302 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31303 and `normal/script.c'. Add `kern/rescue_reader.c',
31304 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31305 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31306 `grub_script.tab.c'.
31307
31308 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31309 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31311 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31312 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31313
31314 * Makefile.in: Remove duplicated 2008 in Copyright line.
31315
31316 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31317
31318 * util/misc.c (grub_util_warn): New function. Emits a warning
31319 unconditionally.
31320 * include/grub/util/misc.h (grub_util_warn): New declaration.
31321
31322 * util/i386/pc/grub-install.in: Understand --force and pass it down
31323 to grub-setup.
31324
31325 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31326 down to setup().
31327 (setup): Improve error messages and add warnings when requested to
31328 install in odd layouts. Refuse to install using blocklists unless
31329 --force was set.
31330
31331 2009-05-04 martin f. krafft <madduck@madduck.net>
31332
31333 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31334
31335 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31336
31337 Updated copyright year
31338
31339 * fs/hfsplus.c: updated copyright year
31340
31341 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31342
31343 HFS+ UUID
31344
31345 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31346 in the space previously used by unused3
31347 (grub_hfsplus_uuid): new function
31348 (grub_hfsplus_fs): added uuid field
31349
31350 2009-05-03 Pavel Roskin <proski@gnu.org>
31351
31352 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31353 suppress warnings. It's no longer needed.
31354 * disk/host.c: Likewise.
31355 * disk/ata_pthru.c: Likewise.
31356 * disk/loopback.c: Likewise.
31357 * hook/datehook.c: Likewise.
31358 * parttool/pcpart.c: Likewise.
31359 * fs/i386/pc/pxe.c: Likewise.
31360 * fs/ntfscomp.c: Likewise.
31361 * efiemu/main.c: Likewise.
31362 * mmap/mmap.c: Likewise.
31363 * commands/crc.c: Likewise.
31364 * commands/hexdump.c: Likewise.
31365 * commands/hdparm.c: Likewise.
31366 * commands/acpi.c: Likewise.
31367 * commands/echo.c: Likewise.
31368 * commands/minicmd.c: Likewise.
31369 * commands/blocklist.c: Likewise.
31370 * commands/memrw.c: Likewise.
31371 * commands/loadenv.c: Likewise.
31372 * commands/usbtest.c: Likewise.
31373 * commands/lsmmap.c: Likewise.
31374 * commands/boot.c: Likewise.
31375 * commands/parttool.c: Likewise.
31376 * commands/configfile.c: Likewise.
31377 * commands/search.c: Likewise.
31378 * commands/ieee1275/suspend.c: Likewise.
31379 * commands/cat.c: Likewise.
31380 * commands/i386/pc/pxecmd.c: Likewise.
31381 * commands/i386/pc/play.c: Likewise.
31382 * commands/i386/pc/halt.c: Likewise.
31383 * commands/i386/pc/vbeinfo.c: Likewise.
31384 * commands/i386/pc/vbetest.c: Likewise.
31385 * commands/lspci.c: Likewise.
31386 * commands/date.c: Likewise.
31387 * commands/handler.c: Likewise.
31388 * commands/ls.c: Likewise.
31389 * commands/test.c: Likewise.
31390 * commands/cmp.c: Likewise.
31391 * commands/efi/loadbios.c: Likewise.
31392 * commands/efi/fixvideo.c: Likewise.
31393 * commands/halt.c: Likewise.
31394 * commands/help.c: Likewise.
31395 * commands/reboot.c: Likewise.
31396 * hello/hello.c: Likewise.
31397 * script/sh/main.c: Likewise.
31398 * loader/xnu.c: Likewise.
31399 * term/terminfo.c: Likewise.
31400 * term/i386/pc/serial.c: Likewise.
31401 * term/usb_keyboard.c: Likewise.
31402
31403 2009-05-03 David S. Miller <davem@davemloft.net>
31404
31405 * normal/menu.c: Include grub/parser.h
31406
31407 2009-05-03 Pavel Roskin <proski@gnu.org>
31408
31409 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31410 not char*.
31411 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31412 Suggested by Javier Martín <lordhabbit@gmail.com>
31413
31414 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31415 efiemu??.o doesn't exist.
31416 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31417 copying.
31418
31419 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31420
31421 FreeBSD 64-bit support
31422
31423 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31424 and loader/i386/bsd_trampoline.S
31425 (bsd_mod_ASFLAGS): new variable
31426 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31427 (FREEBSD_MODTYPE_KERNEL64): likewise
31428 (grub_bsd64_trampoline_start): likewise
31429 (grub_bsd64_trampoline_end): likewise
31430 (grub_bsd64_trampoline_selfjump): likewise
31431 (grub_bsd64_trampoline_gdt): likewise
31432 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31433 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31434 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31435 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31436 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31437 of "attrib" member
31438 * loader/i386/bsd_pagetable.c: new file
31439 * loader/i386/bsd_trampoline.S: likewise
31440 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31441 (ALIGN_VAR): likewise
31442 (entry_hi): new variable
31443 (kern_end_mdofs): likewise
31444 (is_64bit): likewise
31445 (grub_freebsd_add_meta): use ALIGN_VAR
31446 (grub_e820_mmap): new declaration
31447 (grub_freebsd_add_mmap): new function
31448 (grub_freebsd_add_meta_module): support 64 bit kernels
31449 (grub_freebsd_list_modules): use ALIGN_VAR
31450 (gdt_descriptor): new declaration
31451 (grub_freebsd_boot): support 64 bit kernels
31452 (grub_bsd_elf64_hook): new function
31453 (grub_bsd_load_elf): support elf64
31454
31455 2009-05-03 Bean <bean123ch@gmail.com>
31456
31457 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31458 after we get the result of if statement.
31459
31460 2009-05-03 Bean <bean123ch@gmail.com>
31461
31462 * Makefile.in (enable_efiemu): New variable.
31463
31464 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31465 set.
31466 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31467 path.
31468 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31469 path, add -mno-red-zone option.
31470 (efiemu64_s.o): Likewise.
31471 (efiemu64.o): Use macro $^ for source file.
31472
31473 * configure.ac (--enable-efiemu): New option.
31474
31475 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31476
31477 xnu support
31478
31479 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31480 (pkglib_MODULES): add xnu.mod
31481 (xnu_mod_SOURCES): new variable
31482 (xnu_mod_CFLAGS): likewise
31483 (xnu_mod_LDFLAGS): likewise
31484 (xnu_mod_ASFLAGS): likewise
31485 * conf/i386-pc.rmk: likewise
31486 * conf/x86_64-efi.rmk: likewise
31487 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31488 new declaration
31489 * include/grub/i386/macho.h: new file
31490 * include/grub/i386/xnu.h: likewise
31491 * include/grub/macho.h: likewise
31492 * include/grub/machoload.h: likewise
31493 * include/grub/x86_64/macho.h: likewise
31494 * include/grub/x86_64/xnu.h: likewise
31495 * include/grub/xnu.h: likewise
31496 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31497 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31498 * loader/i386/efi/xnu.c: new file
31499 * loader/i386/pc/xnu.c: likewise
31500 * loader/i386/xnu.c: likewise
31501 * loader/i386/xnu_helper.S: likewise
31502 * loader/macho.c: likewise
31503 * loader/xnu.c: likewise
31504 * loader/xnu_resume.c: likewise
31505 * util/grub-dumpdevtree: likewise
31506 * include/grub/i386/pit.h: include grub/err.h
31507 (grub_pit_wait): export
31508 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31509
31510 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31511
31512 Efiemu
31513
31514 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31515 _linux_efi, linux_efi.
31516 new files in grub-emu
31517 new targets efiemu32.o and efiemu64.o
31518 * loader/linux_normal_efiemu.c: likewise
31519 * loader/i386/efi/linux.c: added preliminary efiemu support
31520 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31521 files to copy
31522 * include/grub/autoefi.h: new file
31523 * include/grub/i386/efiemu.h: likewise
31524 * include/grub/i386/pc/efiemu.h: likewise
31525 * include/grub/efi/api.h: add LL suffix when necessary
31526 new definitions relating to tables
31527 * include/grub/efiemu/efiemu.h: new file
31528 * include/grub/efiemu/runtime.h: likewise
31529 * efiemu/prepare.c: likewise
31530 * efiemu/loadcore_common.c: likewise
31531 * efiemu/loadcore64.c: likewise
31532 * efiemu/runtime/efiemu.sh: likewise
31533 * efiemu/runtime/efiemu.S: likewise
31534 * efiemu/runtime/efiemu.c: likewise
31535 * efiemu/runtime/config.h: likewise
31536 * efiemu/prepare32.c: likewise
31537 * efiemu/main.c: likewise
31538 * efiemu/modules/pnvram.c: likewise
31539 * efiemu/modules/i386: likewise
31540 * efiemu/modules/i386/pc: likewise
31541 * efiemu/modules/acpi.c: likewise
31542 * efiemu/i386/pc/cfgtables.c: likewise
31543 * efiemu/i386/loadcore64.c: likewise
31544 * efiemu/i386/loadcore32.c: likewise
31545 * efiemu/prepare64.c: likewise
31546 * efiemu/loadcore.c: likewise
31547 * efiemu/symbols.c: likewise
31548 * efiemu/mm.c: likewise
31549 * efiemu/loadcore32.c: likewise
31550
31551 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31552
31553 ACPI spoofing
31554
31555 * commands/acpi.c: new file
31556 * commands/i386/pc/acpi.c: likewise
31557 * commands/efi/acpi.c: likewise
31558 * include/grub/acpi.h: likewise
31559 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31560 (acpi_mod_SOURCES): new variable
31561 (acpi_mod_CFLAGS): likewise
31562 (acpi_mod_LDFLAGS): likewise
31563 * conf/i386-efi.rmk: likewise
31564 * conf/x86_64-efi.rmk: likewise
31565
31566 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31567
31568 Missing part from mmap patch
31569
31570 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31571 (grub_mmap_unregister)
31572 (grub_mmap_free_and_unregister): use grub_mmap_register
31573
31574 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31575
31576 Mmap services
31577
31578 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31579 * loader/i386/linux.c (find_mmap_size): likewise
31580 (allocate_pages): likewise
31581 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31582 (grub_fill_multiboot_mmap): likewise
31583 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31584 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31585 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31586 (OPENBSD_MMAP_RESERVED): likewise
31587 * include/grub/i386/pc/memory.h: include grub/memory.h
31588 (grub_lower_mem): removed
31589 (grub_upper_mem): likewise
31590 (GRUB_MACHINE_MEMORY_ACPI): new definition
31591 (GRUB_MACHINE_MEMORY_NVS): likewise
31592 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31593 (GRUB_MACHINE_MEMORY_HOLE): likewise
31594 (grub_machine_mmap_register): likewise
31595 (grub_machine_mmap_unregister): likewise
31596 (grub_machine_get_upper): likewise
31597 (grub_machine_get_lower): likewise
31598 (grub_machine_get_post64): likewise
31599 * include/grub/i386/efi/memory.h: new file
31600 * include/grub/x86_64/efi/memory.h: likewise
31601 * include/grub/efi/memory.h: likewise
31602 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31603 (mmap_mod_SOURCES): new variable
31604 (mmap_mod_LDFLAGS): likewise
31605 (mmap_mod_ASFLAGS): likewise
31606 * conf/i386-coreboot.rmk: likewise
31607 * conf/i386-ieee1275.rmk: likewise
31608 * conf/i386-efi.rmk: likewise
31609 * conf/x86_64-efi.rmk: likewise
31610 * include/grub/types.h (UINT_TO_PTR): new macro
31611 (PTR_TO_UINT32): likewise
31612 (PTR_TO_UINT64): likewise
31613 * include/grub/memory.h: new file
31614 * mmap/i386/pc/mmap.c: likewise
31615 * mmap/i386/pc/mmap_helper.S: likewise
31616 * mmap/i386/uppermem.c: likewise
31617 * mmap/mmap.c: likewise
31618 * mmap/efi/mmap.c: likewise
31619 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31620 grub_upper_mem
31621 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31622 (grub_upper_mem): likewise
31623 (grub_machine_init): don't use grub_upper_mem,
31624 make grub_lower_mem local
31625 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31626 grub_mmap_iterate and grub_mmap_get_upper
31627 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31628
31629 2009-05-02 Bean <bean123ch@gmail.com>
31630
31631 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31632 script/sh/parser.y.
31633 (pkglib_MODULES): Add normal.mod and sh.mod.
31634 (normal_SOURCES): New variable.
31635 (normal_mod_CFLAGS): Likewise.
31636 (normal_mod_LDFLAGS): Likewise.
31637 (sh_mod_SOURCES): Likewise.
31638 (sh_mod_CFLAGS): Likewise.
31639 (sh_mod_LDFLAGS): Likewise.
31640
31641 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31642 script/sh/lexer.c_DEPENDENCIES.
31643 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31644 kern/rescue_reader.c and kern/rescue_parser.c.
31645 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31646 (grub_emu_SOURCES): Change source files.
31647 (pkglib_MODULES): Remove normal.mod.
31648 (normal_SOURCES): Removed.
31649 (normal_mod_CFLAGS): Likewise.
31650 (normal_mod_LDFLAGS): Likewise.
31651 * conf/i386-coreboot.rmk: Likewise.
31652 * conf/i386-efi.rmk: Likewise.
31653 * conf/i386-ieee1276.rmk: Likewise.
31654 * conf/powerpc-ieee1275.rmk: Likewise.
31655 * conf/sparc64-ieee1275.rmk: Likewise.
31656 * conf/x86_64-efi.rmk: Likewise.
31657
31658 * include/grub/command.h (grub_command_execute): New inline function.
31659
31660 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31661
31662 * include/grub/normal.h: Remove <grub/setjmp.h>.
31663 (grub_fs_module_list): Moved to normal/autofs.c.
31664 (grub_exit_env): Removed.
31665 (grub_command_execute): Likewise.
31666 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31667 parameter script.
31668 (read_command_list): New function declaration.
31669 (read_fs_list): Likewise.
31670
31671 * include/parser.h: Include <grub/reader.h>.
31672 (grub_parser_split_cmdline): Change type of getline parameter.
31673 (grub_parser): New structure.
31674 (grub_parser_class): New variable.
31675 (grub_parser_execute): New function declaration.
31676 (grub_register_rescue_parser): Likewise.
31677 (grub_parser_register): New inline function.
31678 (grub_parser_unregister): Likewise.
31679 (grub_parser_get_current): Likewise.
31680 (grub_parser_set_current): Likewise.
31681
31682 * include/grub/reader.h: New file.
31683 * kern/reader.c: Likewise.
31684 * kern/rescue_parser.c: Likewise.
31685 * kern/rescue_reader.c: Likewise.
31686 * normal/autofs.c: Likewise.
31687 * normal/dyncmd.c: Likewise.
31688
31689 * include/grub/rescue.h: Removed.
31690 * normal/command.h: Likewise.
31691
31692 * include/grub/script.h: Moved to ...
31693 * include/grub/script_sh.h: ... Moved here.
31694 * normal/execute.c: Moved to ...
31695 * script/sh/execute.c: ... Moved here.
31696 * normal/function.c: Moved to ...
31697 * script/sh/function.c: ... Moved here.
31698 * normal/lexer.c: Moved to ...
31699 * script/sh/lexer.c: ... Moved here.
31700 * normal/parser.y: Moved to ...
31701 * script/sh/parser.y: ... Moved here.
31702 * normal/script.c: Moved to ...
31703 * script/sh/script.c: ... Moved here.
31704
31705 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31706 <grub/reader.h>.
31707 (grub_exit_env): Removed.
31708 (fs_module_list): Moved to normal/autofs.c.
31709 (grub_file_getline): Don't handle comment here.
31710 (free_menu): Skip removed field entry->commands.
31711 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31712 script parameter.
31713 (read_config_file): Removed nested parameter, change getline function.
31714 (grub_enter_normal_mode): Removed.
31715 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31716 (read_command_list): Likewise.
31717 (autoload_fs_module): Moved to normal/autofs.c.
31718 (read_fs_list): Likewise.
31719 (reader_nested): New variable.
31720 (grub_normal_execute): Run parser.sh to switch to sh parser.
31721 (grub_cmd_rescue): Removed.
31722 (cmd_normal): Removed.
31723 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31724 rescue command.
31725 (grub_cmdline_run): New function.
31726 (grub_normal_reader_init): Likewise.
31727 (grub_normal_read_line): Likewise.
31728 (grub_env_write_pager): Likewise.
31729 (cmdline): New variable.
31730 (grub_normal_reader): Likewise.
31731 (GRUB_MOD_INIT): Register normal reader and set as current, register
31732 pager hook, register normal command with grub_register_command_prio,
31733 so that it won't show up in command.lst.
31734 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31735 grub_fs_autoload_hook.
31736
31737 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31738 (grub_menu_execute_entry): Replace grub_script_execute with
31739 grub_parser_execute, change parameter to grub_command_execute.
31740
31741 * normal/menu_text.c: Remove <grub/script.h>.
31742
31743 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31744 and <grub/parser.h>.
31745 (run): Change editor_getline to use new parser interface. Change
31746 parameter to grub_command_execute.
31747
31748 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31749 <grub/reader.h> and <grub/parser.h>.
31750 (grub_load_normal_mode): Execute normal command.
31751 (grub_main): Call grub_register_core_commands,
31752 grub_register_rescue_parser and grub_register_rescue_reader, use
31753 grub_reader_loop to enter input loop.
31754
31755 * kern/parser.c (grub_parser_split_cmdline): Change type of
31756 getline parameter.
31757 (grub_parser_class): New variable.
31758 (grub_parser_execute): New function.
31759
31760 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31761 * loader/multiboot2.c: Likewise.
31762 * loader/sparc64/ieee1275/linux.c: Likewise.
31763
31764 * util/grub-emu.c (read_command_list): New dummy function.
31765
31766 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31767
31768 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31769 count to 16 for CCISS and IDA.
31770
31771 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31772
31773 * normal/menu_text.c (grub_wait_after_message): Print a newline
31774 after waiting for user input.
31775
31776 * loader/i386/linux.c: Include `<grub/normal.h>'.
31777 (grub_cmd_linux): Improve the error message about `ask' mode, by
31778 waiting for user input so it's not missed (we can do this, since
31779 user requested interaction).
31780
31781 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31782
31783 Added missing lst to grub-mkrescue
31784
31785 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31786 and ${input_dir}/parttool.lst
31787
31788 2009-04-30 David S. Miller <davem@davemloft.net>
31789
31790 * util/hostdisk.c (device_is_wholedisk): New function.
31791 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31792 zero only if device_is_wholedisk() returns true.
31793
31794 * util/hostdisk.c (convert_system_partition_to_system_disk):
31795 Handle virtual disk devices named /dev/vdiskX as found on sparc
31796 and powerpc.
31797
31798 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31799 lettered partition specifier is found, convert to numbered.
31800
31801 2009-04-29 David S. Miller <davem@davemloft.net>
31802
31803 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31804 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31805
31806 * normal/command.c: Add missing newline at end of file.
31807
31808 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31809 warnings.
31810 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31811 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31812 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31813 ihandles have a 32-bit type but need to be stored in a "void *".
31814
31815 2009-04-28 Pavel Roskin <proski@gnu.org>
31816
31817 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31818 not disk. Adjust all dependencies.
31819 (grub_fs_uuid_close): Use grub_device_close(), not
31820 grub_disk_close().
31821
31822 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31823 parent's partition, don't copy it by reference, as it gets freed
31824 on close.
31825
31826 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31827
31828 Preboot hooks support
31829
31830 * commands/boot.c (struct grub_preboot_t): new declaration
31831 (preboots_head): new variable
31832 (preboots_tail): likewise
31833 (grub_loader_register_preboot_hook): new function
31834 (grub_loader_unregister_preboot_hook): likewise
31835 (grub_loader_set): launch preboot hooks
31836 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31837 (grub_loader_register_preboot_hook): new declaration
31838 (grub_loader_unregister_preboot_hook): likewise
31839
31840 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31841
31842 Warning fix
31843
31844 * disk/scsi.c (grub_scsi_open): added missing cast when
31845 calling grub_dprintf
31846
31847 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31848
31849 Bug and warning fixes
31850
31851 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31852 declaration
31853 * commands/test.c (test_parse): fixed bug with file tests and corrected
31854 declaration of find_file
31855
31856 2009-04-26 Pavel Roskin <proski@gnu.org>
31857
31858 * Makefile.in: Don't install empty manual pages if help2man is
31859 missing. Use help2man option for output, not shell redirection.
31860
31861 2009-04-26 David S. Miller <davem@davemloft.net>
31862
31863 * util/grub-mkdevicemap.c (make_device_map): Add missing
31864 NESTED_FUNC_ATTR to process_device().
31865
31866 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31867
31868 Test command
31869
31870 * commands/test.c: rewritten to use bash-like test
31871
31872 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31873
31874 Parttool autoloading and improvements
31875
31876 * Makefile.in (pkglib_DATA): add parttool.lst
31877 (parttool.lst): new target
31878 * genmk.rb: generate parttool-*
31879 (CLEANFILES): add #{parttool}
31880 (PARTTOOLFILES): new variable
31881 * genparttoollist.sh: new file
31882 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31883 (grub_pcpart_type): likewise
31884 * commands/parttool.c (helpmsg): new variable
31885 (grub_cmd_parttool): output help if not enough arguments are supplied
31886 autoload modules
31887 (GRUB_MOD_INIT(parttool)): use helpmsg
31888
31889 2009-04-24 David S. Miller <davem@davemloft.net>
31890
31891 Avoiding opening same device multiple times in device iterator.
31892
31893 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31894 and use it to build a list of partitions in iterate_disk() and
31895 iterate_partition().
31896
31897 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31898 on disk->data.
31899
31900 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31901 grub_devalias_iterate() result instead of unconditional 0.
31902 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31903 Also, capture hook return value, either directly or via
31904 grub_children_iterate(), and propagate to caller.
31905 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31906 grub_children_iterate): Return value is now 'int' instead of
31907 'grub_err_t'.
31908 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31909 like a proper iterator, stopping when hooks return non-zero.
31910 (grub_devalias_iterate): Likewise.
31911
31912 2009-04-23 David S. Miller <davem@davemloft.net>
31913
31914 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31915
31916 2009-04-22 David S. Miller <davem@davemloft.net>
31917
31918 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31919 is larger than address_cells, use that value for address_cells too.
31920
31921 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31922 IEEE1275_MAX_PATH_LEN): Define.
31923 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31924 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31925 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31926 'devtype'. Explicitly NULL terminate devalias expansion.
31927
31928 * util/sparc64/ieee1275/misc.c: New file.
31929 * util/sparc64/ieee1275/grub-setup.c: New file.
31930 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31931 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31932 * util/sparc64/ieee1275/grub-install.in: New file.
31933 * util/ieee1275/ofpath.c: New file.
31934 * util/ieee1275/devicemap.c: New file.
31935 * util/devicemap.c: New file.
31936 * util/deviceiter.c: New file.
31937 * kern/sparc64/ieee1275/init.c: New file.
31938 * include/grub/util/ofpath.h: New file.
31939 * include/grub/util/deviceiter.h: New file.
31940 * util/grub-mkdevicemap.c: Include deviceiter.h.
31941 Implement using grub_util_emit_devicemap_entry and
31942 grub_util_iterate_devices.
31943 * conf/i386-corebook.rmk: Build util/deviceiter.c and
31944 util/devicemap.c into grub-mkdevicemap
31945 * conf/i386-efi.rmk: Likewise.
31946 * conf/i386-ieee1275.rmk: Likewise.
31947 * conf/i386-pc.rmk: Likewise.
31948 * conf/powerpc-ieee1275.rmk: Likewise.
31949 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
31950 images and installation utilities. Build kernel as image
31951 instead of as elf binary. Use common rules as much as possible.
31952
31953 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
31954
31955 Correct GPT definition
31956
31957 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31958 of "attrib" member
31959
31960 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
31961
31962 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
31963
31964 2009-04-19 David S. Miller <davem@davemloft.net>
31965
31966 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
31967 (grub_rescue_cmd_linux): Rename to...
31968 (grub_cmd_linux): and fix prototype.
31969 (grub_rescue_cmd_initrd): Rename to...
31970 (grub_cmd_initrd): and fix prototype.
31971 (cmd_linux, cmd_initrd): New.
31972 (GRUB_MOD_INIT(linux)): Use grub_register_command().
31973 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
31974
31975 2009-04-17 Pavel Roskin <proski@gnu.org>
31976
31977 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
31978 format.
31979 (grub_ohci_transfer): Likewise.
31980
31981 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
31982
31983 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
31984 return without a value. Fix inconsistent indentation.
31985
31986 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
31987 match struct grub_fs.
31988
31989 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
31990 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
31991 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31992 * commands/lspci.c (grub_lspci_iter): Likewise.
31993
31994 2009-04-16 Bean <bean123ch@gmail.com>
31995
31996 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
31997 value.
31998
31999 2009-04-15 Pavel Roskin <proski@gnu.org>
32000
32001 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32002 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32003 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32004 definitions.
32005
32006 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32007
32008 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32009 that no multiple data or metadata areas are supported and `Unknown
32010 metadata header'.
32011
32012 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32013
32014 Move loader out of the kernel
32015
32016 * kern/loader.c: moved to ...
32017 * commands/boot.c: ... moved here
32018 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32019 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32020 * include/grub/kernel.h (grub_machine_fini): export
32021 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32022 (grub_loader_set): likewise
32023 (grub_loader_unset): likewise
32024 (grub_loader_boot): likewise
32025 * conf/common.rmk: new module boot.mod
32026 (pkglib_MODULES): add boot.mod
32027 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32028 (grub_emu_SOURCES): likewise
32029 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32030 (grub_emu_SOURCES): likewise
32031 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32032 (grub_emu_SOURCES): likewise
32033 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32034 (grub_emu_SOURCES): likewise
32035 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32036 (grub_emu_SOURCES): likewise
32037 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32038 (grub_emu_SOURCES): likewise
32039 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32040 (grub_emu_SOURCES): likewise
32041
32042 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32043
32044 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32045
32046 * kern/misc.c (grub_itoa): Removed function
32047 (grub_ltoa): likewise
32048 (grub_vsprintf): use grub_lltoa
32049
32050 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32051
32052 Restore grub-emu
32053
32054 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32055 * conf/i386-coreboot.rmk: likewise
32056 * conf/i386-ieee1275.rmk: likewise
32057 * conf/powerpc-ieee1275.rmk: likewise
32058
32059 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32060
32061 * INSTALL: Add that `./autogen.sh' needs to be run before
32062 `./configure.'.
32063
32064 2009-04-14 Bean <bean123ch@gmail.com>
32065
32066 * Makefile.in (pkglib_DATA): Add handler.lst.
32067 (handler.lst): New rule.
32068
32069 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32070 * conf/i386-coreboot.rmk: Likewise.
32071 * conf/i386-ieee1275.rmk: Likewise.
32072 * conf/i386-efi.rmk: Likewise.
32073 * conf/x86_64-efi.rmk: Likewise.
32074 * conf/powerpc-ieee1275.rmk: Likewise.
32075 * conf/sparc64-ieee1275.rmk: Likewise.
32076
32077 * genhandlerlist.sh: New file.
32078
32079 * genmk.rb: Add rules to generate handler.lst.
32080
32081 * include/grub/normal.h (grub_file_getline): New function definition.
32082 (read_handler_list): Likewise.
32083 (free_handler_list): Likewise.
32084
32085 * include/grub/term.h (grub_term_register_input): Add name parameter
32086 for auto generation of handler.lst.
32087 (grub_term_register_output): Likewise.
32088
32089 * normal/handler.c: New file.
32090
32091 * normal/main.c (get_line): Renamed to grub_file_getline.
32092 (read_config_file): Use the newly renamed grub_file_getline.
32093 (read_command_list): Likewise.
32094 (read_fs_list): Likewise.
32095 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32096 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32097
32098 * term/efi/console.c (grub_console_init): Add name parameter for auto
32099 generation of handler.lst.
32100 * term/gfxterm.c: Likewise.
32101 * term/i386/pc/at_keyboard.c: Likewise.
32102 * term/i386/pc/console.c: Likewise.
32103 * term/i386/pc/serial.c: Likewise.
32104 * term/i386/pc/vesafb.c: Likewise.
32105 * term/i386/pc/vga.c: Likewise.
32106 * term/i386/pc/vga_text.c: Likewise.
32107 * term/ieee1275/ofconsole.c: Likewise.
32108 * term/usb_keyboard.c: Likewise.
32109
32110 2009-04-14 Bean <bean123ch@gmail.com>
32111
32112 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32113 properly with null character.
32114
32115 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32116
32117 * configure: Remove.
32118 * config.h.in: Likewise.
32119 * stamp-h.in: Likewise.
32120 * DISTLIST: Likewise.
32121 * conf/common.mk: Likewise.
32122 * conf/i386-coreboot.mk: Likewise.
32123 * conf/i386-efi.mk: Likewise.
32124 * conf/i386-ieee1275.mk: Likewise.
32125 * conf/i386.mk: Likewise.
32126 * conf/i386-pc.mk: Likewise.
32127 * conf/powerpc-ieee1275.mk: Likewise.
32128 * conf/sparc64-ieee1275.mk: Likewise.
32129 * conf/x86_64-efi.mk: Likewise.
32130
32131 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32132 develop on GRUB.
32133
32134 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32135 David S. Miller <davem@davemloft.net>
32136
32137 * util/hostdisk.c (make_device_name): Fix buffer length
32138 calculations.
32139
32140 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32141
32142 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32143 <sys/param.h> and <sys/sysctl.h>.
32144 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32145 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32146 opening the device and reset them afterwards.
32147
32148 2009-04-13 Pavel Roskin <proski@gnu.org>
32149
32150 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32151 Reported by John Stanley <jpsinthemix@verizon.net>
32152
32153 2009-04-13 Robert Millan <rmh@aybabtu.com>
32154
32155 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32156 that name for menuentries when appropriate.
32157
32158 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32159
32160 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32161
32162 2009-04-13 Robert Millan <rmh@aybabtu.com>
32163
32164 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32165 to Linux, simply abort telling the user it's no longer supported.
32166
32167 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32168
32169 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32170 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32171 `freebsd_loadenv' only when devices.hints exist.
32172
32173 2009-04-13 Pavel Roskin <proski@gnu.org>
32174
32175 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32176
32177 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32178
32179 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32180 partition number.
32181 (grub_drive): Likewise.
32182
32183 2009-04-13 David S. Miller <davem@davemloft.net>
32184
32185 * kern/sparc64/ieee1275/ieee1275.c: New file.
32186 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32187 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32188 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32189 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32190 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32191 grub_ieee1275_alloc_physmem): Declare new exported functions.
32192
32193 * include/grub/sparc64/ieee1275/loader.h: New file.
32194 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32195 * include/grub/sparc64/kernel.h: Likewise.
32196 * loader/sparc64/ieee1275/linux.c: Likewise.
32197
32198 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32199 (grub_fstest_SOURCES): Likewise.
32200
32201 * util/hostdisk.c (make_device_name): Do not make any assumptions
32202 about the length of drive names.
32203
32204 * kern/dl.c (grub_dl_load_file): Close file immediately when
32205 we are done using it.
32206
32207 2009-04-12 David S. Miller <davem@davemloft.net>
32208
32209 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32210 values. Noticed by Pavel Roskin.
32211
32212 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32213 target compiler.
32214
32215 * genmk.rb: Add more flexible image type specification, also
32216 pass --strip-unneeded to objcopy.
32217 * conf/i386-pc.rmk: Use *_FORMAT.
32218 * conf/i386-pc.mk: Rebuilt.
32219
32220 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32221 (OFDISK_HASH_SZ): Define.
32222 (ofdisk_hash): New hash table.
32223 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32224 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32225 instead of device phandle which is not unique.
32226
32227 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32228 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32229 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32230 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32231 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32232 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32233 GRUB_KERNEL_MACHINE_DATA_END): Define.
32234 (grub_kernel_image_size, grub_total_module_size): Declare.
32235
32236 2009-04-12 Pavel Roskin <proski@gnu.org>
32237
32238 * configure.ac: Change the logic when we check for target tools.
32239 Do it when the target is specified and it's different from the
32240 specified value of the host.
32241
32242 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32243
32244 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32245 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32246 GNU/kFreeBSD. Check if a device is a character device. Use
32247 DIOCGMEDIASIZE to get the size.
32248 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32249 support for GNU/kFreeBSD.
32250 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32251 is a character device instead of a block device. Add support for
32252 FreeBSD device names.
32253
32254 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32255 is a character device instead of a block device.
32256
32257 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32258 is a character device instead of a block device.
32259
32260 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32261
32262 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32263 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32264 FreeBSD. Check if a device is a character device. Use
32265 DIOCGMEDIASIZE to get the size.
32266 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32267 support for FreeBSD.
32268 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32269 is a character device instead of a block device. Add support for
32270 FreeBSD device names.
32271
32272 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32273 a character device instead of a block device.
32274 (grub_util_check_char_device): New function.
32275
32276 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32277 a character device instead of a block device.
32278
32279 * include/grub/util/getroot.h (grub_util_check_char_device): New
32280 prototype.
32281
32282 2009-04-11 David S. Miller <davem@davemloft.net>
32283
32284 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32285 static libgcc.
32286 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32287 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32288 function, if present.
32289 (__bswapdi2): Likewise.
32290
32291 * include/grub/sparc64/ieee1275/boot.h: New file.
32292 * boot/sparc64/ieee1275/boot.S: Likewise.
32293 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32294
32295 * kern/misc.c (grub_ltoa): New function.
32296 (grub_vsprintf): Use it to format 'long' integers.
32297
32298 2009-04-10 David S. Miller <davem@davemloft.net>
32299
32300 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32301 slots are of type grub_ieee1275_cell_t.
32302 (grub_nand_read): Likewise.
32303 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32304 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32305 macros are used to compare values in arg/ret block of the call.
32306 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32307 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32308 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32309 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32310 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32311 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32312 grub_ieee1275_close, grub_ieee1275_set_property,
32313 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32314 grub_ieee1275_cell_t.
32315 * kern/ieee1275/openfw.c (grub_map): Likewise.
32316 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32317 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32318
32319 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32320 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32321 (grub_devalias_iterate): Likewise.
32322
32323 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32324
32325 UFS improvements
32326
32327 * fs/ufs.c (INODE_NBLOCKS): new definition
32328 (struct grub_ufs_dirent): added fields for non-BSD dirents
32329 (grub_ufs_get_file_block): fixed double indirect handling
32330 (grub_ufs_lookup_symlink): use more robust way to determine whether
32331 symlink is inline
32332 (grub_ufs_find_file): support for non-BSD dirents
32333 (grub_ufs_dir): support for non-BSD dirents
32334
32335 2009-04-10 Bean <bean123ch@gnail.com>
32336
32337 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32338 attribute, otherwise the size would be wrong for i386 platform.
32339
32340 * include/grub/pci.h (grub_pci_read_word): New inline function.
32341 (grub_pci_read_byte): Likewise.
32342 (grub_pci_write): Likewise.
32343 (grub_pci_write_word): Likewise.
32344 (grub_pci_write_byte): Likewise.
32345
32346 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32347
32348 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32349 (find_framebuf): Scan pci to locate the frame buffer address.
32350
32351 * commands/efi/fixvideo.c: New file.
32352
32353 * commands/efi/loadbios.c: Likewise.
32354
32355 * commands/memrw.c: Likewise.
32356
32357 * util/grub-dumpbios.in: Likewise.
32358
32359 * conf/common.rmk (grub-dumpbios): New utility.
32360 (pkglib_MODULES): New module memrw.mod.
32361 (memrw_mod_SOURCE): New macro.
32362 (memrw_mod_CFLAGS): Likewise.
32363 (memrw_mod_LDFLAGS): Likewise.
32364
32365 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32366 fixvideo.mod.
32367 (loadbios_mod_SOURCE): New macro.
32368 (loadbios_mod_CFLAGS): Likewise.
32369 (loadbios_mod_LDFLAGS): Likewise.
32370 (fixvideo_mod_SOURCE): Likewise.
32371 (fixvideo_mod_CFLAGS): Likewise.
32372 (fixvideo_mod_LDFLAGS): Likewise.
32373
32374 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32375 fixvideo.mod.
32376 (loadbios_mod_SOURCE): New macro.
32377 (loadbios_mod_CFLAGS): Likewise.
32378 (loadbios_mod_LDFLAGS): Likewise.
32379 (fixvideo_mod_SOURCE): Likewise.
32380 (fixvideo_mod_CFLAGS): Likewise.
32381 (fixvideo_mod_LDFLAGS): Likewise.
32382
32383 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32384
32385 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32386
32387 2009-04-07 David S. Miller <davem@davemloft.net>
32388
32389 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32390 support for R_SPARC_OLO10 relocations. Fix compile warning for
32391 R_SPARC_WDISP30 case.
32392 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32393
32394 2009-04-06 Pavel Roskin <proski@gnu.org>
32395
32396 * include/grub/misc.h (ARRAY_SIZE): New macro.
32397 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32398 New macro.
32399 * loader/i386/linux.c (allocate_pages): Use free_pages().
32400 (grub_linux_unload): Don't use free_pages().
32401 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32402 wrong index. Treat all other modes as text modes.
32403 (grub_cmd_linux): Initialize vid_mode unconditionally to
32404 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32405
32406 * commands/help.c (print_command_help): Use cmd->prio, not
32407 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32408
32409 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32410
32411 Parttool
32412
32413 * parttool/pcpart.c: new file
32414 * commands/parttool.c: likewise
32415 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32416 (parttool_mod_SOURCES): new variable
32417 (parttool_mod_CFLAGS): likewise
32418 (parttool_mod_LDFLAGS): likewise
32419 (pcpart_mod_SOURCES): likewise
32420 (pcpart_mod_CFLAGS): likewise
32421 (pcpart_mod_LDFLAGS): likewise
32422 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32423 and parttool/pcpart.c
32424 * conf/i386-efi.rmk: likewise
32425 * conf/i386-ieee1275.rmk: likewise
32426 * conf/i386-pc.rmk: likewise
32427 * conf/powerpc-ieee1275.rmk: likewise
32428 * conf/sparc64-ieee1275.rmk: likewise
32429 * conf/x86_64-ieee1275.rmk: likewise
32430
32431 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32432
32433 Support for mtime and further expandability of dir command
32434
32435 * include/grub/lib/datetime.h: moved to ...
32436 * include/grub/datetime.h: ... moved here and added
32437 declaration of grub_unixtime2datetime. All users updated
32438 * include/grub/fs.h: new syntax for dir and mtime functions in
32439 struct grub_fs
32440 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32441 and GRUB_FSHELP_FLAGS_MASK
32442 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32443 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32444 (grub_ext2_mtime): new function
32445 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32446 (grub_hfsplus_mtime): new function
32447 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32448 (GRUB_UFS_ATTR_FILE): likewise
32449 (GRUB_UFS_ATTR_LNK): likewise
32450 (struct grub_ufs_sblock): new fields mtime
32451 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32452 all users updated
32453 (grub_ufs_dir): mtime support
32454 (grub_ufs_mtime): new function
32455 * fs/affs.c (grub_affs_dir): use new dir syntax
32456 * fs/afs.c (grub_afs_dir): likewise
32457 * fs/cpio.c (grub_cpio_dir): likewise
32458 * fs/fat.c (grub_fat_find_dir): likewise
32459 * fs/hfs.c (grub_hfs_dir): likewise
32460 * fs/iso9660.c (grub_iso9660_dir): likewise
32461 * fs/jfs.c (grub_jfs_dir): likewise
32462 * fs/minix.c (grub_minix_dir): likewise
32463 * fs/ntfs.c (grub_ntfs_dir): likewise
32464 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32465 * fs/sfs.c (grub_sfs_dir): likewise
32466 * fs/xfs.c (grub_xfs_dir): likewise
32467 * util/hostfs.c (grub_hostfs_dir): likewise
32468 * lib/datetime.c: moved to ...
32469 * normal/datetime.c: ... moved here
32470 (grub_unixtime2datetime): new function
32471 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32472 * normal/completion.c (iterate_dir): use new dir syntax
32473 * normal/misc.c (grub_normal_print_device_info): tell the
32474 last modification time of a volume
32475 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32476 * conf/common.rmk: added lib/datetime.c to ls.mod
32477 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32478 (normal_mod_SOURCES): likewise
32479 (datetime_mod_SOURCES): Removed lib/datetime.c
32480 * conf/i386-efi.rmk: likewise
32481 * conf/i386-ieee1275.rmk: likewise
32482 * conf/i386-pc.rmk: likewise
32483 * conf/powerpc-ieee1275.rmk: likewise
32484 * conf/sparc64-ieee1275.rmk: likewise
32485 * conf/x86_64-efi.rmk: likewise
32486
32487 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32488
32489 Trim trailing spaces in FAT label and support mtools-like labels
32490
32491 * fs/fat.c (grub_fat_iterate_dir): New function based
32492 on grub_fat_find_dir
32493 (grub_fat_find_dir): use grub_fat_iterate_dir
32494 (grub_fat_label): likewise
32495
32496 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32497
32498 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32499 and command.h
32500 remove extraneous kernel_elf_HEADERS
32501
32502 2009-04-04 Bean <bean123ch@gnail.com>
32503
32504 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32505
32506 * util/misc.c: Likewise.
32507
32508 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32509
32510 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32511 instead of grub_printf.
32512
32513 2009-04-03 Robert Millan <rmh@aybabtu.com>
32514
32515 * loader/i386/linux.c (grub_linux_setup_video): Fill
32516 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32517 values from `mode info' structure instead of hardcoded
32518 values.
32519
32520 2009-04-01 Pavel Roskin <proski@gnu.org>
32521
32522 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32523 unused now.
32524 * genmk.rb: Likewise.
32525 * configure.ac: Likewise.
32526
32527 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32528
32529 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32530 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32531
32532 2009-04-01 David S. Miller <davem@davemloft.net>
32533
32534 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32535 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32536 (grub_setjmp): Mark with 'returns_twice' attribute.
32537 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32538 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32539 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32540
32541 2009-04-01 Robert Millan <rmh@aybabtu.com>
32542
32543 Reapply fix from 2008-07-28 which was accidentally reverted; also
32544 perform the same fix to a similar check in same function.
32545
32546 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32547 with the same number are found, just use issue a warning with
32548 grub_dprintf(), as this error has been reported to be non-fatal.
32549
32550 2009-03-31 Pavel Roskin <proski@gnu.org>
32551
32552 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32553 for cross-compilation.
32554
32555 2009-03-30 Robert Millan <rmh@aybabtu.com>
32556
32557 Fix i386-ieee1275 build.
32558
32559 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32560 Remove declaration.
32561
32562 2009-03-30 Pavel Roskin <proski@gnu.org>
32563
32564 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32565 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32566 zero-terminated, rely only on the strlen value. Fix comparison
32567 of strings differing in length.
32568
32569 2009-03-30 Robert Millan <rmh@aybabtu.com>
32570
32571 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32572 checking for abi version. Improve error messages on BIOS to notify
32573 user about `linux16' command.
32574
32575 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32576
32577 Leak fixes
32578
32579 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32580 in case of collision
32581 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32582
32583 2009-03-29 Robert Millan <rmh@aybabtu.com>
32584
32585 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32586 set `vid_mode' accordingly.
32587 (grub_linux_boot): Process `vid_mode' and set video mode.
32588
32589 2009-03-29 Robert Millan <rmh@aybabtu.com>
32590
32591 * util/grub.d/10_linux.in (linux_entry): New function.
32592 Factorize generation of Linux boot entries.
32593
32594 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32595
32596 Make the format of Environment Block plain text. The boot loader
32597 part is not tested well yet.
32598
32599 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32600 (buffer): Removed.
32601 (envblk): Likewise.
32602 (usage): Remove "info" and "clear". Add "unset". Update the
32603 description of "set", as this does not delete variables any
32604 longer.
32605 (create_envblk_file): Complete rewrite.
32606 (open_envblk_file): Likewise.
32607 (cmd_info): Removed.
32608 (cmd_list): Likewise.
32609 (cmd_set): Likewise.
32610 (cmd_clear): Likewise.
32611 (list_variables): New function.
32612 (write_envblk): Likewise.
32613 (set_variables): Likewise.
32614 (unset_variables): Likewise.
32615 (main): Complete rewrite.
32616
32617 * commands/loadenv.c (buffer): Removed.
32618 (envblk): Likewise.
32619 (open_envblk_file): New function.
32620 (read_envblk_file): Complete rewrite.
32621 (grub_cmd_load_env): Likewise.
32622 (grub_cmd_list_env): Likewise.
32623 (struct blocklist): New struct.
32624 (free_blocklists): New function.
32625 (check_blocklists): Likewise.
32626 (write_blocklists): Likewise.
32627 (grub_cmd_save_env): Complete rewrite.
32628
32629 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32630 a plain text signature.
32631 (GRUB_ENVBLK_MAXLEN): Removed.
32632 (struct grub_envblk): Complete rewrite.
32633 (grub_envblk_find): Removed.
32634 (grub_envblk_insert): Likewise.
32635 (grub_envblk_open): New prototype.
32636 (grub_envblk_set): Likewise.
32637 (grub_envblk_delete): Put const to VALUE.
32638 (grub_envblk_iterate): Put const to NAME and VALUE.
32639 (grub_envblk_close): New prototype.
32640 (grub_envblk_buffer): New inline function.
32641 (grub_envblk_size): Likewise.
32642
32643 * lib/envblk.c: Include grub/mm.h.
32644 (grub_env_find): Removed.
32645 (grub_envblk_open): New function.
32646 (grub_envblk_close): Likewise.
32647 (escaped_value_len): Likewise.
32648 (find_next_line): Likewise.
32649 (grub_envblk_insert): Removed.
32650 (grub_envblk_set): New function.
32651 (grub_envblk_delete): Complete rewrite.
32652 (grub_envblk_iterate): Likewise.
32653
32654 2009-03-28 Robert Millan <rmh@aybabtu.com>
32655
32656 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32657 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32658 variables. Use 16-bit loader.
32659 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32660 loader.
32661 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32662 (grub_linux16_boot): ... this. Update all users.
32663 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32664 (grub_linux_boot): ... this. Update all users.
32665
32666 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32667 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32668 commands to `linux16' and `initrd16'.
32669 (GRUB_MOD_FINI(linux)): Rename to ...
32670 (GRUB_MOD_FINI(linux16)): ... this.
32671
32672 2009-03-24 Pavel Roskin <proski@gnu.org>
32673
32674 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32675 not just for compilation.
32676
32677 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32678
32679 Move multiboot helper out of kernel
32680
32681 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32682 `loader/i386/multiboot_helper.S'.
32683 * conf/i386-coreboot.rmk: Likewise
32684 * conf/i386-ieee1275.rmk: Likewise
32685
32686 * kern/i386/loader.S: Move multiboot helpers from here...
32687 * loader/i386/multiboot_helper.S: ...moved here
32688 * include/grub/i386/loader.h: Move declarations of multiboot
32689 helpers from here...
32690 * include/grub/i386/multiboot.h: ...moved here
32691 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32692
32693 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32694
32695 * kern/env.c (grub_env_context_open): Added an argument to specify
32696 whether a new context inherits exported variables from current
32697 one. This is useful when making a sandbox to interpret a config
32698 file.
32699 All callers updated.
32700
32701 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32702
32703 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32704
32705 * kern/env.c (grub_env_context_close): Fix memory leaks.
32706
32707 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32708
32709 * normal/main.c (grub_normal_execute): Added an argument
32710 BATCH to specify if an interactive interface should be provided
32711 after reading a config file.
32712 All callers updated.
32713 (read_command_list): Prevent being executed twice.
32714 (read_fs_list): Likewise.
32715
32716 * include/grub/normal.h (grub_normal_execute): Updated the
32717 prototype.
32718
32719 2009-03-22 Pavel Roskin <proski@gno.org>
32720
32721 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32722 _start.
32723 * kern/i386/pc/startup.S: Likewise.
32724 * kern/i386/efi/startup.S: Likewise.
32725 * kern/i386/ieee1275/startup.S: Likewise.
32726 * kern/i386/coreboot/startup.S: Likewise.
32727 * kern/x86_64/efi/startup.S: Likewise.
32728
32729 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32730 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32731 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32732
32733 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32734
32735 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32736
32737 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32738 limit detection.
32739 Use vaddr of correct segment for entry_point.
32740
32741 2009-03-21 Bean <bean123ch@gmail.com>
32742
32743 * commands/blocklist.c: Add include file <grub/command.h>, remove
32744 <grub/normal.h> and <grub/arg.h>.
32745 (grub_cmd_blocklist): Use the new command interface.
32746 (GRUB_MOD_INIT): Likewise.
32747 (GRUB_MOD_FINI): Likewise.
32748 * commands/boot.c: Likewise.
32749 * commands/cat.c: Likewise.
32750 * commands/cmp.c: Likewise.
32751 * commands/configfile.c: Likewise.
32752 * commands/crc.c: Likewise.
32753 * commands/echo.c: Likewise.
32754 * commands/halt.c: Likewise.
32755 * commands/handler.c: Likewise.
32756 * commands/hdparm.c: Likewise.
32757 * commands/help.c: Likewise.
32758 * commands/hexdump.c: Likewise.
32759 * commands/loadenv.c: Likewise.
32760 * commands/ls.c: Likewise.
32761 * commands/lsmmap.c: Likewise.
32762 * commands/lspci.c: Likewise.
32763 * commands/loadenv.c: Likewise.
32764 * commands/read.c: Likewise.
32765 * commands/reboot.c: Likewise.
32766 * commands/search.c: Likewise.
32767 * commands/sleep.c: Likewise.
32768 * commands/test.c: Likewise.
32769 * commands/usbtest.c: Likewise.
32770 * commands/videotest.c: Likewise.
32771 * commands/i386/cpuid.c: Likewise.
32772 * commands/i386/pc/halt.c: Likewise.
32773 * commands/i386/pc/play.c: Likewise.
32774 * commands/i386/pc/pxecmd.c: Likewise.
32775 * commands/i386/pc/vbeinfo.c: Likewise.
32776 * commands/i386/pc/vbetest.c: Likewise.
32777 * commands/ieee1275/suspend.c: Likewise.
32778 * disk/loopback.c: Likewise.
32779 * font/font_cmd.c: Likewise.
32780 * hello/hello.c: Likewise.
32781 * loader/efi/appleloader.c: Likewise.
32782 * loader/efi/chainloader.c: Likewise.
32783 * loader/i386/bsd.c: Likewise.
32784 * loader/i386/efi/linux.c: Likewise.
32785 * loader/i386/ieee1275/linux.c: Likewise.
32786 * loader/i386/linux.c: Likewise.
32787 * loader/i386/pc/chainloader.c: Likewise.
32788 * loader/i386/pc/linux.c: Likewise.
32789 * loader/powerpc/ieee1275/linux.c: Likewise.
32790 * loader/multiboot_loader.c: Likewise.
32791 * term/gfxterm.c: Likewise.
32792 * term/i386/pc/serial.c: Likewise.
32793 * term/terminfo.c: Likewise.
32794
32795 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32796 * term/i386/pc/vga.c: Likewise.
32797 * video/readers/jpeg.c: Likewise.
32798 * video/readers/png.c: Likewise.
32799 * video/readers/tga.c: Likewise.
32800
32801 * util/grub-fstest (cmd_loopback): Removed.
32802 (cmd_blocklist): Likewise.
32803 (cmd_ls): Likewise.
32804 (grub_register_command): Likewise.
32805 (grub_unregister_command): Likewise.
32806 (execute_command): Use grub_command_find to locate command and execute
32807 it.
32808
32809 * include/grub/efi/chainloader.h: Removed.
32810 * loader/efi/chainloader_normal.c: Likewise.
32811 * loader/i386/bsd_normal.c: Likewise.
32812 * loader/i386/pc/chainloader_normal.c: Likewise.
32813 * loader/i386/pc/multiboot_normal.c: Likewise.
32814 * loader/linux_normal.c: Likewise.
32815 * loader/multiboot_loader_normal.c: Likewise.
32816 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32817
32818 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32819 and grub_register_command_p1.
32820
32821 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32822 kern/command.c, lib/arg.c and commands/extcmd.c.
32823 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32824 (minicmd_mod_SOURCES): New variable.
32825 (minicmd_mod_CFLAGS): Likewise.
32826 (minicmd_mod_LDFLAGS): Likewise.
32827 (extcmd_mod_SOURCES): Likewise.
32828 (extcmd_mod_CFLAGS): Likewise.
32829 (extcmd_mod_LDFLAGS): Likewise.
32830 (boot_mod_SOURCES): Removed.
32831 (boot_mod_CFLAGS): Likewise.
32832 (boot_mod_LDFLAGS): Likewise.
32833
32834 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32835 kern/corecmd.c.
32836 (kernel_img_HEADERS): Add command.h.
32837 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32838 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32839 and lib/arg.c.
32840 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32841 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32842 remove the corresponding normal mode command.
32843 (normal_mod_SOURCES): Remove normal/arg.c.
32844 * conf/i386-coreboot.rmk: Likewise.
32845 * conf/i386-efi.rmk: Likewise.
32846 * conf/i386-ieee1275.rmk: Likewise.
32847 * conf/powerpc-ieee1275.rmk: Likewise.
32848 * conf/x86_64-efi.rmk: Likewise.
32849
32850 * include/grub/arg.h: Move from here ...
32851 * include/grub/lib/arg.h: ... to here.
32852
32853 * normal/arg.c: Move from here ...
32854 * lib/arg.c: ... to here.
32855
32856 * commands/extcmd.c: New file.
32857 * commands/minicmd.c: Likewise.
32858 * include/grub/command.h: Likewise.
32859 * include/grub/extcmd.h: Likewise.
32860 * kern/command.c: Likewise.
32861 * kern/corecmd.c: Likewise.
32862
32863 * kern/list.c (grub_list_iterate): Return int instead of void.
32864 (grub_list_insert): New function.
32865 (grub_prio_list_insert): Likewise.
32866
32867 * kern/rescue.c (grub_rescue_command): Removed.
32868 (grub_rescue_command_list): Likewise.
32869 (grub_rescue_register_command): Likewise.
32870 (grub_rescue_unregister_command): Likewise.
32871 (grub_rescue_cmd_boot): Move to minicmd.c
32872 (grub_rescue_cmd_help): Likewise.
32873 (grub_rescue_cmd_info): Likewise.
32874 (grub_rescue_cmd_boot): Likewise.
32875 (grub_rescue_cmd_testload): Likewise.
32876 (grub_rescue_cmd_dump): Likewise.
32877 (grub_rescue_cmd_rmmod): Likewise.
32878 (grub_rescue_cmd_lsmod): Likewise.
32879 (grub_rescue_cmd_exit): Likewise.
32880 (grub_rescue_print_devices): Moved to corecmd.c.
32881 (grub_rescue_print_files): Likewise.
32882 (grub_rescue_cmd_ls): Likewise.
32883 (grub_rescue_cmd_insmod): Likewise.
32884 (grub_rescue_cmd_set): Likewise.
32885 (grub_rescue_cmd_unset): Likewise.
32886 (attempt_normal_mode): Use grub_command_find to get normal module.
32887 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32888 commands, remove grub_rescue_register_command calls.
32889
32890 * normal/command.c (grub_register_command): Removed.
32891 (grub_unregister_command): Likewise.
32892 (grub_command_find): Likewise.
32893 (grub_iterate_commands): Likewise.
32894 (rescue_command): Likewise.
32895 (export_command): Moved to corecmd.c.
32896 (set_command): Removed.
32897 (unset_command): Likewise.
32898 (insmod_command): Likewise.
32899 (rmmod_command): Likewise.
32900 (lsmod_command): Likewise.
32901 (grub_command_init): Likewise.
32902
32903 * normal/completion.c (iterate_command): Use cmd->prio to check for
32904 active command.
32905 (complete_arguments): Use grub_extcmd_t structure to find options.
32906 (grub_normal_do_completion): Change function grub_iterate_commands to
32907 grub_command_iterate.
32908
32909 * normal/execute.c (grub_script_execute_cmd): No need to parse
32910 argument here.
32911
32912 * normal/main.c (grub_dyncmd_dispatcher): New function.
32913 (read_command_list): Register unload commands as dyncmd.
32914 (grub_cmd_normal): Use new command interface, register rescue,
32915 unregister normal at entry, register normal, unregister rescue at exit.
32916
32917 * include/grub/list.h (grub_list_test_t): New type.
32918 (grub_list_iterate): Return int instead of void.
32919 (grub_list_insert): New function.
32920 (GRUB_AS_NAMED_LIST_P): New macro.
32921 (GRUB_AS_PRIO_LIST): Likewise.
32922 (GRUB_AS_PRIO_LIST_P): Likewise.
32923 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32924 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32925 (grub_prio_list): New structure.
32926 (grub_prio_list_insert): New function.
32927 (grub_prio_list_remove): New inline function.
32928
32929 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32930 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32931 (GRUB_COMMAND_FLAG_MENU): Likewise.
32932 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32933 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32934 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32935 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
32936 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
32937 (grub_command): Likewise.
32938 (grub_register_command): Likewise.
32939 (grub_command_find): Likewise.
32940 (grub_iterate_commands): Likewise.
32941 (grub_command_init): Likewise.
32942 (grub_arg_parse): Likewise.
32943 (grub_arg_show_help): Likewise.
32944
32945 * include/grub/rescue.h (grub_rescue_register_command): Removed.
32946 (grub_rescue_unregister_command): Likewise.
32947
32948 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
32949 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
32950 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
32951
32952 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
32953 grub_rescue_cmd_initrd.
32954 * include/grub/i386/loader.h: Likewise.
32955 * include/grub/x86_64/loader.h: Likewise.
32956
32957 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
32958
32959 2009-03-21 Bean <bean123ch@gmail.com>
32960
32961 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
32962 instead of stat in mingw environment.
32963
32964 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
32965
32966 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
32967
32968 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
32969 AC_CONFIG_LINKS.
32970
32971 2009-03-21 Bean <bean123ch@gmail.com>
32972
32973 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
32974 out of range error.
32975
32976 2009-03-18 Michel Dänzer <michel@daenzer.net>
32977
32978 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
32979 checking inode flags for EXT4_EXTENTS_FLAG.
32980
32981 2009-03-18 Robert Millan <rmh@aybabtu.com>
32982
32983 * loader/i386/linux.c: Include `<grub/video.h>' and
32984 `<grub/i386/pc/vbe.h>'..
32985 (grub_linux_setup_video): New function. Loosely based on the EFI one.
32986 (grub_linux32_boot): Attempt to configure video settings with
32987 grub_linux_setup_video().
32988 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
32989 to avoid grub_console_fini() which would step out of graphical mode
32990 unconditionally.
32991
32992 2009-03-14 Robert Millan <rmh@aybabtu.com>
32993
32994 Fix build on powerpc.
32995 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
32996
32997 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
32998
32999 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33000 background image command.
33001
33002 2009-03-12 Colin D Bennett <colin@gibibit.com>
33003
33004 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33005 (grub_gfxterm_putchar): Extract pairs of identical calls to
33006 draw_cursor out of conditional blocks.
33007
33008 2009-03-11 Pavel Roskin <proski@gnu.org>
33009
33010 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33011 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33012
33013 2009-03-11 Robert Millan <rmh@aybabtu.com>
33014
33015 * loader/i386/multiboot_elfxx.c
33016 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33017
33018 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33019
33020 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33021 `kern/handler.c'.
33022
33023 2009-03-11 Robert Millan <rmh@aybabtu.com>
33024
33025 * loader/i386/multiboot.c (code_size): New variable.
33026 (grub_multiboot): Define offsets by adding to `code_size' rather
33027 than subtracting from `grub_multiboot_payload_size'. Provide
33028 4-byte alignment to MBI and others by increasing
33029 `boot_loader_name_length' appropriately.
33030
33031 * loader/i386/multiboot_elfxx.c
33032 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33033
33034 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33035
33036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33037 `fs/ext2.c'.
33038
33039 2009-03-08 Robert Millan <rmh@aybabtu.com>
33040
33041 Make loader/i386/linux.c usable on i386-pc again.
33042
33043 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33044 memory to heap.
33045 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33046 `#error' stanza.
33047
33048 2009-03-07 Bean <bean123ch@gmail.com>
33049
33050 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33051 allocation.
33052
33053 2009-03-06 Robert Millan <rmh@aybabtu.com>
33054
33055 Fix display issue on terminals with screen size other than 80x25
33056 (e.g. gfxterm with resolution higher than 640x480).
33057
33058 * normal/main.c (grub_normal_init_page): Display title text in a
33059 position relative to the center of the terminal instead of relying
33060 on a hardcoded offset.
33061
33062 2009-03-04 Robert Millan <rmh@aybabtu.com>
33063
33064 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33065 installed.
33066
33067 * Makefile.in (host_kernel): New variable.
33068 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33069 scripts instead of just the windows one.
33070 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33071
33072 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33073
33074 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33075 `kern/handler.c'.
33076 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33077 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33078 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33080 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33081 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33082
33083 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33084
33085 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33086 or if there's no space for the disk label and print the partition number on a
33087 invalid magic.
33088
33089 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33090
33091 * util/misc.c: Include <time.h>.
33092 (grub_millisleep): New function.
33093
33094 2009-03-04 Bean <bean123ch@gmail.com>
33095
33096 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33097 another option -mno-red-zone.
33098
33099 * commands/handler.c: Change module description.
33100
33101 * kern/handler.c: Add missing space at the end of description line.
33102
33103 * kern/list.c: Likewise.
33104
33105 2009-03-03 Robert Millan <rmh@aybabtu.com>
33106
33107 Move more components to the relocation area, and fix mbi pointer
33108 handling to use the destination rather than the origin (thanks to
33109 Vladimir Serbinenko for spotting).
33110
33111 * loader/i386/multiboot.c (mbi_dest): New variable.
33112 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33113 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33114 relocation area.
33115
33116 2009-03-01 Bean <bean123ch@gmail.com>
33117
33118 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33119 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33120 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33121 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33122
33123 * loader/i386/efi/linux.c (acpi_guid): New variable.
33124 (acpi_guid): Likewise.
33125 (EBDA_SEG_ADDR): New constant.
33126 (LOW_MEM_ADDR): Likewise.
33127 (FAKE_EBDA_SEG): Likewise.
33128 (fake_bios_data): New function.
33129 (grub_linux_boot): Call fake_bios_data.
33130
33131 2009-03-01 Bean <bean123ch@gmail.com>
33132
33133 * commands/terminal.c: Removed.
33134
33135 * commands/handler.c: New file.
33136
33137 * include/grub/list.h: Likewise.
33138
33139 * include/grub/handler.h: Likewise.
33140
33141 * kern/list.c: Likewise.
33142
33143 * kern/handler.c: Likewise.
33144
33145 * kern/term.h: Include header file <grub/handler.h>.
33146 (grub_term_input): Move next field to the beginning.
33147 (grub_term_output): Likewise.
33148 (grub_term_input_class): New variable.
33149 (grub_term_output_class): Likewise.
33150 (grub_term_register_input): Changed to inline function.
33151 (grub_term_register_output): Likewise.
33152 (grub_term_unregister_input): Likewise.
33153 (grub_term_unregister_output): Likewise.
33154 (grub_term_set_current_input): Likewise.
33155 (grub_term_set_current_output): Likewise.
33156 (grub_term_get_current_input): Likewise.
33157 (grub_term_get_current_output): Likewise.
33158 (grub_term_iterate_input): Removed.
33159 (grub_term_iterate_output): Likewise.
33160
33161 * kern/term.c (grub_term_list_input): Removed.
33162 (grub_term_list_output): Likewise.
33163 (grub_term_input_class): New variable.
33164 (grub_term_output_class): Likewise.
33165 (grub_cur_term_input): Change variable as macro.
33166 (grub_cur_term_output): Likewise.
33167 (grub_term_register_input): Removed.
33168 (grub_term_register_output): Likewise.
33169 (grub_term_unregister_input): Likewise.
33170 (grub_term_unregister_output): Likewise.
33171 (grub_term_set_current_input): Likewise.
33172 (grub_term_set_current_output): Likewise.
33173 (grub_term_iterate_input): Likewise.
33174 (grub_term_iterate_output): Likewise.
33175 (grub_term_get_current_input): Likewise.
33176 (grub_term_get_current_output): Likewise.
33177
33178 * util/grub-editenv.c: Include header file <grub/handler.h>.
33179 (grub_term_get_current_input): Removed.
33180 (grub_term_get_current_output): Likewise.
33181 (grub_term_input_class): New variable.
33182 (grub_term_output_class): Likewise.
33183
33184 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33185 (grub_term_get_current_output): Likewise.
33186 (grub_term_input_class): New variable.
33187 (grub_term_output_class): Likewise.
33188
33189 * util/grub-probe.c (grub_term_get_current_input): Removed.
33190 (grub_term_get_current_output): Likewise.
33191 (grub_term_input_class): New variable.
33192 (grub_term_output_class): Likewise.
33193
33194 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33195 (grub_term_get_current_output): Likewise.
33196 (grub_term_input_class): New variable.
33197 (grub_term_output_class): Likewise.
33198
33199 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33200 (terminal_mod_SOURCES): Likewise.
33201 (terminal_mod_CFLAGS): Likewise.
33202 (terminal_mod_LDFLAGS): Likewise.
33203
33204 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33205 handler.c.
33206 (kernel_img_SOURCES): Add list.c and handler.c.
33207 (kernel_img_HEADERS): Add list.h and handler.h.
33208
33209 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33210 handler.c.
33211 (kernel_mod_SOURCES): Add list.c and handler.c.
33212 (kernel_mod_HEADERS): Add list.h and handler.h.
33213
33214 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33215 handler.c.
33216 (kernel_elf_SOURCES): Add list.c and handler.c.
33217 (kernel_elf_HEADERS): Add list.h and handler.h.
33218
33219 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33220 handler.c.
33221 (kernel_elf_SOURCES): Add list.c and handler.c.
33222 (kernel_elf_HEADERS): Add list.h and handler.h.
33223
33224 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33225 handler.c.
33226 (kernel_mod_SOURCES): Add list.c and handler.c.
33227 (kernel_mod_HEADERS): Add list.h and handler.h.
33228
33229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33230 handler.c.
33231 (kernel_elf_SOURCES): Add list.c and handler.c.
33232 (kernel_elf_HEADERS): Add list.h and handler.h.
33233
33234 2009-02-27 Robert Millan <rmh@aybabtu.com>
33235
33236 Factorize elf32 / elf64 code in Multiboot loader. This will
33237 prevent it from getting out of sync again.
33238
33239 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33240 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33241 grub_multiboot_load_elf64): Move from here ...
33242 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33243 grub_multiboot_load_elf): ... to here (new file).
33244
33245 2009-02-27 Robert Millan <rmh@aybabtu.com>
33246
33247 * util/grub.d/10_linux.in: Rename "single-user mode" to
33248 "recovery mode".
33249
33250 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33251
33252 Don't leak in SCSI code.
33253 * disk/scsi.c (grub_scsi_close): free `scsi'.
33254
33255 2009-02-27 Robert Millan <rmh@aybabtu.com>
33256
33257 * loader/i386/pc/multiboot.c: Move from here ...
33258 * loader/i386/multiboot.c: ... to here. Update all users.
33259
33260 2009-02-27 Robert Millan <rmh@aybabtu.com>
33261
33262 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33263 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33264
33265 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33266
33267 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33268 b-tree.
33269
33270 2009-02-27 Robert Millan <rmh@aybabtu.com>
33271
33272 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33273 `0x' qualifier as 0 when base is specified as parameter).
33274
33275 2009-02-24 Bean <bean123ch@gmail.com>
33276
33277 * configure.ac: Check for -mcmodel=large in x86_64 target.
33278
33279 * include/grub/efi/api.h (efi_call_10): New macro.
33280 (efi_wrap_10): New function.
33281
33282 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33283 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33284 (GRUB_PE32_REL_BASED_LOW): Likewise.
33285 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33286 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33287 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33288 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33289 (GRUB_PE32_REL_BASED_REL): Likewise.
33290 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33291 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33292 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33293
33294 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33295 issue.
33296
33297 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33298 (efi_wrap_10): New function.
33299
33300 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33301
33302 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33303 MB/MBP model (NV chipset).
33304 (devdata_devs): Add devpath_5 to the list.
33305
33306 * load/i386/efi/linux.c (video_base): Remove variable.
33307 (RGB_MASK): New macro.
33308 (RGB_MAGIC): Likewise.
33309 (LINE_MIN): Likewise.
33310 (LINE_MAX): Likewise.
33311 (FBTEST_STEP): Likewise.
33312 (FBTEST_COUNT): Likewise.
33313 (fb_list): New variable.
33314 (grub_find_video_card): Remove function.
33315 (find_framebuf): New function.
33316 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33317 line length.
33318
33319 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33320 problem for x86_64.
33321
33322 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33323
33324 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33325
33326 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33327 coding tool name.
33328
33329 2009-02-22 Robert Millan <rmh@aybabtu.com>
33330
33331 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33332 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33333 in our relocation, instead of using it directly from heap. Also
33334 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33335
33336 2009-02-21 Robert Millan <rmh@aybabtu.com>
33337
33338 Implement USB keyboard support (based on patch by Marco Gerards)
33339
33340 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33341 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33342 (usb_keyboard_mod_LDFLAGS): New variables.
33343
33344 * term/usb_keyboard.c: New file.
33345
33346 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33347
33348 Corrected wrong declaration
33349
33350 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33351
33352 2009-02-14 Christian Franke <franke@computer.org>
33353
33354 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33355 (grub_lspci_iter): Print class code and programming interface byte.
33356
33357 2009-02-14 Christian Franke <franke@computer.org>
33358
33359 * gendistlist.sh: Ignore `.svn' directories.
33360
33361 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33362
33363 * fs/fat.c: Add 2009 to Copyright line.
33364
33365 2009-02-14 Christian Franke <franke@computer.org>
33366
33367 * commands/hdparm.c: New file. Provides `hdparm' command
33368 which sends ATA commands via grub_disk_ata_pass_through ().
33369
33370 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33371
33372 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33373 and <grub/cpu/io.h> to include/grub/ata.h.
33374 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33375 (GRUB_CDROM_SECTOR_SIZE): Remove.
33376 (GRUB_ATA_*): Move to include/grub/ata.h.
33377 (GRUB_ATAPI_*): Likewise.
33378 (enum grub_ata_commands): Likewise.
33379 (enum grub_ata_timeout_milliseconds): Likewise.
33380 (struct grub_ata_device): Likewise.
33381 (grub_ata_regset): Likewise.
33382 (grub_ata_regget): Likewise.
33383 (grub_ata_regset2): Likewise.
33384 (grub_ata_regget2): Likewise.
33385 (grub_ata_check_ready): Likewise.
33386 (grub_ata_wait_not_busy): Remove static, exported in
33387 include/grub/ata.h.
33388 (grub_ata_wait_drq): Likewise.
33389 (grub_ata_pio_read): Likewise.
33390
33391 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33392 function for hdparm.mod.
33393
33394 * include/grub/ata.h: New file, contains declarations from
33395 disk/ata.c.
33396 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33397
33398 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33399 (grub_disk_ata_pass_through): New exported variable.
33400
33401 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33402
33403 2009-02-13 Colin D Bennett <colin@gibibit.com>
33404
33405 Support multiple fallback entries, and provide an API to support
33406 executing default+fallback menu entries. Renamed the `terminal' menu
33407 viewer to `text'.
33408
33409 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33410 variable declaration.
33411 (grub_menu_execute_callback): New structure declaration.
33412 (grub_menu_execute_callback_t): New typedef.
33413 (grub_menu_execute_with_fallback): New function declaration.
33414 (grub_menu_get_entry): Likewise.
33415 (grub_menu_get_timeout): Likewise.
33416 (grub_menu_set_timeout): Likewise.
33417
33418 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33419
33420 * normal/menu.c (grub_wait_after_message): Moved to
33421 `normal/menu_text.c'.
33422 (draw_border): Likewise.
33423 (print_message): Likewise.
33424 (print_entry): Likewise.
33425 (print_entries): Likewise.
33426 (grub_menu_init_page): Likewise.
33427 (get_entry_number): Likewise.
33428 (print_timeout): Likewise.
33429 (run_menu): Likewise.
33430 (grub_menu_execute_entry): Likewise.
33431 (show_text_menu): Likewise.
33432 (get_and_remove_first_entry_number): New function.
33433 (grub_menu_execute_with_fallback): Likewise.
33434 (get_entry): Renamed to ...
33435 (grub_menu_get_entry): .. this and made it global.
33436 (get_timeout): Renamed to ...
33437 (grub_menu_get_timeout): ... this and made it global.
33438 (set_timeout): Renamed to ...
33439 (grub_menu_set_timeout): ... this and made it global.
33440 (grub_normal_terminal_menu_viewer): Renamed to ...
33441 (grub_normal_text_menu_viewer): ... this.
33442
33443 * normal/menu_text.c: New file. Extracted text-menu-specific code
33444 from normal/menu.c.
33445
33446 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33447 (normal_mod_SOURCES): Likewise.
33448
33449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33450 (normal_mod_SOURCES): Likewise.
33451
33452 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33453 (normal_mod_SOURCES): Likewise.
33454
33455 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33456 (normal_mod_SOURCES): Likewise.
33457
33458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33459 (normal_mod_SOURCES): Likewise.
33460
33461 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33462 (normal_mod_SOURCES): Likewise.
33463
33464 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33465 (normal_mod_SOURCES): Likewise.
33466
33467 2009-02-11 Robert Millan <rmh@aybabtu.com>
33468
33469 * util/grub.d/00_header.in: Update old reference to `font' command.
33470
33471 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33472
33473 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33474
33475 Based on patch from Javier Martín.
33476
33477 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33478
33479 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33480 to avoid false positives with FAT.
33481 (grub_fstest_SOURCES): Likewise.
33482 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33483 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33486 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33487 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33488
33489 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33490
33491 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33492 bpb.version_specific.fat12_or_fat16.fstype and
33493 bpb.version_specific.fat32.fstype.
33494
33495 2009-02-08 Robert Millan <rmh@aybabtu.com>
33496
33497 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33498
33499 2009-02-08 Robert Millan <rmh@aybabtu.com>
33500
33501 * Makefile.in (host_os, host_cpu): New variables.
33502 (target_os): Remove. Update all users.
33503
33504 2009-02-08 Marco Gerards <marco@gnu.org>
33505
33506 * Makefile.in (enable_grub_emu_usb): New variable.
33507 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33508 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33509 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33510 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33511 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33512 `usbtest.mod' and `usbms.mod'.
33513 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33514 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33515 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33516 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33517 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33518 variables.
33519
33520 * disk/usbms.c: New file.
33521
33522 * include/grub/usb.h: Likewise.
33523
33524 * include/grub/usbtrans.h: Likewise.
33525
33526 * include/grub/usbdesc.h: Likewise.
33527
33528 * bus/usb/usbtrans.c: Likewise.
33529
33530 * bus/usb/ohci.c: Likewise.
33531
33532 * bus/usb/uhci.c: Likewise.
33533
33534 * bus/usb/usbhub.c: Likewise.
33535
33536 * bus/usb/usb.c: Likewise.
33537
33538 * commands/usbtest.c: Likewise.
33539
33540 * util/usb.c: Likewise.
33541
33542 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33543
33544 * configure.ac: Test for libusb presence.
33545
33546 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33547
33548 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33549
33550 * kern/mm.c: Add more comments.
33551
33552 2009-02-08 Robert Millan <rmh@aybabtu.com>
33553
33554 Patch from Javier Martín.
33555 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33556 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33557
33558 2009-02-08 Robert Millan <rmh@aybabtu.com>
33559
33560 * fs/cpio.c: Split tar functionality to ...
33561 * fs/tar.c: ... here (new file). Update all users.
33562
33563 2009-02-07 Robert Millan <rmh@aybabtu.com>
33564
33565 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33566 backward-incompatible features.
33567
33568 Based on patch from Javier Martín, with some adjustments.
33569
33570 2009-02-07 Michael Scherer <misc@mandriva.org>
33571
33572 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33573
33574 2009-02-07 Robert Millan <rmh@aybabtu.com>
33575
33576 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33577 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33578 after the RAID stuff.
33579
33580 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33581
33582 Fixes problem when running vbetest command as reported by
33583 Vladimir Serbinenko <phcoder@gmail.com>.
33584
33585 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33586
33587 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33588
33589 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33590 /dev/md/NpN style mdraid devices.
33591
33592 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33593
33594 * util/unifont2pff.rb: Remove.
33595
33596 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33597
33598 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33599 `#'.
33600
33601 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33602
33603 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33604 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33605 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33606 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33607 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33608 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33609 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33610
33611 2009-02-02 Christian Franke <franke@computer.org>
33612
33613 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33614
33615 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33616
33617 * INSTALL: Note that we now require at least autoconf 2.59 and
33618 that LZO is optional.
33619
33620 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33621
33622 Base on patch on bug #24154 created by Tomas Tintera
33623 <trosos@seznam.cz>.
33624
33625 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33626
33627 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33628
33629 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33630 <bero@arklinux.org>.
33631
33632 * normal/parser.y (script_init): Add missing semicolon.
33633
33634 2009-01-31 Colin D Bennett <colin@gibibit.com>
33635
33636 * normal/main.c: Add include to grub/menu_viewer.h.
33637 (free_menu_entry_classes): Added.
33638 (grub_normal_menu_addentry): Added class property handling.
33639 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33640 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33641
33642 * normal/menu_viewer.c: New file.
33643
33644 * normal/menu.c (run_menu_entry): Renamed to ...
33645 (grub_menu_execute_entry): ... this and made it as global.
33646 (grub_menu_run): Renamed to ...
33647 (show_text_menu): ... this and made it local.
33648 (show_text_menu): Adapt to new function names.
33649 (grub_normal_terminal_menu_viewer): New global variable.
33650
33651 * include/grub/menu.h: New file.
33652
33653 * include/grub/menu_viewer.h: New file.
33654
33655 * include/grub/normal.h: Added include to grub/menu.h.
33656 (grub_menu_entry): Moved to include/grub/menu.h.
33657 (grub_menu_entry_t): Likewise.
33658 (grub_menu): Likewise.
33659 (grub_menu_t): Likewise.
33660 (grub_normal_terminal_menu_viewer): Added.
33661 (grub_menu_execute_entry): Likewise.
33662 (grub_menu_run): Removed.
33663
33664 * DISTLIST: Added include/grub/menu.h.
33665 Added include/grub/menu_viewer.h.
33666 Added normal/menu_viewer.c.
33667
33668 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33669
33670 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33671 arglist for menutitle arguments.
33672
33673 * normal/main.c (grub_normal_menu_addentry): Likewise.
33674
33675 * normal/parser.y (menuentry): Likewise.
33676
33677 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33678
33679 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33680 (grub_script_create_cmdmenu): Likewise.
33681
33682 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33683
33684 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33685 changes.
33686
33687 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33688
33689 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33690
33691 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33692
33693 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33694
33695 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33696
33697 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33698
33699 2009-01-30 Christian Franke <franke@computer.org>
33700
33701 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33702 in option help text.
33703
33704 2009-01-27 Pavel Roskin <proski@gnu.org>
33705
33706 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33707
33708 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33709
33710 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33711
33712 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33713
33714 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33715 unregister function.
33716
33717 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33718
33719 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33720
33721 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33722
33723 * util/grub-mkfont.c (usage): Fix typo.
33724
33725 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33726
33727 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33728
33729 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33730
33731 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33732
33733 * kern/misc.c (grub_strcasecmp): New function.
33734 (grub_strcasecmp): Use grub_size_t instead of int for length.
33735 Fix return value.
33736 * include/grub/misc.h: Update function prototypes.
33737
33738 2009-01-26 Robert Millan <rmh@aybabtu.com>
33739
33740 * configure.ac: Fix cross-compilation check.
33741
33742 2009-01-22 Christian Franke <franke@computer.org>
33743
33744 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33745 (precision) digit string. Allow `.format2' without `format1' (width).
33746 Limit input chars for `%s' output to `format2' if specified. This is
33747 compatible with standard printf ().
33748
33749 2009-01-22 Christian Franke <franke@computer.org>
33750
33751 * disk/ata.c (grub_ata_wait_status): Replace by ...
33752 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33753 other status bits may be invalid while BSY is asserted.
33754 (grub_ata_check_ready): New function.
33755 (grub_ata_cmd): Removed.
33756 (grub_ata_wait_drq): New function.
33757 (grub_ata_strncpy): Remove inline.
33758 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33759 and error check now done by grub_ata_wait_drq ().
33760 (grub_ata_pio_write): Likewise.
33761 (grub_atapi_identify): Set DEV before check for !BSY. Use
33762 grub_ata_wait_drq () to wait for data.
33763 (grub_ata_device_initialize): Add status register check to
33764 detect missing SATA slave devices. Add debug messages.
33765 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33766 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33767 transfer loop by grub_ata_pio_write ().
33768 (grub_ata_identify): Set DEV before check for !BSY. Use
33769 grub_ata_wait_drq () to wait for data.
33770 (grub_ata_setaddress): Set DEV before check for !BSY.
33771 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33772 read/write in one loop. Fix invalid command on write. Fix incomplete
33773 command on (size % batch) == 0. Add missing error check after write of
33774 last block. Add debug messages.
33775 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33776
33777 2009-01-19 Christian Franke <franke@computer.org>
33778
33779 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33780 (GRUB_ATAPI_IREASON_*): Likewise.
33781 (grub_ata_pio_write): Fix timeout error return.
33782 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33783 (grub_atapi_wait_drq): New function.
33784 (grub_atapi_packet): New parameter `size'.
33785 Use grub_atapi_wait_drq () and direct write instead of
33786 grub_ata_pio_write ().
33787 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33788 reads the number of bytes requested by the device for each DRQ
33789 assertion.
33790 (grub_atapi_write): Remove old implementation, return not
33791 implemented instead.
33792
33793 2009-01-19 Christian Franke <franke@computer.org>
33794
33795 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33796 of 512 to calculate data size.
33797 (grub_scsi_read12): Likewise.
33798 (grub_scsi_write10): Likewise.
33799 (grub_scsi_write12): Likewise.
33800 (grub_scsi_read): Adjust size according to blocksize.
33801 Add checks for invalid blocksize and unaligned transfer.
33802
33803 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33804
33805 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33806
33807 * term/gfxterm.c (write_char): Fix background rendering for wide
33808 width glyphs.
33809
33810 2009-01-19 Robert Millan <rmh@aybabtu.com>
33811
33812 * config.guess: Update to latest version from config git.
33813 * config.sub: Likewise.
33814
33815 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33816
33817 * Makefile.in: Change font compilation to use new grub-mkfont instead
33818 of java version.
33819
33820 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33821 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33822 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33823 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33824 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33825 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33826 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33827 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33828 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33829
33830 2009-01-16 Christian Franke <franke@computer.org>
33831
33832 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33833 (enum grub_ata_timeout_milliseconds): New enum.
33834 (grub_ata_wait_status): Add parameter milliseconds.
33835 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33836 recovery from timed-out commands.
33837 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33838 return grub_errno instead of REG_ERROR.
33839 (grub_ata_pio_write): Add parameter milliseconds.
33840 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33841 Pass milliseconds to grub_ata_wait_status () and
33842 grub_ata_pio_read ().
33843 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33844 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33845 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33846 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33847 It is not suitable for device detection, because DEV bit is ignored,
33848 the command may run too long, and not all devices set the signature
33849 properly.
33850 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33851 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33852 Fix device selection, DEV bit must be set first to address the registers
33853 of the correct device.
33854 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33855 grub_ata_pio_read/write ().
33856 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33857 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33858
33859 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33860
33861 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33862
33863 2009-01-13 Bean <bean123ch@gmail.com>
33864
33865 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33866
33867 2009-01-13 Bean <bean123ch@gmail.com>
33868
33869 * Makefile.in: (enable_grub_mkfont): New variable.
33870 (freetype_cflags): Likewise.
33871 (freetype_libs): Likewise.
33872
33873 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33874 (grub_mkfont_SOURCES): New variable.
33875 (grub_mkfont_CFLAGS): Likewise.
33876 (grub_mkfont_LDFLAGS): Likewise.
33877
33878 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33879 library if `--enable-grub-mkfont' is requested.
33880 (enable_grub_mkfont): New variable.
33881 (freetype_cflags): Likewise.
33882 (freetype_libs): Likewise.
33883
33884 * util/grub-mkfont.c: New file.
33885
33886 2009-01-12 Christian Franke <franke@computer.org>
33887
33888 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33889 mode check. Fix setting of compat_use[].
33890
33891 2009-01-10 Robert Millan <rmh@aybabtu.com>
33892
33893 Update a few copyright years which we forgot to do in 2008 (only for
33894 files whose changes made in 2008 were copyright-significant)
33895
33896 * Makefile.in: Add 2008 to Copyright line.
33897 * disk/ieee1275/ofdisk.c: Likewise.
33898 * disk/efi/efidisk.c: Likewise.
33899 * kern/dl.c: Likewise.
33900 * kern/sparc64/ieee1275/init.c: Likewise.
33901 * kern/mm.c: Likewise.
33902 * kern/efi/mm.c: Likewise.
33903 * boot/i386/pc/boot.S: Likewise.
33904 * genfslist.sh: Likewise.
33905 * fs/iso9660.c: Likewise.
33906 * fs/hfs.c: Likewise.
33907 * fs/jfs.c: Likewise.
33908 * fs/minix.c: Likewise.
33909 * fs/ufs.c: Likewise.
33910 * gensymlist.sh.in: Likewise.
33911 * genkernsyms.sh.in: Likewise.
33912 * include/grub/misc.h: Likewise.
33913 * include/grub/types.h: Likewise.
33914 * include/grub/symbol.h: Likewise.
33915 * include/grub/elf.h: Likewise.
33916 * include/grub/kernel.h: Likewise.
33917 * include/grub/disk.h: Likewise.
33918 * include/grub/dl.h: Likewise.
33919 * include/grub/i386/linux.h: Likewise.
33920 * include/grub/i386/pc/biosdisk.h: Likewise.
33921 * include/grub/efi/api.h: Likewise.
33922 * include/grub/efi/pe32.h: Likewise.
33923 * include/grub/util/misc.h: Likewise.
33924 * normal/execute.c: Likewise.
33925 * normal/arg.c: Likewise.
33926 * normal/completion.c: Likewise.
33927 * normal/lexer.c: Likewise.
33928 * normal/parser.y: Likewise.
33929 * normal/misc.c: Likewise.
33930 * commands/i386/pc/vbeinfo.c: Likewise.
33931 * commands/hexdump.c: Likewise.
33932 * commands/terminal.c: Likewise.
33933 * commands/ls.c: Likewise.
33934 * commands/help.c: Likewise.
33935 * partmap/pc.c: Likewise.
33936 * loader/efi/chainloader.c: Likewise.
33937 * loader/multiboot_loader.c: Likewise.
33938 * loader/i386/pc/multiboot2.c: Likewise.
33939 * term/efi/console.c: Likewise.
33940 * term/i386/pc/serial.c: Likewise.
33941 * util/lvm.c: Likewise.
33942 * util/console.c: Likewise.
33943 * util/i386/efi/grub-mkimage.c: Likewise.
33944 * util/raid.c: Likewise.
33945
33946 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
33947
33948 * commands/videotest.c: Removed include to grub/machine/memory.h.
33949
33950 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
33951 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
33952 (video_mod_SOURCES): Removed.
33953 (video_mod_CFLAGS): Likewise.
33954 (video_mod_LDFLAGS): Likewise.
33955 (gfxterm_mod_SOURCES): Likewise.
33956 (gfxterm_mod_CFLAGS): Likewise.
33957 (gfxterm_mod_LDFLAGS): Likewise.
33958 (videotest_mod_SOURCES): Likewise.
33959 (videotest_mod_CFLAGS): Likewise.
33960 (videotest_mod_LDFLAGS): Likewise.
33961 (bitmap_mod_SOURCES): Likewise.
33962 (bitmap_mod_CFLAGS): Likewise.
33963 (bitmap_mod_LDFLAGS): Likewise.
33964 (tga_mod_SOURCES): Likewise.
33965 (tga_mod_CFLAGS): Likewise.
33966 (tga_mod_LDFLAGS): Likewise.
33967 (jpeg_mod_SOURCES): Likewise.
33968 (jpeg_mod_CFLAGS): Likewise.
33969 (jpeg_mod_LDFLAGS): Likewise.
33970 (png_mod_SOURCES): Likewise.
33971 (png_mod_CFLAGS): Likewise.
33972 (png_mod_LDFLAGS): Likewise.
33973
33974 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
33975 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
33976 (video_mod_SOURCES): Added.
33977 (video_mod_CFLAGS): Likewise.
33978 (video_mod_LDFLAGS): Likewise.
33979 (videotest_mod_SOURCES): Likewise.
33980 (videotest_mod_CFLAGS): Likewise.
33981 (videotest_mod_LDFLAGS): Likewise.
33982 (bitmap_mod_SOURCES): Likewise.
33983 (bitmap_mod_CFLAGS): Likewise.
33984 (bitmap_mod_LDFLAGS): Likewise.
33985 (tga_mod_SOURCES): Likewise.
33986 (tga_mod_CFLAGS): Likewise.
33987 (tga_mod_LDFLAGS): Likewise.
33988 (jpeg_mod_SOURCES): Likewise.
33989 (jpeg_mod_CFLAGS): Likewise.
33990 (jpeg_mod_LDFLAGS): Likewise.
33991 (png_mod_SOURCES): Likewise.
33992 (png_mod_CFLAGS): Likewise.
33993 (png_mod_LDFLAGS): Likewise.
33994 (gfxterm_mod_SOURCES): Likewise.
33995 (gfxterm_mod_CFLAGS): Likewise.
33996 (gfxterm_mod_LDFLAGS): Likewise.
33997
33998 * term/gfxterm.c: Removed include to grub/machine/memory.h,
33999 grub/machine/console.h.
34000
34001 2009-01-04 Jerone Young <jerone@gmail.com>
34002
34003 Make on screen instructions clearer
34004
34005 Based on patch created by Jidanni <jidanni@jidanni.org>
34006
34007 * normal/menu.c: print clearer instructions on the screen
34008
34009 2009-01-02 Colin D Bennett <colin@gibibit.com>
34010
34011 New font engine.
34012
34013 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34014 build system and fixed gfxterm.c to work with different sized fonts.
34015
34016 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34017
34018 * configure: Re-generated.
34019
34020 * DISTLIST: Removed font/manager.c.
34021 Added font/font.c.
34022 Added font/font_cmd.c.
34023
34024 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34025 compilation.
34026
34027 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34028
34029 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34030
34031 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34032
34033 * normal/menu.c: Likewise.
34034
34035 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34036 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34037
34038 * include/grub/font.h: Replaced with new file.
34039
34040 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34041 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34042 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34043 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34044 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34045 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34046 fg_red, fg_green, fg_blue, fg_alpha.
34047 (grub_video_adapter): Removed blit_glyph.
34048 (grub_video_blit_glyph): Removed.
34049
34050 * font/manager.c: Removed file.
34051
34052 * font/font.c: New file.
34053
34054 * font/font_cmd.c: Likewise.
34055
34056 * video/video.c (grub_video_blit_glyph): Removed.
34057
34058 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34059 (grub_video_vbe_map_rgba): Likewise.
34060 (grub_video_vbe_unmap_color_int): Likewise.
34061 (grub_video_vbe_blit_glyph): Removed.
34062 (grub_video_vbe_adapter): Removed blit_glyph.
34063
34064 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34065 (get_pixel): Likewise.
34066 (set_pixel): Likewise.
34067
34068 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34069
34070 * term/gfxterm.c: Adapted to new font engine.
34071
34072 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34073
34074 * term/i386/pc/vga.c: Likewise.
34075
34076 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34077
34078 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34079
34080 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34081
34082 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34083
34084 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34085
34086 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34087
34088 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34089
34090 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34091
34092 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34093
34094 * util/grub.d/00_header.in: Changed to use new loadfont command.
34095
34096 * util/grub-mkconfig_lib.in: Changed font extension.
34097
34098 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34099
34100 * util/getroot.c (grub_util_get_grub_dev): Add support for
34101 /dev/md/dNNpNN style partitionable mdraid devices.
34102
34103 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34104
34105 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34106 at a time limit of the PXE TFTP API correctly.
34107 (grub_pxefs_close): Likewise.
34108
34109 2008-11-29 Robert Millan <rmh@aybabtu.com>
34110
34111 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34112 grub_ata_device_initialize() calls.
34113
34114 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34115
34116 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34117 iteration failed.
34118 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34119
34120 2008-11-28 Robert Millan <rmh@aybabtu.com>
34121
34122 Fix build on powerpc-ieee1275. Based on patch created by
34123 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34124 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34125 `kern/ieee1275/mmap.c'.
34126 * include/grub/powerpc/ieee1275/memory.h: New file.
34127
34128 Provide grub-install on coreboot.
34129 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34130 (grub_install_SOURCES): New variable.
34131 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34132 usable on coreboot.
34133
34134 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34135
34136 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34137 to `grub_term_input_t'.
34138 (grub_term_get_current_output): Change return type to
34139 `grub_term_output_t'.
34140
34141 2008-11-22 Robert Millan <rmh@aybabtu.com>
34142
34143 Fix breakage on coreboot due to declaration mismatch.
34144 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34145 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34146 grub_vga_text_cls().
34147
34148 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34149 comments. Avoid copying one more byte than necessary (just in case).
34150
34151 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34152 to 0x200000 (avoids trouble with some OFW implementations, and matches
34153 with the one in Yaboot).
34154 Reported by Manoel Abranches
34155
34156 2008-11-20 Robert Millan <rmh@aybabtu.com>
34157
34158 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34159 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34160
34161 * util/grub-mkconfig_lib.in (grub_warn): New function.
34162 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34163 warnings, to obtain consistent formatting.
34164 * util/grub.d/00_header.in: Likewise.
34165 * util/update-grub_lib.in: Likewise.
34166
34167 * loader/i386/linux.c (allocate_pages): Fix a warning.
34168 Move comment text to `#error' stanza.
34169
34170 Harmonize ieee1275's grub_available_iterate() with the generic
34171 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34172 build problem on i386-ieee1275):
34173 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34174 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34175 parameter `type'. Update all users of this function.
34176 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34177 `kern/ieee1275/mmap.c'.
34178 * kern/ieee1275/init.c
34179 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34180 with ...
34181 (grub_machine_mmap_iterate): ... this.
34182 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34183 return type to `grub_err_t'. Update all implementations of this
34184 function prototype.
34185 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34186 Likewise.
34187
34188 Add `lsmmap' command (lists firmware-provided memory map):
34189 * commands/lsmmap.c: New file.
34190 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34191 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34192 variables.
34193 * conf/powerpc-ieee1275.rmk: Likewise.
34194 * conf/i386-coreboot.rmk: Likewise.
34195 * conf/i386-ieee1275.rmk: Likewise.
34196
34197 2008-11-19 Robert Millan <rmh@aybabtu.com>
34198
34199 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34200 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34201 constraints to initrd allocation (based on code from
34202 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34203 for Linux to find it.
34204
34205 2008-11-14 Robert Millan <rmh@aybabtu.com>
34206
34207 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34208 order to cope with duplicate slashes.
34209
34210 2008-11-14 Robert Millan <rmh@aybabtu.com>
34211
34212 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34213 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34214 don't want to mess with lower memory, because it is used in the Linux
34215 loader.
34216
34217 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34218 an appropriate place in lower memory, between 0x10000 and 0x90000,
34219 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34220 is in our heap (probably as a result of it being corrupted during
34221 decompression). Add #error instance with comment to explain why this
34222 loader isn't currently usable on PC/BIOS.
34223
34224 2008-11-14 Robert Millan <rmh@aybabtu.com>
34225
34226 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34227 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34228
34229 2008-11-12 Robert Millan <rmh@aybabtu.com>
34230
34231 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34232
34233 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34234 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34235 from here ...
34236 * include/grub/i386/pc/memory.h: ... to here.
34237
34238 2008-11-12 Robert Millan <rmh@aybabtu.com>
34239
34240 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34241 split).
34242
34243 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34244 (grub_console_cur_color, grub_console_real_putchar)
34245 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34246 (grub_console_setcolorstate, grub_console_setcolor)
34247 (grub_console_getcolor): Move from here ...
34248 * include/grub/i386/vga_common.h: ... to here (new file).
34249
34250 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34251 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34252 `<grub/i386/io.h>'.
34253 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34254 `<grub/i386/vga_common.h>'.
34255
34256 2008-11-12 Robert Millan <rmh@aybabtu.com>
34257
34258 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34259 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34260 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34261 variables.
34262 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34263 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34264
34265 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34266 grub_console_init() with call to grub_vga_text_init().
34267 (grub_machine_fini): Replace call to
34268 grub_console_fini() with call to grub_vga_text_fini() and
34269 grub_at_keyboard_fini().
34270
34271 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34272 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34273 (grub_console_setcolorstate, grub_console_setcolor)
34274 (grub_console_getcolor): New function prototypes.
34275
34276 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34277 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34278 (grub_vga_text_setcursor): Static-ize.
34279 (grub_vga_text_term): New structure.
34280 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34281
34282 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34283 (grub_console_cur_color, grub_console_standard_color)
34284 (grub_console_normal_color, grub_console_highlight_color)
34285 (map_char, grub_console_putchar, grub_console_getcharwidth)
34286 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34287 (grub_console_getcolor): Move from here ...
34288 * term/i386/vga_common.c: ... to here (same function names).
34289
34290 2008-11-12 Robert Millan <rmh@aybabtu.com>
34291
34292 Use newly-added Multiboot support in coreboot.
34293
34294 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34295 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34296
34297 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34298 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34299 (codestart): Store the MBI in `startup_multiboot_info' when we're
34300 being loaded using Multiboot.
34301
34302 * kern/i386/coreboot/init.c (grub_machine_init): Move
34303 grub_at_keyboard_init() call to beginning of function (useful for
34304 debugging). Call grub_machine_mmap_init() before attempting to use
34305 grub_machine_mmap_iterate().
34306 (grub_lower_mem, grub_upper_mem): Move from here ...
34307 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34308 here (new file).
34309
34310 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34311 function prototype.
34312
34313 2008-11-12 Robert Millan <rmh@aybabtu.com>
34314
34315 Fix a regression introduced by the at_keyboard.mod split. Because
34316 some terminals are default on some platforms and non-default on
34317 others, the first terminal being registered determines which is
34318 going to be default.
34319
34320 * kern/term.c (grub_term_register_input): If this is the first
34321 terminal being registered, set it as the current one.
34322 (grub_term_register_output): Likewise.
34323
34324 * term/efi/console.c (grub_console_init): Do not call
34325 grub_term_set_current_output() or grub_term_set_current_input().
34326 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34327 * term/i386/pc/console.c (grub_console_init): Likewise.
34328 (grub_console_fini): Do not call grub_term_set_current_input()
34329 (but leave grub_term_set_current_output() to restore text mode).
34330
34331 2008-11-10 Robert Millan <rmh@aybabtu.com>
34332
34333 * util/grub.d/00_header.in: Add backward compatibility check for
34334 versions of terminal.mod that don't understand `terminal_input' or
34335 `terminal_output'.
34336
34337 2008-11-09 Robert Millan <rmh@aybabtu.com>
34338
34339 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34340 `terminal_input' / `terminal_output', not `terminal'.
34341
34342 2008-11-08 Robert Millan <rmh@aybabtu.com>
34343
34344 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34345 (DISTCLEANFILES): Add `build_env.mk'.
34346
34347 2008-11-08 Robert Millan <rmh@aybabtu.com>
34348
34349 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34350 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34351 members. Update all users.
34352 * util/console.c (grub_ncurses_term): Split in ...
34353 (grub_ncurses_term_input): ... this, and ...
34354 (grub_ncurses_term_output): ... this. Update all users.
34355 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34356
34357 2008-11-08 Robert Millan <rmh@aybabtu.com>
34358
34359 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34360 (PKGDATA): Add $(pkgdata_SRCDIR).
34361 (pkglib_BUILDDIR): New variable.
34362 (pkgdata_SRCDIR): New variable.
34363 (build_env.mk): New target.
34364 (include_DATA): New variable.
34365 (install-local): Install $(include_DATA) files in $(includedir).
34366
34367 2008-11-07 Pavel Roskin <proski@gnu.org>
34368
34369 * gendistlist.sh: Use C locale for sorting to ensure consistent
34370 output on all systems.
34371
34372 * util/grub.d/00_header.in: Remove incorrect space before
34373 "serial".
34374
34375 2008-11-07 Robert Millan <rmh@aybabtu.com>
34376
34377 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34378 per specification.
34379 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34380 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34381 (based on find_multi_boot1_header).
34382 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34383 using find_multi_boot2_header(), and abort if neither Multiboot or
34384 Multiboot headers were found.
34385
34386 2008-11-07 Robert Millan <rmh@aybabtu.com>
34387
34388 Modularize at_keyboard.mod:
34389
34390 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34391 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34392 (at_keyboard_mod_LDFLAGS): New variables.
34393
34394 Actual terminal split:
34395
34396 * include/grub/term.h (struct grub_term): Split in ...
34397 (struct grub_term_input): ... this, and ...
34398 (struct grub_term_output): ... this. Update all users.
34399 (grub_term_set_current): Split in ...
34400 (grub_term_set_current_input): ... this, and ...
34401 (grub_term_set_current_output): ... this.
34402 (grub_term_get_current): Split in ...
34403 (grub_term_get_current_input): ... this, and ...
34404 (grub_term_get_current_output): ... this.
34405 (grub_term_register): Split in ...
34406 (grub_term_register_input): ... this, and ...
34407 (grub_term_register_output): ... this.
34408 (grub_term_unregister): Split in ...
34409 (grub_term_unregister_input): ... this, and ...
34410 (grub_term_unregister_output): ... this.
34411 (grub_term_iterate): Split in ...
34412 (grub_term_iterate_input): ... this, and ...
34413 (grub_term_iterate_output): ... this.
34414
34415 * kern/term.c (grub_term_list): Split in ...
34416 (grub_term_list_input): ... this, and ...
34417 (grub_term_list_output): ... this. Update all users.
34418 (grub_cur_term): Split in ...
34419 (grub_cur_term_input): ... this, and ...
34420 (grub_cur_term_output): ... this. Update all users.
34421 (grub_term_set_current): Split in ...
34422 (grub_term_set_current_input): ... this, and ...
34423 (grub_term_set_current_output): ... this.
34424 (grub_term_get_current): Split in ...
34425 (grub_term_get_current_input): ... this, and ...
34426 (grub_term_get_current_output): ... this.
34427 (grub_term_register): Split in ...
34428 (grub_term_register_input): ... this, and ...
34429 (grub_term_register_output): ... this.
34430 (grub_term_unregister): Split in ...
34431 (grub_term_unregister_input): ... this, and ...
34432 (grub_term_unregister_output): ... this.
34433 (grub_term_iterate): Split in ...
34434 (grub_term_iterate_input): ... this, and ...
34435 (grub_term_iterate_output): ... this.
34436
34437 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34438 a check for input and one for output (and only attempt to get keys
34439 from user when input works).
34440
34441 * util/grub-probe.c (grub_term_get_current): Split in ...
34442 (grub_term_get_current_input): ... this, and ...
34443 (grub_term_get_current_output): ... this.
34444 * util/grub-fstest.c: Likewise.
34445 * util/i386/pc/grub-setup.c: Likewise.
34446 * util/grub-editenv.c: Likewise.
34447
34448 Portability adjustments:
34449
34450 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34451 `term/i386/pc/at_keyboard.c'.
34452 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34453 grub_keyboard_controller_init() (now handled by terminal .init).
34454 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34455 grub_at_keyboard_init().
34456 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34457 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34458 at_keyboard.mod via input terminal interface).
34459 * include/grub/i386/coreboot/console.h: Convert into a stub for
34460 `<grub/i386/pc/console.h>'.
34461
34462 Migrate full terminals to new API:
34463
34464 * term/efi/console.c (grub_console_term): Split into ...
34465 (grub_console_term_input): ... this, and ...
34466 (grub_console_term_output): ... this. Update all users.
34467 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34468 (grub_ofconsole_init): Split into ...
34469 (grub_ofconsole_init_input): ... this, and ...
34470 (grub_ofconsole_init_output): ... this.
34471 (grub_ofconsole_term): Split into ...
34472 (grub_ofconsole_term_input): ... this, and ...
34473 (grub_ofconsole_term_output): ... this. Update all users.
34474 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34475 (grub_serial_term_input): ... this, and ...
34476 (grub_serial_term_output): ... this. Update all users.
34477 * term/i386/pc/console.c (grub_console_term): Split into ...
34478 (grub_console_term_input): ... this, and ...
34479 (grub_console_term_output): ... this. Update all users.
34480 (grub_console_term_input): Only enable it on PC/BIOS platform.
34481 (grub_console_init): Remove grub_keyboard_controller_init() call.
34482
34483 Migrate input terminals to new API:
34484
34485 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34486 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34487 i386-specific anyway).
34488 (grub_console_checkkey): Rename to ...
34489 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34490 users.
34491 (grub_keyboard_controller_orig): New variable.
34492 (grub_console_getkey): Rename to ...
34493 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34494 users.
34495 (grub_keyboard_controller_init): Static-ize. Save original
34496 controller value so that it can be restored ...
34497 (grub_keyboard_controller_fini): ... here (new function).
34498 (grub_at_keyboard_term): New structure.
34499 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34500 functions.
34501
34502 Migrate output terminals to new API:
34503
34504 * term/i386/pc/vga.c (grub_vga_term): Change type to
34505 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34506 members. Update all users.
34507 * term/gfxterm.c (grub_video_term): Change type to
34508 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34509 members. Update all users.
34510 * include/grub/i386/pc/console.h (grub_console_checkkey)
34511 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34512 etc).
34513
34514 Migrate `terminal' command and userland tools to new API:
34515
34516 * commands/terminal.c (grub_cmd_terminal): Split into ...
34517 (grub_cmd_terminal_input): ... this, and ...
34518 (grub_cmd_terminal_output): ... this.
34519 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34520 `terminal_input' and `terminal_output'.
34521 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34522 `terminal_input' / `terminal_output' API.
34523 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34524 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34525 provided ${GRUB_TERMINAL}, convert it).
34526
34527 2008-11-04 Robert Millan <rmh@aybabtu.com>
34528
34529 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34530 for FreeBSD.
34531 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34532
34533 2008-11-03 Bean <bean123ch@gmail.com>
34534
34535 * kern/elf.c (grub_elf32_load): Revert to previous code.
34536 (grub_elf64_load): Likewise.
34537
34538 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34539
34540 2008-11-01 Robert Millan <rmh@aybabtu.com>
34541
34542 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34543 (TARGET_CPPFLAGS): Likewise.
34544 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34545
34546 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34547
34548 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34549
34550 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34551
34552 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34553 addition of objects until the code is not going to be able to fail.
34554
34555 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34556
34557 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34558 (add a missing NULL check, and correct them by moving the pointer
34559 operations after the actual check).
34560
34561 2008-10-29 Robert Millan <rmh@aybabtu.com>
34562
34563 * util/i386/pc/grub-install.in: Handle empty string as output from
34564 make_system_path_relative_to_its_root().
34565
34566 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34567
34568 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34569 circular metadata worst case scenario. If the metadata is circular
34570 then copy the wrap in place.
34571 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34572 project lib/format_text/layout.h
34573 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34574
34575 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34576
34577 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34578
34579 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34580
34581 * util/update-grub_lib.in: Mention filename in warning message.
34582
34583 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34584
34585 * NEWS: Update for rename of update-grub to grub-mkconfig.
34586
34587 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34588
34589 * util/update-grub_lib.in: Copy to ...
34590 * util/grub-mkconfig_lib.in: ... this. Update all users.
34591 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34592 * util/update-grub.in: Rename to ...
34593 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34594 option. Add `--output' option to allow users to specify the generated
34595 configuration file. Default to stdout.
34596 (update_grub_dir): Rename to ...
34597 (grub_mkconfig_dir): ... this.
34598 (grub_cfg): Default to an empty string.
34599 * conf/common.rmk (update-grub): Rename to ...
34600 (grub-mkconfig): ... this.
34601 (update-grub_lib): Copy to ...
34602 (grub-mkconfig_lib): ... this.
34603 (update-grub_SCRIPTS): Copy to ...
34604 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34605 (update-grub_DATA): Rename to ...
34606 (grub-mkconfig_DATA): ... this.
34607
34608 2008-09-28 Robert Millan <rmh@aybabtu.com>
34609
34610 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34611 to `modified'. Add the real `created' field.
34612 (grub_iso9660_uuid): Use `modified' rather than `created' for
34613 constructing the UUID.
34614
34615 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34616
34617 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34618 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34619
34620 2008-09-28 Bean <bean123ch@gmail.com>
34621
34622 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34623 Thanks to Christian Franke for finding this bug.
34624
34625 2008-09-25 Robert Millan <rmh@aybabtu.com>
34626
34627 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34628 instances of grub_util_get_disk_name() (see previous commit).
34629
34630 2008-09-25 Robert Millan <rmh@aybabtu.com>
34631
34632 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34633 `util/i386/get_disk_name.c'.
34634 * conf/i386-efi.rmk: Likewise.
34635 * conf/x86_64-efi.rmk: Likewise.
34636 * conf/i386-coreboot.rmk: Likewise.
34637 * conf/i386-ieee1275.rmk: Likewise.
34638 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34639 `util/ieee1275/get_disk_name.c'.
34640 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34641 * util/ieee1275/get_disk_name.c: Remove file.
34642 * util/i386/get_disk_name.c: Remove file.
34643 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34644 "hd%d" for device.map entries, rather than using
34645 grub_util_get_disk_name().
34646
34647 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34648
34649 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34650 warning.
34651 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34652
34653 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34654
34655 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34656 Changed to 0x5100.
34657 (GRUB_TERM_PPAGE): Changed to 0x4900.
34658
34659 2008-09-24 Robert Millan <rmh@aybabtu.com>
34660
34661 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34662 macros (they were i386-pc specific).
34663 * include/grub/sparc64/ieee1275/console.h: Likewise.
34664 * include/grub/efi/console.h: Likewise.
34665
34666 2008-09-22 Bean <bean123ch@gmail.com>
34667
34668 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34669 resident and in attribute list.
34670
34671 * include/grub/ntfs.h (BMP_LEN): Removed.
34672
34673 2008-09-22 Bean <bean123ch@gmail.com>
34674
34675 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34676 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34677
34678 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34679 error occurs, as grub_disk_open will call grub_disk_close, which will
34680 call p->close (scsi).
34681
34682 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34683
34684 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34685 (AC_PREREQ): Bumped to 2.59.
34686 (AC_TRY_COMPILE): Replace obsolete macro with ...
34687 (AC_COMPILE_IFELSE): ... this.
34688 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34689 (AC_LINK_IFELSE): ... this.
34690
34691 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34692
34693 * autogen.sh: Add a call to `gendistlist.sh'.
34694
34695 2008-09-19 Christian Franke <franke@computer.org>
34696
34697 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34698 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34699 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34700 Export __enable_execute_stack() to modules.
34701 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34702 New function.
34703
34704 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34705
34706 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34707 Sort the list.
34708
34709 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34710
34711 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34712 #include <grub/util/hostdisk.h>.
34713
34714 2008-09-08 Robert Millan <rmh@aybabtu.com>
34715
34716 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34717 segments when their filesz is zero (grub_file_read() interprets
34718 zero-size as "read until EOF", which results in memory corruption).
34719 Use `lowest_segment' rather than 0 for calculating the current
34720 segment load address.
34721
34722 2008-09-08 Robert Millan <rmh@aybabtu.com>
34723
34724 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34725 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34726 clobbered useful information.
34727
34728 2008-09-08 Robert Millan <rmh@aybabtu.com>
34729
34730 * include/grub/util/biosdisk.h: Move to ...
34731 * include/grub/util/hostdisk.h: ... here. Update all users.
34732 * util/biosdisk.c: Move to ...
34733 * util/hostdisk.c: ... here. Update all users.
34734
34735 2008-09-07 Robert Millan <rmh@aybabtu.com>
34736
34737 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34738 variables.
34739 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34740 and length can be stored directly in the `mbi->mmap_addr' and
34741 `mbi->mmap_length' struct fields.
34742
34743 2008-09-07 Robert Millan <rmh@aybabtu.com>
34744
34745 * conf/i386.rmk: New file. Provides declaration for building
34746 `cpuid.mod'.
34747 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34748 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34749 variables.
34750 Include `conf/i386.mk'.
34751 * conf/i386-efi.rmk: Likewise.
34752 * conf/x86_64-efi.rmk: Likewise.
34753 * conf/i386-coreboot.rmk: Likewise.
34754 * conf/i386-ieee1275.rmk: Likewise.
34755
34756 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34757
34758 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34759 Adds optimization support for BGR based modes.
34760
34761 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34762 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34763 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34764 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34765 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34766 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34767 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34768 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34769 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34770 (grub_video_i386_vbeblit_index_index): Likewise.
34771 (grub_video_i386_vbeblit_replace_directN): Added.
34772 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34773 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34774 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34775 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34776 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34777 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34778 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34779 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34780 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34781 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34782 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34783 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34784 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34785
34786 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34787 (grub_video_i386_vbefill_R8G8B8): Likewise.
34788 (grub_video_i386_vbefill_index): Likewise.
34789 (grub_video_i386_vbefill_direct32): Added.
34790 (grub_video_i386_vbefill_direct24): Likewise.
34791 (grub_video_i386_vbefill_direct16): Likewise.
34792 (grub_video_i386_vbefill_direct8): Likewise.
34793
34794 * include/grub/video.h (grub_video_blit_format): Removed
34795 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34796 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34797 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34798 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34799 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34800
34801 * video/video.c (grub_video_get_blit_format): Updated to use new
34802 blit formats. Added handling for 16 bit color modes.
34803
34804 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34805 fillers.
34806 (common_blitter): Updated to use new blitters.
34807
34808 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34809 Removed.
34810 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34811 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34812 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34813 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34814 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34815 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34816 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34817 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34818 (grub_video_i386_vbeblit_index_index): Likewise.
34819 (grub_video_i386_vbeblit_replace_directN): Added.
34820 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34821 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34822 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34823 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34824 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34825 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34826 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34827 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34828 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34829 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34830 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34831 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34832 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34833
34834 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34835 (grub_video_i386_vbefill_R8G8B8): Likewise.
34836 (grub_video_i386_vbefill_index): Likewise.
34837 (grub_video_i386_vbefill_direct32): Added.
34838 (grub_video_i386_vbefill_direct24): Likewise.
34839 (grub_video_i386_vbefill_direct16): Likewise.
34840 (grub_video_i386_vbefill_direct8): Likewise.
34841
34842 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34843 types.
34844
34845 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34846 types.
34847
34848 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34849 blitter types.
34850
34851 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34852 types.
34853
34854 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34855
34856 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34857 RAID level 1.
34858
34859 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34860
34861 * fs/iso9660.c (grub_iso9660_date): New structure.
34862 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34863 (grub_iso9660_uuid): New function.
34864
34865 2008-09-05 Bean <bean123ch@gmail.com>
34866
34867 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34868
34869 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34870 insensitive bit for names in Win32 and Win32 & DOS namespace.
34871
34872 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34873
34874 * include/grub/types.h (LONG_MAX): Likewise.
34875
34876 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34877
34878 * util/getroot.c: Include <config.h>.
34879 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34880 add support for /dev/md/N devices and handle LVM double dash escaping.
34881
34882 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34883
34884 * config.guess: Update to latest version from config git.
34885 * config.sub: Likewise.
34886
34887 2008-09-03 Robert Millan <rmh@aybabtu.com>
34888
34889 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34890 `disk->total_sectors'.
34891
34892 2008-09-01 Colin D Bennett <colin@gibibit.com>
34893
34894 * include/grub/normal.h: Fixed incorrect comment for
34895 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34896
34897 2008-09-01 Colin D Bennett <colin@gibibit.com>
34898
34899 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34900 values with defines.
34901
34902 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34903 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34904 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34905 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34906 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34907 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34908 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34909 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34910 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34911 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34912 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34913 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34914 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34915 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34916 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34917 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34918 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34919 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34920 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34921
34922 2008-08-31 Robert Millan <rmh@aybabtu.com>
34923
34924 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34925 declaration.
34926 (grub_multiboot): Fix a few warnings.
34927
34928 2008-08-31 Robert Millan <rmh@aybabtu.com>
34929
34930 * loader/i386/pc/multiboot.c: Update comment not to say that
34931 boot_device support is unimplemented.
34932
34933 2008-08-31 Robert Millan <rmh@aybabtu.com>
34934
34935 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
34936 or memory map support are unimplemented.
34937
34938 2008-08-31 Colin D Bennett <colin@gibibit.com>
34939
34940 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
34941
34942 2008-08-31 Colin D Bennett <colin@gibibit.com>
34943
34944 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
34945 total video memory in 'vbeinfo' output; show color format details for
34946 each video mode.
34947
34948 2008-08-30 Pavel Roskin <proski@gnu.org>
34949
34950 * util/genmoddep.c: Remove for real this time.
34951 * DISTLIST: Remove util/genmoddep.c.
34952
34953 2008-08-30 Robert Millan <rmh@aybabtu.com>
34954
34955 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
34956 as required by Multiboot spec (it was already 4-byte aligned, but
34957 only by chance).
34958
34959 2008-08-29 Pavel Roskin <proski@gnu.org>
34960
34961 * kern/powerpc/ieee1275/crt0.S: Rename to ...
34962 * kern/powerpc/ieee1275/startup.S: ... this.
34963 * conf/powerpc-ieee1275.rmk: Adjust for the above.
34964 * DISTLIST: Likewise.
34965
34966 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
34967 grub/cpu/kernel.h. Add start label for consistency with other
34968 platforms. Add grub_prefix immediately after start. Add jump
34969 to the code after grub_prefix.
34970 * include/grub/powerpc/kernel.h: Provide valid values for
34971 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
34972
34973 2008-08-29 Bean <bean123ch@gmail.com>
34974
34975 * configure.ac: Change host_os to cygwin for mingw.
34976 (asprintf): New check for function.
34977
34978 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
34979 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
34980
34981 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
34982 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
34983 sync, sleep and grub_util_get_disk_size for mingw.
34984
34985 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
34986 to get size in mingw.
34987 (open_device): Use flag O_BINARY if it's defined.
34988 (find_root_device): Add dummy code for mingw.
34989
34990 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
34991 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
34992 (get_scsi_disk_name): Return 0 for mingw.
34993
34994 * util/hostfs.c: #include <grub/util/misc.h>.
34995 (grub_hostfs_open): Use "rb" flag to open file, use
34996 grub_util_get_disk_size to get disk size for mingw.
34997
34998 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
34999 (asprintf): New function if HAVE_ASPRINTF is not set.
35000 (sync): New function for mingw.
35001 (sleep): Likewise.
35002 (grub_util_get_disk_size): Likewise.
35003
35004 2008-08-28 Pavel Roskin <proski@gnu.org>
35005
35006 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35007 kern/time.c.
35008
35009 2008-08-28 Robert Millan <rmh@aybabtu.com>
35010
35011 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35012
35013 2008-08-28 Robert Millan <rmh@aybabtu.com>
35014
35015 Change find_grub_drive() syntax so it doesn't prevent it from
35016 detecting NULL names as errors.
35017
35018 * util/biosdisk.c (find_grub_drive): Move free slot search code
35019 from here ...
35020 (find_free_slot): ... to here.
35021 (read_device_map): Use find_free_slot() to search for free slots.
35022
35023 2008-08-27 Marco Gerards <marco@gnu.org>
35024
35025 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35026 (scsi_mod_SOURCES): New variable.
35027 (scsi_mod_CFLAGS): Likewise
35028 (scsi_mod_LDFLAGS): Likewise.
35029
35030 * disk/scsi.c: New file.
35031
35032 * include/grub/scsi.h: Likewise.
35033
35034 * include/grub/scsicmd.h: Likewise.
35035
35036 * disk/ata.c: Include <grub/scsi.h>.
35037 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35038 instead.
35039 (grub_ata_iterate): Skip ATAPI devices.
35040 (grub_ata_open): Only handle ATAPI devices.
35041 (struct grub_atapi_read): Removed.
35042 (grub_atapi_readsector): Likewise.
35043 (grub_ata_read): No longer handle ATAPI devices.
35044 (grub_ata_write): Likewise.
35045 (grub_atapi_iterate): New function.
35046 (grub_atapi_read): Likewise.
35047 (grub_atapi_write): Likewise.
35048 (grub_atapi_open): Likewise.
35049 (grub_atapi_close): Likewise.
35050 (grub_atapi_dev): New variable.
35051 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35052 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35053
35054 * include/grub/disk.h (enum grub_disk_dev_id): Add
35055 `GRUB_DISK_DEVICE_SCSI_ID'.
35056
35057 2008-08-26 Robert Millan <rmh@aybabtu.com>
35058
35059 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35060 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35061 descriptive.
35062
35063 2008-08-23 Bean <bean123ch@gmail.com>
35064
35065 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35066 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35067 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35068 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35069 dm_nv.mod.
35070 (raid5rec_mod_SOURCES): New macro.
35071 (raid5rec_mod_CFLAGS): Likewise.
35072 (raid5rec_mod_LDFLAGS): Likewise.
35073 (raid6rec_mod_SOURCES): Likewise.
35074 (raid6rec_mod_CFLAGS): Likewise.
35075 (raid6rec_mod_LDFLAGS): Likewise.
35076 (mdraid_mod_SOURCES): Likewise.
35077 (mdraid_mod_CFLAGS): Likewise.
35078 (mdraid_mod_LDFLAGS): Likewise.
35079 (dm_nv_mod_SOURCES): Likewise.
35080 (dm_nv_mod_CFLAGS): Likewise.
35081 (dm_nv_mod_LDFLAGS): Likewise.
35082
35083 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35084 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35085 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35086
35087 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35088 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35089
35090 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35091
35092 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35093
35094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35095
35096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35097
35098 * disk/raid5_recover.c: New file.
35099
35100 * disk/raid6_recover.c: Likewise.
35101
35102 * disk/mdraid_linux.c: Likewise.
35103
35104 * disk/dmraid_nvidia.c: Likewise.
35105
35106 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35107 ULONG_MAX.
35108
35109 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35110 calculate the size of raid device.
35111 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35112 different layout of raid5.
35113 (grub_raid_scan_device): Remove code specific to mdraid.
35114 (grub_raid_list): New variable.
35115 (free_array): New function.
35116 (grub_raid_register): Likewise.
35117 (grub_raid_unregister): Likewise.
35118 (grub_raid_rescan): Likewise.
35119 (GRUB_MOD_INIT): Don't iterate device here.
35120 (GRUB_MOD_FINI): Use free_array to release resource.
35121
35122 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35123 (grub_raid5_recover_func_t): New function variable type.
35124 (grub_raid6_recover_func_t): Likewise.
35125 (grub_raid5_recover_func): New variable.
35126 (grub_raid6_recover_func): Likewise.
35127 (grub_raid_register): New function.
35128 (grub_raid_unregister): Likewise.
35129 (grub_raid_rescan): Likewise.
35130 (grub_raid_block_xor): Likewise.
35131
35132 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35133 (CMD_CRC): New macro.
35134 (part): Removed.
35135 (read_file): Handle device as well as file.
35136 (cmd_crc): New function.
35137 (fstest): Handle multiple disks.
35138 (options): Remove part, raw and long, add root and diskcount.
35139 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35140 (main): Find the first non option entry and ignore subsequent options,
35141 add handling for the new options, support multiple disks.
35142
35143 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35144
35145 2008-08-23 Bean <bean123ch@gmail.com>
35146
35147 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35148
35149 * genfslist.sh: Ignore kernel.mod.
35150
35151 * genpartmaplist.sh: Likewise.
35152
35153 2008-08-23 Robert Millan <rmh@aybabtu.com>
35154
35155 * util/getroot.c (find_root_device): Skip anything that starts with
35156 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35157
35158 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35159
35160 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35161 * util/grub.d/00_header.in: Allow the administrator to change default
35162 gfxmode via ${GRUB_GFXMODE}.
35163
35164 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35165
35166 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35167
35168 2008-08-21 Robert Millan <rmh@aybabtu.com>
35169
35170 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35171 loader.
35172 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35173 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35174
35175 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35176
35177 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35178 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35179
35180 2008-08-19 Robert Millan <rmh@aybabtu.com>
35181
35182 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35183 (struct grub_virtual_screen): Remove `cursor_color'.
35184 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35185 initialization.
35186 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35187
35188 2008-08-18 Robert Millan <rmh@aybabtu.com>
35189
35190 Unify (identical) linux_normal.c files.
35191 * loader/i386/efi/linux_normal.c: Move from here ...
35192 * loader/linux_normal.c: ... to here. Update all users.
35193 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35194 * loader/i386/ieee1275/linux_normal.c: Likewise.
35195
35196 2008-08-18 Robert Millan <rmh@aybabtu.com>
35197
35198 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35199 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35200 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35201 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35202 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35203 New macros.
35204 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35205 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35206 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35207 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35208 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35209 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35210 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35211 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35212 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35213 portably using grub_getxy().
35214 Replace `-EFI' with `-bzImage' in boot message.
35215
35216 2008-08-17 Robert Millan <rmh@aybabtu.com>
35217
35218 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35219
35220 2008-08-17 Robert Millan <rmh@aybabtu.com>
35221
35222 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35223
35224 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35225 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35226 (grub_machine_mmap_iterate): New function declaration.
35227 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35228 structure.
35229 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35230 macros.
35231
35232 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35233 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35234 Move e820 parsing from here ...
35235 * kern/i386/pc/mmap.c: New file.
35236 (grub_machine_mmap_iterate): ... to here.
35237
35238 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35239 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35240 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35241 (grub_available_iterate): Redeclare to return `void', and redeclare
35242 its hook to use grub_uint64_t as addr and size parameters, and rename
35243 to ...
35244 (grub_machine_mmap_iterate): ... this. Update all users.
35245
35246 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35247 to make it more readable. Rename to ...
35248 (grub_machine_mmap_iterate): ... this.
35249
35250 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35251 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35252 (grub_multiboot): Allocate an extra region after the payload, and fill
35253 it with a Multiboot memory map. Adjust a.out loader to calculate size
35254 with the extra space.
35255 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35256 with the extra space.
35257
35258 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35259
35260 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35261
35262 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35263
35264 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35265 mdate-sh to the list `find' searches for.
35266 * DISTLIST: Regenerated.
35267
35268 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35269
35270 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35271 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35272 genmoddep.awk, gensymlist.sh.in.
35273 (DISTDIRS): Add bus, docs, hook, lib.
35274 * DISTLIST: Regenerated.
35275 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35276
35277 2008-08-16 Robert Millan <rmh@aybabtu.com>
35278
35279 * disk/raid.c (grub_raid_init): Handle/report errors set by
35280 grub_device_iterate().
35281 * disk/lvm.c (grub_lvm_init): Likewise.
35282
35283 2008-08-15 Bean <bean123ch@gmail.com>
35284
35285 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35286 and datehook.mod.
35287 (datetime_mod_SOURCES): New macro.
35288 (datetime_mod_CFLAGS): Likewise.
35289 (datetime_mod_LDFLAGS): Likewise.
35290 (date_mod_SOURCES): Likewise.
35291 (date_mod_CFLAGS): Likewise.
35292 (date_mod_LDFLAGS): Likewise.
35293 (datehook_mod_SOURCES): Likewise.
35294 (datehook_mod_CFLAGS): Likewise.
35295 (datehook_mod_LDFLAGS): Likewise.
35296
35297 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35298 and datehook.mod.
35299 (datetime_mod_SOURCES): New macro.
35300 (datetime_mod_CFLAGS): Likewise.
35301 (datetime_mod_LDFLAGS): Likewise.
35302 (date_mod_SOURCES): Likewise.
35303 (date_mod_CFLAGS): Likewise.
35304 (date_mod_LDFLAGS): Likewise.
35305 (datehook_mod_SOURCES): Likewise.
35306 (datehook_mod_CFLAGS): Likewise.
35307 (datehook_mod_LDFLAGS): Likewise.
35308
35309 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35310 and datehook.mod.
35311 (datetime_mod_SOURCES): New macro.
35312 (datetime_mod_CFLAGS): Likewise.
35313 (datetime_mod_LDFLAGS): Likewise.
35314 (date_mod_SOURCES): Likewise.
35315 (date_mod_CFLAGS): Likewise.
35316 (date_mod_LDFLAGS): Likewise.
35317 (datehook_mod_SOURCES): Likewise.
35318 (datehook_mod_CFLAGS): Likewise.
35319 (datehook_mod_LDFLAGS): Likewise.
35320
35321 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35322 and datehook.mod.
35323 (datetime_mod_SOURCES): New macro.
35324 (datetime_mod_CFLAGS): Likewise.
35325 (datetime_mod_LDFLAGS): Likewise.
35326 (date_mod_SOURCES): Likewise.
35327 (date_mod_CFLAGS): Likewise.
35328 (date_mod_LDFLAGS): Likewise.
35329 (datehook_mod_SOURCES): Likewise.
35330 (datehook_mod_CFLAGS): Likewise.
35331 (datehook_mod_LDFLAGS): Likewise.
35332
35333 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35334 and datehook.mod.
35335 (datetime_mod_SOURCES): New macro.
35336 (datetime_mod_CFLAGS): Likewise.
35337 (datetime_mod_LDFLAGS): Likewise.
35338 (date_mod_SOURCES): Likewise.
35339 (date_mod_CFLAGS): Likewise.
35340 (date_mod_LDFLAGS): Likewise.
35341 (datehook_mod_SOURCES): Likewise.
35342 (datehook_mod_CFLAGS): Likewise.
35343 (datehook_mod_LDFLAGS): Likewise.
35344
35345 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35346
35347 * commands/date.c: New file.
35348
35349 * hook/datehook.c: Likewise.
35350
35351 * include/grub/lib/datetime.h: Likewise.
35352
35353 * include/grub/i386/cmos.h: Likewise.
35354
35355 * lib/datetime.c: Likewise.
35356
35357 * lib/i386/datetime.c: Likewise.
35358
35359 * lib/efi/datetime.c: Likewise.
35360
35361 2008-08-14 Robert Millan <rmh@aybabtu.com>
35362
35363 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35364 (grub_mkelfimage_SOURCES): New variable.
35365 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35366
35367 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35368 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35369 * conf/powerpc-ieee1275.rmk: Likewise.
35370 * conf/i386-ieee1275.rmk: Likewise.
35371
35372 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35373 * kern/i386/coreboot/init.c: Likewise.
35374
35375 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35376 with `<grub/cpu/kernel.h>'.
35377 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35378 to ...
35379 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35380 * kern/i386/coreboot/startup.S: Likewise.
35381
35382 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35383 (GRUB_MOD_GAP): Remove.
35384 * include/grub/powerpc/kernel.h: New file.
35385 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35386 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35387 * include/grub/i386/kernel.h: New file.
35388 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35389 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35390 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35391
35392 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35393 `grub-mkelfimage'.
35394 Use --directory when invoking grub_mkimage.
35395
35396 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35397 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35398 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35399 and GRUB_KERNEL_CPU_PREFIX.
35400
35401 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35402
35403 * include/grub/err.h (grub_err_printf): New function prototype.
35404 * util/misc.c (grub_err_printf): New function.
35405 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35406 grub_printf.
35407 * kern/err.c (grub_print_error): Use grub_err_printf.
35408
35409 2008-08-13 Robert Millan <rmh@aybabtu.com>
35410
35411 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35412
35413 2008-08-13 Robert Millan <rmh@aybabtu.com>
35414
35415 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35416 boot entry.
35417
35418 2008-08-12 Robert Millan <rmh@aybabtu.com>
35419
35420 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35421 of the relocation code from here ...
35422 (grub_multiboot): ... to here.
35423 (forward_relocator, backward_relocator): Move from here ...
35424 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35425 (grub_multiboot_backward_relocator): ... to here.
35426 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35427 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35428 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35429 (grub_multiboot_forward_relocator_end)
35430 (grub_multiboot_backward_relocator)
35431 (grub_multiboot_backward_relocator_end): New variables.
35432
35433 2008-08-12 Bean <bean123ch@gmail.com>
35434
35435 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35436
35437 2008-08-11 Robert Millan <rmh@aybabtu.com>
35438
35439 * kern/i386/linuxbios/startup.S: Move from here ...
35440 * kern/i386/coreboot/startup.S: ... to here.
35441
35442 * kern/i386/linuxbios/init.c: Move from here ...
35443 * kern/i386/coreboot/init.c: ... to here.
35444
35445 * kern/i386/linuxbios/table.c: Move from here ...
35446 * kern/i386/coreboot/mmap.c: ... to here.
35447
35448 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35449
35450 2008-08-11 Robert Millan <rmh@aybabtu.com>
35451
35452 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35453 errors. Leave it to the upper layer to handle them.
35454
35455 2008-08-09 Christian Franke <franke@computer.org>
35456
35457 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35458 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35459 Install `grub.d/10_windows' only on Cygwin.
35460 * configure.ac: Add subst of `target_os'.
35461 Check `target_os' also before setting TARGET_OBJ2ELF.
35462 Add `--enable-grub-pe2elf'.
35463
35464 2008-08-08 Robert Millan <rmh@aybabtu.com>
35465
35466 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35467 (grub_last_time): Change type to grub_uint64_t.
35468 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35469 (grub_disk_close): Likewise.
35470
35471 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35472 (run_menu): Migrate code from to using grub_get_time_ms().
35473
35474 * util/misc.c (grub_get_time_ms): New function.
35475
35476 2008-08-08 Marco Gerards <marco@gnu.org>
35477
35478 * disk/ata.c (grub_ata_regget): Change return type to
35479 `grub_uint8_t'.
35480 (grub_ata_regget2): Likewise.
35481 (grub_ata_wait_status): New function.
35482 (grub_ata_wait_busy): Removed function, updated all users to use
35483 `grub_ata_wait_status'.
35484 (grub_ata_wait_drq): Likewise.
35485 (grub_ata_cmd): New function.
35486 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35487 error handling.
35488 (grub_ata_pio_write): Add error handling.
35489 (grub_atapi_identify): Likewise.
35490 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35491 handling.
35492 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35493 handling. Actually use the detected registers. Reorder the
35494 detection logic such that it is easier to read.
35495 (grub_ata_pciinit): Do not assign the same ID to each controller.
35496 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35497 handling.
35498 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35499
35500 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35501
35502 2008-08-08 Marco Gerards <marco@gnu.org>
35503
35504 * NEWS: Update.
35505
35506 2008-08-07 Bean <bean123ch@gmail.com>
35507
35508 * include/grub/x86_64/pci.h: New file.
35509
35510 2008-08-07 Christian Franke <franke@computer.org>
35511
35512 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35513 (TIMER2_GATE): Likewise.
35514 (grub_pit_wait): Add enable/disable of the timer2 gate
35515 bit of port 0x61. This fixes a possible infinite loop.
35516
35517 2008-08-07 Bean <bean123ch@gmail.com>
35518
35519 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35520 kern/i386/tsc.c and kern/i386/pit.c.
35521
35522 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35523 x86_64 platform.
35524
35525 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35526 <grub/i386/tsc.h>.
35527
35528 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35529
35530 2008-08-07 Bean <bean123ch@gmail.com>
35531
35532 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35533
35534 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35535
35536 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35537 multiple inclusion. Add #include <grub/types.h>.
35538
35539 2008-08-06 Christian Franke <franke@computer.org>
35540
35541 * conf/common.rmk: Build and install `10_windows'.
35542 * util/grub.d/10_windows.in: New script.
35543
35544 2008-08-06 Pavel Roskin <proski@gnu.org>
35545
35546 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35547
35548 2008-08-06 Robert Millan <rmh@aybabtu.com>
35549
35550 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35551 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35552
35553 2008-08-06 Bean <bean123ch@gmail.com>
35554
35555 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35556 (grub_pxefs_fs_int): Remove dummy definition.
35557 (grub_pxefs_open): Use data->block_size to store the current block
35558 size setting.
35559 (grub_pxefs_read): Use block size stored in data->block_size. As the
35560 value of grub_pxe_blksize can be changed after the file is opened.
35561
35562 2008-08-06 Bean <bean123ch@gmail.com>
35563
35564 * fs/i386/pc/pxe.c (curr_file): new variable.
35565 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35566 require the dummy internal file system anymore.
35567 (grub_pxefs_read): Removed.
35568 (grub_pxefs_close): Likewise.
35569 (grub_pxefs_fs_int): Likewise.
35570 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35571 connection when we switch file.
35572 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35573
35574 2008-08-06 Robert Millan <rmh@aybabtu.com>
35575
35576 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35577 `halt.mod'.
35578 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35579 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35580
35581 * kern/i386/halt.c: New file.
35582 * kern/i386/reboot.c: Likewise.
35583 * include/grub/i386/reboot.h: Likewise.
35584 * include/grub/i386/halt.h: Likewise.
35585
35586 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35587 Include `<grub/cpu/halt.h>'.
35588 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35589 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35590
35591 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35592 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35593 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35594 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35595 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35596 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35597 from here ...
35598 * include/grub/i386/at_keyboard.h: ... to here.
35599
35600 2008-08-05 Robert Millan <rmh@aybabtu.com>
35601
35602 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35603 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35604 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35605 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35606 `kern/generic/millisleep.c'.
35607
35608 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35609 instead of grub_get_rtc().
35610 (grub_tsc_init): Initialize `tsc_boot_time'.
35611
35612 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35613 (grub_machine_init): Use grub_tsc_init() rather than
35614 installing an RTC-based handler via grub_install_get_time_ms().
35615
35616 * kern/i386/pit.c: New file.
35617 * include/grub/i386/pit.h: Likewise.
35618
35619 2008-08-05 Bean <bean123ch@gmail.com>
35620
35621 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35622
35623 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35624 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35625 (pxe_mod_SOURCES): New macro.
35626 (pxe_mod_CFLAGS): Likewise.
35627 (pxe_mod_LDFLAGS): Likewise.
35628 (pxecmd_mod_SOURCES): Likewise.
35629 (pxecmd_mod_CFLAGS): Likewise.
35630 (pxecmd_mod_LDFLAGS): Likewise.
35631
35632 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35633 (grub_pxe_call): Likewise.
35634
35635 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35636
35637 * commands/i386/pc/pxecmd.c: New file.
35638
35639 * fs/i386/pc/pxe.c: Likewise.
35640
35641 * include/grub/i386/pc/pxe.h: Likewise.
35642
35643 2008-08-05 Bean <bean123ch@gmail.com>
35644
35645 * util/console.c (grub_console_cur_color): New variable.
35646 (grub_console_standard_color): Likewise.
35647 (grub_console_normal_color): Likewise.
35648 (grub_console_highlight_color): Likewise.
35649 (color_map): Likewise.
35650 (use_color): Likewise.
35651 (NUM_COLORS): New macro.
35652 (grub_ncurses_setcolorstate): Handle color properly.
35653 (grub_ncurses_setcolor): Don't change color here, just remember the
35654 settings, color will be set in grub_ncurses_setcolorstate.
35655 (grub_ncurses_getcolor): New function.
35656 (grub_ncurses_init): Initialize color pairs.
35657 (grub_ncurses_term): New member grub_ncurses_getcolor.
35658
35659 2008-08-05 Colin D Bennett <colin@gibibit.com>
35660
35661 High resolution timer support. Implemented for x86 CPUs using TSC.
35662 Extracted generic grub_millisleep() so it's linked in only as needed.
35663 This requires a Pentium compatible CPU; if the RDTSC instruction is
35664 not supported, then it falls back on the generic grub_get_time_ms()
35665 implementation that uses the machine's RTC.
35666
35667 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35668 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35669 `kern/generic/millisleep.c'.
35670
35671 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35672 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35673
35674 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35675 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35676
35677 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35678
35679 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35680 `kern/generic/millisleep.c'.
35681
35682 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35683
35684 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35685
35686 * kern/generic/rtc_get_time_ms.c: New file.
35687
35688 * kern/generic/millisleep.c: New file.
35689
35690 * kern/misc.c: Don't include
35691 <kern/time.h> anymore.
35692 (grub_millisleep_generic): Removed.
35693
35694 * commands/sleep.c (grub_interruptible_millisleep): Uses
35695 grub_get_time_ms() instead of grub_get_rtc().
35696
35697 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35698 function.
35699 (grub_cpu_is_cpuid_supported): New inline function.
35700 (grub_cpu_is_tsc_supported): New inline function.
35701 (grub_tsc_init): New function prototype.
35702 (grub_tsc_get_time_ms): New function prototype.
35703
35704 * kern/i386/tsc.c (grub_get_time_ms): New file.
35705
35706 * include/grub/time.h: Include <grub/types.h.
35707 (grub_millisleep_generic): Removed.
35708 (grub_get_time_ms): New prototype.
35709 (grub_install_get_time_ms): New prototype.
35710 (grub_rtc_get_time_ms): New prototype.
35711
35712 * kern/time.c (grub_get_time_ms): New function.
35713 (grub_install_get_time_ms): New function.
35714
35715 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35716 <grub/time.h> anymore.
35717 (grub_millisleep): Removed.
35718 (grub_machine_init): Call grub_tsc_init.
35719
35720 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35721 get_time_ms() implementation.
35722
35723 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35724 (ieee1275_get_time_ms): New function.
35725 (grub_machine_init): Install get_time_ms() implementation.
35726
35727 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35728 (grub_machine_init): Call grub_tsc_init().
35729 (grub_millisleep): Removed.
35730
35731 * kern/ieee1275/init.c (grub_millisleep): Removed.
35732 (grub_machine_init): Install ieee1275_get_time_ms()
35733 implementation.
35734 (ieee1275_get_time_ms): New function.
35735 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35736 real work.
35737
35738 2008-08-05 Marco Gerards <marco@gnu.org>
35739
35740 * disk/ata.c: Include <grub/pci.h>.
35741 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35742 (grub_ata_initialize): Rewritten.
35743 (grub_ata_device_initialize): New function.
35744
35745 2008-08-04 Pavel Roskin <proski@gnu.org>
35746
35747 * kern/main.c: Include grub/mm.h.
35748
35749 2008-08-04 Robert Millan <rmh@aybabtu.com>
35750
35751 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35752 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35753 corruption problem).
35754
35755 2008-08-04 Robert Millan <rmh@aybabtu.com>
35756
35757 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35758 warnings introduced in my last commit.
35759
35760 2008-08-03 Robert Millan <rmh@aybabtu.com>
35761
35762 Make PCI available on all i386 architectures.
35763
35764 * include/grub/i386/pc/pci.h: Move from here ...
35765 * include/grub/i386/pci.h: ... to here.
35766
35767 * include/grub/i386/pc/pci.h: Remove.
35768 * include/grub/i386/efi/pci.h: Remove.
35769 * include/grub/x86_64/efi/pci.h: Remove.
35770
35771 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35772 `<grub/cpu/pci.h>'.
35773
35774 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35775 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35776 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35777
35778 * conf/i386-ieee1275.rmk: Likewise.
35779
35780 2008-08-03 Robert Millan <rmh@aybabtu.com>
35781
35782 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35783 (grub_console_setcursor): Make it possible to set cursor off.
35784
35785 2008-08-03 Robert Millan <rmh@aybabtu.com>
35786
35787 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35788 of modules instead of assuming which platform provides what.
35789 * util/update-grub.in: Likewise.
35790
35791 2008-08-03 Robert Millan <rmh@aybabtu.com>
35792
35793 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35794 instead of `grub_install_dos_part' to determine whether a drive needs
35795 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35796 because it can be overridden when loading GRUB via Multiboot).
35797
35798 2008-08-02 Robert Millan <rmh@aybabtu.com>
35799
35800 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35801
35802 2008-08-02 Robert Millan <rmh@aybabtu.com>
35803
35804 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35805 of informational grub_dprintf() calls.
35806
35807 2008-08-02 Robert Millan <rmh@aybabtu.com>
35808
35809 * disk/memdisk.c (memdisk_size): Don't initialize.
35810 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35811
35812 * include/grub/i386/pc/kernel.h
35813 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35814 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35815 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35816 (grub_arch_memdisk_size): Remove.
35817
35818 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35819 field (was only used to transfer a constant). Add `type' field to
35820 support multiple module types.
35821 (grub_module_iterate): New function.
35822
35823 * kern/device.c (grub_device_open): Do not hide error messages
35824 when grub_disk_open() fails. Use grub_print_error() instead.
35825
35826 * kern/i386/pc/init.c (grub_arch_modules_addr)
35827 (grub_arch_memdisk_size): Remove functions.
35828 (grub_arch_modules_addr): Return the module address in high memory
35829 (now that it isn't copied anymore).
35830
35831 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35832 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35833 decompression routine (grub_total_module_size already includes that
35834 now). Don't copy modules back to low memory.
35835
35836 * kern/main.c: Include `<grub/mm.h>'.
35837 (grub_load_modules): Split out (and use) ...
35838 (grub_module_iterate): ... this function, which iterates through
35839 module objects and runs a hook.
35840 Comment out grub_mm_init_region() call, as it would cause non-ELF
35841 modules to be overwritten.
35842
35843 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35844 the memdisk image in its own region, make it part of the module list.
35845 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35846 (main): Parse --memdisk|-m option, and pass user-provided path as
35847 parameter to generate_image().
35848 (add_segments): Pass `memdisk_path' down to load_modules().
35849 (load_modules): Embed memdisk image in module section when requested.
35850 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35851 `header.type' instead of `header.offset'.
35852
35853 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35854 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35855 (memdisk_mod_LDFLAGS): New variables.
35856 * conf/i386-coreboot.rmk: Likewise.
35857 * conf/i386-ieee1275.rmk: Likewise.
35858
35859 2008-08-02 Robert Millan <rmh@aybabtu.com>
35860
35861 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35862 (backward_relocator): New variables. Used to allocate and relocate
35863 the payload, respectively.
35864 (grub_multiboot_load_elf32): Load into heap instead of requested
35865 address, install the appropriate relocator code in each bound of
35866 the payload, and set the entry point such that
35867 grub_multiboot_real_boot() will jump to one of them.
35868
35869 * kern/i386/loader.S (grub_multiboot_payload_size)
35870 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35871 (grub_multiboot_payload_entry_offset): New variables.
35872 (grub_multiboot_real_boot): Set cpu context to what the relocator
35873 expects, and jump to the relocator instead of the payload.
35874
35875 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35876 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35877 (grub_multiboot_payload_entry_offset): Export.
35878
35879 2008-08-01 Bean <bean123ch@gmail.com>
35880
35881 * normal/menu_entry.c (editor_getline): Don't return the original
35882 string as result, as it will be released by lexer once it has done
35883 using it.
35884
35885 2008-08-01 Robert Millan <rmh@aybabtu.com>
35886
35887 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35888 within menuentries, not before them.
35889 util/grub.d/10_hurd.in: Likewise.
35890
35891 2008-08-01 Bean <bean123ch@gmail.com>
35892
35893 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35894 (bufio_mod_SOURCES): New macro.
35895 (bufio_mod_CFLAGS): Likewise.
35896 (bufio_mod_LDFLAGS): Likewise.
35897
35898 * include/grub/bufio.h: New file.
35899
35900 * io/bufio.c: Likewise.
35901
35902 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35903 (grub_video_reader_png): Use grub_buffile_open to open file.
35904
35905 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35906 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35907
35908 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35909 (grub_video_reader_tga): Use grub_buffile_open to open file.
35910
35911 * font/manager.c: Include <grub/bufio.h>.
35912 (add_font): Use grub_buffile_open to open file.
35913
35914 2008-07-31 Robert Millan <rmh@aybabtu.com>
35915
35916 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35917 ELF segments, use a macro for arbitrarily accessing any of them instead
35918 of preparing a pointer that allows access to one at a time.
35919 (grub_multiboot_load_elf64): Likewise.
35920
35921 2008-07-31 Bean <bean123ch@gmail.com>
35922
35923 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35924 GRUB_KERNEL_MACHINE_DATA_END.
35925
35926 2008-07-30 Robert Millan <rmh@aybabtu.com>
35927
35928 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35929 Increase from 0x50 to 0x60.
35930 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35931 use UUIDs to identify the root drive for them. If that's not
35932 possible, abort.
35933 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35934 check, for cross-disk installs.
35935
35936 2008-07-30 Robert Millan <rmh@aybabtu.com>
35937
35938 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
35939 is non-empty, use it to set the `prefix' environment variable instead
35940 of the usual approach.
35941 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
35942 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
35943 environment variable instead of dummy make_install_device().
35944
35945 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
35946 (start): Insert a data section, with `grub_prefix' variable.
35947 * kern/i386/linuxbios/startup.S: Likewise.
35948
35949 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
35950 New variable reference.
35951 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
35952 New macro. Defines offset of `grub_prefix' within startup.S (relative
35953 to `start').
35954 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
35955 section within startup.S (relative to `start').
35956 * include/grub/i386/coreboot/kernel.h: Likewise.
35957
35958 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
35959 Overwrite grub_prefix with its contents, at the beginning of the
35960 first segment.
35961 (main): Understand -p|--prefix.
35962
35963 2008-07-30 Robert Millan <rmh@aybabtu.com>
35964
35965 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
35966
35967 2008-07-30 Robert Millan <rmh@aybabtu.com>
35968
35969 * term/i386/pc/vga_text.c (grub_console_cls): Use
35970 grub_console_gotoxy() to go back to beginning of the screen.
35971 Found by Patrick Georgi <patrick.georgi@coresystems.de>
35972
35973 2008-07-29 Christian Franke <franke@computer.org>
35974
35975 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
35976 Add conversion of emulated mount points on Cygwin.
35977
35978 2008-07-29 Christian Franke <franke@computer.org>
35979
35980 * util/update-grub.in: Add a check for admin
35981 group on Cygwin.
35982 Remove old `grub.cfg.new' before creation.
35983 Add `-f' to `mv' to handle the different filesystem
35984 semantics of Windows.
35985
35986 2008-07-29 Bean <bean123ch@gmail.com>
35987
35988 * normal/main.c (get_line): Fix buffer overflow bug.
35989
35990 2008-07-28 Robert Millan <rmh@aybabtu.com>
35991
35992 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
35993 (struct grub_apple_header): New struct. Describes the layout of
35994 the partmap header.
35995 (apple_partition_map_iterate): Check the header magic as well as the
35996 partition magic (which was already being checked).
35997
35998 2008-07-28 Pavel Roskin <proski@gnu.org>
35999
36000 * genmk.rb: Add a warning to the beginning of the output that
36001 it's a generated file and should not be edited.
36002
36003 2008-07-28 Robert Millan <rmh@aybabtu.com>
36004
36005 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36006 with the same number are found, just use issue a warning with
36007 grub_dprintf(), as this error has been reported to be non-fatal.
36008
36009 2008-07-27 Robert Millan <rmh@aybabtu.com>
36010
36011 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36012 information.
36013
36014 2008-07-27 Bean <bean123ch@gmail.com>
36015
36016 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36017 (grub_fat_find_dir): Ignore case when comparing filename.
36018
36019 2008-07-27 Bean <bean123ch@gmail.com>
36020
36021 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36022 smallino, as it's more descriptive, and i8count can be confused with
36023 the other field count.
36024 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36025 inode type.
36026
36027 2008-07-27 Bean <bean123ch@gmail.com>
36028
36029 * commands/crc.c: New file.
36030
36031 * lib/crc.c: Likewise.
36032
36033 * include/grub/lib/crc.h: Likewise.
36034
36035 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36036
36037 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36038 (hexdump): Move this function to ...
36039
36040 * lib/hexdump.c: ... here.
36041
36042 * include/grub/hexdump.h: Renamed to ...
36043
36044 * include/grub/lib/hexdump.h: ... this.
36045
36046 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36047
36048 * util/grub-editenv.c: Likewise.
36049
36050 * include/envblk.h: Renamed to ...
36051
36052 * include/lib/envblk.h: ... this.
36053
36054 * util/envblk.c: Renamed to ...
36055
36056 * lib/envblk.c: ... this.
36057
36058 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36059 lib/hexdump.c.
36060 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36061 (pkglib_MODULES): Add crc.mod.
36062 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36063 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36064 (crc_mod_SOURCES): New macro.
36065 (crc_mod_CFLAGS): Likewise.
36066 (crc_mod_LDFLAGS): Likewise.
36067
36068 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36069
36070 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36071
36072 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36073
36074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36075
36076 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36077
36078 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36079
36080 * commands/help.c: Include <grub/term.h>.
36081 (TERM_WIDTH): Removed. Updated all users.
36082
36083 2008-07-27 Pavel Roskin <proski@gnu.org>
36084
36085 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36086 spurious warnings about a comment within a comment.
36087
36088 2008-07-25 Robert Millan <rmh@aybabtu.com>
36089
36090 * util/getroot.c (find_root_device): Skip devices that match
36091 /dev/dm-[0-9]. This lets the real device be found for any type of
36092 abstraction (LVM, EVMS, RAID..).
36093 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36094 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36095 device is found first, find_root_device() will now skip it.
36096
36097 2008-07-24 Pavel Roskin <proski@gnu.org>
36098
36099 * include/grub/types.h: Use __builtin_bswap32() and
36100 __builtin_bswap64() with gcc 4.3 and newer.
36101
36102 2008-07-24 Christian Franke <franke@computer.org>
36103
36104 * util/i386/pc/grub-install.in: If `--debug' is specified,
36105 pass `--verbose' to grub-setup.
36106 Abort script if make_system_path_relative_to_its_root() fails.
36107
36108 2008-07-24 Bean <bean123ch@gmail.com>
36109
36110 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36111 variable `target_platform' should be `platform'.
36112
36113 2008-07-24 Bean <bean123ch@gmail.com>
36114
36115 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36116 (grub_png_init_fixed_block): New function.
36117 (grub_png_decode_image_data): Handle fixed huffman code compression.
36118
36119 2008-07-24 Bean <bean123ch@gmail.com>
36120
36121 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36122 (grub_pe2elf_SOURCES): New macro.
36123 (CLEANFILES): Add grub-pe2elf.
36124
36125 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36126 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36127 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36128 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36129 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36130 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36131 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36132 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36133 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36134 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36135 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36136 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36137 (GRUB_PE32_DT_FUNCTION): Likewise.
36138 (GRUB_PE32_REL_I386_DIR32): Likewise.
36139 (GRUB_PE32_REL_I386_REL32): Likewise.
36140 (grub_pe32_symbol): New structure.
36141 (grub_pe32_reloc): Likewise.
36142
36143 * util/grub-pe2elf.c: New file.
36144
36145 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36146 start symbol in non pc platform.
36147
36148 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36149
36150 The following patches are from Christian Franke.
36151
36152 * include/grub/dl.h: Remove .previous, gas supports this only
36153 for ELF format.
36154
36155 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36156 Remove .type, gas supports this only for ELF format.
36157
36158 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36159 nullbytes in symbol table. This fixes an infinite loop if table is
36160 zero filled.
36161
36162 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36163 TARGET_IMG_LDFLAGS and EXEEXT.
36164
36165 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36166 TARGET_IMG_LDFLAGS_AC.
36167 (grub_CHECK_STACK_ARG_PROBE): New function.
36168
36169 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36170
36171 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36172
36173 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36174 to set TARGET_IMG_LD* accordingly.
36175 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36176 Add call to grub_CHECK_STACK_ARG_PROBE.
36177 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36178
36179 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36180
36181 * genmk.rb: Add EXEEXT to CLEANFILES.
36182
36183 2008-07-23 Robert Millan <rmh@aybabtu.com>
36184
36185 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36186 define the codes for arrows and lines used for the menu).
36187 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36188 as well.
36189
36190 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36191 fonts, because the latter are too slow.
36192
36193 2008-07-21 Bean <bean123ch@gmail.com>
36194
36195 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36196 a20. Run keyboard test last, as it will cause macbook to halt.
36197
36198 2008-07-18 Pavel Roskin <proski@gnu.org>
36199
36200 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36201 load foreign architecture modules correctly anyway. Keep
36202 support for loading host architecture modules, whether we
36203 compile them or not.
36204
36205 2008-07-17 Pavel Roskin <proski@gnu.org>
36206
36207 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36208 change target_cpu. The compiler default can mismatch target_cpu
36209 in any case.
36210
36211 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36212 * kern/efi/efi.c: Likewise.
36213
36214 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36215 target compiler is functional.
36216 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36217 are set up.
36218
36219 * configure.ac: Default to efi platform for x86_64-apple. Allow
36220 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36221 adjustments from the rest, only do them if target is not
36222 explicitly given. Merge other adjustments with the final sanity
36223 check. Remove an extraneous check for supported CPU. Be
36224 specific which CPU and which platform is not supported.
36225
36226 * configure.ac: Default to pc platform for x86_64.
36227
36228 2008-07-17 Robert Millan <rmh@aybabtu.com>
36229
36230 Partial LinuxBIOS -> Coreboot rename.
36231
36232 * conf/i386-linuxbios.rmk: Renamed to ...
36233 * conf/i386-coreboot.rmk: ... this.
36234 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36235 * configure.ac: Accept "coreboot" as input platform (but maintain
36236 compatibility with "linuxbios").
36237 * include/grub/i386/linuxbios: Renamed to ...
36238 * include/grub/i386/coreboot: ... this.
36239
36240 2008-07-17 Bean <bean123ch@gmail.com>
36241
36242 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36243 (appleldr_mod_SOURCE): New variable.
36244 (appleldr_mod_CFLAGS): Likewise.
36245 (appleldr_mod_LDFLAGS): Likewise.
36246 (pci_mod_SOURCES): Likewise.
36247 (pci_mod_CFLAGS): Likewise.
36248 (pci_mod_LDFLAGS): Likewise.
36249 (lspci_mod_SOURCES): Likewise.
36250 (lspci_mod_CFLAGS): Likewise.
36251 (lspci_mod_LDFLAGS): Likewise.
36252
36253 * conf/x86_64-efi.rmk: New file.
36254
36255 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36256 macro.
36257 (grub_efidisk_write): Likewise.
36258
36259 * include/efi/api.h (efi_call_0): New macro.
36260 (efi_call_1): Likewise.
36261 (efi_call_2): Likewise.
36262 (efi_call_3): Likewise.
36263 (efi_call_4): Likewise.
36264 (efi_call_5): Likewise.
36265 (efi_call_6): Likewise.
36266
36267 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36268 grub_rescue_cmd_chainloader.
36269
36270 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36271 (grub_pe32_optional_header): Change some fields based on i386 or
36272 x86_64 platform.
36273 (GRUB_PE32_PE32_MAGIC): Likewise.
36274
36275 * include/grub/efi/uga_draw.h: New file.
36276
36277 * include/grub/elf.h (STN_ABS): New constant.
36278 (R_X86_64_NONE): Relocation constant for x86_64.
36279 (R_X86_64_64): Likewise.
36280 (R_X86_64_PC32): Likewise.
36281 (R_X86_64_GOT32): Likewise.
36282 (R_X86_64_PLT32): Likewise.
36283 (R_X86_64_COPY): Likewise.
36284 (R_X86_64_GLOB_DAT): Likewise.
36285 (R_X86_64_JUMP_SLOT): Likewise.
36286 (R_X86_64_RELATIVE): Likewise.
36287 (R_X86_64_GOTPCREL): Likewise.
36288 (R_X86_64_32): Likewise.
36289 (R_X86_64_32S): Likewise.
36290 (R_X86_64_16): Likewise.
36291 (R_X86_64_PC16): Likewise.
36292 (R_X86_64_8): Likewise.
36293 (R_X86_64_PC8): Likewise.
36294
36295 * include/grub/i386/efi/pci.h: New file.
36296
36297 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36298 Change it value based on platform.
36299 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36300 (GRUB_E820_RAM): Likewise.
36301 (GRUB_E820_RESERVED): Likewise.
36302 (GRUB_E820_ACPI): Likewise.
36303 (GRUB_E820_NVS): Likewise.
36304 (GRUB_E820_EXEC_CODE): Likewise.
36305 (GRUB_E820_MAX_ENTRY): Likewise.
36306 (grub_e820_mmap): New structure.
36307 (linux_kernel_header): Change the efi field according to different
36308 kernel version, also field from linux_kernel_header.
36309
36310 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36311
36312 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36313 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36314 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36315 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36316 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36317 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36318 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36319 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36320 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36321 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36322
36323 * include/grub/x86_64/efi/kernel.h: New file.
36324
36325 * include/grub/x86_64/efi/loader.h: Likewise.
36326
36327 * include/grub/x86_64/efi/machine.h: Likewise.
36328
36329 * include/grub/x86_64/efi/pci.h: Likewise.
36330
36331 * include/grub/x86_64/efi/time.h: Likewise.
36332
36333 * include/grub/x86_64/linux.h: Likewise.
36334
36335 * include/grub/x86_64/setjmp.h: Likewise.
36336
36337 * include/grub/x86_64/time.h: Likewise.
36338
36339 * include/grub/x86_64/types.h: Likewise.
36340
36341 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36342 GRUB_TARGET_SIZEOF_VOID_P.
36343
36344 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36345 (grub_efi_locate_handle): Likewise.
36346 (grub_efi_open_protocol): Likewise.
36347 (grub_efi_set_text_mode): Likewise.
36348 (grub_efi_stall): Likewise.
36349 (grub_exit): Likewise.
36350 (grub_reboot): Likewise.
36351 (grub_halt): Likewise.
36352 (grub_efi_exit_boot_services): Likewise.
36353 (grub_get_rtc): Likewise.
36354
36355 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36356 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36357 (grub_efi_allocate_pages): Wrap efi calls.
36358 (grub_efi_free_pages): Wrap efi calls.
36359 (grub_efi_get_memory_map): Wrap efi calls.
36360
36361 * kern/x86_64/dl.c: New file.
36362
36363 * kern/x86_64/efi/callwrap.S: Likewise.
36364
36365 * kern/x86_64/efi/startup.S: Likewise.
36366
36367 * loader/efi/appleloader.c: Likewise.
36368
36369 * loader/efi/chainloader.c (cmdline): New variable.
36370 (grub_chainloader_unload): Wrap efi calls.
36371 (grub_chainloader_boot): Likewise.
36372 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36373 command line.
36374
36375 * loader/efi/chainloader_normal.c (chainloader_command):
36376 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36377 command line.
36378
36379 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36380 method.
36381 (grub_e820_add_region): New function.
36382 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36383 booting.
36384 (grub_find_video_card): New function.
36385 (grub_linux_setup_video): New function.
36386 (grub_rescue_cmd_linux): Probe for video information.
36387
36388 * normal/x86_64/setjmp.S: New file.
36389
36390 * term/efi/console.c (map_char): New function.
36391 (grub_console_putchar): Map unicode char.
36392 (grub_console_checkkey): Wrap efi calls.
36393 (grub_console_getkey): Likewise.
36394 (grub_console_getwh): Likewise.
36395 (grub_console_gotoxy): Likewise.
36396 (grub_console_cls): Likewise.
36397 (grub_console_setcolorstate): Likewise.
36398 (grub_console_setcursor): Likewise.
36399
36400 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36401
36402 2008-07-16 Pavel Roskin <proski@gnu.org>
36403
36404 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36405 format strings.
36406
36407 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36408 pointer, not an integer. This fixes a warning and prevents
36409 precision loss on 64-bit systems.
36410 (relocate_addresses): Remove unneeded cast.
36411
36412 2008-07-15 Pavel Roskin <proski@gnu.org>
36413
36414 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36415
36416 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36417
36418 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36419 Fix comparison between signed and unsigned.
36420
36421 * include/grub/i386/ieee1275/console.h: Declare
36422 grub_console_init() and grub_console_fini().
36423
36424 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36425 It's empty and unused.
36426
36427 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36428 beginning to avoid warnings with some compilers.
36429
36430 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36431 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36432
36433 2008-07-14 Pavel Roskin <proski@gnu.org>
36434
36435 * kern/env.c (grub_register_variable_hook): Don't copy empty
36436 string, it leaks memory. Pass "" to grub_env_set(), it should
36437 handle constant strings.
36438
36439 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36440 * commands/cmp.c (grub_cmd_cmp): Likewise.
36441 * kern/dl.c (grub_dl_flush_cache): Likewise.
36442 (grub_dl_load_core): Likewise.
36443 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36444 (grub_elf64_load_phdrs): Likewise.
36445
36446 2008-07-13 Pavel Roskin <proski@gnu.org>
36447
36448 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36449 between signed and unsigned.
36450 (LzmaEnc_Finish): Fix warning about an unused parameter.
36451
36452 2008-07-13 Bean <bean123ch@gmail.com>
36453
36454 * Makefile.in (enable_lzo): New rule.
36455
36456 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36457
36458 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36459
36460 * boot/i386/pc/lnxboot.S: #include <config.h>.
36461
36462 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36463 its value according to the compression algorithm used, lzo or lzma.
36464
36465 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36466 compression algorithm according to configure macro.
36467
36468 * kern/i386/pc/startup.S (codestart): Likewise.
36469
36470 * kern/i386/pc/lzma_decode.S: New file.
36471
36472 * include/grub/lib/LzFind.h: Likewise.
36473
36474 * include/grub/lib/LzHash.h: Likewise.
36475
36476 * include/grub/lib/LzmaDec.h: Likewise.
36477
36478 * include/grub/lib/LzmaEnc.h: Likewise.
36479
36480 * include/grub/lib/LzmaTypes.h: Likewise.
36481
36482 * lib/LzFind.c: Likewise.
36483
36484 * lib/LzmaDec.c: Likewise.
36485
36486 * lib/LzmaEnc.c: Likewise.
36487
36488 2008-07-13 Bean <bean123ch@gmail.com>
36489
36490 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36491 (grub_ext4_extent_header): New structure.
36492 (grub_ext4_extent): Likewise.
36493 (grub_ext4_extent_idx): Likewise.
36494 (grub_ext4_find_leaf): New function.
36495 (grub_ext2_read_block): Handle extents.
36496
36497 2008-07-12 Robert Millan <rmh@aybabtu.com>
36498
36499 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36500
36501 2008-07-11 Robert Millan <rmh@aybabtu.com>
36502
36503 * util/grub.d/40_custom.in: New file. Example on how to add custom
36504 entries to /etc/grub.d.
36505 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36506 40_custom (implicitly, by merging all the grub.d rules).
36507
36508 2008-07-11 Pavel Roskin <proski@gnu.org>
36509
36510 * commands/read.c (grub_getline): Fix invalid memory access.
36511 Don't add newline to the variable value.
36512
36513 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36514 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36515 (serial_hw_get_port): Check validity of the port number.
36516 (grub_cmd_serial): Check return value of serial_hw_get_port().
36517
36518 2008-07-07 Pavel Roskin <proski@gnu.org>
36519
36520 * boot/i386/pc/diskboot.S (notification_string): Replace
36521 "Loading kernel" with just "loading". This is shorter, less
36522 confusing and saves a few bytes for possible future changes.
36523
36524 2008-07-05 Pavel Roskin <proski@gnu.org>
36525
36526 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36527 size for ATAPI devices, they are undefined. Output sector
36528 number in decimal form.
36529
36530 * disk/ata.c: Use named constants for status bits.
36531
36532 2008-07-04 Pavel Roskin <proski@gnu.org>
36533
36534 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36535 grub_addr_t before casting it to the void pointer to fix a
36536 warning. Non-addressable regions are discarded earlier.
36537 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36538 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36539 (check_signature): Don't shadow table_header.
36540 (grub_linuxbios_table_iterate): Cast numeric constants to
36541 grub_linuxbios_table_header_t.
36542 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36543 grub_stop().
36544
36545 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36546 prevent warnings.
36547
36548 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36549 pointer, which can cause warnings. Support 64-bit addresses.
36550
36551 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36552 of sizeof(long). This fixes PowerPC image generation on x86_64.
36553
36554 2008-07-04 Robert Millan <rmh@aybabtu.com>
36555
36556 This fixes a performance issue when pc & gpt partmap iterators
36557 didn't abort iteration even after our hook found what it was
36558 looking for (often causing expensive probes of non-existent drives).
36559
36560 Some callers relied on previous buggy behaviour, since they would
36561 raise an error when their own hooks caused early abortion of its
36562 iteration.
36563
36564 * kern/device.c (grub_device_open): Improve error message.
36565 * disk/lvm.c (grub_lvm_open): Likewise.
36566 * disk/raid.c (grub_raid_open): Likewise.
36567
36568 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36569 when hook requests it, independently of grub_errno.
36570 (pc_partition_map_probe): Do not fail when find_func() caused
36571 early abortion of pc_partition_map_iterate().
36572
36573 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36574 when hook requests it, independently of grub_errno.
36575 (gpt_partition_map_probe): Do not fail when find_func() caused
36576 early abortion of gpt_partition_map_iterate().
36577
36578 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36579 when hook requests it, independently of grub_errno. Do not fail when
36580 part_map_iterate_hook() caused early abortion of p->iterate().
36581
36582 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36583 when grub_partition_iterate() returned with non-zero.
36584
36585 2008-07-03 Pavel Roskin <proski@gnu.org>
36586
36587 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36588 like we do in grub_ata_pio_read().
36589 (grub_ata_readwrite): Always write individual sectors. Fix the
36590 sector count for the remainder.
36591 (grub_ata_write): Enable writing to ATA devices. Correctly
36592 report error for ATAPI devices.
36593
36594 2008-07-02 Pavel Roskin <proski@gnu.org>
36595
36596 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36597 warning.
36598
36599 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36600 for every read sector, we already increment it for the whole
36601 batch. This fixes reading more than 256 sectors at once.
36602
36603 * util/grub-editenv.c (cmd_info): Cast argument to long
36604 explicitly. ptrdiff_t reduces to int on i386.
36605
36606 * util/grub-editenv.c (main): Be specific which parameter is
36607 missing.
36608
36609 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36610 (memdisk): Make memdisk_orig_addr a pointer.
36611
36612 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36613 for file offsets, use grub_off_t instead. Fix printf format
36614 warnings.
36615
36616 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36617 there. Real unexpected warnings should not drown in the noise
36618 about known problems.
36619
36620 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36621 grub_disk_addr_t for memory addresses.
36622
36623 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36624 explicitly to fix a warning.
36625
36626 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36627
36628 * Makefile.in (MODULE_LDFLAGS): New variable.
36629 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36630 the linker accepts --build-id=none.
36631 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36632 MODULE_LDFLAGS.
36633 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36634
36635 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36636 those in Linux XFS code. Provide a way to access 64-bit parent
36637 inode.
36638 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36639 the end of struct grub_xfs_dir_header.
36640
36641 2008-07-02 Bean <bean123ch@gmail.com>
36642
36643 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36644 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36645 and GRUB_IEEE1275_FLAG_NO_ANSI.
36646
36647 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36648 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36649 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36650
36651 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36652 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36653
36654 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36655 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36656
36657 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36658 esc sequence on non ANSI terminal.
36659 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36660
36661 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36662 beginning of file.
36663
36664 2008-07-02 Bean <bean123ch@gmail.com>
36665
36666 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36667 (grub_editenv_SOURCES): New variable.
36668 (pkglib_MODULES): Add loadenv.mod.
36669 (loadenv_mod_SOURCES): New variable.
36670 (loadenv_mod_CFLAGS): Likewise.
36671 (loadenv_mod_LDFLAGS): Likewise.
36672
36673 * include/grub/envblk.h: New file.
36674
36675 * util/envblk.c: New file.
36676
36677 * util/grub-editenv.c: New file.
36678
36679 * commands/loadenv.c: New file.
36680
36681 2008-07-01 Pavel Roskin <proski@gnu.org>
36682
36683 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36684 not unsigned char. This fixes warnings and is consistent with
36685 other tags.
36686
36687 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36688
36689 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36690
36691 * term/tparm.c (analyze): Always set *popcount.
36692
36693 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36694 cast to fix a warning.
36695
36696 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36697 cast to suppress a warning.
36698
36699 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36700 grub_fshelp_read_file() expects.
36701
36702 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36703 write uuid as a 32-bit value in CPU byte order, so declare and
36704 use it as such.
36705
36706 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36707 long if the format specifier expects it.
36708 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36709 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36710 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36711 long to fix a warning.
36712 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36713 grub_dprintf() arguments to fix warnings.
36714
36715 2008-06-30 Pavel Roskin <proski@gnu.org>
36716
36717 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36718 install_bsd_part immediately before core.img is embedded or
36719 modified on disk. This fixes core.img verification if core.img
36720 cannot be embedded.
36721
36722 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36723 core_path to calculate the blocklist.
36724 Patch from Javier Martín <lordhabbit@gmail.com>
36725
36726 2008-06-29 Robert Millan <rmh@aybabtu.com>
36727
36728 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36729 block to disk block.
36730 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36731 Patch from Niels Böhm <bitbucket@arcor.de>
36732
36733 2008-06-29 Robert Millan <rmh@aybabtu.com>
36734
36735 * util/update-grub_lib.in (font_path): Search for fonts in
36736 /boot/grub first, which is more likely to be readable (we aren't
36737 deciding where fonts live, just looking for them).
36738
36739 2008-06-26 Pavel Roskin <proski@gnu.org>
36740
36741 * util/biosdisk.c (read_device_map): Don't leave dead map
36742 entries for devices failing stat() check.
36743
36744 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36745 core_path_dev for the core.img path on the target device.
36746
36747 2008-06-26 Robert Millan <rmh@aybabtu.com>
36748
36749 * disk/fs_uuid.c: New file.
36750 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36751 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36752 (fs_uuid_mod_LDFLAGS): New variables.
36753 * include/grub/disk.h (grub_disk_dev_id): Add
36754 `GRUB_DISK_DEVICE_UUID_ID'.
36755 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36756 implement iterate().
36757
36758 2008-06-26 Robert Millan <rmh@aybabtu.com>
36759
36760 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36761 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36762 Linux image includes no initrd.
36763
36764 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36765
36766 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36767 call to resolve the core image location that effectively appended the
36768 name twice.
36769
36770 2008-06-21 Robert Millan <rmh@aybabtu.com>
36771
36772 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36773 call from here ...
36774
36775 * util/grub.d/10_hurd.in: ... to here ...
36776 * util/grub.d/10_linux.in: ... and here.
36777
36778 2008-06-19 Robert Millan <rmh@aybabtu.com>
36779
36780 * kern/main.c (grub_main): Export `prefix' variable immediately
36781 after it has been set by grub_machine_set_prefix().
36782
36783 2008-06-19 Robert Millan <rmh@aybabtu.com>
36784
36785 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36786 search result when not saving to variable, not the other way around.
36787 When saving to variable, abort iteration as soon as a match is found.
36788
36789 2008-06-19 Robert Millan <rmh@aybabtu.com>
36790
36791 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36792 check for partition that provides /boot/grub. Its logic is flawed,
36793 as it prevents prepare_grub_to_access_device() from being called
36794 multiple times.
36795
36796 2008-06-19 Robert Millan <rmh@aybabtu.com>
36797
36798 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36799 "insmod" command directly when abstraction modules are needed,
36800 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36801 since it had already been processed).
36802
36803 2008-06-19 Pavel Roskin <proski@gnu.org>
36804
36805 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36806 changed. This is needed in case GRUB_LIBDIR changes.
36807 * conf/i386-ieee1275.rmk: Likewise.
36808 * conf/i386-linuxbios.rmk: Likewise.
36809 * conf/i386-pc.rmk: Likewise.
36810 * conf/powerpc-ieee1275.rmk: Likewise.
36811
36812 2008-06-18 Pavel Roskin <proski@gnu.org>
36813
36814 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36815 kernel_elf_symlist.c to symlist.c for consistency with other
36816 architectures. Update all users.
36817 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36818
36819 2008-06-18 Robert Millan <rmh@aybabtu.com>
36820
36821 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36822 it in prefix.
36823
36824 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36825 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36826 a RAID device, run setup() for all members independently on whether
36827 LVM abstraction is being used.
36828 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36829 If grub-mkimage has set `*install_dos_part == -2', don't override this
36830 value.
36831 Perform *install_dos_part adjustments independently on whether
36832 we're embedding or not.
36833 Clarify error message when image is too big for embedding.
36834 Remove duplicate *install_dos_part stanza.
36835
36836 2008-06-17 Robert Millan <rmh@aybabtu.com>
36837
36838 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36839 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36840 variables.
36841 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36842 values in grub_ofconsole_normal_color and
36843 grub_ofconsole_highlight_color (they're not directly related to
36844 background and foreground).
36845 (grub_ofconsole_setcolorstate): Extract background and foreground
36846 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36847
36848 2008-06-17 Robert Millan <rmh@aybabtu.com>
36849
36850 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36851 /boot/grub for the check in last commit, not /boot (they could be
36852 different partitions).
36853
36854 2008-06-16 Robert Millan <rmh@aybabtu.com>
36855
36856 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36857 asked to setup access for the same partition that provides /boot,
36858 don't bother using UUIDs since our root already has the value we
36859 want.
36860
36861 2008-06-16 Robert Millan <rmh@aybabtu.com>
36862
36863 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36864 I2O devices.
36865 Patch from Sven Mueller <sven@debian.org>.
36866
36867 2008-06-16 Robert Millan <rmh@aybabtu.com>
36868
36869 * util/update-grub.in: Check for $EUID instead of $UID.
36870 Reported by Vincent Zweije.
36871
36872 2008-06-16 Bean <bean123ch@gmail.com>
36873
36874 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36875 (grub_ext2_read_block): Likewise.
36876 (grub_ext2_read_inode): Likewise.
36877 (grub_ext2_mount): Likewise.
36878 (grub_ext2_close): Likewise.
36879 (grub_ext3_get_journal): Removed.
36880
36881 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36882 (grub_reiserfs_read_symlink): Likewise.
36883 (grub_reiserfs_mount): Likewise.
36884 (grub_reiserfs_open): Likewise.
36885 (grub_reiserfs_read): Likewise.
36886 (grub_reiserfs_close): Likewise.
36887 (grub_reiserfs_get_journal): Removed.
36888
36889 * fs/fshelp.c (grub_fshelp_read): Removed.
36890 (grub_fshelp_map_block): Likewise.
36891
36892 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36893 (grub_fshelp_journal): Likewise.
36894 (grub_fshelp_read): Likewise.
36895 (grub_fshelp_map_block): Likewise.
36896
36897 2008-06-16 Pavel Roskin <proski@gnu.org>
36898
36899 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36900 floating point anymore.
36901 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36902
36903 2008-06-15 Pavel Roskin <proski@gnu.org>
36904
36905 * commands/ls.c (grub_ls_list_files): Use integer calculations
36906 for human readable format, avoid floating point use.
36907 * kern/misc.c (grub_ftoa): Remove.
36908 (grub_vsprintf): Remove floating point support.
36909
36910 2008-06-15 Robert Millan <rmh@aybabtu.com>
36911
36912 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36913 devices.
36914 Reported by Max Vozeler.
36915
36916 2008-06-15 Robert Millan <rmh@aybabtu.com>
36917
36918 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36919 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36920 skipped later.
36921 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36922 the beginning of the prefix.
36923
36924 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36925 It is assumed that if we have a memdisk, grub-mkimage has set
36926 grub_prefix to include the "(memdisk)" drive in it.
36927
36928 2008-06-15 Robert Millan <rmh@aybabtu.com>
36929
36930 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36931 Initialize keyboard controller after registering the terminal, so that
36932 grub_printf() can be called from grub_keyboard_controller_init().
36933
36934 2008-06-15 Robert Millan <rmh@aybabtu.com>
36935
36936 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
36937 extent-btree which is written as big endian on disk.
36938 Reported by Alain Greppin <al@chilibi.org>.
36939
36940 2008-06-14 Robert Millan <rmh@aybabtu.com>
36941
36942 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
36943 * util/i386/pc/grub-install.in (modules): Likewise.
36944
36945 2008-06-13 Pavel Roskin <proski@gnu.org>
36946
36947 * commands/ls.c (grub_ls_list_files): Fix format warnings.
36948
36949 2008-06-13 Bean <bean123ch@gmail.com>
36950
36951 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
36952
36953 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
36954
36955 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
36956 to indicate sparse block.
36957
36958 2008-06-12 Pavel Roskin <proski@gnu.org>
36959
36960 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
36961 number, grub_fshelp_read() does it for us.
36962
36963 * fs/fshelp.c (grub_fshelp_read): New function. Implement
36964 linear disk read with journal translation.
36965 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
36966 * include/grub/fshelp.h: Declare grub_fshelp_read().
36967
36968 2008-06-09 Pavel Roskin <proski@gnu.org>
36969
36970 * fs/minix.c (grub_minix_mount): Handle error reading
36971 superblock.
36972
36973 2008-06-08 Robert Millan <rmh@aybabtu.com>
36974
36975 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
36976 don't append the RAID prefix afterwards.
36977 Reported by Clint Adams.
36978
36979 2008-06-08 Robert Millan <rmh@aybabtu.com>
36980
36981 Based on description from Pavel:
36982 * kern/disk.c (grub_disk_check_range): Rename to ...
36983 (grub_disk_adjust_range): ... this. Add a comment explaining the
36984 tasks performed by this function.
36985
36986 2008-06-08 Robert Millan <rmh@aybabtu.com>
36987
36988 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
36989 `num_serial' (for consistency with other variables).
36990 (struct grub_ntfs_data): Add `uuid' member.
36991 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
36992 (grub_ntfs_uuid): New function.
36993 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
36994
36995 2008-06-07 Pavel Roskin <proski@gnu.org>
36996
36997 * util/biosdisk.c (open_device): Revert last change to the
36998 function, it broke installation. The sector needs to be
36999 different dependent on which device is opened.
37000
37001 2008-06-06 Robert Millan <rmh@aybabtu.com>
37002
37003 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37004 rest of GRUB, and breakage doesn't happen if its value were modified.
37005
37006 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37007 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37008 a constant (same value).
37009 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37010 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37011
37012 2008-06-06 Robert Millan <rmh@aybabtu.com>
37013
37014 * util/biosdisk.c (open_device): Do not modify sector offset when
37015 accessing a partition. kern/disk.c already handles this for us.
37016
37017 2008-06-06 Robert Millan <rmh@aybabtu.com>
37018
37019 * util/grub-emu.c (grub_machine_init): Move code in this function from
37020 here ...
37021 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37022 segfault in case grub_printf() is called).
37023
37024 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37025 grub_probe. Update all users not to explicitly add it again.
37026 (grub_device): New variable; contains corresponding device for grubdir.
37027 (fs_module, partmap_module, devabstraction_module): Pass
37028 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37029 every time.
37030
37031 2008-06-05 Robert Millan <rmh@aybabtu.com>
37032
37033 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37034 is found, print it (same layout as with labels).
37035
37036 2008-06-04 Robert Millan <rmh@aybabtu.com>
37037
37038 * util/biosdisk.c (get_drive): Rename to ...
37039 (find_grub_drive): ... this. Update all users.
37040
37041 (get_os_disk): Rename to ...
37042 (convert_system_partition_to_system_disk): ... this. Update all users.
37043
37044 (find_drive): Rename to ...
37045 (find_system_device): ... this. Update all users.
37046
37047 2008-06-04 Robert Millan <rmh@aybabtu.com>
37048
37049 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37050 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37051 (make_device_map): Likewise.
37052
37053 2008-06-01 Robert Millan <rmh@aybabtu.com>
37054
37055 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37056 before dereferencing it.
37057
37058 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37059 union with fat12/fat16-specific ones. Add some new fields, including
37060 `num_serial' for both versions.
37061 (struct grub_fat_data): Add `uuid' member.
37062 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37063 names. Initialize `data->uuid' using `num_serial'.
37064 (grub_fat_uuid): New function.
37065 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37066
37067 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37068 (grub_reiserfs_uuid): New function.
37069 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37070 member.
37071
37072 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37073 (grub_xfs_uuid): New function.
37074 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37075
37076 2008-06-01 Robert Millan <rmh@aybabtu.com>
37077
37078 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37079 code that is backward compatible with pre-uuid search command.
37080
37081 2008-05-31 Robert Millan <rmh@aybabtu.com>
37082
37083 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37084 floppies after everything else, to ensure floppy drive isn't accessed
37085 unnecessarily (patch from Bean).
37086
37087 2008-05-31 Robert Millan <rmh@aybabtu.com>
37088
37089 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37090 not print device names when we were asked to set a variable.
37091
37092 2008-05-31 Robert Millan <rmh@aybabtu.com>
37093
37094 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37095 using "cursor-on" and "cursor-off" commands (understood at least by
37096 the Open Firmware flavour on OLPC).
37097
37098 2008-05-31 Michael Gorven <michael@gorven.za.net>
37099
37100 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37101 on and off sequences.
37102
37103 2008-05-31 Robert Millan <rmh@aybabtu.com>
37104
37105 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37106 * util/update-grub.in: Likewise.
37107
37108 2008-05-30 Pavel Roskin <proski@gnu.org>
37109
37110 * util/biosdisk.c (linux_find_partition): Simplify logic and
37111 make the code more universal. Keep special processing for
37112 devfs, but use a simple rule for all other devices. If the
37113 device ends with a number, append 'p' and the partition number.
37114 Otherwise, append only the partition number.
37115
37116 2008-05-30 Robert Millan <rmh@aybabtu.com>
37117
37118 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37119 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37120 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37121 the `root' parameter to Linux.
37122
37123 2008-05-30 Robert Millan <rmh@aybabtu.com>
37124
37125 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37126 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37127 --fs_uuid with --fs-uuid.
37128 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37129 all filesystems support them).
37130
37131 2008-05-30 Robert Millan <rmh@aybabtu.com>
37132
37133 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37134 grub_printf() flags, since we're printing in units of 2 bytes.
37135
37136 2008-05-30 Robert Millan <rmh@aybabtu.com>
37137
37138 * util/grub.d/00_header.in: Remove obsolete comment referencing
37139 convert_system_path_to_grub_path().
37140 * util/update-grub.in: Likewise.
37141 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37142 (convert_system_path_to_grub_path): Add a warning message explaining
37143 that this function is deprecated. Rely on is_path_readable_by_grub()
37144 for the readability checks.
37145 (font_path): Use is_path_readable_by_grub() for the readability
37146 check rather than convert_system_path_to_grub_path().
37147
37148 2008-05-30 Robert Millan <rmh@aybabtu.com>
37149
37150 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37151 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37152 converting it first.
37153 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37154 grub.cfg for access to font file, and afterwards call it again to set
37155 the root device.
37156
37157 2008-05-30 Robert Millan <rmh@aybabtu.com>
37158
37159 * commands/search.c (options): Add --fs_uuid option.
37160 (search_fs_uuid): New function.
37161 (grub_cmd_search): Fix --set argument passing.
37162 Use search_fs_uuid() when requested via --fs_uuid.
37163 (grub_search_init): Update help message.
37164 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37165 and redeclare it as an array of 16-bit words.
37166 (grub_ext2_uuid): New function.
37167 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37168 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37169 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37170 (GRUB_DEVICE_BOOT_UUID): New variables.
37171 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37172 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37173 whenever possible.
37174 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37175 just assume `root' variable has the right value.
37176 * util/grub.d/10_linux.in: Likewise.
37177 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37178 via PRINT_FS_UUID.
37179 (main): Recognise `-t fs_uuid' argument.
37180
37181 2008-05-30 Robert Millan <rmh@aybabtu.com>
37182
37183 * util/biosdisk.c (map): Redefine structure to hold information
37184 about GRUB drive name.
37185 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37186 drive names.
37187 (call_hook): Remove.
37188 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37189 member. Assume drive has partitions.
37190 (grub_util_biosdisk_open): Access device names via `.device' struct
37191 member.
37192 (open_device): Likewise.
37193 (find_drive): Likewise.
37194 (read_device_map): Adjust map[] usage to match the new struct
37195 definition. Don't check for duplicates (still possible, but not cheap
37196 anymore).
37197 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37198 (make_device_name): Remove assumption of BIOS-like drive names.
37199
37200 2008-05-30 Pavel Roskin <proski@gnu.org>
37201
37202 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37203 compiling execute.c doesn't need grub_script.tab.h anymore.
37204 (normal/command.c_DEPENDENCIES): Likewise.
37205 (normal/function.c_DEPENDENCIES): Likewise.
37206 * conf/i386-ieee1275.rmk: Likewise.
37207 * conf/i386-linuxbios.rmk: Likewise.
37208 * conf/i386-pc.rmk: Likewise.
37209 * conf/powerpc-ieee1275.rmk: Likewise.
37210 * conf/sparc64-ieee1275.rmk: Likewise.
37211
37212 2008-05-29 Pavel Roskin <proski@gnu.org>
37213
37214 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37215 when scanning metadata for volume group name.
37216
37217 * include/grub/script.h: Don't include grub_script.tab.h. It's
37218 a generated file, which may only be included from the files with
37219 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37220 use union YYSTYPE, as the later allows forward declaration.
37221 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37222
37223 2008-05-29 Robert Millan <rmh@aybabtu.com>
37224
37225 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37226 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37227 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37228 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37229 scan codes.
37230
37231 2008-05-29 Robert Millan <rmh@aybabtu.com>
37232
37233 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37234 control key combinations.
37235
37236 2008-05-29 Robert Millan <rmh@aybabtu.com>
37237
37238 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37239 * util/ieee1275/grub-install.in: ... to here.
37240 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37241 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37242 (grub_install_SOURCES): Likewise.
37243
37244 2008-05-29 Robert Millan <rmh@aybabtu.com>
37245
37246 * fs/affs.c: Update copyright year.
37247 * fs/ext2.c: Likewise.
37248 * fs/fshelp.c: Likewise.
37249 * fs/hfsplus.c: Likewise.
37250 * fs/ntfs.c: Likewise.
37251 * fs/xfs.c: Likewise.
37252 * include/grub/fshelp.h: Likewise.
37253 * util/grub-mkdevicemap.c: Likewise.
37254
37255 2008-05-28 Robert Millan <rmh@aybabtu.com>
37256
37257 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37258 might need to be fatfs to support some firmware implementations
37259 (e.g. OFW or EFI).
37260
37261 2008-05-28 Robert Millan <rmh@aybabtu.com>
37262
37263 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37264 devices.
37265 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37266 (make_device_map): Likewise.
37267
37268 2008-05-20 Bean <bean123ch@gmail.com>
37269
37270 * fs/fshelp.c (grub_fshelp_map_block): New function.
37271 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37272 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37273
37274 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37275 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37276 (grub_fshelp_journal): New structure.
37277 (grub_fshelp_map_block): New function prototype.
37278 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37279 (grub_fshelp_map_block): Likewise.
37280
37281 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37282 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37283 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37284 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37285 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37286 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37287 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37288 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37289 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37290 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37291 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37292 (grub_ext2_sblock): New members for journal support.
37293 (grub_ext3_journal_header): New structure.
37294 (grub_ext3_journal_revoke_header): Likewise.
37295 (grub_ext3_journal_block_tag): Likewise.
37296 (grub_ext3_journal_sblock): Likewise.
37297 (grub_fshelp_node): New members logfile and journal.
37298 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37299 grub_fshelp_map_block to get real block number.
37300 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37301 number.
37302 (grub_ext2_read_inode): Likewise.
37303 (grub_ext3_get_journal): New function.
37304 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37305 (grub_ext2_close): Release memory used by journal.
37306
37307 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37308 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37309 (grub_reiserfs_transaction_header): Renamed to
37310 grub_reiserfs_description_block, replace field data with real_blocks.
37311 (grub_reiserfs_commit_block): New structure.
37312 (grub_reiserfs_data): New member journal.
37313 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37314 number.
37315 (grub_reiserfs_read_symlink): Likewise.
37316 (grub_reiserfs_iterate_dir): Likewise.
37317 (grub_reiserfs_open): Likewise.
37318 (grub_reiserfs_read): Likewise.
37319 (grub_reiserfs_get_journal): New function.
37320 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37321 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37322 using grub_reiserfs_get_journal.
37323 (grub_reiserfs_close): Release memory used by journal.
37324
37325 * fs/affs.c (grub_affs_read_block): Change block type to
37326 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37327
37328 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37329
37330 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37331
37332 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37333
37334 * fs/udf.c (grub_udf_read_block): Change block type to
37335 grub_disk_addr_t. Use type cast to avoid warning.
37336
37337 * fs/xfs.c (grub_xfs_read_block): Likewise.
37338
37339 2008-05-16 Christian Franke <franke@computer.org>
37340
37341 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37342 to ensure that break with ESC will always work.
37343 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37344 Remove ESC from keyboard queue.
37345
37346 2008-05-16 Christian Franke <franke@computer.org>
37347
37348 * util/biosdisk.c: [__CYGWIN__] Add includes.
37349 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37350 (get_os_disk): Move variable declarations to OS specific
37351 parts to avoid warning.
37352 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37353 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37354 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37355 Cygwin.
37356 * util/getroot.c: [__CYGWIN__] Add includes.
37357 (strip_extra_slashes): Fix "/" case.
37358 [__CYGWIN__] (get_win32_path): New function.
37359 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37360 [__CYGWIN__] (find_root_device): Disable.
37361 [__CYGWIN__] (get_bootsec_serial): New function.
37362 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37363 [__linux__] (grub_guess_root_device): Add early returns to simplify
37364 structure.
37365 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37366 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37367 check for Linux only.
37368
37369 2008-05-15 Bean <bean123ch@gmail.com>
37370
37371 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37372 keyboard hang problem in apple's intel mac.
37373
37374 2008-05-09 Robert Millan <rmh@aybabtu.com>
37375
37376 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37377 devices.
37378 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37379 (make_device_map): Likewise.
37380 Reported by Aurelien Jarno <aurel32@debian.org>
37381
37382 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37383
37384 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37385 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37386 (make_device_map): Output entries for xvd type disks.
37387
37388 2008-05-07 Robert Millan <rmh@aybabtu.com>
37389
37390 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37391 devices.
37392 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37393 (make_device_map): Likewise.
37394 Reported by Roland Dreier <rdreier@cisco.com>
37395
37396 2008-05-07 Robert Millan <rmh@aybabtu.com>
37397
37398 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37399 grub_strstr() call. Correct a few mistakes in failure path handling.
37400
37401 2008-05-06 Robert Millan <rmh@aybabtu.com>
37402
37403 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37404 Do not print a trailing slash (therefore, the root directory is an
37405 empty string).
37406 (convert_system_path_to_grub_path): Do not remove trailing slash
37407 from make_system_path_relative_to_its_root() output.
37408
37409 * util/i386/pc/grub-install.in: Add trailing slash to output from
37410 make_system_path_relative_to_its_root().
37411
37412 2008-05-06 Robert Millan <rmh@aybabtu.com>
37413
37414 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37415 ensures that output lines aren't intermangled with those sent to
37416 stderr (via grub_util_info()).
37417 * util/grub-probe.c (grub_refresh): Likewise.
37418 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37419
37420 2008-05-05 Christian Franke <franke@computer.org>
37421
37422 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37423 Add Cygwin device names.
37424 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37425 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37426 (check_device): Return error instead of success on empty name.
37427 (make_device_map): Move label inside linux specific code to
37428 prevent compiler warning.
37429
37430 2008-04-30 Robert Millan <rmh@aybabtu.com>
37431
37432 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37433 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37434 first boot option.
37435 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37436
37437 2008-04-29 Robert Millan <rmh@aybabtu.com>
37438
37439 * docs/grub.cfg: New file (example GRUB configuration).
37440
37441 2008-04-26 Robert Millan <rmh@aybabtu.com>
37442
37443 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37444 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37445 and `disk/ieee1275/nand.c'.
37446
37447 2008-04-25 Bean <bean123ch@gmail.com>
37448
37449 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37450 i386-linuxbios.
37451
37452 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37453 change the buffer size to 4096 for cdrom device.
37454
37455 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37456 and nand.mod.
37457 (_linux_mod_SOURCES): New variable.
37458 (_linux_mod_CFLAGS): Likewise.
37459 (_linux_mod_LDFLAGS): Likewise.
37460 (linux_mod_SOURCES): Likewise.
37461 (linux_mod_CFLAGS): Likewise.
37462 (linux_mod_LDFLAGS): Likewise.
37463 (nand_mod_SOURCES): Likewise.
37464 (nand_mod_CFLAGS): Likewise.
37465 (nand_mod_LDFLAGS): Likewise.
37466
37467 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37468 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37469 type property. (nand device in olpc don't have this property)
37470
37471 * include/grub/disk.h (grub_disk_dev_id): New macro
37472 GRUB_DISK_DEVICE_NAND_ID.
37473
37474 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37475 function prototype.
37476 (grub_rescue_cmd_initrd): Likewise.
37477
37478 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37479 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37480 ofw_cif_handler and ofw_idt, adjust padding number.
37481
37482 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37483 GRUB_MACHINE_IEEE1275 is defined.
37484
37485 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37486 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37487
37488 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37489 on nested function heap_init.
37490 (grub_upper_mem): New variable for i386-ieee1275.
37491 (grub_get_extended_memory): New function for i386-ieee1275.
37492 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37493
37494 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37495 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37496 property.
37497
37498 * loader/i386/ieee1275/linux.c: New file.
37499
37500 * loader/i386/ieee1275/linux_normal.c: New file.
37501
37502 * disk/ieee1275/nand.c: New file.
37503
37504 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37505
37506 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37507 value.
37508 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37509
37510 2008-04-18 Robert Millan <rmh@aybabtu.com>
37511
37512 Restructures early code path on ieee1275 to unify grub_main() as
37513 the first C function that is executed in every platform.
37514
37515 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37516 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37517 cmain().
37518 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37519 * kern/ieee1275/cmain.c (cmain): Rename to ...
37520 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37521 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37522 at the beginning.
37523
37524 2008-04-18 Robert Millan <rmh@aybabtu.com>
37525
37526 * util/update-grub.in: Fix syntax error when setting
37527 `GRUB_PRELOAD_MODULES'.
37528 Reported by Stephane Chazelas <stephane@artesyncp.com>
37529
37530 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37531
37532 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37533 section into account, newer toolchains generate unique build ids
37534 * configure.ac: remove the test for --build-id=none acceptance,
37535 we want build ids to be preserved
37536 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37537 far from other sections don't cause the raw binary images grow
37538 size
37539
37540 2008-04-15 Robert Millan <rmh@aybabtu.com>
37541
37542 * disk/lvm.c: Update copyright year.
37543 * kern/misc.c: Likewise.
37544
37545 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37546
37547 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37548 there is no memory left for physical volume name.
37549
37550 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37551
37552 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37553 volume name mapping to support bigger than 9 character names properly.
37554
37555 2008-04-13 Robert Millan <rmh@aybabtu.com>
37556
37557 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37558 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37559
37560 2008-04-13 Christian Franke <franke@computer.org>
37561
37562 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37563 to create a floppy emulation boot CD when non emulation mode
37564 does not work.
37565 Enable Joliet CD filesystem extension.
37566
37567 2008-04-13 Robert Millan <rmh@aybabtu.com>
37568
37569 * kern/misc.c (grub_strncat): Fix off-by-one error.
37570 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37571
37572 * kern/env.c (grub_env_context_close): Clear current context, not
37573 previous one.
37574 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37575
37576 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37577
37578 2008-04-13 Robert Millan <rmh@aybabtu.com>
37579
37580 Improve robustness when handling LVM.
37581
37582 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37583 (and leave `*p' unmodified).
37584 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37585 through it.
37586 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37587 iterating through it.
37588 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37589 through it.
37590 (grub_lvm_scan_device): Check the return value (and fail gracefully
37591 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37592 Don't assume `vg->pvs != NULL' when iterating through it.
37593
37594 2008-04-13 Robert Millan <rmh@aybabtu.com>
37595
37596 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37597 * genmk.rb (partmap): New variable.
37598 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37599 (#{partmap}): New target rule.
37600 * genpartmaplist.sh: New file.
37601 * Makefile.in (pkglib_DATA): Add partmap.lst.
37602 (partmap.lst): New target rule.
37603 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37604 modules (including all partition maps), instead of preloading them.
37605
37606 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37607
37608 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37609 `linux-boot-prober' (if installed) to detect other operating
37610 systems which are installed on the computer and add them to
37611 the boot menu.
37612 * conf/common.rmk: Build and install 30_os-prober.
37613
37614 2008-04-12 Robert Millan <rmh@aybabtu.com>
37615
37616 * kern/powerpc/ieee1275/init.c: Move from here ...
37617 * kern/ieee1275/init.c: ... to here. Update all users.
37618
37619 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37620 * kern/ieee1275/cmain.c: ... to here. Update all users.
37621
37622 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37623 * kern/ieee1275/openfw.c: ... to here. Update all users.
37624
37625 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37626 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37627
37628 2008-04-10 Pavel Roskin <proski@gnu.org>
37629
37630 * configure.ac: Always use "_cv_" in cache variables for
37631 compatibility with Autoconf 2.62.
37632
37633 2008-04-07 Robert Millan <rmh@aybabtu.com>
37634
37635 Revert grub/machine/init.h addition by Pavel (since it breaks on
37636 i386-ieee1275 and others):
37637 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37638 * util/powerpc/ieee1275/misc.c: Likewise.
37639
37640 2008-04-07 Robert Millan <rmh@aybabtu.com>
37641
37642 * util/grub-probe.c (probe): Improve error message.
37643
37644 2008-04-07 Robert Millan <rmh@aybabtu.com>
37645
37646 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37647 (this prevents the presence of a bogus entry from ruining the whole
37648 thing).
37649
37650 2008-04-06 Pavel Roskin <proski@gnu.org>
37651
37652 * util/biosdisk.c: Include grub/util/biosdisk.h.
37653 * util/grub-fstest.c (execute_command): Make static.
37654 * util/grub-mkdevicemap.c (check_device): Likewise.
37655 * util/i386/pc/misc.c: Include grub/machine/init.h.
37656 * util/powerpc/ieee1275/misc.c: Likewise.
37657 * util/lvm.c: Include grub/util/lvm.h.
37658 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37659 grub/cache.h.
37660 * util/raid.c: Include grub/util/raid.h.
37661 (grub_util_getdiskname): Make static.
37662
37663 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37664 grub_hostfs_fini(), as they are called from grub_init_all() and
37665 grub_fini_all() respectively. This fixes an infinite loop in
37666 grub-fstest due to double registration of hostfs.
37667 Reported by Christian Franke <Christian.Franke@t-online.de>
37668
37669 2008-04-05 Pavel Roskin <proski@gnu.org>
37670
37671 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37672 all 8 functions. Otherwise, probe function 0 only.
37673
37674 2008-04-04 Pavel Roskin <proski@gnu.org>
37675
37676 * commands/lspci.c (grub_lspci_iter): Print the bus number
37677 correctly.
37678
37679 * commands/lspci.c (grub_pci_classes): Fix typos.
37680 (grub_lspci_iter): Don't print func twice. Print vendor ID
37681 before device ID, as it's normally done.
37682
37683 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37684 Fix signedness warnings.
37685 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37686 Likewise.
37687 * util/ieee1275/get_disk_name.c: Include config.h so that
37688 _GNU_SOURCE is defined and getline() is declared. Mark an
37689 unused argument as such. Fix a signedness warning.
37690
37691 2008-04-02 Pavel Roskin <proski@gnu.org>
37692
37693 * genkernsyms.sh.in: Use more robust assignments for CC and
37694 srcdir. Quote srcdir.
37695 * gensymlist.sh.in: Likewise. Assert at the compile time that
37696 the symbol table is not empty.
37697
37698 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37699 * fs/cpio.c (grub_cpio_read): Likewise.
37700
37701 2008-04-01 Pavel Roskin <proski@gnu.org>
37702
37703 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37704 * disk/host.c (grub_host_open): Likewise.
37705 * disk/loopback.c (grub_loopback_open): Likewise.
37706 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37707 disk->id as in disk/host.c, not a multi-character constant.
37708
37709 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37710 later is obsolete, potentially dangerous and sets a bad example.
37711 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37712 * util/misc.c (grub_util_get_image_size): Likewise.
37713
37714 * disk/loopback.c (options): Improve help for "--partitions".
37715
37716 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37717 options to align them with the short options, e.g. "echo -e".
37718
37719 2008-03-31 Bean <bean123ch@gmail.com>
37720
37721 * video/reader/png.c (grub_png_data): New member is_16bit and
37722 image_data.
37723 (grub_png_decode_image_header): Detect 16 bit png image.
37724 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37725 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37726 (grub_video_reader_png): Release memory occupied by image_data.
37727
37728 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37729 4096 bytes.
37730 (grub_nfs_mount): Skip the test for sector per cluster.
37731
37732 * include/grub/ntfs.h (MAX_SPC): Removed.
37733
37734 2008-03-31 Bean <bean123ch@gmail.com>
37735
37736 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37737 (grub_probe_SOURCES): Add fs/afs.c.
37738 (grub_fstest_SOURCES): Likewise.
37739 (afs_mod_SOURCES): New variable.
37740 (afs_mod_CFLAGS): Likewise.
37741 (afs_mod_LDFLAGS): Likewise.
37742
37743 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37744 (grub_emu_SOURCES): Likewise.
37745
37746 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37747
37748 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37749
37750 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37751
37752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37753
37754 * fs/afs.c: New file.
37755
37756 2008-03-30 Pavel Roskin <proski@gnu.org>
37757
37758 * disk/host.c: Include grub/misc.h to fix a warning.
37759 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37760 warnings about implicit declarations.
37761
37762 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37763 variable.
37764 * include/grub/i386/loader.h: Change declaration of
37765 grub_linux_boot() to match what grub_loader_set() expects.
37766 * util/getroot.c (grub_guess_root_device): Return const char* to
37767 fix a warning.
37768 * util/grub-probe.c (probe): Fix a warning about uninitialized
37769 abstraction_name variable.
37770 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37771 second argument as unused to fix a warning.
37772
37773 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37774 missing grub_error() call.
37775
37776 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37777 2.60 and newer uses it to define datadir.
37778
37779 * commands/sleep.c: Fix warning about implicit declaration.
37780 * disk/memdisk.c: Likewise.
37781 * loader/aout.c: Likewise.
37782 * loader/i386/bsd_normal.c: Likewise.
37783 * util/grub-probe.c: Likewise.
37784
37785 * commands/i386/cpuid.c (has_longmode): Make static.
37786 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37787 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37788
37789 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37790 GDT. This is more robust, as %ds can change.
37791 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37792 calling real_to_prot().
37793 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37794
37795 2008-03-28 Pavel Roskin <proski@gnu.org>
37796
37797 * kern/i386/pc/startup.S: Assert that uncompressed functions
37798 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37799 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37800 code, as they push parts of the code (error handlers) beyond
37801 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37802 code as correctness and size.
37803
37804 2008-03-28 Pavel Roskin <proski@gnu.org>
37805
37806 * kern/i386/pc/startup.S
37807 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37808 data block address to the real mode, keep offset minimal. This
37809 works around a bug in AWARD BIOS on old Athlon systems, which
37810 makes CD detection hang.
37811
37812 2008-03-26 Pavel Roskin <proski@gnu.org>
37813
37814 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37815 const.
37816 * include/grub/normal.h: Add grub_parse_color_name_pair()
37817 declaration.
37818
37819 2008-03-24 Bean <bean123ch@gmail.com>
37820
37821 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37822 (cd_count): Removed.
37823 (cd_drive): New variable.
37824 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37825 (grub_biosdisk_call_hook): Likewise.
37826 (grub_biosdisk_iterate): Change cdrom detection method.
37827 (grub_biosdisk_open): Replace cd_start with cd_drive.
37828 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37829 detect cdrom device.
37830
37831 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37832 Removed.
37833 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37834 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37835 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37836 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37837 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37838 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37839 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37840 (grub_biosdisk_cdrp): New structure.
37841 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37842
37843 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37844
37845 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37846 device.
37847
37848 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37849 New function.
37850
37851 2008-03-20 Robert Millan <rmh@aybabtu.com>
37852
37853 Remove 2 TiB limit in ata.mod.
37854 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37855 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37856 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37857 grub_uint64_t instead of grub_uint32_t.
37858
37859 2008-03-05 Bean <bean123ch@gmail.com>
37860
37861 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37862 (grub_multiboot): Set boot device.
37863
37864 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37865
37866 2008-03-02 Bean <bean123ch@gmail.com>
37867
37868 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37869 symlink_buffer.
37870
37871 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37872
37873 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37874 texinfo.tex.
37875
37876 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37877 modified.
37878
37879 * docs/fdl.texi: New file.
37880
37881 * docs/mdate-sh: New file. Copied from gnulib.
37882 * docs/texinfo.tex: Likewise.
37883
37884 * config.guess: Updated from gnulib.
37885 * install-sh: Likewise.
37886
37887 2008-02-28 Robert Millan <rmh@aybabtu.com>
37888
37889 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37890 (aout_mod_SOURCES): New variable.
37891 (aout_mod_CFLAGS): Likewise.
37892 (aout_mod_LDFLAGS): Likewise.
37893
37894 * conf/i386-ieee1275.rmk: Likewise.
37895
37896 2008-02-28 Robert Millan <rmh@aybabtu.com>
37897
37898 * util/update-grub.in: Reorganise terminal validity check. Accept
37899 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37900 Based on suggestion by Franklin PIAT.
37901
37902 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37903
37904 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37905 function.
37906 * util/getroot.c (grub_util_check_block_device): New function that
37907 returns the given argument if it is a block device and returns NULL else.
37908 * util/grub-probe.c (argument_is_device): New variable.
37909 (probe): Promote device_name from a variable to an argument. Receive
37910 device_name from grub_util_check_block_device() if path is NULL and from
37911 grub_guess_root_device() else. Do not free() device_name anymore.
37912 (options): Introduce new parameter '-d, --device'.
37913 (main): Add description of the new parameter to the help screen.
37914 Rename path variable to argument. Set argument_is_device if the '-d'
37915 option is given. Pass argument to probe() depending on
37916 argument_is_device.
37917
37918 2008-02-24 Bean <bean123ch@gmail.com>
37919
37920 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37921 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37922 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37923 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37924 (GRUB_ISO9660_VOLDESC_END): Likewise.
37925 (grub_iso9660_primary_voldesc): New member escape.
37926 (grub_iso9660_data): New member joliet.
37927 (grub_iso9660_convert_string): New function.
37928 (grub_iso9660_mount): Detect joliet extension.
37929 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37930 (grub_iso9660_iso9660_label): Likewise.
37931
37932 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37933 (grub_setup_SOURCES): Add fs/udf.c.
37934 (grub_fstest_SOURCES): Likewise.
37935 (udf_mod_SOURCES): New variable.
37936 (udf_mod_CFLAGS): Likewise.
37937 (udf_mod_LDFLAGS): Likewise.
37938
37939 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
37940 (grub_emu_SOURCES): Likewise.
37941
37942 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37943
37944 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37945
37946 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37947
37948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37949
37950 * fs/udf.c: New file.
37951
37952 2008-02-24 Robert Millan <rmh@aybabtu.com>
37953
37954 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
37955 (normal/lexer.c_DEPENDENCIES): New variables.
37956 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37957 (normal/lexer.c_DEPENDENCIES): Likewise.
37958 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
37959 (normal/lexer.c_DEPENDENCIES): Likewise.
37960 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
37961 (normal/lexer.c_DEPENDENCIES): Likewise.
37962 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37963 (normal/lexer.c_DEPENDENCIES): Likewise.
37964 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37965 (normal/lexer.c_DEPENDENCIES): Likewise.
37966
37967 2008-02-23 Robert Millan <rmh@aybabtu.com>
37968
37969 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
37970 since they were intended to be in hex. This didn't break previously
37971 because of a bug in gpt_partition_map_iterate() (see below).
37972
37973 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
37974 when checking the validity of GPT header.
37975 Remove `partno', since it always provides the same information as `i'.
37976
37977 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
37978
37979 * include/grub/efi/time.h: Fix a wrong comment.
37980
37981 2008-02-19 Pavel Roskin <proski@gnu.org>
37982
37983 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
37984 message.
37985
37986 2008-02-19 Bean <bean123ch@gmail.com>
37987
37988 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
37989 (aout_mod_SOURCES): New variable.
37990 (aout_mod_CFLAGS): Likewise.
37991 (aout_mod_LDFLAGS): Likewise.
37992 (_bsd_mod_SOURCES): New variable.
37993 (_bsd_mod_CFLAGS): Likewise.
37994 (_bsd_mod_LDFLAGS): Likewise.
37995 (bsd_mod_SOURCES): New variable.
37996 (bsd_mod_CFLAGS): Likewise.
37997 (bsd_mod_LDFLAGS): Likewise.
37998
37999 * include/grub/aout.h: New file.
38000
38001 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38002
38003 * include/grub/i386/bsd.h: New file.
38004
38005 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38006 to make it public.
38007
38008 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38009 function is called, so that it's possible to change it inside the hook.
38010 (grub_elf64_load): Likewise.
38011 (grub_elf_file): Don't close the file if elf header is not found.
38012 (grub_elf_close): Close the file if grub_elf_file fails (The new
38013 grub_elf_file won't close it).
38014 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38015 (grub_elf64_size): Likewise.
38016
38017 * kern/i386/loader.S (grub_unix_real_boot): New function.
38018
38019 * loader/aout.c: New file.
38020
38021 * loader/i386/bsd.c: New file.
38022
38023 * loader/i386/bsd_normal.c: New file.
38024
38025 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38026
38027 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38028 can test other formats.
38029
38030 2008-02-19 Robert Millan <rmh@aybabtu.com>
38031
38032 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38033 (grub_gpt_partition_type_empty): Redefine with macro from
38034 `<grub/gpt_partition.h>'.
38035 (gpt_partition_map_iterate): Adjust partition type comparison.
38036
38037 Export `entry' as partmap-specific `part.data' struct.
38038 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38039
38040 * include/grub/gpt_partition.h (grub_gpt_header)
38041 (grub_gpt_partentry): ... to here (new file).
38042
38043 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38044
38045 (grub_gpt_partition_type_bios_boot): New const variable, defined
38046 with macro from `<grub/gpt_partition.h>'.
38047
38048 (setup): Replace `first_start' with `embed_region', which keeps
38049 track of the embed region (and is partmap-agnostic).
38050
38051 Replace find_first_partition_start() with find_usable_region(),
38052 which finds a usable region for embedding using partmap-specific
38053 knowledge (supports PC/MSDOS and GPT).
38054
38055 Fix all assumptions that the embed region start at sector 1, using
38056 `embed_region.start' from now on. Similarly, use `embed_region.end'
38057 rather than `first_start' to calculate available size.
38058
38059 In grub_util_info() message, replace "into after the MBR" with an
38060 indication of the specific sector our embed region starts at.
38061
38062 2008-02-19 Robert Millan <rmh@aybabtu.com>
38063
38064 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38065 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38066 `commands/reboot.c'.
38067 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38068 (halt_mod_SOURCES): Likewise.
38069 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38070 (halt_mod_SOURCES): Likewise.
38071
38072 2008-02-17 Christian Franke <franke@computer.org>
38073
38074 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38075
38076 2008-02-17 Robert Millan <rmh@aybabtu.com>
38077
38078 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38079 set `first_start' to 0 for non-PC/MSDOS partition maps.
38080
38081 2008-02-16 Robert Millan <rmh@aybabtu.com>
38082
38083 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38084 do not assume partition map is PC/MSDOS before performing checks that
38085 are specific to that layout.
38086
38087 2008-02-13 Robert Millan <rmh@aybabtu.com>
38088
38089 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38090 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38091 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38092
38093 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38094
38095 * configure.ac: Only a cosmetic change on the handling of
38096 -fno-stack-protector.
38097
38098 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38099
38100 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38101 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38102 reboot.c.
38103 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38104 (halt_mod_SOURCES): New variable.
38105 (halt_mod_CFLAGS): Likewise.
38106 (halt_mod_LDFLAGS): Likewise.
38107 (reboot_mod_SOURCES): Likewise.
38108 (reboot_mod_CFLAGS): Likewise.
38109 (reboot_mod_LDFLAGS): Likewise.
38110
38111 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38112 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38113 reboot.c.
38114 (halt_mod_SOURCES): Likewise.
38115 (reboot_mod_SOURCES): Likewise.
38116
38117 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38118 commands/i386/pc/reboot.c by commands/reboot.c.
38119 (reboot_mod_SOURCES): Likewise.
38120
38121 * commands/i386/pc/reboot.c: merge this file ...
38122
38123 * commands/ieee1275/reboot.c: ... and this file ...
38124
38125 * commands/reboot.c: ... to this file.
38126 Add some precompiler directive to include the correct header for
38127 each machine.
38128
38129 * commands/ieee1275/halt.c: move this file ...
38130
38131 * commands/halt.c: ... to here.
38132 Add some precompiler directive to include the correct header for
38133 each machine.
38134
38135 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38136 (grub_halt): Likewise.
38137
38138 * kern/efi/efi.c (grub_reboot): New function.
38139 (grub_halt): Likewise.
38140
38141 2008-02-12 Robert Millan <rmh@aybabtu.com>
38142
38143 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38144 /dev (like it is done for /dev/mapper). This doesn't provide support
38145 for EVMS, but at least it is now easy to identify the problem when it
38146 arises.
38147
38148 2008-02-11 Robert Millan <rmh@aybabtu.com>
38149
38150 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38151 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38152 comparing it with -1, not 0.
38153
38154 2008-02-10 Robert Millan <rmh@aybabtu.com>
38155
38156 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38157 `disk/lvm.c'.
38158 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38159 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38160
38161 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38162 `disk/lvm.c' to the end of the list.
38163 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38164 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38165
38166 2008-02-10 Robert Millan <rmh@aybabtu.com>
38167
38168 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38169 grub_print_error() instead. This will let user know why we're entering
38170 rescue mode.
38171 Based on suggestions from Sam Morris.
38172
38173 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38174
38175 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38176 on remaining N args, instead of "--" arg N times.
38177
38178 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38179
38180 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38181 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38182 pattern for unknown glyphs.
38183
38184 2008-02-09 Robert Millan <rmh@aybabtu.com>
38185
38186 * configure.ac: Probe for `help2man'.
38187 * Makefile.in (builddir): New variable.
38188 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38189 or otherwise add a few flags/options to it.
38190 (install-local): For every executable utility or script that is
38191 installed, invoke $(HELP2MAN) to install a manpage based on --help
38192 output.
38193
38194 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38195 that it doesn't prevent --help from working in build tree.
38196
38197 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38198 with `bug-grub@gnu.org'.
38199 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38200 * util/update-grub.in (usage): New function.
38201 Implement proper argument check, with support for --help and --version
38202 (as well as existing -y).
38203
38204 2008-02-09 Christian Franke <franke@computer.org>
38205
38206 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38207 avoid overwriting previous output.
38208 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38209
38210 2008-02-09 Robert Millan <rmh@aybabtu.com>
38211
38212 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38213 drawing the menu.
38214
38215 2008-02-09 Robert Millan <rmh@aybabtu.com>
38216
38217 * commands/sleep.c: New file.
38218 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38219 (sleep_mod_SOURCES): New variable.
38220 (sleep_mod_CFLAGS): Likewise.
38221 (sleep_mod_LDFLAGS): Likewise.
38222
38223 2008-02-09 Robert Millan <rmh@aybabtu.com>
38224
38225 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38226 situations in which we can deduce the RAID size and the superblock
38227 doesn't match it.
38228
38229 2008-02-09 Robert Millan <rmh@aybabtu.com>
38230
38231 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38232 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38233 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38234
38235 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38236 and return a grub_diskmemberlist_t composed of physical array members.
38237 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38238
38239 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38240 prototype.
38241 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38242 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38243 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38244
38245 * util/grub-probe.c (probe): Move partmap probing code from here ...
38246 (probe_partmap): ... to here.
38247 (probe): Use probe_partmap() once for the disk we're probing, and
38248 additionally, when such disk contains a memberlist() struct member,
38249 once for each disk that is contained in the structure returned by
38250 memberlist().
38251
38252 2008-02-09 Robert Millan <rmh@aybabtu.com>
38253
38254 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38255 environment variable to 'all' in order to obtain debug output from
38256 non-util/ code.
38257 * util/i386/pc/grub-setup.c (main): Likewise.
38258
38259 2008-02-08 Robert Millan <rmh@aybabtu.com>
38260
38261 * disk/raid.c (grub_raid_scan_device): Check for
38262 `array->device[sb.this_disk.number]' rather than for
38263 `array->device[sb.this_disk.number]->name', since the latter is not
38264 guaranteed to be accessible.
38265
38266 2008-02-08 Robert Millan <rmh@aybabtu.com>
38267
38268 * disk/raid.c: Update copyright.
38269 * fs/cpio.c: Likewise.
38270 * include/grub/raid.h: Likewise.
38271 * loader/i386/pc/multiboot.c: Likewise.
38272 * util/hostfs.c: Likewise.
38273
38274 2008-02-08 Robert Millan <rmh@aybabtu.com>
38275
38276 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38277 to a grub_disk_t array.
38278 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38279 `device[x]'.
38280 (grub_raid_scan_device): Replace `device[x].name' accesses with
38281 `device[x]->name'. Simplify initialization of `array->device[x]'.
38282
38283 2008-02-08 Robert Millan <rmh@aybabtu.com>
38284
38285 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38286 grub_dprintf() calls.
38287 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38288 error message.
38289
38290 2008-02-07 Christian Franke <franke@computer.org>
38291
38292 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38293 instead of fseek and ftell to support large files.
38294 (grub_hostfs_read): Likewise.
38295
38296 2008-02-07 Robert Millan <rmh@aybabtu.com>
38297
38298 Patch from Jeroen Dekkers.
38299 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38300 failure, since successfully reading all array members might not be
38301 required.
38302
38303 2008-02-06 Robert Millan <rmh@aybabtu.com>
38304
38305 * util/grub-probe.c (probe): Simplify partmap probing (with the
38306 assumption that the first word up to the underscore equals to
38307 the module name).
38308
38309 2008-02-06 Christian Franke <franke@computer.org>
38310
38311 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38312 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38313 last block of a cpio or tar stream.
38314 Check for "TRAILER!!!" instead of any empty data
38315 block to detect last block of a cpio stream.
38316 (grub_cpio_dir): Fix constness of variable np.
38317 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38318 cpio or tar trailer is detected. This fixes a crash
38319 on open of a non existing file.
38320
38321 2008-02-05 Bean <bean123ch@gmail.com>
38322
38323 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38324 address of entry.
38325 (grub_multiboot_load_elf64): Likewise.
38326 (grub_multiboot): Initialize mbi structure.
38327
38328 * util/grub-fstest.c: Don't include unused header file script.h.
38329
38330 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38331 of file.
38332 (grub_fstest_SOURCES): Likewise.
38333
38334 2008-02-05 Robert Millan <rmh@aybabtu.com>
38335
38336 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38337 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38338 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38339 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38340
38341 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38342 (translation_table): Replace hardcoded values with macros
38343 provided by `<grub/term.h>'.
38344
38345 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38346 (keyboard_map): Correct/add a few values, with macros provided
38347 by `<grub/term.h>'.
38348 (keyboard_map_shift): Zero values that don't differ from their
38349 `keyboard_map' equivalents.
38350 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38351 Discard the second scan code that is always sent by Caps lock.
38352 Only use `keyboard_map_shift' when it provides a non-zero value,
38353 otherwise fallback to `keyboard_map'.
38354
38355 2008-02-04 Bean <bean123ch@gmail.com>
38356
38357 * Makefile.in (enable_grub_fstest): New variable.
38358
38359 * conf/common.rmk (grub_fstest_init.lst): New rule.
38360 (grub_fstest_init.h): Likewise.
38361 (grub_fstest_init.c): Likewise.
38362 (util/grub-fstest.c_DEPENDENCIES): New variable.
38363 (grub_fstest_SOURCES): Likewise.
38364
38365 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38366
38367 * util/grub-fstest.c: New file.
38368
38369 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38370
38371 Make grub-setup handle a separate root device.
38372
38373 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38374 so that the root device can be compared with the destination
38375 device.
38376 When embedding the core image, if the root and destination devices
38377 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38378 0xFF.
38379 When not embedding, set ROOT_DRIVE to 0xFF.
38380
38381 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38382
38383 Add support for having a grub directory in a different drive. This
38384 is still only the data handling part.
38385
38386 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38387 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38388 (grub_root_drive): New variable.
38389
38390 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38391 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38392 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38393 as it was.
38394
38395 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38396
38397 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38398 macro.
38399 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38400
38401 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38402 is bogus, because PXE booting does not specify any drive
38403 correctly.
38404
38405 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38406 am not sure if this is really correct.
38407
38408 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38409 is always identical to the boot drive when booting from a CD.
38410
38411 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38412 longer.
38413 (root_drive): New variable.
38414 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38415 (setup_sectors): Push %dx right after popping it, because %dh will
38416 be modified later.
38417 (copy_buffer): Restore %dx.
38418
38419 2008-02-03 Robert Millan <rmh@aybabtu.com>
38420
38421 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38422 use `cdboot.img' for cdrom images.
38423
38424 2008-02-03 Robert Millan <rmh@aybabtu.com>
38425
38426 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38427 only setup gfxterm when `font' command has succeeded.
38428
38429 2008-02-03 Robert Millan <rmh@aybabtu.com>
38430
38431 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38432 (grub_rescue_cmd_multiboot_loader)
38433 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38434
38435 2008-02-03 Pavel Roskin <proski@gnu.org>
38436
38437 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38438 %edx and %esi from stack only after grub_gate_a20() is called.
38439 grub_gate_a20() clobbers %edx.
38440
38441 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38442
38443 * configure.ac (AC_INIT): Bumped to 1.96.
38444
38445 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38446 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38447 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38448 video/readers/png.c.
38449
38450 2008-02-03 Bean <bean123ch@gmail.com>
38451
38452 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38453 (cdboot_img_SOURCES): New variable.
38454 (cdboot_img_ASFLAGS): New variable.
38455 (cdboot_img_LDFLAGS): New variable.
38456
38457 * boot/i386/pc/cdboot.S: New file.
38458
38459 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38460 (cd_count): Likewise.
38461 (grub_biosdisk_get_drive): Add support for cd device.
38462 (grub_biosdisk_call_hook): Likewise.
38463 (grub_biosdisk_iterate): Likewise.
38464 (grub_biosdisk_open): Likewise.
38465 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38466 (grub_biosdisk_rw): Support reading from cd device.
38467 (GRUB_MOD_INIT): Iterate cd devices.
38468
38469 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38470 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38471 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38472
38473 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38474
38475 2008-02-02 Robert Millan <rmh@aybabtu.com>
38476
38477 * commands/read.c: New file.
38478 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38479 (read_mod_SOURCES): New variable.
38480 (read_mod_CFLAGS): Likewise.
38481 (read_mod_LDFLAGS): Likewise.
38482
38483 2008-02-02 Robert Millan <rmh@aybabtu.com>
38484
38485 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38486 determining whether menu has to be displayed.
38487
38488 2008-02-02 Marco Gerards <marco@gnu.org>
38489
38490 * bus/pci.c: New file.
38491
38492 * include/grub/pci.h: Likewise.
38493
38494 * include/grub/i386/pc/pci.h: Likewise.
38495
38496 * commands/lspci.c: Likewise.
38497
38498 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38499 `lspci.mod'.
38500 (pci_mod_SOURCES): New variable.
38501 (pci_mod_CFLAGS): Likewise.
38502 (pci_mod_LDFLAGS): Likewise.
38503 (lspci_mod_SOURCES): Likewise.
38504 (lspci_mod_CFLAGS): Likewise.
38505 (lspci_mod_LDFLAGS): Likewise.
38506
38507 2008-02-02 Bean <bean123ch@gmail.com>
38508
38509 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38510 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38511
38512 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38513 (grub_xfs_btree_node): New structure.
38514 (grub_xfs_btree_root): New structure.
38515 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38516 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38517 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38518 (GRUB_XFS_EXTENT_SIZE): Likewise.
38519 (grub_xfs_read_block): Support btree format type.
38520 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38521 Use directory block as basic unit.
38522
38523 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38524
38525 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38526 __attribute__ ((__regparm__ (1))).
38527
38528 2008-02-01 Robert Millan <rmh@aybabtu.com>
38529
38530 Correct a mistake in previous commit.
38531
38532 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38533 top.
38534 (normal/command.c_DEPENDENCIES): New variable.
38535
38536 2008-02-01 Robert Millan <rmh@aybabtu.com>
38537
38538 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38539 top.
38540 (normal/command.c_DEPENDENCIES): New variable.
38541 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38542 * conf/i386-ieee1275.rmk: Likewise.
38543 * conf/i386-linuxbios.rmk: Likewise.
38544 * conf/i386-pc.rmk: Likewise.
38545 * conf/sparc64-ieee1275.rmk: Likewise.
38546 * conf/powerpc-ieee1275.rmk: Likewise.
38547 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38548
38549 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38550
38551 2008-02-01 Robert Millan <rmh@aybabtu.com>
38552
38553 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38554 call at beginning of function.
38555
38556 2008-01-31 Pavel Roskin <proski@gnu.org>
38557
38558 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38559 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38560 (grub_mkrescue_SOURCES): Likewise.
38561 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38562
38563 2008-01-30 Robert Millan <rmh@aybabtu.com>
38564
38565 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38566 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38567 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38568 (grub_probe_SOURCES): ... to here.
38569
38570 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38571 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38572 * conf/i386-ieee1275.rmk: Likewise.
38573 * conf/i386-linuxbios.rmk: Likewise.
38574 * conf/powerpc-ieee1275.rmk: Likewise.
38575
38576 2008-01-30 Tristan Gingold <gingold@free.fr>
38577
38578 * kern/rescue.c: Silently accept empty lines.
38579
38580 2008-01-29 Bean <bean123ch@gmail.com>
38581
38582 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38583 (real_code_2): Code cleanup and change comment style.
38584 (move_memory): Avoid using 32-bit address mode.
38585
38586 2008-01-29 Bean <bean123ch@gmail.com>
38587
38588 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38589 (png_mod_SOURCES): New variable.
38590 (png_mod_CFLAGS): Likewise.
38591 (png_mod_LDFLAGS): Likewise.
38592
38593 * video/readers/png.c: New file.
38594
38595 2008-01-28 Robert Millan <rmh@aybabtu.com>
38596
38597 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38598 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38599 `ifndef GRUB_MOD_GAP' hack.
38600 * util/elf/grub-mkimage.c (add_segments): Likewise.
38601
38602 2008-01-27 Robert Millan <rmh@aybabtu.com>
38603
38604 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38605 `GRUB_MOD_GAP' for platforms in which it's not defined.
38606 * util/elf/grub-mkimage.c (add_segments): Likewise.
38607
38608 2008-01-27 Robert Millan <rmh@aybabtu.com>
38609
38610 Get grub-emu to build again (including parallel builds).
38611
38612 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38613 Split into ...
38614 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38615 (normal/execute.c_DEPENDENCIES): ... this, ...
38616 (grub-emu_DEPENDENCIES): ... and this.
38617
38618 * conf/i386-efi.rmk: Likewise.
38619 * conf/i386-linuxbios.rmk: Likewise.
38620 * conf/i386-ieee1275.rmk: Likewise.
38621 * conf/powerpc-ieee1275.rmk: Likewise.
38622 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38623
38624 2008-01-27 Robert Millan <rmh@aybabtu.com>
38625
38626 * NEWS: Add a few items.
38627
38628 2008-01-27 Robert Millan <rmh@aybabtu.com>
38629
38630 Fix parallel builds with grub-emu. Based on earlier commit for
38631 grub-probe and grub-setup.
38632
38633 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38634 (util/grub-emu.c_DEPENDENCIES): ... this.
38635 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38636 (util/grub-emu.c_DEPENDENCIES): ... this.
38637 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38638 (util/grub-emu.c_DEPENDENCIES): ... this.
38639 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38640 (util/grub-emu.c_DEPENDENCIES): ... this.
38641 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38642 (util/grub-emu.c_DEPENDENCIES): ... this.
38643
38644 2008-01-27 Pavel Roskin <proski@gnu.org>
38645
38646 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38647 to create a gap between _end and the modules added to the image
38648 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38649 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38650 * util/elf/grub-mkimage.c (add_segments): Likewise.
38651
38652 2008-01-26 Pavel Roskin <proski@gnu.org>
38653
38654 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38655 just return an error.
38656
38657 2008-01-26 Bean <bean123ch@gmail.com>
38658
38659 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38660 (grub_reiserfs_get_item): Save offset of the next item.
38661 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38662
38663 2008-01-25 Robert Millan <rmh@aybabtu.com>
38664
38665 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38666 make all filesystem sources appear together (possibly fixing omissions
38667 while at it).
38668 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38669 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38670 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38672
38673 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38674 add `kern/file.c'.
38675 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38676 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38677 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38678 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38679
38680 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38681 (probe): Add a sanity check to make sure of our ability to read
38682 requested files when probing for filesystem type.
38683
38684 * genmk.rb: Update copyright year (2007).
38685
38686 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38687 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38688 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38689 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38690 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38691 : Remove function prototypes.
38692
38693 2008-01-25 Robert Millan <rmh@aybabtu.com>
38694
38695 Revert my previous commits (based on wrong assumption of how grub_errno
38696 works).
38697
38698 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38699 * kern/file.c (grub_file_open): Likewise.
38700
38701 2008-01-24 Pavel Roskin <proski@gnu.org>
38702
38703 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38704 that hang if GRUB tries to setup colors.
38705 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38706 colors for firmwares that don't support it.
38707 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38708 Recognize Open Hack'Ware, set flags to work around its
38709 limitations.
38710
38711 2008-01-24 Robert Millan <rmh@aybabtu.com>
38712
38713 * kern/file.c (grub_file_open): Do not account previous failures of
38714 unrelated functions when grub_errno is checked for.
38715 Reported by Oleg Strikov.
38716
38717 2008-01-24 Bean <bean123ch@gmail.com>
38718
38719 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38720 (grub_ufs_sblock): New member volume name.
38721 (grub_ufs_find_file): Fix string copy bug.
38722 (grub_ufs_label): Implement this function properly.
38723
38724 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38725 (grub_hfs_iterate_records): Use the correct file number for extents
38726 and catalog file. Fix problem in next index calculation.
38727 (grub_hfs_find_node): Replace recursive function call with loop.
38728 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38729
38730 2008-01-23 Robert Millan <rmh@aybabtu.com>
38731
38732 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38733 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38734 (grub_multiboot2_real_boot): New function prototype.
38735
38736 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38737 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38738
38739 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38740 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38741
38742 2008-01-23 Robert Millan <rmh@aybabtu.com>
38743
38744 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38745 #ifdef'ed out grub_printf().
38746
38747 2008-01-23 Robert Millan <rmh@aybabtu.com>
38748
38749 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38750 grub_dprintf calls, since they make "debug=all" mode unusable.
38751 (grub_console_checkkey): Likewise.
38752
38753 2008-01-23 Robert Millan <rmh@aybabtu.com>
38754
38755 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38756 `term/i386/pc/at_keyboard.c'.
38757 (pkglib_MODULES): Add `serial.mod'.
38758 (serial_mod_SOURCES): New variable.
38759 (serial_mod_CFLAGS): Likewise.
38760 (serial_mod_LDFLAGS): Likewise.
38761
38762 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38763 `<grub/powerpc/ieee1275/console.h>'.
38764 (grub_keyboard_controller_init): New function prototype.
38765 (grub_console_checkkey): Likewise.
38766 (grub_console_getkey): Likewise.
38767
38768 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38769 keyboard on i386.
38770
38771 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38772 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38773
38774 2008-01-23 Robert Millan <rmh@aybabtu.com>
38775
38776 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38777 present, "(memdisk)/boot/grub" becomes the default prefix.
38778
38779 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38780 a memdisk tarball with all the modules. Add --overlay=DIR option that
38781 allows users to overlay additional files into the image.
38782
38783 2008-01-23 Robert Millan <rmh@aybabtu.com>
38784
38785 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38786 and `machine/memory.h'.
38787 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38788 (_multiboot_mod_SOURCES): New variable.
38789 (_multiboot_mod_CFLAGS): Likewise.
38790 (_multiboot_mod_LDFLAGS): Likewise.
38791 (multiboot_mod_SOURCES): Likewise.
38792 (multiboot_mod_CFLAGS): Likewise.
38793 (multiboot_mod_LDFLAGS): Likewise.
38794
38795 * include/grub/i386/ieee1275/loader.h: New file.
38796
38797 * include/grub/i386/ieee1275/machine.h: Likewise.
38798
38799 * include/grub/i386/ieee1275/memory.h: Likewise.
38800
38801 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38802 variable declaration.
38803 (grub_os_area_size): Likewise.
38804
38805 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38806 (grub_lower_mem, grub_upper_mem): New variables.
38807 (grub_stop_floppy): New function (just to make
38808 grub_multiboot2_real_boot() happy).
38809
38810 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38811 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38812 (grub_stop): New function.
38813 Include `"../realmode.S"' and `"../loader.S"'.
38814
38815 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38816 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38817
38818 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38819 rely on grub_multiboot2_real_boot() for final boot.
38820
38821 2008-01-22 Robert Millan <rmh@aybabtu.com>
38822
38823 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38824 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38825 device that doesn't look like an SD card.
38826 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38827 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38828 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38829 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38830 found.
38831
38832 2008-01-22 Robert Millan <rmh@aybabtu.com>
38833
38834 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38835 avoid claiming over our own code.
38836
38837 2008-01-22 Bean <bean123ch@gmail.com>
38838
38839 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38840 (jpeg_mod_SOURCES): New variable.
38841 (jpeg_mod_CFLAGS): Likewise.
38842 (jpeg_mod_LDFLAGS): Likewise.
38843
38844 * video/readers/jpeg.c : New file.
38845
38846 2008-01-22 Bean <bean123ch@gmail.com>
38847
38848 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38849 there are no more items.
38850
38851 2008-01-21 Robert Millan <rmh@aybabtu.com>
38852
38853 * kern/mm.c (grub_mm_init_region): Improve debug message.
38854
38855 2008-01-21 Robert Millan <rmh@aybabtu.com>
38856
38857 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38858 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38859 address.
38860 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38861 a C macro.
38862 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38863 Indicates start of upper memory.
38864 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38865 (generate_image): Abort when image size is big enough to corrupt
38866 upper memory.
38867
38868 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38869 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38870 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38871 instead of hardcoding 0xA0000.
38872 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38873 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38874 instead of hardcoding 0xA0000.
38875
38876 2008-01-21 Robert Millan <rmh@aybabtu.com>
38877
38878 * disk/memdisk.c (memdisk_size): New variable.
38879 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38880 `memdisk_size'.
38881 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38882 image to dynamic memory.
38883 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38884 `memdisk_size'. Free memdisk block.
38885
38886 2008-01-21 Robert Millan <rmh@aybabtu.com>
38887
38888 Fix detection of very small filesystems (like tar).
38889
38890 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38891 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38892 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38893 a problem with this disk).
38894
38895 2008-01-21 Robert Millan <rmh@aybabtu.com>
38896
38897 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38898 on grub_biosdisk_rw_standard() error.
38899
38900 2008-01-21 Robert Millan <rmh@aybabtu.com>
38901
38902 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38903 recent changes.
38904 * kern/elf.c: Likewise.
38905 * kern/ieee1275/ieee1275.c: Likewise.
38906 * kern/powerpc/ieee1275/openfw.c: Likewise.
38907 * term/ieee1275/ofconsole.c: Likewise.
38908
38909 2008-01-21 Robert Millan <rmh@aybabtu.com>
38910
38911 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38912
38913 * include/grub/kernel.h (grub_arch_memdisk_addr)
38914 (grub_arch_memdisk_size): Moved from here ...
38915
38916 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38917 (grub_arch_memdisk_size): ... to here.
38918
38919 2008-01-21 Robert Millan <rmh@aybabtu.com>
38920
38921 Mostly based on bugfix from Bean.
38922
38923 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38924 attribute with hook() parameter.
38925 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38926 declaration.
38927 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38928 attribute with hook() parameter.
38929 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38930 declaration.
38931
38932 2008-01-21 Robert Millan <rmh@aybabtu.com>
38933
38934 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38935 (pkglib_MODULES): Add `memdisk.mod'.
38936 (memdisk_mod_SOURCES): New variable.
38937 (memdisk_mod_CFLAGS): Likewise.
38938 (memdisk_mod_LDFLAGS): Likewise.
38939
38940 * disk/memdisk.c: New file.
38941
38942 * include/grub/disk.h (grub_disk_dev_id): Add
38943 `GRUB_DISK_DEVICE_MEMDISK_ID'.
38944
38945 * include/grub/i386/pc/kernel.h
38946 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
38947 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
38948 (grub_kernel_image_size): New variable declaration.
38949 (grub_total_module_size): Likewise.
38950 (grub_memdisk_image_size): Likewise.
38951
38952 * include/grub/i386/pc/memory.h
38953 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
38954
38955 * include/grub/kernel.h: Include `<grub/symbol.h>'.
38956 (grub_arch_memdisk_addr): New variable declaration.
38957 (grub_arch_memdisk_size): Likewise.
38958
38959 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
38960 (grub_arch_memdisk_size): Likewise.
38961
38962 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
38963 (codestart): Replace hardcoded `0x100000' with
38964 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
38965
38966 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
38967 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
38968 not NULL, append the contents of the file it refers to, at the end of
38969 the compressed kernel image. Initialize `grub_memdisk_image_size'
38970 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
38971 (options): Add "memdisk"|'m' option.
38972 (main): Parse --memdisk|-m option, and pass user-provided path as
38973 parameter to generate_image().
38974
38975 2008-01-20 Robert Millan <rmh@aybabtu.com>
38976
38977 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
38978 grub_dprintf() calls from here ...
38979 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
38980
38981 2008-01-20 Robert Millan <rmh@aybabtu.com>
38982
38983 Fix detection of "real mode" when /options/real-mode? doesn't exist.
38984
38985 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
38986 declaration.
38987 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
38988 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
38989 `GRUB_IEEE1275_FLAG_REAL_MODE'.
38990 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
38991 property).
38992 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
38993 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
38994
38995 2008-01-19 Robert Millan <rmh@aybabtu.com>
38996
38997 Get rid of confusing function (superseded by
38998 `grub_ieee1275_get_integer_property')
38999 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39000 prototype.
39001 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39002 function.
39003 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39004 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39005 in native endianness from grub_ieee1275_get_integer_property().
39006
39007 2008-01-19 Robert Millan <rmh@aybabtu.com>
39008
39009 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39010 command after "shut-down", since implementations differ on which
39011 the command for halt is.
39012
39013 2008-01-19 Robert Millan <rmh@aybabtu.com>
39014
39015 * include/grub/i386/linuxbios/console.h: Add header protection.
39016 (grub_keyboard_controller_init): New function prototype.
39017 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39018 (KEYBOARD_COMMAND_READ): Likewise.
39019 (KEYBOARD_COMMAND_WRITE): Likewise.
39020 (KEYBOARD_SCANCODE_SET1): Likewise.
39021 (grub_keyboard_controller_write): New function.
39022 (grub_keyboard_controller_read): Likewise.
39023 (grub_keyboard_controller_init): Likewise.
39024
39025 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39026 (grub_console_init): On coreboot/LinuxBIOS, call
39027 grub_keyboard_controller_init().
39028
39029 2008-01-19 Robert Millan <rmh@aybabtu.com>
39030
39031 PowerPC changes provided by Pavel Roskin.
39032
39033 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39034 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39035 don't rely on cmain() doing it.
39036 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39037 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39038
39039 2008-01-16 Robert Millan <rmh@aybabtu.com>
39040
39041 * include/grub/i386/linuxbios/memory.h
39042 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39043 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39044 receive `table_header' as argument. Instead, probe for it in the
39045 known memory ranges where it can be present.
39046 (grub_available_iterate): Do not pass a fixed `table_header' address
39047 to grub_linuxbios_table_iterate().
39048
39049 2008-01-15 Robert Millan <rmh@aybabtu.com>
39050
39051 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39052 * conf/i386-ieee1275.rmk: New file.
39053 * include/grub/i386/ieee1275/console.h: Likewise.
39054 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39055 * include/grub/i386/ieee1275/kernel.h: Likewise.
39056 * include/grub/i386/ieee1275/time.h: Likewise.
39057 * kern/i386/ieee1275/init.c: Likewise.
39058 * kern/i386/ieee1275/startup.S: Likewise.
39059
39060 2008-01-15 Robert Millan <rmh@aybabtu.com>
39061
39062 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39063 when pointers are 32-bit (but still do set it to one when they are
39064 64-bit).
39065
39066 2008-01-15 Robert Millan <rmh@aybabtu.com>
39067
39068 * include/grub/ieee1275/ieee1275.h
39069 (grub_ieee1275_get_integer_property): New function prototype.
39070
39071 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39072 (grub_ieee1275_get_integer_property): New function. Wraps around
39073 grub_ieee1275_get_property() to handle endianness.
39074
39075 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39076 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39077 where appropriate.
39078 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39079 (grub_map): Likewise.
39080 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39081
39082 2008-01-15 Bean <bean123ch@gmail.com>
39083
39084 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39085 (grub_script_execute_cmdline): Reset grub_errno.
39086
39087 * normal/main.c (read_config_file): Reset grub_errno.
39088
39089 * normal/parse.y (script_init): New.
39090 (script): Move function and menuentry here.
39091 (delimiter): New.
39092 (command): Add delimiter at the end of command.
39093 (commands): Adjust to match the new command.
39094 (commandblock): Remove grub_script_lexer_record_start.
39095 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39096 (if): Use the new commands.
39097
39098 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39099
39100 2008-01-15 Robert Millan <rmh@aybabtu.com>
39101
39102 * normal/menu.c (run_menu): Move timeout message from here ...
39103 (print_timeout): ... to here.
39104 (run_menu): Use print_timeout() once during initial draw to print
39105 the whole message, and again in every clock tick to update only
39106 the number of seconds.
39107
39108 2008-01-15 Robert Millan <rmh@aybabtu.com>
39109
39110 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39111 actual size of `available' from grub_ieee1275_get_property(), and
39112 restrict parsing to that bound.
39113
39114 2008-01-15 Christian Franke <franke@computer.org>
39115
39116 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39117 (argp_program_version): Remove variable.
39118 (argp_program_bug_address): Likewise.
39119 (options): Convert from struct argp_option to struct option.
39120 (struct arguments): Remove.
39121 (parse_opt): Remove.
39122 (usage): New function.
39123 (main): Replace struct args members by simple variables.
39124 Replace argp_parse() by getopt_long().
39125 Add switch to evaluate options.
39126 Add missing "(...)" around root_dev in prefix string.
39127
39128 2008-01-14 Robert Millan <rmh@aybabtu.com>
39129
39130 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39131 for grub_ieee1275_exit(), in order to improve portability.
39132
39133 2008-01-14 Robert Millan <rmh@aybabtu.com>
39134
39135 * util/grub.d/10_linux.in (prefix): Define.
39136 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39137
39138 2008-01-13 Pavel Roskin <proski@gnu.org>
39139
39140 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39141 grub_errno if no errors have been detected.
39142
39143 2008-01-12 Robert Millan <rmh@aybabtu.com>
39144
39145 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39146 (grub_util_get_dev_abstraction): New function prototype.
39147
39148 * util/getroot.c: Include `<grub/util/getroot.h>'
39149 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39150 (grub_util_get_dev_abstraction): ... here (new function).
39151
39152 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39153 `PRINT_ABSTRACTION'.
39154 (probe): Probe for abstraction type when requested.
39155 (main): Understand `--target=abstraction'.
39156
39157 * util/i386/efi/grub-install.in: Add abstraction module to core
39158 image when it is found to be necessary.
39159 * util/i386/pc/grub-install.in: Likewise.
39160 * util/powerpc/ieee1275/grub-install.in: Likewise.
39161
39162 * util/update-grub_lib.in (font_path): Return system path without
39163 converting to GRUB path.
39164 * util/update-grub.in: Convert system path returned by font_path()
39165 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39166 abstraction module is needed for loading fonts (if any). Export
39167 that as `GRUB_PRELOAD_MODULES'.
39168 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39169 insmod commands).
39170
39171 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39172
39173 Remove some unused code from reiserfs.
39174
39175 * fs/reiserfs.c (struct grub_reiserfs_key)
39176 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39177 (struct grub_reiserfs_node_body): Removed.
39178 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39179 Likewise.
39180 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39181 Likewise.
39182 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39183 Likewise.
39184 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39185 Likewise.
39186 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39187 Likewise.
39188 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39189 Likewise.
39190 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39191 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39192 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39193
39194 2008-01-10 Robert Millan <rmh@aybabtu.com>
39195
39196 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39197 Determines if a file is garbage left by packaging systems, etc.
39198 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39199 for processing /etc/grub.d scripts.
39200 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39201 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39202 as a condition for processing Linux images.
39203
39204 2008-01-10 Pavel Roskin <proski@gnu.org>
39205
39206 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39207 to compile reiserfs.c on PowerPC.
39208
39209 2008-01-10 Robert Millan <rmh@aybabtu.com>
39210
39211 * kern/device.c (grub_device_iterate): Do not abort device iteration
39212 when one of the devices cannot be opened.
39213 * kern/disk.c (grub_disk_open): Do not account previous failures of
39214 unrelated functions when grub_errno is checked for.
39215
39216 2008-01-08 Robert Millan <rmh@aybabtu.com>
39217
39218 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39219 `! grub_linux_is_bzimage', change order of address comparison to make
39220 it more intuitive, and improve "too big zImage" error message.
39221
39222 2008-01-08 Robert Millan <rmh@aybabtu.com>
39223
39224 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39225 `$(update-grub_DATA)'.
39226 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39227 targets.
39228
39229 2008-01-07 Robert Millan <rmh@aybabtu.com>
39230
39231 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39232 which instruction is modified by grub-setup during installation
39233 (since it wasn't obvious by only looking at this file).
39234
39235 2008-01-07 Robert Millan <rmh@aybabtu.com>
39236
39237 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39238 listing actual TODO items.
39239
39240 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39241
39242 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39243 correctly.
39244 (grub_reiserfs_get_key_offset): Likewise.
39245 (grub_reiserfs_set_key_offset): Likewise.
39246 (grub_reiserfs_set_key_type): Likewise.
39247 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39248
39249 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39250 better to remove the bitfield version completely.
39251
39252 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39253
39254 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39255 allocated from the heap, due to the fshelp implementation.
39256 (grub_reiserfs_dir): Free NODE, due to the same reason.
39257
39258 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39259
39260 Mostly from Vincent Pelletier:
39261
39262 * fs/reiserfs.c: New file.
39263
39264 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39265 (reiserfs_mod_SOURCES): New variable.
39266 (reiserfs_mod_CFLAGS): Likewise.
39267 (reiserfs_mod_LDFLAGS): Likewise.
39268
39269 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39270 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39271 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39272 normal/color.c.
39273
39274 2008-01-06 Robert Millan <rmh@aybabtu.com>
39275
39276 * normal/color.c: Remove `<grub/env.h>'.
39277
39278 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39279
39280 * include/grub/normal.h: Include <grub/env.h>.
39281
39282 2008-01-05 Robert Millan <rmh@aybabtu.com>
39283
39284 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39285 usage example with `(hd0,1)'.
39286 Reported by Samuel Thibault.
39287
39288 2008-01-05 Robert Millan <rmh@aybabtu.com>
39289
39290 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39291 (grub_linux_boot_zimage): Rename to ...
39292 (grub_linux_boot): ... this.
39293 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39294 (grub_linux_boot_zimage): Conditionalize zImage copy.
39295
39296 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39297 (grub_linux_boot_bzimage): Remove prototype.
39298 (grub_linux_boot_zimage): Rename to ...
39299 (grub_linux_boot): ... this.
39300
39301 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39302 (grub_linux_boot): Remove function.
39303
39304 2008-01-05 Robert Millan <rmh@aybabtu.com>
39305
39306 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39307 (grub_env_write_color_highlight): Likewise.
39308 (grub_wait_after_message): Likewise.
39309
39310 * normal/color.c: New file.
39311
39312 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39313 (normal_mod_DEPENDENCIES): Likewise.
39314
39315 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39316 (normal_mod_DEPENDENCIES): Likewise.
39317
39318 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39319 (normal_mod_DEPENDENCIES): Likewise.
39320
39321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39322 (normal_mod_DEPENDENCIES): Likewise.
39323
39324 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39325 for waiting after a message is printed.
39326 * normal/main.c (read_config_file): Likewise.
39327 (grub_normal_init): Register grub_env_write_color_normal() and
39328 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39329 `color_highlight' variables as global.
39330
39331 * normal/menu.c (grub_wait_after_message): New function.
39332 (grub_color_menu_normal): New variable. Replaces ...
39333 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39334 (grub_color_menu_highlight): New variable. Replaces ...
39335 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39336 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39337 `GRUB_TERM_COLOR_STANDARD'.
39338 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39339 `normal_code' and `highlight_code' to `old_color_normal' and
39340 `old_color_highlight', respectively.
39341 (grub_menu_init_page): Update colors when drawing the menu, based on
39342 `menu_color_normal' and `menu_color_highlight' variables.
39343 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39344 a message is printed.
39345
39346 2008-01-05 Robert Millan <rmh@aybabtu.com>
39347
39348 * kern/env.c (grub_env_context_open): Propagate hooks for global
39349 variables to new context.
39350
39351 * kern/main.c (grub_set_root_dev): Export `root' variable.
39352
39353 2008-01-05 Robert Millan <rmh@aybabtu.com>
39354
39355 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39356 discs unconditionally, since udev and others have options to provide
39357 them.
39358
39359 2008-01-05 Robert Millan <rmh@aybabtu.com>
39360
39361 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39362
39363 2008-01-04 Christian Franke <franke@computer.org>
39364
39365 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39366 of eisa_mmap.
39367
39368 2008-01-03 Pavel Roskin <proski@gnu.org>
39369
39370 * kern/i386/linuxbios/init.c: Put "void" to all function
39371 declarations with no arguments.
39372 * kern/powerpc/ieee1275/init.c: Likewise.
39373 * term/i386/pc/at_keyboard.c: Likewise.
39374 * term/i386/pc/vga_text.c: Likewise.
39375 * util/grub-mkdevicemap.c: Likewise.
39376
39377 2008-01-02 Robert Millan <rmh@aybabtu.com>
39378
39379 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39380 message when loaded image is out of bounds.
39381 (grub_multiboot_load_elf64): Likewise.
39382
39383 2008-01-02 Pavel Roskin <proski@gnu.org>
39384
39385 * util/grub.d/10_linux.in: Try version without ".old" when
39386 looking for initrd. It's better to use initrd from the newer
39387 kernel of the same version than no initrd at all.
39388
39389 2008-01-01 Robert Millan <rmh@aybabtu.com>
39390
39391 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39392
39393 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39394
39395 * include/grub/video.h: Added grub_video_unmap_color and
39396 grub_video_get_active_render_target.
39397 (grub_video_adapter): Added unmap_color and get_active_render_target.
39398
39399 * video/video.c: Added grub_video_unmap_color and
39400 grub_video_get_active_render_target.
39401 (grub_video_get_info): Changed method to accept NULL pointer as an
39402 argument to allow detection of active video adapter.
39403
39404 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39405 grub_video_vbe_unmap_color_int.
39406 Added grub_video_vbe_unmap_color and
39407 grub_video_vbe_get_active_render_target.
39408 (grub_video_vbe_adapter): Added unmap_color and
39409 get_active_render_target.
39410
39411 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39412 with grub_video_vbe_unmap_color_int.
39413
39414 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39415 (DEFAULT_NORMAL_COLOR): Likewise.
39416 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39417 (DEFAULT_FG_COLOR): Removed.
39418 (DEFAULT_BG_COLOR): Likewise.
39419 (DEFAULT_CURSOR_COLOR): Changed value.
39420 (grub_virtual_screen): Added standard_color_setting,
39421 normal_color_setting, highlight_color_setting and term_color.
39422 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39423 (bitmap_width): Added.
39424 (bitmap_height): Likewise.
39425 (bitmap): Likewise.
39426 (set_term_color): Likewise.
39427 (grub_virtual_screen_setup): Changed to use new terminal coloring
39428 settings.
39429 (grub_gfxterm_init): Added init for bitmap.
39430 (grub_gfxterm_fini): Added destroy for bitmap.
39431 (redraw_screen_rect): Updated to use background bitmap and new
39432 terminal coloring.
39433 (scroll_up): Added optimization for case when there is no bitmap.
39434 (grub_gfxterm_cls): Fixed to use correct background color.
39435 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39436 coloring.
39437 (grub_virtual_screen_setcolor): Likewise.
39438 (grub_virtual_screen_getcolor): Added.
39439 (grub_gfxterm_background_image_cmd): Likewise.
39440 (grub_video_term): Added setcolor and getcolor.
39441 (MOD_INIT): Added registration of background_image command.
39442 (MOD_TERM): Added unregistration for background_image command.
39443
39444 2007-12-30 Pavel Roskin <proski@gnu.org>
39445
39446 * loader/multiboot_loader.c: Fix multiboot command
39447 unregistration. Fix all typos in the word "multiboot".
39448
39449 2007-12-29 Pavel Roskin <proski@gnu.org>
39450
39451 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39452 support for initrd names used in Fedora.
39453
39454 2007-12-26 Bean <bean123ch@gmail.com>
39455
39456 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39457 (cpio_mod_SOURCES): New variable.
39458 (cpio_mod_CFLAGS): Likewise.
39459 (cpio_mod_LDFLAGS): Likewise.
39460
39461 * fs/cpio.c: New file.
39462
39463 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39464
39465 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39466
39467 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39468
39469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39470
39471 2007-12-25 Robert Millan <rmh@aybabtu.com>
39472
39473 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39474 (grub_getcolor): New function.
39475
39476 * kern/term.c (grub_getcolor): New function.
39477 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39478 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39479 (print_entry): Set normal and highlight colors to
39480 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39481 respectively, before printing and restore them to old
39482 values afterwards.
39483 (grub_menu_init_page): Likewise. Fill an additional colored space
39484 that would otherwise be left blank.
39485
39486 * term/efi/console.c (grub_console_getcolor): New function.
39487 (struct grub_console_term.getcolor): New variable.
39488 * term/i386/pc/console.c (grub_console_getcolor): New function.
39489 (struct grub_console_term.getcolor): New variable.
39490 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39491 (struct grub_console_term.getcolor): New variable.
39492
39493 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39494 (struct grub_console_term.setcolor): Remove variable.
39495 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39496 (struct grub_console_term.setcolor): Remove variable.
39497 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39498 (struct grub_console_term.setcolor): Remove variable.
39499 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39500 (struct grub_console_term.setcolor): Remove variable.
39501
39502 2007-12-25 Robert Millan <rmh@aybabtu.com>
39503
39504 * configure.ac: Search for possible unifont.hex locations, and
39505 define UNIFONT_HEX if found.
39506
39507 * Makefile.in (UNIFONT_HEX): Define variable.
39508 (DATA): Rename to ...
39509 (PKGLIB): ... this. Update all users.
39510 (PKGDATA): New variable.
39511 (pkgdata_IMAGES): Rename to ...
39512 (pkglib_IMAGES): ... this. Update all users.
39513 (pkgdata_MODULES): Rename to ...
39514 (pkglib_MODULES): ... this. Update all users.
39515 (pkgdata_PROGRAMS): Rename to ...
39516 (pkglib_PROGRAMS): ... this. Update all users.
39517 (pkgdata_DATA): Rename to ...
39518 (pkglib_DATA): ... this. Update all users.
39519 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39520 (unicode.pff, ascii.pff): New rules.
39521 (all-local): Add `$(PKGDATA)' dependency.
39522 (install-local): Process `$(PKGDATA)'.
39523
39524 * util/update-grub_lib.in (font_path): Search for *.pff files in
39525 a few more locations, including `${pkgdata}'.
39526
39527 2007-12-23 Robert Millan <rmh@aybabtu.com>
39528
39529 Patch from Bean <bean123ch@gmail.com>:
39530 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39531 `size'.
39532
39533 2007-12-21 Bean <bean123ch@gmail.com>
39534
39535 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39536 (ntfscomp_mod_SOURCES): New variable.
39537 (ntfscomp_mod_CFLAGS): Likewise.
39538 (ntfscomp_mod_LDFLAGS): Likewise.
39539
39540 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39541 (grub_probe_SOURCES): Likewise.
39542 (grub_emu_SOURCES): Likewise.
39543
39544 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39545 (grub_emu_SOURCES): Likewise.
39546
39547 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39548 (grub_emu_SOURCES): Likewise.
39549
39550 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39551 (grub_emu_SOURCES): Likewise.
39552
39553 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39554 (read_run_list): Renamed to grub_ntfs_read_run_list.
39555 (decomp_nextvcn): Moved to ntfscomp.c.
39556 (decomp_getch): Likewise.
39557 (decomp_get16): Likewise.
39558 (decomp_block): Likewise.
39559 (read_block): Likewise.
39560 (read_data): Partially moved to ntfscomp.c.
39561 (fixup): Change unsigned to grub_uint16_t.
39562 (read_mft): Change unsigned long to grub_uint32_t.
39563 (read_attr): Likewise.
39564 (read_data): Likewise.
39565 (read_run_data): Likewise.
39566 (read_run_list): Likewise.
39567 (read_mft): Likewise.
39568
39569 * fs/ntfscomp.c: New file.
39570
39571 * include/grub/ntfs.h: New file.
39572
39573 2007-12-16 Robert Millan <rmh@aybabtu.com>
39574
39575 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39576 IDE disk check, since Linux is known to support 20 IDE disks.
39577 Reported by Colin Watson.
39578
39579 2007-12-15 Bean <bean123ch@gmail.com>
39580
39581 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39582 (lnxboot_img_SOURCES): New variable.
39583 (lnxboot_img_ASFLAGS): Likewise.
39584 (lnxboot_img_LDFLAGS): Likewise.
39585
39586 * boot/i386/pc/lnxboot.S: New file.
39587
39588 2007-11-24 Pavel Roskin <proski@gnu.org>
39589
39590 * configure.ac: Test if '--build-id=none' is supported by the
39591 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39592 objcopy to generate incorrect binary files (binutils
39593 2.17.50.0.18-1 as shipped by Fedora 8).
39594 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39595 linking, so that build ID doesn't break the test.
39596
39597 2007-11-24 Pavel Roskin <proski@gnu.org>
39598
39599 * include/grub/i386/time.h: use "void" in the argument list
39600 of grub_cpu_idle().
39601 * include/grub/powerpc/time.h: Likewise.
39602 * include/grub/sparc64/time.h: Likewise.
39603
39604 2007-11-18 Christian Franke <franke@computer.org>
39605
39606 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39607 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39608 This fixes the problem that function keys did not work in grub-emu.
39609
39610 2007-11-18 Christian Franke <franke@computer.org>
39611
39612 * disk/host.c (grub_host_open): Remove attribute unused from
39613 name parameter. Add check for "host". This fixes the problem
39614 that grub-emu does not find partitions.
39615
39616 2007-11-18 Christian Franke <franke@computer.org>
39617
39618 * util/hostfs.c (is_dir): New function.
39619 (grub_hostfs_dir): Handle missing dirent.d_type case.
39620 (grub_hostfs_read): Add missing fseek().
39621 (grub_hostfs_label): Clear label pointer. This fixes a crash
39622 of grub-emu on "ls (host)".
39623
39624 2007-11-18 Christian Franke <franke@computer.org>
39625
39626 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39627 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39628 to 64 bit boundary by default.
39629
39630 2007-11-18 Bean <bean123ch@gmail.com>
39631
39632 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39633 (hexdump_mod_SOURCES): New variable.
39634 (hexdump_mod_CFLAGS): Likewise.
39635 (hexdump_mod_LDFLAGS): Likewise.
39636
39637 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39638
39639 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39640
39641 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39642
39643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39644
39645 * include/grub/hexdump.h: New file.
39646
39647 * commands/hexdump.c: New file.
39648
39649 2007-11-10 Robert Millan <rmh@aybabtu.com>
39650
39651 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39652 in grub_outb() calls.
39653 (beep_on): Likewise.
39654
39655 2007-11-10 Christian Franke <franke@computer.org>
39656
39657 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39658 (grub_menu_run): Likewise.
39659
39660 2007-11-10 Robert Millan <rmh@aybabtu.com>
39661
39662 * include/grub/i386/efi/machine.h: New file.
39663 * include/grub/i386/linuxbios/machine.h: Likewise.
39664 * include/grub/i386/pc/machine.h: Likewise.
39665 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39666 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39667
39668 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39669 (serial_hw_io_addr): New variable.
39670 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39671 instead of `(unsigned short *) 0x400'.
39672
39673 2007-11-10 Bean <bean123ch@gmail.com>
39674
39675 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39676
39677 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39678
39679 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39680 (vga_mod_SOURCES): Added.
39681 (vga_mod_CFLAGS): Likewise.
39682 (vga_mod_LDFLAGS): Likewise.
39683
39684 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39685 grub_outb() calls.
39686 (set_map_mask): Likewise.
39687 (set_read_map): Likewise.
39688 (set_read_address): Likewise.
39689 (vga_font): Removed variable.
39690 (get_vga_glyph): Removed function.
39691 (invalidate_char): Likewise.
39692 (write_char): Changed to use grub_font_get_glyph() for font
39693 information.
39694 (grub_vga_putchar): Likewise.
39695 (grub_vga_getcharwidth): Likewise.
39696
39697 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39698
39699 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39700 flags.
39701 (pxeboot_img_LDFLAGS): Likewise.
39702 (diskboot_img_LDFLAGS): Likewise.
39703 (kernel_img_LDFLAGS): Likewise.
39704
39705 2007-11-06 Robert Millan <rmh@aybabtu.com>
39706
39707 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39708 in grub_outb() calls.
39709 (serial_hw_init): Likewise.
39710
39711 2007-11-05 Robert Millan <rmh@aybabtu.com>
39712
39713 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39714 spaces. Skip non-regular files.
39715
39716 2007-11-05 Robert Millan <rmh@aybabtu.com>
39717
39718 * kern/disk.c (grub_disk_firmware_fini)
39719 (grub_disk_firmware_is_tainted): New variables.
39720
39721 * include/grub/disk.h (grub_disk_firmware_fini)
39722 (grub_disk_firmware_is_tainted): Likewise.
39723
39724 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39725 (grub_disk_biosdisk_fini): ... to here.
39726 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39727 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39728 is set. Register grub_disk_biosdisk_fini() in
39729 `grub_disk_firmware_fini'.
39730
39731 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39732 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39733 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39734 to finish existing firmware disk interface.
39735
39736 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39737 (ata_mod_SOURCES): New variable.
39738 (ata_mod_CFLAGS): Likewise.
39739 (ata_mod_LDFLAGS): Likewise.
39740
39741 2007-11-05 Robert Millan <rmh@aybabtu.com>
39742
39743 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39744 (grub_ata_wait): Reimplement using grub_millisleep().
39745
39746 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39747 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39748
39749 2007-11-03 Marco Gerards <marco@gnu.org>
39750
39751 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39752 (CRTC_ADDR_PORT): New macro.
39753 (CRTC_DATA_PORT): Likewise.
39754 (CRTC_CURSOR): Likewise.
39755 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39756 (CRTC_CURSOR_ADDR_LOW): Likewise.
39757 (update_cursor): New function.
39758 (grub_console_real_putchar): Call `update_cursor'.
39759 (grub_console_gotoxy): Likewise.
39760 (grub_console_cls): Set the default color when clearing the
39761 screen.
39762 (grub_console_setcursor): Implemented.
39763
39764 2007-11-03 Marco Gerards <marco@gnu.org>
39765
39766 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39767 become activate.
39768 (grub_ata_pio_write): Likewise.
39769
39770 (grub_atapi_identify): Wait after issuing an ATA command.
39771 (grub_atapi_packet): Likewise.
39772 (grub_ata_identify): Likewise.
39773 (grub_ata_readwrite): Likewise.
39774
39775 2007-11-03 Marco Gerards <marco@gnu.org>
39776
39777 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39778 (grub_ata_pio_write): Likewise.
39779 (grub_ata_readwrite): Use `grub_error', instead of
39780 returning `grub_errno'.
39781
39782 2007-11-03 Marco Gerards <marco@gnu.org>
39783
39784 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39785 grub_ata_pio_write once for every single sector, instead of for
39786 multiple sectors.
39787
39788 2007-10-31 Robert Millan <rmh@aybabtu.com>
39789
39790 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39791
39792 * conf/i386-linuxbios.rmk: New file.
39793
39794 * kern/i386/pc/hardware.c: Likewise.
39795 * term/i386/pc/at_keyboard.c: Likewise.
39796 * term/i386/pc/vga_text.c: Likewise.
39797
39798 * include/grub/i386/linuxbios/boot.h: Likewise.
39799 * include/grub/i386/linuxbios/console.h: Likewise.
39800 * include/grub/i386/linuxbios/init.h: Likewise.
39801 * include/grub/i386/linuxbios/kernel.h: Likewise.
39802 * include/grub/i386/linuxbios/loader.h: Likewise.
39803 * include/grub/i386/linuxbios/memory.h: Likewise.
39804 * include/grub/i386/linuxbios/serial.h: Likewise.
39805 * include/grub/i386/linuxbios/time.h: Likewise.
39806
39807 * kern/i386/linuxbios/init.c: Likewise.
39808 * kern/i386/linuxbios/startup.S: Likewise.
39809 * kern/i386/linuxbios/table.c: Likewise.
39810
39811 2007-10-31 Marco Gerards <marco@gnu.org>
39812
39813 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39814 (ata_mod_SOURCES): New variable.
39815 (ata_mod_CFLAGS): Likewise.
39816 (ata_mod_LDFLAGS): Likewise.
39817
39818 * disk/ata.c: New file.
39819
39820 * include/grub/disk.h (grub_disk_dev_id): Add
39821 `GRUB_DISK_DEV_ATA_ID'.
39822
39823 2007-10-31 Robert Millan <rmh@aybabtu.com>
39824
39825 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39826 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39827
39828 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39829 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39830
39831 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39832 `<grub/types.h>'.
39833
39834 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39835
39836 2007-10-27 Robert Millan <rmh@aybabtu.com>
39837
39838 * include/grub/types.h (ULONG_MAX): Define macro.
39839
39840 2007-10-22 Robert Millan <rmh@aybabtu.com>
39841
39842 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39843 `"../realmode.S"'.
39844 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39845
39846 2007-10-22 Robert Millan <rmh@aybabtu.com>
39847
39848 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39849 (pkgdata_MODULES): Add `biosdisk.mod'.
39850 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39851 variables.
39852
39853 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39854 (grub_biosdisk_init): Replace with ...
39855 (GRUB_MOD_INIT(biosdisk)): ... this.
39856 (grub_biosdisk_fini): Replace with ...
39857 (GRUB_MOD_FINI(biosdisk)): ... this.
39858
39859 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39860 (grub_machine_init): Remove call to grub_biosdisk_init().
39861 (grub_machine_fini): Remove call to grub_machine_fini().
39862
39863 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39864
39865 2007-10-22 Robert Millan <rmh@aybabtu.com>
39866
39867 * include/grub/time.h: New file.
39868 * include/grub/i386/time.h: Likewise.
39869 * include/grub/powerpc/time.h: Likewise.
39870 * include/grub/sparc64/time.h: Likewise.
39871
39872 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39873 instances to ...
39874 (KERNEL_MACHINE_TIME_HEADER): ... this.
39875 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39876 instances to ...
39877 (KERNEL_MACHINE_TIME_HEADER): ... this.
39878 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39879 instances to ...
39880 (KERNEL_MACHINE_TIME_HEADER): ... this.
39881
39882 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39883 (grub_millisleep): New function.
39884 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39885 (grub_millisleep): New function.
39886 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39887 Remove `grub/machine/time.h' include.
39888 (grub_millisleep): New function.
39889 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39890 Remove `grub/machine/time.h' include.
39891 (grub_millisleep): New function.
39892
39893 * include/grub/misc.h (grub_div_roundup): New function.
39894
39895 * kern/misc.c: Include `<grub/time.h>'.
39896 (grub_millisleep_generic): New function.
39897
39898 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39899 Add `time.h'.
39900 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39901 Add `time.h'.
39902 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39903 `machine/time.h'. Add `time.h'.
39904 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39905
39906 2007-10-21 Robert Millan <rmh@aybabtu.com>
39907
39908 * include/grub/misc.h (grub_max): New function.
39909
39910 2007-10-21 Robert Millan <rmh@aybabtu.com>
39911
39912 * util/misc.c (grub_util_info): Call fflush() before returning.
39913
39914 2007-10-20 Robert Millan <rmh@aybabtu.com>
39915
39916 * genmk.rb (Image): Copy `extra_flags' from here ...
39917 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39918
39919 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39920 to `argc' and `args' arguments.
39921
39922 2007-10-17 Robert Millan <rmh@aybabtu.com>
39923
39924 * kern/i386/loader.S: New file.
39925
39926 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39927 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39928 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39929 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39930 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39931 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39932 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39933 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39934 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39935 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
39936 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
39937 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
39938 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
39939 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
39940
39941 * kern/i386/realmode.S: New file.
39942
39943 * kern/i386/pc/startup.S (protstack): Moved from here ...
39944 * kern/i386/realmode.S (protstack)... to here.
39945 * kern/i386/pc/startup.S (gdt): Moved from here ...
39946 * kern/i386/realmode.S (gdt)... to here.
39947 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
39948 * kern/i386/realmode.S (prot_to_real)... to here.
39949
39950 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
39951 `kern/i386/realmode.S'.
39952
39953 2007-10-17 Robert Millan <rmh@aybabtu.com>
39954
39955 * include/grub/i386/loader.h: New file.
39956
39957 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
39958 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39959 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39960 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39961 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
39962 * include/grub/i386/loader.h (grub_linux_prot_size)
39963 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39964 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39965 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39966 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
39967
39968 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
39969
39970 2007-10-15 Robert Millan <rmh@aybabtu.com>
39971
39972 * normal/misc.c (grub_normal_print_device_info): Do not probe for
39973 filesystem when dev->disk is unset.
39974 Do probe for filesystem even when dev->disk->has_partitions is set.
39975 In case a filesystem is found, always report it.
39976 In case it isn't, if dev->disk->has_partitions is set, report that
39977 a partition table was found instead of reporting that no filesystem
39978 could be identified.
39979
39980 2007-10-12 Robert Millan <rmh@aybabtu.com>
39981
39982 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
39983 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
39984
39985 * include/grub/types.h (grub_host_to_target16): New macro.
39986 (grub_host_to_target32): Likewise.
39987 (grub_host_to_target64): Likewise.
39988 (grub_target_to_host16): Likewise.
39989 (grub_target_to_host32): Likewise.
39990 (grub_target_to_host64): Likewise.
39991
39992 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39993 Renamed from to ...
39994 (GRUB_MOD_ALIGN): ...this. Update all users.
39995
39996 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
39997 grub_host_to_target32.
39998 Replace grub_be_to_cpu32 with grub_target_to_host32.
39999 (load_modules): Likewise.
40000 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40001 Replace grub_be_to_cpu32 with grub_target_to_host32.
40002 Replace grub_cpu_to_be16 with grub_host_to_target16.
40003 Replace grub_cpu_to_be32 grub_host_to_target32.
40004
40005 2007-10-12 Robert Millan <rmh@aybabtu.com>
40006
40007 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40008 * util/elf/grub-mkimage.c: ... here.
40009
40010 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40011 `util/powerpc/ieee1275/grub-mkimage.c'.
40012
40013 2007-10-07 Robert Millan <rmh@aybabtu.com>
40014
40015 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40016 and make it easier to figure out.
40017 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40018 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40019 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40020 leave us with less than HEAP_MIN_SIZE total heap.
40021 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40022
40023 2007-10-03 Robert Millan <rmh@aybabtu.com>
40024
40025 * include/grub/i386/io.h: New file.
40026 * commands/i386/pc/play.c (inb): Removed.
40027 (outb): Removed.
40028 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40029 with grub_outb().
40030 * term/i386/pc/serial.c (inb): Removed.
40031 (outb): Removed.
40032 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40033 with grub_outb().
40034 * term/i386/pc/vga.c (inb): Removed.
40035 (outb): Removed.
40036 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40037 with grub_outb().
40038
40039 2007-10-02 Robert Millan <rmh@aybabtu.com>
40040
40041 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40043 Reported by Marcin Kurek.
40044
40045 2007-09-07 Robert Millan <rmh@aybabtu.com>
40046
40047 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40048 SmartFirmware version updates (as released by Sven Luther), and avoid
40049 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40050 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40051 known broken.
40052
40053 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40054
40055 From Hitoshi Ozeki:
40056 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40057 when merging two regions.
40058
40059 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40060
40061 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40062 * normal/completion.c (grub_normal_do_completion): Likewise.
40063 Reported by Hitoshi Ozeki.
40064
40065 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40066
40067 Do not use devices at boot in chainloading.
40068
40069 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40070 (boot_part_addr): Likewise.
40071 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40072 with BOOT_DRIVE and BOOT_PART_ADDR.
40073 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40074 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40075
40076 2007-08-29 Robert Millan <rmh@aybabtu.com>
40077
40078 Patch from Simon Peter <dn.tlp@gmx.net>:
40079 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40080 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40081 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40082 util/i386/pc/grub-setup.c_DEPENDENCIES.
40083 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40084 util/grub-probe.c_DEPENDENCIES.
40085 * conf/powerpc-ieee1275.rmk: Likewise.
40086
40087 2007-08-28 Robert Millan <rmh@aybabtu.com>
40088
40089 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40090 to tell grub-mkdevicemap how to name devices.
40091 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40092 feature).
40093
40094 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40095 util/i386/get_disk_name.c.
40096 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40097 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40098 util/ieee1275/get_disk_name.c.
40099
40100 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40101
40102 * DISTLIST: Add util/i386/get_disk_name.c and
40103 util/ieee1275/get_disk_name.c.
40104
40105 * util/grub-mkdevicemap.c: Replace device naming logic with
40106 grub_util_get_disk_name() calls.
40107
40108 2007-08-20 Robert Millan <rmh@aybabtu.com>
40109
40110 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40111 (so that it works for both plural and singular quantities).
40112
40113 2007-08-05 Robert Millan <rmh@aybabtu.com>
40114
40115 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40116 so that [xz] isn't taken into account when determining order.
40117
40118 2007-08-02 Marco Gerards <marco@gnu.org>
40119
40120 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40121 `include/multiboot2.h', `include/grub/elfload.h',
40122 `include/multiboot.h', `include/grub/multiboot.h',
40123 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40124 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40125 `kern/elf.c', `loader/multiboot_loader.c',
40126 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40127 `loader/i386/pc/multiboot2.c',
40128 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40129 `util/i386/pc/grub-mkrescue.in'. Remove
40130 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40131 `include/grub/i386/pc/util/biosdisk.h' and
40132 `include/grub/powerpc/ieee1275/multiboot.h'.
40133
40134 2007-08-02 Bean <bean123ch@gmail.com>
40135
40136 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40137 (ntfs_mod_SOURCES): New variable.
40138 (ntfs_mod_CFLAGS): Likewise.
40139 (ntfs_mod_LDFLAGS): Likewise.
40140
40141 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40142 (grub_probe_SOURCES): Likewise.
40143 (grub_emu_SOURCES): Likewise.
40144
40145 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40146 (grub_emu_SOURCES): Likewise.
40147
40148 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40149 (grub_emu_SOURCES): Likewise.
40150
40151 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40152
40153 * fs/ntfs.c: New file.
40154
40155 2007-08-02 Bean <bean123ch@gmail.com>
40156
40157 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40158
40159 * file.h (grub_file): Likewise.
40160
40161 * fshelp.h (grub_fshelp_read_file): Likewise.
40162
40163 * util/i386/pc/grub-setup.c (setup): Likewise.
40164 (save_first_sector): Likewise.
40165 (save_blocklists): Likewise.
40166
40167 * fs/affs.c (grub_affs_read_file): Likewise.
40168
40169 * fs/ext2.c (grub_ext2_read_file): Likewise.
40170
40171 * fs/fat.c (grub_fat_read_data): Likewise.
40172
40173 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40174
40175 * fs/hfs.c (grub_hfs_read_file): Likewise.
40176
40177 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40178
40179 * fs/jfs.c (grub_jfs_read_file): Likewise.
40180
40181 * fs/minix.c (grub_minix_read_file): Likewise.
40182
40183 * fs/sfs.c (grub_sfs_read_file): Likewise.
40184
40185 * fs/ufs.c (grub_ufs_read_file): Likewise.
40186
40187 * fs/xfs.c (grub_xfs_read_file): Likewise.
40188
40189 * command/blocklist.c (read_blocklist): Likewise.
40190 (print_blocklist): Likewise.
40191
40192 2007-08-02 Marco Gerards <marco@gnu.org>
40193
40194 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40195 `util/hostfs.c'.
40196
40197 * disk/host.c: New file.
40198
40199 * util/hostfs.c: Likewise.
40200
40201 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40202 return `GRUB_ERR_BAD_FS'.
40203 * fs/sfs.c (grub_sfs_mount): Likewise.
40204 * fs/xfs.c (grub_xfs_mount): Likewise.
40205
40206 * include/grub/disk.h (enum grub_disk_dev_id): Add
40207 `GRUB_DISK_DEVICE_HOST_ID'.
40208
40209 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40210
40211 2007-07-24 Jerone Young <jerone@gmail.com>
40212
40213 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40214 modules for compilation.
40215 * conf/powerpc-ieee1275.rmk: Likewise.
40216
40217 * include/multiboot.h: Move multiboot definitions to one file. Rename
40218 many definitions to not get grub specific.
40219 * include/multiboot2.h: Create header with multiboot 2 definitions.
40220 * include/grub/multiboot.h: Header for grub specific function
40221 prototypes and definitions.
40222 * include/grub/multiboot2.h: Likewise.
40223 * include/grub/multiboot_loader.h: Likewise.
40224 * include/grub/i386/pc/multiboot.h: Removed.
40225 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40226
40227 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40228 and 2 to allow for one multiboot and module commands.
40229 * loader/multiboot2.c: Add multiboot2 functionality.
40230 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40231 and definition names.
40232 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40233 2 functions.
40234 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40235 ieee1275 specific multiboot2 code.
40236
40237 * kern/i386/pc/startup.S: Change headers and definition names for
40238 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40239
40240 2007-07-22 Robert Millan <rmh@aybabtu.com>
40241
40242 * geninitheader.sh: Process file specified in first parameter rather
40243 than hardcoding grub_modules_init.lst.
40244 * geninit.sh: Likewise. Also, construct header name dynamically rather
40245 than hardcoding grub_modules_init.h.
40246
40247 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40248 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40249 grub_probe_init.[ch] and grub_setup_init.[ch].
40250
40251 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40252 grub_modules_init.h with grub_emu_init.h.
40253 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40254 grub_probe_init.[ch] files.
40255 * conf/i386-efi.rmk: Likewise.
40256 * conf/i386-pc.rmk: Likewise.
40257 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40258 grub_setup_init.[ch] files.
40259
40260 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40261 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40262 to initialize modules rather than a list of hardcoded functions.
40263 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40264 grub_init_all() to initialize modules rather than a list of hardcoded
40265 functions.
40266
40267 2007-07-22 Robert Millan <rmh@aybabtu.com>
40268
40269 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40270 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40271
40272 2007-07-22 Robert Millan <rmh@aybabtu.com>
40273
40274 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40275 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40276 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40277 flag when running on SmartFirmware.
40278 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40279 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40280 was set.
40281
40282 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40283 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40284 rather than decreasing it.
40285
40286 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40287 there's not enough space to do it, fail in the same way as when it
40288 can't be done because there are no partitions.
40289
40290 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40291 when nvsetenv failed.
40292
40293 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40294
40295 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40296 because this rule is automatically generated.
40297 (grub-mkrescue): Removed for the same reason as above.
40298
40299 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40300
40301 Migrate to GNU General Public License Version 3.
40302
40303 * COPYING: Replaced with the plain text version of GPLv3.
40304
40305 * config.guess: Updated from gnulib.
40306 * config.sub: Likewise.
40307
40308 * geninit.sh: Output a GPLv3 copyright notice.
40309 * geninitheader.sh: Likewise.
40310 * genmodsrc.sh: Likewise.
40311 * gensymlist.sh.in: Likewise.
40312
40313 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40314 * boot/i386/pc/diskboot.S: Likewise.
40315 * boot/i386/pc/pxeboot.S: Likewise.
40316 * commands/blocklist.c: Likewise.
40317 * commands/boot.c: Likewise.
40318 * commands/cat.c: Likewise.
40319 * commands/cmp.c: Likewise.
40320 * commands/configfile.c: Likewise.
40321 * commands/echo.c: Likewise.
40322 * commands/help.c: Likewise.
40323 * commands/ls.c: Likewise.
40324 * commands/search.c: Likewise.
40325 * commands/terminal.c: Likewise.
40326 * commands/test.c: Likewise.
40327 * commands/videotest.c: Likewise.
40328 * commands/i386/cpuid.c: Likewise.
40329 * commands/i386/pc/halt.c: Likewise.
40330 * commands/i386/pc/play.c: Likewise.
40331 * commands/i386/pc/reboot.c: Likewise.
40332 * commands/i386/pc/vbeinfo.c: Likewise.
40333 * commands/i386/pc/vbetest.c: Likewise.
40334 * commands/ieee1275/halt.c: Likewise.
40335 * commands/ieee1275/reboot.c: Likewise.
40336 * commands/ieee1275/suspend.c: Likewise.
40337 * disk/loopback.c: Likewise.
40338 * disk/lvm.c: Likewise.
40339 * disk/raid.c: Likewise.
40340 * disk/efi/efidisk.c: Likewise.
40341 * disk/i386/pc/biosdisk.c: Likewise.
40342 * disk/ieee1275/ofdisk.c: Likewise.
40343 * font/manager.c: Likewise.
40344 * fs/affs.c: Likewise.
40345 * fs/ext2.c: Likewise.
40346 * fs/fat.c: Likewise.
40347 * fs/fshelp.c: Likewise.
40348 * fs/hfs.c: Likewise.
40349 * fs/hfsplus.c: Likewise.
40350 * fs/iso9660.c: Likewise.
40351 * fs/jfs.c: Likewise.
40352 * fs/minix.c: Likewise.
40353 * fs/sfs.c: Likewise.
40354 * fs/ufs.c: Likewise.
40355 * fs/xfs.c: Likewise.
40356 * hello/hello.c: Likewise.
40357 * include/grub/acorn_filecore.h: Likewise.
40358 * include/grub/arg.h: Likewise.
40359 * include/grub/bitmap.h: Likewise.
40360 * include/grub/boot.h: Likewise.
40361 * include/grub/cache.h: Likewise.
40362 * include/grub/device.h: Likewise.
40363 * include/grub/disk.h: Likewise.
40364 * include/grub/dl.h: Likewise.
40365 * include/grub/elfload.h: Likewise.
40366 * include/grub/env.h: Likewise.
40367 * include/grub/err.h: Likewise.
40368 * include/grub/file.h: Likewise.
40369 * include/grub/font.h: Likewise.
40370 * include/grub/fs.h: Likewise.
40371 * include/grub/fshelp.h: Likewise.
40372 * include/grub/gzio.h: Likewise.
40373 * include/grub/hfs.h: Likewise.
40374 * include/grub/kernel.h: Likewise.
40375 * include/grub/loader.h: Likewise.
40376 * include/grub/lvm.h: Likewise.
40377 * include/grub/misc.h: Likewise.
40378 * include/grub/mm.h: Likewise.
40379 * include/grub/net.h: Likewise.
40380 * include/grub/normal.h: Likewise.
40381 * include/grub/parser.h: Likewise.
40382 * include/grub/partition.h: Likewise.
40383 * include/grub/pc_partition.h: Likewise.
40384 * include/grub/raid.h: Likewise.
40385 * include/grub/rescue.h: Likewise.
40386 * include/grub/script.h: Likewise.
40387 * include/grub/setjmp.h: Likewise.
40388 * include/grub/symbol.h: Likewise.
40389 * include/grub/term.h: Likewise.
40390 * include/grub/terminfo.h: Likewise.
40391 * include/grub/tparm.h: Likewise.
40392 * include/grub/types.h: Likewise.
40393 * include/grub/video.h: Likewise.
40394 * include/grub/efi/api.h: Likewise.
40395 * include/grub/efi/chainloader.h: Likewise.
40396 * include/grub/efi/console.h: Likewise.
40397 * include/grub/efi/console_control.h: Likewise.
40398 * include/grub/efi/disk.h: Likewise.
40399 * include/grub/efi/efi.h: Likewise.
40400 * include/grub/efi/pe32.h: Likewise.
40401 * include/grub/efi/time.h: Likewise.
40402 * include/grub/i386/linux.h: Likewise.
40403 * include/grub/i386/setjmp.h: Likewise.
40404 * include/grub/i386/types.h: Likewise.
40405 * include/grub/i386/efi/kernel.h: Likewise.
40406 * include/grub/i386/efi/loader.h: Likewise.
40407 * include/grub/i386/efi/time.h: Likewise.
40408 * include/grub/i386/pc/biosdisk.h: Likewise.
40409 * include/grub/i386/pc/boot.h: Likewise.
40410 * include/grub/i386/pc/chainloader.h: Likewise.
40411 * include/grub/i386/pc/console.h: Likewise.
40412 * include/grub/i386/pc/init.h: Likewise.
40413 * include/grub/i386/pc/kernel.h: Likewise.
40414 * include/grub/i386/pc/loader.h: Likewise.
40415 * include/grub/i386/pc/memory.h: Likewise.
40416 * include/grub/i386/pc/multiboot.h: Likewise.
40417 * include/grub/i386/pc/serial.h: Likewise.
40418 * include/grub/i386/pc/time.h: Likewise.
40419 * include/grub/i386/pc/vbe.h: Likewise.
40420 * include/grub/i386/pc/vbeblit.h: Likewise.
40421 * include/grub/i386/pc/vbefill.h: Likewise.
40422 * include/grub/i386/pc/vbeutil.h: Likewise.
40423 * include/grub/i386/pc/vga.h: Likewise.
40424 * include/grub/ieee1275/ieee1275.h: Likewise.
40425 * include/grub/ieee1275/ofdisk.h: Likewise.
40426 * include/grub/powerpc/libgcc.h: Likewise.
40427 * include/grub/powerpc/setjmp.h: Likewise.
40428 * include/grub/powerpc/types.h: Likewise.
40429 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40430 * include/grub/powerpc/ieee1275/console.h: Likewise.
40431 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40432 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40433 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40434 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40435 * include/grub/powerpc/ieee1275/time.h: Likewise.
40436 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40437 * include/grub/sparc64/libgcc.h: Likewise.
40438 * include/grub/sparc64/setjmp.h: Likewise.
40439 * include/grub/sparc64/types.h: Likewise.
40440 * include/grub/sparc64/ieee1275/console.h: Likewise.
40441 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40442 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40443 * include/grub/sparc64/ieee1275/time.h: Likewise.
40444 * include/grub/util/biosdisk.h: Likewise.
40445 * include/grub/util/getroot.h: Likewise.
40446 * include/grub/util/lvm.h: Likewise.
40447 * include/grub/util/misc.h: Likewise.
40448 * include/grub/util/raid.h: Likewise.
40449 * include/grub/util/resolve.h: Likewise.
40450 * io/gzio.c: Likewise.
40451 * kern/device.c: Likewise.
40452 * kern/disk.c: Likewise.
40453 * kern/dl.c: Likewise.
40454 * kern/elf.c: Likewise.
40455 * kern/env.c: Likewise.
40456 * kern/err.c: Likewise.
40457 * kern/file.c: Likewise.
40458 * kern/fs.c: Likewise.
40459 * kern/loader.c: Likewise.
40460 * kern/main.c: Likewise.
40461 * kern/misc.c: Likewise.
40462 * kern/mm.c: Likewise.
40463 * kern/parser.c: Likewise.
40464 * kern/partition.c: Likewise.
40465 * kern/rescue.c: Likewise.
40466 * kern/term.c: Likewise.
40467 * kern/efi/efi.c: Likewise.
40468 * kern/efi/init.c: Likewise.
40469 * kern/efi/mm.c: Likewise.
40470 * kern/i386/dl.c: Likewise.
40471 * kern/i386/efi/init.c: Likewise.
40472 * kern/i386/efi/startup.S: Likewise.
40473 * kern/i386/pc/init.c: Likewise.
40474 * kern/i386/pc/lzo1x.S: Likewise.
40475 * kern/i386/pc/startup.S: Likewise.
40476 * kern/ieee1275/ieee1275.c: Likewise.
40477 * kern/powerpc/cache.S: Likewise.
40478 * kern/powerpc/dl.c: Likewise.
40479 * kern/powerpc/ieee1275/cmain.c: Likewise.
40480 * kern/powerpc/ieee1275/crt0.S: Likewise.
40481 * kern/powerpc/ieee1275/init.c: Likewise.
40482 * kern/powerpc/ieee1275/openfw.c: Likewise.
40483 * kern/sparc64/cache.S: Likewise.
40484 * kern/sparc64/dl.c: Likewise.
40485 * kern/sparc64/ieee1275/init.c: Likewise.
40486 * kern/sparc64/ieee1275/openfw.c: Likewise.
40487 * loader/efi/chainloader.c: Likewise.
40488 * loader/efi/chainloader_normal.c: Likewise.
40489 * loader/i386/efi/linux.c: Likewise.
40490 * loader/i386/efi/linux_normal.c: Likewise.
40491 * loader/i386/pc/chainloader.c: Likewise.
40492 * loader/i386/pc/chainloader_normal.c: Likewise.
40493 * loader/i386/pc/linux.c: Likewise.
40494 * loader/i386/pc/linux_normal.c: Likewise.
40495 * loader/i386/pc/multiboot.c: Likewise.
40496 * loader/i386/pc/multiboot_normal.c: Likewise.
40497 * loader/powerpc/ieee1275/linux.c: Likewise.
40498 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40499 * normal/arg.c: Likewise.
40500 * normal/cmdline.c: Likewise.
40501 * normal/command.c: Likewise.
40502 * normal/completion.c: Likewise.
40503 * normal/execute.c: Likewise.
40504 * normal/function.c: Likewise.
40505 * normal/lexer.c: Likewise.
40506 * normal/main.c: Likewise.
40507 * normal/menu.c: Likewise.
40508 * normal/menu_entry.c: Likewise.
40509 * normal/misc.c: Likewise.
40510 * normal/parser.y: Likewise.
40511 * normal/script.c: Likewise.
40512 * normal/i386/setjmp.S: Likewise.
40513 * normal/powerpc/setjmp.S: Likewise.
40514 * normal/sparc64/setjmp.S: Likewise.
40515 * partmap/acorn.c: Likewise.
40516 * partmap/amiga.c: Likewise.
40517 * partmap/apple.c: Likewise.
40518 * partmap/gpt.c: Likewise.
40519 * partmap/pc.c: Likewise.
40520 * partmap/sun.c: Likewise.
40521 * term/gfxterm.c: Likewise.
40522 * term/terminfo.c: Likewise.
40523 * term/efi/console.c: Likewise.
40524 * term/i386/pc/console.c: Likewise.
40525 * term/i386/pc/serial.c: Likewise.
40526 * term/i386/pc/vesafb.c: Likewise.
40527 * term/i386/pc/vga.c: Likewise.
40528 * term/ieee1275/ofconsole.c: Likewise.
40529 * util/biosdisk.c: Likewise.
40530 * util/console.c: Likewise.
40531 * util/genmoddep.c: Likewise.
40532 * util/getroot.c: Likewise.
40533 * util/grub-emu.c: Likewise.
40534 * util/grub-mkdevicemap.c: Likewise.
40535 * util/grub-probe.c: Likewise.
40536 * util/lvm.c: Likewise.
40537 * util/misc.c: Likewise.
40538 * util/raid.c: Likewise.
40539 * util/resolve.c: Likewise.
40540 * util/update-grub.in: Likewise.
40541 * util/update-grub_lib.in: Likewise.
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 * util/i386/efi/grub-install.in: Likewise.
40546 * util/i386/efi/grub-mkimage.c: Likewise.
40547 * util/i386/pc/grub-install.in: Likewise.
40548 * util/i386/pc/grub-mkimage.c: Likewise.
40549 * util/i386/pc/grub-mkrescue.in: Likewise.
40550 * util/i386/pc/grub-setup.c: Likewise.
40551 * util/i386/pc/misc.c: Likewise.
40552 * util/powerpc/ieee1275/grub-install.in: Likewise.
40553 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40554 * util/powerpc/ieee1275/misc.c: Likewise.
40555 * video/bitmap.c: Likewise.
40556 * video/video.c: Likewise.
40557 * video/i386/pc/vbe.c: Likewise.
40558 * video/i386/pc/vbeblit.c: Likewise.
40559 * video/i386/pc/vbefill.c: Likewise.
40560 * video/i386/pc/vbeutil.c: Likewise.
40561 * video/readers/tga.c: Likewise.
40562
40563 2007-07-02 Robert Millan <rmh@aybabtu.com>
40564
40565 * conf/i386-efi.rmk: Replace obsolete reference to
40566 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40567 with util/getroot.c.
40568 * conf/powerpc-ieee1275.rmk: Likewise.
40569 * conf/sparc64-ieee1275.rmk: Likewise.
40570
40571 * util/grub-emu.c (main): Fix unchecked pointer handling.
40572
40573 2007-07-02 Robert Millan <rmh@aybabtu.com>
40574
40575 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40576 invocation to fail, in order to support partition-less media.
40577
40578 * util/i386/pc/grub-install.in: Likewise.
40579
40580 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40581 which fs or partmap modules are needed (akin to its sister scripts).
40582
40583 Also use grub-probe to get rid of unportable /proc/mounts check.
40584
40585 Print the same informational message that the other scripts do, before
40586 exiting.
40587
40588 2007-06-23 Robert Millan <rmh@aybabtu.com>
40589
40590 * util/update-grub_lib.in (font_path): New function. Determine whether
40591 a font file can be found and, if so, echo the GRUB path to it.
40592
40593 * util/update-grub.in: Handle multiple terminals depending on user
40594 input, platform availability and font file presence. Propagate
40595 variables of our findings to /etc/grub.d/ children.
40596
40597 * util/grub.d/00_header.in: Handle multiple terminals, based on
40598 environment setup by update-grub.
40599
40600 2007-06-23 Robert Millan <rmh@aybabtu.com>
40601
40602 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40603
40604 2007-06-21 Robert Millan <rmh@aybabtu.com>
40605
40606 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40607 indicate end of data section in kernel image.
40608 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40609 GRUB_KERNEL_MACHINE_DATA_END.
40610
40611 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40612 space for it.
40613 * kern/i386/efi/startup.S: Likewise.
40614
40615 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40616 during image generation. Implement --prefix option to override this
40617 patch.
40618 * util/i386/efi/grub-mkimage.c: Likewise.
40619
40620 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40621 code to make path relative to its root into a separate function.
40622
40623 * util/i386/pc/grub-install.in: Use newly provided
40624 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40625 pass the result to grub-install --prefix.
40626
40627 2007-06-13 Robert Millan <rmh@aybabtu.com>
40628
40629 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40630 DEFAULT_DEVICE_MAP.
40631 * util/grub-emu.c: Use above definitions from misc.h instead of
40632 defining them.
40633 * util/grub-mkdevicemap.c: Likewise.
40634 * util/i386/pc/grub-setup.c: Likewise.
40635 * util/grub-probe.c: Likewise.
40636 (probe): Abort with grub_util_error() when either
40637 grub_guess_root_device or grub_util_get_grub_dev fails.
40638
40639 2007-06-12 Robert Millan <rmh@aybabtu.com>
40640
40641 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40642 "pager" assignment.
40643 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40644 "pcdata".
40645 * util/grub-probe.c (probe): Likewise for "drive_name".
40646
40647 2007-06-11 Robert Millan <rmh@aybabtu.com>
40648
40649 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40650 not just the cdrom one.
40651
40652 2007-06-11 Robert Millan <rmh@aybabtu.com>
40653
40654 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40655 Add --pkglibdir=DIR option to override pkglibdir.
40656 Mention --image-type=TYPE in help output.
40657 Fix --grub-mkimage (it was a no-op).
40658 Abort gracefully when no parameter is given.
40659
40660 2007-06-11 Robert Millan <rmh@aybabtu.com>
40661
40662 * util/i386/pc/grub-mkrescue.in: New file.
40663 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40664 * Makefile.in: Handle bin_SCRIPTS.
40665
40666 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40667
40668 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40669 list of video modes.
40670
40671 2007-06-06 Robert Millan <rmh@aybabtu.com>
40672
40673 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40674 file doesn't exist, or if it is in a filesystem grub can't read.
40675
40676 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40677 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40678 header comment to fit in 80 columns when the variables are resolved.
40679
40680 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40681 could be identified by update-grub. Remove redundant check for
40682 unifont.pff existence (since convert_system_path_to_grub_path now
40683 handles that).
40684
40685 2007-06-04 Robert Millan <rmh@aybabtu.com>
40686
40687 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40688
40689 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40690
40691 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40692
40693 2007-06-04 Robert Millan <rmh@aybabtu.com>
40694
40695 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40696
40697 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40698 grub_apple_partition_map_fini.
40699
40700 * util/biosdisk.c
40701 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40702 to access >2 TiB disks).
40703
40704 Print disk->total_sectors with %llu instead of %lu, since this
40705 variable is always 64-bit (prevents wrong disk size from being displayed
40706 on either >2 TiB disk or big-endian CPU).
40707
40708 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40709 into a generic case that supports all (sane) partition maps.
40710
40711 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40712 breaks big-endian.
40713
40714 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40715 and grub_apple_partition_map_fini() after that.
40716
40717 2007-06-01 Robert Millan <rmh@aybabtu.com>
40718
40719 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40720
40721 * util/grub.d/00_header.in: Only enable gfxterm when
40722 convert_system_path_to_grub_path() succeeds.
40723
40724 2007-05-20 Robert Millan <rmh@aybabtu.com>
40725
40726 * util/update-grub_lib.in: New file.
40727 * DISTLIST: Add update-grub_lib.in.
40728 * conf/common.rmk: Generate update-grub_lib and install it in
40729 $(lib_DATA).
40730 * Makefile.in: Add install routine for $(lib_DATA).
40731
40732 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40733 function provided by update-grub_lib to support arbitrary paths of
40734 unifont.pff.
40735 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40736 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40737
40738 2007-05-19 Robert Millan <rmh@aybabtu.com>
40739
40740 * commands/i386/cpuid.c: New module.
40741 * DISTLIST: Add it.
40742 * conf/i386-efi.rmk: Enable cpuid.mod.
40743 * conf/i386-pc.rmk: Likewise.
40744
40745 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40746
40747 * kern/disk.c (grub_disk_read): Check return value of
40748 grub_realloc().
40749
40750 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40751
40752 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40753 arrays.
40754 * disk/raid.c (grub_raid_open): Likewise.
40755
40756 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40757
40758 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40759 stack instead of on the heap.
40760
40761 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40762 before doing a read on it.
40763
40764 * configure.ac: Only use -fno-stack-protector for the target
40765 environment.
40766
40767 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40768
40769 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40770 __attribute_ ((unused)) to mode_type argument.
40771
40772 * util/getroot.c (grub_guess_root_device): Fix #endif.
40773
40774 * kern/misc.c (memcmp): Fix prototype.
40775
40776 * include/grub/partition.h [GRUB_UTIL]
40777 (grub_gpt_partition_map_init): Add prototype.
40778 (grub_gpt_partition_map_fini): Likewise.
40779
40780 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40781 at the right place.
40782
40783 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40784 (grub_fat_read_data): Likewise.
40785 (grub_fat_find_dir): Likewise.
40786
40787 * font/manager.c (find_glyph): Make table a const.
40788 (grub_font_get_glyph): Remove bitmap from if statement.
40789
40790 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40791
40792 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40793 code, first search for device in /dev/mapper, then in /dev.
40794 (grub_util_get_grub_dev): New function.
40795 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40796 prototype.
40797 * util/grub-probe.c (probe): Remove check for RAID, call
40798 grub_util_get_grub_dev() instead of
40799 grub_util_biosdisk_get_grub_dev().
40800 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40801 grub_util_biosdisk_get_grub_dev().
40802 * util/i386/pc/grub-setup.c (main): Likewise.
40803
40804 2007-05-16 Robert Millan <rmh@aybabtu.com>
40805
40806 * DISTLIST: Update for the latest changes.
40807 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40808 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40809 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40810 grub/util/biosdisk.h.
40811 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40812 grub/util/biosdisk.h.
40813
40814 2007-05-16 Robert Millan <rmh@aybabtu.com>
40815
40816 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40817
40818 2007-05-16 Robert Millan <rmh@aybabtu.com>
40819
40820 * util/i386/efi/grub-install.in: New.
40821 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40822 newly added grub-install.
40823 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40824 include.
40825 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40826 grub/util/biosdisk.h.
40827 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40828 grub/util/biosdisk.h.
40829
40830 2007-05-16 Robert Millan <rmh@aybabtu.com>
40831
40832 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40833 * include/grub/util/biosdisk.h: ... here.
40834 * util/i386/pc/biosdisk.c: Moved to ...
40835 * util/biosdisk.c: ... here.
40836 * util/i386/pc/getroot.c: Moved to ...
40837 * util/getroot.c: ... here.
40838 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40839 * util/grub-mkdevicemap.c: ... here.
40840 * util/i386/pc/grub-probe.c: Moved to ...
40841 * util/grub-probe.c: ... here.
40842
40843 2007-05-15 Robert Millan <rmh@aybabtu.com>
40844
40845 * util/update-grub.in: Remove duplicated line in grub.cfg header
40846 message.
40847
40848 2007-05-13 Robert Millan <rmh@aybabtu.com>
40849
40850 * util/update-grub.in: Fix a few assumptions about the devices holding
40851 /, /boot and /boot/grub being the same.
40852 * util/grub.d/00_header.in: Likewise.
40853 * util/grub.d/10_hurd.in: Likewise.
40854 * util/grub.d/10_linux.in: Likewise.
40855
40856 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40857 patterns. Use that to define the `.old' suffix as older than `'.
40858
40859 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40860
40861 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40862 the grub.cfg header message.
40863
40864 2007-05-11 Robert Millan <rmh@aybabtu.com>
40865
40866 * util/update-grub.in: Create device.map if it doesn't already exist,
40867 before attempting to run grub-probe.
40868 Check for grub-probe and grub-mkdevicemap with the same code
40869 grub-install is using.
40870 Remove test mode.
40871
40872 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40873
40874 * Makefile.in: Add the datarootdir autoconf variable.
40875
40876 2007-05-09 Robert Millan <rmh@aybabtu.com>
40877
40878 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40879 fail gracefully if dev->disk->partition == NULL.
40880
40881 2007-05-07 Robert Millan <rmh@aybabtu.com>
40882
40883 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40884 determine partition map module.
40885 * util/i386/pc/grub-install.in: Use this feature to decide which
40886 partition module to load, instead of hardcoding pc and gpt.
40887
40888 2007-05-07 Robert Millan <rmh@aybabtu.com>
40889
40890 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40891 source directory differs from build directory.
40892
40893 2007-05-05 Robert Millan <rmh@aybabtu.com>
40894
40895 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40896 initialisation.
40897
40898 2007-05-05 Robert Millan <rmh@aybabtu.com>
40899
40900 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40901
40902 2007-05-05 Robert Millan <rmh@aybabtu.com>
40903
40904 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40905 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40906
40907 2007-05-05 Robert Millan <rmh@aybabtu.com>
40908
40909 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40910 (grub_probe_SOURCES): Likewise.
40911 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40912 GPT and initialize dos_part and bsd_part accordingly.
40913 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40914 install_bsd_part.
40915 (main): Activate gpt module for use during partition identification,
40916 and deactivate it afterwards.
40917 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40918 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40919 partition identification, and deactivate it afterwards.
40920
40921 2007-05-05 Robert Millan <rmh@aybabtu.com>
40922
40923 * term/i386/pc/console.c (grub_console_fini): Call
40924 grub_term_set_current() before grub_term_unregister().
40925
40926 2007-05-04 Robert Millan <rmh@aybabtu.com>
40927
40928 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40929 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40930 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40931 and update-grub_DATA.
40932 * conf/common.rmk: Build and install update-grub components.
40933 * conf/common.mk: Regenerate.
40934 * util/update-grub.in: New. Core of update-grub.
40935 * util/grub.d/00_header.in: New. Generates grub.cfg header.
40936 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
40937 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
40938 * util/grub.d/README: New. Document grub.d directory layout.
40939
40940 2007-05-01 Robert Millan <rmh@aybabtu.com>
40941
40942 * util/grub-emu.c: Move initialization functions
40943 grub_util_biosdisk_init() and grub_init_all() before
40944 grub_util_biosdisk_get_grub_dev(), which relies on them.
40945
40946 2007-04-19 Robert Millan <rmh@aybabtu.com>
40947
40948 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
40949 it is used later.
40950
40951 2007-04-18 Jerone Young <jerone@gmail.com>
40952
40953 * kernel/elf.c: Add missing parenthesis for conditional statement
40954 stanza.
40955
40956 2007-04-10 Jerone Young <jerone@gmail.com>
40957
40958 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
40959 continue on and look for device node with real device name.
40960
40961 2007-04-10 Jerone Young <jerone@gmail.com>
40962
40963 * configure.ac: Add argument for autoconf to use transformation
40964 ability.
40965 * Makefile.in: Add autoconf package transformation code.
40966 * util/i386/pc/grub-install.in: Likewise.
40967 * util/powerpc/ieee1275/grub-install.in: Likewise.
40968
40969 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40970
40971 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
40972 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
40973 (EXT2_REVISION): Likewise.
40974 (EXT2_INODE_SIZE): Likewise.
40975 (struct grub_ext2_block_group): Added a missing member
40976 "used_dirs".
40977 (grub_ext2_read_inode): Divide by the inode size in a superblock
40978 instead of 128 to obtain INODES_PER_BLOCK.
40979 Use the macro EXT2_INODE_SIZE instead of directly using
40980 SBLOCK->INODE_SIZE.
40981
40982 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40983
40984 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
40985 superblock instead of the structure size to compute an
40986 offset. This fixes the problem that GRUB could not read a
40987 filesystem when inode size is different from 128-byte.
40988
40989 2007-03-05 Marco Gerards <marco@gnu.org>
40990
40991 * normal/main.c (read_config_file): When "menu" is not set, create
40992 an initial context.
40993
40994 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40995
40996 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
40997 (HEAP_LIMIT): New macro.
40998 (grub_claim_heap): Claim memory up to `heaplimit'.
40999
41000 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41001
41002 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41003 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41004 (_start): Likewise.
41005 (grub_arch_modules_addr): Return address after `_end'.
41006 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41007 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41008 (add_segments): Calculate `_end' from phdr size and location.
41009 (ALIGN_UP): Moved to ...
41010 * include/grub/misc.h: here.
41011 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41012 New macro.
41013 (GRUB_IEEE1275_MODULE_BASE): Removed.
41014
41015 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41016
41017 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41018 loop boundary.
41019
41020 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41021
41022 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41023 All users updated.
41024 (grub_elf64_load_hook_t): Likewise.
41025 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41026 debug output.
41027
41028 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41029
41030 * kern/mm.c: Update copyright.
41031 (grub_mm_debug): Correct syntax error.
41032 (grub_mm_dump_free): New function.
41033 (grub_debug_free): Call `grub_free'.
41034 * include/grub/mm.h: Update copyright.
41035 (grub_mm_dump_free): Add declaration.
41036
41037 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41038
41039 * include/grub/ieee1275/ieee1275.h: Update copyright.
41040 * kern/powerpc/ieee1275/init.c: Likewise.
41041 * kern/powerpc/ieee1275/openfw.c: Likewise.
41042
41043 * loader/powerpc/ieee1275/linux.c: Likewise.
41044 * include/grub/elfload.h: Likewise.
41045 * kern/elf.c: Likewise.
41046 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41047 callers.
41048 (grub_elf64_load): Likewise.
41049 (grub_elf32_load_segment): Move to a nested function.
41050 (grub_elf64_load_segment): Likewise.
41051
41052 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41053
41054 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41055 prototype.
41056 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41057 (grub_heap_len): Likewise.
41058 (HEAP_SIZE): New macro.
41059 (grub_claim_heap): New function.
41060 (grub_machine_init): Don't claim heap directly. Call
41061 `grub_claim_heap'.
41062 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41063 (grub_available_iterate): New function.
41064
41065 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41066
41067 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41068 * configure.ac: Use it for testing the HOST and TARGET compilers.
41069
41070 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41071
41072 * Makefile.in (enable_grub_emu): New variable.
41073 * configure.ac (--enable-grub-emu): New option.
41074 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41075 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41076 * conf/i386-pc.rmk: Likewise.
41077 * conf/powerpc-ieee1275.rmk: Likewise.
41078 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41079
41080 2006-12-12 Marco Gerards <marco@gnu.org>
41081
41082 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41083
41084 * kern/env.c (grub_env_unset): Don't free the member `value' when
41085 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41086 pointer.
41087
41088 * normal/main.c (current_menu): Removed.
41089 (free_menu): Unset the `menu' environment variable.
41090 (grub_normal_menu_addentry): Make use of the environment variable
41091 `menu', instead of using the global `current_menu'. Allocate
41092 memory for the sourcecode of this entry.
41093 (read_config_file): New argument `nested', changed all callers.
41094 Only in the case of a new context, initialize a new menu. Set the
41095 `menu' environment variable.
41096 (grub_normal_execute): Don't set and unset the environment
41097 variable `menu' here anymore. Only free the menu when leaving the
41098 context.
41099
41100 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41101 leak.
41102
41103 2006-12-11 Marco Gerards <marco@gnu.org>
41104
41105 * normal/menu_entry.c (run): Fix off by one bug so the last line
41106 is executed. Move the loader check to outside the loop.
41107
41108 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41109
41110 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41111
41112 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41113
41114 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41115 the number of sectors. Reported by Andrey Shuvikov
41116 <mr_hyro@yahoo.com>.
41117
41118 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41119
41120 * kern/disk.c (grub_disk_read): When there is a read error, always
41121 try to read only the necessary data.
41122
41123 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41124 disk/raid.c.
41125 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41126 prototype.
41127 [GRUB_UTIL] (grub_raid_fini): Likewise.
41128 [GRUB_UTIL] (grub_lvm_init): Likewise.
41129 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41130 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41131 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41132 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41133 and grub_raid_fini().
41134
41135 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41136
41137 * include/grub/types.h (__unused): Rename to UNUSED.
41138 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41139 (grub_elf64_size): Likewise.
41140
41141 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41142
41143 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41144 grub_error_push and grub_error_pop in the error-handling path.
41145 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41146 length.
41147
41148 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41149
41150 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41151 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41153 (kernel_elf_SOURCES): Likewise.
41154 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41155 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41156 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41157 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41158 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41159 (elf_mod_SOURCES): New variable.
41160 (elf_mod_CFLAGS): Likewise.
41161 (elf_mod_LDFLAGS): Likewise.
41162 * include/grub/types.h (__unused): New macro.
41163 * include/grub/elfload.h: New file.
41164 * kern/elf.c: Likewise.
41165 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41166 (ELF32_LOADMASK): New macro.
41167 (ELF64_LOADMASK): Likewise.
41168 (vmlinux): Removed.
41169 (grub_linux_load32): New function.
41170 (grub_linux_load64): Likewise.
41171 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41172 Use grub_elf_t instead of grub_file_t.
41173
41174 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41175
41176 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41177 `catch_result' to struct set_color_args.
41178
41179 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41180
41181 * normal/menu.c: Include grub/script.h.
41182 * normal/menu_entry.c: Likewise.
41183 * include/grub/normal.h: Do not include grub/script.h.
41184
41185 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41186
41187 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41188
41189 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41190
41191 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41192 disk.
41193 (grub_disk_close): Print debug messages when closing a disk.
41194 (grub_disk_read): Print debug messages when disk read fails.
41195 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41196 filesystem type.
41197 * kern/partition.c: Include misc.h.
41198 (grub_partition_iterate): Print debug messages when detecting
41199 partition type.
41200
41201 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41202
41203 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41204 is negative.
41205 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41206
41207 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41208
41209 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41210 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41211
41212 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41213
41214 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41215 instead of sizeof(lv). Patch by Michael Guntsche.
41216
41217 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41218
41219 * disk/lvm.c: Rename VGS to VG_LIST.
41220 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41221 (grub_lvm_open): Likewise.
41222 Thanks to Michael Guntsche for finding this bug.
41223
41224 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41225
41226 * configure.ac (AC_INIT): Bumped to 1.95.
41227
41228 2006-10-14 Robert Millan <rmh@aybabtu.com>
41229
41230 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41231 with "/dev/.static/dev/md".
41232
41233 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41234
41235 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41236 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41237 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41238 DRIVE_NAME are always freed.
41239
41240 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41241 DOS_PART, as a DOS partition is counted from one instead of zero
41242 now. Reported by Robert Millan.
41243
41244 2006-10-14 Robert Millan <rmh@aybabtu.com>
41245
41246 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41247 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41248 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41249 string returned by grub_guess_root_device.
41250 * util/i386/pc/grub-setup.c: Likewise.
41251 * util/i386/pc/grub-probefs.c: Likewise.
41252
41253 * util/i386/pc/grub-probefs.c: Rename to ...
41254 * util/i386/pc/grub-probe.c: ... this.
41255 * DISTLIST: Remove grub-probefs, add grub-probe.
41256 * conf/i386-efi.rmk: Likewise.
41257 * conf/i386-pc.rmk: Likewise.
41258 * util/i386/pc/grub-install.in: Likewise.
41259
41260 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41261 choose which information we want to print.
41262
41263 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41264
41265 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41266 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41267 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41268 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41269 video/readers/tga.c and video/i386/pc/vbeutil.c.
41270
41271 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41272
41273 Added support for RAID and LVM.
41274
41275 * disk/lvm.c: New file.
41276 * disk/raid.c: Likewise.
41277 * include/grub/lvm.h: Likewise.
41278 * include/grub/raid.h: Likewise.
41279 * include/grub/util/lvm.h: Likewise.
41280 * include/grub/util/raid.h: Likewise.
41281 * util/lvm.c: Likewise.
41282 * util/raid.c: Likewise.
41283
41284 * include/grub/disk.h (grub_disk_dev_id): Add
41285 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41286 (grub_disk_get_size): New prototype.
41287 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41288 returns a partition.
41289 (grub_disk_get_size): New function.
41290
41291 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41292 verbatim if grub_install_dos_part is -2.
41293
41294 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41295 and LVM devices.
41296
41297 * util/i386/pc/grub-setup.c (setup): New argument
41298 MUST_EMBED. Force embedding of GRUB when the argument is
41299 true. Close FILE before returning.
41300 (main): Add support for RAID and LVM.
41301
41302 * conf/common.rmk: Add RAID and LVM modules.
41303 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41304 util/lvm.c.
41305 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41306
41307 * kern/misc.c (grub_strstr): New function.
41308 * include/grub/misc.h (grub_strstr): New prototype.
41309
41310 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41311
41312 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41313
41314 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41315
41316 * kern/misc.c (grub_strtoull): Guess the base only if not
41317 specified.
41318
41319 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41320
41321 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41322 PowerMac support.
41323
41324 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41325
41326 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41327
41328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41329 Remove `flags' argument. All callers changed.
41330 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41331 (IEEE1275_IHANDLE_INVALID): New variable.
41332 (IEEE1275_CELL_INVALID): New variable.
41333 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41334 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41335 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41336 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41337 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41338 codes from Open Firmware. All callers updated.
41339 (grub_ieee1275_next_property): Directly return Open Firmware return
41340 code.
41341 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41342 Standardize error checking from `grub_ieee1275_get_property'.
41343 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41344 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41345
41346 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41347
41348 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41349 `instance_to_package_args' to `instance_to_path_args'.
41350
41351 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41352 `grub_ieee1275_chosen'.
41353
41354 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41355 `grub_ieee1275_interpret'.
41356
41357 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41358
41359 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41360
41361 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41362
41363 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41364 (__cmpdi): Likewise.
41365
41366 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41367 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41368 `grub_ssize_t'.
41369
41370 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41371
41372 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41373 to type `grub_ssize_t'.
41374 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41375
41376 2006-09-22 Marco Gerards <marco@gnu.org>
41377
41378 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41379 newlines.
41380
41381 2006-09-22 Marco Gerards <marco@gnu.org>
41382
41383 * commands/echo.c: New file.
41384
41385 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41386
41387 * conf/common.rmk (echo_mod_SOURCES): New variable.
41388 (echo_mod_CFLAGS): Likewise.
41389 (echo_mod_LDFLAGS): Likewise.
41390
41391 2006-09-22 Marco Gerards <marco@gnu.org>
41392
41393 * normal/main.c (get_line): Malloc memory instead of using
41394 preallocated memory. Removed the arguments `cmdline' and
41395 `max_len'. Updated all callers.
41396
41397 2006-09-22 Marco Gerards <marco@gnu.org>
41398
41399 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41400 (normal_mod_DEPENDENCIES): Likewise.
41401
41402 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41403 (normal_mod_DEPENDENCIES): Likewise.
41404
41405 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41406
41407 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41408
41409 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41410 programs.
41411 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41412 (normal_mod_DEPENDENCIES): Likewise.
41413 * conf/i386-pc.mk: Regenerate.
41414 * conf/i386-efi.mk: Likewise
41415 * conf/common.mk: Likewise.
41416 * conf/powerpc-ieee1275.mk: Likewise.
41417 * conf/sparc64-ieee1275.mk: Likewise.
41418
41419 2006-09-22 Robert Millan <rmh@aybabtu.com>
41420
41421 Sync with i386 version.
41422 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41423 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41424
41425 2006-09-21 Robert Millan <rmh@aybabtu.com>
41426
41427 Import from GRUB Legacy (lib/device.c):
41428 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41429 (init_device_map) [__linux__]: Add support for I2O devices.
41430
41431 2006-09-14 Marco Gerards <marco@gnu.org>
41432
41433 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41434 `-melf_i386'.
41435
41436 2006-09-14 Robert Millan <rmh@aybabtu.com>
41437
41438 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41439 /boot/grub/*.lst.
41440
41441 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41442
41443 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41444 before adding it to device.map.
41445
41446 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41447
41448 * genmk.rb: Let GCC generate dependencies the first time it
41449 compiles a file; using the -MD option.
41450 * conf/common.mk: Regenerate.
41451 * conf/i386-pc.mk: Likewise.
41452 * conf/i386-efi.mk: Likewise.
41453 * conf/powerpc-ieee1275.mk: Likewise.
41454 * conf/sparc64-ieee1275.mk: Likewise.
41455
41456 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41457
41458 Move the prototypes of grub_setjmp and grub_longjmp to
41459 cpu/setjmp.h, so that each architecture may specify different
41460 attributes.
41461
41462 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41463 (grub_longjmp): Likewise.
41464 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41465 (grub_longjmp): Likewise.
41466 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41467 (grub_longjmp): Likewise.
41468
41469 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41470 [!GRUB_UTIL] (grub_longjmp): Removed.
41471
41472 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41473
41474 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41475 "color!" method does not return any value.
41476
41477 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41478
41479 * include/grub/bitmap.h: New file.
41480
41481 * include/grub/i386/pc/vbeutil.h: Likewise.
41482
41483 * video/bitmap.c: Likewise.
41484
41485 * video/readers/tga.c: Likewise.
41486
41487 * video/i386/pc/vbeutil.c: Likewise.
41488
41489 * commands/videotest.c: Code cleanup and updated to reflect to new
41490 video API.
41491
41492 * term/gfxterm.c: Likewise.
41493
41494 * video/video.c: Likewise.
41495
41496 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41497 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41498 (bitmap_mod_SOURCES): New entry.
41499 (bitmap_mod_CFLAGS): Likewise.
41500 (bitmap_mod_LDFLAGS): Likewise.
41501 (tga_mod_SOURCES): Likewise.
41502 (tga_mod_CFLAGS): Likewise.
41503 (tga_mod_LDFLAGS): Likewise.
41504
41505 * include/grub/video.h (grub_video_blit_operators): New enum type.
41506 (grub_video_render_target): Changed as forward declaration and moved
41507 actual definition to be video driver specific.
41508 (grub_video_adapter.blit_bitmap): Added blitting operator.
41509 (grub_video_adapter.blit_render_target): Likewise.
41510 (grub_video_blit_bitmap): Likewise.
41511 (grub_video_blit_render_target): Likewise.
41512
41513 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41514 driver specific render target definition.
41515 (grub_video_vbe_map_rgba): Added driver internal helper.
41516 (grub_video_vbe_unmap_color): Updated to use
41517 grub_video_i386_vbeblit_info.
41518 (grub_video_vbe_get_video_ptr): Likewise.
41519
41520 * include/grub/i386/pc/vbeblit.h
41521 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41522 grub_video_i386_vbeblit_info.
41523 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41524 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41525 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41526 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41527 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41528 (grub_video_i386_vbeblit_index_index): Likewise.
41529 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41530 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41531 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41532 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41533 operator.
41534 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41535 operator.
41536
41537 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41538 include/grub/i386/pc/vbeblit.h.
41539
41540 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41541 Updated to use grub_video_i386_vbeblit_info.
41542 (grub_video_i386_vbefill_R8G8B8): Likewise.
41543 (grub_video_i386_vbefill_index): Likewise.
41544 (grub_video_i386_vbefill): Added generic filler.
41545
41546 * video/i386/pc/vbefill.c: Updated to reflect changes on
41547 include/grub/i386/pc/vbefill.h.
41548
41549 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41550 grub_video_i386_vbeblit_info.
41551 (grub_video_vbe_unmap_color): Likewise.
41552 (grub_video_vbe_blit_glyph): Likewise.
41553 (grub_video_vbe_scroll): Likewise.
41554 (grub_video_vbe_draw_pixel): Removed function.
41555 (grub_video_vbe_get_pixel): Likewise.
41556 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41557 updated code to use it.
41558 (common_blitter): Added common blitter for render target and bitmap.
41559 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41560 (grub_video_vbe_blit_render_target): Likewise.
41561
41562 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41563
41564 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41565 is in text mode if there is no console control protocol instance
41566 available.
41567
41568 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41569
41570 * include/grub/video.h: Code cleanup.
41571
41572 * include/grub/i386/pc/vbe.h: Likewise.
41573
41574 * video/i386/pc/vbe.c: Likewise.
41575
41576 * video/i386/pc/vbeblit.c: Likewise.
41577
41578 * video/i386/pc/vbefill.c: Likewise.
41579
41580 * video/video.c: Likewise. Also added more comments.
41581
41582 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41583
41584 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41585 (struct grub_biosdisk_dap): Likewise.
41586
41587 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41588 linkage settings for all functions.
41589
41590 2006-07-12 Marco Gerards <marco@gnu.org>
41591
41592 * configure.ac (--enable-mm-debug): Fix typo.
41593
41594 * genkernsyms.sh.in: Use proper quoting for `CC'.
41595
41596 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41597
41598 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41599 (normal_mod_ASFLAGS): Remove "-m32".
41600
41601 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41602
41603 * util/misc.c: Include config.h.
41604 [!HAVE_MEMALIGN]: Do not include malloc.h.
41605 (grub_memalign): Use posix_memalign, if present. Then, use
41606 memalign, if present. Otherwise, emit an error.
41607
41608 * util/grub-emu.c: Do not include malloc.h.
41609
41610 * include/grub/util/misc.h: Include unistd.h. This is required for
41611 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41612 D. Eades III <hde@foobar-qux.org>.
41613
41614 * configure.ac (AC_GNU_SOURCE): Added.
41615 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41616 type.
41617
41618 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41619
41620 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41621 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41622
41623 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41624
41625 * include/grub/types.h (grub_host_addr_t): Rename to
41626 grub_target_addr_t.
41627 (grub_host_off_t): Rename to grub_target_off_t.
41628 (grub_host_size_t): Rename to grub_target_size_t.
41629 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41630 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41631
41632 * include/grub/kernel.h (struct grub_module_header): Change type
41633 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41634 (grub_module_info): Likewise.
41635
41636 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41637
41638 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41639 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41640 Velazquez <jesus.velazquez@gmail.com>.
41641
41642 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41643
41644 Count partitions from 1 instead of 0 in the string representation
41645 of partitions. Still use 0-based internally.
41646
41647 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41648 (sun_partition_map_iterate): Use grub_partition_t instead of
41649 struct grub_partition *. Cast DESC->START_CYLINDER to
41650 grub_uint64_t after converting the endian.
41651 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41652 (sun_partition_map_get_name): Add 1 to P->INDEX.
41653
41654 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41655 PCDATA->DOS_PART.
41656 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41657
41658 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41659 zero instead of one.
41660 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41661 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41662
41663 * partmap/apple.c (apple_partition_map_iterate): Change the type
41664 of POS to unsigned.
41665 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41666 (apple_partition_map_get_name): Add 1 into P->INDEX.
41667
41668 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41669 of POS to unsigned.
41670 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41671 calculate the offset of a partition.
41672 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41673 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41674
41675 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41676 SECTOR to grub_disk_addr_t.
41677 (acorn_partition_map_iterate): Likewise.
41678 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41679 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41680 top.
41681 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41682
41683 * kern/i386/pc/init.c (make_install_device): Add 1 into
41684 GRUB_INSTALL_DOS_PART.
41685
41686 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41687 conditional.
41688
41689 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41690
41691 Clean up the code to support 64-bit addressing in disks and
41692 files. This change is not enough for filesystems yet.
41693
41694 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41695 type of "start" to grub_uint64_t.
41696 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41697 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41698 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41699 convert addresses.
41700
41701 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41702 to grub_disk_addr_t.
41703
41704 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41705 string.
41706
41707 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41708
41709 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41710 to char *.
41711
41712 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41713
41714 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41715
41716 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41717
41718 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41719 to grub_off_t, to detect an error from grub_file_seek.
41720 (grub_multiboot_load_elf32): Likewise.
41721
41722 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41723 maximum unsigned long value when an overflow is detected.
41724 (grub_strtoull): New function.
41725 (grub_divmod64): Likewise.
41726 (grub_lltoa): use grub_divmod64.
41727
41728 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41729 grub_disk_addr_t.
41730 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41731 the pointer to next character. Use grub_strtoull instead of
41732 grub_strtoul.
41733 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41734 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41735 respectively.
41736
41737 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41738 return value is signed.
41739 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41740 test if OFFSET is less than zero, as OFFSET is unsigned now.
41741
41742 * kern/disk.c (struct grub_disk_cache): Change the type of
41743 "sector" to grub_disk_addr_t.
41744 (grub_disk_cache_get_index): Change the type of SECTOR to
41745 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41746 unsigned after shifting.
41747 (grub_disk_cache_invalidate): Change the type of SECTOR to
41748 grub_disk_addr_t.
41749 (grub_disk_cache_unlock): Likewise.
41750 (grub_disk_cache_store): Likewise.
41751 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41752 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41753 grub_disk_addr_t and grub_uint64_t, respectively.
41754 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41755 body, as the value of OFFSET is tweaked by
41756 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41757 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41758 respectively.
41759 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41760 body, as the value of OFFSET is tweaked by
41761 grub_disk_check_range. Change the types of LEN and N to
41762 grub_size_t.
41763
41764 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41765 and "saved_offset" to grub_off_t.
41766 (test_header): Cast BUF to char *.
41767 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41768 to char *.
41769 (grub_gzio_read): Change the types of OFFSET and SIZE to
41770 grub_off_t and grub_size_t, respectively.
41771
41772 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41773 Removed.
41774 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41775 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41776 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41777 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41778 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41779
41780 * include/grub/types.h (grub_off_t): Unconditionally set to
41781 grub_uint64_t.
41782 (grub_disk_addr_t): Changed to grub_uint64_t.
41783
41784 * include/grub/partition.h (struct grub_partition): Change the
41785 types of "start", "len" and "offset" to grub_disk_addr_t,
41786 grub_uint64_t and grub_disk_addr_t, respectively.
41787 (grub_partition_get_start): Return grub_disk_addr_t.
41788 (grub_partition_get_len): Return grub_uint64_t.
41789
41790 * include/grub/misc.h (grub_strtoull): New prototype.
41791 (grub_divmod64): Likewise.
41792
41793 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41794 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41795 grub_off_t, respectively.
41796 All callers and references changed.
41797
41798 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41799 grub_size_t in "read".
41800 All callers and references changed.
41801
41802 * include/grub/file.h (struct grub_file): Change the types of
41803 "offset" and "size" to grub_off_t and grub_off_t,
41804 respectively. Change the type of SECTOR to grub_disk_addr_t in
41805 "read_hook".
41806 (grub_file_read): Change the type of LEN to grub_size_t.
41807 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41808 grub_off_t.
41809 (grub_file_size): Return grub_off_t.
41810 (grub_file_tell): Likewise.
41811 All callers and references changed.
41812
41813 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41814 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41815 "write".
41816 (struct grub_disk): Change the type of "total_sectors" to
41817 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41818 "read_hook".
41819 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41820 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41821 (grub_disk_write): Likewise.
41822 All callers and references changed.
41823
41824 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41825 char * for grub_strncmp to silence gcc.
41826 (grub_iso9660_mount): Likewise.
41827 (grub_iso9660_mount): Likewise.
41828 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41829 return statement.
41830 (grub_iso9660_iterate_dir): Likewise.
41831 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41832
41833 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41834 LEN to grub_disk_addr_t and grub_size_t, respectively.
41835
41836 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41837
41838 * fs/jfs.c (grub_jfs_read_file): Likewise.
41839
41840 * fs/minix.c (grub_jfs_read_file): Likewise.
41841
41842 * fs/sfs.c (grub_jfs_read_file): Likewise.
41843
41844 * fs/ufs.c (grub_jfs_read_file): Likewise.
41845
41846 * fs/xfs.c (grub_jfs_read_file): Likewise.
41847
41848 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41849 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41850 respectively.
41851
41852 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41853 BLKNR to -1 instead of returning GRUB_ERRNO.
41854 (grub_ext2_read_file): Change the types of SECTOR and
41855 LEN to grub_disk_addr_t and grub_size_t, respectively.
41856
41857 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41858 LEN to grub_disk_addr_t and grub_size_t, respectively.
41859
41860 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41861 grub_file_read.
41862
41863 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41864 string. Do not cast SECTOR explicitly.
41865
41866 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41867 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41868 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41869 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41870 over 2TB and LBA mode is not supported, raise an error.
41871 (get_safe_sectors): New function.
41872 (grub_biosdisk_read): Use get_safe_sectors.
41873 (grub_biosdisk_write): Likewise.
41874
41875 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41876 (grub_efidisk_write): Likewise.
41877
41878 * disk/loopback.c (delete_loopback): Cosmetic changes.
41879 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41880 correctly.
41881 (grub_loopback_open): Likewise.
41882 (grub_loopback_read): Likewise. Also, change the type of POS to
41883 grub_off_t, and fix the usage of grub_memset.
41884
41885 * commands/i386/pc/play.c: Include grub/machine/time.h.
41886
41887 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41888 print FILE->SIZE.
41889
41890 * commands/configfile.c: Include grub/env.h.
41891
41892 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41893 GRUB_ERRNO directly instead. Change the type of POS to
41894 grub_off_t. Follow the coding standard.
41895
41896 * commands/blocklist.c: Include grub/partition.h.
41897 (grub_cmd_blocklist): Return an error if the underlying device is
41898 not a disk. Take the starting sector of a partition into account,
41899 if a partition is used.
41900
41901 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41902 a length field.
41903 (lba_mode): Support 64-bit addresses.
41904 (chs_mode): Likewise.
41905 (copy_buffer): Adapted to the new offsets of a length field and a
41906 segment field.
41907 (blocklist_default_start): Allocate 64-bit space.
41908
41909 * boot/i386/pc/boot.S (force_lba): Removed.
41910 (boot_drive): Moved to under KERNEL_SECTOR.
41911 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41912 space.
41913 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41914 is useless.
41915 (lba_mode): Refactored to support a 64-bit address. More size
41916 optimization.
41917 (setup_sectors): Likewise.
41918
41919 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41920
41921 * DISTLIST: Added include/grub/i386/linux.h. Removed
41922 include/grub/i386/pc/linux.h
41923
41924 * configure.ac (AC_INIT): Bumped to 1.94.
41925
41926 * config.guess: Updated from gnulib.
41927 * config.sub: Likewise.
41928 * install-sh: Likewise.
41929 * mkinstalldirs: Likewise.
41930
41931 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41932
41933 * conf/common.rmk (grub_modules_init.lst): Depended on
41934 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41935 MODSRCFILES.
41936
41937 * genmk.rb (PModule::rule): Reverted the previous change.
41938
41939 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41940
41941 * conf/common.rmk (grub_modules_init.lst): Depends on
41942 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
41943 that the target does not exist before producing.
41944 (grub_modules_init.h): Remove the target before generating.
41945 (grub_emu_init.c): Likewise.
41946
41947 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
41948
41949 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
41950
41951 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
41952 for the target-specific tests. Make sure that we also have the
41953 up-to-date target variables for those tests.
41954
41955 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41956
41957 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
41958 (PModule::rule): Likewise.
41959
41960 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41961
41962 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
41963 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
41964 target-specific flags should be prefixed.
41965 (PModule::rule): Likewise.
41966
41967 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
41968
41969 * configure.ac (CMP): Check if cmp is available explicitly.
41970
41971 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
41972
41973 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
41974 (target_cpu): New variable.
41975 (pkglibdir): Use target_cpu instead of host_cpu.
41976
41977 * util/i386/pc/grub-install.in (host_cpu): Removed.
41978 (target_cpu): New variable.
41979 (pkglibdir): Use target_cpu instead of host_cpu.
41980
41981 * util/genmoddep.c: Removed.
41982
41983 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
41984 instead of GRUB_HOST_SIZEOF_VOID_P.
41985 * kern/dl.c: Likewise.
41986
41987 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
41988 ...
41989 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41990 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41991 (GRUB_TARGET_SIZEOF_LONG): ... this.
41992 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41993 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41994 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41995 to ...
41996 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41997 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41998 (GRUB_TARGET_SIZEOF_LONG): ... this.
41999 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42000 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42001 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42002 to ...
42003 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42004 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42005 (GRUB_TARGET_SIZEOF_LONG): ... this.
42006 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42007 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42008
42009 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42010 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42011 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42012 instead of GRUB_HOST_SIZEOF_LONG.
42013 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42014 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42015 GRUB_CPU_WORDS_BIGENDIAN.
42016 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42017 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42018 grub_host_ssize_t.
42019
42020 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42021 (genmoddep_SOURCES): Likewise.
42022 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42023 (genmoddep_SOURCES): Likewise.
42024 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42025 (genmoddep_SOURCES): Likewise.
42026 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42027 Likewise.
42028 (genmoddep_SOURCES): Likewise.
42029
42030 * genmoddep.awk: New file.
42031
42032 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42033 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42034 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42035 (PModule::rule): Likewise.
42036 (Program::rule): Likewise.
42037 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42038 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42039 respectively.
42040
42041 * configure.ac: Rewritten intensively to use host and target
42042 instead of build and host, respectively.
42043
42044 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42045 (host_cpu): Removed.
42046 (target_cpu): New variable.
42047 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42048 (BUILD_CC): Removed.
42049 (BUILD_CFLAGS): Likewise.
42050 (BUILD_CPPFLAGS): Likewise.
42051 (TARGET_CC): New variable.
42052 (TARGET_CFLAGS): Likewise.
42053 (TARGET_CPPFLAGS): Likewise.
42054 (TARGET_LDFLAGS): Likewise.
42055 (AWK): Likewise.
42056 (include): Use target_cpu instead of host_cpu.
42057 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42058
42059 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42060
42061 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42062
42063 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42064 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42065 field 'false' to 'exec_on_false'.
42066 (grub_script_create_cmdif): Renamed argument names to reflect above
42067 changes.
42068
42069 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42070
42071 * normal/script.c (grub_script_create_cmdif): Likewise.
42072
42073 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42074
42075 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42076 top.
42077 (grub_hfsplus_btree_recptr): Likewise.
42078 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42079 FILEBLOCK both to pass a block number and store next block
42080 number.
42081 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42082 overflow file correctly. Specify errors appropriately, because
42083 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42084 grub_hfsplus_btree_recptr to get the pointer to a found key.
42085 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42086 is found.
42087
42088 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42089 linux.mod.
42090 (_linux_mod_SOURCES): New variable.
42091 (_linux_mod_CFLAGS): Likewise.
42092 (_linux_mod_LDFLAGS): Likewise.
42093 (linux_mod_SOURCES): Likewise.
42094 (linux_mod_CFLAGS): Likewise.
42095 (linux_mod_LDFLAGS): Likewise.
42096
42097 * DISTLIST: Added loader/i386/efi/linux.c,
42098 loader/i386/efi/linux_normal.c and
42099 include/grub/i386/efi/loader.h.
42100
42101 * loader/i386/efi/linux.c: New file.
42102 * loader/i386/efi/linux_normal.c: Likewise.
42103 * include/grub/i386/efi/loader.h: Likewise.
42104
42105 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42106
42107 * commands/blocklist.c: New file.
42108
42109 * DISTLIST: Added commands/blocklist.c.
42110
42111 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42112 color for the background, and a darker color for the foreground.
42113 (grub_console_checkkey): Return READ_KEY.
42114 (grub_console_cls): Set the background to
42115 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42116
42117 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42118
42119 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42120 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42121
42122 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42123 prototype.
42124
42125 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42126 BG. The spec is wrong again.
42127
42128 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42129 prototype.
42130 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42131
42132 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42133 commands/blocklist.c.
42134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42135
42136 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42137 (blocklist_mod_SOURCES): New variable.
42138 (blocklist_mod_CFLAGS): Likewise.
42139 (blocklist_mod_LDFLAGS): Likewise.
42140
42141 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42142
42143 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42144 duplication.
42145 (lba_mode): Use %eax more intensively to reduce the code size.
42146
42147 2006-05-20 Marco Gerards <marco@gnu.org>
42148
42149 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42150
42151 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42152 for `menuentry'.
42153 (script): Accept leading newlines.
42154 (newlines): New rule to describe 0 or more newlines.
42155 (commands): Accept `command' with trailing newline. Fixed the
42156 order in which arguments were passed to `grub_script_add_cmd'.
42157 Accept commands separated by newlines.
42158 (function): Changed to accept newlines.
42159 (menuentry) Rewritten.
42160
42161 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42162 front of the list, instead of to the end.
42163
42164 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42165
42166 * util/i386/pc/grub-install.in (bindir): New variable.
42167 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42168 Shaver <lbgwjl@gmail.com>.
42169
42170 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42171
42172 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42173 grub/machine/linux.h
42174 * loader/i386/pc/linux.c: Likewise.
42175
42176 * include/grub/i386/pc/linux.h: Moved to ...
42177 * include/grub/i386/linux.h: ... here.
42178
42179 * include/grub/i386/linux.h (struct linux_kernel_params): New
42180 struct.
42181
42182 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42183
42184 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42185 checking.
42186 (grub_video_vbe_blit_glyph): Likewise.
42187 (grub_video_vbe_blit_bitmap): Likewise.
42188 (grub_video_vbe_blit_render_target): Likewise.
42189
42190 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42191
42192 * configure.ac (--with-platform): Properly quote the square
42193 brackets.
42194
42195 2006-05-08 Marco Gerards <marco@gnu.org>
42196
42197 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42198 this...
42199 (kernel_elf_HEADERS): ...to this. Updated all users.
42200 (grubof_symlist.c): Renamed from this...
42201 (kernel_elf_symlist.c): ...to this. Updated all users.
42202 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42203 (grubof_SOURCES): Renamed from this...
42204 (kernel_elf_SOURCES): ...to this.
42205 (grubof_HEADERS): Renamed from this...
42206 (kernel_elf_HEADERS): ...to this.
42207 (grubof_CFLAGS): Renamed from this...
42208 (kernel_elf_CFLAGS): ...to this.
42209 (grubof_ASFLAGS): Renamed from this...
42210 (kernel_elf_ASFLAGS): ...to this.
42211 (grubof_LDFLAGS): Renamed from this...
42212 (kernel_elf_LDFLAGS): ...to this.
42213
42214 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42215 this...
42216 (kernel_elf_HEADERS): ...to this. Updated all users.
42217 (grubof_symlist.c): Renamed from this...
42218 (kernel_elf_symlist.c): ...to this. Updated all users.
42219 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42220 (grubof_SOURCES): Renamed from this...
42221 (kernel_elf_SOURCES): ...to this.
42222 (grubof_HEADERS): Renamed from this...
42223 (kernel_elf_HEADERS): ...to this.
42224 (grubof_CFLAGS): Renamed from this...
42225 (kernel_elf_CFLAGS): ...to this.
42226 (grubof_ASFLAGS): Renamed from this...
42227 (kernel_elf_ASFLAGS): ...to this.
42228 (grubof_LDFLAGS): Renamed from this...
42229 (kernel_elf_LDFLAGS): ...to this.
42230
42231 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42232 `kernel.elf' instead of `grubof'.
42233
42234 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42235
42236 Add --with-platform to configure. Use pkglibdir instead of
42237 pkgdatadir. This is reported by Roger Leigh.
42238
42239 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42240 (host_vendor): Likewise.
42241 (host_os): Likewise.
42242 (pkgdatadir): Likewise.
42243 (platform): New variable.
42244 (pkglibdir): Likewise.
42245 Use PKGLIBDIR instead of PKGDATADIR.
42246
42247 * util/i386/pc/grub-install.in (datadir): Removed.
42248 (host_vendor): Likewise.
42249 (host_os): Likewise.
42250 (pkgdatadir): Likewise.
42251 (platform): New variable.
42252 (pkglibdir): Likewise.
42253 Use PKGLIBDIR instead of PKGDATADIR.
42254
42255 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42256 instead of GRUB_DATADIR.
42257 (main): Likewise.
42258 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42259 (main): Likewise.
42260 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42261 (main): Likewise.
42262
42263 * configure.ac (--with-platform): New option.
42264 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42265
42266 * Makefile.in: Include a makefile based on PLATFORM instead of
42267 HOST_VENDOR.
42268 (pkgdatadir): Not appended by the machine type.
42269 (pkglibdir): Appended by the machine type.
42270 (host_vendor): Removed.
42271 (platform): New variable.
42272 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42273 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42274 (uninstall): Likewise.
42275
42276 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42277
42278 Use the environment context in the menu. Remove the commands
42279 "default" and "timeout", and use variables instead.
42280
42281 * normal/menu.c: Include grub/env.h.
42282 (print_entry): Cast TITLE to silence gcc.
42283 (get_timeout): New function.
42284 (set_timeout): Likewise.
42285 (get_entry_number): Likewise.
42286 (run_menu): Use a default entry, a fallback entry and a timeout
42287 in the environment variables "default", "fallback" and
42288 "timeout". Also, tweak the default entry if it is not within the
42289 current menu entries.
42290 (grub_menu_run): Use a fallback entry in the environment variable
42291 "fallback".
42292
42293 * normal/main.c (read_config_file): Do not initialize
42294 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42295 NEWMENU->TIMEOUT.
42296 (grub_normal_execute): Use a data slot to store the menu.
42297
42298 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42299 fallback_entry and timeout.
42300 (struct grub_menu_list): Removed.
42301 (grub_menu_list_t): Likewise.
42302 (struct grub_context): Likewise.
42303 (grub_context_t): Likewise.
42304 (grub_context_get): Likewise.
42305 (grub_context_get_current_menu): Likewise.
42306 (grub_context_push_menu): Likewise.
42307 (grub_context_pop_menu): Likewise.
42308 (grub_default_init): Likewise.
42309 (grub_default_fini): Likewise.
42310 (grub_timeout_init): Likewise.
42311 (grub_timeout_fini): Likewise.
42312
42313 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42314 and timeout.mod.
42315 (normal_mod_SOURCES): Removed normal/context.c.
42316
42317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42318 commands/default.c, commands/timeout.c and normal/context.c.
42319 (normal_mod_SOURCES): Removed normal/context.c.
42320
42321 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42322 commands/timeout.c and normal/context.c.
42323 (normal_mod_SOURCES): Removed normal/context.c.
42324
42325 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42326 commands/default.c, commands/timeout.c and normal/context.c.
42327 (normal_mod_SOURCES): Removed normal/context.c.
42328
42329 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42330 timeout.mod.
42331 (default_mod_SOURCES): Removed.
42332 (default_mod_CFLAGS): Likewise.
42333 (default_mod_LDFLAGS): Likewise.
42334 (timeout_mod_SOURCES): Removed.
42335 (timeout_mod_CFLAGS): Likewise.
42336 (timeout_mod_LDFLAGS): Likewise.
42337
42338 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42339 normal/context.c.
42340
42341 * commands/default.c: Removed.
42342 * commands/timeout.c: Likewise.
42343 * normal/context.c: Likewise.
42344
42345 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42346
42347 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42348
42349 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42350
42351 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42352 "next" to "prev" for readability.
42353 (struct grub_env_sorted_var): New struct.
42354 (grub_env_context): Renamed to ...
42355 (initial_context): ... this.
42356 (grub_env_var_context): Renamed to ...
42357 (current_context): ... this.
42358 (grub_env_find): Look only at CURRENT_CONTEXT.
42359 (grub_env_context_open): Rewritten to copy exported variables from
42360 previous context.
42361 (grub_env_context_close): Rewritten according to the new
42362 scheme. Also, add an assertion to prevent the initial context from
42363 removed.
42364 (grub_env_insert): Removed the code for the sorted list.
42365 (grub_env_remove): Likewise.
42366 (grub_env_export): Simply mark the variable with
42367 GRUB_ENV_VAR_GLOBAL.
42368 (grub_env_set): A cosmetic change for naming consistency.
42369 (grub_env_get): Likewise.
42370 (grub_env_unset): Likewise.
42371 (grub_env_iterate): Rewritten to sort variables within this
42372 function.
42373 (grub_register_variable_hook): Fixed for naming consistency. Call
42374 grub_env_find again, only if NAME is not found at the first time.
42375 (mangle_data_slot_name): New function.
42376 (grub_env_set_data_slot): Likewise.
42377 (grub_env_get_data_slot): Likewise.
42378 (grub_env_unset_data_slot): Likewise.
42379
42380 * include/grub/env.h (grub_env_var_type): New enum.
42381 (GRUB_ENV_VAR_LOCAL): New constant.
42382 (GRUB_ENV_VAR_GLOBAL): Likewise.
42383 (GRUB_ENV_VAR_DATA): Likewise.
42384 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42385 "type".
42386 (grub_env_set): Replace VAR with NAME for consistency.
42387 (grub_register_variable_hook): Likewise.
42388 (grub_env_export): Specify the name of the argument.
42389 (grub_env_set_data_slot): New prototype.
42390 (grub_env_get_data_slot): Likewise.
42391 (grub_env_unset_data_slot): Likewise.
42392
42393 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42394
42395 Extend the loader so that GRUB can accept a loader which comes
42396 back to GRUB when a loaded image exits. Also, this change adds
42397 support for a chainloader on EFI.
42398
42399 * term/efi/console.c: Include grub/misc.h.
42400 (grub_console_checkkey): Display a scan code on the top for
42401 debugging. This will be removed once the EFI port gets stable.
42402 Correct the scan code mapping.
42403
42404 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42405 allocate memory from larger regions, in order to reduce the number
42406 of allocated regions. Otherwise, the MacOSX loader panics.
42407 (filter_memory_map): Avoid less than 1MB for compatibility with
42408 other loaders.
42409 (add_memory_regions): Allocate from the tail of a region, if
42410 possible, to avoid allocating a region near to 1MB, for the MacOSX
42411 loader.
42412
42413 * kern/efi/init.c (grub_efi_set_prefix): Specify
42414 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42415
42416 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42417 argument IMAGE_HANDLE and specify it to get a loaded image.
42418 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42419 grub_efi_get_loaded_image.
42420 (grub_efi_get_filename): Divide the length by the size of
42421 grub_efi_char16_t.
42422 (grub_efi_get_device_path): New function.
42423 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42424 the length by the size of grub_efi_char16_t for a file path device
42425 path node.
42426
42427 * kern/loader.c (grub_loader_noreturn): New variable.
42428 (grub_loader_set): Accept a new argument NORETURN. Set
42429 GRUB_LOADER_NORETURN to NORETURN.
42430 All callers changed.
42431 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42432 grub_machine_fini.
42433
42434 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42435 prototype.
42436 (grub_efi_get_loaded_image): Take an argument to specify an image
42437 handle.
42438
42439 * include/grub/loader.h (grub_loader_set): Added one more argument
42440 NORETURN.
42441
42442 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42443 instead of grub_efi_open_protocol.
42444 (grub_efidisk_get_device_name): Likewise.
42445 (grub_efidisk_close): Print a newline.
42446 (grub_efidisk_get_device_handle): Fixed to use
42447 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42448 GRUB_EFI_DEVICE_PATH_TYPE.
42449
42450 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42451 * kern/efi/efi.c (device_path_guid): ... here.
42452
42453 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42454 chain.mod.
42455 (kernel_mod_HEADERS): Added efi/disk.h.
42456 (_chain_mod_SOURCES): New variable.
42457 (_chain_mod_CFLAGS): Likewise.
42458 (_chain_mod_LDFLAGS): Likewise.
42459 (chain_mod_SOURCES): Likewise.
42460 (chain_mod_CFLAGS): Likewise.
42461 (chain_mod_LDFLAGS): Likewise.
42462
42463 * DISTLIST: Added include/grub/efi/chainloader.h,
42464 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42465
42466 * include/grub/efi/chainloader.h: New file.
42467 * loader/efi/chainloader.c: Likewise.
42468 * loader/efi/chainloader_normal.c: Likewise.
42469
42470 2006-04-30 Marco Gerards <marco@gnu.org>
42471
42472 * commands/configfile.c (grub_cmd_source): New function.
42473 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42474 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42475
42476 2006-04-30 Marco Gerards <marco@gnu.org>
42477
42478 * normal/execute.c (grub_script_execute_cmd): Change the return
42479 type to `grub_err_t'. Correctly return the error.
42480 (grub_script_execute_cmdline): In case a command line is not a
42481 command or a function, try to interpret it as an assignment.
42482
42483 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42484
42485 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42486 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42487 skip a node whose name is obviously invalid as UTF-16,
42488 i.e. contains a NUL character. Stop the iteration when the last
42489 directory entry is found. Instead of using the return value of
42490 grub_hfsplus_btree_iterate_node, store the value in RET and use
42491 it, because the iterator can be stopped by the last directory
42492 entry.
42493
42494 2006-04-30 Marco Gerards <marco@gnu.org>
42495
42496 * include/grub/env.h (grub_env_export): New prototype. Reported
42497 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42498
42499 2006-04-30 Marco Gerards <marco@gnu.org>
42500
42501 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42502 size of the extents in a catalog file record.
42503
42504 2006-04-29 Marco Gerards <marco@gnu.org>
42505
42506 * commands/configfile.c (grub_cmd_configfile): Execute the
42507 configfile within its own context.
42508
42509 * include/grub/env.h (grub_env_context_open): New prototype.
42510 (grub_env_context_close): Likewise.
42511
42512 * kern/env.c (grub_env): Removed.
42513 (grub_env_sorted): Likewise.
42514 (grub_env_context): New variable.
42515 (grub_env_var_context): Likewise.
42516 (grub_env_find): Search both the active context and the global
42517 context.
42518 (grub_env_context_open): New function.
42519 (grub_env_context_close): Likewise.
42520 (grub_env_insert): Likewise.
42521 (grub_env_remove): Likewise.
42522 (grub_env_export): Likewise.
42523 (grub_env_set): Changed to use helper functions to avoid code
42524 duplication.
42525 (grub_env_iterate): Rewritten so both the current context and the
42526 global context are being used.
42527
42528 * normal/command.c (export_command): New function.
42529 (grub_command_init): Register the `export' function.
42530
42531 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42532
42533 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42534 explicitly to suppress gcc's warnings.
42535 * fs/fat.c (grub_fat_find_dir): Likewise.
42536 (grub_fat_label): Likewise.
42537 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42538 (grub_xfs_mount): Likewise.
42539 (grub_xfs_label): Likewise.
42540 * fs/affs.c (grub_affs_mount): Likewise.
42541 (grub_affs_label): Likewise.
42542 (grub_affs_iterate_dir): Likewise.
42543 * fs/sfs.c (grub_sfs_mount): Likewise.
42544 (grub_sfs_iterate_dir): Likewise.
42545 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42546 * fs/hfs.c (grub_hfs_mount): Likewise.
42547 (grub_hfs_cmp_catkeys): Likewise.
42548 (grub_hfs_find_dir): Likewise.
42549 (grub_hfs_dir): Likewise.
42550 (grub_hfs_label): Likewise.
42551 * fs/jfs.c (grub_jfs_mount): Likewise.
42552 (grub_jfs_opendir): Likewise.
42553 (grub_jfs_getent): Likewise.
42554 (grub_jfs_lookup_symlink): Likewise.
42555 (grub_jfs_label): Likewise.
42556 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42557 (grub_hfsplus_iterate_dir): Likewise.
42558 (grub_hfsplus_btree_iterate_node): Made static.
42559
42560 * util/grub-emu.c (prefix): New variable.
42561 (grub_machine_set_prefix): New function.
42562 (main): Do not set the environment variable "prefix" here. Only
42563 set PREFIX, which is used later by grub_machine_set_prefix.
42564
42565 * include/grub/video.h: Do not include grub/symbol.h.
42566 (grub_video_register): Not exported. This symbol is not defined in
42567 the kernel.
42568 (grub_video_unregister): Likewise.
42569 (grub_video_iterate): Likewise.
42570 (grub_video_setup): Likewise.
42571 (grub_video_restore): Likewise.
42572 (grub_video_get_info): Likewise.
42573 (grub_video_get_blit_format): Likewise.
42574 (grub_video_set_palette): Likewise.
42575 (grub_video_get_palette): Likewise.
42576 (grub_video_set_viewport): Likewise.
42577 (grub_video_get_viewport): Likewise.
42578 (grub_video_map_color): Likewise.
42579 (grub_video_map_rgb): Likewise.
42580 (grub_video_map_rgba): Likewise.
42581 (grub_video_fill_rect): Likewise.
42582 (grub_video_blit_glyph): Likewise.
42583 (grub_video_blit_bitmap): Likewise.
42584 (grub_video_blit_render_target): Likewise.
42585 (grub_video_scroll): Likewise.
42586 (grub_video_swap_buffers): Likewise.
42587 (grub_video_create_render_target): Likewise.
42588 (grub_video_delete_render_target): Likewise.
42589 (grub_video_set_active_render_target): Likewise.
42590
42591 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42592 Undefined.
42593 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42594
42595 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42596 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42597 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42598 instead of $(srcdir)/genkernsyms.sh.
42599
42600 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42601 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42602 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42603 instead of $(srcdir)/genkernsyms.sh.
42604
42605 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42606 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42607 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42608 instead of $(srcdir)/genkernsyms.sh.
42609
42610 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42611 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42612 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42613 instead of $(srcdir)/genkernsyms.sh.
42614
42615 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42616 genkernsyms.sh.
42617
42618 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42619 genkernsyms.sh.
42620 (gensymlist.sh): New target.
42621 (genkernsyms.sh): Likewise.
42622
42623 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42624 genkernsyms.sh.in and gensymlist.sh.in.
42625
42626 * genkernsyms.sh: Removed.
42627 * gensymlist.sh: Likewise.
42628
42629 * genkernsyms.sh.in: New file.
42630 * gensymlist.sh.in: Likewise.
42631
42632 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42633
42634 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42635 clobber "prefix", since we may have already set it manually.
42636
42637 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42638
42639 * kern/misc.c (abort): New alias for grub_abort.
42640
42641 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42642
42643 A new machine-specific function "grub_machine_set_prefix" is
42644 defined. This is called after loading modules, so that a prefix
42645 initialization can use modules. Also, this change adds an
42646 intensive debugging feature for the memory manager via the
42647 configure option "--enable-mm-debug".
42648
42649 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42650 PART.LEN.
42651
42652 * kern/sparc64/ieee1275/init.c (abort): Removed.
42653 (grub_stop): Likewise.
42654 (grub_exit): New function.
42655 (grub_set_prefix): Renamed to ...
42656 (grub_machine_set_prefix): ... this.
42657 (grub_machine_init): Do not call grub_set_prefix.
42658
42659 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42660 (grub_machine_set_prefix): ... this.
42661 (grub_machine_init): Do not call grub_set_prefix.
42662
42663 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42664 (grub_machine_init): Do not set the prefix here.
42665
42666 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42667
42668 * kern/efi/init.c: Include grub/mm.h.
42669 (grub_efi_set_prefix): New function.
42670
42671 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42672 (grub_efi_get_filename): New function.
42673 (grub_print_device_path): Renamed to ...
42674 (grub_efi_print_device_path): ... this.
42675
42676 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42677 [MM_DEBUG] (grub_realloc): Likewise.
42678 [MM_DEBUG] (grub_free): Likewise.
42679 [MM_DEBUG] (grub_memalign): Likewise.
42680 [MM_DEBUG] (grub_mm_debug): New variable.
42681 [MM_DEBUG] (grub_debug_malloc): New function.
42682 [MM_DEBUG] (grub_debug_free): New function.
42683 [MM_DEBUG] (grub_debug_realloc): New function.
42684 [MM_DEBUG] (grub_debug_memalign): New function.
42685
42686 * kern/misc.c (grub_abort): Print a newline to distinguish
42687 the message.
42688
42689 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42690 grub_set_root_dev after loading modules. This is necessary when
42691 setting a prefix depends on modules.
42692
42693 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42694 (grub_efi_print_device_path): ... this.
42695 (grub_efi_get_filename): New prototype.
42696 (grub_efi_set_prefix): Likewise.
42697
42698 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42699 and grub/disk.h.
42700 (grub_efidisk_get_device_handle): New prototype.
42701 (grub_efidisk_get_device_name): Likewise.
42702
42703 * include/grub/mm.h: Include config.h.
42704 (MM_DEBUG): Removed.
42705 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42706 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42707 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42708 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42709 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42710 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42711 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42712 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42713 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42714
42715 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42716
42717 * disk/efi/efidisk.c: Include grub/partition.h.
42718 (iterate_child_devices): New function.
42719 (add_device): First, compare only last device path nodes, so that
42720 devices are sorted by the types.
42721 (grub_efidisk_get_device_handle): New function.
42722 (grub_efidisk_get_device_name): Likewise.
42723
42724 * configure.ac (--enable-mm-debug): New option to enable the
42725 memory manager debugging feature. This makes the binary much
42726 bigger, so is disabled by default.
42727
42728 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42729
42730 Use grub_abort instead of grub_stop, and grub_exit must be
42731 define in each architecture now. Also, this change adds support
42732 for EFI disks.
42733
42734 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42735 (grub_getkey): New function.
42736 (grub_term_get_current): Likewise.
42737
42738 * util/i386/pc/grub-setup.c: Include grub/term.h.
42739 (grub_getkey): New function.
42740 (grub_term_get_current): Likewise.
42741
42742 * util/misc.c (grub_stop): Renamed to ...
42743 (grub_exit): ... this.
42744
42745 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42746 (grub_exit): ... this.
42747 (grub_machine_init): Use grub_abort instead of abort.
42748 (grub_stop): Removed.
42749
42750 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42751 abort.
42752
42753 * kern/i386/pc/startup.S (grub_exit): New function.
42754 (cold_reboot): New label.
42755
42756 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42757 (grub_efi_init): Call grub_efidisk_init.
42758 (grub_efi_fini): Call grub_efidisk_fini.
42759
42760 * kern/efi/efi.c: Include grub/mm.h.
42761 (grub_efi_console_control_guid): Renamed to ...
42762 (console_control_guid): ... this.
42763 (grub_efi_loaded_image_guid): Renamed to ...
42764 (loaded_image_guid): ... this.
42765 (grub_efi_locate_handle): New function.
42766 (grub_efi_open_protocol): Likewise.
42767 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42768 GRUB_EFI_CONSOLE_CONTROL_GUID.
42769 (grub_efi_exit): Removed.
42770 (grub_stop): Likewise.
42771 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42772 (grub_exit): New function.
42773 (grub_print_device_path): Likewise.
42774
42775 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42776 (grub_enter_rescue_mode): Register "exit".
42777
42778 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42779 (grub_abort): New function.
42780
42781 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42782
42783 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42784
42785 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42786
42787 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42788 (grub_print_device_path): New prototype.
42789 (grub_efi_locate_handle): Likewise.
42790 (grub_efi_open_protocol): Likewise.
42791
42792 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42793 * disk/efi/efidisk.c: Likewise.
42794
42795 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42796
42797 * include/grub/efi/console_control.h
42798 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42799
42800 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42801 last 8 bytes as an array.
42802 (GRUB_EFI_DISK_IO_GUID): New macro.
42803 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42804 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42805 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42806 grub_uint8_t.
42807 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42808 (struct grub_efi_device_path): Rename the member "sub_type" to
42809 "subtype".
42810 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42811 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42812 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42813 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42814 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42815 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42816 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42817 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42818 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42819 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42820 (struct grub_efi_pci_device_path): New structure.
42821 (grub_efi_pci_device_path_t): New type.
42822 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42823 (struct grub_efi_pccard_device_path): New structure.
42824 (grub_efi_pccard_device_path_t): New type.
42825 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42826 (struct grub_efi_memory_mapped_device_path): New structure.
42827 (grub_efi_memory_mapped_device_path_t): New type.
42828 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42829 (struct grub_efi_vendor_device_path): New structure.
42830 (grub_efi_vendor_device_path_t): New type.
42831 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42832 (struct grub_efi_controller_device_path): New structure.
42833 (grub_efi_controller_device_path_t): New type.
42834 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42835 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42836 (struct grub_efi_acpi_device_path): New structure.
42837 (grub_efi_acpi_device_path_t): New type.
42838 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42839 (struct grub_efi_expanded_acpi_device_path): New structure.
42840 (grub_efi_expanded_acpi_device_path_t): New type.
42841 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42842 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42843 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42844 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42845 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42846 (struct grub_efi_atapi_device_path): New structure.
42847 (grub_efi_atapi_device_path_t): New type.
42848 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42849 (struct grub_efi_fibre_channel_device_path): New structure.
42850 (grub_efi_fibre_channel_device_path_t): New type.
42851 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42852 (struct grub_efi_1394_device_path): New structure.
42853 (grub_efi_1394_device_path_t): New type.
42854 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42855 (struct grub_efi_usb_device_path): New structure.
42856 (grub_efi_usb_device_path_t): New type.
42857 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42858 (struct grub_efi_usb_class_device_path): New structure.
42859 (grub_efi_usb_class_device_path_t): New type.
42860 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42861 (struct grub_efi_i2o_device_path): New structure.
42862 (grub_efi_i2o_device_path_t): New type.
42863 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42864 (struct grub_efi_mac_address_device_path): New structure.
42865 (grub_efi_mac_address_device_path_t): New type.
42866 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42867 (struct grub_efi_ipv4_device_path): New structure.
42868 (grub_efi_ipv4_device_path_t): New type.
42869 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42870 (struct grub_efi_ipv6_device_path): New structure.
42871 (grub_efi_ipv6_device_path_t): New type.
42872 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42873 (struct grub_efi_infiniband_device_path): New structure.
42874 (grub_efi_infiniband_device_path_t): New type.
42875 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42876 (struct grub_efi_uart_device_path): New structure.
42877 (grub_efi_uart_device_path_t): New type.
42878 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42879 (struct grub_efi_vendor_messaging_device_path): New structure.
42880 (grub_efi_vendor_messaging_device_path_t): New type.
42881 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42882 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42883 (struct grub_efi_hard_drive_device_path): New structure.
42884 (grub_efi_hard_drive_device_path_t): New type.
42885 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42886 (struct grub_efi_cdrom_device_path): New structure.
42887 (grub_efi_cdrom_device_path_t): New type.
42888 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42889 (struct grub_efi_vendor_media_device_path): New structure.
42890 (grub_efi_vendor_media_device_path_t): New type.
42891 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42892 (struct grub_efi_file_path_device_path): New structure.
42893 (grub_efi_file_path_device_path_t): New type.
42894 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42895 (struct grub_efi_protocol_device_path): New structure.
42896 (grub_efi_protocol_device_path_t): New type.
42897 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42898 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42899 (struct grub_efi_bios_device_path): New structure.
42900 (grub_efi_bios_device_path_t): New type.
42901 (struct grub_efi_disk_io): New structure.
42902 (grub_efi_disk_io_t): New type.
42903 (struct grub_efi_block_io_media): New structure.
42904 (grub_efi_block_io_media_t): New type.
42905 (struct grub_efi_block_io): New structure.
42906 (grub_efi_block_io_t): New type.
42907
42908 * include/grub/misc.h (grub_stop): Removed.
42909 (grub_exit): New prototype.
42910 (grub_abort): Likewise.
42911
42912 * include/grub/disk.h (enum grub_disk_dev_id): Added
42913 GRUB_DISK_DEVICE_EFIDISK_ID.
42914
42915 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42916 disk/efi/efidisk.c.
42917 (kernel_syms.lst): Remove the target if an error occurs.
42918
42919 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42920
42921 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42922 as it was simply too buggy.
42923
42924 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42925
42926 * kern/misc.c (grub_lltoa): New function.
42927 (grub_vsprintf): Added support for the long long suffix,
42928 i.e. "ll".
42929
42930 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42931
42932 * Makefile.in (LDFLAGS): Add variable.
42933 (LD): Remove variable.
42934 * configure.ac: Add -m32 to LDFLAGS.
42935 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
42936 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
42937 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
42938 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
42939 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
42940 variables.
42941 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
42942 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
42943 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
42944
42945 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
42946
42947 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
42948 length for unknown glyph.
42949
42950 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42951
42952 Add support for pre-loaded modules into the EFI port.
42953
42954 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
42955 completely. Accept one more argument DIR. The caller has changed.
42956
42957 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
42958
42959 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
42960 (grub_efi_loaded_image_guid): New variable.
42961 (grub_efi_get_loaded_image): New function.
42962 (grub_arch_modules_addr): Likewise.
42963
42964 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
42965 prototype.
42966
42967 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
42968 (struct grub_efi_loaded_image): New structure.
42969 (grub_efi_loaded_image_t): New type.
42970
42971 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42972
42973 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
42974 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
42975 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
42976
42977 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
42978
42979 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
42980
42981 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
42982
42983 * DISTLIST: Added include/grub/efi/console.h,
42984 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
42985 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42986
42987 * include/grub/efi/console.h: New file.
42988 * include/grub/efi/time.h: Likewise.
42989 * include/grub/i386/efi/kernel.h: Likewise.
42990 * kern/efi/init.c: Likewise.
42991 * kern/efi/mm.c: Likewise.
42992 * term/efi/console.c: Likewise.
42993
42994 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
42995 (grub_stop): Removed.
42996 (grub_get_rtc): Likewise.
42997 (grub_machine_init): Simply call grub_efi_init.
42998 (grub_machine_fini): Call grub_efi_fini.
42999
43000 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43001 (grub_efi_output_string): Removed.
43002 (grub_efi_stall): New function.
43003 (grub_stop): Likewise.
43004 (grub_get_rtc): Likewise.
43005
43006 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43007 (grub_efi_stall): New prototype.
43008 (grub_efi_allocate_pages): Likewise.
43009 (grub_efi_free_pages): Likewise.
43010 (grub_efi_get_memory_map): Likewise.
43011 (grub_efi_mm_init): Likewise.
43012 (grub_efi_mm_fini): Likewise.
43013 (grub_efi_init): Likewise.
43014 (grub_efi_fini): Likewise.
43015
43016 * include/grub/i386/efi/time.h: Do not include
43017 grub/symbol.h. Include grub/efi/time.h.
43018 (GRUB_TICKS_PER_SECOND): Removed.
43019 (grub_get_rtc): Likewise.
43020
43021 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43022 Added padding. The EFI spec is buggy.
43023 (GRUB_EFI_BLACK): New macro.
43024 (GRUB_EFI_BLUE): Likewise.
43025 (GRUB_EFI_GREEN): Likewise.
43026 (GRUB_EFI_CYAN): Likewise.
43027 (GRUB_EFI_RED): Likewise.
43028 (GRUB_EFI_MAGENTA): Likewise.
43029 (GRUB_EFI_BROWN): Likewise.
43030 (GRUB_EFI_LIGHTGRAY): Likewise.
43031 (GRUB_EFI_BRIGHT): Likewise.
43032 (GRUB_EFI_DARKGRAY): Likewise.
43033 (GRUB_EFI_LIGHTBLUE): Likewise.
43034 (GRUB_EFI_LIGHTGREEN): Likewise.
43035 (GRUB_EFI_LIGHTCYAN): Likewise.
43036 (GRUB_EFI_LIGHTRED): Likewise.
43037 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43038 (GRUB_EFI_YELLOW): Likewise.
43039 (GRUB_EFI_WHITE): Likewise.
43040 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43041 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43042 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43043 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43044 (GRUB_EFI_BACKGROUND_RED): Likewise.
43045 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43046 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43047 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43048 (GRUB_EFI_TEXT_ATTR): Likewise.
43049
43050 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43051 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43052 (kernel_mod_HEADERS): Added efi/time.h.
43053
43054 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43055
43056 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43057 include/grub/efi/api.h, include/grub/efi/console_control.h,
43058 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43059 include/grub/i386/efi/time.h, kern/efi/efi.c,
43060 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43061 and util/i386/efi/grub-mkimage.c.
43062
43063 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43064
43065 * genmk.rb (PModule#rule): Do not export symbols if
43066 #{prefix}_EXPORTS is set to "no".
43067
43068 * conf/i386-efi.mk: New file.
43069 * conf/i386-efi.rmk: Likewise.
43070 * include/grub/efi/api.h: Likewise.
43071 * include/grub/efi/console_control.h: Likewise.
43072 * include/grub/efi/efi.h: Likewise.
43073 * include/grub/efi/pe32.h: Likewise.
43074 * include/grub/i386/efi/time.h: Likewise.
43075 * kern/efi/efi.c: Likewise.
43076 * kern/i386/efi/init.c: Likewise.
43077 * kern/i386/efi/startup.S: Likewise.
43078 * util/i386/efi/grub-mkimage.c: Likewise.
43079
43080 2006-04-17 Marco Gerards <marco@gnu.org>
43081
43082 * include/grub/script.h: Include <grub/parser.h> and
43083 "grub_script.tab.h".
43084 (struct grub_lexer_param): New struct.
43085 (struct grub_parser_param): Likewise.
43086 (grub_script_create_arglist): Pass the state in an argument.
43087 (grub_script_add_arglist): Likewise.
43088 (grub_script_create_cmdline): Likewise.
43089 (grub_script_create_cmdblock): Likewise.
43090 (grub_script_create_cmdif): Likewise.
43091 (grub_script_create_cmdmenu): Likewise.
43092 (grub_script_add_cmd): Likewise.
43093 (grub_script_arg_add): Likewise.
43094 (grub_script_lexer_ref): Likewise.
43095 (grub_script_lexer_deref): Likewise.
43096 (grub_script_lexer_record_start): Likewise.
43097 (grub_script_lexer_record_stop): Likewise.
43098 (grub_script_mem_record): Likewise.
43099 (grub_script_mem_record_stop): Likewise.
43100 (grub_script_malloc): Likewise.
43101 (grub_script_yylex): Likewise.
43102 (grub_script_yyparse): Likewise.
43103 (grub_script_yyerror): Likewise.
43104 (grub_script_yylex): Likewise.
43105 (grub_script_lexer_init): Return the state.
43106
43107 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43108 (grub_script_lexer_done): Likewise.
43109 (grub_script_lexer_getline): Likewise.
43110 (grub_script_lexer_refs): Likewise.
43111 (script): Likewise.
43112 (newscript): Likewise.
43113 (record): Likewise.
43114 (recording): Likewise.
43115 (recordpos): Likewise.
43116 (recordlen): Likewise.
43117 (grub_script_lexer_init): Return the state instead of setting
43118 global variables.
43119 (grub_script_lexer_ref): Use the newly added argument for state
43120 instead of globals.
43121 (grub_script_lexer_deref): Likewise.
43122 (grub_script_lexer_record_start): Likewise.
43123 (grub_script_lexer_record_stop): Likewise.
43124 (recordchar): Likewise.
43125 (nextchar): Likewise.
43126 (grub_script_yylex2): Likewise.
43127 (grub_script_yylex): Likewise.
43128 (grub_script_yyerror): Likewise.
43129
43130 * normal/parser.y (func_mem): Removed variable.
43131 (menu_entry): Likewise.
43132 (err): Likewise.
43133 (%lex-param): New parser option.
43134 (%parse-param): Likewise.
43135 (script): Always return the AST.
43136 (argument): Pass the state around.
43137 (arguments): Likewise.
43138 (grubcmd): Likewise.
43139 (commands): Likewise.
43140 (function): Likewise.
43141 (menuentry): Likewise.
43142 (if_statement): Likewise.
43143 (if): Likewise.
43144
43145 * normal/script.c (grub_script_memused): Removed variable.
43146 (grub_script_parsed): Likewise.
43147 (grub_script_malloc): Added a state argument. Use that instead of
43148 global variables.
43149 (grub_script_mem_record): Likewise.
43150 (grub_script_mem_record_stop): Likewise.
43151 (grub_script_arg_add): Likewise.
43152 (grub_script_add_arglist): Likewise.
43153 (grub_script_create_cmdline): Likewise.
43154 (grub_script_create_cmdif): Likewise.
43155 (grub_script_create_cmdmenu): Likewise.
43156 (grub_script_add_cmd): Likewise.
43157 (grub_script_parse): Setup the state before calling the parser.
43158
43159 2006-04-16 Marco Gerards <marco@gnu.org>
43160
43161 * normal/command.c (grub_command_init): Remove the title command.
43162
43163 * normal/lexer.c (grub_script_yylex): Renamed from this...
43164 (grub_script_yylex2): ... to this.
43165 (grub_script_yylex): New function. Temporary
43166 introduced to filter some tokens.
43167 (grub_script_yyerror): Print a newline.
43168
43169 * normal/main.c (read_config_file): Output information about the
43170 lines that contain errors. Wait for a key after all lines have
43171 been processed. Don't return an empty menu.
43172
43173 * normal/parser.y (func_mem): Don't initialize.
43174 (menu_entry): Likewise.
43175 (err): New variable.
43176 (script): Don't return anything when an error was encountered.
43177 (ws, returns): Removed rules.
43178 (argument): Disabled concatenated variable support.
43179 (arguments): Remove explicit separators.
43180 (grubcmd): Likewise.
43181 (function): Likewise.
43182 (menuentry): Likewise.
43183 (if): Likewise.
43184 (commands): Likewise. Add error handling.
43185
43186 * normal/script.c (grub_script_create_cmdline): If
43187 `grub_script_parsed' is 0, assume the parser encountered an error.
43188
43189 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43190
43191 * configure.ac: Add support for EFI. Fix the typo
43192 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43193
43194 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43195
43196 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43197 foreign multibyte characters should be shown correctly.
43198
43199 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43200
43201 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43202 calculation.
43203 (read_config_file): Made it to close file before returning.
43204
43205 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43206
43207 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43208 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43209 video/i386/pc/vbefill.c.
43210
43211 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43212 video/i386/pc/vbefill.c.
43213
43214 * include/grub/video.h (grub_video_blit_format): New enum.
43215 (grub_video_mode_info): Added new member blit_format.
43216 (grub_video_get_blit_format): New function prototype.
43217
43218 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43219 function prototype.
43220 (grub_video_vbe_map_rgb): Likewise.
43221 (grub_video_vbe_unmap_color): Likewise.
43222
43223 * include/grub/i386/pc/vbeblit.h: New file.
43224
43225 * include/grub/i386/pc/vbefill.h: New file.
43226
43227 * video/video.c (grub_video_get_blit_format): New function.
43228 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43229 (grub_video_vbe_map_rgb): Likewise.
43230 (grub_video_vbe_unmap_color): Likewise.
43231
43232 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43233 optimized fills.
43234 (grub_video_vbe_blit_render_target): Changed to use more optimized
43235 blits.
43236 (grub_video_vbe_setup): Added detection for optimized settings.
43237 (grub_video_vbe_create_render_target): Likewise.
43238
43239 * video/i386/pc/vbeblit.c: New file.
43240
43241 * video/i386/pc/vbefill.c: New file.
43242
43243 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43244
43245 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43246 here...
43247
43248 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43249 parsing to support both hex and dec ranges. If filename was missing
43250 show usage information.
43251
43252 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43253
43254 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43255 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43256
43257 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43258 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43259 (video_mod_SOURCES): Added.
43260 (video_mod_CFLAGS): Likewise.
43261 (video_mod_LDFLAGS): Likewise.
43262 (gfxterm_mod_SOURCES): Likewise.
43263 (gfxterm_mod_CFLAGS): Likewise.
43264 (gfxterm_mod_LDFLAGS): Likewise.
43265 (videotest_mod_SOURCES): Likewise.
43266 (videotest_mod_CFLAGS): Likewise.
43267 (videotest_mod_LDFLAGS): Likewise.
43268 (vesafb_mod_SOURCES): Removed.
43269 (vesafb_mod_CFLAGS): Likewise.
43270 (vesafb_mod_LDFLAGS): Likewise.
43271 (vga_mod_SOURCES): Likewise.
43272 (vga_mod_CFLAGS): Likewise.
43273 (vga_mod_LDFLAGS): Likewise.
43274
43275 * commands/videotest.c: New file.
43276
43277 * font/manager.c (fill_with_default_glyph): Modified to use
43278 grub_font_glyph.
43279 (grub_font_get_glyph): Likewise.
43280 (fontmanager): Renamed from this...
43281 (font_manager): ... to this.
43282
43283 * include/grub/font.h (grub_font_glyph): Added new structure.
43284 (grub_font_get_glyph): Modified to use grub_font_glyph.
43285
43286 * include/grub/misc.h (grub_abs): Added as inline function.
43287
43288 * include/grub/video.h: New file.
43289
43290 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43291 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43292 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43293 (grub_vbe_get_controller_info): Renamed from this...
43294 (grub_vbe_bios_get_controller_info): ... to this.
43295 (grub_vbe_get_mode_info): Renamed from this...
43296 (grub_vbe_bios_get_mode_info): ... to this.
43297 (grub_vbe_set_mode): Renamed from this...
43298 (grub_vbe_bios_set_mode): ... to this.
43299 (grub_vbe_get_mode): Renamed from this...
43300 (grub_vbe_bios_get_mode): ... to this.
43301 (grub_vbe_set_memory_window): Renamed from this...
43302 (grub_vbe_bios_set_memory_window): ... to this.
43303 (grub_vbe_get_memory_window): Renamed from this...
43304 (grub_vbe_bios_get_memory_window): ... to this.
43305 (grub_vbe_set_scanline_length): Renamed from this...
43306 (grub_vbe_set_scanline_length): ... to this.
43307 (grub_vbe_get_scanline_length): Renamed from this...
43308 (grub_vbe_bios_get_scanline_length): ... to this.
43309 (grub_vbe_set_display_start): Renamed from this...
43310 (grub_vbe_bios_set_display_start): ... to this.
43311 (grub_vbe_get_display_start): Renamed from this...
43312 (grub_vbe_bios_get_display_start): ... to this.
43313 (grub_vbe_set_palette_data): Renamed from this...
43314 (grub_vbe_bios_set_palette_data): ... to this.
43315 (grub_vbe_set_pixel_rgb): Removed.
43316 (grub_vbe_set_pixel_index): Likewise.
43317
43318 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43319 from this...
43320 (grub_vbe_bios_get_controller_info): ... to this.
43321 (grub_vbe_get_mode_info): Renamed from this...
43322 (grub_vbe_bios_get_mode_info): ... to this.
43323 (grub_vbe_set_mode): Renamed from this...
43324 (grub_vbe_bios_set_mode): ... to this.
43325 (grub_vbe_get_mode): Renamed from this...
43326 (grub_vbe_bios_get_mode): ... to this.
43327 (grub_vbe_set_memory_window): Renamed from this...
43328 (grub_vbe_bios_set_memory_window): ... to this.
43329 (grub_vbe_get_memory_window): Renamed from this...
43330 (grub_vbe_bios_get_memory_window): ... to this.
43331 (grub_vbe_set_scanline_length): Renamed from this...
43332 (grub_vbe_set_scanline_length): ... to this.
43333 (grub_vbe_get_scanline_length): Renamed from this...
43334 (grub_vbe_bios_get_scanline_length): ... to this.
43335 (grub_vbe_set_display_start): Renamed from this...
43336 (grub_vbe_bios_set_display_start): ... to this.
43337 (grub_vbe_get_display_start): Renamed from this...
43338 (grub_vbe_bios_get_display_start): ... to this.
43339 (grub_vbe_set_palette_data): Renamed from this...
43340 (grub_vbe_bios_set_palette_data): ... to this.
43341 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43342 getting corrupted after calling it. Added more pushes and pops.
43343 (grub_vbe_bios_set_mode): Likewise.
43344 (grub_vbe_bios_get_mode): Likewise.
43345 (grub_vbe_bios_get_memory_window): Likewise.
43346 (grub_vbe_bios_set_scanline_length): Likewise.
43347 (grub_vbe_bios_get_scanline_length): Likewise.
43348 (grub_vbe_bios_get_display_start): Likewise.
43349 (grub_vbe_bios_set_palette_data): Likewise.
43350
43351 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43352 (cl_insert): Likewise.
43353 (cl_delete): Likewise.
43354
43355 * term/gfxterm.c: New file.
43356
43357 * term/i386/pc/vesafb.c: Removed file.
43358
43359 * video/video.c: New file.
43360
43361 * video/i386/pc/vbe.c (real2pm): Added new function.
43362 (grub_video_vbe_draw_pixel): Likewise.
43363 (grub_video_vbe_get_video_ptr): Likewise.
43364 (grub_video_vbe_get_pixel): Likewise
43365 (grub_video_vbe_init): Likewise.
43366 (grub_video_vbe_fini): Likewise.
43367 (grub_video_vbe_setup): Likewise.
43368 (grub_video_vbe_get_info): Likewise.
43369 (grub_video_vbe_set_palette): Likewise.
43370 (grub_video_vbe_get_palette): Likewise.
43371 (grub_video_vbe_set_viewport): Likewise.
43372 (grub_video_vbe_get_viewport): Likewise.
43373 (grub_video_vbe_map_color): Likewise.
43374 (grub_video_vbe_map_rgb): Likewise.
43375 (grub_video_vbe_map_rgba): Likewise.
43376 (grub_video_vbe_unmap_color): Likewise.
43377 (grub_video_vbe_fill_rect): Likewise.
43378 (grub_video_vbe_blit_glyph): Likewise.
43379 (grub_video_vbe_blit_bitmap): Likewise.
43380 (grub_video_vbe_blit_render_target): Likewise.
43381 (grub_video_vbe_scroll): Likewise.
43382 (grub_video_vbe_swap_buffers): Likewise.
43383 (grub_video_vbe_create_render_target): Likewise.
43384 (grub_video_vbe_delete_render_target): Likewise.
43385 (grub_video_vbe_set_active_render_target): Likewise.
43386 (grub_vbe_set_pixel_rgb): Remove function.
43387 (grub_vbe_set_pixel_index): Likewise.
43388 (index_color_mode): Remove static variable.
43389 (active_mode): Likewise.
43390 (framebuffer): Likewise.
43391 (bytes_per_scan_line): Likewise.
43392 (grub_video_vbe_adapter): Added new static variable.
43393 (framebuffer): Likewise.
43394 (render_target): Likewise.
43395 (initial_mode): Likewise.
43396 (mode_in_use): Likewise.
43397 (mode_list): Likewise.
43398
43399 2006-03-10 Marco Gerards <marco@gnu.org>
43400
43401 * configure.ac (AC_INIT): Bumped to 1.93.
43402
43403 * DISTLIST: Added `include/grub/hfs.h'.
43404
43405 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43406
43407 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43408 18H, which might help the BIOS falling back to next boot media.
43409
43410 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43411
43412 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43413 Poe Chen <poe.poechen@gmail.com>.
43414
43415 2006-01-17 Marco Gerards <marco@gnu.org>
43416
43417 * include/grub/normal.h: Include <grub/script.h>.
43418 (grub_command_list): Removed struct.
43419 (grub_command_list_t): Removed type.
43420 (grub_menu_entry): Remove members `num' and `command_list'. Add
43421 members `commands' and `sourcecode'.
43422 * include/grub/script.h: Add inclusion guards.
43423 (grub_script_cmd_menuentry): New struct.
43424 (grub_script_execute_menuentry): New prototype.
43425 (grub_script_lexer_record_start): Likewise.
43426 (grub_script_lexer_record_stop): Likewise.
43427 * normal/execute.c (grub_script_execute_menuentry): New function.
43428 * normal/lexer.c (record, recording, recordpos, recordlen): New
43429 variables.
43430 (grub_script_lexer_record_start): New function.
43431 (grub_script_lexer_record_stop): Likewise.
43432 (recordchar): Likewise.
43433 (nextchar): Likewise.
43434 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43435 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43436 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43437 (current_menu): New variable.
43438 (free_menu): Mainly rewritten.
43439 (grub_normal_menu_addentry): New function.
43440 (read_config_file): Rewritten.
43441 * normal/menu.c (run_menu_entry): Mainly rewritten.
43442 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43443 the menu entry.
43444 (run): Mainly rewritten.
43445 * normal/parser.y (menu_entry): New variable.
43446 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43447 (menuentry): New rule.
43448 (command): Add `menuentry'.
43449 (if_statement): Allow additional returns before `fi'.
43450 * normal/script.c (grub_script_create_cmdmenu): New function.
43451
43452 2006-01-03 Marco Gerards <marco@gnu.org>
43453
43454 * INSTALL: GNU Bison is required.
43455 * configure.ac: Rewritten the test to detect Bison.
43456 * Makefile.in (YACC): New variable. Reported by Xun Sun
43457 <xun.sun.cn@gmail.com>.
43458
43459 2006-01-03 Marco Gerards <marco@gnu.org>
43460
43461 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43462 the HFS+ filesystem to filesystem blocks.
43463 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43464 GCC warning is silenced.
43465
43466 2006-01-03 Marco Gerards <marco@gnu.org>
43467
43468 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43469 read from disk from big endian to host byte order.
43470
43471 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43472
43473 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43474 documentation.
43475 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43476 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43477 embedded HFS+ filesystem.
43478 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43479 (grub_hfs_sblock): Move from here...
43480 * include/grub/hfs.h: To here... New file.
43481 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43482 documentation.
43483 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43484 New macros.
43485 (grub_hfsplus_volheader): Change type of member `magic' to
43486 `grub_uint16_t'.
43487 (grub_hfsplus_data): Add new member `embedded_offset'.
43488 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43489 returned block.
43490 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43491 Calculate the offset.
43492
43493 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43494
43495 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43496 Removed.
43497 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43498
43499 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43500
43501 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43502 ENV->NAME is NULL after allocating ENV->VALUE.
43503
43504 2005-12-25 Marco Gerards <marco@gnu.org>
43505
43506 * kern/env.c (grub_env_set): Rewritten the error handling code.
43507
43508 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43509
43510 * geninit.sh: Made more robust, and more portable.
43511
43512 2005-12-25 Marco Gerards <marco@gnu.org>
43513
43514 Add support for Apple HFS+ filesystems.
43515
43516 * fs/hfsplus.c: New file.
43517
43518 * DISTLIST: Added `fs/hfsplus.c'.
43519
43520 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43521 (hfsplus_mod_SOURCES): New variable.
43522 (hfsplus_mod_CFLAGS): Likewise.
43523 (hfsplus_mod_LDFLAGS): Likewise.
43524 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43525 (grub_setup_SOURCES): Likewise.
43526 (grub_mkdevicemap_SOURCES): Likewise.
43527 (grub_emu_SOURCES): Likewise.
43528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43529
43530 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43531
43532 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43533
43534 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43535
43536 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43537 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43538 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43539 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43540 normal/lexer.c, normal/parser.y, normal/script.c, and
43541 partmap/gpt.c.
43542 Removed kern/sparc64/cache.c.
43543
43544 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43545 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43546 grub_emu_init.c.
43547
43548 * configure.ac (AC_INIT): Bumped to 1.92.
43549
43550 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43551
43552 * kern/err.c (grub_error_push): Added new function to support error
43553 stacks.
43554 (grub_error_pop): Likewise.
43555 (grub_error_stack_items): New local variable to support error stacks.
43556 (grub_error_stack_pos): Likewise.
43557 (grub_error_stack_assert): Likewise.
43558 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43559 stack depth.
43560 (grub_print_error): Added support to print errors from error stack.
43561
43562 * include/grub/err.h (grub_error_push): Added function prototype.
43563 (grub_error_pop): Likewise.
43564
43565 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43566
43567 * configure.ac: Accept `powerpc64' as host_cpu.
43568 (amd64): Rename to `biarch32'.
43569
43570 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43571 non-cacheline-aligned addresses.
43572
43573 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43574 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43575 if `size' is non-zero.
43576
43577 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43578
43579 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43580 and `cd' to make sure the filename is not prefixed with a
43581 directory name.
43582 (pkgdata_MODULES): Add `gpt.mod'.
43583 (gpt_mod_SOURCES): New variable.
43584 (gpt_mod_CFLAGS): Likewise.
43585 (gpt_mod_LDFLAGS): Likewise.
43586
43587 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43588
43589 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43590 New macro.
43591
43592 * partmap/gpt.c: New file.
43593
43594 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43595 GPT partition map is detected.
43596
43597 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43598
43599 * commands/i386/pc/play.c: New file.
43600 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43601 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43602 macros.
43603
43604 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43605
43606 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43607 ((unused))' to silence gcc warning.
43608
43609 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43610
43611 * configure.ac: Correct `AC_PROG_YACC' test.
43612
43613 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43614
43615 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43616 check before installing files.
43617
43618 2005-11-22 Mike Small <smallm@panix.com>
43619
43620 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43621 number regex so multidigit numbers are recognized correctly.
43622
43623 2005-11-22 Mike Small <smallm@panix.com>
43624
43625 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43626 debugging message before attempting to claim memory.
43627 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43628 multiple addresses in case of failure.
43629
43630 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43631
43632 * term/tparm.c (get_space): Remove empty `if' statement.
43633
43634 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43635
43636 * kern/parser.c (check_varstate): Rename `state' to 's'.
43637
43638 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43639
43640 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43641 variable definitions to the beginning of each function. Sort stack
43642 variables by size.
43643 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43644 `buf' argument to `char *'.
43645
43646 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43647
43648 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43649 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43650 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43651 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43652 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43653 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43654 configfile.mod, search.mod, gzio.mod and test.mod.
43655 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43656 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43657 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43658 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43659 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43660 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43661 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43662 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43663 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43664 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43665 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43666 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43667 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43668 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43669 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43670 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43671 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43672 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43673 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43674 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43675 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43676 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43677 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43678
43679 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43680 `grep --include'.
43681 (pkgdata_MODULES): Add test.mod.
43682
43683 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43684
43685 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43686 appending to variables with "+=".
43687 (PModule): Use full pathname to generate *.lst filenames.
43688
43689 * Makefile.in: Fixed list rules moved from genmk.rb.
43690 (.DELETE_ON_ERROR): New special target.
43691 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43692
43693 * conf/i386-pc.rmk: Include conf/common.mk.
43694 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43695 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43696 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43697 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43698 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43699 configfile.mod, search.mod, gzio.mod and test.mod.
43700 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43701 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43702 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43703 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43704 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43705 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43706 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43707 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43708 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43709 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43710 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43711 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43712 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43713 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43714 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43715 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43716 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43717 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43718 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43719 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43720 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43721 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43722 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43723 here...
43724 * conf/common.rmk: ... to here. New file.
43725
43726 * conf/common.mk: New file.
43727
43728 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43729
43730 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43731 (grub_script.tab.c): ... here.
43732
43733 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43734 (grub_script.tab.c): ... here.
43735
43736 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43737 (grub_script.tab.c): ... here.
43738
43739 * normal/command.c (grub_command_find): Fixed a memory leak of
43740 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43741
43742 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43743
43744 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43745 "@" which marks the start of a comment on ARM.
43746 (VARIABLE): Likewise.
43747
43748 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43749
43750 Add support for Linux/ADFS partition tables.
43751
43752 * partmap/acorn.c: New file.
43753
43754 * include/grub/acorn_filecore.h: Likewise.
43755
43756 * DISTLIST: Added `partmap/acorn.c' and
43757 `include/grub/acorn_filecore.h'.
43758
43759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43760 `partmap/acorn.c'.
43761 (pkgdata_MODULES): Add `acorn.mod'.
43762 (acorn_mod_SOURCES): New variable.
43763 (acorn_mod_CFLAGS): Likewise.
43764
43765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43766 `partmap/acorn.c'.
43767 (pkgdata_MODULES): Add `acorn.mod'.
43768 (acorn_mod_SOURCES): New variable.
43769 (acorn_mod_CFLAGS): Likewise.
43770
43771 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43772 (pkgdata_MODULES): Add `acorn.mod'.
43773 (acorn_mod_SOURCES): New variable.
43774 (acorn_mod_CFLAGS): Likewise.
43775 (acorn_mod_LDFLAGS): Likewise.
43776
43777 * include/types.h (grub_disk_addr_t): New typedef.
43778
43779 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43780
43781 * geninit.sh: New file.
43782
43783 * geninitheader.sh: Likewise.
43784
43785 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43786 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43787 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43788 * commands/configfile.c (grub_configfile_init)
43789 (grub_configfile_fini): Likewise.
43790 * commands/default.c (grub_default_init, grub_default_fini):
43791 Likewise.
43792 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43793 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43794 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43795 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43796 Likewise.
43797 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43798 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43799 Likewise.
43800 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43801 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43802 Likewise.
43803 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43804 Likewise.
43805 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43806 Likewise.
43807 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43808 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43809 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43810 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43811 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43812 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43813 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43814 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43815 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43816 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43817 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43818 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43819 * partmap/amiga.c (grub_amiga_partition_map_init)
43820 (grub_amiga_partition_map_fini): Likewise.
43821 * partmap/apple.c (grub_apple_partition_map_init)
43822 (grub_apple_partition_map_fini): Likewise.
43823 * partmap/pc.c (grub_pc_partition_map_init)
43824 (grub_pc_partition_map_fini): Likewise.
43825 * partmap/sun.c (grub_sun_partition_map_init,
43826 grub_sun_partition_map_fini): Likewise.
43827 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43828 Likewise.
43829
43830 * util/grub-emu.c: Include <grub_modules_init.h>.
43831 (main): Don't initialize and de-initialize any modules directly,
43832 use `grub_init_all' and `grub_fini_all' instead.
43833
43834 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43835 `grub_vesafb_mod_init'.
43836 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43837 all users.
43838 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43839 `grub_vga_mod_init'. Updated all users.
43840 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43841
43842 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43843 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43844 rules.
43845
43846 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43847 Generate a function to initialize the module in utilities.
43848 Updated all callers.
43849 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43850 initialize the module in utilities. Updated all callers.
43851
43852 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43853
43854 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43855 escape sequence and a literal ^L to clear the screen.
43856
43857 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43858 when returning from Open Firmware.
43859
43860 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43861
43862 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43863 (grub_ofconsole_height): Likewise.
43864 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43865 manually insert a '\n'.
43866 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43867 `grub_ofconsole_height'. Return early if these are already set.
43868
43869 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43870
43871 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43872 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43873 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43874 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43875 and `normal/script.c'.
43876 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43877 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43878 (test_mod_SOURCES): New variable.
43879 (test_mod_CFLAGS): Likewise.
43880 (test_mod_LDFLAGS): Likewise.
43881 (pkgdata_MODULES): Add `test.mod'.
43882 (grub_script.tab.c): New rule.
43883 (grub_script.tab.h): Likewise.
43884
43885 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43886
43887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43888 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43889 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43890 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43891 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43892 (test_mod_SOURCES): New variable.
43893 (test_mod_CFLAGS): Likewise.
43894 (pkgdata_MODULES): Add `test.mod'.
43895 (grub_script.tab.c): New rule.
43896 (grub_script.tab.h): Likewise.
43897
43898 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43899
43900 Add initial scripting support.
43901
43902 * commands/test.c: New file.
43903 * include/grub/script.h: Likewise.
43904 * normal/execute.c: Likewise.
43905 * normal/function.c: Likewise.
43906 * normal/lexer.c: Likewise.
43907 * normal/parser.y: Likewise.
43908 * normal/script.c: Likewise.
43909
43910 * configure.ac: Add `AC_PROG_YACC' test.
43911
43912 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43913 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43914 `normal/function.c' and `normal/script.c'.
43915 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43916 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43917 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43918 variables.
43919 (pkgdata_MODULES): Add `test.mod'.
43920 (grub_script.tab.c): New rule.
43921 (grub_script.tab.h): Likewise.
43922
43923 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43924
43925 * include/grub/normal.h (grub_test_init): New prototype.
43926 (grub_test_fini): Likewise.
43927
43928 * normal/command.c: Include <grub/script.h>.
43929 (grub_command_execute): Rewritten.
43930
43931 * util/grub-emu.c (main): Call `grub_test_init' and
43932 `grub_test_fini'.
43933
43934 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43935
43936 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
43937 to 0.
43938 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
43939 there are no pending characters.
43940
43941 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43942
43943 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
43944 `grub_strndup' to drop device arguments. Replace unnecessary
43945 `grub_strndup' with `grub_strdup'.
43946
43947 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43948
43949 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
43950 `debug' environment variable has been set.
43951
43952 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
43953
43954 * Makefile.in (install-local): Use $(DATA).
43955 (uninstall): Likewise.
43956 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
43957 (sbin_UTILITIES): ... to here.
43958 (sbin_SCRIPTS): New variable.
43959 (grub_install_SOURCES): New variable.
43960 * util/powerpc/ieee1275/grub-install.in: New file.
43961 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
43962 variable.
43963 (add_segments): Call `grub_util_get_path'.
43964
43965 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43966
43967 From Timothy Baldwin:
43968 * commands/ls.c (grub_ls_list_files): Close FILE with
43969 grub_file_close.
43970 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
43971
43972 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
43973
43974 * include/grub/parser.h: New file.
43975
43976 * kern/parser.c: Likewise.
43977
43978 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
43979 (grub_setup_SOURCES): Likewise.
43980 (grub_probefs_SOURCES): Likewise.
43981 (grub_emu_SOURCES): Likewise.
43982 (kernel_img_HEADERS): Add `parser.h'.
43983
43984 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43985 (grub_emu_SOURCES): Add `kern/parser.c'.
43986 (grubof_SOURCES): Likewise.
43987
43988 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43989 (grubof_SOURCES): Add `kern/parser.c'.
43990
43991 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
43992
43993 * kern/misc.c (grub_split_cmdline): Removed function.
43994
43995 * kern/rescue.c: Include <grub/parser.h>.
43996 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
43997 of `grub_split_cmdline'.
43998
43999 * normal/command.c: Include <grub/parser.h>.
44000 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44001 of `grub_split_cmdline'.
44002
44003 * normal/completion.c: Include <grub/parser.h>.
44004 (cmdline_state): New variable.
44005 (iterate_dir): End the filename with a quote depending on the
44006 command line state.
44007 (get_state): new function.
44008 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44009 split the arguments and determine the current argument. When the
44010 argument string is not quoted, escape all spaces.
44011
44012 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44013
44014 * normal/sparc64/setjmp.S: New file.
44015
44016 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44017
44018 * include/grub/sparc64/libgcc.h: New file.
44019 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44020 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44021 normal/sparc64/setjmp.c.
44022
44023 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44024
44025 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44026 * kern/sparc64/cache.S: New file.
44027 * kern/sparc64/cache.c: Removed.
44028 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44029 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44030 -mtune=ultrasparc.
44031 (COMMON_LDFLAGS): Add -melf64_sparc.
44032 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44033 (grubof_SOURCES): Use cache.S instead of cache.c.
44034 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44035 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44036 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44037 commented though.
44038 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44039 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44040 (linux_mod_CFLAGS): Commented out.
44041 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44042 out because module isn't built.
44043 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44044 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44045 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44046 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44047 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44048 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44049 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44050 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44051 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44052 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44053 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44054 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44055 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44056 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44057
44058 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44059
44060 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44061 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44062 longer, because HFS should not be used on PC.
44063
44064 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44065
44066 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44067 consistently within the loop.
44068
44069 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44070
44071 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44072 directory can not be read.
44073
44074 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44075
44076 * configure.ac (AC_INIT): Increase the version number to 1.91.
44077
44078 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44079 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44080 term/i386/pc/serial.c.
44081
44082 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44083
44084 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44085 file size must be permitted.
44086
44087 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44088 between %ah and %al.
44089
44090 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44091
44092 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44093 grub_uint64_t.
44094 Call the hook with a NUL-terminated filename.
44095 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44096 grub_cpu_to_be32.
44097
44098 * kern/term.c (cursor_state): New variable.
44099 (grub_term_set_current): Reset the cursor state on a new
44100 terminal.
44101 (grub_setcursor): Rewritten to use CURSOR_STATE.
44102 (grub_getcursor): New function.
44103
44104 * include/grub/term.h (grub_getcursor): New prototype.
44105
44106 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44107 integers on ARM. Reported by Timothy Baldwin
44108 <T.E.Baldwin99@members.leeds.ac.uk>.
44109
44110 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44111
44112 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44113 allocated.
44114 (grub_sfs_dir): Likewise.
44115
44116 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44117
44118 Add support for the SFS filesystem.
44119
44120 * fs/sfs.c: New file.
44121
44122 * DISTLIST: Added `fs/sfs.c'.
44123
44124 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44125 (grub_probefs_SOURCES): Likewise.
44126 (grub_emu_SOURCES): Likewise.
44127 (pkgdata_MODULES): Add `sfs.mod'.
44128 (sfs_mod_SOURCES): New variable.
44129 (sfs_mod_CFLAGS): Likewise.
44130 (sfs_mod_LDFLAGS): Likewise.
44131
44132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44133 (pkgdata_MODULES): Add `sfs.mod'.
44134 (sfs_mod_SOURCES): New variable.
44135 (sfs_mod_CFLAGS): Likewise.
44136
44137 * util/grub-emu.c (main): Call `grub_sfs_init' and
44138 `grub_sfs_fini'.
44139
44140 * include/grub/fs.h (grub_sfs_init): New prototype.
44141 (grub_sfs_fini): Likewise.
44142
44143 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44144
44145 Add support for the AFFS filesystem.
44146
44147 * fs/affs.c: New file.
44148
44149 * DISTLIST: Added `fs/affs.c'.
44150
44151 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44152 (grub_probefs_SOURCES): Likewise.
44153 (grub_emu_SOURCES): Likewise.
44154 (pkgdata_MODULES): Add `affs.mod'.
44155 (affs_mod_SOURCES): New variable.
44156 (affs_mod_CFLAGS): Likewise.
44157 (affs_mod_LDFLAGS): Likewise.
44158
44159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44160 (pkgdata_MODULES): Add `affs.mod'.
44161 (affs_mod_SOURCES): New variable.
44162 (affs_mod_CFLAGS): Likewise.
44163
44164 * util/grub-emu.c (main): Call `grub_affs_init' and
44165 `grub_affs_fini'.
44166
44167 * include/grub/fs.h (grub_affs_init): New prototype.
44168 (grub_affs_fini): Likewise.
44169
44170 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44171
44172 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44173
44174 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44175
44176 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44177 `-m32' to CFLAGS.
44178
44179 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44180 linking.
44181
44182 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44183 (COMMON_LDFLAGS): New variable.
44184 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44185 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44186 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44187 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44188 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44189 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44190 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44191 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44192 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44193 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44194 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44195 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44196 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44197 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44198 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44199 variables.
44200 (normal_mod_ASFLAGS): Add `-m32'.
44201
44202 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44203 (grub_host_size_t, grub_host_ssize_t): New types.
44204 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44205 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44206 `GRUB_HOST_SIZEOF_VOID_P'.
44207
44208 * include/grub/kernel.h (struct grub_module_header): Type of
44209 member offset changed to `grub_host_off_t'. Type of member size
44210 changed to `grub_host_size_t'.
44211 (struct grub_module_info): Type of member offset changed to
44212 `grub_host_off_t'. Type of member size changed to
44213 `grub_host_size_t'.
44214
44215 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44216
44217 Make GRUB's kernel compliant to Multiboot Specification.
44218
44219 * kern/i386/pc/startup.S (multiboot_header): New label.
44220 (multiboot_entry): Likewise.
44221 (multiboot_trampoline): Likewise.
44222
44223 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44224 Increased to 0x4A0.
44225
44226 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44227 put parentheses after a question mark.
44228 [!GRUB_UTIL] (my_mod): New variable.
44229
44230 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44231
44232 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44233
44234 Adds support for the XFS filesystem. Btrees are not supported
44235 yet.
44236
44237 * fs/xfs.c: New file.
44238
44239 * DISTLIST: Added `fs/xfs.c'.
44240
44241 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44242 (grub_probefs_SOURCES): Likewise.
44243 (grub_emu_SOURCES): Likewise.
44244 (pkgdata_MODULES): Add `xfs.mod'.
44245 (xfs_mod_SOURCES): New variable.
44246 (xfs_mod_CFLAGS): Likewise.
44247
44248 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44249 (pkgdata_MODULES): Add `xfs.mod'.
44250 (xfs_mod_SOURCES): New variable.
44251 (xfs_mod_CFLAGS): Likewise.
44252
44253 * util/grub-emu.c (main): Call `grub_xfs_init' and
44254 `grub_xfs_fini'.
44255
44256 * include/grub/fs.h (grub_xfs_init): New prototype.
44257 (grub_xfs_fini): Likewise.
44258
44259
44260 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44261
44262 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44263 color modes, allow greater than 16 colors to be configured as
44264 a default palette.
44265
44266 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44267
44268 * normal/completion.c (complete_arguments): Add the qualifier
44269 const into OPTIONS.
44270
44271 From Omniflux <omniflux+lists@omniflux.com>:
44272 * include/grub/terminfo.h: New file.
44273 * include/grub/tparm.h: Likewise.
44274 * include/grub/i386/pc/serial.h: Likewise.
44275 * term/terminfo.c: Likewise.
44276 * term/tparm.c: Likewise.
44277 * term/i386/pc/serial.c: Likewise.
44278 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44279 serial.mod.
44280 (terminfo_mod_SOURCES): New variable.
44281 (terminfo_mod_CFLAGS): Likewise.
44282 (serial_mod_SOURCES): Likewise.
44283 (serial_mod_CFLAGS): Likewise.
44284
44285 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44286
44287 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44288 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44289 and kern/powerpc/ieee1275/cmain.c, respectively.
44290
44291 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44292 * kern/powerpc/ieee1275/crt0.S: ... here.
44293
44294 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44295 * kern/powerpc/ieee1275/cmain.c: ... here.
44296
44297 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44298 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44299 instead of boot/powerpc/ieee1275/crt0.S and
44300 boot/powerpc/ieee1275/cmain.c, respectively.
44301
44302 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44303 sectors. It was not used anyway.
44304
44305 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44306
44307 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44308 `unused parameter' warning.
44309
44310 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44311
44312 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44313 function.
44314 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44315 getcharwidth.
44316
44317 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44318
44319 * include/grub/normal.h (enum grub_completion_type): Added
44320 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44321
44322 * normal/cmdline.c (print_completion): Handle
44323 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44324 * normal/menu_entry.c (store_completion): Likewise.
44325
44326 * normal/completion.c (complete_arguments): New function.
44327 (grub_normal_do_completion): Call `complete_arguments' when the
44328 current words start with a dash.
44329
44330 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44331
44332 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44333 `gzio.mod' instead of `io.mod').
44334
44335 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44336
44337 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44338 (DISTDIRS): Added io and video.
44339 Rewrite the search routine to make an output consistently.
44340
44341 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44342 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44343 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44344 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44345 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44346 util/powerpc/ieee1275/misc.c.
44347
44348 * include/grub/gzio.h: New file.
44349 * io/gzio.c: Likewise.
44350
44351 * kern/file.c (grub_file_close): Call grub_device_close only if
44352 FILE->DEVICE is not NULL.
44353
44354 * include/grub/mm.h [!NULL] (NULL): New macro.
44355
44356 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44357
44358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44359 (pkgdata_MODULES): Added gzio.mod.
44360 (gzio_mod_SOURCES): New variable.
44361 (gzio_mod_CFLAGS): Likewise.
44362
44363 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44364 (pkgdata_MODULES): Added gzio.mod.
44365 (gzio_mod_SOURCES): New variable.
44366 (gzio_mod_CFLAGS): Likewise.
44367
44368 * commands/cat.c: Include grub/gzio.h.
44369 (grub_cmd_cat): Use grub_gzfile_open instead of
44370 grub_file_open.
44371
44372 * commands/cmp.c: Include grub/gzio.h.
44373 (grub_cmd_cmp): Use grub_gzfile_open instead of
44374 grub_file_open.
44375
44376 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44377 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44378 grub_file_open.
44379 (grub_rescue_cmd_module): Likewise.
44380
44381 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44382
44383 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44384 kern/sparc64/ieee1275/init.c because it contains _start.
44385 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44386
44387 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44388
44389 * configure.ac: Add support for sparc64 host with ieee1275
44390 firmware.
44391 * configure: Generated from configure.ac.
44392 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44393 instead of int.
44394 (grub_ofdisk_read): Likewise.
44395 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44396 pointers as (void *) to remove a warning.
44397 (grub_ofdisk_close): Likewise.
44398 (grub_ofdisk_read): Likewise.
44399 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44400 returns, so make it return void to remove a warning.
44401 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44402 Corresponding prototype change.
44403 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44404 values, and cast the pointers as (void *) to remove a warning.
44405 (grub_mm_dump): Likewise.
44406 * conf/sparc64-ieee1275.mk: New file.
44407 * conf/sparc64-ieee1275.rmk: Likewise.
44408 * include/grub/sparc64/setjmp.h: Likewise.
44409 * include/grub/sparc64/types.h: Likewise.
44410 * include/grub/sparc64/ieee1275/console.h: Likewise.
44411 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44412 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44413 * include/grub/sparc64/ieee1275/time.h: Likewise.
44414 * kern/sparc64/cache.c: Likewise.
44415 * kern/sparc64/dl.c: Likewise.
44416 * kern/sparc64/ieee1275/init.c: Likewise.
44417 * kern/sparc64/ieee1275/openfw.c: Likewise.
44418
44419 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44420
44421 * util/console.c (grub_ncurses_putchar): If C is greater than
44422 0x7f, set C to a question mark.
44423 (grub_ncurses_getcharwidth): New function.
44424 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44425 getcharwidth.
44426
44427 * normal/menu.c (print_entry): Made aware of Unicode. First,
44428 convert TITLE to UCS-4, and predict the cursor position by
44429 grub_getcharwidth.
44430
44431 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44432 const to SRC.
44433 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44434
44435 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44436
44437 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44438 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44439 grub_strcat.
44440
44441 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44442 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44443 grub_strcpy and grub_strlen. Take it into account that a space
44444 character is inserted as a delimiter.
44445
44446 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44447
44448 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44449 invalid magic in the error.
44450
44451 * commands/search.c: New file.
44452
44453 * util/grub-emu.c (main): Call grub_search_init and
44454 grub_search_fini.
44455
44456 * kern/rescue.c (grub_rescue_print_disks): Removed.
44457 (grub_rescue_print_devices): New function.
44458 (grub_rescue_cmd_ls): Use grub_device_iterate with
44459 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44460 grub_rescue_print_disks.
44461
44462 * kern/partition.c (grub_partition_iterate): Return the result of
44463 PARTMAP->ITERATE instead of GRUB_ERRNO.
44464
44465 * kern/device.c: Include grub/partition.h.
44466 (grub_device_iterate): New function.
44467
44468 * include/grub/partition.h (grub_partition_iterate): Return int
44469 instead of grub_err_t.
44470
44471 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44472 prototype.
44473 [GRUB_UTIL] (grub_search_fini): Likewise.
44474
44475 * include/grub/device.h (grub_device_iterate): New prototype.
44476
44477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44478 commands/search.c.
44479 (pkgdata_MODULES): Added search.mod.
44480 (search_mod_SOURCES): New variable.
44481 (search_mod_CFLAGS): Likewise.
44482
44483 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44484 (pkgdata_MODULES): Added search.mod.
44485 (search_mod_SOURCES): New variable.
44486 (search_mod_CFLAGS): Likewise.
44487
44488 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44489 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44490 All callers changed.
44491
44492 * DISTLIST: Added commands/search.c.
44493
44494 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44495
44496 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44497 conversion.
44498 (grub_getcharwidth): New function.
44499
44500 * kern/misc.c (grub_utf8_to_ucs4): New function.
44501
44502 * include/grub/term.h (struct grub_term): Added a new member
44503 "getcharwidth".
44504 (grub_getcharwidth): New prototype.
44505
44506 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44507
44508 * term/i386/pc/console.c (map_char): New function. Segregated from
44509 grub_console_putchar.
44510 (grub_console_putchar): Use map_char.
44511 (grub_console_getcharwidth): New function.
44512 (grub_console_term): Specified grub_console_getcharwidth as
44513 getcharwidth.
44514
44515 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44516 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44517
44518 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44519 GRUB_ERRNO.
44520 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44521 on grub_strtoul completely.
44522 (write_char): Declare local variables in the beginning of the
44523 function.
44524 (grub_vesafb_getcharwidth): New function.
44525 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44526 getcharwidth.
44527
44528 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44529
44530 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44531 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44532 commands/i386/pc/vbetest.c.
44533
44534 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44535 call grub_vbe_get_controller_info again, because the returned
44536 information is volatile.
44537 (grub_vbe_set_video_mode): Mostly rewritten.
44538 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44539 grub_vbe_status_t correctly.
44540 (grub_vbe_get_video_mode_info): Likewise.
44541 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44542 several if statements.
44543
44544 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44545 * commands/i386/pc/vbeinfo.c: ... this.
44546
44547 * commands/i386/pc/vbe_test.c: Renamed to ...
44548 * commands/i386/pc/vbetest.c: ... this.
44549
44550 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44551 ...
44552 (grub_cmd_vbeinfo): ... this. Save video modes before
44553 iterating. Skip a video mode, if it is not available, not enough
44554 information is given or it is monochrome. Show the memory
44555 model. Leave the interpretation of MODEVAR to grub_strtoul
44556 completely.
44557 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44558 (GRUB_MOD_FINI): Likewise.
44559
44560 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44561 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44562 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44563 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44564 grub_strtoul completely.
44565 (real2pm): Removed.
44566 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44567 (GRUB_MOD_FINI): Likewise.
44568
44569 * normal/misc.c: Include grub/mm.h.
44570
44571 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44572 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44573 (vbe_list_modes_mod_SOURCES): Removed.
44574 (vbe_list_modes_mod_CFLAGS): Likewise.
44575 (vbe_test_mod_SOURCES): Likewise.
44576 (vbe_test_mod_CFLAGS): Likewise.
44577 (vbeinfo_mod_SOURCES): New variable.
44578 (vbeinfo_mod_CFLAGS): Likewise.
44579 (vbetest_mod_SOURCES): Likewise.
44580 (vbetest_mod_CFLAGS): Likewise.
44581
44582 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44583
44584 * normal/misc.c: New file.
44585
44586 * DISTLIST: Added normal/misc.c.
44587
44588 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44589 DISK to HOOK. Call HOOK with DISK.
44590 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44591 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44592 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44593
44594 * normal/menu_entry.c (struct screen): Added a new member
44595 "completion_shown".
44596 (completion_buffer): New global variable.
44597 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44598 (store_completion): New function.
44599 (complete): Likewise.
44600 (clear_completions): Likewise.
44601 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44602 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44603 a tab, call complete.
44604
44605 * normal/completion.c (disk_dev): Removed.
44606 (print_simple_completion): Likewise.
44607 (print_partition_completion): Likewise.
44608 (print_func): New global variable.
44609 (add_completion): Do not take the arguments WHAT or PRINT any
44610 longer. Added a new argument TYPE. Instead of printing directly,
44611 call PRINT_FUNC if not NULL.
44612 All callers changed.
44613 (complete_device): Use a local variable DEV instead of
44614 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44615 (grub_normal_do_completion): Take a new argument HOOK. Do not
44616 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44617 empty string, return NULL instead.
44618 All callers changed.
44619
44620 * normal/cmdline.c (print_completion): New function.
44621
44622 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44623 to HOOK.
44624 All callers changed.
44625
44626 * kern/disk.c (grub_print_partinfo): Removed.
44627
44628 * include/grub/partition.h (struct grub_partition_map): Add a new
44629 argument DISK into HOOK of ITERATE.
44630 (grub_partition_iterate): Add a new argument DISK to HOOK.
44631
44632 * include/grub/normal.h (enum grub_completion_type): New enum.
44633 (grub_completion_type_t): New type.
44634 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44635 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44636 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44637 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44638 (grub_normal_do_completion): Added a new argument HOOK.
44639 (grub_normal_print_device_info): New prototype.
44640
44641 * include/grub/disk.h (grub_print_partinfo): Removed.
44642
44643 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44644 (normal_mod_SOURCES): Likewise.
44645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44646 (normal_mod_SOURCES): Likewise.
44647
44648 * commands/ls.c (grub_ls_list_disks): Use
44649 grub_normal_print_device_info instead of grub_print_partinfo. Free
44650 PNAME.
44651 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44652 duplicating the code.
44653
44654 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44655
44656 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44657 follow GCS more precisely.
44658 * commands/i386/pc/vbe_test.c: Likewise.
44659 * include/grub/i386/pc/vbe.h: Likewise.
44660 * term/i386/pc/vesafb.c: Likewise.
44661 * video/i386/pc/vbe.c: Likewise.
44662
44663 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44664
44665 * DISTLIST: Added term/i386/pc/vesafb.c
44666 DISTLIST: Added video/i386/pc/vbe.c
44667 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44668 DISTLIST: Added commands/i386/pc/vbe_test.c.
44669 * commands/i386/pc/vbe_list_modes.c: New file.
44670 * commands/i386/pc/vbe_test.c: Likewise.
44671 * term/i386/pc/vesafb.c: Likewise.
44672 * video/i386/pc/vbe.c: Likewise.
44673 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44674 (grub_vbe_probe) Added prototype.
44675 (grub_vbe_set_video_mode) Likewise.
44676 (grub_vbe_get_video_mode) Likewise.
44677 (grub_vbe_get_video_mode_info) Likewise.
44678 (grub_vbe_set_pixel_rgb) Likewise.
44679 (grub_vbe_set_pixel_index) Likewise.
44680 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44681 (pkgdata_MODULES): Added vesafb.mod.
44682 (pkgdata_MODULES): Added vbe_list_modes.mod.
44683 (pkgdata_MODULES): Added vbe_test.mod.
44684 (vbe_mod_SOURCES): Added.
44685 (vbe_mod_CFLAGS): Likewise.
44686 (vesafb_mod_SOURCES): Likewise.
44687 (vesafb_mod_CFLAGS): Likewise.
44688 (vbe_list_modes_mod_SOURCES): Likewise.
44689 (vbe_list_modes_mod_CFLAGS): Likewise.
44690 (vbe_test_mod_SOURCES): Likewise.
44691 (vbe_test_mod_CFLAGS): Likewise.
44692
44693 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44694
44695 * normal/command.c (grub_command_execute): If INTERACTIVE is
44696 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44697 CMDLINE. Disable the pager if INTERACTIVE is true.
44698 All callers are changed.
44699
44700 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44701 before reading a config file.
44702 * normal/main.c (read_config_file): Even if a command is not
44703 found, register it if it is within an entry.
44704
44705 * util/grub-emu.c: Include sys/types.h and unistd.h.
44706 (options): Added --hold.
44707 (struct arguments): Added a new member "hold".
44708 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44709 missing.
44710 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44711 cleared by a debugger, if it is not zero.
44712
44713 * include/grub/normal.h (grub_command_execute): Add an argument
44714 INTERACTIVE.
44715
44716 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44717
44718 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44719
44720 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44721
44722 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44723 program with another one, because the old one didn't detect a bug
44724 in gcc-3.4. Always use regparm 2, because the new test is still
44725 not enough for gcc-4.0. Someone must investigate a simple test
44726 case which detects a bug in gcc-4.0.
44727
44728 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44729
44730 * DISTLIST: Added normal/completion.c.
44731
44732 * normal/completion.c: New file.
44733
44734 * term/i386/pc/console.c (grub_console_getwh): New function.
44735 (grub_console_term): Assign grub_console_getwh to getwh.
44736
44737 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44738 function is defined in normal/completion.c as
44739 grub_normal_do_completion.
44740 (grub_cmdline_get): Use grub_normal_do_completion instead of
44741 grub_tab_complete.
44742
44743 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44744 returns non-zero, otherwise return 0.
44745 (grub_partition_iterate): First, probe the partition map. Then,
44746 call ITERATE only for this partition map.
44747
44748 * kern/misc.c (grub_strncmp): Rewritten.
44749
44750 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44751 returns non-zero. Otherwise return 0.
44752
44753 * include/grub/partition.h (grub_partition_map_iterate): Return
44754 int instead of void.
44755
44756 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44757
44758 * include/grub/misc.h (grub_strncmp): Change the type of N to
44759 grub_size_t.
44760
44761 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44762 of void.
44763
44764 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44765 unsigned explicitly before comparing it with I.
44766
44767 * kern/main.c (grub_env_write_root): Add the attribute unused into
44768 VAR.
44769
44770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44771 normal/completion.c.
44772 (normal_mod_SOURCES): Likewise.
44773 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44774 (normal_mod_SOURCES): Likewise.
44775
44776 * normal/command.c (grub_iterate_commands): If ITERATE returns
44777 non-zero, return one immediately.
44778
44779 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44780
44781 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44782 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44783 descriptions.
44784 (grub_vbe_get_controller_info): New function.
44785 (grub_vbe_get_mode_info): Likewise.
44786 (grub_vbe_set_mode): Likewise.
44787 (grub_vbe_get_mode): Likewise.
44788 (grub_vbe_set_memory_window): Likewise.
44789 (grub_vbe_get_memory_window): Likewise.
44790 (grub_vbe_set_scanline_length): Likewise.
44791 (grub_vbe_get_scanline_length): Likewise.
44792 (grub_vbe_set_display_start): Likewise.
44793 (grub_vbe_get_display_start): Likewise.
44794 (grub_vbe_set_palette_data): Likewise.
44795 * include/grub/i386/pc/vbe.h: New file.
44796
44797 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44798
44799 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44800 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44801 * DISTLIST: Likewise.
44802 * kern/ieee1275/of.c: Moved to ...
44803 * kern/ieee1275/ieee1275.c: ... here.
44804
44805 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44806
44807 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44808 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44809 Pass 0 as `end' parameter to grub_strtoul().
44810
44811 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44812
44813 * include/grub/powerpc/ieee1275/console.h: Do not include
44814 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44815 ifdef.
44816 (grub_console_cur_color): Remove i386-specific prototype.
44817 (grub_console_real_putchar): Likewise.
44818 (grub_console_checkkey): Likewise.
44819 (grub_console_getkey): Likewise.
44820 (grub_console_getxy): Likewise.
44821 (grub_console_gotoxy): Likewise.
44822 (grub_console_cls): Likewise.
44823 (grub_console_setcursor): Likewise.
44824 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44825 Include <grub/machine/console.h>.
44826 * term/ieee1275/ofconsole.c: Likewise.
44827
44828 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44829
44830 * Makefile.in (LIBLZO): New variable.
44831
44832 * configure.ac: Check for LZO version 2.
44833
44834 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44835 lzo/lzo1x.h instead of lzo1x.h.
44836
44837 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44838 of -llzo.
44839
44840 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44841 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44842
44843 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44844 copying the data from PARTITION to P.
44845
44846 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44847
44848 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44849 negative, unload the module.
44850
44851 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44852 map is "pc_partition_map" but not "pc".
44853 (usage): Fix the description. The options are --boot-image and
44854 --core-image but not --boot-file or --core-file.
44855 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44856 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44857 DEFAULT_DIRECTORY.
44858
44859 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44860 --core-file. Specify INSTALL_DEVICE as an argument.
44861
44862 * util/console.c: Include config.h.
44863 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44864 [HAVE_NCURSES_H]: Include ncurses.h.
44865 [HAVE_CURSES_H]: Include curses.h.
44866 [!A_NORMAL] (A_NORMAL): Defined as zero.
44867 [!A_STANDOUT] (A_STANDOUT): Likewise.
44868
44869 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44870 -lncurses.
44871 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44872
44873 * configure.ac: Check for curses libraries and headers.
44874
44875 * Makefile.in (LIBCURSES): New variable.
44876
44877 * genmk.rb (Script::rule): Set the executable bits.
44878
44879 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44880 name of the PC partition map is "pc_partition_map" but not "pc".
44881
44882 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44883
44884 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44885 (modules): Likewise.
44886 (usage): Added descriptions for --modules and --grub-probefs.
44887 Handle --modules and --grub-probefs. Save the arguments in MODULES
44888 and GRUB_PROBEFS, respectively.
44889 Auto-detect a filesystem module against GRUBDIR. If the result is
44890 empty and modules are not specified explicitly, abort the
44891 installation. Add the result to MODULES.
44892
44893 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44894 disk/powerpc/ieee1275/ofdisk.c,
44895 include/grub/powerpc/ieee1275/init.h and
44896 term/powerpc/ieee1275/ofconsole.c.
44897 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44898 term/ieee1275/ofconsole.c.
44899
44900 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44901
44902 * COPYING: Upgraded to the latest version. Only the address of the
44903 FSF office has changed.
44904
44905 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44906
44907 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44908 kern/ieee1275.c with kern/ieee1275/of.c.
44909
44910 * kern/ieee1275.c: Moved to ...
44911 * kern/ieee1275/of.c: ... here.
44912
44913 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44914
44915 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44916 readability.
44917
44918 * config.guess: Updated to the latest version from gnulib.
44919 * config.sub: Likewise.
44920 * install.sh: Likewise.
44921 * mkinstalldirs: Likewise.
44922
44923 * include/grub/console.h: Removed. This file is arch-specific. Do
44924 not put this in include/grub.
44925
44926 * include/grub/i386/pc/console.h: Resurrected.
44927
44928 * util/console.c: Include grub/machine/console.h instead of
44929 grub/console.h.
44930 * util/grub-emu.c: Likewise.
44931
44932 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44933
44934 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44935 hardcoded value.
44936
44937 From Vincent Pelletier <subdino2004@yahoo.fr>
44938 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
44939 Redefined to use grub_getwh.
44940 (grub_term): New member named getwh.
44941 (grub_getwh): New prototype.
44942 * kern/term.c (grub_getwh): New function.
44943 * term/i386/pc/console.c (grub_console_getwh): New function.
44944 (grub_console_term): New member `getwh'.
44945 * term/i386/pc/vga.c (grub_vga_getwh): New function.
44946 (grub_vga_term): New member `getwh'.
44947 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
44948 grub_ssize_t.
44949 (grub_ofconsole_getw): New function.
44950 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
44951 (grub_ofconsole_term): New field named getwh and new initial
44952 value.
44953
44954 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
44955
44956 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
44957 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
44958 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
44959 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
44960 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
44961 of <grub/machine/ieee1275.h>.
44962 * commands/ieee1275/reboot.c: Likewise.
44963 * boot/powerpc/ieee1275/ieee1275.c: Move ...
44964 * kern/ieee1275.c: ... to here. All users updated. Change all
44965 parameter structs to use new type `grub_ieee1275_cell_t'.
44966 * term/powerpc/ieee1275/ofconsole.c: Move ...
44967 * term/ieee1275/ofconsole.c: ... to here. All users updated.
44968 * disk/powerpc/ieee1275/ofdisk.c: Move ...
44969 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
44970 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
44971 to return int.
44972 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
44973 Remove unused prototypes. All users updated.
44974 * include/grub/powerpc/ieee1275/console.h: Removed.
44975 * include/grub/powerpc/ieee1275/ieee1275.h: Define
44976 `grub_ieee1275_cell_t'.
44977 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
44978 Cast comparisons with -1 to the correct type.
44979 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
44980 type to match `grub_ieee1275_entry_fn'.
44981
44982 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
44983
44984 * DISTLIST: Added util/i386/pc/grub-probefs.c.
44985
44986 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
44987 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
44988 partmap/sun.c.
44989 (grub_probefs_SOURCES): New variable.
44990
44991 * util/i386/pc/grub-probefs.c: New file.
44992
44993 * util/i386/pc/grub-setup.c (main): Call
44994 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
44995 grub_hfs_init and grub_jfs_init to initialize the system. Call
44996 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
44997 grub_pc_partition_map_fini to finish the system.
44998
44999 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45000
45001 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45002 function.
45003 (grub_multiboot_load_elf32): Likewise.
45004 (grub_multiboot_is_elf64): Likewise.
45005 (grub_multiboot_load_elf64): Likewise.
45006 (grub_multiboot_load_elf): Likewise.
45007 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45008 an ELF32 or ELF64 file.
45009 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45010
45011 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45012 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45013 NULL before calling FS->LABEL.
45014 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45015 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45016 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45017 before calling FS->LABEL.
45018
45019 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45020
45021 * util/i386/pc/grub-install.in (datadir): New variable.
45022 (libdir): Removed.
45023 (pkgdatadir): New variable.
45024 (pkglibdir): Removed.
45025
45026 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45027
45028 * DISTLIST: Added util/i386/pc/grub-install.in.
45029
45030 * util/i386/pc/grub-install.in: New file.
45031
45032 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45033 (grub_install_SOURCES): Likewise.
45034
45035 * genmk.rb: Added support for scripts.
45036 (Script): New class.
45037 (scripts): New variable.
45038
45039 * Makefile.in (install-local): Install sbin_SCRIPTS by
45040 INSTALL_SCRIPT.
45041 (uninstall): Remove sbin_SCRIPTS.
45042
45043 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45044 device, try to get a GRUB device by
45045 grub_util_biosdisk_get_grub_dev.
45046 Free DEST_DEV.
45047
45048 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45049 description for --device-map.
45050
45051 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45052
45053 Change the semantics of variable hooks. They now return strings
45054 instead of error values.
45055
45056 * util/i386/pc/grub-setup.c: Include grub/env.h.
45057 (setup): Use grub_device_set_root instead of grub_env_set.
45058
45059 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45060 grub_env_get instead of grub_device_set_root and
45061 grub_device_get_root, respectively.
45062
45063 * kern/main.c (grub_env_write_root): New function.
45064 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45065 grub_env_set instead of grub_device_set_root.
45066
45067 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45068 many variables.
45069 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45070 rather than calling ENV->WRITE_HOOK afterwards.
45071 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45072 passing a pointer of a pointer.
45073 (grub_register_variable_hook): Change the types of "read_hook" and
45074 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45075 respectively.
45076 Allocate the default empty string on the heap, because this string
45077 may be freed later.
45078
45079 * kern/device.c: Include grub/env.h.
45080 (grub_device_set_root): Removed.
45081 (grub_device_get_root): Likewise.
45082 (grub_device_open): Use grub_env_get instead of
45083 grub_device_get_root.
45084
45085 * include/grub/env.h (grub_env_read_hook_t): New type.
45086 (grub_env_write_hook_t): Likewise.
45087 (grub_env_var): Change the types of "read_hook" and "write_hook"
45088 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45089 (grub_register_variable_hook): Likewise.
45090
45091 * include/grub/device.h (grub_device_set_root): Removed.
45092 (grub_device_set_root): Likewise.
45093
45094 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45095 make sure that DIRNAME terminates with '/', so that
45096 grub_fat_find_dir will fail if PATH is not a directory.
45097
45098 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45099 from DIRNAME.
45100 Use the qualifier auto for print_files and print_files_long.
45101 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45102 as a regular file.
45103 Put a newline only if there is no error.
45104 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45105 used.
45106
45107 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45108
45109 * kern/partition.c (grub_partition_probe): Initialize PART to
45110 NULL. Otherwise, when no partition map is registered, this returns
45111 a garbage.
45112
45113 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45114
45115 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45116 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45117 valid.
45118
45119 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45120
45121 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45122 information on each device, if it does not have partitions. Print
45123 "Device" instead of "Disk", because this function is not specific
45124 to disk devices.
45125
45126 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45127 static to ensure that it is put on the memory rather than a
45128 register.
45129
45130 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45131
45132 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45133 (grub_cat_init): Likewise.
45134 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45135 (options): Likewise.
45136 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45137 (grub_configfile_init): Likewise.
45138 * font/manager.c (GRUB_MOD_INIT): Likewise.
45139 * commands/help.c (GRUB_MOD_INIT): Likewise.
45140 (grub_help_init): Likewise.
45141 * normal/command.c (grub_command_init): Likewise.
45142 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45143 * disk/loopback.c (grub_loop_init): Likewise.
45144 (GRUB_MOD_INIT): Likewise.
45145 * commands/ls.c (grub_ls_init): Likewise.
45146 (GRUB_MOD_INIT): Likewise.
45147 (options): Likewise.
45148 * commands/boot.c (grub_boot_init): Likewise.
45149 (GRUB_MOD_INIT): Likewise.
45150 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45151 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45152 (GRUB_MOD_INIT): Likewise.
45153 * commands/cmp.c (grub_cmp_init): Likewise.
45154 (GRUB_MOD_INIT): Likewise.
45155
45156 * normal/arg.c: Use <> instead of "" to include header files.
45157 (SHORT_ARG_HELP): New macro.
45158 (SHORT_ARG_USAGE): Likewise.
45159 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45160 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45161 descriptions.
45162 (find_short): Check if C is 'h' or 'u' explicitly.
45163 (grub_arg_show_help): Use space characters instead of tabs. Treat
45164 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45165 are shown with --help and --usage only if they are not used for
45166 the command itself.
45167 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45168 'h' and 'u'.
45169
45170 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45171 const into "longarg". Change the type of "shortarg" to int.
45172
45173 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45174
45175 * boot/i386/pc/boot.S (boot_drive_check): New label.
45176
45177 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45178 macro.
45179
45180 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45181 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45182
45183 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45184
45185 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45186 When turning off Gate A20, skip the check and return immediately,
45187 because this is not fatal usually.
45188
45189 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45190
45191 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45192 be 0x7C00 instead of 0x8000.
45193
45194 * boot/i386/pc/pxeboot.S: Rewritten.
45195
45196 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45197 EXT_C.
45198 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45199 result.
45200
45201 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45202
45203 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45204 robustness. This routine now supports a BIOS call and System
45205 Control Port A to modify the gate A20.
45206
45207 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45208 Increased to 0x440.
45209
45210 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45211
45212 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45213 device path and resulting ihandle.
45214 (grub_ofdisk_close): dprintf the ihandle being closed.
45215 (grub_ofdisk_read): dprintf function parameters.
45216 * kern/mm.c (grub_mm_init_region): Likewise.
45217 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45218 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45219 size, and boot arguments.
45220 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45221 before loading into memory.
45222 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45223 before loading into memory.
45224
45225 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45226
45227 * kern/mm.c: Added much documentation.
45228 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45229 8, set to 5 instead of 8.
45230
45231 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45232
45233 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45234
45235 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45236 (grub_mkdevicemap_SOURCES): New variable.
45237
45238 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45239 lib/device.c of GRUB Legacy.
45240
45241 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45242
45243 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45244 instead of PATH is NULL.
45245
45246 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45247
45248 * commands/cmp.c (BUFFER_SIZE): New macro.
45249 (grub_cmd_cmp): Close the right file at the right time. Compare
45250 only data just read. Don't report files of different size as
45251 identical. Dynamically allocate buffers. Move variable
45252 declarations at the beginning of function.
45253
45254 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45255
45256 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45257 reverse.
45258
45259 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45260
45261 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45262 when backspace is pressed at beginning of line.
45263
45264 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45265
45266 * DISTLIST: Added genfslist.sh.
45267
45268 * normal/main.c (fs_module_list): New variable.
45269 (autoload_fs_module): New function.
45270 (read_fs_list): Likewise.
45271 (grub_normal_execute): Call read_fs_list.
45272
45273 * kern/fs.c (grub_fs_autoload_hook): New variable.
45274 (grub_fs_probe): Added support for auto-loading.
45275
45276 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45277 (grub_fs_module_list_t): New type.
45278
45279 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45280 (grub_fs_autoload_hook): New prototype.
45281
45282 * genfslist.sh: New file.
45283
45284 * genmk.rb: Added a rule to generate a filesystem list.
45285
45286 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45287
45288 * configure.ac: Fix the test for cross-compiling.
45289
45290 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45291 define GRUB_UTIL anymore.
45292
45293 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45294 so this function works on other systems than just big endian.
45295 (load_modules): Likewise.
45296 (add_segments): Likewise.
45297
45298 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45299
45300 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45301 contains `l' modifier, get a long from va_arg().
45302
45303 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45304
45305 * kern/mm.c (grub_free): If the next free block which is being
45306 merged is the first free block, set the first block to the block
45307 being freed.
45308 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45309
45310 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45311
45312 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45313 `grub_ieee1275_chosen'.
45314
45315 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45316
45317 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45318 (grub_ieee1275_chosen): New variable.
45319 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45320 `chosen'.
45321 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45322 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45323 Rename first argument to `phandle' for consistency.
45324 (grub_ieee1275_get_property_length): Likewise.
45325 (grub_ieee1275_next_property): Likewise. Change type of first argument
45326 to grub_ieee1275_phandle_t.
45327 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45328 Move export next to declaration.
45329 (grub_ieee1275_chosen): New variable.
45330 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45331 Correct cosmetic typo.
45332 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45333 `grub_ieee1275_chosen'.
45334 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45335 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45336 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45337 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45338 `grub_ieee1275_chosen'.
45339
45340 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45341
45342 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45343 /chosen/bootargs.
45344 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45345 /chosen/bootargs as "variable=value" pairs.
45346
45347 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45348
45349 * include/grub/misc.h (grub_dprintf): New macro.
45350 (grub_real_dprintf): New prototype.
45351 (grub_strword): Likewise.
45352 (grub_iswordseparator): Likewise.
45353 * kern/misc.c (grub_real_dprintf): New function.
45354 (grub_strword): Likewise.
45355 (grub_iswordseparator): Likewise.
45356
45357 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45358
45359 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45360 (roundup): Remove macro.
45361 (grub_ieee1275_flags): Make static.
45362 (grub_ieee1275_realmode): Remove.
45363 (grub_ieee1275_test_flag): New function.
45364 (grub_ieee1275_set_flag): Likewise.
45365 (find_options): Rename to `grub_ieee1275_find_options'; update
45366 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45367 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45368 (cmain): New prototype.
45369 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45370 `grub_ieee1275_flags' directly.
45371 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45372 machine/biosdisk.h.
45373 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45374 Don't include grub/machine/init.h.
45375 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45376 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45377 Remove prototype.
45378 (grub_ieee1275_realmode): Likewise.
45379 (grub_ieee1275_flag): New enum.
45380 (grub_ieee1275_test_flag): New prototype.
45381 (grub_ieee1275_set_flag): New prototype.
45382 * include/grub/powerpc/ieee1275/init.h: Remove file.
45383 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45384 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45385 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45386 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45387 comment.
45388 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45389 `grub_ieee1275_test_flag'.
45390 (grub_ieee1275_encode_devname): Likewise.
45391
45392 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45393
45394 * include/grub/powerpc/ieee1275/ieee1275.h
45395 (grub_ieee1275_encode_devname): New prototype.
45396 (grub_ieee1275_get_filename): Likewise.
45397 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45398 function.
45399 (grub_set_prefix): Likewise.
45400 (grub_machine_init): Call grub_set_prefix.
45401 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45402 (grub_parse_type): New enum.
45403 (grub_ieee1275_get_devargs): New function.
45404 (grub_ieee1275_get_devname): Likewise.
45405 (grub_ieee1275_parse_args): Likewise.
45406 (grub_ieee1275_get_filename): Likewise.
45407 (grub_ieee1275_encode_devname): Likewise.
45408
45409 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45410
45411 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45412 `grub_loader_unset'.
45413
45414 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45415
45416 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45417 instead of grub_ieee1275_interpret.
45418 (grub_halt_init): New function.
45419 (grub_halt_fini): Likewise.
45420 (GRUB_MOD_INIT): Correct message grammar.
45421 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45422 instead of grub_ieee1275_interpret.
45423 (grub_reboot_init): New function.
45424 (grub_reboot_fini): Likewise.
45425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45426 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45427 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45428 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45429 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45430 function.
45431 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45432 Add prototype.
45433 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45434 prototype.
45435 (grub_halt): Likewise.
45436 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45437 (cmain): Remove __attribute__((unused)).
45438 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45439 (grub_heap_len): Likewise.
45440 (grub_machine_fini): New function.
45441 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45442 (grub_halt): Likewise.
45443 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45444 function.
45445 * util/powerpc/ieee1275/misc.c: New file.
45446
45447 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45448
45449 * DISTLIST: New file.
45450 * gendistlist.sh: Likewise.
45451
45452 * Makefile.in (COMMON_DISTFILES): Removed.
45453 (BOOT_DISTFILES): Likewise.
45454 (CONF_DISTFILES): Likewise.
45455 (DISK_DISTFILES): Likewise.
45456 (FS_DISTFILES): Likewise.
45457 (INCLUDE_DISTFILES): Likewise.
45458 (KERN_DISTFILES): Likewise.
45459 (LOADER_DISTFILES): Likewise.
45460 (TERM_DISTFILES): Likewise.
45461 (UTIL_DISTFILES): Likewise.
45462 (DISTFILES): Likewise.
45463 (uninstall): Uninstall files in $(pkgdata_DATA).
45464 (DISTLIST): New target.
45465 (distdir): Use the contents of the file DISTLIST to get a list of
45466 distributed files.
45467
45468 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45469
45470 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45471 descriptor. This is ported from GRUB Legacy.
45472
45473 * gencmdlist.sh: Added an extra semicolon to make it work with
45474 old sed versions. Reported by Robert Bihlmeyer
45475 <robbe@orcus.priv.at>.
45476
45477 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45478
45479 Automatic loading of commands is supported.
45480
45481 * normal/main.c (read_command_list): New function.
45482 (grub_normal_execute): Call read_command_list.
45483
45484 * normal/command.c (grub_register_command): Return zero or CMD.
45485 Allocate CMD->NAME from the heap.
45486 Initialize CMD->MODULE_NAME to zero.
45487 Find the same name as well. If the same command is found and it is
45488 a dummy command, overwrite members. If it is not a dummy command,
45489 return zero.
45490 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45491 (grub_command_find): If a dummy command is found, load a module
45492 and retry to find a command only once.
45493
45494 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45495 make sure that each command is loaded.
45496
45497 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45498 macro.
45499 (struct grub_command): Remove const from the member `name'.
45500 Add a new member `module_name'.
45501 (grub_register_command): Return grub_command_t.
45502
45503 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45504 sure that each command is loaded.
45505
45506 * genmk.rb (PModule::rule): Specify a module name without the
45507 suffix ".mod" to gencmdlist.sh.
45508
45509 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45510
45511 * gencmdlist.sh: New file.
45512
45513 * genmk.rb (PModule::rule): Generate a rule for a command list.
45514 Clean command.lst.
45515 Generate command.lst from $(COMMANDFILES).
45516
45517 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45518 (DATA): Added $(pkgdata_DATA).
45519 (install-local): Install files in $(pkgdata_DATA).
45520
45521 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45522
45523 * term/i386/pc/vga.c (debug_command): Removed.
45524 (GRUB_MOD_INIT): Do not register the command "debug".
45525
45526 From Hollis Blanchard:
45527 * commands/configfile.c: New file.
45528 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45529 commands/configfile.c.
45530 (pkgdata_MODULES): Added configfile.mod.
45531 (configfile_mod_SOURCES): New variable.
45532 (configfile_mod_CFLAGS): Likewise.
45533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45534 commands/configfile.c.
45535 (pkgdata_MODULES): Added configfile.mod.
45536 (configfile_mod_SOURCES): New variable.
45537 (configfile_mod_CFLAGS): Likewise.
45538 * util/grub-emu.c (main): Call grub_configfile_init and
45539 grub_configfile_fini.
45540 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45541 prototype.
45542 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45543
45544 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45545
45546 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45547 address.
45548
45549 * commands/help.c (grub_cmd_help): Do not print newlines after
45550 the last command in print_command_help.
45551
45552 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45553
45554 * commands/default.h: New file.
45555 * commands/timeout.h: Likewise.
45556 * normal/context.c: Likewise.
45557
45558 * util/misc.c: Do not include sys/times.h.
45559 Include sys/time.h and grub/machine/time.h.
45560 (grub_get_rtc): Rewritten with gettimeofday.
45561
45562 * util/grub-emu.c (main): Call grub_default_init and
45563 grub_timeout_init before grub_normal_init, and call
45564 grub_timeout_fini and grub_default_fini after grub_main.
45565
45566 * util/console.c (grub_ncurses_checkkey): Return the read
45567 character or -1.
45568
45569 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45570 timeouts.
45571
45572 * normal/main.c (read_config_file): Push MENU. If this fails,
45573 print an error and wait for a user input.
45574 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45575 If a menu is empty or an error occurs, pop MENU.
45576 (grub_normal_execute): Pop and free MENU after grub_menu_run
45577 returns.
45578
45579 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45580
45581 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45582 include time.h.
45583 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45584 without GRUB_UTIL.
45585 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45586 time.h.
45587 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45588 without GRUB_UTIL.
45589
45590 * include/grub/normal.h (struct grub_menu_list): New struct.
45591 (grub_menu_list_t): New type.
45592 (struct grub_context): New struct.
45593 (grub_context_t): New type.
45594 (grub_register_command): Got rid of EXPORT_FUNC.
45595 (grub_unregister_command): Likewise.
45596 (grub_context_get): New prototype.
45597 (grub_context_get_current_menu): Likewise.
45598 (grub_context_push_menu): Likewise.
45599 (grub_context_pop_menu): Likewise.
45600 [GRUB_UTIL] (grub_default_init): Likewise.
45601 [GRUB_UTIL] (grub_default_fini): Likewise.
45602 [GRUB_UTIL] (grub_timeout_init): Likewise.
45603 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45604
45605 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45606 commands/timeout.c and normal/context.c.
45607 (pkgdata_MODULES): Added default.mod and timeout.mod.
45608 (normal_mod_SOURCES): Added normal/context.c.
45609 (default_mod_SOURCES): New variable.
45610 (default_mod_CFLAGS): Likewise.
45611 (timeout_mod_SOURCES): Likewise.
45612 (timeout_mod_CFLAGS): Likewise.
45613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45614 conf/i386-pc.rmk.
45615 (pkgdata_MODULES): Added default.mod and timeout.mod.
45616 (normal_mod_SOURCES): Added normal/context.c.
45617 (default_mod_SOURCES): New variable.
45618 (default_mod_CFLAGS): Likewise.
45619 (timeout_mod_SOURCES): Likewise.
45620 (timeout_mod_CFLAGS): Likewise.
45621
45622 * Makefile.in (all-local): Added $(MKFILES).
45623
45624 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45625
45626 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45627 (grub_emu_SOURCES): Likewise.
45628 (pkgdata_MODULES): Add `sun.mod'.
45629 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45631 `partmap/sun.c'.
45632 (pkgdata_MODULES): Add `sun.mod'.
45633 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45634 * include/grub/partition.h (grub_sun_partition_map_init): New
45635 prototype.
45636 (grub_sun_partition_map_fini): Likewise.
45637 * partmap/sun.c: New file.
45638 * util/grub-emu.c (main): Initialize and de-initialize the sun
45639 partitionmap support.
45640
45641 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45642
45643 This implements an Emacs-like menu entry editor.
45644
45645 * normal/menu_entry.c: New file.
45646
45647 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45648 characters to ASCII.
45649 (saved_char): New variable.
45650 (grub_ncurses_checkkey): Rewritten completely.
45651 (grub_ncurses_getkey): Likewise.
45652 (grub_ncurses_init): Call raw instead of cbreak.
45653
45654 * normal/menu.c (print_entry): Do not put a space.
45655 (init_page): Renamed to ...
45656 (grub_menu_init_page): ... this. All callers changed.
45657 (edit_menu_entry): Removed.
45658 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45659
45660 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45661
45662 * kern/misc.c (grub_vprintf): Call grub_refresh.
45663
45664 * normal/menu.c (DISP_LEFT): Renamed to ...
45665 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45666 * normal/menu.c (DISP_UP): Renamed to ...
45667 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45668 * normal/menu.c (DISP_RIGHT): Renamed to ...
45669 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45670 * normal/menu.c (DISP_DOWN): Renamed to ...
45671 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45672 * normal/menu.c (DISP_HLINE): Renamed to ...
45673 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45674 * normal/menu.c (DISP_VLINE): Renamed to ...
45675 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45676 * normal/menu.c (DISP_UL): Renamed to ...
45677 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45678 * normal/menu.c (DISP_UR): Renamed to ...
45679 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45680 * normal/menu.c (DISP_LL): Renamed to ...
45681 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45682 * normal/menu.c (DISP_LR): Renamed to ...
45683 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45684 * normal/menu.c (TERM_WIDTH): Renamed to ...
45685 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45686 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45687 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45688 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45689 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45690 * normal/menu.c (TERM_MARGIN): Renamed to ...
45691 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45692 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45693 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45694 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45695 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45696 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45697 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45698 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45699 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45700 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45701 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45702 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45703 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45704 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45705 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45706 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45707 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45708 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45709 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45710 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45711 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45712 All callers changed.
45713
45714 * include/grub/normal.h: New prototype.
45715
45716 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45717 normal/menu_entry.c.
45718 (normal_mod_SOURCES): Likewise.
45719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45720 (normal_mod_SOURCES): Likewise.
45721
45722 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45723
45724 * include/grub/normal.h (grub_halt_init): New prototype.
45725 (grub_halt_fini): Likewise.
45726 (grub_reboot_init): Likewise.
45727 (grub_reboot_fini): Likewise.
45728
45729 * util/grub-emu.c: Include signal.h.
45730 (main_env): New global variable.
45731 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45732 catch C-c.
45733 (grub_machine_fini): New function.
45734 (main): Call grub_halt_init and grub_reboot_init before
45735 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45736 Call setjmp with MAIN_ENV to go back afterwards.
45737 Call grub_machine_fini right before return.
45738
45739 * include/grub/util/misc.h: Include setjmp.h.
45740 (main_env): New prototype.
45741
45742 * include/grub/kernel.h (grub_machine_fini): New prototype.
45743 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45744 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45745
45746 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45747 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45748 * term/i386/pc/console.c (grub_console_fini): Likewise.
45749
45750 * util/i386/pc/misc.c: New file.
45751
45752 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45753 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45754 commands/i386/pc/reboot.c.
45755
45756 2005-02-14 Guillem Jover <guillem@hadrons.org>
45757
45758 * include/grub/dl.h (grub_dl_check_header): New prototype.
45759 (grub_arch_dl_check_header): Change return type to grub_err_t,
45760 remove size parameter and export function. Update all callers.
45761 * kern/dl.c (grub_dl_check_header): New function.
45762 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45763 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45764 are inside the core.
45765 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45766 independent ELF header checks.
45767 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45768 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45769 `grub_dl_check_header' instead of explicit checks. Check for the
45770 ELF type.
45771 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45772 `grub_dl_check_header' instead of explicit checks. Remove arch
45773 specific ELF header checks.
45774
45775 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45776 argument SIZE.
45777
45778 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45779
45780 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45781 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45782
45783 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45784
45785 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45786 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45787 (part_map_iterate): Clear `grub_errno' and return 0 if
45788 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45789 * partmap/amiga.c (amiga_partition_map_iterate): Return
45790 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45791 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45792
45793 2005-02-01 Guillem Jover <guillem@hadrons.org>
45794
45795 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45796 help info.
45797
45798 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45799
45800 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45801 Removed prototype.
45802 (grub_rescue_cmd_linux): New prototype.
45803 (grub_rescue_cmd_initrd): Likewise.
45804 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45805 `bi_rec'.
45806 (grub_linux_release_mem): Release the memory for the initrd.
45807 (grub_load_linux): Renamed from this...
45808 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45809 Changed `entry' not to be static. Loop over memory regions to
45810 find another one when the default fails.
45811 (grub_rescue_cmd_initrd): New function.
45812 (grub_linux_init): Remove function.
45813 (grub_linux_fini): Likewise.
45814 (GRUB_MOD_INIT): Register `initrd'.
45815 (GRUB_MOD_FINI): Unregister `initrd'.
45816 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45817 Function removed.
45818 (grub_linux_normal_fini): Likewise.
45819 (GRUB_MOD_INIT): Register `initrd'.
45820 (GRUB_MOD_FINI): Unregister `initrd'.
45821
45822 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45823
45824 * commands/help.c: New file.
45825 * normal/arg.c (show_help): Renamed to...
45826 (grub_arg_show_help): ... this.
45827 * commands/i386/pc/halt.c: New file.
45828 * commands/i386/pc/reboot.c: Likewise.
45829 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45830 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45831 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45832 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45833 variables.
45834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45835 `commands/help.c'.
45836 (pkgdata_MODULES): Add `help.mod'.
45837 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45838 * grub/i386/pc/init.h (grub_reboot): New prototype.
45839 (grub_halt): Likewise.
45840 * include/grub/normal.h (grub_arg_show_help): New prototype.
45841 (grub_help_init): Likewise.
45842 (grub_help_fini): Likewise.
45843 * util/grub-emu.c (main): Initialize and deinitialize the help
45844 command.
45845
45846 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45847
45848 * normal/command.c (grub_command_init): Fixed the description of
45849 the `set' and `unset' commands.
45850
45851 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45852
45853 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45854 function.
45855 * commands/ieee1275/halt.c: New file.
45856 * commands/ieee1275/reboot.c: Likewise.
45857 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45858 `__attribute__ ((unused))'. Some GCS related fixed.
45859 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45860 (grub_suspend_fini): Likewise.
45861 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45862 and `halt.mod'.
45863 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45864 (halt_mod_CFLAGS): New variables.
45865 * include/grub/powerpc/ieee1275/ieee1275.h
45866 (grub_ieee1275_interpret): New prototype.
45867
45868 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45869
45870 * include/grub/misc.h (memmove): New prototype.
45871 (memcpy): Likewise.
45872
45873 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45874
45875 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45876 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45877
45878 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45879
45880 * kern/misc.c (grub_strndup): Function rewritten.
45881
45882 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45883
45884 * normal/menu.c (TERM_WIDTH): Macro redefined.
45885 (TERM_TOP_BORDER_Y): Likewise.
45886 (draw_border): Replaced while-loop by a for-loop. Make the number
45887 of lines consistent with the number of lines displayed in
45888 print_entries. Added a margin below the rectangle.
45889 (print_entry): Make the entry fit in the rectangle.
45890 (print_entries): Display the scroll arrows next to the right
45891 border.
45892
45893 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45894
45895 * fs/minix.c (grub_minix_find_file): Reserve more space for
45896 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45897 `grub_strncpy' to copy `path' into it.
45898
45899 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45900
45901 Add the loopback device, a device via which files can be accessed
45902 as devices.
45903
45904 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45905 (pkgdata_MODULES): Add loopback.mod.
45906 (loopback_mod_SOURCES): New variable.
45907 (loopback_mod_CFLAGS): Likewise.
45908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45909 `disk/loopback.c'.
45910 (pkgdata_MODULES): Add loopback.mod.
45911 (loopback_mod_SOURCES): New variable.
45912 (loopback_mod_CFLAGS): Likewise.
45913 * disk/loopback.c: new file.
45914 * include/grub/normal.h (grub_loop_init): New prototype.
45915 (grub_loop_fini): New prototype.
45916 * util/grub-emu.c (main): Initialize and de-initialize loopback
45917 support.
45918 * include/grub/disk.h (grub_disk_dev_id): Add
45919 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45920
45921 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45922
45923 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45924 function.
45925 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45926 (suspend_mod_SOURCES): New variable.
45927 (suspend_mod_CFLAGS): Likewise.
45928 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45929 New prototype.
45930 * commands/ieee1275/suspend.c: New file.
45931
45932 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45933
45934 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45935 ((unused))' to `__attribute__ ((used))'.
45936 (GRUB_MOD_FINI): Likewise.
45937 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
45938 * genmk.rb (PModule): Assign space to common symbols when linking
45939 modules.
45940
45941 2005-01-20 Marco Gerards <metgerards@student.han.nl>
45942
45943 * include/grub/mm.h (grub_mm_init_region): Change the type of the
45944 `unsigned' arguments to `grub_size_t'.
45945 (grub_malloc): Likewise.
45946 (grub_realloc): Likewise.
45947 (grub_memalign): Likewise.
45948 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
45949 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45950 * util/misc.c (grub_malloc): Likewise.
45951 (grub_realloc): Likewise.
45952 * kern/mm.c (get_header_from_pointer): Change the casts to
45953 `unsigned' into a cast to `grub_size_t'.
45954
45955 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
45956 point to `currnode' when `currnode' is changed.
45957
45958 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
45959 Schottelius <nico-linux@schottelius.org>.
45960
45961 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
45962
45963 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
45964 (note_path): Remove variable.
45965 (GRUB_IEEE1275_NOTE_NAME): New macro.
45966 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
45967 (grub_ieee1275_note_hdr): New structure.
45968 (grub_ieee1275_note_desc): Likewise.
45969 (grub_ieee1275_note): Likewise.
45970 (load_note): Remove `dir' argument. All callers updated. Remove
45971 `note_img' and `path'. Do not load a file from `note_path'.
45972 Initialize a struct grub_ieee1275_note and write that to `out'.
45973 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
45974
45975 2005-01-05 Marco Gerards <metgerards@student.han.nl>
45976
45977 * util/misc.c (grub_util_read_image): Revert last change. It
45978 called `grub_util_read_at', which seeks from the beginning of the
45979 file.
45980
45981 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
45982
45983 * TODO: Add note about endianness in grub-mkimage.
45984 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
45985 section.
45986 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
45987 (grub_mkimage_SOURCES): New target.
45988 * include/grub/kernel.h (grub_start_addr): Remove variable.
45989 (grub_end_addr): Likewise.
45990 (grub_total_module_size): Likewise.
45991 (grub_kernel_image_size): Likewise.
45992 (GRUB_MODULE_MAGIC): New constant.
45993 (grub_module_info): New structure.
45994 (grub_arch_modules_addr): New prototype.
45995 (grub_get_end_addr): Remove prototype.
45996 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
45997 * include/grub/powerpc/ieee1275/kernel.h: New file.
45998 * include/grub/util/misc.h (grub_util_get_fp_size): New
45999 prototype.
46000 (grub_util_read_at): Likewise.
46001 (grub_util_write_image_at): Likewise.
46002 * kern/main.c (grub_get_end_addr): Remove function.
46003 (grub_load_modules): Call grub_arch_modules_addr instead of using
46004 grub_end_addr. Look for a grub_module_info struct in memory. Use
46005 the grub_module_info fields instead of calling grub_get_end_addr
46006 as loop conditions. Move grub_add_unused_region code here.
46007 (grub_add_unused_region): Remove function.
46008 * kern/i386/pc/init.c: Include grub/cache.h.
46009 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46010 one call to add_mem_region.
46011 (grub_arch_modules_addr): New function.
46012 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46013 (grub_total_module_size): Likewise.
46014 Include grub/machine/kernel.h.
46015 (grub_arch_modules_addr): New function.
46016 * util/grub-emu.c (grub_end_addr): Remove variable.
46017 (grub_total_module_size): Likewise.
46018 (grub_arch_modules_addr): New function.
46019 * util/misc.c: Include unistd.h.
46020 (grub_util_get_fp_size): New function.
46021 (grub_util_read_at): Likewise.
46022 (grub_util_write_image_at): Likewise.
46023 (grub_util_read_image): Call grub_util_read_at.
46024 (grub_util_write_image): Call grub_util_write_image_at.
46025 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46026 additional memory in kernel_img for a struct grub_module_info.
46027 Fill in that grub_module_info.
46028 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46029
46030 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46031
46032 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46033 New function.
46034 * include/grub/powerpc/ieee1275/ieee1275.h
46035 (grub_ieee1275_milliseconds): New prototype.
46036 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46037 Change to 1000.
46038 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46039 grub_ieee1275_milliseconds.
46040
46041 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46042
46043 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46044 variable.
46045 (find_options): New function.
46046 (cmain): Call find_options.
46047 * include/grub/powerpc/ieee1275/ieee1275.h
46048 (grub_ieee1275_realmode): New extern variable.
46049 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46050 grub_map if grub_ieee1275_realmode is false.
46051
46052 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46053
46054 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46055 lines are inserted and make it work like readline. Reported by
46056 Vincent Pelletier <subdino2004@yahoo.fr>.
46057
46058 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46059
46060 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46061
46062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46063 `kern/powerpc/cache.S'.
46064
46065 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46066
46067 * genmk.rb: Handle the `Program' class in the main loop. Written
46068 by Johan Rydberg <jrydberg@gnu.org>.
46069 (Program): New class.
46070 (programs): New variable.
46071 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46072 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46073 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46074 (help_arch): Function removed.
46075 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46076 `powerpc/libgcc.h' and `loader.h'.
46077 (pkgdata_PROGRAMS): New variable.
46078 (sbin_UTILITIES): Variable removed.
46079 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46080 (grubof_SOURCES): Variable re-defined so it only includes the
46081 core functionality.
46082 (grubof_CFLAGS): Remove `-DGRUBOF'.
46083 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46084 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46085 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46086 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46087 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46088 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46089 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46090 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46091 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46092 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46093 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46094 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46095 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46096 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46097 (pc_mod_CFLAGS): New variables.
46098 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46099 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46100 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46101 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46102 Moved from here...
46103 * include/grub/i386/pc/init.h (grub_os_area_addr)
46104 (rub_os_area_size): ... to here.
46105 * include/grub/powerpc/ieee1275/ieee1275.h
46106 (grub_ieee1275_entry_fn): Export symbol.
46107 * include/grub/powerpc/ieee1275/init.h: New file.
46108 * include/grub/powerpc/libgcc.h: Likewise.
46109 * include/grub/cache.h: Likewise.
46110 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46111 <hollis@penguinppc.org>.
46112 * kern/dl.c: Include <grub/cache.h>.
46113 (grub_dl_flush_cache): New function.
46114 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46115 for this module.
46116 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46117 (grub_console_init): Removed prototypes.
46118 (grub_machine_init): Don't initialize the modules anymore.
46119 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46120 static.
46121 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46122 Macro undef removed.
46123 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46124 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46125 relocation `R_PPC_REL32'. Return an error when the relocation is
46126 unknown.
46127 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46128 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46129 * util/misc.c (grub_arch_sync_caches): Likewise.
46130
46131 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46132
46133 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46134 `symlist.c', add `grubof_symlist.c'.
46135 (symlist.c): Variable removed.
46136 (grubof_HEADERS): Variable added.
46137 (grubof_symlist.c): New target.
46138 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46139 `kernel_img_HEADERS'.
46140 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46141 * kern/powerpc/dl.c: New file.
46142 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46143 Function removed.
46144 (grub_arch_dl_relocate_symbols): Likewise.
46145 (grub_register_exported_symbols): Likewise.
46146
46147 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46148
46149 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46150 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46151 to fail instead. Reported by Vincent Pelletier
46152 <subdino2004@yahoo.fr>.
46153
46154 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46155 it is not allocated. Reported by Vincent Pelletier
46156 <subdino2004@yahoo.fr>.
46157
46158 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46159 output so the output looks better.
46160
46161 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46162
46163 Modulize the partition map support and add support for the amiga
46164 partition map.
46165
46166 * commands/ls.c: Include <grub/partition.h> instead of
46167 <grub/machine/partition.h>.
46168 * kern/disk.c: Likewise.
46169 * kern/rescue.c: Likewise.
46170 * loader/i386/pc/chainloader.c: Likewise.
46171 * normal/cmdline.c: Likewise.
46172 * kern/powerpc/ieee1275/init.c: Likewise.
46173 (grub_machine_init): Call `grub_pc_partition_map_init',
46174 `grub_amiga_partition_map_init' and
46175 `grub_apple_partition_map_init'.
46176 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46177 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46178 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46179 `partition.h' and `pc_partition.h'.
46180 (grub_setup_SOURCES): Remove
46181 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46182 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46183 (grub_emu_SOURCES): Likewise.
46184 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46185 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46186 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46188 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46189 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46190 (grubof_SOURCES): Likewise.
46191 * disk/i386/pc/partition.c: File removed.
46192 * disk/powerpc/ieee1275/partition.c: Likewise.
46193 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46194 * include/grub/i386/pc/partition.h: Likewise.
46195 * kern/partition.c: New file.
46196 * partmap/amiga.c: Likewise.
46197 * partmap/apple.c: Likewise.
46198 * partmap/pc.c: Likewise.
46199 * include/grub/partition.h: Likewise..
46200 * include/grub/pc_partition.h: Likewise.
46201 * util/grub-emu.c: Include <grub/partition.h> instead of
46202 <grub/machine/partition.h>.
46203 (main): Call `grub_pc_partition_map_init',
46204 `grub_amiga_partition_map_init' and
46205 `grub_apple_partition_map_init' and deinitialize afterwards.
46206 * util/i386/pc/biosdisk.c: Include `#include
46207 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46208 `<grub/machine/partition.h>'.
46209 * util/i386/pc/grub-setup.c: Likewise.
46210 * util/i386/pc/biosdisk.c: Likewise.
46211 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46212 partition information in case of a PC partition.
46213 * util/i386/pc/grub-setup.c: Include `#include
46214 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46215 `<grub/machine/partition.h>'.
46216 (setup): Only access the PC specific partition information in case
46217 of a PC partition.
46218
46219 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46220
46221 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46222 (grub_longjmp): Likewise.
46223 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46224 20.
46225 * normal/powerpc/setjmp.S: New file.
46226 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46227 `normal/powerpc/setjmp.S'.
46228 (grubof_CFLAGS): Add `-DGRUBOF'.
46229 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46230 [GRUB_UTIL && !GRUBOF].
46231
46232 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46233
46234 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46235 property named `name'. Correctly handle the error returned by
46236 `grub_ieee1275_finddevice' if a device can not be opened.
46237
46238 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46239
46240 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46241 `actual' for negativity.
46242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46243 kern/fshelp.c.
46244
46245 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46246
46247 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46248 (PAGE_OFFSET): New macro.
46249 (CRTC_ADDR_PORT): Likewise.
46250 (CRTC_DATA_PORT): Likewise.
46251 (START_ADDR_HIGH_REGISTER): Likewise.
46252 (START_ADDR_LOW_REGISTER): Likewise.
46253 (GRAPHICS_ADDR_PORT): Likewise.
46254 (GRAPHICS_DATA_PORT): Likewise.
46255 (READ_MAP_REGISTER): Likewise.
46256 (INPUT_STATUS1_REGISTER): Likewise.
46257 (INPUT_STATUS1_VERTR_BIT): Likewise.
46258 (page): New variable.
46259 (wait_vretrace): New function.
46260 (set_read_map): Likewise.
46261 (set_start_address): Likewise.
46262 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46263 the right page.
46264 (check_vga_mem): Take the page into account.
46265 (write_char): Likewise.
46266 (write_cursor): Likewise.
46267 (scroll_up): Likewise. Copy the page to the page that is not
46268 shown and switch between both pages.
46269 (grub_vga_putchar): Fix off by one error.
46270 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46271 account.
46272
46273 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46274
46275 Add support for iso9660 (including rockridge).
46276
46277 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46278 (iso9660_mod_SOURCES): New variable.
46279 (iso9660_mod_CFLAGS): Likewise.
46280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46281 * include/grub/fs.h (grub_iso9660_init): New prototype.
46282 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46283 * fs/iso9660.c: New file.
46284
46285 * include/grub/misc.h (grub_strncat): New prototype.
46286 * kern/misc.c (grub_strncat): New function.
46287
46288 * fs/hfs.c (grub_hfs_mount): Translate the error
46289 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46290 * fs/jfs.c (grub_jfs_mount): Likewise.
46291 * fs/ufs.c (grub_ufs_mount): Likewise.
46292
46293 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46294
46295 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46296 which initialized BAT registers.
46297 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46298 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46299 Move from here...
46300 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46301 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46302 ... to here.
46303 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46304 (grub_mapclaim): Likewise.
46305 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46306 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46307 hand.
46308
46309 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46310
46311 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46312 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46313 -ffreestanding and -msoft-float.
46314
46315 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46316
46317 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46318 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46319 set in grub_ieee1275_flags.
46320
46321 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46322
46323 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46324 prototype.
46325 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46326 grub_console_init first.
46327 Change the memory range used for grub_ieee1275_claim and
46328 grub_mm_init_region.
46329 Print an error message if the claim fails.
46330 Include <grub/misc.h>.
46331
46332 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46333
46334 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46335 Call grub_children_iterate for device nodes of type `scsi',
46336 `ide', or `ata'.
46337 (grub_ofdisk_open): Remove manual device alias resolution.
46338 Fix memory leak when device cannot be opened.
46339 * include/grub/powerpc/ieee1275/ieee1275.h
46340 (grub_children_iterate): New prototype.
46341 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46342 New function.
46343 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46344 Return -1 if args.size was -1.
46345
46346 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46347
46348 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46349 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46350 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46351 Open Firmware's memory for it; claim memory from _start to _end.
46352 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46353 (_end): New extern.
46354 (_start): Zero BSS from __bss_start to _end.
46355 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46356 New extern.
46357 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46358
46359 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46360
46361 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46362 -1 if args.base was -1.
46363
46364 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46365
46366 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46367 escape sequence instead of a literal ^L. Also call
46368 grub_ofconsole_gotoxy.
46369
46370 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46371
46372 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46373 void * arguments to grub_addr_t. All callers updated. Also make
46374 the `result' argument optional.
46375 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46376 All callers updated.
46377
46378 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46379
46380 * commands/ls.c (grub_ls_list_files): Use the string following the
46381 initial ')', if present, as the filesystem path.
46382 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46383
46384 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46385
46386 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46387
46388 Make the source code of the menu interface more readable.
46389
46390 * normal/menu.c: Include grub/mm.h.
46391 (TERM_WIDTH): New macro.
46392 (TERM_HEIGHT): Likewise.
46393 (TERM_INFO_HEIGHT): Likewise.
46394 (TERM_MARGIN): Likewise.
46395 (TERM_SCROLL_WIDTH): Likewise.
46396 (TERM_TOP_BORDER_Y): Likewise.
46397 (TERM_LEFT_BORDER_X): Likewise.
46398 (TERM_BORDER_WIDTH): Likewise.
46399 (TERM_MESSAGE_HEIGHT): Likewise.
46400 (TERM_BORDER_HEIGHT): Likewise.
46401 (TERM_NUM_ENTRIES): Likewise.
46402 (TERM_FIRST_ENTRY_Y): Likewise.
46403 (TERM_ENTRY_WIDTH): Likewise.
46404 (TERM_CURSOR_X): Likewise.
46405 (draw_border): Use macros instead of magic numbers.
46406 (print_entry): Likewise.
46407 (print_entries): Likewise.
46408 (run_menu): Likewise. Also, handle the key 'e'.
46409 (run_menu_entry): Ignore empty command lines.
46410 (print_message): Added a new argument EDIT. If EDIT is true,
46411 print a different message.
46412 (init_page): Likewise.
46413 (edit_menu_entry): New function. Not implemented yet.
46414
46415 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46416
46417 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46418 can be loaded from normal mode.
46419
46420 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46421 `multiboot.mod'.
46422 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46423 (multiboot_mod_CFLAGS): New variables.
46424 * loader/i386/pc/linux_normal.c: New file.
46425 * loader/i386/pc/multiboot_normal.c: Likewise.
46426
46427 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46428 attribute `unused'.
46429
46430 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46431 `fdiro' to read the mode information from instead of `diro'.
46432
46433 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46434 looking up a symlink.
46435
46436 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46437 macro.
46438 * normal/command.c (grub_command_execute): Don't parse the
46439 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46440 flags of the command.
46441
46442 * normal/menu.c (grub_menu_run): Fix typo.
46443
46444 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46445
46446 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46447
46448 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46449 `y + 1' instead of `y - 1'.
46450
46451 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46452
46453 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46454
46455 From Hollis Blanchard <hollis@penguinppc.org>:
46456 * kern/misc.c (memmove): New alias for grub_memmove.
46457 (memcmp): New alias for grub_memcmp.
46458 (memset): New alias for grub_memset.
46459 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46460 Change "int handle" to "grub_ieee1275_phandle_t handle".
46461 * include/grub/powerpc/ieee1275/ieee1275.h
46462 (grub_ieee1275_get_property): Likewise.
46463
46464 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46465
46466 Added normal mode command `chainloader' as module chain.mod, which
46467 depends on normal.mod and _chain.mod.
46468
46469 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46470 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46471 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46472 Deleted prototype.
46473 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46474 but arguments parsing moved to ...
46475 (grub_chainloader_cmd): ... here. New function.
46476 * include/grub/i386/pc/chainloader.h: New file.
46477 * loader/i386/pc/chainloader_normal.c: Likewise.
46478
46479 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46480
46481 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46482 (grub_mkimage_LDFLAGS): Likewise.
46483 (grub_emu_SOURCES): Likewise.
46484 (kernel_img_HEADERS): Added fshelp.h.
46485 * fs/ext2.c: Include <grub/fshelp.h>.
46486 (FILETYPE_REG): New macro.
46487 (FILETYPE_INO_REG): Likewise.
46488 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46489 Changed all users.
46490 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46491 all users.
46492 (grub_fshelp_node): New struct.
46493 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46494 to a pointer.
46495 (grub_ext2_get_file_block): Removed function.
46496 (grub_ext2_read_block): New function.
46497 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46498 This function was written.
46499 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46500 (grub_ext2_find_file): Removed function.
46501 (grub_ext2_read_symlink): New function.
46502 (grub_ext2_iterate_dir): Likewise.
46503 (grub_ext2_open): Rewritten.
46504 (grub_ext2_dir): Rewritten.
46505 * include/grub/fshelp.h: New file.
46506 * fs/fshelp.c: Likewise.
46507
46508 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46509
46510 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46511 (print_message): Add a missing newline.
46512 (run_menu): Added timeout support.
46513 (run_menu_entry): New local function.
46514 (grub_menu_run): Added support for booting.
46515
46516 * kern/loader.c (grub_loader_is_loaded): New function.
46517
46518 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46519 (grub_get_rtc): Exported.
46520
46521 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46522 (grub_get_rtc): Exported.
46523
46524 * include/grub/normal.h (struct grub_command_list): Remove
46525 constant from the member `command'.
46526
46527 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46528
46529 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46530
46531 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46532
46533 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46534
46535 Add support for the JFS filesystem.
46536
46537 * fs/jfs.c: New file.
46538 * include/grub/fs.h (grub_jfs_init): New prototype.
46539 (grub_jfs_fini): New prototype.
46540 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46541 (grub_emu_SOURCES): Likewise.
46542 (pkgdata_MODULES): Add jfs.mod.
46543 (jfs_mod_SOURCES): New variable.
46544 (jfs_mod_CFLAGS): Likewise.
46545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46546 (grubof_SOURCES): Likewise.
46547 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46548
46549 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46550 endian to the host endian.
46551 (grub_fat_utf16_to_utf8): Move function from there...
46552 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46553 the endianness of the source string anymore.
46554 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46555
46556 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46557
46558 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46559 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46560 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46561 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46562
46563 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46564 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46565 for `node_found' and `it_dir'.
46566 (grub_hfs_dir): Add prototype for `dir_hook'.
46567
46568 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46569 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46570 and `indir32' to silence a gcc warning.
46571
46572 * include/grub/fs.h (grub_hfs_init): New prototype.
46573 (grub_hfs_fini): Likewise.
46574
46575
46576 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46577
46578 Each disk device has its own id now. This is useful to make use
46579 of multiple disk devices.
46580
46581 * include/grub/disk.h (grub_disk_dev_id): New enum.
46582 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46583 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46584
46585 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46586 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46587
46588 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46589 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46590
46591 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46592 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46593
46594 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46595 "id" which is used by the cache manager.
46596
46597 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46598 of just "GRUB".
46599
46600 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46601
46602 * fs/hfs.c: New file.
46603 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46604 (grub_emu_SOURCES): Likewise.
46605 (pkgdata_MODULES): Add hfs.mod.
46606 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46607 (grubof_SOURCES): Likewise.
46608 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46609
46610 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46611 * kern/misc.c (grub_strncasecmp): Add function.
46612
46613 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46614
46615 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46616 with parentheses.
46617
46618 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46619 (grub_ext2_dir): In case the directory entry type is unknown, read
46620 it from the inode.
46621
46622 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46623
46624 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46625 grub_load_linux instead of grub_rescue_cmd_linux as second
46626 argument of grub_rescue_register_command.
46627
46628 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46629
46630 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46631
46632 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46633 function.
46634 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46635 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46636 `loader/powerpc/ieee1275/linux.c',
46637 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46638 * include/grub/powerpc/ieee1275/ieee1275.h
46639 (grub_ieee1275_release): New prototype.
46640 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46641 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46642 normal, boot, linux and linux_normal.
46643 * loader/powerpc/ieee1275/linux.c: New file.
46644 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46645
46646 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46647
46648 * normal/arg.c (grub_arg_parse): Correct error handling after
46649 reallocating the argumentlist (check if `argl' is not null instead
46650 of checking if `args' is not null).
46651 * kern/mm.c (grub_realloc): Return the same pointer when using the
46652 same region, instead of returning the header address.
46653
46654 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46655
46656 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46657 one block instead of two when looking for the initial partition.
46658 (grub_partition_probe): Initialize the local variable `p' with 0.
46659 Use base 10 for the grub_strtoul call.
46660 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46661 need for one local variable.
46662 (grub_strtoul): Don't add the new value to `num', instead of that
46663 just assign it.
46664
46665 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46666
46667 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46668 (pxeboot_img_SOURCES): New variable.
46669 (pxeboot_img_ASFLAGS): Likewise.
46670 (pxeboot_img_LDFLAGS): Likewise.
46671 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46672 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46673 <lode_leroy@hotmail.com>.
46674
46675 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46676
46677 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46678 there was no input.
46679
46680 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46681
46682 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46683 the history buffer logic.
46684
46685 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46686
46687 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46688 (FILETYPE_INO_SYMLINK): New macros.
46689 (grub_ext2_find_file): Check if the node is a directory using the
46690 inode stat information instead of using the filetype in the
46691 dirent. Exclude the first character of an absolute symlink.
46692 (grub_ext2_dir): Mask out the filetype part of the mode member of
46693 the inode.
46694
46695 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46696
46697 Add support for UFS version 1 and 2. Add support for the minix
46698 filesystem version 1 and 2, both the variants with 14 and 30 long
46699 filenames.
46700
46701 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46702 fs/minix.c.
46703 (grub_emu_SOURCES): Likewise.
46704 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46705 (ufs_mod_SOURCES): New variable.
46706 (ufs_mod_CFLAGS): Likewise.
46707 (minix_mod_SOURCES): Likewise.
46708 (minix_mod_CFLAGS): Likewise.
46709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46710 fs/minix.c.
46711 (grubof_SOURCES): Likewise.
46712 * fs/ufs.c: New file.
46713 * fs/minix.c: New file.
46714 * include/grub/fs.h (grub_ufs_init): New prototype.
46715 (grub_ufs_fini): Likewise.
46716 (grub_minix_init): Likewise.
46717 (grub_minix_fini): Likewise.
46718 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46719 minix fs.
46720
46721 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46722
46723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46724 commands/ls.c, commands/terminal.c, commands/boot.c,
46725 commands/cmp.c and commands/cat.c.
46726 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46727
46728 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46729 "env.h"
46730
46731 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46732
46733 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46734 and grub_, respectively. Because the conversion is trivial and
46735 mechanical, I omit the details here. Please refer to the CVS
46736 if you need more information.
46737
46738 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46739
46740 * include/pupa: Renamed to ...
46741 * include/grub: ... this.
46742 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46743 * util/i386/pc/grub-mkimage.c: ... this.
46744 * util/i386/pc/pupa-setup.c: Renamed to ...
46745 * util/i386/pc/grub-setup.c: ... this.
46746 * util/pupa-emu.c: Renamed to ...
46747 * util/grub-emu.c: ... this.
46748
46749 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46750
46751 Add support for the newworld apple macintosh (PPC). This has been
46752 tested on the powerbook 2000 only. It only adds support for
46753 generic ieee1275 functions, console and disk support. This should
46754 be easy to port to other architectures with support for Open
46755 Firmware.
46756
46757 * configure.ac: Accept the powerpc as host_cpu. In the case of
46758 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46759 specific tests are only executed while building for the i386.
46760 Inverse test for crosscompile.
46761 * genmk.rb (Utility): Allow assembler files.
46762 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46763 * conf/powerpc-ieee1275.rmk: New file.
46764 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46765 * disk/powerpc/ieee1275/partition.c: Likewise.
46766 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46767 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46768 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46769 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46770 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46771 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46772 * include/pupa/powerpc/ieee1275/loader.h
46773 * include/pupa/powerpc/setjmp.h: Likewise.
46774 * include/pupa/powerpc/types.h: Likewise.
46775 * kern/powerpc/ieee1275/init.c: Likewise.
46776 * kern/powerpc/ieee1275/openfw.c: Likewise.
46777 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46778
46779 These files were written by Johan Rydberg
46780 (jrydberg@night.trouble.net) and I only modified them slightly.
46781
46782 * boot/powerpc/ieee1275/cmain.c: New file.
46783 * boot/powerpc/ieee1275/crt0.S: Likewise.
46784 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46785 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46786
46787 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46788
46789 * Makefile.in: Update copyright.
46790 * genmodsrc.sh: Likewise.
46791 * gensymlist.sh: Likewise.
46792 * term/i386/pc/vga.c: Indent correctly.
46793
46794 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46795 bugreporting address.
46796 * util/i386/pc/pupa-setup.c (usage): Likewise,
46797 (main): Call pupa_ext2_init and pupa_ext2_fini.
46798
46799 * fs/fat.c (log2): Renamed to ...
46800 (fat_log2): ... this.
46801 All callers changed.
46802 * kern/misc.c (memcpy): Alias to pupa_memmove.
46803 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46804 lvalue cast.
46805 * util/console.c (pupa_ncurses_fini): Return 0.
46806
46807 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46808 Move fail label here.
46809 [__GNU__]: Don't warn when using stat.
46810 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46811 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46812 long int. Use strtol instead of strtoul.
46813
46814 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46815
46816 * commands/boot.c: New file.
46817 * commands/cat.c: Likewise.
46818 * commands/cmp.c: Likewise.
46819 * commands/ls.c: Likewise.
46820 * commands/terminal.c: Likewise.
46821 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46822 (pupa_register_command): Changed interface to match the new
46823 argument parser.
46824 (pupa_command_execute): Changed (almost rewritten) so it uses
46825 pupa_split_command. Added support for setting variables using the
46826 syntax `foo=bar'.
46827 (rescue_command): Changed to work with the new argument parser.
46828 (terminal_command): Moved from here to commands/terminal.c.
46829 (set_command): New function.
46830 (unset_command): New function.
46831 (insmod_command): New function.
46832 (rmmod_command): New function.
46833 (lsmod_command): New function.
46834 (pupa_command_init): Don't initialize the command terminal
46835 anymore. Initialize the commands set, unset, insmod, rmmod and
46836 lsmod.
46837 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46838 (kernel_img_HEADERS): Add arg.h and env.h.
46839 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46840 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46841 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46842 normal/arg.c.
46843 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46844 terminal.mod.
46845 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46846 (boot_mod_SOURCES): New variable.
46847 (terminal_mod_SOURCES): Likewise.
46848 (ls_mod_SOURCES): Likewise.
46849 (cmp_mod_SOURCES): Likewise.
46850 (cat_mod_SOURCES): Likewise.
46851
46852 * normal/arg.c: New file.
46853 * kern/env.c: Likewise.
46854 * include/pupa/arg.h: Likewise.
46855 * include/pupa/env.h: Likewise.
46856 * font/manager.c (font_command): Changed to match argument parsing
46857 interface changes.
46858 (PUPA_MOD_INIT): Likewise.
46859 * hello/hello.c (pupa_cmd_hello): Likewise.
46860 (PUPA_MOD_INIT): Likewise.
46861 * include/pupa/disk.h: Include <pupa/device.h>.
46862 (pupa_print_partinfo): New prototype.
46863 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46864 (pupa_dl_get_prefix): Likewise.
46865 * include/pupa/misc.h: Include <pupa/err.h>.
46866 (pupa_isgraph): New prototype.
46867 (pupa_isdigit): Likewise.
46868 (pupa_split_cmdline): Likewise.
46869 * include/pupa/normal.h: Include <pupa/arg.h>.
46870 (pupa_command): Changed the prototype of the member `func' to
46871 match the argument parsing interface. Added member `options'.
46872 (pupa_register_command): Updated to match function.
46873 (pupa_arg_parse): New prototype.
46874 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46875 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46876 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46877 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46878 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46879 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46880 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46881 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46882 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46883 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46884 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46885 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46886 * kern/disk.c: Include <pupa/file.h>.
46887 (pupa_print_partinfo): New function.
46888 * kern/dl.c: Include <pupa/env.h>.
46889 (pupa_dl_dir): Variable removed.
46890 (pupa_dl_load): Use the environment variable `prefix' instead of
46891 the variable pupa_dl_dir.
46892 (pupa_dl_set_prefix): Function removed.
46893 (pupa_dl_get_prefix): Likewise.
46894 * kern/i386/pc/init.c: Include <pupa/env.h>.
46895 (pupa_machine_init): Use the environment variable `prefix' instead of
46896 using pupa_dl_set_prefix to set the prefix.
46897 * kern/main.c: Include <pupa/env.h>.
46898 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46899 using pupa_dl_get_prefix to get the prefix.
46900 * kern/misc.c: Include <pupa/env.h>.
46901 (pupa_isdigit): New function.
46902 (pupa_isgraph): Likewise.
46903 (pupa_ftoa): Likewise.
46904 (pupa_vsprintf): Added support for printing values of the type
46905 `double'. Make it possible to format variable output when using
46906 formatting like `%1.2%f'.
46907 (pupa_split_cmdline): New function.
46908 * kern/rescue.c: Include <pupa/env.h>.
46909 (next_word): Removed function.
46910 (pupa_rescue_cmd_prefix): Likewise.
46911 (pupa_rescue_cmd_set): New function.
46912 (pupa_rescue_cmd_unset): New function.
46913 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46914 split the command line instead of splitting it here. Added
46915 support for setting variables using the syntax `foo=bar'. Don't
46916 initialize the prefix command anymore. Initialized the set and
46917 unset commands.
46918 * normal/cmdline.c: Include <pupa/env.h>.
46919 (pupa_tab_complete): Added prototypes for print_simple_completion,
46920 print_partition_completion, add_completion, iterate_commands,
46921 iterate_dev, iterate_part and iterate_dir. Moved code to print
46922 partition information from here to kern/disk.c.
46923 (pupa_cmdline_run): Don't check if the function exists anymore.
46924 * normal/main.c: Include <pupa/env.h>.
46925 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46926 instead of using pupa_dl_get_prefix to get the prefix.
46927 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46928 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46929 warning.
46930 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46931 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46932 ((unused))' to silence a gcc warning.
46933 (pupa_vga_setcolor): Likewise.
46934 (debug_command): Changed to match argument parsing
46935 interface changes.
46936 * util/pupa-emu.c: Include <pupa/env.h>.
46937 (options): Added 0's for unused fields to silence a gcc warning.
46938 (argp): Likewise.
46939 (main): Use the environment variable `prefix' instead of using
46940 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
46941 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
46942 and terminal.
46943
46944 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
46945 * util/misc.c: Include <malloc.h>.
46946 (pupa_malloc): Rewritten so errors are correctly reported.
46947 (pupa_realloc): Likewise.
46948 (pupa_memalign): Likewise.
46949 (pupa_mm_init_region): Declare unused variables with
46950 `__attribute__ ((unused))' to silence a gcc warning.
46951 * normal/i386/setjmp.S: Remove tab at the end of the file to
46952 silence a gcc warning.
46953 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
46954 variables with `__attribute__ ((unused))' to silence a gcc
46955 warning.
46956 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
46957 local variable i unsigned to silence a gcc warning.
46958
46959 * kern/term.c: Include <pupa/misc.h>.
46960 (pupa_more_lines): New variable.
46961 (pupa_more): Likewise.
46962 (pupa_putcode): When the pager is active pause at the end of every
46963 screen.
46964 (pupa_set_more): New function.
46965 * include/pupa/term.h (pupa_set_more): New prototype.
46966
46967
46968 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
46969
46970 Now this project is GRUB 2 rather than PUPA. The location of
46971 the CVS repository was moved to GRUB's.
46972
46973 * configure.ac: Use bug-grub as the reporting address.
46974 Use GRUB instead of PUPA.
46975 Change the version number to 1.90.
46976
46977 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
46978
46979 * genkernsyms.sh: Updated copyright information.
46980 * genmk.rb: Likewise.
46981 * genmodsrc.sh: Likewise.
46982 * gensymlist.sh: Likewise.
46983 * boot/i386/pc/boot.S: Likewise.
46984 * boot/i386/pc/diskboot.S: Likewise.
46985 * disk/i386/pc/biosdisk.c: Likewise.
46986 * disk/i386/pc/partition.c: Likewise.
46987 * font/manager.c: Likewise.
46988 * fs/ext2.c: Likewise.
46989 * fs/fat.c: Likewise.
46990 * include/pupa/boot.h: Likewise.
46991 * include/pupa/device.h: Likewise.
46992 * include/pupa/disk.h: Likewise.
46993 * include/pupa/dl.h: Likewise.
46994 * include/pupa/elf.h: Likewise.
46995 * include/pupa/err.h: Likewise.
46996 * include/pupa/file.h: Likewise.
46997 * include/pupa/font.h: Likewise.
46998 * include/pupa/fs.h: Likewise.
46999 * include/pupa/kernel.h: Likewise.
47000 * include/pupa/loader.h: Likewise.
47001 * include/pupa/misc.h: Likewise.
47002 * include/pupa/mm.h: Likewise.
47003 * include/pupa/net.h: Likewise.
47004 * include/pupa/normal.h: Likewise.
47005 * include/pupa/rescue.h: Likewise.
47006 * include/pupa/setjmp.h: Likewise.
47007 * include/pupa/symbol.h: Likewise.
47008 * include/pupa/term.h: Likewise.
47009 * include/pupa/types.h: Likewise.
47010 * include/pupa/i386/setjmp.h: Likewise.
47011 * include/pupa/i386/types.h: Likewise.
47012 * include/pupa/i386/pc/biosdisk.h: Likewise.
47013 * include/pupa/i386/pc/boot.h: Likewise.
47014 * include/pupa/i386/pc/console.h: Likewise.
47015 * include/pupa/i386/pc/init.h: Likewise.
47016 * include/pupa/i386/pc/kernel.h: Likewise.
47017 * include/pupa/i386/pc/linux.h: Likewise.
47018 * include/pupa/i386/pc/loader.h: Likewise.
47019 * include/pupa/i386/pc/memory.h: Likewise.
47020 * include/pupa/i386/pc/multiboot.h: Likewise.
47021 * include/pupa/i386/pc/partition.h: Likewise.
47022 * include/pupa/i386/pc/time.h: Likewise.
47023 * include/pupa/i386/pc/vga.h: Likewise.
47024 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47025 * include/pupa/util/getroot.h: Likewise.
47026 * include/pupa/util/misc.h: Likewise.
47027 * include/pupa/util/resolve.h: Likewise.
47028 * kern/device.c: Likewise.
47029 * kern/disk.c: Likewise.
47030 * kern/dl.c: Likewise.
47031 * kern/err.c: Likewise.
47032 * kern/file.c: Likewise.
47033 * kern/fs.c: Likewise.
47034 * kern/loader.c: Likewise.
47035 * kern/main.c: Likewise.
47036 * kern/misc.c: Likewise.
47037 * kern/mm.c: Likewise.
47038 * kern/rescue.c: Likewise.
47039 * kern/term.c: Likewise.
47040 * kern/i386/dl.c: Likewise.
47041 * kern/i386/pc/init.c: Likewise.
47042 * kern/i386/pc/lzo1x.S: Likewise.
47043 * kern/i386/pc/startup.S: Likewise.
47044 * loader/i386/pc/chainloader.c: Likewise.
47045 * loader/i386/pc/linux.c: Likewise.
47046 * loader/i386/pc/multiboot.c: Likewise.
47047 * normal/cmdline.c: Likewise.
47048 * normal/command.c: Likewise.
47049 * normal/main.c: Likewise.
47050 * normal/menu.c: Likewise.
47051 * normal/i386/setjmp.S: Likewise.
47052 * term/i386/pc/console.c: Likewise.
47053 * term/i386/pc/vga.c: Likewise.
47054 * util/console.c: Likewise.
47055 * util/genmoddep.c: Likewise.
47056 * util/misc.c: Likewise.
47057 * util/pupa-emu.c: Likewise.
47058 * util/resolve.c: Likewise.
47059 * util/unifont2pff.rb: Likewise.
47060 * util/i386/pc/biosdisk.c: Likewise.
47061 * util/i386/pc/getroot.c: Likewise.
47062 * util/i386/pc/pupa-mkimage.c: Likewise.
47063 * util/i386/pc/pupa-setup.c: Likewise.
47064
47065 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47066
47067 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47068 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47069 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47070 reading and reset it after reading.
47071 (pupa_ext2_close): Return PUPA_ERR_NONE.
47072
47073 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47074 Correct value.
47075 (struct linux_kernel_header): Add kernel_version and
47076 initrd_addr_max.
47077 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47078 pupa_file_read succeeds.
47079 (pupa_rescue_cmd_initrd): Implement.
47080
47081 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47082
47083 * fs/ext2.c (pupa_ext2_label): New function.
47084 (pupa_ext2_fs): Added label.
47085 * fs/fat.c (pupa_fat_label): New function.
47086 (pupa_fat_fs): Added label.
47087 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47088
47089 * kern/misc.c (pupa_strndup): New function.
47090 * include/pupa/misc.h (pupa_strndup): New prototype.
47091
47092 * include/pupa/normal.h: Include <pupa/err.h>.
47093 (pupa_set_history): New prototype.
47094 (pupa_iterate_commands): New prototype.
47095 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47096 <pupa/disk.h>, <pupa/file.h>.
47097 (hist_size): New variable.
47098 (hist_lines): Likewise.
47099 (hist_end): Likewise.
47100 (hist_used): Likewise.
47101 (pupa_set_history): New function.
47102 (pupa_history_get): Likewise.
47103 (pupa_history_add): Likewise.
47104 (pupa_history_replace): Likewise.
47105 (pupa_tab_complete): Likewise.
47106 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47107 completion shows partitionnames while completing partitions, this
47108 feature was suggested by Jeff Bailey.
47109 * normal/command.c (pupa_iterate_commands): New function.
47110 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47111 (pupa_normal_init): Initialize history buffer.
47112 (PUPA_MOD_INIT): Likewise.
47113 (pupa_normal_fini): Free the history buffer.
47114 (PUPA_MOD_FINI): Likewise.
47115
47116 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47117 key.
47118
47119 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47120 * configure.ac [i386]: Check for regparam bug.
47121 (NESTED_FUNC_ATTR) [! i386]: Defined.
47122
47123 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47124
47125 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47126 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47127 (pupa_emu_SOURCES): New variable.
47128 (pupa_emu_LDFLAGS): Likewise.
47129 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47130 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47131 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47132 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47133 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47134 (pupa_jmp_buf): New typedef.
47135 (pupa_setjmp) [PUPA_UTIL]: New macro.
47136 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47137 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47138 (pupa_refresh): New prototype.
47139 * include/pupa/util/getroot.h: New file.
47140 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47141 it.
47142 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47143 (pupa_rescue_cmd_cat): Likewise.
47144 (pupa_rescue_cmd_ls): Likewise.
47145 (pupa_rescue_cmd_testload): Likewise.
47146 (pupa_rescue_cmd_lsmod): Likewise.
47147 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47148 * normal/menu.c (run_menu): Likewise.
47149 * kern/term.c (pupa_cls): Likewise.
47150 (pupa_refresh): New function.
47151 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47152 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47153 * util/console.c: New file.
47154
47155 * util/i386/pc/getroot.c: New file.
47156 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47157 (pupa_putchar): New function.
47158 (pupa_refresh): Likewise.
47159 (xgetcwd): Function moved to ...
47160 (strip_extra_slashes): Likewise.
47161 (get_prefix): Likewise.
47162 * util/i386/pc/getroot.c: ... here.
47163 (find_root_device): Function moved and renamed to...
47164 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47165 Changed all callers.
47166 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47167 and renamed to...
47168 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47169 Changed all callers.
47170 * util/misc.c (pupa_memalign): New function.
47171 (pupa_mm_init_region): Likewise.
47172 (pupa_register_exported_symbols): Likewise.
47173 (pupa_putchar): Function removed.
47174 * util/pupa-emu.c: New file.
47175
47176 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47177
47178 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47179 (_multiboot_mod_SOURCES): New variable.
47180 (_multiboot_mod_CFLAGS): Likewise.
47181 * loader/i386/pc/multiboot.c: New file.
47182 * include/pupa/i386/pc/multiboot.h: Likewise.
47183 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47184 (pupa_multiboot_real_boot): New function.
47185 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47186 (pupa_multiboot_real_boot): New prototype.
47187 (pupa_rescue_cmd_multiboot): Likewise
47188 (pupa_rescue_cmd_module): Likewise.
47189
47190 * kern/loader.c (pupa_loader_set): Continue when
47191 pupa_loader_unload_func() fails.
47192 (pupa_loader_unset): New function.
47193 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47194
47195 * kern/misc.c (pupa_stpcpy): New function.
47196 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47197
47198 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47199
47200 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47201 for available extensions.
47202
47203 * include/pupa/i386/pc/time.h: New file.
47204 * kern/disk.c: Include <pupa/machine/time.h>.
47205 (PUPA_CACHE_TIMEOUT): New macro.
47206 (pupa_last_time): New variable.
47207 (pupa_disk_open): Flush the cache when there was a timeout.
47208 (pupa_disk_close): Reset the timer.
47209 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47210 pupa_currticks.
47211 * util/misc.c: Include <sys/times.h>
47212 (pupa_get_rtc): New function.
47213
47214 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47215
47216 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47217 as blocks.
47218 (pupa_ext2_get_file_block): Use blocks member.
47219
47220 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47221 first block. Return -1 instead of pupa_errno on error.
47222
47223 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47224
47225 * README: In the pupa-mkimage example use _chain instead of chain
47226 and ext2 instead of fat.
47227 * TODO: Replace ext2fs with jfs as an example. Add an item for
47228 adding journal playback for ext2fs.
47229 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47230 (pkgdata_MODULES): Added ext2.mod.
47231 (ext2_mod_SOURCES): New variable.
47232 (ext2_mod_CFLAGS): Likewise.
47233 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47234 * include/pupa/misc.h (pupa_strncpy): New prototype.
47235 (pupa_strcat): Likewise.
47236 (pupa_strncmp): Likewise.
47237 * kern/misc.c (pupa_strcat): Enable function.
47238 (pupa_strncpy): New function.
47239 (pupa_strncmp): Likewise.
47240 * fs/ext2.c: New file.
47241
47242 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47243 when the read failed before retrying.
47244 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47245 (_FILE_OFFSET_BITS): Likewise.
47246 * configure.ac: Added AC_SYS_LARGEFILE.
47247
47248 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47249
47250 * genmk.rb (PModule#rule): Make sure to get only symbol names
47251 from the output of nm.
47252 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47253
47254 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47255
47256 I forgot to check in these changes for a long time. This adds
47257 incomplete support for VGA console, and this is still very
47258 buggy. Also, a lot of consideration is required for I18N,
47259 UNICODE, and VGA font issues. Therefore, assume that this is
47260 such that "better than nothing".
47261
47262 * font/manager.c: New file.
47263 * include/pupa/font.h: Likewise.
47264 * include/pupa/i386/pc/vga.h: Likewise.
47265 * term/i386/pc/vga.c: Likewise.
47266 * util/unifont2pff.rb: Likewise.
47267
47268 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47269 (pkgdata_MODULES): Added vga.mod and font.mod.
47270 (vga_mod_SOURCES): New variables.
47271 (vga_mod_CFLAGS): Likewise.
47272 (font_mod_SOURCES): Likewise.
47273 (font_mod_CFLAGS): Likewise.
47274
47275 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47276
47277 * include/pupa/term.h: Include pupa/err.h.
47278 (struct pupa_term): Added init and fini.
47279 Changed the argument of putchar to pupa_uint32_t.
47280
47281 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47282 (pupa_console_real_putchar): New prototype.
47283 (pupa_console_putchar): Removed.
47284 (pupa_console_checkkey): Exported.
47285 (pupa_console_getkey): Likewise.
47286
47287 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47288 characters.
47289
47290 * kern/term.c (pupa_term_set_current): Rewritten.
47291 (pupa_putchar): Likewise.
47292 (pupa_putcode): New function.
47293
47294 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47295 (pupa_console_real_putchar): ... this.
47296 (pupa_vga_set_mode): New function.
47297 (pupa_vga_get_font): Likewise.
47298
47299 * normal/command.c: Include pupa/term.h.
47300 (terminal_command): New function.
47301 (pupa_command_init): Register the command "terminal".
47302
47303 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47304 (DISP_UP): Likewise.
47305 (DISP_RIGHT): Likewise.
47306 (DISP_DOWN): Likewise.
47307 (DISP_HLINE): Likewise.
47308 (DISP_VLINE): Likewise.
47309 (DISP_UL): Likewise.
47310 (DISP_UR): Likewise.
47311 (DISP_LL): Likewise.
47312 (DISP_LR): Likewise.
47313
47314 * term/i386/pc/console.c (pupa_console_putchar): New function.
47315
47316 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47317
47318 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47319 FIX. Reverse the path_list.
47320
47321 * include/pupa/normal.h: Export pupa_register_command and
47322 pupa_unregister_command.
47323
47324 * hello/hello.c (pupa_cmd_hello): New module.
47325 * conf/i386-pc.rmk: Added hello.mod.
47326
47327 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47328
47329 * kern/i386/pc/lzo1x.S: New file.
47330
47331 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47332 (compress_kernel): New variable.
47333 (generate_image): Heavily modified to support compressing a
47334 large part of the core image.
47335
47336 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47337 leak.
47338 (pupa_util_load_image): New function.
47339
47340 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47341 (pupa_compressed_size): New variable.
47342 (codestart): Enable Gate A20 here.
47343 Decompress the compressed part of the core image.
47344 Rearrange the code to put functions and variables which are
47345 required for initialization in the non-compressed part.
47346 Include lzo1x.S.
47347
47348 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47349 here.
47350
47351 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47352
47353 * include/pupa/i386/pc/kernel.h
47354 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47355 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47356 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47357 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47358 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47359
47360 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47361
47362 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47363 (Utility#rule): Likewise.
47364
47365 * configure.ac: Check if LZO is available.
47366
47367 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47368
47369 * include/pupa/normal.h: New file.
47370 * include/pupa/setjmp.h: Likewise.
47371 * include/pupa/i386/setjmp.h: Likewise.
47372 * normal/cmdline.c: Likewise.
47373 * normal/command.c: Likewise.
47374 * normal/main.c: Likewise.
47375 * normal/menu.c: Likewise.
47376 * normal/i386/setjmp.S: Likewise.
47377
47378 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47379 (pupa_rescue_cmd_initrd): Likewise.
47380
47381 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47382 Likewise.
47383
47384 * kern/i386/pc/startup.S (translation_table): New variable.
47385 (translate_keycode): New function.
47386 (pupa_console_getkey): Call translate_keycode.
47387
47388 * kern/rescue.c (attempt_normal_mode): New function.
47389 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47390 it failed, print a message.
47391
47392 * kern/mm.c (pupa_real_malloc): Print more information when a
47393 free magic is broken.
47394 (pupa_free): If the first free header is not free actually, set
47395 it to P.
47396
47397 * kern/main.c (pupa_load_normal_mode): Just load the module
47398 "normal".
47399 (pupa_main): Don't print the message
47400 "Entering into rescue mode..." here.
47401
47402 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47403 Declared.
47404 (pupa_rescue_cmd_initrd): Likewise.
47405 (pupa_rescue_cmd_initrd): Likewise.
47406
47407 * include/pupa/symbol.h (FUNCTION): Specify the type.
47408 (VARIABLE): Likewise.
47409
47410 * include/pupa/err.h (pupa_err_t): Added
47411 PUPA_ERR_UNKNOWN_COMMAND.
47412
47413 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47414 (pupa_dl_get_prefix): Likewise.
47415
47416 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47417 Added _chain.mod and _linux.mod instead of chain.mod and
47418 linux.mod.
47419 (chain_mod_SOURCES): Renamed to ...
47420 (_chain_mod_SOURCES): ... this.
47421 (chain_mod_CFLAGS): Renamed to ...
47422 (_chain_mod_CFLAGS): ... this.
47423 (linux_mod_SOURCES): Renamed to ...
47424 (_linux_mod_SOURCES): ... this.
47425 (linux_mod_CFLAGS): Renamed to ...
47426 (_linux_mod_CFLAGS): ... this.
47427 (normal_mod_SOURCES): New variable.
47428 (normal_mod_CFLAGS): Likewise.
47429 (normal_mod_ASFLAGS): Likewise.
47430
47431 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47432
47433 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47434 possible.
47435
47436 * kern/dl.c (pupa_dl_ref): Refer depending modules
47437 recursively.
47438 (pupa_dl_unref): Unrefer depending modules recursively.
47439 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47440 a module is unloaded before one depending on that module is
47441 unloaded.
47442 (pupa_dl_unload): Unload depending modules explicitly,
47443 if possible.
47444
47445 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47446
47447 * include/pupa/i386/pc/linux.h: New file.
47448 * loader/i386/pc/linux.c: Likewise.
47449
47450 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47451 Removed.
47452 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47453 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47454 of PUPA_CHAINLOADER_BOOT_SECTOR.
47455
47456 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47457 (pupa_linux_prot_size): New variable.
47458 (pupa_linux_tmp_addr): Likewise.
47459 (pupa_linux_real_addr): Likewise.
47460 (pupa_linux_boot_zimage): New function.
47461 (pupa_linux_boot_bzimage): Likewise.
47462
47463 * kern/i386/pc/init.c (struct mem_region): New structure.
47464 (MAX_REGIONS): New macro.
47465 (mem_regions): New variable.
47466 (num_regions): Likewise.
47467 (pupa_os_area_addr): Likewise.
47468 (pupa_os_area_size): Likewise.
47469 (pupa_lower_mem): Likewise.
47470 (pupa_upper_mem): Likewise.
47471 (add_mem_region): New function.
47472 (compact_mem_regions): Likewise.
47473 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47474 the size of the conventional memory and that of so-called upper
47475 memory (before the first memory hole).
47476 Instead of adding each found region to free memory, use
47477 add_mem_region and add them after removing overlaps.
47478 Also, add only 1/4 of the upper memory to free memory. The rest
47479 is used for loading OS images. Maybe this is ad hoc, but this
47480 makes it much easier to relocate OS images when booting.
47481
47482 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47483 (pupa_enter_rescue_mode): Don't register initrd and module.
47484
47485 * kern/mm.c: Include pupa/dl.h.
47486
47487 * kern/main.c: Include pupa/file.h and pupa/device.h.
47488
47489 * kern/loader.c (pupa_loader_load_module_func): Removed.
47490 (pupa_loader_load_module): Likewise.
47491
47492 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47493 ``.o''.
47494
47495 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47496 (pupa_linux_tmp_addr): Likewise.
47497 (pupa_linux_real_addr): Likewise.
47498 (pupa_linux_boot_zimage): Likewise.
47499 (pupa_linux_boot_bzimage): Likewise.
47500
47501 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47502 (pupa_upper_mem): Likewise.
47503 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47504 module is too dangerous.
47505
47506 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47507 (pupa_os_area_size): Likewise.
47508 (pupa_loader_set): Remove the first argument. Loader doesn't
47509 manage modules or initrd any longer.
47510 (pupa_loader_load_module): Removed.
47511
47512 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47513 (linux_mod_SOURCES): New variable.
47514 (linux_mod_CFLAGS): Likewise.
47515
47516 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47517
47518 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47519 the length of a blocklist correctly.
47520
47521 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47522 Use ioctl only if the OS file is a block device.
47523 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47524 not very useful for normal files.
47525
47526 * kern/main.c (pupa_set_root_dev): New function.
47527 (pupa_load_normal_mode): Likewise.
47528 (pupa_main): Call those above.
47529
47530 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47531 pupa_uint16_t.
47532
47533 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47534
47535 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47536
47537 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47538 (setup): Configure the installed partition information and the
47539 dl prefix.
47540
47541 * loader/i386/pc/chainloader.c (my_mod): New variable.
47542 (pupa_chainloader_unload): New function.
47543 (pupa_rescue_cmd_chainloader): Refer itself.
47544 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47545
47546 * kern/i386/pc/startup.S (install_partition): Removed.
47547 (version_string): Likewise.
47548 (config_file): Likewise.
47549 (pupa_install_dos_part): New variable.
47550 (pupa_install_bsd_part): Likewise.
47551 (pupa_prefix): Likewise.
47552 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47553
47554 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47555 and pupa/misc.h.
47556 (make_install_device): New function.
47557 (pupa_machine_init): Set the dl prefix.
47558
47559 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47560 (buf): Renamed to ...
47561 (linebuf): ... this.
47562 (pupa_rescue_cmd_prefix): New function.
47563 (pupa_rescue_cmd_insmod): Likewise.
47564 (pupa_rescue_cmd_rmmod): Likewise.
47565 (pupa_rescue_cmd_lsmod): Likewise.
47566 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47567 rmmod and lsmod.
47568
47569 * kern/mm.c (pupa_memalign): If failed even after invalidating
47570 disk caches, unload unneeded modules and retry.
47571
47572 * kern/misc.c (pupa_memmove): New function.
47573 (pupa_memcpy): Removed.
47574 (pupa_strcpy): New function.
47575 (pupa_itoa): Made static.
47576
47577 * kern/dl.c (pupa_dl_iterate): New function.
47578 (pupa_dl_ref): Likewise.
47579 (pupa_dl_unref): Likewise.
47580 (pupa_dl_unload): Return if succeeded or not.
47581 (pupa_dl_unload_unneeded): New function.
47582 (pupa_dl_unload_all): Likewise.
47583 (pupa_dl_init): Renamed to ...
47584 (pupa_dl_set_prefix): ... this.
47585 (pupa_dl_get_prefix): New function.
47586
47587 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47588 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47589 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47590 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47591 (pupa_install_dos_part): Declared.
47592 (pupa_install_bsd_part): Likewise.
47593 (pupa_prefix): Likewise.
47594 (pupa_boot_drive): Likewise.
47595
47596 * include/pupa/types.h: Fix a typo.
47597
47598 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47599 pupa_memmove.
47600 (pupa_memmove): Declared.
47601 (pupa_strcpy): Likewise.
47602
47603 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47604 pupa_mod_init takes one argument, its own module.
47605 (pupa_dl_unload_unneeded): Declared.
47606 (pupa_dl_unload_all): Likewise.
47607 (pupa_dl_ref): Likewise.
47608 (pupa_dl_unref): Likewise.
47609 (pupa_dl_iterate): Likewise.
47610 (pupa_dl_init): Renamed to ...
47611 (pupa_dl_set_prefix): ... this.
47612 (pupa_dl_get_prefix): Declared.
47613
47614 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47615 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47616 unloaded.
47617 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47618 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47619
47620 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47621 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47622
47623 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47624
47625 * util/i386/pc/pupa-setup.c (setup): Define the internal
47626 function find_first_partition_start at the top level, because GCC
47627 3.0.x cannot compile internal functions in deeper scopes
47628 correctly.
47629 (find_root_device): Use lstat instead of stat.
47630 Don't follow symbolic links.
47631 Fix the path-constructing code.
47632
47633 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47634 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47635 by a BLKGETSIZE ioctl first, because block devices don't fill
47636 the member st_mode of the structure stat on Linux.
47637 [__linux__] (linux_find_partition): Use a temporary buffer
47638 REAL_DEV for the working space. Copy it to DEV before returning.
47639 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47640 buffer cache consistent.
47641 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47642 strncmp. The previous value was merely wrong.
47643 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47644
47645 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47646 FAT size is 12. The previous value was merely wrong.
47647
47648 * kern/main.c (pupa_main): Don't split the starting message from
47649 newlines.
47650
47651 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47652 LF, because BIOS goes crazy about character attributes in this
47653 case.
47654
47655 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47656
47657 * include/i386/pc/util/biosdisk.h: New file.
47658 * util/i386/pc/biosdisk.c: Likewise.
47659 * util/i386/pc/pupa-setup.c: Likewise.
47660
47661 * Makefile.in (INCLUDE_DISTFILES): Added
47662 include/pupa/i386/pc/util/biosdisk.h.
47663 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47664 directory util/i386/pc.
47665 (install-local): Added a rule for sbin_UTILITIES.
47666 (uninstall): Likewise.
47667
47668 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47669
47670 * util/misc.c (xrealloc): New function.
47671 (pupa_malloc): Likewise.
47672 (pupa_free): Likewise.
47673 (pupa_realloc): Likewise.
47674 (pupa_stop): Likewise.
47675 (pupa_putchar): Likewise.
47676
47677 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47678
47679 * include/pupa/util/misc.h (xrealloc): Declared.
47680
47681 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47682 macro.
47683 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47684 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47685
47686 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47687 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47688
47689 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47690 way should be implemented.
47691 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47692
47693 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47694 the size of NAME for safety.
47695 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47696 0x88.
47697
47698 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47699 (pupa_setup_SOURCES): Likewise.
47700
47701 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47702
47703 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47704
47705 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47706 bunch of pushl's from pusha, because this destroys the return
47707 value.
47708
47709 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47710
47711 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47712 This means that any missing prototypes could be fatal. Also, you
47713 must take care when writing assembly code. See the comments at
47714 the beginning of startup.S, for more details.
47715
47716 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47717 compilation mechanism.
47718 (pupa_chainloader_real_boot): Likewise.
47719 (pupa_biosdisk_rw_int13_extensions): Likewise.
47720 (pupa_biosdisk_rw_standard): Likewise.
47721 (pupa_biosdisk_check_int13_extensions): Likewise.
47722 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47723 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47724 (pupa_get_memsize): Likewise.
47725 (pupa_get_mmap_entry): Likewise.
47726 (pupa_console_putchar): Likewise.
47727 (pupa_console_setcursor): Likewise.
47728 (pupa_getrtsecs): Use pushl instead of push.
47729
47730 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47731 memory instead of the stack for a mmap entry, because some
47732 BIOSes may ignore the maximum size and overflow.
47733
47734 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47735
47736 * genmk.rb (PModule#rule): Compile automatically generated
47737 sources with module-specific CFLAGS as well as other sources.
47738
47739 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47740
47741 * configure.ac: Check ld.
47742 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47743 respectively, before checking endianness and sizes.
47744
47745 * Makefile.in (LD): New variable.
47746
47747 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47748
47749 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47750
47751 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47752
47753 * Changelog: New file.
47754